diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 90c9f92f47fe..7c1df387f535 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -21,826 +21,838 @@ /sdk/ @joshfree @srnagar @anuchandy @conniey @lmolkova @jonathangiles # BOM -# AzureSdkOwners: @vcolin7 @alzimmermsft -# ServiceLabel: %azure-sdk-bom + # PRLabel: %azure-sdk-bom /sdk/boms/azure-sdk-bom/ @vcolin7 @alzimmermsft @jonathangiles @srnagar @anuchandy -# ServiceLabel: %azure-spring +# ServiceLabel: %azure-sdk-bom +# AzureSdkOwners: @vcolin7 @alzimmermsft + # PRLabel: %azure-spring /sdk/boms/spring-cloud-azure-dependencies/ @saragluna @chenrujun @netyyyy @moarychan -#### -# Service teams -#### +# ######## Core Libraries ######## -# AzureSdkOwners: @srnagar -# ServiceLabel: %graalvm -# PRLabel: %graalvm -/sdk/aot/ @srnagar @jonathangiles +# PRLabel: %Azure.Core +/sdk/core/ @alzimmermsft @srnagar @anuchandy @lmolkova @vcolin7 @mssfang @jonathangiles @billwert + +# ServiceLabel: %Azure.Core +# AzureSdkOwners: @alzimmermsft + +# PRLabel: %Azure.Core.AMQP +/sdk/core/azure-core-amqp/ @anuchandy @conniey @lmolkova + +# ServiceLabel: %Azure.Core.AMQP +# AzureSdkOwners: @anuchandy @conniey @lmolkova + +# PRLabel: %OpenTelemetry +/sdk/core/azure-core-tracing-opentelemetry/ @lmolkova @trask + +# ServiceLabel: %OpenTelemetry +# AzureSdkOwners: @lmolkova +# ServiceOwners: @cijothomas @reyang @rajkumar-rangaraj @TimothyMothra @vishweshbankwar @ramthi + +# PRLabel: %Azure.Core +/sdk/parents/ @alzimmermsft + +# PRLabel: %Azure.Core +/sdk/serialization/ @alzimmermsft @srnagar + +# ######## Services ######## + +# ServiceLabel: %AAD +# ServiceOwners: @adamedx + +# ServiceLabel: %Advisor +# ServiceOwners: @mojayara @Prasanna-Padmanabhan + +# ServiceLabel: %AKS +# ServiceOwners: @Azure/aks-pm + +# ServiceLabel: %Alerts Management +# ServiceOwners: @liadtal @yairgil + +# ServiceLabel: %Analysis Services +# ServiceOwners: @athipp @taiwu @minghan + +# ServiceLabel: %API Management +# ServiceOwners: @miaojiang -# AzureSdkOwners: @mssfang -# ServiceLabel: %App Configuration # PRLabel: %App Configuration /sdk/appconfiguration/ @mssfang @alzimmermsft -# PRLabel: %Attestation -/sdk/attestation/ @Azure/azure-sdk-write-attestation @anilba06 @gkostal @larryosterman -/sdk/attestation/azure-security-attestation/ @Azure/azure-sdk-write-attestation @anilba06 @gkostal @larryosterman -/sdk/attestation/azure-resourcemanager-attestation/ @Azure/azure-sdk-write-attestation @anilba06 @gkostal +# ServiceLabel: %App Configuration +# AzureSdkOwners: @mssfang +# ServiceOwners: @shenmuxiaosen @avanigupta -# PRLabel: %Batch -/sdk/batch/ @skapur12 @wiboris @dpwatrous @NickKouds +# ServiceLabel: %Application Insights +# ServiceOwners: @azmonapplicationinsights -# PRLabel: %Communication -/sdk/communication/ +# ServiceLabel: %App Services +# ServiceOwners: @antcp @AzureAppServiceCLI -# PRLabel: %Communication - Calling Server -/sdk/communication/azure-communication-callingserver/ @minwoolee-msft +# ServiceLabel: %ARM +# ServiceOwners: @armleads-azure -# PRLabel: %Communication - Call Automation -/sdk/communication/azure-communication-callautomation/ @juntuchen-msft @cochi2 +# ServiceLabel: %ARM - Templates +# ServiceOwners: @armleads-azure -# PRLabel: %Communication - Chat -/sdk/communication/azure-communication-chat/ @ankitarorabit @minnieliu @Azure/azure-sdk-communication-code-reviewers +# ServiceLabel: %ARM - Tags +# ServiceOwners: @armleads-azure -# PRLabel: %Communication - Identity -/sdk/communication/azure-communication-identity/ @Azure/acs-identity-sdk @AikoBB @maximrytych-ms @mjafferi-msft +# ServiceLabel: %ARM - Core +# ServiceOwners: @armleads-azure -# PRLabel: %Communication - Common -/sdk/communication/azure-communication-common/ @Azure/acs-identity-sdk @AikoBB @maximrytych-ms @mjafferi-msft +# ServiceLabel: %ARM - Managed Applications +# ServiceOwners: @armleads-azure -# PRLabel: %Communication - Network Traversal -/sdk/communication/azure-communication-networktraversal/ @ankitarorabit @minnieliu @Azure/azure-sdk-communication-code-reviewers +# ServiceLabel: %ARM - Service Catalog +# ServiceOwners: @armleads-azure -# PRLabel: %Communication - Phone Numbers -/sdk/communication/azure-communication-phonenumbers/ @miguhern @whisper6284 @RoyHerrod @danielav7 +# ServiceLabel: %ARM - RBAC +# ServiceOwners: @armleads-azure -# PRLabel: %Communication - SMS -/sdk/communication/azure-communication-sms/ @DimaKolomiiets @gfeitosa-msft @besh2014 @phermanov-msft @ilyapaliakou-msft +# ServiceLabel: %ARO +# ServiceOwners: @mjudeikis @jim-minter @julienstroheker @amanohar -# PRLabel: %Communication - Resource Manager -/sdk/communication/azure-resourcemanager-communication/ +# PRLabel: %graalvm +/sdk/aot/ @srnagar @jonathangiles -# PRLabel: %Communication - Rooms -/sdk/communication/azure-communication-rooms/ @minnieliu @paolamvhz @alexokun @Mrayyan @shwali-msft @allchiang-msft @mikehang-msft +# ServiceLabel: %graalvm +# AzureSdkOwners: @srnagar -# AzureSdkOwners: @lmolkova -# ServiceLabel: %Container Registry -# PRLabel: %Container Registry -/sdk/containerregistry/ @lmolkova @alzimmermsft @Azure/azsdk-acr +# PRLabel: %Attestation +/sdk/attestation/ @Azure/azure-sdk-write-attestation @anilba06 @gkostal @larryosterman -# AzureSdkOwners: @alzimmermsft -# ServiceLabel: %Azure.Core -# PRLabel: %Azure.Core -/sdk/core/ @alzimmermsft @srnagar @anuchandy @lmolkova @vcolin7 @mssfang @jonathangiles @billwert +# PRLabel: %Attestation +/sdk/attestation/azure-security-attestation/ @Azure/azure-sdk-write-attestation @anilba06 @gkostal @larryosterman -# AzureSdkOwners: @anuchandy @conniey @lmolkova -# ServiceLabel: %Azure.Core.AMQP -# PRLabel: %Azure.Core.AMQP -/sdk/core/azure-core-amqp/ @anuchandy @conniey @lmolkova +# PRLabel: %Attestation +/sdk/attestation/azure-resourcemanager-attestation/ @Azure/azure-sdk-write-attestation @anilba06 @gkostal -# AzureSdkOwners: @lmolkova -# ServiceLabel: %OpenTelemetry -# PRLabel: %OpenTelemetry -/sdk/core/azure-core-tracing-opentelemetry/ @lmolkova @trask +# ServiceLabel: %Attestation +# ServiceOwners: @anilba06 @gkostal -# ServiceLabel: %Cosmos -# PRLabel: %Cosmos -/sdk/cosmos/ @kushagraThapar @FabianMeiswinkel @kirankumarkolli @xinlian12 @milismsft @aayush3011 @simorenoh @jeet1995 @Pilchie +# ServiceLabel: %Authorization +# ServiceOwners: @darshanhs90 @AshishGargMicrosoft -# PRLabel: %Load Testing -/sdk/loadtesting/ @Harshan01 @prativen +# ServiceLabel: %Automation +# ServiceOwners: @jaspkaur28 @omairabdullah -# ServiceLabel: %Device Update for IoT Hub %Service Attention -/sdk/deviceupdate/ @dpokluda +# ServiceLabel: %AVS +# ServiceOwners: @divka78 @amitchat @aishu -# PRLabel: %Digital Twins -/sdk/digitaltwins/ @johngallardo @efriesner @abhinav-ghai @Aashish93-stack @sjiherzig @Satya-Kolluri +# ServiceLabel: %Azure Arc Enabled Servers +# ServiceOwners: @rpsqrd @edyoung -# PRLabel: %Models Repository -/sdk/modelsrepository/ @drwill-ms @timtay-microsoft @abhipsaMisra @digimaun @andyk-ms @brycewang-microsoft @tmahmood-microsoft @ngastelum-ms +# ServiceLabel: %Azure Data Explorer +# ServiceOwners: @ilayrn @astauben @zoharHenMicrosoft @sagivf @Aviv-Yaniv -# AzureSdkOwners: @billwert -# ServiceLabel: %Event Grid -# PRLabel: %Event Grid -/sdk/eventgrid/ @billwert @mssfang @srnagar @lmolkova +# ServiceLabel: %Azure Stack +# ServiceOwners: @sijuman @sarathys @bganapa @rakku-ms -# AzureSdkOwners: @conniey @anuchandy @lmolkova -# ServiceLabel: %Event Hubs -# PRLabel: %Event Hubs -/sdk/eventhubs/ @conniey @anuchandy @lmolkova +# PRLabel: %Batch +/sdk/batch/ @skapur12 @wiboris @dpwatrous @NickKouds -# PRLabel: %Event Hubs -/sdk/eventhubs/microsoft-azure-eventhubs-eph/ @sjkwak +# ServiceLabel: %Batch +# ServiceOwners: @mksuni @bgklein @mscurrell @cRui861 @paterasMSFT @gingi @dpwatrous -# PRLabel: %Event Hubs -/sdk/eventhubs/microsoft-azure-eventhubs-extensions/ @sjkwak +# ServiceLabel: %BatchAI +# ServiceOwners: @matthchr -# PRLabel: %Event Hubs -/sdk/eventhubs/microsoft-azure-eventhubs/ @sjkwak +# ServiceLabel: %Billing +# ServiceOwners: @cabbpt + +# ServiceLabel: %Blueprint +# ServiceOwners: @alex-frankel @filizt + +# ServiceLabel: %Bot Service +# ServiceOwners: @sgellock + +# ServiceLabel: %Cloud Shell +# ServiceOwners: @maertendMSFT + +# PRLabel: %Cognitive - Text Analytics +/sdk/textanalytics/ @samvaity @mssfang @quentinRobinson @wangyuantao + +# ServiceLabel: %Cognitive - Text Analytics +# AzureSdkOwners: @samvaity +# ServiceOwners: @assafi -# AzureSdkOwners: @samvaity -# ServiceLabel: %Cognitive - Form Recognizer # PRLabel: %Cognitive - Form Recognizer /sdk/formrecognizer/ @samvaity @mssfang -# AzureSdkOwners: @samvaity -# ServiceLabel: %Cognitive - Metrics Advisor +# ServiceLabel: %Cognitive - Form Recognizer +# AzureSdkOwners: @samvaity +# ServiceOwners: @ctstone @vkurpad + # PRLabel: %Cognitive - Metrics Advisor /sdk/metricsadvisor/ @samvaity @anuchandy +# ServiceLabel: %Cognitive - Metrics Advisor +# AzureSdkOwners: @samvaity +# ServiceOwners: @bowgong + # PRLabel: %Cognitive - Anomaly Detector /sdk/anomalydetector/ @conhua @mengaims @juaduan @moreOver0 -# AzureSdkOwners: @g2vinay @billwert -# ServiceLabel: %Azure.Identity -# PRLabel: %Azure.Identity -/sdk/identity/ @g2vinay @billwert @joshfree @Azure/azure-sdk-write-identity +# ServiceLabel: %Cognitive - Anomaly Detector +# ServiceOwners: @yingqunpku @bowgong +# ServiceLabel: %Cognitive - Custom Vision +# ServiceOwners: @areddish @tburns10 -# PRLabel: %azure-spring -/sdk/identity/azure-identity-extensions/ @chenrujun @netyyyy @saragluna @moarychan +# ServiceLabel: %Cognitive - Computer Vision +# ServiceOwners: @ryogok @TFR258 @tburns10 -# AzureSdkOwners: @vcolin7 -# ServiceLabel: %KeyVault -# PRLabel: %KeyVault -/sdk/keyvault/ @vcolin7 @g2vinay @Azure/azsdk-keyvault +# ServiceLabel: %Cognitive - Face +# ServiceOwners: @JinyuID @dipidoo @SteveMSFT -# PRLabel: %azure-spring -/sdk/keyvault/azure-security-keyvault-jca/ @chenrujun @netyyyy @saragluna @moarychan +# ServiceLabel: %Cognitive - QnA Maker +# ServiceOwners: @bingisbestest @nerajput1607 -/sdk/loganalytics/microsoft-azure-loganalytics/ @ischrei +# ServiceLabel: %Cognitive - Translator +# ServiceOwners: @swmachan -# PRLabel: %OpenTelemetry -/sdk/monitor/azure-monitor-opentelemetry-exporter/ @trask @ramthi @heyams @jeanbisutti +# ServiceLabel: %Cognitive - Speech +# ServiceOwners: @robch @oscholz -# AzureSdkOwners: @srnagar @jairmyree -# ServiceLabel: %Monitor -# PRLabel: %Monitor -/sdk/monitor/azure-monitor-query*/ @srnagar @jairmyree @lmolkova @Azure/azure-sdk-write-monitor-data-plane -/sdk/monitor/azure-monitor-ingestion*/ @srnagar @jairmyree @lmolkova @Azure/azure-sdk-write-monitor-data-plane +# ServiceLabel: %Cognitive - LUIS +# ServiceOwners: @cahann @kayousef -# PRLabel: %Mixed Reality Authentication -/sdk/mixedreality/azure-mixedreality-authentication/ @RamonArguelles +# ServiceLabel: %Cognitive - Content Moderator +# ServiceOwners: @swiftarrow11 -# PRLabel: %OpenAI -/sdk/openai/azure-ai-openai/ @brandom-msft @jpalvarezl @mssfang -/sdk/openai/azure-ai-openai-assistants/ @brandom-msft @jpalvarezl @mssfang +# PRLabel: %Cognitive - Personalizer +/sdk/personalizer/ @sharathmalladi -# PRLabel: %Image Analysis -# ServiceLabel: %Image Analysis %Service Attention -/sdk/vision/azure-ai-vision-imageanalysis/ @dargilco @rhurey +# ServiceLabel: %Cognitive - Personalizer +# ServiceOwners: @sharathmalladi -# PRLabel: %Remote Rendering -/sdk/remoterendering/ @MichaelZp0 @ChristopherManthei +# ServiceLabel: %Cognitive - Immersive Reader +# ServiceOwners: @metanMSFT -# AzureSdkOwners: @conniey -# ServiceLabel: %Schema Registry -# PRLabel: %Schema Registry -/sdk/schemaregistry/ @conniey @sjkwak @srnagar +# ServiceLabel: %Cognitive - Ink Recognizer +# ServiceOwners: @olduroja -# AzureSdkOwners: @alzimmermsft @jairmyree -# ServiceLabel: %Search -# PRLabel: %Search -/sdk/search/ @alzimmermsft @jairmyree @Azure/azsdk-search +# ServiceLabel: %Cognitive - Bing +# ServiceOwners: @jaggerbodas-ms @arwong -# AzureSdkOwners: @alzimmermsft -# ServiceLabel: %Azure.Core -# PRLabel: %Azure.Core -/sdk/serialization/ @alzimmermsft @srnagar +# ServiceLabel: %Cognitive - Mgmt +# ServiceOwners: @yangyuan -# AzureSdkOwners: @anuchandy -# ServiceLabel: %Service Bus -# PRLabel: %Service Bus -/sdk/servicebus/ @anuchandy @conniey @lmolkova +# ServiceLabel: %Commerce +# ServiceOwners: @ms-premp @qiaozha -# ServiceLabel: %Service Bus %Service Attention %Track 1 -# PRLabel: %Service Bus -/sdk/servicebus/microsoft-azure-servicebus/ @shankarsama @yvgopal +# PRLabel: %Communication +/sdk/communication/ -# ServiceLabel: %Storage -# PRLabel: %Storage -/sdk/storage/ @ibrahimrabab @seanmcc-msft @ibrandes @alzimmermsft +# ServiceLabel: %Communication +# ServiceOwners: @acsdevx-msft -# AzureSdkOwners: @jairmyree -# ServiceLabel: %Tables -# PRLabel: %Tables -/sdk/tables/ @jairmyree @vcolin7 +# PRLabel: %Communication - Calling Server +/sdk/communication/azure-communication-callingserver/ @minwoolee-msft -# PRLabel: %EngSys -/sdk/template/ @hallipr @weshaggard @JimSuplizio +# PRLabel: %Communication - Call Automation +/sdk/communication/azure-communication-callautomation/ @juntuchen-msft @cochi2 +# PRLabel: %Communication - Chat +/sdk/communication/azure-communication-chat/ @ankitarorabit @minnieliu @Azure/azure-sdk-communication-code-reviewers -# AzureSdkOwners: @samvaity -# ServiceLabel: %Cognitive - Text Analytics -# PRLabel: %Cognitive - Text Analytics -/sdk/textanalytics/ @samvaity @mssfang @quentinRobinson @wangyuantao +# PRLabel: %Communication - Identity +/sdk/communication/azure-communication-identity/ @Azure/acs-identity-sdk @AikoBB @maximrytych-ms @mjafferi-msft -# AzureSdkOwners: @srnagar @jonathangiles -# ServiceLabel: %Azure SDK Tools -# PRLabel: %Azure SDK Tools -/sdk/tools/ @srnagar @jonathangiles +# PRLabel: %Communication - Common +/sdk/communication/azure-communication-common/ @Azure/acs-identity-sdk @AikoBB @maximrytych-ms @mjafferi-msft -# ServiceLabel: %azure-spring -# PRLabel: %azure-spring -/sdk/spring/ @chenrujun @netyyyy @saragluna @moarychan -# PRLabel: %azure-spring -/sdk/spring-experimental/ @chenrujun @netyyyy @saragluna @moarychan +# PRLabel: %Communication - Network Traversal +/sdk/communication/azure-communication-networktraversal/ @ankitarorabit @minnieliu @Azure/azure-sdk-communication-code-reviewers -# ServiceLabel: %Monitor - Spring -# PRLabel: %Monitor - Spring -/sdk/spring/spring-cloud-azure-starter-monitor @jeanbisutti @trask @ramthi @heyams -/sdk/spring/spring-cloud-azure-starter-monitor-test @jeanbisutti @trask @ramthi @heyams +# PRLabel: %Communication - Phone Numbers +/sdk/communication/azure-communication-phonenumbers/ @miguhern @whisper6284 @RoyHerrod @danielav7 -# PRLabel: %azure-spring -/sdk/spring/spring-cloud-azure-appconfiguration-config*/ @mrm9084 @chenrujun @netyyyy @saragluna @moarychan -/sdk/spring/spring-cloud-azure-feature-management*/ @mrm9084 @chenrujun @netyyyy @saragluna @moarychan -/sdk/spring/spring-cloud-azure-starter-appconfiguration-config/ @mrm9084 @chenrujun @netyyyy @saragluna @moarychan -# PRLabel: %azure-spring -/sdk/spring/azure-spring-data-cosmos/ @kushagraThapar @FabianMeiswinkel @trande4884 @TheovanKraay @xinlian12 @chenrujun @netyyyy @saragluna @moarychan @aayush3011 @simorenoh @jeet1995 @Pilchie +# PRLabel: %Communication - SMS +/sdk/communication/azure-communication-sms/ @DimaKolomiiets @gfeitosa-msft @besh2014 @phermanov-msft @ilyapaliakou-msft +# PRLabel: %Communication - Resource Manager +/sdk/communication/azure-resourcemanager-communication/ -# PRLabel: %DevCenter -/sdk/devcenter/ @sebrenna @mharlan +# PRLabel: %Communication - Rooms +/sdk/communication/azure-communication-rooms/ @minnieliu @paolamvhz @alexokun @Mrayyan @shwali-msft @allchiang-msft @mikehang-msft -# end to end tests -# AzureSdkOwners: @g2vinay @billwert -# ServiceLabel: %Azure.Identity -# PRLabel: %Azure.Identity -/sdk/e2e/ @g2vinay @billwert +# ServiceLabel: %Compute +# ServiceOwners: @Drewm3 @avirishuv @vaibhav-agar @amjads1 +# ServiceLabel: %Compute - Extensions +# ServiceOwners: @Drewm3 @amjads1 -# AzureSdkOwners: @alzimmermsft @srnagar -# ServiceLabel: %common -# PRLabel: %common -/common/smoke-tests/ @alzimmermsft @srnagar @joshfree @jonathangiles @g2vinay @conniey +# ServiceLabel: %Compute - Images +# ServiceOwners: @Drewm3 @vaibhav-agar +# ServiceLabel: %Compute - Managed Disks +# ServiceOwners: @Drewm3 @vaibhav-agar -# -# Management Plane -# +# ServiceLabel: %Compute - RDFE +# ServiceOwners: @Drewm3 @avirishuv -# AzureSdkOwners: @weidongxu-microsoft -# ServiceLabel: %Mgmt -# PRLabel: %Mgmt -/sdk/resourcemanager/ @weidongxu-microsoft @haolingdong-msft @XiaofeiCao @arthurma1978 +# ServiceLabel: %Compute - VM +# ServiceOwners: @Drewm3 @avirishuv -# AzureSdkOwners: @weidongxu-microsoft -# ServiceLabel: %Mgmt -# PRLabel: %Mgmt -/sdk/**/azure-resourcemanager-*/ @weidongxu-microsoft @haolingdong-msft @XiaofeiCao @arthurma1978 +# ServiceLabel: %Compute - VMSS +# ServiceOwners: @Drewm3 @avirishuv -# AzureSdkOwners: @weidongxu-microsoft -# ServiceLabel: %Mgmt -# PRLabel: %Mgmt -/sdk/resourcemanagerhybrid/ @weidongxu-microsoft @haolingdong-msft @XiaofeiCao @arthurma1978 @bganapa +# ServiceLabel: %Connected Kubernetes +# ServiceOwners: @akashkeshari +# ServiceLabel: %Consumption - Billing +# ServiceOwners: @ccmbpxpcrew -# Quantum -# PRLabel: %Azure Quantum -/sdk/quantum/ @vxfield @cgranade @ricardo-espinoza @anjbur @msoeken @guenp +# ServiceLabel: %Consumption - Budget +# ServiceOwners: @ccmaxpcrew +# ServiceLabel: %Consumption - Query +# ServiceOwners: @ccmixpdevs -# ServiceLabel: %AAD %Service Attention -#// @adamedx +# ServiceLabel: %Consumption - RIandShowBack +# ServiceOwners: @ccmshowbackdevs -# ServiceLabel: %AKS %Service Attention -#// @Azure/aks-pm +# ServiceLabel: %Consumption - UsageDetailsAndExport +# ServiceOwners: @TiagoCrewGitHubIssues -# ServiceLabel: %Alerts Management %Service Attention -#// @liadtal @yairgil +# ServiceLabel: %Container Instances +# ServiceOwners: @macolso -# ServiceLabel: %ARM %Service Attention -#// @armleads-azure +# PRLabel: %Container Registry +/sdk/containerregistry/ @lmolkova @alzimmermsft @Azure/azsdk-acr -# ServiceLabel: %ARM - Templates %Service Attention -#// @armleads-azure +# ServiceLabel: %Container Registry +# AzureSdkOwners: @lmolkova +# ServiceOwners: @toddysm @northtyphoon -# ServiceLabel: %ARM - Tags %Service Attention -#// @armleads-azure +# ServiceLabel: %Container Service +# ServiceOwners: @qike-ms @jwilder @thomas1206 @seanmck -# ServiceLabel: %ARM - Core %Service Attention -#// @armleads-azure +# ServiceLabel: %Cosmos +# ServiceOwners: @kushagraThapar @TheovanKraay @pjohari-ms -# ServiceLabel: %ARM - Managed Applications %Service Attention -#// @armleads-azure +# PRLabel: %Cosmos +/sdk/cosmos/ @kushagraThapar @FabianMeiswinkel @kirankumarkolli @xinlian12 @milismsft @aayush3011 @simorenoh @jeet1995 @Pilchie -# ServiceLabel: %ARM - Service Catalog %Service Attention -#// @armleads-azure +# ServiceLabel: %Cost Management - Billing +# ServiceOwners: @ccmbpxpcrew -# ServiceLabel: %ARM - RBAC %Service Attention -#// @armleads-azure +# ServiceLabel: %Cost Management - Budget +# ServiceOwners: @ccmaxpcrew -# ServiceLabel: %Advisor %Service Attention -#// @mojayara @Prasanna-Padmanabhan +# ServiceLabel: %Cost Management - Query +# ServiceOwners: @ccmixpdevs -# ServiceLabel: %Analysis Services %Service Attention -#// @athipp @taiwu @minghan +# ServiceLabel: %Cost Management - RIandShowBack +# ServiceOwners: @ccmshowbackdevs -# ServiceLabel: %API Management %Service Attention -#// @miaojiang +# ServiceLabel: %Cost Management - UsageDetailsAndExport +# ServiceOwners: @TiagoCrewGitHubIssues -# ServiceLabel: %Application Insights %Service Attention -#// @azmonapplicationinsights +# ServiceLabel: %Customer Insights +# ServiceOwners: @shefymk -# ServiceLabel: %App Services %Service Attention -#// @antcp @AzureAppServiceCLI +# ServiceLabel: %Custom Providers +# ServiceOwners: @manoharp @MSEvanhi -# ServiceLabel: %App Configuration %Service Attention -#// @shenmuxiaosen @avanigupta +# ServiceLabel: %CycleCloud +# ServiceOwners: @adriankjohnson -# ServiceLabel: %ARO %Service Attention -#// @mjudeikis @jim-minter @julienstroheker @amanohar +# ServiceLabel: %Data Bricks +# ServiceOwners: @arindamc -# ServiceLabel: %Attestation %Service Attention -#// @anilba06 +# ServiceLabel: %DataBox +# ServiceOwners: @tmvishwajit @matdickson @manuaery @madhurinms -# ServiceLabel: %Authorization %Service Attention -#// @darshanhs90 @AshishGargMicrosoft +# ServiceLabel: %DataBox Edge +# ServiceOwners: @a-t-mason @ganzee @manuaery -# ServiceLabel: %Automation %Service Attention -#// @jaspkaur28 @omairabdullah +# ServiceLabel: %Data Catalog +# ServiceOwners: @ingave -# ServiceLabel: %AVS %Service Attention -#// @divka78 @amitchat @aishu +# ServiceLabel: %Data Factory +# ServiceOwners: @shawnxzq @lmy269 @Jingshu923 -# ServiceLabel: %Azure Stack %Service Attention -#// @sijuman @sarathys @bganapa @rakku-ms +# ServiceLabel: %Data Lake +# ServiceOwners: @sumantmehtams -# ServiceLabel: %Batch %Service Attention -#// @mksuni @bgklein @mscurrell @cRui861 @paterasMSFT @gingi @dpwatrous +# ServiceLabel: %Data Lake Storage Gen1 +# ServiceOwners: @sumantmehtams -# ServiceLabel: %BatchAI %Service Attention -#// @matthchr +# ServiceLabel: %Data Lake Storage Gen2 +# ServiceOwners: @sumantmehtams -# ServiceLabel: %Billing %Service Attention -#// @cabbpt +# ServiceLabel: %Data Lake Analytics +# ServiceOwners: @idear1203 -# ServiceLabel: %Blueprint %Service Attention -#// @alex-frankel @filizt +# ServiceLabel: %Data Lake Store +# ServiceOwners: @sumantmehtams -# ServiceLabel: %Bot Service %Service Attention -#// @sgellock +# ServiceLabel: %Data Migration +# ServiceOwners: @radjaram @kavitham10 -# ServiceLabel: %Cloud Shell %Service Attention -#// @maertendMSFT +# ServiceLabel: %Data Share +# ServiceOwners: @raedJarrar @jifems -# ServiceLabel: %Cognitive - Text Analytics %Service Attention -#// @assafi +# PRLabel: %DevCenter +/sdk/devcenter/ @sebrenna @mharlan -# ServiceLabel: %Cognitive - Form Recognizer %Service Attention -#// @ctstone @vkurpad +# ServiceLabel: %DevCenter +# ServiceOwners: @sebrenna @mharlan -# ServiceLabel: %Cognitive - Anomaly Detector %Service Attention -#// @yingqunpku @bowgong +# ServiceLabel: %Device Provisioning Service +# ServiceOwners: @nberdy -# ServiceLabel: %Cognitive - Custom Vision %Service Attention -#// @areddish @tburns10 +# ServiceLabel: %Device Update +/sdk/deviceupdate/ @dpokluda -# ServiceLabel: %Cognitive - Computer Vision %Service Attention -#// @ryogok @TFR258 @tburns10 +# ServiceLabel: %Device Update +# ServiceOwners: @dpokluda -# ServiceLabel: %Cognitive - Face %Service Attention -#// @JinyuID @dipidoo @SteveMSFT +# ServiceLabel: %DevOps +# ServiceOwners: @narula0781 @ashishonce @romil07 -# ServiceLabel: %Cognitive - QnA Maker %Service Attention -#// @bingisbestest @nerajput1607 +# ServiceLabel: %Dev Spaces +# ServiceOwners: @yuzorMa @johnsta @greenie-msft -# ServiceLabel: %Cognitive - Translator %Service Attention -#// @swmachan +# ServiceLabel: %Devtestlab +# ServiceOwners: @Tanmayeekamath -# ServiceLabel: %Cognitive - Speech %Service Attention -#// @robch @oscholz +# PRLabel: %Digital Twins +/sdk/digitaltwins/ @johngallardo @efriesner @abhinav-ghai @Aashish93-stack @sjiherzig @Satya-Kolluri -# ServiceLabel: %Cognitive - LUIS %Service Attention -#// @cahann @kayousef +# ServiceLabel: %Digital Twins +# ServiceOwners: @drwill-ms @timtay-microsoft @abhipsaMisra @vinagesh @azabbasi @barustum @jamdavi -# ServiceLabel: %Cognitive - Content Moderator %Service Attention -#// @swiftarrow11 +# PRLabel: %Event Grid +/sdk/eventgrid/ @billwert @mssfang @srnagar @lmolkova -# ServiceLabel: %Cognitive - Personalizer %Service Attention -/sdk/personalizer/ @sharathmalladi +# ServiceLabel: %Event Grid +# AzureSdkOwners: @billwert +# ServiceOwners: @jfggdl -# ServiceLabel: %Cognitive - Immersive Reader %Service Attention -#// @metanMSFT +# PRLabel: %Event Hubs +/sdk/eventhubs/ @conniey @anuchandy @lmolkova -# ServiceLabel: %Cognitive - Ink Recognizer %Service Attention -#// @olduroja +# ServiceLabel: %Event Hubs +# AzureSdkOwners: @conniey @anuchandy @lmolkova +# ServiceOwners: @serkantkaraca @sjkwak -# ServiceLabel: %Cognitive - Bing %Service Attention -#// @jaggerbodas-ms @arwong +# PRLabel: %Event Hubs +/sdk/eventhubs/microsoft-azure-eventhubs-eph/ @sjkwak -# ServiceLabel: %Cognitive - Mgmt %Service Attention -#// @yangyuan +# PRLabel: %Event Hubs +/sdk/eventhubs/microsoft-azure-eventhubs-extensions/ @sjkwak -# ServiceLabel: %Commerce %Service Attention -#// @ms-premp @qiaozha +# PRLabel: %Event Hubs +/sdk/eventhubs/microsoft-azure-eventhubs/ @sjkwak -# ServiceLabel: %Compute %Service Attention -#// @Drewm3 @avirishuv @vaibhav-agar @amjads1 +# ServiceLabel: %Functions +# ServiceOwners: @ahmedelnably @fabiocav -# ServiceLabel: %Compute - Extensions %Service Attention -#// @Drewm3 @amjads1 +# ServiceLabel: %Graph.Microsoft +# ServiceOwners: @dkershaw10 @baywet -# ServiceLabel: %Compute - Images %Service Attention -#// @Drewm3 @vaibhav-agar +# ServiceLabel: %Guest Configuration +# ServiceOwners: @mgreenegit @vivlingaiah -# ServiceLabel: %Compute - Managed Disks %Service Attention -#// @Drewm3 @vaibhav-agar +# ServiceLabel: %HDInsight +# ServiceOwners: @aim-for-better @idear1203 @deshriva -# ServiceLabel: %Compute - RDFE %Service Attention -#// @Drewm3 @avirishuv +# ServiceLabel: %HPC Cache +# ServiceOwners: @romahamu @omzevall -# ServiceLabel: %Compute - VM %Service Attention -#// @Drewm3 @avirishuv +# PRLabel: %Azure.Identity +/sdk/identity/ @g2vinay @billwert @joshfree @Azure/azure-sdk-write-identity -# ServiceLabel: %Compute - VMSS %Service Attention -#// @Drewm3 @avirishuv +# ServiceLabel: %Azure.Identity +# AzureSdkOwners: @g2vinay @billwert -# ServiceLabel: %Connected Kubernetes %Service Attention -#// @akashkeshari +# PRLabel: %Image Analysis +/sdk/vision/azure-ai-vision-imageanalysis/ @dargilco @rhurey -# ServiceLabel: %Container Instances %Service Attention -#// @macolso +# ServiceLabel: %Image Analysis +# ServiceOwners: @rhurey @dargilco -# ServiceLabel: %Container Registry %Service Attention -#// @toddysm @northtyphoon +# ServiceLabel: %Import Export +# ServiceOwners: @madhurinms -# ServiceLabel: %Container Service %Service Attention -#// @qike-ms @jwilder @thomas1206 @seanmck +# ServiceLabel: %IoT - CLI +# ServiceOwners: @Azure/azure-iot-cli-triage -# ServiceLabel: %Cosmos %Service Attention -#// @kushagraThapar @TheovanKraay @pjohari-ms +# PRLabel: %KeyVault +/sdk/keyvault/ @vcolin7 @g2vinay @Azure/azsdk-keyvault -# ServiceLabel: %Customer Insights %Service Attention -#// @shefymk +# ServiceLabel: %KeyVault +# AzureSdkOwners: @vcolin7 +# ServiceOwners: @RandalliLama @schaabs @jlichwa -# ServiceLabel: %Custom Providers %Service Attention -#// @manoharp @MSEvanhi +# ServiceLabel: %Kubernetes Configuration +# ServiceOwners: @NarayanThiru -# ServiceLabel: %CycleCloud %Service Attention -#// @adriankjohnson +# ServiceLabel: %Lab Services +# ServiceOwners: @Tanmayeekamath -# ServiceLabel: %Data Bricks %Service Attention -#// @arindamc +# PRLabel: %Load Testing +/sdk/loadtesting/ @Harshan01 @prativen -# ServiceLabel: %DataBox %Service Attention -#// @tmvishwajit @matdickson @manuaery @madhurinms +/sdk/loganalytics/microsoft-azure-loganalytics/ @ischrei -# ServiceLabel: %DataBox Edge %Service Attention -#// @a-t-mason @ganzee @manuaery +# ServiceLabel: %Logic App +# ServiceOwners: @Azure/azure-logicapps-team -# ServiceLabel: %Data Catalog %Service Attention -#// @ingave +# ServiceLabel: %LOUIS +# ServiceOwners: @minamnmik -# ServiceLabel: %Data Factory %Service Attention -#// @shawnxzq @lmy269 @Jingshu923 +# ServiceLabel: %Managed Identity +# ServiceOwners: @varunkch -# ServiceLabel: %Data Lake %Service Attention -#// @sumantmehtams +# ServiceLabel: %Machine Learning +# ServiceOwners: @azureml-github -# ServiceLabel: %Data Lake Storage Gen1 %Service Attention -#// @sumantmehtams +# ServiceLabel: %Machine Learning Compute +# ServiceOwners: @azureml-github -# ServiceLabel: %Data Lake Storage Gen2 %Service Attention -#// @sumantmehtams +# ServiceLabel: %Machine Learning Experimentation +# ServiceOwners: @aashishb -# ServiceLabel: %Data Lake Analytics %Service Attention -#// @idear1203 +# ServiceLabel: %Managed Services +# ServiceOwners: @Lighthouse-Azure -# ServiceLabel: %Data Lake Store %Service Attention -#// @sumantmehtams +# ServiceLabel: %MariaDB +# ServiceOwners: @ambhatna @savjani -# ServiceLabel: %Data Migration %Service Attention -#// @radjaram @kavitham10 +# ServiceLabel: %Marketplace Ordering +# ServiceOwners: @prbansa -# ServiceLabel: %Data Share %Service Attention -#// @raedJarrar @jifems +# ServiceLabel: %Media Services +# ServiceOwners: @akucer -# ServiceLabel: %DevOps %Service Attention -#// @narula0781 @ashishonce @romil07 +# ServiceLabel: %Migrate +# ServiceOwners: @shijojoy -# ServiceLabel: %Dev Spaces %Service Attention -#// @yuzorMa @johnsta @greenie-msft +# PRLabel: %Mixed Reality Authentication +/sdk/mixedreality/azure-mixedreality-authentication/ @RamonArguelles -# ServiceLabel: %Devtestlab %Service Attention -#// @Tanmayeekamath +# ServiceLabel: %Mobile Engagement +# ServiceOwners: @kpiteira -# ServiceLabel: %Device Provisioning Service %Service Attention -#// @nberdy +# PRLabel: %Models Repository +/sdk/modelsrepository/ @drwill-ms @timtay-microsoft @abhipsaMisra @digimaun @andyk-ms @brycewang-microsoft @tmahmood-microsoft @ngastelum-ms -# ServiceLabel: %Digital Twins %Service Attention -#// @@drwill-ms @@timtay-microsoft @@abhipsaMisra @@vinagesh @@azabbasi @@barustum @@jamdavi +# PRLabel: %Monitor +/sdk/monitor/azure-monitor-query*/ @srnagar @jairmyree @lmolkova @Azure/azure-sdk-write-monitor-data-plane -# ServiceLabel: %Event Grid %Service Attention -#// @jfggdl +# PRLabel: %Monitor +/sdk/monitor/azure-monitor-ingestion*/ @srnagar @jairmyree @lmolkova @Azure/azure-sdk-write-monitor-data-plane -# ServiceLabel: %Event Hubs %Service Attention -#// @kasun04 +# ServiceLabel: %Monitor +# AzureSdkOwners: @srnagar @jairmyree +# ServiceOwners: @SameergMS @dadunl @AzMonEssential @AzmonAlerts @AzmonActionG @AzmonLogA -# ServiceLabel: %Functions %Service Attention -#// @ahmedelnably @fabiocav +# ServiceLabel: %Monitor - ApplicationInsights +# ServiceOwners: @azmonapplicationinsights -# ServiceLabel: %Graph.Microsoft %Service Attention -#// @dkershaw10 @baywet +# ServiceLabel: %MySQL +# ServiceOwners: @ambhatna @savjani -# ServiceLabel: %Guest Configuration %Service Attention -#// @mgreenegit @vivlingaiah +# PRLabel: %OpenTelemetry +/sdk/monitor/azure-monitor-opentelemetry-exporter/ @trask @ramthi @heyams @jeanbisutti -# ServiceLabel: %HDInsight %Service Attention -#// @aim-for-better @idear1203 @deshriva +# ServiceLabel: %Network +# ServiceOwners: @aznetsuppgithub -# ServiceLabel: %HPC Cache %Service Attention -#// @romahamu @omzevall +# ServiceLabel: %Network - Application Gateway +# ServiceOwners: @appgwsuppgithub -# ServiceLabel: %Import Export %Service Attention -#// @madhurinms +# ServiceLabel: %Network - CDN +# ServiceOwners: @cdnfdsuppgithub -# ServiceLabel: %KeyVault %Service Attention -#// @RandalliLama @schaabs @jlichwa +# ServiceLabel: %Network - DDOS Protection +# ServiceOwners: @ddossuppgithub -# ServiceLabel: %Kubernetes Configuration %Service Attention -#// @NarayanThiru +# ServiceLabel: %Network - ExpressRoute +# ServiceOwners: @exrsuppgithub -# ServiceLabel: %Azure Data Explorer %Service Attention -#// @ilayrn @astauben @zoharHenMicrosoft @sagivf @Aviv-Yaniv +# ServiceLabel: %Network - Firewall +# ServiceOwners: @fwsuppgithub -# ServiceLabel: %Lab Services %Service Attention -#// @Tanmayeekamath +# ServiceLabel: %Network - Front Door +# ServiceOwners: @cdnfdsuppgithub -# ServiceLabel: %Logic App %Service Attention -#// @Azure/azure-logicapps-team +# ServiceLabel: %Network - Load Balancer +# ServiceOwners: @slbsupportgithub -# ServiceLabel: %LOUIS %Service Attention -#// @minamnmik +# ServiceLabel: %Network - Virtual Network NAT +# ServiceOwners: @vnetsuppgithub -# ServiceLabel: %Managed Identity %Service Attention -#// @varunkch +# ServiceLabel: %Network - Network Watcher +# ServiceOwners: @netwatchsuppgithub -# ServiceLabel: %Machine Learning %Service Attention -#// @azureml-github +# ServiceLabel: %Network - DNS +# ServiceOwners: @dnssuppgithub -# ServiceLabel: %Machine Learning Compute %Service Attention -#// @azureml-github +# ServiceLabel: %Network - Traffic Manager +# ServiceOwners: @tmsuppgithub -# ServiceLabel: %Machine Learning Experimentation %Service Attention -#// @aashishb +# ServiceLabel: %Network - VPN Gateway +# ServiceOwners: @vpngwsuppgithub -# ServiceLabel: %Managed Services %Service Attention -#// @Lighthouse-Azure +# ServiceLabel: %Network - Virtual Network +# ServiceOwners: @vnetsuppgithub -# ServiceLabel: %MariaDB %Service Attention -#// @ambhatna @savjani +# ServiceLabel: %Network - Virtual WAN +# ServiceOwners: @vwansuppgithub -# ServiceLabel: %Marketplace Ordering %Service Attention -#// @prbansa +# ServiceLabel: %Network - Network Virtual Appliance +# ServiceOwners: @nvasuppgithub -# ServiceLabel: %Media Services %Service Attention -#// @akucer +# ServiceLabel: %Network - Bastion +# ServiceOwners: @bastionsuppgithub -# ServiceLabel: %Migrate %Service Attention -#// @shijojoy +# ServiceLabel: %Network - Private Link +# ServiceOwners: @privlinksuppgithub -# ServiceLabel: %Mobile Engagement %Service Attention -#// @kpiteira +# ServiceLabel: %Notification Hub +# ServiceOwners: @tjsomasundaram -# ServiceLabel: %Monitor %Service Attention -#// @SameergMS @dadunl @AzMonEssential @AzmonAlerts @AzmonActionG @AzmonLogA +# PRLabel: %OpenAI +/sdk/openai/azure-ai-openai/ @brandom-msft @jpalvarezl @mssfang -# ServiceLabel: %Monitor - ApplicationInsights %Service Attention -#// @azmonapplicationinsights +# PRLabel: %OpenAI +/sdk/openai/azure-ai-openai-assistants/ @brandom-msft @jpalvarezl @mssfang -# ServiceLabel: %MySQL %Service Attention -#// @ambhatna @savjani +# ServiceLabel: %Operational Insights +# ServiceOwners: @AzmonLogA -# ServiceLabel: %Network %Service Attention -#// @aznetsuppgithub +# ServiceLabel: %Policy +# ServiceOwners: @aperezcloud @kenieva -# ServiceLabel: %Network - Application Gateway %Service Attention -#// @appgwsuppgithub +# ServiceLabel: %Policy Insights +# ServiceOwners: @kenieva -# ServiceLabel: %Network - CDN %Service Attention -#// @cdnfdsuppgithub +# ServiceLabel: %PostgreSQL +# ServiceOwners: @sunilagarwal @lfittl-msft @sr-msft @niklarin -# ServiceLabel: %Network - DDOS Protection %Service Attention -#// @ddossuppgithub +# PRLabel: %Azure Quantum +/sdk/quantum/ @vxfield @cgranade @ricardo-espinoza @anjbur @msoeken @guenp -# ServiceLabel: %Network - ExpressRoute %Service Attention -#// @exrsuppgithub +# ServiceLabel: %Recovery Services Backup +# ServiceOwners: @Daya-Patil -# ServiceLabel: %Network - Firewall %Service Attention -#// @fwsuppgithub +# ServiceLabel: %Recovery Services Site-Recovery +# ServiceOwners: @Sharmistha-Rai -# ServiceLabel: %Network - Front Door %Service Attention -#// @cdnfdsuppgithub +# ServiceLabel: %Redis Cache +# ServiceOwners: @yegu-ms -# ServiceLabel: %Network - Load Balancer %Service Attention -#// @slbsupportgithub +# ServiceLabel: %Relay +# ServiceOwners: @jfggdl -# ServiceLabel: %Network - Virtual Network NAT %Service Attention -#// @vnetsuppgithub +# PRLabel: %Remote Rendering +/sdk/remoterendering/ @MichaelZp0 @ChristopherManthei -# ServiceLabel: %Network - Network Watcher %Service Attention -#// @netwatchsuppgithub +# ServiceLabel: %Reservations +# ServiceOwners: @Rkapso -# ServiceLabel: %Network - DNS %Service Attention -#// @dnssuppgithub +# ServiceLabel: %Resource Authorization +# ServiceOwners: @darshanhs90 @AshishGargMicrosoft -# ServiceLabel: %Network - Traffic Manager %Service Attention -#// @tmsuppgithub +# ServiceLabel: %Resource Graph +# ServiceOwners: @chiragg4u -# ServiceLabel: %Network - VPN Gateway %Service Attention -#// @vpngwsuppgithub +# ServiceLabel: %Resource Health +# ServiceOwners: @stephbaron -# ServiceLabel: %Notification Hub %Service Attention -#// @tjsomasundaram +# ServiceLabel: %Scheduler +# ServiceOwners: @derek1ee -# ServiceLabel: %Operational Insights %Service Attention -#// @AzmonLogA +# PRLabel: %Schema Registry +/sdk/schemaregistry/ @conniey @srnagar -# ServiceLabel: %Policy %Service Attention -#// @aperezcloud @kenieva +# ServiceLabel: %Schema Registry +# AzureSdkOwners: @conniey +# ServiceOwners: @hmlam -# ServiceLabel: %Policy Insights %Service Attention -#// @kenieva +# PRLabel: %Search +/sdk/search/ @alzimmermsft @jairmyree @Azure/azsdk-search -# ServiceLabel: %PostgreSQL %Service Attention -#// @sunilagarwal @lfittl-msft @sr-msft @niklarin +# ServiceLabel: %Search +# AzureSdkOwners: @alzimmermsft @jairmyree +# ServiceOwners: @bleroy @tjacobhi @markheff @miwelsh -# ServiceLabel: %Recovery Services Backup %Service Attention -#// @Daya-Patil +# ServiceLabel: %Security +# ServiceOwners: @chlahav -# ServiceLabel: %Recovery Services Site-Recovery %Service Attention -#// @Sharmistha-Rai +# ServiceLabel: %SecurityInsights +# ServiceOwners: @amirkeren -# ServiceLabel: %Redis Cache %Service Attention -#// @yegu-ms +# ServiceLabel: %Service Bus +# AzureSdkOwners: @anuchandy @conniey @lmolkova +# ServiceOwners: @EldertGrootenboer -# ServiceLabel: %Relay %Service Attention -#// @jfggdl +# PRLabel: %Service Bus +/sdk/servicebus/ @anuchandy @conniey @lmolkova -# ServiceLabel: %Reservations %Service Attention -#// @Rkapso +# PRLabel: %Service Bus %Track 1 +/sdk/servicebus/microsoft-azure-servicebus/ @shankarsama @yvgopal -# ServiceLabel: %Resource Authorization %Service Attention -#// @darshanhs90 @AshishGargMicrosoft +# ServiceLabel: %Service Bus %Track 1 +# AzureSdkOwners: @shankarsama @yvgopal -# ServiceLabel: %Resource Graph %Service Attention -#// @chiragg4u +# ServiceLabel: %Service Fabric +# ServiceOwners: @QingChenmsft @vaishnavk @juhacket -# ServiceLabel: %Resource Health %Service Attention -#// @stephbaron +# ServiceLabel: %SignalR +# ServiceOwners: @sffamily @chenkennt -# ServiceLabel: %Scheduler %Service Attention -#// @derek1ee +# ServiceLabel: %SQL +# ServiceOwners: @azureSQLGitHub -# ServiceLabel: %Search %Service Attention -#// @bleroy @tjacobhi @markheff @miwelsh +# ServiceLabel: %SQL - VM +# ServiceOwners: @azureSQLGitHub -# ServiceLabel: %Security %Service Attention -#// @chlahav +# ServiceLabel: %SQL - Backup & Restore +# ServiceOwners: @azureSQLGitHub -# ServiceLabel: %Service Attention %Service Bus -#// @EldertGrootenboer +# ServiceLabel: %SQL - Data Security +# ServiceOwners: @azureSQLGitHub -# ServiceLabel: %Service Attention %Service Fabric -#// @QingChenmsft @vaishnavk @juhacket +# ServiceLabel: %SQL - Elastic Jobs +# ServiceOwners: @azureSQLGitHub -# ServiceLabel: %Schema Registry %Service Attention -#// @arerlend @alzimmermsft +# ServiceLabel: %SQL - Managed Instance +# ServiceOwners: @azureSQLGitHub -# ServiceLabel: %Service Attention %SignalR -#// @sffamily @chenkennt +# ServiceLabel: %SQL - Replication & Failover +# ServiceOwners: @azureSQLGitHub -# ServiceLabel: %Service Attention %SQL -#// @azureSQLGitHub +# PRLabel: %Storage +/sdk/storage/ @ibrahimrabab @seanmcc-msft @ibrandes @alzimmermsft -# ServiceLabel: %Service Attention %SQL - VM -#// @azureSQLGitHub +# ServiceLabel: %Storage +# AzureSdkOwners: @ibrahimrabab @seanmcc-msft @ibrandes +# ServiceOwners: @xgithubtriage -# ServiceLabel: %Service Attention %SQL - Backup & Restore -#// @azureSQLGitHub +# ServiceLabel: %Storsimple +# ServiceOwners: @anoobbacker @ganzee @manuaery @patelkunal -# ServiceLabel: %Service Attention %SQL - Data Security -#// @azureSQLGitHub +# ServiceLabel: %Stream Analytics +# ServiceOwners: @atpham256 -# ServiceLabel: %Service Attention %SQL - Elastic Jobs -#// @azureSQLGitHub +# ServiceLabel: %Subscription +# ServiceOwners: @anuragdalmia @shilpigautam @ramaganesan-rg -# ServiceLabel: %Service Attention %SQL - Managed Instance -#// @azureSQLGitHub +# ServiceLabel: %Support +# ServiceOwners: @shahbj79 @mit2nil @aygoya @ganganarayanan -# ServiceLabel: %Service Attention %SQL - Replication & Failover -#// @azureSQLGitHub +# ServiceLabel: %Synapse +# ServiceOwners: @wonner @zesluo -# ServiceLabel: %Service Attention %Storage -#// @xgithubtriage +# PRLabel: %Tables +/sdk/tables/ @jairmyree @vcolin7 -# ServiceLabel: %Service Attention %Storsimple -#// @anoobbacker @ganzee @manuaery @patelkunal +# ServiceLabel: %Tables +# AzureSdkOwners: @jairmyree +# ServiceOwners: @klaaslanghout -# ServiceLabel: %Service Attention %Stream Analytics -#// @atpham256 +# PRLabel: %EngSys +/sdk/template/ @hallipr @weshaggard @JimSuplizio -# ServiceLabel: %Service Attention %Subscription -#// @anuragdalmia @shilpigautam @ramaganesan-rg +# ServiceLabel: %TimeseriesInsights +# ServiceOwners: @Shipra1Mishra -# ServiceLabel: %Service Attention %Support -#// @shahbj79 @mit2nil @aygoya @ganganarayanan +# ServiceLabel: %vFXT +# ServiceOwners: @zhusijia26 -# ServiceLabel: %Service Attention %Synapse -#// @wonner @zesluo +# ServiceLabel: %Web Apps +# ServiceOwners: @AzureAppServiceCLI @antcp -# ServiceLabel: %Service Attention %Tables -#// @klaaslanghout +# PRLabel: %Azure SDK Tools +/sdk/tools/ @srnagar @jonathangiles -# ServiceLabel: %Service Attention %TimeseriesInsights -#// @Shipra1Mishra +# ServiceLabel: %Azure SDK Tools +# AzureSdkOwners: @srnagar @jonathangiles -# ServiceLabel: %Service Attention %vFXT -#// @zhusijia26 +# ######## Spring ######## -# ServiceLabel: %Service Attention %Web Apps -#// @AzureAppServiceCLI @antcp +# ServiceLabel: %azure-spring +# AzureSdkOwners: @saragluna @chenrujun @netyyyy @moarychan -# ServiceLabel: %Network - Virtual Network %Service Attention -#// @vnetsuppgithub +# ServiceLabel: %Azure.Spring - Cosmos +# ServiceOwners: @kushagraThapar -# ServiceLabel: %Network - Virtual WAN %Service Attention -#// @vwansuppgithub +# PRLabel: %azure-spring +/sdk/identity/azure-identity-extensions/ @chenrujun @netyyyy @saragluna @moarychan -# ServiceLabel: %Network - Network Virtual Appliance %Service Attention -#// @nvasuppgithub +# PRLabel: %azure-spring +/sdk/keyvault/azure-security-keyvault-jca/ @chenrujun @netyyyy @saragluna @moarychan -# ServiceLabel: %Network - Bastion %Service Attention -#// @bastionsuppgithub +# PRLabel: %azure-spring +/sdk/spring/ @chenrujun @netyyyy @saragluna @moarychan -# ServiceLabel: %Azure.Spring - Cosmos -#// @kushagraThapar +# PRLabel: %azure-spring +/sdk/spring-experimental/ @chenrujun @netyyyy @saragluna @moarychan -# ServiceLabel: %Network - Private Link %Service Attention -#// @privlinksuppgithub +# PRLabel: %Monitor - Spring +/sdk/spring/spring-cloud-azure-starter-monitor @jeanbisutti @trask @ramthi @heyams -# ServiceLabel: %Azure Arc enabled servers %Service Attention -#// @rpsqrd @edyoung +# PRLabel: %Monitor - Spring +/sdk/spring/spring-cloud-azure-starter-monitor-test @jeanbisutti @trask @ramthi @heyams -# ServiceLabel: %SecurityInsights %Service Attention -#// @amirkeren +# ServiceLabel: %Monitor - Spring +# AzureSdkOwners: @jeanbisutti @trask @ramthi @heyams -# ServiceLabel: %IoT - CLI %Service Attention -#// @Azure/azure-iot-cli-triage +# PRLabel: %azure-spring +/sdk/spring/spring-cloud-azure-appconfiguration-config*/ @mrm9084 @chenrujun @netyyyy @saragluna @moarychan -# ServiceLabel: %Communication %Service Attention -#// @acsdevx-msft +# PRLabel: %azure-spring +/sdk/spring/spring-cloud-azure-feature-management*/ @mrm9084 @chenrujun @netyyyy @saragluna @moarychan -# ServiceLabel: %OpenTelemetry %Service Attention -#// @@cijothomas @@reyang @@rajkumar-rangaraj @@TimothyMothra @@vishweshbankwar @@ramthi +# PRLabel: %azure-spring +/sdk/spring/spring-cloud-azure-starter-appconfiguration-config/ @mrm9084 @chenrujun @netyyyy @saragluna @moarychan -# ServiceLabel: %Cost Management - Budget %Service Attention -#// @ccmaxpcrew +# PRLabel: %azure-spring +/sdk/spring/azure-spring-data-cosmos/ @kushagraThapar @FabianMeiswinkel @trande4884 @TheovanKraay @xinlian12 @chenrujun @netyyyy @saragluna @moarychan @aayush3011 @simorenoh @jeet1995 @Pilchie -# ServiceLabel: %Consumption - Budget %Service Attention -#// @ccmaxpcrew +# ######## End-to-end tests ######## -# ServiceLabel: %Cost Management - Query %Service Attention -#// @ccmixpdevs +# PRLabel: %Azure.Identity +/sdk/e2e/ @g2vinay @billwert -# ServiceLabel: %Consumption - Query %Service Attention -#// @ccmixpdevs +# PRLabel: %common +/common/smoke-tests/ @alzimmermsft @srnagar @joshfree @jonathangiles @g2vinay @conniey -# ServiceLabel: %Cost Management - Billing %Service Attention -#// @ccmbpxpcrew +# ServiceLabel: %common +# AzureSdkOwners: @alzimmermsft @srnagar -# ServiceLabel: %Consumption - Billing %Service Attention -#// @ccmbpxpcrew +# ######## Management Plane ######## -# ServiceLabel: %Cost Management - UsageDetailsAndExport %Service Attention -#// @TiagoCrewGitHubIssues +# PRLabel: %Mgmt +/sdk/resourcemanager/ @weidongxu-microsoft @haolingdong-msft @XiaofeiCao @arthurma1978 -# ServiceLabel: %Consumption - UsageDetailsAndExport %Service Attention -#// @TiagoCrewGitHubIssues +# ServiceLabel: %Mgmt +# AzureSdkOwners: @weidongxu-microsoft -# ServiceLabel: %Cost Management - RIandShowBack %Service Attention -#// @ccmshowbackdevs +# PRLabel: %Mgmt +/sdk/**/azure-resourcemanager-*/ @weidongxu-microsoft @haolingdong-msft @XiaofeiCao @arthurma1978 -# ServiceLabel: %Consumption - RIandShowBack %Service Attention -#// @ccmshowbackdevs +# PRLabel: %Mgmt +/sdk/resourcemanagerhybrid/ @weidongxu-microsoft @haolingdong-msft @XiaofeiCao @arthurma1978 @bganapa -# ServiceLabel: %DevCenter %Service Attention -#// @sebrenna @mharlan +# ######## Eng Sys ######## -################ -# Eng Sys -################ /eng/ @hallipr @weshaggard @benbp @JimSuplizio +/eng/bomgenerator/ @vcolin7 @alzimmermsft @srnagar @jonathangiles /eng/code-quality-reports/ @mssfang @JonathanGiles -/eng/spotbugs-aggregate-report/ @srnagar @JonathanGiles /eng/mgmt/ @weidongxu-microsoft @haolingdong-msft @XiaofeiCao @arthurma1978 @hallipr @weshaggard @benbp @JimSuplizio +/eng/spotbugs-aggregate-report/ @srnagar @JonathanGiles /eng/versioning/ @alzimmermsft @samvaity @g2vinay @JimSuplizio /eng/versioning/external_dependencies.txt @alzimmermsft @samvaity @g2vinay @jonathangiles @chenrujun @netyyyy @saragluna @moarychan -/eng/bomgenerator/ @vcolin7 @alzimmermsft @srnagar @jonathangiles -/sdk/parents/ @alzimmermsft # Add owners for notifications for specific pipelines /eng/pipelines/aggregate-reports.yml @joshfree @jonathangiles diff --git a/.github/workflows/event-processor.yml b/.github/workflows/event-processor.yml index 649b211e9254..c913b90cca8a 100644 --- a/.github/workflows/event-processor.yml +++ b/.github/workflows/event-processor.yml @@ -17,26 +17,29 @@ on: permissions: {} jobs: - event-handler: + # This event requires the Azure CLI to get the LABEL_SERVICE_API_KEY from the vault. + # Because the azure/login step adds time costly pre/post Az CLI commands to any every job + # it's used in, split this into its own job so only the event that needs the Az CLI pays + # the cost. + event-handler-with-azure: permissions: issues: write pull-requests: write # For OIDC auth id-token: write contents: read - name: Handle ${{ github.event_name }} ${{ github.event.action }} event + name: Handle ${{ github.event_name }} ${{ github.event.action }} event with azure login runs-on: ubuntu-latest + if: ${{ github.event_name == 'issues' && github.event.action == 'opened' }} steps: - name: 'Az CLI login' - if: ${{ github.event_name == 'issues' && github.event.action == 'opened' }} - uses: azure/login@v1.5.1 + uses: azure/login@v1 with: client-id: ${{ secrets.AZURE_CLIENT_ID }} tenant-id: ${{ secrets.AZURE_TENANT_ID }} subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} - name: 'Run Azure CLI commands' - if: ${{ github.event_name == 'issues' && github.event.action == 'opened' }} run: | LABEL_SERVICE_API_KEY=$(az keyvault secret show \ --vault-name issue-labeler \ @@ -55,7 +58,7 @@ jobs: run: > dotnet tool install Azure.Sdk.Tools.GitHubEventProcessor - --version 1.0.0-dev.20240229.2 + --version 1.0.0-dev.20240311.2 --add-source https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json --global shell: bash @@ -94,3 +97,58 @@ jobs: # https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} LABEL_SERVICE_API_KEY: ${{ env.LABEL_SERVICE_API_KEY }} + + event-handler: + permissions: + issues: write + pull-requests: write + name: Handle ${{ github.event_name }} ${{ github.event.action }} event + runs-on: ubuntu-latest + if: ${{ github.event_name != 'issues' || github.event.action != 'opened' }} + steps: + # To run github-event-processor built from source, for testing purposes, uncomment everything + # in between the Start/End-Build From Source comments and comment everything in between the + # Start/End-Install comments + # Start-Install + - name: Install GitHub Event Processor + run: > + dotnet tool install + Azure.Sdk.Tools.GitHubEventProcessor + --version 1.0.0-dev.20240311.2 + --add-source https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json + --global + shell: bash + # End-Install + + # Testing checkout of sources from the Azure/azure-sdk-tools repository + # The ref: is the SHA from the pull request in that repository or the + # refs/pull//merge for the latest on any given PR. If the repository + # is a fork eg. /azure-sdk-tools then the repository down below will + # need to point to that fork + # Start-Build + # - name: Checkout tools repo for GitHub Event Processor sources + # uses: actions/checkout@v3 + # with: + # repository: Azure/azure-sdk-tools + # path: azure-sdk-tools + # ref: /merge> or + + # - name: Build and install GitHubEventProcessor from sources + # run: | + # dotnet pack + # dotnet tool install --global --prerelease --add-source ../../../artifacts/packages/Debug Azure.Sdk.Tools.GitHubEventProcessor + # shell: bash + # working-directory: azure-sdk-tools/tools/github-event-processor/Azure.Sdk.Tools.GitHubEventProcessor + # End-Build + + - name: Process Action Event + run: | + cat > payload.json << 'EOF' + ${{ toJson(github.event) }} + EOF + github-event-processor ${{ github.event_name }} payload.json + shell: bash + env: + # This is a temporary secret generated by github + # https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/scheduled-event-processor.yml b/.github/workflows/scheduled-event-processor.yml index 361c959bc82d..120531ac3d5b 100644 --- a/.github/workflows/scheduled-event-processor.yml +++ b/.github/workflows/scheduled-event-processor.yml @@ -2,6 +2,7 @@ name: GitHub Scheduled Event Processor on: schedule: + # These are generated/confirmed using https://crontab.cronhub.io/ # Close stale issues, runs every day at 1am - CloseStaleIssues - cron: '0 1 * * *' # Identify stale pull requests, every Friday at 5am - IdentifyStalePullRequests @@ -14,9 +15,10 @@ on: - cron: '30 4,10,16,22 * * *' # Lock closed issues, every 6 hours at 05:30 AM, 11:30 AM, 05:30 PM and 11:30 PM - LockClosedIssues - cron: '30 5,11,17,23 * * *' - # Enforce max life of issues, every Monday at 10:00 AM - EnforceMaxLifeOfIssues + # Enforce max life of issues, every M,W,F at 10:00 AM PST - EnforceMaxLifeOfIssues # Note: GitHub uses UTC, to run at 10am PST, the cron task needs to be 6pm (1800 hours) UTC - - cron: '0 18 * * MON' + # When scheduling for multiple days the numeric days 0-6 (0=Sunday) must be used. + - cron: '0 18 * * 1,3,5' # This removes all unnecessary permissions, the ones needed will be set below. # https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token permissions: {} @@ -37,7 +39,7 @@ jobs: run: > dotnet tool install Azure.Sdk.Tools.GitHubEventProcessor - --version 1.0.0-dev.20240229.2 + --version 1.0.0-dev.20240311.2 --add-source https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json --global shell: bash @@ -131,7 +133,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Enforce Max Life of Issues Scheduled Event - if: github.event.schedule == '0 18 * * MON' + if: github.event.schedule == '0 18 * * 1,3,5' run: | cat > payload.json << 'EOF' ${{ toJson(github.event) }} diff --git a/.vscode/cspell.json b/.vscode/cspell.json index fd2ad906829f..0bd6a639cdd4 100644 --- a/.vscode/cspell.json +++ b/.vscode/cspell.json @@ -306,6 +306,7 @@ "hudha", "hvac", "hybridkubernetes", + "hyunwoongko", "insights", "intellij", "Intellij", @@ -320,8 +321,10 @@ "JSESSIONID", "junitxml", "jtoken", + "jtokkit", "keyvault", "kasobol", + "knuddelsgmbh", "kube", "kubeconfig", "kubeconfigs", diff --git a/eng/code-quality-reports/src/main/resources/spotbugs/spotbugs-exclude.xml b/eng/code-quality-reports/src/main/resources/spotbugs/spotbugs-exclude.xml index 5d9ca85246eb..9bde85c9ae28 100644 --- a/eng/code-quality-reports/src/main/resources/spotbugs/spotbugs-exclude.xml +++ b/eng/code-quality-reports/src/main/resources/spotbugs/spotbugs-exclude.xml @@ -363,6 +363,11 @@ + + + + + diff --git a/eng/common/scripts/Prepare-Release.ps1 b/eng/common/scripts/Prepare-Release.ps1 index 269fd113fd69..e82c5982ac96 100644 --- a/eng/common/scripts/Prepare-Release.ps1 +++ b/eng/common/scripts/Prepare-Release.ps1 @@ -116,7 +116,7 @@ $month = $ParsedReleaseDate.ToString("MMMM") Write-Host "Assuming release is in $month with release date $releaseDateString" -ForegroundColor Green if (Test-Path "Function:GetExistingPackageVersions") { - $releasedVersions = GetExistingPackageVersions -PackageName $packageProperties.Name -GroupId $packageProperties.Group + $releasedVersions = @(GetExistingPackageVersions -PackageName $packageProperties.Name -GroupId $packageProperties.Group) if ($null -ne $releasedVersions -and $releasedVersions.Count -gt 0) { $latestReleasedVersion = $releasedVersions[$releasedVersions.Count - 1] diff --git a/eng/common/scripts/Test-SampleMetadata.ps1 b/eng/common/scripts/Test-SampleMetadata.ps1 index 4a0000220fde..9e50fa1dce03 100644 --- a/eng/common/scripts/Test-SampleMetadata.ps1 +++ b/eng/common/scripts/Test-SampleMetadata.ps1 @@ -330,6 +330,7 @@ begin { "blazor-webassembly", "common-data-service", "customer-voice", + "dotnet-api", "dotnet-core", "dotnet-standard", "document-intelligence", diff --git a/eng/common/scripts/job-matrix/job-matrix-functions.ps1 b/eng/common/scripts/job-matrix/job-matrix-functions.ps1 index 198d68f00f7f..f20dbe5281b0 100644 --- a/eng/common/scripts/job-matrix/job-matrix-functions.ps1 +++ b/eng/common/scripts/job-matrix/job-matrix-functions.ps1 @@ -96,7 +96,8 @@ function GenerateMatrix( [String]$displayNameFilter = ".*", [Array]$filters = @(), [Array]$replace = @(), - [Array]$nonSparseParameters = @() + [Array]$nonSparseParameters = @(), + [Switch]$skipEnvironmentVariables ) { $matrixParameters, $importedMatrix, $combinedDisplayNameLookup = ` ProcessImport $config.matrixParameters $selectFromMatrixType $nonSparseParameters $config.displayNamesLookup @@ -124,7 +125,9 @@ function GenerateMatrix( $matrix = FilterMatrix $matrix $filters $matrix = ProcessReplace $matrix $replace $combinedDisplayNameLookup - $matrix = ProcessEnvironmentVariableReferences $matrix $combinedDisplayNameLookup + if (!$skipEnvironmentVariables) { + $matrix = ProcessEnvironmentVariableReferences $matrix $combinedDisplayNameLookup + } $matrix = FilterMatrixDisplayName $matrix $displayNameFilter return $matrix } @@ -427,10 +430,14 @@ function ProcessImport([MatrixParameter[]]$matrix, [String]$selection, [Array]$n exit 1 } $importedMatrixConfig = GetMatrixConfigFromFile (Get-Content -Raw $importPath) + # Add skipEnvironmentVariables so we don't process environment variables on import + # because we want top level filters to work against the the env key, not the value. + # The environment variables will get resolved after the import. $importedMatrix = GenerateMatrix ` -config $importedMatrixConfig ` -selectFromMatrixType $selection ` - -nonSparseParameters $nonSparseParameters + -nonSparseParameters $nonSparseParameters ` + -skipEnvironmentVariables $combinedDisplayNameLookup = $importedMatrixConfig.displayNamesLookup foreach ($lookup in $displayNamesLookup.GetEnumerator()) { diff --git a/eng/pipelines/patch_release_client.txt b/eng/pipelines/patch_release_client.txt index f629409dd424..71b587f0a168 100644 --- a/eng/pipelines/patch_release_client.txt +++ b/eng/pipelines/patch_release_client.txt @@ -47,6 +47,7 @@ com.azure:azure-messaging-eventhubs # Tests owner: conniey com.azure:azure-messaging-eventhubs-checkpointstore-blob # Tests owner: conniey com.azure:azure-messaging-servicebus # Tests owner: ki1729 com.azure:azure-messaging-webpubsub # Tests owner: weidongxu-microsoft +com.azure:azure-messaging-webpubsub-client # Tests owner: weidongxu-microsoft com.azure:azure-mixedreality-authentication # Tests owner: craigktreasure, RamonArguelles com.azure:azure-mixedreality-remoterendering # Tests owner: FlorianBorn71, MichaelZp0, jloehr com.azure:azure-monitor-query # Tests owner: srnagar diff --git a/eng/versioning/external_dependencies.txt b/eng/versioning/external_dependencies.txt index 95218f510432..7d36b82ed928 100644 --- a/eng/versioning/external_dependencies.txt +++ b/eng/versioning/external_dependencies.txt @@ -26,6 +26,7 @@ com.google.code.gson:gson;2.10 com.google.guava:guava;33.0.0-jre com.h2database:h2;2.2.220 com.h3xstream.findsecbugs:findsecbugs-plugin;1.9.0 +com.knuddels:jtokkit;1.0.0 com.microsoft.azure:applicationinsights-core;3.4.1 com.microsoft.azure:azure-annotations;1.7.0 com.microsoft.azure:azure-arm-client-runtime;1.7.14 diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index 1a20a8c05129..966553551dea 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -105,10 +105,10 @@ com.azure:azure-cosmos;4.56.0;4.57.0-beta.1 com.azure:azure-cosmos-benchmark;4.0.1-beta.1;4.0.1-beta.1 com.azure:azure-cosmos-dotnet-benchmark;4.0.1-beta.1;4.0.1-beta.1 com.azure.cosmos.spark:azure-cosmos-spark_3_2-12;1.0.0-beta.1;1.0.0-beta.1 -com.azure.cosmos.spark:azure-cosmos-spark_3-1_2-12;4.28.1;4.28.2 -com.azure.cosmos.spark:azure-cosmos-spark_3-2_2-12;4.28.1;4.28.2 -com.azure.cosmos.spark:azure-cosmos-spark_3-3_2-12;4.28.1;4.28.2 -com.azure.cosmos.spark:azure-cosmos-spark_3-4_2-12;4.28.1;4.28.2 +com.azure.cosmos.spark:azure-cosmos-spark_3-1_2-12;4.28.2;4.28.3 +com.azure.cosmos.spark:azure-cosmos-spark_3-2_2-12;4.28.2;4.28.3 +com.azure.cosmos.spark:azure-cosmos-spark_3-3_2-12;4.28.2;4.28.3 +com.azure.cosmos.spark:azure-cosmos-spark_3-4_2-12;4.28.2;4.28.3 com.azure:azure-cosmos-encryption;2.8.0;2.9.0-beta.1 com.azure:azure-cosmos-test;1.0.0-beta.6;1.0.0-beta.7 com.azure:azure-cosmos-tests;1.0.0-beta.1;1.0.0-beta.1 @@ -146,7 +146,7 @@ com.azure:azure-maps-render;1.0.0-beta.2;1.0.0-beta.3 com.azure:azure-maps-route;1.0.0-beta.1;1.0.0-beta.2 com.azure:azure-maps-search;1.0.0-beta.1;1.0.0-beta.2 com.azure:azure-media-videoanalyzer-edge;1.0.0-beta.6;1.0.0-beta.7 -com.azure:azure-messaging-eventgrid;4.21.0;4.22.0-beta.1 +com.azure:azure-messaging-eventgrid;4.21.0;4.22.0 com.azure:azure-messaging-eventgrid-cloudnative-cloudevents;1.0.0-beta.1;1.0.0-beta.2 com.azure:azure-messaging-eventhubs;5.18.1;5.19.0-beta.1 com.azure:azure-messaging-eventhubs-checkpointstore-blob;1.19.1;1.20.0-beta.1 @@ -163,7 +163,7 @@ com.azure:azure-messaging-webpubsub-client;1.0.0;1.1.0-beta.1 com.azure:azure-mixedreality-authentication;1.2.21;1.3.0-beta.1 com.azure:azure-mixedreality-remoterendering;1.1.26;1.2.0-beta.1 com.azure:azure-monitor-opentelemetry-exporter;1.0.0-beta.20;1.0.0-beta.21 -com.azure:azure-monitor-ingestion;1.1.4;1.2.0-beta.1 +com.azure:azure-monitor-ingestion;1.1.4;1.1.5 com.azure:azure-monitor-ingestion-perf;1.0.0-beta.1;1.0.0-beta.1 com.azure:azure-monitor-query;1.2.9;1.3.0-beta.3 com.azure:azure-monitor-query-perf;1.0.0-beta.1;1.0.0-beta.1 diff --git a/sdk/cosmos/azure-cosmos-spark_3-1_2-12/CHANGELOG.md b/sdk/cosmos/azure-cosmos-spark_3-1_2-12/CHANGELOG.md index 63cb85ff0cd8..73b2b33b19fe 100644 --- a/sdk/cosmos/azure-cosmos-spark_3-1_2-12/CHANGELOG.md +++ b/sdk/cosmos/azure-cosmos-spark_3-1_2-12/CHANGELOG.md @@ -1,5 +1,10 @@ ## Release History +### 4.28.3 (2024-03-12) + +#### Other Changes +* Reduced noise level in logs with WARN level but added more verbose logs when retries have been re-enqueued. - See [PR 39169](https://github.com/Azure/azure-sdk-for-java/pull/39169) + ### 4.28.2 (2024-03-05) #### Other Changes diff --git a/sdk/cosmos/azure-cosmos-spark_3-1_2-12/README.md b/sdk/cosmos/azure-cosmos-spark_3-1_2-12/README.md index cca9ad96c1dc..416a6d3cca48 100644 --- a/sdk/cosmos/azure-cosmos-spark_3-1_2-12/README.md +++ b/sdk/cosmos/azure-cosmos-spark_3-1_2-12/README.md @@ -29,6 +29,7 @@ https://github.com/Azure/azure-sdk-for-java/issues/new #### azure-cosmos-spark_3-1_2-12 | Connector | Supported Spark Versions | Supported JVM Versions | Supported Scala Versions | Supported Databricks Runtimes | |--------------|--------------------------|------------------------|--------------------------|-------------------------------| +| 4.28.3 | 3.1.1 - 3.1.2 | [8, 11] | 2.12 | 8.\*, 9.\* | | 4.28.2 | 3.1.1 - 3.1.2 | [8, 11] | 2.12 | 8.\*, 9.\* | | 4.28.1 | 3.1.1 - 3.1.2 | [8, 11] | 2.12 | 8.\*, 9.\* | | 4.28.0 | 3.1.1 - 3.1.2 | [8, 11] | 2.12 | 8.\*, 9.\* | @@ -90,6 +91,7 @@ https://github.com/Azure/azure-sdk-for-java/issues/new #### azure-cosmos-spark_3-2_2-12 | Connector | Supported Spark Versions | Supported JVM Versions | Supported Scala Versions | Supported Databricks Runtimes | |-----------|--------------------------|------------------------|--------------------------|-------------------------------| +| 4.28.3 | 3.2.0 - 3.2.1 | [8, 11] | 2.12 | 10.\* | | 4.28.2 | 3.2.0 - 3.2.1 | [8, 11] | 2.12 | 10.\* | | 4.28.1 | 3.2.0 - 3.2.1 | [8, 11] | 2.12 | 10.\* | | 4.28.0 | 3.2.0 - 3.2.1 | [8, 11] | 2.12 | 10.\* | @@ -136,6 +138,7 @@ https://github.com/Azure/azure-sdk-for-java/issues/new #### azure-cosmos-spark_3-3_2-12 | Connector | Supported Spark Versions | Supported JVM Versions | Supported Scala Versions | Supported Databricks Runtimes | |-----------|--------------------------|------------------------|--------------------------|-------------------------------| +| 4.28.3 | 3.3.0 | [8, 11] | 2.12 | 11.\*, 12.\* | | 4.28.2 | 3.3.0 | [8, 11] | 2.12 | 11.\*, 12.\* | | 4.28.1 | 3.3.0 | [8, 11] | 2.12 | 11.\*, 12.\* | | 4.28.0 | 3.3.0 | [8, 11] | 2.12 | 11.\*, 12.\* | @@ -164,6 +167,7 @@ https://github.com/Azure/azure-sdk-for-java/issues/new #### azure-cosmos-spark_3-4_2-12 | Connector | Supported Spark Versions | Supported JVM Versions | Supported Scala Versions | Supported Databricks Runtimes | |-----------|--------------------------|------------------------|--------------------------|-------------------------------| +| 4.28.3 | 3.4.0 | [8, 11] | 2.12 | 13.\* | | 4.28.2 | 3.4.0 | [8, 11] | 2.12 | 13.\* | | 4.28.1 | 3.4.0 | [8, 11] | 2.12 | 13.\* | | 4.28.0 | 3.4.0 | [8, 11] | 2.12 | 13.\* | @@ -184,11 +188,11 @@ https://github.com/Azure/azure-sdk-for-java/issues/new ### Download You can use the maven coordinate of the jar to auto install the Spark Connector to your Databricks Runtime 8 from Maven: -`com.azure.cosmos.spark:azure-cosmos-spark_3-1_2-12:4.28.2` +`com.azure.cosmos.spark:azure-cosmos-spark_3-1_2-12:4.28.3` You can also integrate against Cosmos DB Spark Connector in your SBT project: ```scala -libraryDependencies += "com.azure.cosmos.spark" % "azure-cosmos-spark_3-1_2-12" % "4.28.2" +libraryDependencies += "com.azure.cosmos.spark" % "azure-cosmos-spark_3-1_2-12" % "4.28.3" ``` Cosmos DB Spark Connector is available on [Maven Central Repo](https://central.sonatype.com/search?namespace=com.azure.cosmos.spark). diff --git a/sdk/cosmos/azure-cosmos-spark_3-1_2-12/pom.xml b/sdk/cosmos/azure-cosmos-spark_3-1_2-12/pom.xml index 0a8e45cb4215..348f9bbff12e 100644 --- a/sdk/cosmos/azure-cosmos-spark_3-1_2-12/pom.xml +++ b/sdk/cosmos/azure-cosmos-spark_3-1_2-12/pom.xml @@ -11,7 +11,7 @@ com.azure.cosmos.spark azure-cosmos-spark_3-1_2-12 - 4.28.2 + 4.28.3 jar https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/cosmos/azure-cosmos-spark_3-1_2-12 OLTP Spark 3.1 Connector for Azure Cosmos DB SQL API diff --git a/sdk/cosmos/azure-cosmos-spark_3-2_2-12/CHANGELOG.md b/sdk/cosmos/azure-cosmos-spark_3-2_2-12/CHANGELOG.md index c8702e93e49f..f377ec1c5a77 100644 --- a/sdk/cosmos/azure-cosmos-spark_3-2_2-12/CHANGELOG.md +++ b/sdk/cosmos/azure-cosmos-spark_3-2_2-12/CHANGELOG.md @@ -1,5 +1,10 @@ ## Release History +### 4.28.3 (2024-03-12) + +#### Other Changes +* Reduced noise level in logs with WARN level but added more verbose logs when retries have been re-enqueued. - See [PR 39169](https://github.com/Azure/azure-sdk-for-java/pull/39169) + ### 4.28.2 (2024-03-05) #### Other Changes diff --git a/sdk/cosmos/azure-cosmos-spark_3-2_2-12/README.md b/sdk/cosmos/azure-cosmos-spark_3-2_2-12/README.md index ebec4445c49b..d973d3a59303 100644 --- a/sdk/cosmos/azure-cosmos-spark_3-2_2-12/README.md +++ b/sdk/cosmos/azure-cosmos-spark_3-2_2-12/README.md @@ -28,6 +28,7 @@ https://github.com/Azure/azure-sdk-for-java/issues/new #### azure-cosmos-spark_3-2_2-12 | Connector | Supported Spark Versions | Supported JVM Versions | Supported Scala Versions | Supported Databricks Runtimes | |-----------|--------------------------|------------------------|--------------------------|-------------------------------| +| 4.28.3 | 3.2.0 - 3.2.1 | [8, 11] | 2.12 | 10.\* | | 4.28.2 | 3.2.0 - 3.2.1 | [8, 11] | 2.12 | 10.\* | | 4.28.1 | 3.2.0 - 3.2.1 | [8, 11] | 2.12 | 10.\* | | 4.28.0 | 3.2.0 - 3.2.1 | [8, 11] | 2.12 | 10.\* | @@ -74,6 +75,7 @@ https://github.com/Azure/azure-sdk-for-java/issues/new #### azure-cosmos-spark_3-3_2-12 | Connector | Supported Spark Versions | Supported JVM Versions | Supported Scala Versions | Supported Databricks Runtimes | |-----------|--------------------------|------------------------|--------------------------|-------------------------------| +| 4.28.3 | 3.3.0 | [8, 11] | 2.12 | 11.\*, 12.\* | | 4.28.2 | 3.3.0 | [8, 11] | 2.12 | 11.\*, 12.\* | | 4.28.1 | 3.3.0 | [8, 11] | 2.12 | 11.\*, 12.\* | | 4.28.0 | 3.3.0 | [8, 11] | 2.12 | 11.\*, 12.\* | @@ -102,6 +104,7 @@ https://github.com/Azure/azure-sdk-for-java/issues/new #### azure-cosmos-spark_3-1_2-12 | Connector | Supported Spark Versions | Supported JVM Versions | Supported Scala Versions | Supported Databricks Runtimes | |--------------|--------------------------|------------------------|--------------------------|-------------------------------| +| 4.28.3 | 3.2.0 - 3.2.1 | [8, 11] | 2.12 | 8.\*, 9.\* | | 4.28.2 | 3.2.0 - 3.2.1 | [8, 11] | 2.12 | 8.\*, 9.\* | | 4.28.1 | 3.2.0 - 3.2.1 | [8, 11] | 2.12 | 8.\*, 9.\* | | 4.28.0 | 3.2.0 - 3.2.1 | [8, 11] | 2.12 | 8.\*, 9.\* | @@ -163,6 +166,7 @@ https://github.com/Azure/azure-sdk-for-java/issues/new #### azure-cosmos-spark_3-4_2-12 | Connector | Supported Spark Versions | Supported JVM Versions | Supported Scala Versions | Supported Databricks Runtimes | |-----------|--------------------------|------------------------|--------------------------|-------------------------------| +| 4.28.3 | 3.4.0 | [8, 11] | 2.12 | 13.* | | 4.28.2 | 3.4.0 | [8, 11] | 2.12 | 13.* | | 4.28.1 | 3.4.0 | [8, 11] | 2.12 | 13.* | | 4.28.0 | 3.4.0 | [8, 11] | 2.12 | 13.* | @@ -182,11 +186,11 @@ https://github.com/Azure/azure-sdk-for-java/issues/new ### Download You can use the maven coordinate of the jar to auto install the Spark Connector to your Databricks Runtime 10 from Maven: -`com.azure.cosmos.spark:azure-cosmos-spark_3-2_2-12:4.28.2` +`com.azure.cosmos.spark:azure-cosmos-spark_3-2_2-12:4.28.3` You can also integrate against Cosmos DB Spark Connector in your SBT project: ```scala -libraryDependencies += "com.azure.cosmos.spark" % "azure-cosmos-spark_3-2_2-12" % "4.28.2" +libraryDependencies += "com.azure.cosmos.spark" % "azure-cosmos-spark_3-2_2-12" % "4.28.3" ``` Cosmos DB Spark Connector is available on [Maven Central Repo](https://central.sonatype.com/search?namespace=com.azure.cosmos.spark). diff --git a/sdk/cosmos/azure-cosmos-spark_3-2_2-12/pom.xml b/sdk/cosmos/azure-cosmos-spark_3-2_2-12/pom.xml index 49b5e351d9d2..e810ffb08b59 100644 --- a/sdk/cosmos/azure-cosmos-spark_3-2_2-12/pom.xml +++ b/sdk/cosmos/azure-cosmos-spark_3-2_2-12/pom.xml @@ -11,7 +11,7 @@ com.azure.cosmos.spark azure-cosmos-spark_3-2_2-12 - 4.28.2 + 4.28.3 jar https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/cosmos/azure-cosmos-spark_3-2_2-12 OLTP Spark 3.2 Connector for Azure Cosmos DB SQL API diff --git a/sdk/cosmos/azure-cosmos-spark_3-3_2-12/CHANGELOG.md b/sdk/cosmos/azure-cosmos-spark_3-3_2-12/CHANGELOG.md index 289691e4132e..556211be419b 100644 --- a/sdk/cosmos/azure-cosmos-spark_3-3_2-12/CHANGELOG.md +++ b/sdk/cosmos/azure-cosmos-spark_3-3_2-12/CHANGELOG.md @@ -1,5 +1,10 @@ ## Release History +### 4.28.3 (2024-03-12) + +#### Other Changes +* Reduced noise level in logs with WARN level but added more verbose logs when retries have been re-enqueued. - See [PR 39169](https://github.com/Azure/azure-sdk-for-java/pull/39169) + ### 4.28.2 (2024-03-05) #### Other Changes diff --git a/sdk/cosmos/azure-cosmos-spark_3-3_2-12/README.md b/sdk/cosmos/azure-cosmos-spark_3-3_2-12/README.md index 45b6ffbf9b73..93169c120857 100644 --- a/sdk/cosmos/azure-cosmos-spark_3-3_2-12/README.md +++ b/sdk/cosmos/azure-cosmos-spark_3-3_2-12/README.md @@ -28,6 +28,7 @@ https://github.com/Azure/azure-sdk-for-java/issues/new #### azure-cosmos-spark_3-3_2-12 | Connector | Supported Spark Versions | Supported JVM Versions | Supported Scala Versions | Supported Databricks Runtimes | |-----------|--------------------------|------------------------|--------------------------|-------------------------------| +| 4.28.3 | 3.3.0 | [8, 11] | 2.12 | 11.\*, 12.\* | | 4.28.2 | 3.3.0 | [8, 11] | 2.12 | 11.\*, 12.\* | | 4.28.1 | 3.3.0 | [8, 11] | 2.12 | 11.\*, 12.\* | | 4.28.0 | 3.3.0 | [8, 11] | 2.12 | 11.\*, 12.\* | @@ -56,6 +57,7 @@ https://github.com/Azure/azure-sdk-for-java/issues/new #### azure-cosmos-spark_3-2_2-12 | Connector | Supported Spark Versions | Supported JVM Versions | Supported Scala Versions | Supported Databricks Runtimes | |-----------|--------------------------|------------------------|--------------------------|-------------------------------| +| 4.28.3 | 3.2.0 - 3.2.1 | [8, 11] | 2.12 | 10.\* | | 4.28.2 | 3.2.0 - 3.2.1 | [8, 11] | 2.12 | 10.\* | | 4.28.1 | 3.2.0 - 3.2.1 | [8, 11] | 2.12 | 10.\* | | 4.28.0 | 3.2.0 - 3.2.1 | [8, 11] | 2.12 | 10.\* | @@ -102,6 +104,7 @@ https://github.com/Azure/azure-sdk-for-java/issues/new #### azure-cosmos-spark_3-1_2-12 | Connector | Supported Spark Versions | Supported JVM Versions | Supported Scala Versions | Supported Databricks Runtimes | |--------------|--------------------------|------------------------|--------------------------|-------------------------------| +| 4.28.3 | 3.2.0 - 3.2.1 | [8, 11] | 2.12 | 10.\* | | 4.28.2 | 3.2.0 - 3.2.1 | [8, 11] | 2.12 | 10.\* | | 4.28.1 | 3.2.0 - 3.2.1 | [8, 11] | 2.12 | 10.\* | | 4.28.0 | 3.2.0 - 3.2.1 | [8, 11] | 2.12 | 10.\* | @@ -163,6 +166,7 @@ https://github.com/Azure/azure-sdk-for-java/issues/new #### azure-cosmos-spark_3-4_2-12 | Connector | Supported Spark Versions | Supported JVM Versions | Supported Scala Versions | Supported Databricks Runtimes | |-----------|--------------------------|------------------------|--------------------------|-------------------------------| +| 4.28.3 | 3.4.0 | [8, 11] | 2.12 | 13.* | | 4.28.2 | 3.4.0 | [8, 11] | 2.12 | 13.* | | 4.28.1 | 3.4.0 | [8, 11] | 2.12 | 13.* | | 4.28.0 | 3.4.0 | [8, 11] | 2.12 | 13.* | @@ -182,11 +186,11 @@ https://github.com/Azure/azure-sdk-for-java/issues/new ### Download You can use the maven coordinate of the jar to auto install the Spark Connector to your Databricks Runtime 11 from Maven: -`com.azure.cosmos.spark:azure-cosmos-spark_3-3_2-12:4.28.2` +`com.azure.cosmos.spark:azure-cosmos-spark_3-3_2-12:4.28.3` You can also integrate against Cosmos DB Spark Connector in your SBT project: ```scala -libraryDependencies += "com.azure.cosmos.spark" % "azure-cosmos-spark_3-3_2-12" % "4.28.2" +libraryDependencies += "com.azure.cosmos.spark" % "azure-cosmos-spark_3-3_2-12" % "4.28.3" ``` Cosmos DB Spark Connector is available on [Maven Central Repo](https://central.sonatype.com/search?namespace=com.azure.cosmos.spark). diff --git a/sdk/cosmos/azure-cosmos-spark_3-3_2-12/pom.xml b/sdk/cosmos/azure-cosmos-spark_3-3_2-12/pom.xml index 82c32565af95..51e26e974238 100644 --- a/sdk/cosmos/azure-cosmos-spark_3-3_2-12/pom.xml +++ b/sdk/cosmos/azure-cosmos-spark_3-3_2-12/pom.xml @@ -11,7 +11,7 @@ com.azure.cosmos.spark azure-cosmos-spark_3-3_2-12 - 4.28.2 + 4.28.3 jar https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/cosmos/azure-cosmos-spark_3-3_2-12 OLTP Spark 3.3 Connector for Azure Cosmos DB SQL API diff --git a/sdk/cosmos/azure-cosmos-spark_3-4_2-12/CHANGELOG.md b/sdk/cosmos/azure-cosmos-spark_3-4_2-12/CHANGELOG.md index 3312cbad6f5e..c8e1ce708d3e 100644 --- a/sdk/cosmos/azure-cosmos-spark_3-4_2-12/CHANGELOG.md +++ b/sdk/cosmos/azure-cosmos-spark_3-4_2-12/CHANGELOG.md @@ -1,5 +1,10 @@ ## Release History +### 4.28.3 (2024-03-12) + +#### Other Changes +* Reduced noise level in logs with WARN level but added more verbose logs when retries have been re-enqueued. - See [PR 39169](https://github.com/Azure/azure-sdk-for-java/pull/39169) + ### 4.28.2 (2024-03-05) #### Other Changes diff --git a/sdk/cosmos/azure-cosmos-spark_3-4_2-12/README.md b/sdk/cosmos/azure-cosmos-spark_3-4_2-12/README.md index 33f1c9574e99..9f731eec2fd4 100644 --- a/sdk/cosmos/azure-cosmos-spark_3-4_2-12/README.md +++ b/sdk/cosmos/azure-cosmos-spark_3-4_2-12/README.md @@ -28,6 +28,7 @@ https://github.com/Azure/azure-sdk-for-java/issues/new #### azure-cosmos-spark_3-4_2-12 | Connector | Supported Spark Versions | Supported JVM Versions | Supported Scala Versions | Supported Databricks Runtimes | |-----------|--------------------------|------------------------|--------------------------|-------------------------------| +| 4.28.3 | 3.4.0 | [8, 11] | 2.12 | 13.* | | 4.28.2 | 3.4.0 | [8, 11] | 2.12 | 13.* | | 4.28.1 | 3.4.0 | [8, 11] | 2.12 | 13.* | | 4.28.0 | 3.4.0 | [8, 11] | 2.12 | 13.* | @@ -47,6 +48,7 @@ https://github.com/Azure/azure-sdk-for-java/issues/new #### azure-cosmos-spark_3-3_2-12 | Connector | Supported Spark Versions | Supported JVM Versions | Supported Scala Versions | Supported Databricks Runtimes | |-----------|--------------------------|------------------------|--------------------------|-------------------------------| +| 4.28.3 | 3.3.0 | [8, 11] | 2.12 | 11.\*, 12.\* | | 4.28.2 | 3.3.0 | [8, 11] | 2.12 | 11.\*, 12.\* | | 4.28.1 | 3.3.0 | [8, 11] | 2.12 | 11.\*, 12.\* | | 4.28.0 | 3.3.0 | [8, 11] | 2.12 | 11.\*, 12.\* | @@ -75,6 +77,7 @@ https://github.com/Azure/azure-sdk-for-java/issues/new #### azure-cosmos-spark_3-2_2-12 | Connector | Supported Spark Versions | Supported JVM Versions | Supported Scala Versions | Supported Databricks Runtimes | |-----------|--------------------------|------------------------|--------------------------|-------------------------------| +| 4.28.3 | 3.2.0 - 3.2.1 | [8, 11] | 2.12 | 10.\* | | 4.28.2 | 3.2.0 - 3.2.1 | [8, 11] | 2.12 | 10.\* | | 4.28.1 | 3.2.0 - 3.2.1 | [8, 11] | 2.12 | 10.\* | | 4.28.0 | 3.2.0 - 3.2.1 | [8, 11] | 2.12 | 10.\* | @@ -121,6 +124,7 @@ https://github.com/Azure/azure-sdk-for-java/issues/new #### azure-cosmos-spark_3-1_2-12 | Connector | Supported Spark Versions | Supported JVM Versions | Supported Scala Versions | Supported Databricks Runtimes | |--------------|--------------------------|------------------------|--------------------------|-------------------------------| +| 4.28.3 | 3.2.0 - 3.2.1 | [8, 11] | 2.12 | 10.\* | | 4.28.2 | 3.2.0 - 3.2.1 | [8, 11] | 2.12 | 10.\* | | 4.28.1 | 3.2.0 - 3.2.1 | [8, 11] | 2.12 | 10.\* | | 4.28.0 | 3.2.0 - 3.2.1 | [8, 11] | 2.12 | 10.\* | @@ -182,11 +186,11 @@ https://github.com/Azure/azure-sdk-for-java/issues/new ### Download You can use the maven coordinate of the jar to auto install the Spark Connector to your Databricks Runtime 11 from Maven: -`com.azure.cosmos.spark:azure-cosmos-spark_3-4_2-12:4.28.2` +`com.azure.cosmos.spark:azure-cosmos-spark_3-4_2-12:4.28.3` You can also integrate against Cosmos DB Spark Connector in your SBT project: ```scala -libraryDependencies += "com.azure.cosmos.spark" % "azure-cosmos-spark_3-4_2-12" % "4.28.2" +libraryDependencies += "com.azure.cosmos.spark" % "azure-cosmos-spark_3-4_2-12" % "4.28.3" ``` Cosmos DB Spark Connector is available on [Maven Central Repo](https://central.sonatype.com/search?namespace=com.azure.cosmos.spark). diff --git a/sdk/cosmos/azure-cosmos-spark_3-4_2-12/pom.xml b/sdk/cosmos/azure-cosmos-spark_3-4_2-12/pom.xml index ded2271c0cd9..129e0e095c9b 100644 --- a/sdk/cosmos/azure-cosmos-spark_3-4_2-12/pom.xml +++ b/sdk/cosmos/azure-cosmos-spark_3-4_2-12/pom.xml @@ -11,7 +11,7 @@ com.azure.cosmos.spark azure-cosmos-spark_3-4_2-12 - 4.28.2 + 4.28.3 jar https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/cosmos/azure-cosmos-spark_3-4_2-12 OLTP Spark 3.4 Connector for Azure Cosmos DB SQL API diff --git a/sdk/cosmos/azure-cosmos-spark_3_2-12/docs/quick-start.md b/sdk/cosmos/azure-cosmos-spark_3_2-12/docs/quick-start.md index 130caf2824bd..62d7a92b37e3 100644 --- a/sdk/cosmos/azure-cosmos-spark_3_2-12/docs/quick-start.md +++ b/sdk/cosmos/azure-cosmos-spark_3_2-12/docs/quick-start.md @@ -26,16 +26,16 @@ You can use any other Spark 3.1.1 spark offering as well, also you should be abl SLF4J is only needed if you plan to use logging, please also download an SLF4J binding which will link the SLF4J API with the logging implementation of your choice. See the [SLF4J user manual](https://www.slf4j.org/manual.html) for more information. For Spark 3.1: -- Install Cosmos DB Spark Connector, in your spark Cluster [com.azure.cosmos.spark:azure-cosmos-spark_3-1_2-12:4.28.2](https://search.maven.org/artifact/com.azure.cosmos.spark/azure-cosmos-spark_3-1_2-12/4.28.2/jar) +- Install Cosmos DB Spark Connector, in your spark Cluster [com.azure.cosmos.spark:azure-cosmos-spark_3-1_2-12:4.28.3](https://search.maven.org/artifact/com.azure.cosmos.spark/azure-cosmos-spark_3-1_2-12/4.28.3/jar) For Spark 3.2: -- Install Cosmos DB Spark Connector, in your spark Cluster [com.azure.cosmos.spark:azure-cosmos-spark_3-2_2-12:4.28.2](https://search.maven.org/artifact/com.azure.cosmos.spark/azure-cosmos-spark_3-2_2-12/4.28.2/jar) +- Install Cosmos DB Spark Connector, in your spark Cluster [com.azure.cosmos.spark:azure-cosmos-spark_3-2_2-12:4.28.3](https://search.maven.org/artifact/com.azure.cosmos.spark/azure-cosmos-spark_3-2_2-12/4.28.3/jar) For Spark 3.3: -- Install Cosmos DB Spark Connector, in your spark Cluster [com.azure.cosmos.spark:azure-cosmos-spark_3-3_2-12:4.28.2](https://search.maven.org/artifact/com.azure.cosmos.spark/azure-cosmos-spark_3-3_2-12/4.28.2/jar) +- Install Cosmos DB Spark Connector, in your spark Cluster [com.azure.cosmos.spark:azure-cosmos-spark_3-3_2-12:4.28.3](https://search.maven.org/artifact/com.azure.cosmos.spark/azure-cosmos-spark_3-3_2-12/4.28.3/jar) For Spark 3.4: -- Install Cosmos DB Spark Connector, in your spark Cluster [com.azure.cosmos.spark:azure-cosmos-spark_3-4_2-12:4.28.2](https://search.maven.org/artifact/com.azure.cosmos.spark/azure-cosmos-spark_3-4_2-12/4.28.2/jar) +- Install Cosmos DB Spark Connector, in your spark Cluster [com.azure.cosmos.spark:azure-cosmos-spark_3-4_2-12:4.28.3](https://search.maven.org/artifact/com.azure.cosmos.spark/azure-cosmos-spark_3-4_2-12/4.28.3/jar) The getting started guide is based on PySpark however you can use the equivalent scala version as well, and you can run the following code snippet in an Azure Databricks PySpark notebook. diff --git a/sdk/cosmos/azure-cosmos-spark_3_2-12/src/main/scala/com/azure/cosmos/implementation/SparkBridgeImplementationInternal.scala b/sdk/cosmos/azure-cosmos-spark_3_2-12/src/main/scala/com/azure/cosmos/implementation/SparkBridgeImplementationInternal.scala index a7166244dbf5..b0016b38409b 100644 --- a/sdk/cosmos/azure-cosmos-spark_3_2-12/src/main/scala/com/azure/cosmos/implementation/SparkBridgeImplementationInternal.scala +++ b/sdk/cosmos/azure-cosmos-spark_3_2-12/src/main/scala/com/azure/cosmos/implementation/SparkBridgeImplementationInternal.scala @@ -5,11 +5,13 @@ package com.azure.cosmos.implementation import com.azure.cosmos.implementation.ImplementationBridgeHelpers.CosmosClientBuilderHelper import com.azure.cosmos.implementation.changefeed.common.{ChangeFeedMode, ChangeFeedStartFromInternal, ChangeFeedState, ChangeFeedStateV1} +import com.azure.cosmos.implementation.guava25.base.MoreObjects.firstNonNull +import com.azure.cosmos.implementation.guava25.base.Strings.emptyToNull import com.azure.cosmos.implementation.query.CompositeContinuationToken import com.azure.cosmos.implementation.routing.Range import com.azure.cosmos.models.{FeedRange, PartitionKey, PartitionKeyBuilder, PartitionKeyDefinition, SparkModelBridgeInternal} import com.azure.cosmos.spark.diagnostics.BasicLoggingTrait -import com.azure.cosmos.spark.{ChangeFeedOffset, NormalizedRange} +import com.azure.cosmos.spark.{ChangeFeedOffset, CosmosConstants, NormalizedRange} import com.azure.cosmos.{CosmosAsyncClient, CosmosClientBuilder, DirectConnectionConfig, SparkBridgeInternal} import com.fasterxml.jackson.databind.ObjectMapper @@ -21,6 +23,14 @@ import scala.collection.JavaConverters._ // scalastyle:on underscore.import private[cosmos] object SparkBridgeImplementationInternal extends BasicLoggingTrait { + private val SPARK_MAX_CONNECTIONS_PER_ENDPOINT_PROPERTY = "COSMOS.SPARK_MAX_CONNECTIONS_PER_ENDPOINT" + private val SPARK_MAX_CONNECTIONS_PER_ENDPOINT_VARIABLE = "COSMOS_SPARK_MAX_CONNECTIONS_PER_ENDPOINT" + private val DEFAULT_SPARK_MAX_CONNECTIONS_PER_ENDPOINT: Int = DirectConnectionConfig.getDefaultConfig.getMaxConnectionsPerEndpoint + + private val SPARK_IO_THREAD_COUNT_FACTOR_PER_CORE_PROPERTY = "COSMOS.SPARK_IO_THREAD_COUNT_FACTOR_PER_CORE" + private val SPARK_IO_THREAD_COUNT_FACTOR_PER_CORE_VARIABLE = "COSMOS_SPARK_IO_THREAD_COUNT_FACTOR_PER_CORE" + private val DEFAULT_SPARK_IO_THREAD_COUNT_FACTOR_PER_CORE: Int = CosmosConstants.defaultIoThreadCountFactorPerCore + def setMetadataCacheSnapshot(cosmosClientBuilder: CosmosClientBuilder, metadataCache: CosmosClientMetadataCachesSnapshot): Unit = { @@ -356,6 +366,41 @@ private[cosmos] object SparkBridgeImplementationInternal extends BasicLoggingTra ).json() } + private def getMaxConnectionsPerEndpointOverride: Int = { + val maxConnectionsPerEndpointText = System.getProperty( + SPARK_MAX_CONNECTIONS_PER_ENDPOINT_PROPERTY, + firstNonNull( + emptyToNull(System.getenv.get(SPARK_MAX_CONNECTIONS_PER_ENDPOINT_VARIABLE)), + String.valueOf(DEFAULT_SPARK_MAX_CONNECTIONS_PER_ENDPOINT))) + + try { + maxConnectionsPerEndpointText.toInt + } + catch { + case e: Exception => + logError(s"Parsing spark max connections per endpoint failed. Using the default $DEFAULT_SPARK_MAX_CONNECTIONS_PER_ENDPOINT.", e) + DEFAULT_SPARK_MAX_CONNECTIONS_PER_ENDPOINT + } + } + + def getIoThreadCountPerCoreOverride: Int = { + val ioThreadCountPerCoreText = System.getProperty( + SPARK_IO_THREAD_COUNT_FACTOR_PER_CORE_PROPERTY, + firstNonNull( + emptyToNull(System.getenv.get(SPARK_IO_THREAD_COUNT_FACTOR_PER_CORE_VARIABLE)), + String.valueOf(DEFAULT_SPARK_IO_THREAD_COUNT_FACTOR_PER_CORE))) + + try { + ioThreadCountPerCoreText.toInt + } + catch { + case e: Exception => + logError(s"Parsing spark I/O thread-count per core failed. Using the default $DEFAULT_SPARK_IO_THREAD_COUNT_FACTOR_PER_CORE.", e) + DEFAULT_SPARK_IO_THREAD_COUNT_FACTOR_PER_CORE + } + } + + def configureSimpleObjectMapper(allowDuplicateProperties: Boolean) : Unit = { Utils.configureSimpleObjectMapper(allowDuplicateProperties) } @@ -365,22 +410,24 @@ private[cosmos] object SparkBridgeImplementationInternal extends BasicLoggingTra "\"timeoutDetectionTimeLimit\": \"PT90S\", \"timeoutDetectionHighFrequencyThreshold\": 10," + "\"timeoutDetectionHighFrequencyTimeLimit\": \"PT30S\", \"timeoutDetectionOnWriteThreshold\": 10," + "\"timeoutDetectionOnWriteTimeLimit\": \"PT90s\", \"tcpNetworkRequestTimeout\": \"PT7S\", " + - "\"connectTimeout\": \"PT10S\"}" + "\"connectTimeout\": \"PT10S\", \"maxChannelsPerEndpoint\": \"" + + s"$getMaxConnectionsPerEndpointOverride" + + "\"}" if (System.getProperty("reactor.netty.tcp.sslHandshakeTimeout") == null) { - System.setProperty("reactor.netty.tcp.sslHandshakeTimeout", "20000"); + System.setProperty("reactor.netty.tcp.sslHandshakeTimeout", "20000") } if (System.getProperty(Configs.HTTP_MAX_REQUEST_TIMEOUT) == null) { System.setProperty( Configs.HTTP_MAX_REQUEST_TIMEOUT, - "70"); + "70") } if (System.getProperty(Configs.HTTP_DEFAULT_CONNECTION_POOL_SIZE) == null) { System.setProperty( Configs.HTTP_DEFAULT_CONNECTION_POOL_SIZE, - "25000"); + "25000") } if (System.getProperty("azure.cosmos.directTcp.defaultOptions") == null) { diff --git a/sdk/cosmos/azure-cosmos-spark_3_2-12/src/main/scala/com/azure/cosmos/spark/BulkWriter.scala b/sdk/cosmos/azure-cosmos-spark_3_2-12/src/main/scala/com/azure/cosmos/spark/BulkWriter.scala index 10db85cd86c0..f097230c3dea 100644 --- a/sdk/cosmos/azure-cosmos-spark_3_2-12/src/main/scala/com/azure/cosmos/spark/BulkWriter.scala +++ b/sdk/cosmos/azure-cosmos-spark_3_2-12/src/main/scala/com/azure/cosmos/spark/BulkWriter.scala @@ -9,7 +9,9 @@ import com.azure.cosmos.implementation.apachecommons.lang.StringUtils import com.azure.cosmos.implementation.batch.{BatchRequestResponseConstants, BulkExecutorDiagnosticsTracker, ItemBulkOperation} import com.azure.cosmos.models._ import com.azure.cosmos.spark.BulkWriter.{BulkOperationFailedException, bulkWriterBoundedElastic, getThreadInfo, readManyBoundedElastic} +import com.azure.cosmos.spark.CosmosConstants.StatusCodes import com.azure.cosmos.spark.diagnostics.DefaultDiagnostics +import reactor.core.Scannable import reactor.core.publisher.Mono import reactor.core.scheduler.Scheduler @@ -55,6 +57,8 @@ private class BulkWriter(container: CosmosAsyncContainer, private val log = LoggerHelper.getLogger(diagnosticsConfig, this.getClass) + private val verboseLoggingAfterReEnqueueingRetriesEnabled = new AtomicBoolean(false) + private val cpuCount = SparkUtils.getNumberOfHostCPUCores // each bulk writer allows up to maxPendingOperations being buffered // there is one bulk writer per spark task/partition @@ -111,9 +115,17 @@ private class BulkWriter(container: CosmosAsyncContainer, maxConcurrentPartitions ) - private class ForwardingMetricTracker extends BulkExecutorDiagnosticsTracker { + private class ForwardingMetricTracker(val verboseLoggingEnabled: AtomicBoolean) extends BulkExecutorDiagnosticsTracker { override def trackDiagnostics(ctx: CosmosDiagnosticsContext): Unit = { - outputMetricsPublisher.trackWriteOperation(0, Option.apply(ctx)) + val ctxOption = Option.apply(ctx) + outputMetricsPublisher.trackWriteOperation(0, ctxOption) + if (ctxOption.isDefined && verboseLoggingEnabled.get) { + BulkWriter.log.logWarning(s"Track bulk operation after re-enqueued retry: ${ctxOption.get.toJson}") + } + } + + override def verboseLoggingAfterReEnqueueingRetriesEnabled(): Boolean = { + verboseLoggingEnabled.get() } } @@ -121,7 +133,7 @@ private class BulkWriter(container: CosmosAsyncContainer, .getCosmosBulkExecutionOptionsAccessor .setDiagnosticsTracker( cosmosBulkExecutionOptions, - new ForwardingMetricTracker + new ForwardingMetricTracker(verboseLoggingAfterReEnqueueingRetriesEnabled) ) ThroughputControlHelper.populateThroughputControlGroupName(cosmosBulkExecutionOptions, writeConfig.throughputControlConfig) @@ -421,7 +433,7 @@ private class BulkWriter(container: CosmosAsyncContainer, // so we are not going to make task complete here if (!activeReadManyOperationFound) { // can't find the read-many operation in list of active operations! - log.logInfo(s"Cannot find active read-many for '" + logInfoOrWarning(s"Cannot find active read-many for '" + s"${readManyOperation.cosmosItemIdentity.getPartitionKey}/" + s"${readManyOperation.cosmosItemIdentity.getId}'. This can happen when " + s"retries get re-enqueued.") @@ -563,7 +575,7 @@ private class BulkWriter(container: CosmosAsyncContainer, if (!itemOperationFound) { // can't find the item operation in list of active operations! - log.logInfo(s"Cannot find active operation for '${itemOperation.getOperationType} " + + logInfoOrWarning(s"Cannot find active operation for '${itemOperation.getOperationType} " + s"${itemOperation.getPartitionKeyValue}/${itemOperation.getId}'. This can happen when " + s"retries get re-enqueued.") shouldSkipTaskCompletion.set(true) @@ -668,7 +680,7 @@ private class BulkWriter(container: CosmosAsyncContainer, operationContext: OperationContext): Unit = { activeTasks.incrementAndGet() if (operationContext.attemptNumber > 1) { - log.logInfo(s"bulk scheduleWrite attemptCnt: ${operationContext.attemptNumber}, " + + logInfoOrWarning(s"bulk scheduleWrite attemptCnt: ${operationContext.attemptNumber}, " + s"Context: ${operationContext.toString} $getThreadInfo") } @@ -923,7 +935,7 @@ private class BulkWriter(container: CosmosAsyncContainer, ) } else { numberOfIntervalsWithIdenticalActiveOperationSnapshots.set(0) - log.logInfo( + logInfoOrWarning( s"$operationName is waiting for active bulkWrite operations: $operationsLog " + s"Context: ${operationContext.toString} $getThreadInfo" ) @@ -966,7 +978,7 @@ private class BulkWriter(container: CosmosAsyncContainer, while ((pendingRetriesSnapshot > 0 || activeTasksSnapshot > 0) && errorCaptureFirstException.get == null) { - log.logInfo( + logInfoOrWarning( s"Waiting for pending activeTasks $activeTasksSnapshot and/or pendingRetries " + s"$pendingRetriesSnapshot, Context: ${operationContext.toString} $getThreadInfo") val activeOperationsSnapshot = activeBulkWriteOperations.clone() @@ -981,9 +993,17 @@ private class BulkWriter(container: CosmosAsyncContainer, ) if (numberOfIntervalsWithIdenticalActiveOperationSnapshots.get == 1L && - // pending retries only tracks the time to enqueue - // the retry - so this should never take longer than 1 minute - pendingRetriesSnapshot == 0L) { + // pending retries only tracks the time to enqueue + // the retry - so this should never take longer than 1 minute + pendingRetriesSnapshot == 0L && + Scannable.from(bulkInputEmitter).scan(Scannable.Attr.BUFFERED) >0) { + + if (verboseLoggingAfterReEnqueueingRetriesEnabled.compareAndSet(false, true)) { + log.logWarning(s"Starting to re-enqueue retries. Enabling verbose logs. " + + s"Attempt: ${numberOfIntervalsWithIdenticalActiveOperationSnapshots.get} - " + + s"Context: ${operationContext.toString} $getThreadInfo") + } + activeOperationsSnapshot.foreach(operation => { if (activeBulkWriteOperations.contains(operation)) { // re-validating whether the operation is still active - if so, just re-enqueue another retry @@ -991,8 +1011,9 @@ private class BulkWriter(container: CosmosAsyncContainer, // For FAIL_NON_SERIALIZED, will keep retry, while for other errors, use the default behavior bulkInputEmitter.emitNext(operation, emitFailureHandler) - log.logInfo(s"Re-enqueued a retry for pending active write task '${operation.getOperationType} " + log.logWarning(s"Re-enqueued a retry for pending active write task '${operation.getOperationType} " + s"(${operation.getPartitionKeyValue}/${operation.getId})' " + + s"- Attempt: ${numberOfIntervalsWithIdenticalActiveOperationSnapshots.get} - " + s"Context: ${operationContext.toString} $getThreadInfo") } }) @@ -1004,8 +1025,9 @@ private class BulkWriter(container: CosmosAsyncContainer, // For FAIL_NON_SERIALIZED, will keep retry, while for other errors, use the default behavior readManyInputEmitterOpt.get.emitNext(operation, emitFailureHandler) - log.logInfo(s"Re-enqueued a retry for pending active read-many task '" + log.logWarning(s"Re-enqueued a retry for pending active read-many task '" + s"(${operation.cosmosItemIdentity.getPartitionKey}/${operation.cosmosItemIdentity.getId})' " + + s"- Attempt: ${numberOfIntervalsWithIdenticalActiveOperationSnapshots.get} - " + s"Context: ${operationContext.toString} $getThreadInfo") } }) @@ -1017,44 +1039,28 @@ private class BulkWriter(container: CosmosAsyncContainer, val semaphoreAvailablePermitsSnapshot = semaphore.availablePermits() if (awaitCompleted) { - log.logInfo(s"Waiting completed for pending activeTasks $activeTasksSnapshot, pendingRetries " + + logInfoOrWarning(s"Waiting completed for pending activeTasks $activeTasksSnapshot, pendingRetries " + s"$pendingRetriesSnapshot Context: ${operationContext.toString} $getThreadInfo") } else { - log.logInfo(s"Waiting interrupted for pending activeTasks $activeTasksSnapshot , pendingRetries " + + logInfoOrWarning(s"Waiting interrupted for pending activeTasks $activeTasksSnapshot , pendingRetries " + s"$pendingRetriesSnapshot - available permits $semaphoreAvailablePermitsSnapshot, " + s"Context: ${operationContext.toString} $getThreadInfo") } } - log.logInfo(s"Waiting completed for pending activeTasks $activeTasksSnapshot, pendingRetries " + + logInfoOrWarning(s"Waiting completed for pending activeTasks $activeTasksSnapshot, pendingRetries " + s"$pendingRetriesSnapshot Context: ${operationContext.toString} $getThreadInfo") } finally { lock.unlock() } - log.logInfo(s"invoking bulkInputEmitter.onComplete(), Context: ${operationContext.toString} $getThreadInfo") + logInfoOrWarning(s"invoking bulkInputEmitter.onComplete(), Context: ${operationContext.toString} $getThreadInfo") semaphore.release(Math.max(0, activeTasks.get())) - val completeBulkWriteEmitResult = bulkInputEmitter.tryEmitComplete() - if (completeBulkWriteEmitResult eq Sinks.EmitResult.OK) { - log.logDebug(s"bulkInputEmitter sink completed, Context: ${operationContext.toString} $getThreadInfo") - } - else { - log.logInfo( - s"bulkInputEmitter sink completion failed. EmitResult: $completeBulkWriteEmitResult +" + - s"Context: ${operationContext.toString} $getThreadInfo") - } + bulkInputEmitter.emitComplete(BulkWriter.emitFailureHandlerForComplete) // complete readManyInputEmitter if (readManyInputEmitterOpt.isDefined) { - val completeReadManyEmitResult = readManyInputEmitterOpt.get.tryEmitComplete() - if (completeReadManyEmitResult eq Sinks.EmitResult.OK) { - log.logDebug(s"bulkInputEmitter sink completed, Context: ${operationContext.toString} $getThreadInfo") - } - else { - log.logInfo( - s"bulkInputEmitter sink completion failed. EmitResult: $completeReadManyEmitResult +" + - s"Context: ${operationContext.toString} $getThreadInfo") - } + readManyInputEmitterOpt.get.emitComplete(BulkWriter.emitFailureHandlerForComplete) } throwIfCapturedExceptionExists() @@ -1070,7 +1076,7 @@ private class BulkWriter(container: CosmosAsyncContainer, s"retries. totalSuccessfulIngestionMetrics=${totalSuccessfulIngestionMetrics.get()}, " + s"totalScheduled=$totalScheduledMetrics, Context: ${operationContext.toString} $getThreadInfo") } else { - log.logInfo(s"flushAndClose completed with no error. " + + logInfoOrWarning(s"flushAndClose completed with no error. " + s"totalSuccessfulIngestionMetrics=${totalSuccessfulIngestionMetrics.get()}, " + s"totalScheduled=$totalScheduledMetrics, Context: ${operationContext.toString} $getThreadInfo") } @@ -1115,6 +1121,14 @@ private class BulkWriter(container: CosmosAsyncContainer, // scalastyle:on method.length // scalastyle:on cyclomatic.complexity + private def logInfoOrWarning(msg: => String): Unit = { + if (this.verboseLoggingAfterReEnqueueingRetriesEnabled.get()) { + log.logWarning(msg) + } else { + log.logInfo(msg) + } + } + private def markTaskCompletion(): Unit = { lock.lock() try { @@ -1142,7 +1156,7 @@ private class BulkWriter(container: CosmosAsyncContainer, } private def cancelWork(): Unit = { - log.logInfo(s"cancelling remaining unprocessed tasks ${activeTasks.get} " + + logInfoOrWarning(s"cancelling remaining unprocessed tasks ${activeTasks.get} " + s"[bulkWrite tasks ${activeBulkWriteOperations.size}, readMany tasks ${activeReadManyOperations.size} ]" + s"Context: ${operationContext.toString}") subscriptionDisposable.dispose() @@ -1173,9 +1187,14 @@ private class BulkWriter(container: CosmosAsyncContainer, returnValue = writeConfig.itemWriteStrategy match { case ItemWriteStrategy.ItemBulkUpdate => this.shouldRetryForItemPatchBulkUpdate(statusCode, subStatusCode) - case _ => Exceptions.canBeTransientFailure(statusCode, subStatusCode) || - statusCode == 0 // Gateway mode reports inability to connect due to - // PoolAcquirePendingLimitException as status code 0 + // Upsert can return 404/0 in rare cases (when due to TTL expiration there is a race condition + case ItemWriteStrategy.ItemOverwrite => + Exceptions.canBeTransientFailure(statusCode, subStatusCode) || + statusCode == 0 || // Gateway mode reports inability to connect due to PoolAcquirePendingLimitException as status code 0 + Exceptions.isNotFoundExceptionCore(statusCode, subStatusCode) + case _ => + Exceptions.canBeTransientFailure(statusCode, subStatusCode) || + statusCode == 0 // Gateway mode reports inability to connect due to PoolAcquirePendingLimitException as status code 0 } } @@ -1273,6 +1292,20 @@ private object BulkWriter { } } + private val emitFailureHandlerForComplete: EmitFailureHandler = + (signalType, emitResult) => { + if (emitResult.equals(EmitResult.FAIL_NON_SERIALIZED)) { + log.logDebug(s"emitFailureHandlerForComplete - Signal: ${signalType.toString}, Result: ${emitResult.toString}") + true + } else if (emitResult.equals(EmitResult.FAIL_CANCELLED) || emitResult.equals(EmitResult.FAIL_TERMINATED)) { + log.logDebug(s"emitFailureHandlerForComplete - Already completed - Signal: ${signalType.toString}, Result: ${emitResult.toString}") + false + } else { + log.logError(s"emitFailureHandlerForComplete - Signal: ${signalType.toString}, Result: ${emitResult.toString}") + false + } + } + private val bulkProcessingThresholds = new CosmosBulkExecutionThresholdsState() // Custom bounded elastic scheduler to switch off IO thread to process response. diff --git a/sdk/cosmos/azure-cosmos-spark_3_2-12/src/main/scala/com/azure/cosmos/spark/CosmosClientCache.scala b/sdk/cosmos/azure-cosmos-spark_3_2-12/src/main/scala/com/azure/cosmos/spark/CosmosClientCache.scala index 7f92ce8db085..748ea7400463 100644 --- a/sdk/cosmos/azure-cosmos-spark_3_2-12/src/main/scala/com/azure/cosmos/spark/CosmosClientCache.scala +++ b/sdk/cosmos/azure-cosmos-spark_3_2-12/src/main/scala/com/azure/cosmos/spark/CosmosClientCache.scala @@ -265,7 +265,7 @@ private[spark] object CosmosClientCache extends BasicLoggingTrait { // indicators that the default number of I/O threads can be too low // for workloads with large payloads SparkBridgeImplementationInternal - .setIoThreadCountPerCoreFactor(directConfig, CosmosConstants.defaultIoThreadCountFactorPerCore) + .setIoThreadCountPerCoreFactor(directConfig, SparkBridgeImplementationInternal.getIoThreadCountPerCoreOverride) directConfig = // Spark workloads often result in very high CPU load diff --git a/sdk/cosmos/azure-cosmos-spark_3_2-12/src/main/scala/com/azure/cosmos/spark/CosmosConstants.scala b/sdk/cosmos/azure-cosmos-spark_3_2-12/src/main/scala/com/azure/cosmos/spark/CosmosConstants.scala index 6ed778d138ea..65f2b9bfbf29 100644 --- a/sdk/cosmos/azure-cosmos-spark_3_2-12/src/main/scala/com/azure/cosmos/spark/CosmosConstants.scala +++ b/sdk/cosmos/azure-cosmos-spark_3_2-12/src/main/scala/com/azure/cosmos/spark/CosmosConstants.scala @@ -8,7 +8,7 @@ import com.azure.cosmos.implementation.HttpConstants import reactor.util.concurrent.Queues // cosmos db related constants -private object CosmosConstants { +private[cosmos] object CosmosConstants { private[this] val propertiesFileName = "azure-cosmos-spark.properties" val currentVersion: String = CoreUtils.getProperties(propertiesFileName).get("version") diff --git a/sdk/cosmos/azure-cosmos-spark_3_2-12/src/main/scala/com/azure/cosmos/spark/PointWriter.scala b/sdk/cosmos/azure-cosmos-spark_3_2-12/src/main/scala/com/azure/cosmos/spark/PointWriter.scala index c22b3c4949a1..6acf3678a1c4 100644 --- a/sdk/cosmos/azure-cosmos-spark_3_2-12/src/main/scala/com/azure/cosmos/spark/PointWriter.scala +++ b/sdk/cosmos/azure-cosmos-spark_3_2-12/src/main/scala/com/azure/cosmos/spark/PointWriter.scala @@ -317,7 +317,9 @@ private class PointWriter(container: CosmosAsyncContainer, return } catch { - case e: CosmosException if Exceptions.canBeTransientFailure(e.getStatusCode, e.getSubStatusCode) => + case e: CosmosException if (Exceptions.canBeTransientFailure(e.getStatusCode, e.getSubStatusCode) || + Exceptions.isNotFoundExceptionCore(e.getStatusCode, e.getSubStatusCode) || + e.getStatusCode == 0) => // Gateway mode reports inability to connect due to PoolAcquirePendingLimitException as status code 0 log.logWarning( s"upsert item $upsertOperation attempt #$attempt max remaining retries " + s"${cosmosWriteConfig.maxRetryCount - attempt}, encountered ${e.getMessage}") diff --git a/sdk/cosmos/azure-cosmos/CHANGELOG.md b/sdk/cosmos/azure-cosmos/CHANGELOG.md index e29083fab193..b8fe36014940 100644 --- a/sdk/cosmos/azure-cosmos/CHANGELOG.md +++ b/sdk/cosmos/azure-cosmos/CHANGELOG.md @@ -12,6 +12,14 @@ #### Other Changes * Only call System.exit in `DiagnosticsProvider` for `Error` scenario. Also add `System.err` for `Error` cases. - See [PR 39077](https://github.com/Azure/azure-sdk-for-java/pull/39077) +### 4.53.3-hotfix (2024-03-07) + +#### Bugs Fixed +* Suppress exceptions when calling diagnostics handlers. - See [PR 39121](https://github.com/Azure/azure-sdk-for-java/pull/39121) + +#### Other Changes +* Only call System.exit in DiagnosticsProvider for Error scenario. Also add System.err for Error cases. - - See [PR 39121](https://github.com/Azure/azure-sdk-for-java/pull/39121) + ### 4.56.0 (2024-02-20) #### Features Added diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/CosmosClientBuilder.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/CosmosClientBuilder.java index 98d6173869d8..1c30988b6112 100644 --- a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/CosmosClientBuilder.java +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/CosmosClientBuilder.java @@ -1232,7 +1232,7 @@ private void logStartupInfo(StopWatch stopwatch, CosmosAsyncClient client) { } // NOTE: if changing the logging below - do not log any confidential info like master key credentials etc. - logger.info("Cosmos Client with (Correlation) ID [{}] started up in [{}] ms with the following " + + logger.warn("Cosmos Client with (Correlation) ID [{}] started up in [{}] ms with the following " + "configuration: serviceEndpoint [{}], preferredRegions [{}], excludedRegions [{}], connectionPolicy [{}], " + "consistencyLevel [{}], contentResponseOnWriteEnabled [{}], sessionCapturingOverride [{}], " + "connectionSharingAcrossClients [{}], clientTelemetryEnabled [{}], proactiveContainerInit [{}], diagnostics [{}], tracing [{}]", diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/RxDocumentClientImpl.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/RxDocumentClientImpl.java index a79f881c8069..0199e70e5df7 100644 --- a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/RxDocumentClientImpl.java +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/RxDocumentClientImpl.java @@ -630,7 +630,7 @@ public void init(CosmosClientMetadataCachesSnapshot metadataCachesSnapshot, Func this, this.connectionPolicy.getPreferredRegions()); clientTelemetry.init().thenEmpty((publisher) -> { - logger.info( + logger.warn( "Initialized DocumentClient [{}] with machineId[{}]" + " serviceEndpoint [{}], connectionPolicy [{}], consistencyLevel [{}]", clientId, diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/batch/BulkExecutor.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/batch/BulkExecutor.java index cd322fbfdae5..2f9c50086f1e 100644 --- a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/batch/BulkExecutor.java +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/batch/BulkExecutor.java @@ -107,14 +107,14 @@ public final class BulkExecutor implements Disposable { private final AtomicBoolean isDisposed = new AtomicBoolean(false); private final AtomicBoolean isShutdown = new AtomicBoolean(false); private final AtomicInteger totalCount; - private final Sinks.EmitFailureHandler serializedEmitFailureHandler; + private final static Sinks.EmitFailureHandler serializedEmitFailureHandler = new SerializedEmitFailureHandler(); + private final static Sinks.EmitFailureHandler serializedCompleteEmitFailureHandler = new SerializedCompleteEmitFailureHandler();; private final Sinks.Many mainSink; private final List> groupSinks; private final CosmosAsyncClient cosmosClient; private final String bulkSpanName; private final AtomicReference scheduledFutureForFlush; private final String identifier = "BulkExecutor-" + instanceCount.incrementAndGet(); - private final BulkExecutorDiagnosticsTracker diagnosticsTracker; public BulkExecutor(CosmosAsyncContainer container, @@ -163,7 +163,6 @@ public BulkExecutor(CosmosAsyncContainer container, // Initialize sink for handling gone error. mainSourceCompleted = new AtomicBoolean(false); totalCount = new AtomicInteger(0); - serializedEmitFailureHandler = new SerializedEmitFailureHandler(); mainSink = Sinks.many().unicast().onBackpressureBuffer(); groupSinks = new CopyOnWriteArrayList<>(); @@ -217,16 +216,32 @@ private void cancelFlushTask(boolean initializeAggressiveFlush) { if (scheduledFutureSnapshot != null) { try { scheduledFutureSnapshot.dispose(); - logger.debug("Cancelled all future scheduled tasks {}, Context: {}", getThreadInfo(), this.operationContextText); + logDebugOrWarning("Cancelled all future scheduled tasks {}, Context: {}", getThreadInfo(), this.operationContextText); } catch (Exception e) { logger.warn("Failed to cancel scheduled tasks{}, Context: {}", getThreadInfo(), this.operationContextText, e); } } } + private void logInfoOrWarning(String msg, Object... args) { + if (this.diagnosticsTracker == null || !this.diagnosticsTracker.verboseLoggingAfterReEnqueueingRetriesEnabled()) { + logger.info(msg, args); + } else { + logger.warn(msg, args); + } + } + + private void logDebugOrWarning(String msg, Object... args) { + if (this.diagnosticsTracker == null || !this.diagnosticsTracker.verboseLoggingAfterReEnqueueingRetriesEnabled()) { + logger.debug(msg, args); + } else { + logger.warn(msg, args); + } + } + private void shutdown() { if (this.isShutdown.compareAndSet(false, true)) { - logger.debug("Shutting down, Context: {}", this.operationContextText); + logDebugOrWarning("Shutting down, Context: {}", this.operationContextText); groupSinks.forEach(FluxSink::complete); logger.debug("All group sinks completed, Context: {}", this.operationContextText); @@ -240,20 +255,20 @@ public Flux> execute() { .executeCore() .doFinally((SignalType signal) -> { if (signal == SignalType.ON_COMPLETE) { - logger.debug("BulkExecutor.execute flux completed - # left items {}, Context: {}, {}", + logDebugOrWarning("BulkExecutor.execute flux completed - # left items {}, Context: {}, {}", this.totalCount.get(), this.operationContextText, getThreadInfo()); } else { int itemsLeftSnapshot = this.totalCount.get(); if (itemsLeftSnapshot > 0) { - logger.info("BulkExecutor.execute flux terminated - Signal: {} - # left items {}, Context: {}, {}", + logInfoOrWarning("BulkExecutor.execute flux terminated - Signal: {} - # left items {}, Context: {}, {}", signal, itemsLeftSnapshot, this.operationContextText, getThreadInfo()); } else { - logger.debug("BulkExecutor.execute flux terminated - Signal: {} - # left items {}, Context: {}, {}", + logDebugOrWarning("BulkExecutor.execute flux terminated - Signal: {} - # left items {}, Context: {}, {}", signal, itemsLeftSnapshot, this.operationContextText, @@ -294,14 +309,15 @@ private Flux> executeCore() { .subscribeOn(CosmosSchedulers.BULK_EXECUTOR_BOUNDED_ELASTIC) .flatMapMany(maxConcurrentCosmosPartitions -> { - logger.debug("BulkExecutor.execute with MaxConcurrentPartitions: {}, Context: {}", + logDebugOrWarning("BulkExecutor.execute with MaxConcurrentPartitions: {}, Context: {}", maxConcurrentCosmosPartitions, this.operationContextText); return this.inputOperations .publishOn(CosmosSchedulers.BULK_EXECUTOR_BOUNDED_ELASTIC) .onErrorMap(throwable -> { - logger.error("Skipping an error operation while processing. Cause: {}, Context: {}", + logger.error("{}: Skipping an error operation while processing. Cause: {}, Context: {}", + getThreadInfo(), throwable.getMessage(), this.operationContextText, throwable); @@ -309,7 +325,6 @@ private Flux> executeCore() { return throwable; }) .doOnNext((CosmosItemOperation cosmosItemOperation) -> { - // Set the retry policy before starting execution. Should only happens once. BulkExecutorUtil.setRetryPolicyForBulk( docClientWrapper, @@ -333,7 +348,7 @@ private Flux> executeCore() { mainSourceCompleted.set(true); long totalCountSnapshot = totalCount.get(); - logger.debug("Main source completed - # left items {}, Context: {}", + logDebugOrWarning("Main source completed - # left items {}, Context: {}", totalCountSnapshot, this.operationContextText); if (totalCountSnapshot == 0) { @@ -346,7 +361,7 @@ private Flux> executeCore() { this.cancelFlushTask(true); this.onFlush(); - logger.debug("Scheduled new flush operation {}, Context: {}", getThreadInfo(), this.operationContextText); + logDebugOrWarning("Scheduled new flush operation {}, Context: {}", getThreadInfo(), this.operationContextText); } }) .mergeWith(mainSink.asFlux()) @@ -387,7 +402,7 @@ private Flux> executeCore() { if (totalCountAfterDecrement == 0 && mainSourceCompletedSnapshot) { // It is possible that count is zero but there are more elements in the source. // Count 0 also signifies that there are no pending elements in any sink. - logger.debug("All work completed, {}, TotalCount: {}, Context: {} {}", + logDebugOrWarning("All work completed, {}, TotalCount: {}, Context: {} {}", getItemOperationDiagnostics(requestAndResponse.getOperation()), totalCountAfterDecrement, this.operationContextText, @@ -395,7 +410,7 @@ private Flux> executeCore() { completeAllSinks(); } else { if (totalCountAfterDecrement == 0) { - logger.debug( + logDebugOrWarning( "No Work left - but mainSource not yet completed, Context: {} {}", this.operationContextText, getThreadInfo()); @@ -415,10 +430,10 @@ private Flux> executeCore() { if (totalCountSnapshot == 0 && mainSourceCompletedSnapshot) { // It is possible that count is zero but there are more elements in the source. // Count 0 also signifies that there are no pending elements in any sink. - logger.debug("DoOnComplete: All work completed, Context: {}", this.operationContextText); + logDebugOrWarning("DoOnComplete: All work completed, Context: {}", this.operationContextText); completeAllSinks(); } else { - logger.debug( + logDebugOrWarning( "DoOnComplete: Work left - TotalCount after decrement: {}, main sink completed {}, Context: {} {}", totalCountSnapshot, mainSourceCompletedSnapshot, @@ -489,7 +504,7 @@ private Flux> executePartitionedGroup( age >= this.maxMicroBatchIntervalInMs || totalSerializedLength >= this.maxMicroBatchPayloadSizeInBytes) { - logger.debug( + logDebugOrWarning( "BufferUntil - Flushing PKRange {} due to BatchSize ({}), payload size ({}) or age ({}), " + "Triggering {}, Context: {} {}", thresholds.getPartitionKeyRangeId(), @@ -520,7 +535,7 @@ private Flux> executePartitionedGroup( operations.add(itemOperation); } - logger.debug( + logDebugOrWarning( "Flushing PKRange {} micro batch with {} operations, Context: {} {}", thresholds.getPartitionKeyRangeId(), operations.size(), @@ -614,7 +629,7 @@ private Mono> handleTransactionalBatchOper CosmosItemOperation itemOperation = operationResult.getOperation(); TContext actualContext = this.getActualContext(itemOperation); - logger.debug( + logDebugOrWarning( "HandleTransactionalBatchOperationResult - PKRange {}, Response Status Code {}, " + "Operation Status Code, {}, {}, Context: {} {}", thresholds.getPartitionKeyRangeId(), @@ -632,7 +647,7 @@ private Mono> handleTransactionalBatchOper return itemBulkOperation.getRetryPolicy().shouldRetry(operationResult).flatMap( result -> { if (result.shouldRetry) { - logger.debug( + logDebugOrWarning( "HandleTransactionalBatchOperationResult - enqueue retry, PKRange {}, Response " + "Status Code {}, Operation Status Code, {}, {}, Context: {} {}", thresholds.getPartitionKeyRangeId(), @@ -647,7 +662,7 @@ private Mono> handleTransactionalBatchOper if (response.getStatusCode() == HttpConstants.StatusCodes.CONFLICT || response.getStatusCode() == HttpConstants.StatusCodes.PRECONDITION_FAILED) { - logger.debug( + logDebugOrWarning( "HandleTransactionalBatchOperationResult - Fail, PKRange {}, Response Status " + "Code {}, Operation Status Code {}, {}, Context: {} {}", thresholds.getPartitionKeyRangeId(), @@ -709,7 +724,7 @@ private Mono> handleTransactionalBatchExec FluxSink groupSink, PartitionScopeThresholds thresholds) { - logger.debug( + logDebugOrWarning( "HandleTransactionalBatchExecutionException, PKRange {}, Error: {}, {}, Context: {} {}", thresholds.getPartitionKeyRangeId(), exception, @@ -728,7 +743,7 @@ private Mono> handleTransactionalBatchExec .shouldRetryForGone(cosmosException.getStatusCode(), cosmosException.getSubStatusCode(), itemBulkOperation, cosmosException) .flatMap(shouldRetryGone -> { if (shouldRetryGone) { - logger.debug( + logDebugOrWarning( "HandleTransactionalBatchExecutionException - Retry due to split, PKRange {}, Error: " + "{}, {}, Context: {} {}", thresholds.getPartitionKeyRangeId(), @@ -740,7 +755,7 @@ private Mono> handleTransactionalBatchExec mainSink.emitNext(itemOperation, serializedEmitFailureHandler); return Mono.empty(); } else { - logger.debug( + logDebugOrWarning( "HandleTransactionalBatchExecutionException - Retry other, PKRange {}, Error: " + "{}, {}, Context: {} {}", thresholds.getPartitionKeyRangeId(), @@ -864,26 +879,10 @@ private Mono executeBatchRequest(PartitionKeyRangeServerBat } private void completeAllSinks() { - logger.info("Closing all sinks, Context: {}", this.operationContextText); + logInfoOrWarning("Closing all sinks, Context: {}", this.operationContextText); logger.debug("Executor service shut down, Context: {}", this.operationContextText); - Sinks.EmitResult completeEmitResult = mainSink.tryEmitComplete(); - if (completeEmitResult == Sinks.EmitResult.OK) { - logger.debug("Main sink completed, Context: {}", this.operationContextText); - } else { - if (completeEmitResult == Sinks.EmitResult.FAIL_CANCELLED || - completeEmitResult == Sinks.EmitResult.FAIL_TERMINATED) { - - logger.debug("Main sink already completed, EmitResult: {}, Context: {}", - completeEmitResult, - this.operationContextText); - } else { - logger.warn( - "Main sink completion failed. EmitResult: {}, Context: {}", - completeEmitResult, - this.operationContextText); - } - } + mainSink.emitComplete(serializedCompleteEmitFailureHandler); this.shutdown(); } @@ -929,7 +928,7 @@ private static String getThreadInfo() { return sb.toString(); } - private class SerializedEmitFailureHandler implements Sinks.EmitFailureHandler { + private static class SerializedEmitFailureHandler implements Sinks.EmitFailureHandler { @Override public boolean onEmitFailure(SignalType signalType, Sinks.EmitResult emitResult) { @@ -943,4 +942,24 @@ public boolean onEmitFailure(SignalType signalType, Sinks.EmitResult emitResult) return false; } } + + private static class SerializedCompleteEmitFailureHandler implements Sinks.EmitFailureHandler { + + @Override + public boolean onEmitFailure(SignalType signalType, Sinks.EmitResult emitResult) { + if (emitResult.equals(Sinks.EmitResult.FAIL_NON_SERIALIZED)) { + logger.debug("SerializedCompleteEmitFailureHandler.onEmitFailure - Signal:{}, Result: {}", signalType, emitResult); + + return true; + } + + if (emitResult == Sinks.EmitResult.FAIL_CANCELLED || emitResult == Sinks.EmitResult.FAIL_TERMINATED) { + logger.debug("SerializedCompleteEmitFailureHandler.onEmitFailure - Main sink already completed, Signal:{}, Result: {}", signalType, emitResult); + return false; + } + + logger.error("SerializedCompleteEmitFailureHandler.onEmitFailure - Signal:{}, Result: {}", signalType, emitResult); + return false; + } + } } diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/batch/BulkExecutorDiagnosticsTracker.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/batch/BulkExecutorDiagnosticsTracker.java index f31047d7f2e8..ebf490b53ee9 100644 --- a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/batch/BulkExecutorDiagnosticsTracker.java +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/batch/BulkExecutorDiagnosticsTracker.java @@ -7,4 +7,5 @@ public interface BulkExecutorDiagnosticsTracker { void trackDiagnostics(CosmosDiagnosticsContext ctx); + boolean verboseLoggingAfterReEnqueueingRetriesEnabled(); } diff --git a/sdk/eventgrid/azure-messaging-eventgrid/CHANGELOG.md b/sdk/eventgrid/azure-messaging-eventgrid/CHANGELOG.md index 760aa19131af..ad545476221d 100644 --- a/sdk/eventgrid/azure-messaging-eventgrid/CHANGELOG.md +++ b/sdk/eventgrid/azure-messaging-eventgrid/CHANGELOG.md @@ -1,14 +1,16 @@ # Release History -## 4.22.0-beta.1 (Unreleased) +## 4.22.0 (2024-03-11) ### Features Added +- New System Events for API Center -### Breaking Changes +### Other Changes -### Bugs Fixed +#### Dependency Updates -### Other Changes +- Upgraded `azure-core-http-netty` from `1.14.0` to version `1.14.1`. +- Upgraded `azure-core` from `1.46.0` to version `1.47.0`. ## 4.21.0 (2024-02-13) diff --git a/sdk/eventgrid/azure-messaging-eventgrid/README.md b/sdk/eventgrid/azure-messaging-eventgrid/README.md index e695b34e6422..79a5be2902a4 100644 --- a/sdk/eventgrid/azure-messaging-eventgrid/README.md +++ b/sdk/eventgrid/azure-messaging-eventgrid/README.md @@ -81,7 +81,7 @@ add the direct dependency to your project as follows. com.azure azure-messaging-eventgrid - 4.21.0 + 4.22.0 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/eventgrid/azure-messaging-eventgrid/pom.xml b/sdk/eventgrid/azure-messaging-eventgrid/pom.xml index edb80ee0d7fa..fcfb726735eb 100644 --- a/sdk/eventgrid/azure-messaging-eventgrid/pom.xml +++ b/sdk/eventgrid/azure-messaging-eventgrid/pom.xml @@ -12,7 +12,7 @@ com.azure azure-messaging-eventgrid - 4.22.0-beta.1 + 4.22.0 jar Microsoft Azure SDK for eventgrid diff --git a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/SystemEventNames.java b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/SystemEventNames.java index 28a9953f3639..66f3177fdb07 100644 --- a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/SystemEventNames.java +++ b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/SystemEventNames.java @@ -50,6 +50,8 @@ import com.azure.messaging.eventgrid.systemevents.AcsSmsDeliveryReportReceivedEventData; import com.azure.messaging.eventgrid.systemevents.AcsSmsReceivedEventData; import com.azure.messaging.eventgrid.systemevents.AcsUserDisconnectedEventData; +import com.azure.messaging.eventgrid.systemevents.ApiCenterApiDefinitionAddedEventData; +import com.azure.messaging.eventgrid.systemevents.ApiCenterApiDefinitionUpdatedEventData; import com.azure.messaging.eventgrid.systemevents.ApiManagementApiCreatedEventData; import com.azure.messaging.eventgrid.systemevents.ApiManagementApiDeletedEventData; import com.azure.messaging.eventgrid.systemevents.ApiManagementApiReleaseCreatedEventData; @@ -488,6 +490,16 @@ public final class SystemEventNames { */ public static final String COMMUNICATION_USER_DISCONNECTED = "Microsoft.Communication.UserDisconnected"; + /** + * Schema of the data property of an EventGridEvent for a Microsoft.ApiCenter.ApiDefinitionAdded event. + */ + public static final String API_CENTER_API_DEFINITION_ADDED = "Microsoft.ApiCenter.ApiDefinitionAdded"; + + /** + * Schema of the data property of an EventGridEvent for a Microsoft.ApiCenter.ApiDefinitionUpdated event. + */ + public static final String API_CENTER_API_DEFINITION_UPDATED = "Microsoft.ApiCenter.ApiDefinitionUpdated"; + /** * Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.APICreated event. */ @@ -1490,6 +1502,8 @@ public final class SystemEventNames { put(COMMUNICATION_SMS_DELIVERY_REPORT_RECEIVED, AcsSmsDeliveryReportReceivedEventData.class); put(COMMUNICATION_SMS_RECEIVED, AcsSmsReceivedEventData.class); put(COMMUNICATION_USER_DISCONNECTED, AcsUserDisconnectedEventData.class); + put(API_CENTER_API_DEFINITION_ADDED, ApiCenterApiDefinitionAddedEventData.class); + put(API_CENTER_API_DEFINITION_UPDATED, ApiCenterApiDefinitionUpdatedEventData.class); put(API_MANAGEMENT_API_CREATED, ApiManagementApiCreatedEventData.class); put(API_MANAGEMENT_API_DELETED, ApiManagementApiDeletedEventData.class); put(API_MANAGEMENT_API_RELEASE_CREATED, ApiManagementApiReleaseCreatedEventData.class); diff --git a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/ApiCenterApiDefinitionAddedEventData.java b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/ApiCenterApiDefinitionAddedEventData.java new file mode 100644 index 000000000000..792eff342eaf --- /dev/null +++ b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/ApiCenterApiDefinitionAddedEventData.java @@ -0,0 +1,141 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.messaging.eventgrid.systemevents; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Schema of the data property of an EventGridEvent for a Microsoft.ApiCenter.ApiDefinitionAdded event. + */ +@Fluent +public final class ApiCenterApiDefinitionAddedEventData + implements JsonSerializable { + /* + * API definition title. + */ + private String title; + + /* + * API definition description. + */ + private String description; + + /* + * API specification details. + */ + private ApiCenterApiSpecification specification; + + /** + * Creates an instance of ApiCenterApiDefinitionAddedEventData class. + */ + public ApiCenterApiDefinitionAddedEventData() { + } + + /** + * Get the title property: API definition title. + * + * @return the title value. + */ + public String getTitle() { + return this.title; + } + + /** + * Set the title property: API definition title. + * + * @param title the title value to set. + * @return the ApiCenterApiDefinitionAddedEventData object itself. + */ + public ApiCenterApiDefinitionAddedEventData setTitle(String title) { + this.title = title; + return this; + } + + /** + * Get the description property: API definition description. + * + * @return the description value. + */ + public String getDescription() { + return this.description; + } + + /** + * Set the description property: API definition description. + * + * @param description the description value to set. + * @return the ApiCenterApiDefinitionAddedEventData object itself. + */ + public ApiCenterApiDefinitionAddedEventData setDescription(String description) { + this.description = description; + return this; + } + + /** + * Get the specification property: API specification details. + * + * @return the specification value. + */ + public ApiCenterApiSpecification getSpecification() { + return this.specification; + } + + /** + * Set the specification property: API specification details. + * + * @param specification the specification value to set. + * @return the ApiCenterApiDefinitionAddedEventData object itself. + */ + public ApiCenterApiDefinitionAddedEventData setSpecification(ApiCenterApiSpecification specification) { + this.specification = specification; + return this; + } + + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("title", this.title); + jsonWriter.writeStringField("description", this.description); + jsonWriter.writeJsonField("specification", this.specification); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ApiCenterApiDefinitionAddedEventData from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ApiCenterApiDefinitionAddedEventData if the JsonReader was pointing to an instance of it, + * or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ApiCenterApiDefinitionAddedEventData. + */ + public static ApiCenterApiDefinitionAddedEventData fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ApiCenterApiDefinitionAddedEventData deserializedApiCenterApiDefinitionAddedEventData + = new ApiCenterApiDefinitionAddedEventData(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("title".equals(fieldName)) { + deserializedApiCenterApiDefinitionAddedEventData.title = reader.getString(); + } else if ("description".equals(fieldName)) { + deserializedApiCenterApiDefinitionAddedEventData.description = reader.getString(); + } else if ("specification".equals(fieldName)) { + deserializedApiCenterApiDefinitionAddedEventData.specification + = ApiCenterApiSpecification.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedApiCenterApiDefinitionAddedEventData; + }); + } +} diff --git a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/ApiCenterApiDefinitionUpdatedEventData.java b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/ApiCenterApiDefinitionUpdatedEventData.java new file mode 100644 index 000000000000..dd4fcc9dfc22 --- /dev/null +++ b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/ApiCenterApiDefinitionUpdatedEventData.java @@ -0,0 +1,141 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.messaging.eventgrid.systemevents; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Schema of the data property of an EventGridEvent for a Microsoft.ApiCenter.ApiDefinitionUpdated event. + */ +@Fluent +public final class ApiCenterApiDefinitionUpdatedEventData + implements JsonSerializable { + /* + * API definition title. + */ + private String title; + + /* + * API definition description. + */ + private String description; + + /* + * API specification details. + */ + private ApiCenterApiSpecification specification; + + /** + * Creates an instance of ApiCenterApiDefinitionUpdatedEventData class. + */ + public ApiCenterApiDefinitionUpdatedEventData() { + } + + /** + * Get the title property: API definition title. + * + * @return the title value. + */ + public String getTitle() { + return this.title; + } + + /** + * Set the title property: API definition title. + * + * @param title the title value to set. + * @return the ApiCenterApiDefinitionUpdatedEventData object itself. + */ + public ApiCenterApiDefinitionUpdatedEventData setTitle(String title) { + this.title = title; + return this; + } + + /** + * Get the description property: API definition description. + * + * @return the description value. + */ + public String getDescription() { + return this.description; + } + + /** + * Set the description property: API definition description. + * + * @param description the description value to set. + * @return the ApiCenterApiDefinitionUpdatedEventData object itself. + */ + public ApiCenterApiDefinitionUpdatedEventData setDescription(String description) { + this.description = description; + return this; + } + + /** + * Get the specification property: API specification details. + * + * @return the specification value. + */ + public ApiCenterApiSpecification getSpecification() { + return this.specification; + } + + /** + * Set the specification property: API specification details. + * + * @param specification the specification value to set. + * @return the ApiCenterApiDefinitionUpdatedEventData object itself. + */ + public ApiCenterApiDefinitionUpdatedEventData setSpecification(ApiCenterApiSpecification specification) { + this.specification = specification; + return this; + } + + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("title", this.title); + jsonWriter.writeStringField("description", this.description); + jsonWriter.writeJsonField("specification", this.specification); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ApiCenterApiDefinitionUpdatedEventData from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ApiCenterApiDefinitionUpdatedEventData if the JsonReader was pointing to an instance of + * it, or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ApiCenterApiDefinitionUpdatedEventData. + */ + public static ApiCenterApiDefinitionUpdatedEventData fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ApiCenterApiDefinitionUpdatedEventData deserializedApiCenterApiDefinitionUpdatedEventData + = new ApiCenterApiDefinitionUpdatedEventData(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("title".equals(fieldName)) { + deserializedApiCenterApiDefinitionUpdatedEventData.title = reader.getString(); + } else if ("description".equals(fieldName)) { + deserializedApiCenterApiDefinitionUpdatedEventData.description = reader.getString(); + } else if ("specification".equals(fieldName)) { + deserializedApiCenterApiDefinitionUpdatedEventData.specification + = ApiCenterApiSpecification.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedApiCenterApiDefinitionUpdatedEventData; + }); + } +} diff --git a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/ApiCenterApiSpecification.java b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/ApiCenterApiSpecification.java new file mode 100644 index 000000000000..eaadd45244f9 --- /dev/null +++ b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/ApiCenterApiSpecification.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.messaging.eventgrid.systemevents; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * API specification details. + */ +@Fluent +public final class ApiCenterApiSpecification implements JsonSerializable { + /* + * Specification name. + */ + private String name; + + /* + * Specification version. + */ + private String version; + + /** + * Creates an instance of ApiCenterApiSpecification class. + */ + public ApiCenterApiSpecification() { + } + + /** + * Get the name property: Specification name. + * + * @return the name value. + */ + public String getName() { + return this.name; + } + + /** + * Set the name property: Specification name. + * + * @param name the name value to set. + * @return the ApiCenterApiSpecification object itself. + */ + public ApiCenterApiSpecification setName(String name) { + this.name = name; + return this; + } + + /** + * Get the version property: Specification version. + * + * @return the version value. + */ + public String getVersion() { + return this.version; + } + + /** + * Set the version property: Specification version. + * + * @param version the version value to set. + * @return the ApiCenterApiSpecification object itself. + */ + public ApiCenterApiSpecification setVersion(String version) { + this.version = version; + return this; + } + + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("name", this.name); + jsonWriter.writeStringField("version", this.version); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ApiCenterApiSpecification from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ApiCenterApiSpecification if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ApiCenterApiSpecification. + */ + public static ApiCenterApiSpecification fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ApiCenterApiSpecification deserializedApiCenterApiSpecification = new ApiCenterApiSpecification(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("name".equals(fieldName)) { + deserializedApiCenterApiSpecification.name = reader.getString(); + } else if ("version".equals(fieldName)) { + deserializedApiCenterApiSpecification.version = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedApiCenterApiSpecification; + }); + } +} diff --git a/sdk/eventgrid/azure-messaging-eventgrid/swagger/README.md b/sdk/eventgrid/azure-messaging-eventgrid/swagger/README.md index 3e360cde9c3f..dcc333f8cfd8 100644 --- a/sdk/eventgrid/azure-messaging-eventgrid/swagger/README.md +++ b/sdk/eventgrid/azure-messaging-eventgrid/swagger/README.md @@ -78,32 +78,33 @@ custom-types: CloudEvent,EventGridEvent,AcsRouterCommunicationError model-override-setter-from-superclass: true input-file: -- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/46e9f311c397352c1f9b60c5277bf6f982c3c172/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/Storage.json -- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/46e9f311c397352c1f9b60c5277bf6f982c3c172/specification/eventgrid/data-plane/Microsoft.EventHub/stable/2018-01-01/EventHub.json -- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/46e9f311c397352c1f9b60c5277bf6f982c3c172/specification/eventgrid/data-plane/Microsoft.Resources/stable/2018-01-01/Resources.json -- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/46e9f311c397352c1f9b60c5277bf6f982c3c172/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/EventGrid.json -- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/46e9f311c397352c1f9b60c5277bf6f982c3c172/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json -- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/46e9f311c397352c1f9b60c5277bf6f982c3c172/specification/eventgrid/data-plane/Microsoft.Devices/stable/2018-01-01/IotHub.json -- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/46e9f311c397352c1f9b60c5277bf6f982c3c172/specification/eventgrid/data-plane/Microsoft.ContainerRegistry/stable/2018-01-01/ContainerRegistry.json -- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/46e9f311c397352c1f9b60c5277bf6f982c3c172/specification/eventgrid/data-plane/Microsoft.ServiceBus/stable/2018-01-01/ServiceBus.json -- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/46e9f311c397352c1f9b60c5277bf6f982c3c172/specification/eventgrid/data-plane/Microsoft.Media/stable/2018-01-01/MediaServices.json -- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/46e9f311c397352c1f9b60c5277bf6f982c3c172/specification/eventgrid/data-plane/Microsoft.Maps/stable/2018-01-01/Maps.json -- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/46e9f311c397352c1f9b60c5277bf6f982c3c172/specification/eventgrid/data-plane/Microsoft.AppConfiguration/stable/2018-01-01/AppConfiguration.json -- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/46e9f311c397352c1f9b60c5277bf6f982c3c172/specification/eventgrid/data-plane/Microsoft.SignalRService/stable/2018-01-01/SignalRService.json -- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/46e9f311c397352c1f9b60c5277bf6f982c3c172/specification/eventgrid/data-plane/Microsoft.KeyVault/stable/2018-01-01/KeyVault.json -- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/46e9f311c397352c1f9b60c5277bf6f982c3c172/specification/eventgrid/data-plane/Microsoft.MachineLearningServices/stable/2018-01-01/MachineLearningServices.json -- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/46e9f311c397352c1f9b60c5277bf6f982c3c172/specification/eventgrid/data-plane/Microsoft.Cache/stable/2018-01-01/RedisCache.json -- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/46e9f311c397352c1f9b60c5277bf6f982c3c172/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json -- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/46e9f311c397352c1f9b60c5277bf6f982c3c172/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json -- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/46e9f311c397352c1f9b60c5277bf6f982c3c172/specification/eventgrid/data-plane/Microsoft.PolicyInsights/stable/2018-01-01/PolicyInsights.json -- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/46e9f311c397352c1f9b60c5277bf6f982c3c172/specification/eventgrid/data-plane/Microsoft.ContainerService/stable/2018-01-01/ContainerService.json -- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/46e9f311c397352c1f9b60c5277bf6f982c3c172/specification/eventgrid/data-plane/Microsoft.ApiManagement/stable/2018-01-01/APIManagement.json -- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/46e9f311c397352c1f9b60c5277bf6f982c3c172/specification/eventgrid/data-plane/Microsoft.HealthcareApis/stable/2018-01-01/HealthcareApis.json -- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/46e9f311c397352c1f9b60c5277bf6f982c3c172/specification/eventgrid/data-plane/Microsoft.DataBox/stable/2018-01-01/DataBox.json -- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/46e9f311c397352c1f9b60c5277bf6f982c3c172/specification/eventgrid/data-plane/Microsoft.ResourceNotifications/stable/2018-01-01/common.json -- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/46e9f311c397352c1f9b60c5277bf6f982c3c172/specification/eventgrid/data-plane/Microsoft.ResourceNotifications/stable/2018-01-01/HealthResources.json -- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/46e9f311c397352c1f9b60c5277bf6f982c3c172/specification/eventgrid/data-plane/Microsoft.ResourceNotifications/stable/2018-01-01/Resources.json -- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/46e9f311c397352c1f9b60c5277bf6f982c3c172/specification/eventgrid/data-plane/Microsoft.AVS/stable/2018-01-01/PrivateCloud.json +- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/64819c695760764afa059d799fc7320d3fee33de/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/Storage.json +- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/64819c695760764afa059d799fc7320d3fee33de/specification/eventgrid/data-plane/Microsoft.EventHub/stable/2018-01-01/EventHub.json +- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/64819c695760764afa059d799fc7320d3fee33de/specification/eventgrid/data-plane/Microsoft.Resources/stable/2018-01-01/Resources.json +- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/64819c695760764afa059d799fc7320d3fee33de/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/EventGrid.json +- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/64819c695760764afa059d799fc7320d3fee33de/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.json +- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/64819c695760764afa059d799fc7320d3fee33de/specification/eventgrid/data-plane/Microsoft.Devices/stable/2018-01-01/IotHub.json +- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/64819c695760764afa059d799fc7320d3fee33de/specification/eventgrid/data-plane/Microsoft.ContainerRegistry/stable/2018-01-01/ContainerRegistry.json +- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/64819c695760764afa059d799fc7320d3fee33de/specification/eventgrid/data-plane/Microsoft.ServiceBus/stable/2018-01-01/ServiceBus.json +- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/64819c695760764afa059d799fc7320d3fee33de/specification/eventgrid/data-plane/Microsoft.Media/stable/2018-01-01/MediaServices.json +- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/64819c695760764afa059d799fc7320d3fee33de/specification/eventgrid/data-plane/Microsoft.Maps/stable/2018-01-01/Maps.json +- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/64819c695760764afa059d799fc7320d3fee33de/specification/eventgrid/data-plane/Microsoft.AppConfiguration/stable/2018-01-01/AppConfiguration.json +- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/64819c695760764afa059d799fc7320d3fee33de/specification/eventgrid/data-plane/Microsoft.SignalRService/stable/2018-01-01/SignalRService.json +- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/64819c695760764afa059d799fc7320d3fee33de/specification/eventgrid/data-plane/Microsoft.KeyVault/stable/2018-01-01/KeyVault.json +- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/64819c695760764afa059d799fc7320d3fee33de/specification/eventgrid/data-plane/Microsoft.MachineLearningServices/stable/2018-01-01/MachineLearningServices.json +- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/64819c695760764afa059d799fc7320d3fee33de/specification/eventgrid/data-plane/Microsoft.Cache/stable/2018-01-01/RedisCache.json +- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/64819c695760764afa059d799fc7320d3fee33de/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json +- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/64819c695760764afa059d799fc7320d3fee33de/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json +- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/64819c695760764afa059d799fc7320d3fee33de/specification/eventgrid/data-plane/Microsoft.PolicyInsights/stable/2018-01-01/PolicyInsights.json +- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/64819c695760764afa059d799fc7320d3fee33de/specification/eventgrid/data-plane/Microsoft.ContainerService/stable/2018-01-01/ContainerService.json +- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/64819c695760764afa059d799fc7320d3fee33de/specification/eventgrid/data-plane/Microsoft.ApiManagement/stable/2018-01-01/APIManagement.json +- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/64819c695760764afa059d799fc7320d3fee33de/specification/eventgrid/data-plane/Microsoft.HealthcareApis/stable/2018-01-01/HealthcareApis.json +- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/64819c695760764afa059d799fc7320d3fee33de/specification/eventgrid/data-plane/Microsoft.DataBox/stable/2018-01-01/DataBox.json +- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/64819c695760764afa059d799fc7320d3fee33de/specification/eventgrid/data-plane/Microsoft.ResourceNotifications/stable/2018-01-01/common.json +- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/64819c695760764afa059d799fc7320d3fee33de/specification/eventgrid/data-plane/Microsoft.ResourceNotifications/stable/2018-01-01/HealthResources.json +- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/64819c695760764afa059d799fc7320d3fee33de/specification/eventgrid/data-plane/Microsoft.ResourceNotifications/stable/2018-01-01/Resources.json +- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/64819c695760764afa059d799fc7320d3fee33de/specification/eventgrid/data-plane/Microsoft.AVS/stable/2018-01-01/PrivateCloud.json +- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/64819c695760764afa059d799fc7320d3fee33de/specification/eventgrid/data-plane/Microsoft.ApiCenter/stable/2018-01-01/ApiCenter.json ``` ### KeyVault updates diff --git a/sdk/monitor/azure-monitor-ingestion-perf/pom.xml b/sdk/monitor/azure-monitor-ingestion-perf/pom.xml index 78320a30de04..d5ec3b414e47 100644 --- a/sdk/monitor/azure-monitor-ingestion-perf/pom.xml +++ b/sdk/monitor/azure-monitor-ingestion-perf/pom.xml @@ -31,7 +31,7 @@ com.azure azure-monitor-ingestion - 1.2.0-beta.1 + 1.1.5 com.azure diff --git a/sdk/monitor/azure-monitor-ingestion/CHANGELOG.md b/sdk/monitor/azure-monitor-ingestion/CHANGELOG.md index 0bcdf0b1427e..1f42795d3a15 100644 --- a/sdk/monitor/azure-monitor-ingestion/CHANGELOG.md +++ b/sdk/monitor/azure-monitor-ingestion/CHANGELOG.md @@ -1,14 +1,15 @@ # Release History -## 1.2.0-beta.1 (Unreleased) +## 1.1.5 (2024-03-11) -### Features Added +### Other Changes -### Breaking Changes +- Updated the JavaDoc documentation to increase support for our clients. -### Bugs Fixed +#### Dependency Updates -### Other Changes +- Upgraded `azure-core-http-netty` from `1.14.0` to version `1.14.1`. +- Upgraded `azure-core` from `1.46.0` to version `1.47.0`. ## 1.1.4 (2024-02-20) diff --git a/sdk/monitor/azure-monitor-ingestion/README.md b/sdk/monitor/azure-monitor-ingestion/README.md index 2a47890e21d6..9ddab2cce416 100644 --- a/sdk/monitor/azure-monitor-ingestion/README.md +++ b/sdk/monitor/azure-monitor-ingestion/README.md @@ -57,7 +57,7 @@ add the direct dependency to your project as follows. com.azure azure-monitor-ingestion - 1.1.0 + 1.1.5 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/monitor/azure-monitor-ingestion/pom.xml b/sdk/monitor/azure-monitor-ingestion/pom.xml index eb1a6f3a02c3..171983fcbba8 100644 --- a/sdk/monitor/azure-monitor-ingestion/pom.xml +++ b/sdk/monitor/azure-monitor-ingestion/pom.xml @@ -7,7 +7,7 @@ com.azure azure-monitor-ingestion - 1.2.0-beta.1 + 1.1.5 jar Microsoft Azure SDK for Azure Monitor Data Ingestion diff --git a/sdk/monitor/azure-monitor-opentelemetry-exporter/CHANGELOG.md b/sdk/monitor/azure-monitor-opentelemetry-exporter/CHANGELOG.md index 0b812e07e0ec..050071f84af8 100644 --- a/sdk/monitor/azure-monitor-opentelemetry-exporter/CHANGELOG.md +++ b/sdk/monitor/azure-monitor-opentelemetry-exporter/CHANGELOG.md @@ -1,14 +1,9 @@ # Release History -## 1.0.0-beta.21 (Unreleased) - -### Features Added - -### Breaking Changes +## 1.0.0-beta.21 (2024-03-11) ### Bugs Fixed - -### Other Changes +- [Support stable HTTP semconv url.query](https://github.com/Azure/azure-sdk-for-java/pull/39133) ## 1.0.0-beta.20 (2024-03-07) @@ -16,7 +11,7 @@ - [Support ingestion sampling](https://github.com/Azure/azure-sdk-for-java/pull/39103) ### Bugs Fixed -- [Avoid warning on sporadic connection failures] (https://github.com/Azure/azure-sdk-for-java/pull/39021) +- [Avoid warning on sporadic connection failures](https://github.com/Azure/azure-sdk-for-java/pull/39021) ## 1.0.0-beta.19 (2024-02-23) diff --git a/sdk/monitor/azure-monitor-opentelemetry-exporter/README.md b/sdk/monitor/azure-monitor-opentelemetry-exporter/README.md index f3e8541a4760..810e2a5455a2 100644 --- a/sdk/monitor/azure-monitor-opentelemetry-exporter/README.md +++ b/sdk/monitor/azure-monitor-opentelemetry-exporter/README.md @@ -23,7 +23,7 @@ For more information, please read [introduction to Application Insights][applica com.azure azure-monitor-opentelemetry-exporter - 1.0.0-beta.20/version> + 1.0.0-beta.21/version> ``` [//]: # ({x-version-update-end}) diff --git a/sdk/monitor/azure-monitor-opentelemetry-exporter/src/main/java/com/azure/monitor/opentelemetry/exporter/implementation/SpanDataMapper.java b/sdk/monitor/azure-monitor-opentelemetry-exporter/src/main/java/com/azure/monitor/opentelemetry/exporter/implementation/SpanDataMapper.java index 380eaec5d9e1..f6f1f6ff0e22 100644 --- a/sdk/monitor/azure-monitor-opentelemetry-exporter/src/main/java/com/azure/monitor/opentelemetry/exporter/implementation/SpanDataMapper.java +++ b/sdk/monitor/azure-monitor-opentelemetry-exporter/src/main/java/com/azure/monitor/opentelemetry/exporter/implementation/SpanDataMapper.java @@ -642,19 +642,43 @@ private static String getHttpUrlFromServerSpanStableSemconv(Attributes attribute if (scheme == null) { return null; } - String path = attributes.get(SemanticAttributes.URL_PATH); - if (path == null) { - return null; - } String host = attributes.get(SemanticAttributes.SERVER_ADDRESS); if (host == null) { return null; } Long port = attributes.get(SemanticAttributes.SERVER_PORT); - if (port != null && port > 0) { - return scheme + "://" + host + ":" + port + path; + String path = attributes.get(SemanticAttributes.URL_PATH); + if (path == null) { + return null; } - return scheme + "://" + host + path; + String query = attributes.get(SemanticAttributes.URL_QUERY); + + int len = scheme.length() + host.length() + path.length(); + if (port != null) { + len += 6; // max 5 digits for port plus the port separator ":" + } + if (query != null) { + len += query.length() + 1; // including the query separator "?" + } + + StringBuilder sb = new StringBuilder(len); + sb.append(scheme); + sb.append("://"); + sb.append(host); + if (port != null && port > 0 && !isDefaultPortForScheme(port, scheme)) { + sb.append(':'); + sb.append(port); + } + sb.append(path); + if (query != null) { + sb.append('?'); + sb.append(query); + } + return sb.toString(); + } + + private static boolean isDefaultPortForScheme(Long port, String scheme) { + return (port == 80 && scheme.equals("http")) || (port == 443 && scheme.equals("https")); } @Nullable diff --git a/sdk/monitor/azure-monitor-query/README.md b/sdk/monitor/azure-monitor-query/README.md index 02ca7005ef63..073d88886954 100644 --- a/sdk/monitor/azure-monitor-query/README.md +++ b/sdk/monitor/azure-monitor-query/README.md @@ -109,7 +109,7 @@ MetricsQueryClient metricsQueryClient = new MetricsQueryClientBuilder() ``` ```java readme-sample-createMetricsBatchQueryClient -MetricsBatchQueryClient metricsBatchQueryClient = new MetricsBatchQueryClientBuilder() +MetricsClient metricsBatchQueryClient = new MetricsClientBuilder() .credential(new DefaultAzureCredentialBuilder().build()) .endpoint("{endpoint}") .buildClient(); @@ -130,7 +130,7 @@ MetricsQueryAsyncClient metricsQueryAsyncClient = new MetricsQueryClientBuilder( ``` ```java readme-sample-createMetricsBatchQueryAsyncClient -MetricsBatchQueryAsyncClient metricsBatchQueryAsyncClient = new MetricsBatchQueryClientBuilder() +MetricsAsyncClient metricsAsyncClient = new MetricsClientBuilder() .credential(new DefaultAzureCredentialBuilder().build()) .endpoint("{endpoint}") .buildAsyncClient(); @@ -534,7 +534,7 @@ for (MetricResult metric : metricsQueryResult.getMetrics()) { #### Handle metrics batch query response ```java readme-sample-metricsquerybatch -MetricsBatchQueryClient metricsBatchQueryClient = new MetricsBatchQueryClientBuilder() +MetricsClient metricsBatchQueryClient = new MetricsClientBuilder() .credential(new DefaultAzureCredentialBuilder().build()) .endpoint("{endpoint}") .buildClient(); diff --git a/sdk/monitor/azure-monitor-query/assets.json b/sdk/monitor/azure-monitor-query/assets.json index acf694e833e2..f9a9f39100a0 100644 --- a/sdk/monitor/azure-monitor-query/assets.json +++ b/sdk/monitor/azure-monitor-query/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "java", "TagPrefix": "java/monitor/azure-monitor-query", - "Tag": "java/monitor/azure-monitor-query_a12f5cac4c" + "Tag": "java/monitor/azure-monitor-query_cc58179f15" } diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/MetricsBatchQueryAsyncClient.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/MetricsAsyncClient.java similarity index 95% rename from sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/MetricsBatchQueryAsyncClient.java rename to sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/MetricsAsyncClient.java index 5d9e7fe5b6c2..af58fac92aa9 100644 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/MetricsBatchQueryAsyncClient.java +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/MetricsAsyncClient.java @@ -33,13 +33,13 @@ * This class provides an asynchronous client that contains all the query operations that use batch requests to retrieve * metrics for multiple resources. */ -@ServiceClient(builder = MetricsBatchQueryClientBuilder.class, isAsync = true) -public final class MetricsBatchQueryAsyncClient { - private static final ClientLogger LOGGER = new ClientLogger(MetricsBatchQueryAsyncClient.class); +@ServiceClient(builder = MetricsClientBuilder.class, isAsync = true) +public final class MetricsAsyncClient { + private static final ClientLogger LOGGER = new ClientLogger(MetricsAsyncClient.class); private final AzureMonitorMetricBatch serviceClient; - MetricsBatchQueryAsyncClient(AzureMonitorMetricBatch azureMonitorMetricBatch) { + MetricsAsyncClient(AzureMonitorMetricBatch azureMonitorMetricBatch) { this.serviceClient = azureMonitorMetricBatch; } @@ -91,7 +91,9 @@ public Mono> queryBatchWithResponse(List> queryBatchWithResponse(List> responseMono = this.serviceClient.getMetricsBatches() .batchWithResponseAsync(subscriptionId, metricsNamespace, metricsNames, resourceIdList, startTime, - endTime, granularity, aggregations, top, orderBy, filter, null); + endTime, granularity, aggregations, top, orderBy, filter, rollupBy); return responseMono.map(response -> { diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/MetricsBatchQueryServiceVersion.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/MetricsBatchQueryServiceVersion.java deleted file mode 100644 index bb9ff02b5de8..000000000000 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/MetricsBatchQueryServiceVersion.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.azure.monitor.query; - -import com.azure.core.util.ServiceVersion; - -/** - * The versions of Azure Monitor Metrics Batch Query supported by this client library. - */ -public enum MetricsBatchQueryServiceVersion implements ServiceVersion { - /** - * The preview version of the Metrics Batch Query service. - */ - V2023_05_01_PREVIEW("2023-05-01-preview"); - - private final String version; - - MetricsBatchQueryServiceVersion(String version) { - this.version = version; - } - - @Override - public String getVersion() { - return version; - } - - /** - * Gets the latest service version supported by this client library. - * @return the latest {@link MetricsBatchQueryServiceVersion}. - */ - public static MetricsBatchQueryServiceVersion getLatest() { - return V2023_05_01_PREVIEW; - } -} diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/MetricsBatchQueryClient.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/MetricsClient.java similarity index 95% rename from sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/MetricsBatchQueryClient.java rename to sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/MetricsClient.java index cb1a50e582b9..eb46e7f34ee5 100644 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/MetricsBatchQueryClient.java +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/MetricsClient.java @@ -32,13 +32,13 @@ * This class provides an asynchronous client that contains all the query operations that use batch requests to retrieve * metrics for multiple resources. */ -@ServiceClient(builder = MetricsBatchQueryClientBuilder.class) -public final class MetricsBatchQueryClient { - private static final ClientLogger LOGGER = new ClientLogger(MetricsBatchQueryClient.class); +@ServiceClient(builder = MetricsClientBuilder.class) +public final class MetricsClient { + private static final ClientLogger LOGGER = new ClientLogger(MetricsClient.class); private final AzureMonitorMetricBatch serviceClient; - MetricsBatchQueryClient(AzureMonitorMetricBatch azureMonitorMetricBatch) { + MetricsClient(AzureMonitorMetricBatch azureMonitorMetricBatch) { this.serviceClient = azureMonitorMetricBatch; } @@ -90,7 +90,9 @@ public Response queryBatchWithResponse(List res Integer top = null; String orderBy = null; String endTime = null; + String rollupBy = null; if (options != null) { + rollupBy = options.getRollupBy(); filter = options.getFilter(); granularity = options.getGranularity(); @@ -121,7 +123,7 @@ public Response queryBatchWithResponse(List res resourceIdList.setResourceids(resourceUris); Response response = this.serviceClient.getMetricsBatches() .batchWithResponse(subscriptionId, metricsNamespace, metricsNames, resourceIdList, startTime, - endTime, granularity, aggregations, top, orderBy, filter, context); + endTime, granularity, aggregations, top, orderBy, filter, rollupBy, context); MetricResultsResponse value = response.getValue(); List values = value.getValues(); List metricsQueryResults = values.stream() diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/MetricsBatchQueryClientBuilder.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/MetricsClientBuilder.java similarity index 59% rename from sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/MetricsBatchQueryClientBuilder.java rename to sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/MetricsClientBuilder.java index 639c077fac7c..b83776202a1f 100644 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/MetricsBatchQueryClientBuilder.java +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/MetricsClientBuilder.java @@ -20,21 +20,21 @@ import com.azure.monitor.query.implementation.metricsbatch.AzureMonitorMetricBatchBuilder; /** - * Fluent builder for creating instances of {@link MetricsBatchQueryClient} and {@link MetricsBatchQueryAsyncClient}. + * Fluent builder for creating instances of {@link MetricsClient} and {@link MetricsAsyncClient}. */ -@ServiceClientBuilder(serviceClients = {MetricsBatchQueryClient.class, MetricsBatchQueryAsyncClient.class}) -public final class MetricsBatchQueryClientBuilder implements EndpointTrait, - HttpTrait, ConfigurationTrait, TokenCredentialTrait { +@ServiceClientBuilder(serviceClients = {MetricsClient.class, MetricsAsyncClient.class}) +public final class MetricsClientBuilder implements EndpointTrait, + HttpTrait, ConfigurationTrait, TokenCredentialTrait { private final AzureMonitorMetricBatchBuilder innerMetricsBatchBuilder = new AzureMonitorMetricBatchBuilder(); /** * Sets the metrics batch query endpoint. * @param endpoint the endpoint. - * @return the {@link MetricsBatchQueryClientBuilder}. + * @return the {@link MetricsClientBuilder}. */ @Override - public MetricsBatchQueryClientBuilder endpoint(String endpoint) { + public MetricsClientBuilder endpoint(String endpoint) { innerMetricsBatchBuilder.endpoint(endpoint); return this; } @@ -42,10 +42,10 @@ public MetricsBatchQueryClientBuilder endpoint(String endpoint) { /** * Sets The HTTP pipeline to send requests through. * @param pipeline the pipeline value. - * @return the {@link MetricsBatchQueryClientBuilder}. + * @return the {@link MetricsClientBuilder}. */ @Override - public MetricsBatchQueryClientBuilder pipeline(HttpPipeline pipeline) { + public MetricsClientBuilder pipeline(HttpPipeline pipeline) { innerMetricsBatchBuilder.pipeline(pipeline); return this; } @@ -53,10 +53,10 @@ public MetricsBatchQueryClientBuilder pipeline(HttpPipeline pipeline) { /** * Sets The HTTP client used to send the request. * @param httpClient the httpClient value. - * @return the {@link MetricsBatchQueryClientBuilder}. + * @return the {@link MetricsClientBuilder}. */ @Override - public MetricsBatchQueryClientBuilder httpClient(HttpClient httpClient) { + public MetricsClientBuilder httpClient(HttpClient httpClient) { innerMetricsBatchBuilder.httpClient(httpClient); return this; } @@ -64,10 +64,10 @@ public MetricsBatchQueryClientBuilder httpClient(HttpClient httpClient) { /** * Sets The configuration store that is used during construction of the service client. * @param configuration the configuration value. - * @return the {@link MetricsBatchQueryClientBuilder}. + * @return the {@link MetricsClientBuilder}. */ @Override - public MetricsBatchQueryClientBuilder configuration(Configuration configuration) { + public MetricsClientBuilder configuration(Configuration configuration) { innerMetricsBatchBuilder.configuration(configuration); return this; } @@ -75,10 +75,10 @@ public MetricsBatchQueryClientBuilder configuration(Configuration configuration) /** * Sets The logging configuration for HTTP requests and responses. * @param httpLogOptions the httpLogOptions value. - * @return the {@link MetricsBatchQueryClientBuilder}. + * @return the {@link MetricsClientBuilder}. */ @Override - public MetricsBatchQueryClientBuilder httpLogOptions(HttpLogOptions httpLogOptions) { + public MetricsClientBuilder httpLogOptions(HttpLogOptions httpLogOptions) { innerMetricsBatchBuilder.httpLogOptions(httpLogOptions); return this; } @@ -86,9 +86,9 @@ public MetricsBatchQueryClientBuilder httpLogOptions(HttpLogOptions httpLogOptio /** * Sets The retry policy that will attempt to retry failed requests, if applicable. * @param retryPolicy the retryPolicy value. - * @return the {@link MetricsBatchQueryClientBuilder}. + * @return the {@link MetricsClientBuilder}. */ - public MetricsBatchQueryClientBuilder retryPolicy(RetryPolicy retryPolicy) { + public MetricsClientBuilder retryPolicy(RetryPolicy retryPolicy) { innerMetricsBatchBuilder.retryPolicy(retryPolicy); return this; } @@ -96,10 +96,10 @@ public MetricsBatchQueryClientBuilder retryPolicy(RetryPolicy retryPolicy) { /** * Sets the {@link RetryOptions} used for creating the client. * @param retryOptions The {@link RetryOptions}. - * @return the updated {@link MetricsBatchQueryClientBuilder}. + * @return the updated {@link MetricsClientBuilder}. */ @Override - public MetricsBatchQueryClientBuilder retryOptions(RetryOptions retryOptions) { + public MetricsClientBuilder retryOptions(RetryOptions retryOptions) { innerMetricsBatchBuilder.retryOptions(retryOptions); return this; } @@ -107,10 +107,10 @@ public MetricsBatchQueryClientBuilder retryOptions(RetryOptions retryOptions) { /** * Adds a custom Http pipeline policy. * @param customPolicy The custom Http pipeline policy to add. - * @return the {@link MetricsBatchQueryClientBuilder}. + * @return the {@link MetricsClientBuilder}. */ @Override - public MetricsBatchQueryClientBuilder addPolicy(HttpPipelinePolicy customPolicy) { + public MetricsClientBuilder addPolicy(HttpPipelinePolicy customPolicy) { innerMetricsBatchBuilder.addPolicy(customPolicy); return this; } @@ -118,10 +118,10 @@ public MetricsBatchQueryClientBuilder addPolicy(HttpPipelinePolicy customPolicy) /** * Sets The TokenCredential used for authentication. * @param tokenCredential the tokenCredential value. - * @return the {@link MetricsBatchQueryClientBuilder}. + * @return the {@link MetricsClientBuilder}. */ @Override - public MetricsBatchQueryClientBuilder credential(TokenCredential tokenCredential) { + public MetricsClientBuilder credential(TokenCredential tokenCredential) { innerMetricsBatchBuilder.credential(tokenCredential); return this; } @@ -129,38 +129,38 @@ public MetricsBatchQueryClientBuilder credential(TokenCredential tokenCredential /** * Set the {@link ClientOptions} used for creating the client. * @param clientOptions The {@link ClientOptions}. - * @return the {@link MetricsBatchQueryClientBuilder}. + * @return the {@link MetricsClientBuilder}. */ @Override - public MetricsBatchQueryClientBuilder clientOptions(ClientOptions clientOptions) { + public MetricsClientBuilder clientOptions(ClientOptions clientOptions) { innerMetricsBatchBuilder.clientOptions(clientOptions); return this; } /** * The service version to use when creating the client. - * @param serviceVersion The {@link MetricsBatchQueryServiceVersion}. - * @return the {@link MetricsBatchQueryClientBuilder}. + * @param serviceVersion The {@link MetricsServiceVersion}. + * @return the {@link MetricsClientBuilder}. */ - public MetricsBatchQueryClientBuilder serviceVersion(MetricsBatchQueryServiceVersion serviceVersion) { + public MetricsClientBuilder serviceVersion(MetricsServiceVersion serviceVersion) { innerMetricsBatchBuilder.apiVersion(serviceVersion.getVersion()); return this; } /** * Creates a synchronous client with the configured options in this builder. - * @return A synchronous {@link MetricsBatchQueryClient}. + * @return A synchronous {@link MetricsClient}. */ - public MetricsBatchQueryClient buildClient() { - return new MetricsBatchQueryClient(innerMetricsBatchBuilder.buildClient()); + public MetricsClient buildClient() { + return new MetricsClient(innerMetricsBatchBuilder.buildClient()); } /** * Creates an asynchronous client with the configured options in this builder. - * @return An asynchronous {@link MetricsBatchQueryAsyncClient}. + * @return An asynchronous {@link MetricsAsyncClient}. */ - public MetricsBatchQueryAsyncClient buildAsyncClient() { - return new MetricsBatchQueryAsyncClient(innerMetricsBatchBuilder.buildClient()); + public MetricsAsyncClient buildAsyncClient() { + return new MetricsAsyncClient(innerMetricsBatchBuilder.buildClient()); } } diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/MetricsQueryAsyncClient.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/MetricsQueryAsyncClient.java index 5b29996843e7..988776bb9bd5 100644 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/MetricsQueryAsyncClient.java +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/MetricsQueryAsyncClient.java @@ -176,7 +176,7 @@ Mono> queryResourceWithResponse(String resourceUri, .getMetrics() .listWithResponseAsync(resourceUri, timespan, options.getGranularity(), String.join(",", metricsNames), aggregation, options.getTop(), options.getOrderBy(), - options.getFilter(), ResultType.DATA, options.getMetricNamespace(), context) + options.getFilter(), ResultType.DATA, options.getMetricNamespace(), null, null, null, context) .map(response -> convertToMetricsQueryResult(response)) .onErrorMap(ErrorResponseException.class, ex -> { return new HttpResponseException(ex.getMessage(), ex.getResponse(), diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/MetricsQueryClient.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/MetricsQueryClient.java index 54c4d40df9b9..10b50a41da48 100644 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/MetricsQueryClient.java +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/MetricsQueryClient.java @@ -124,7 +124,7 @@ public Response queryResourceWithResponse(String resourceUri Response metricsResponseResponse = metricsClient .getMetrics() .listWithResponse(resourceUri, timespan, granularity, String.join(",", metricsNames), - aggregation, top, orderBy, filter, ResultType.DATA, metricNamespace, context); + aggregation, top, orderBy, filter, ResultType.DATA, metricNamespace, null, null, null, context); return convertToMetricsQueryResult(metricsResponseResponse); } diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/MetricsServiceVersion.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/MetricsServiceVersion.java new file mode 100644 index 000000000000..417cfff40109 --- /dev/null +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/MetricsServiceVersion.java @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.monitor.query; + +import com.azure.core.util.ServiceVersion; + +/** + * The versions of Azure Monitor Metrics Query supported by this client library. + */ +public enum MetricsServiceVersion implements ServiceVersion { + /** + * The preview version of the Metrics Query service. + */ + V2023_10_01("2023-10-01"); + + private final String version; + + MetricsServiceVersion(String version) { + this.version = version; + } + + @Override + public String getVersion() { + return version; + } + + /** + * Gets the latest service version supported by this client library. + * @return the latest {@link MetricsServiceVersion}. + */ + public static MetricsServiceVersion getLatest() { + return V2023_10_01; + } +} diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/MetricsImpl.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/MetricsImpl.java index 277dde80ee8d..da9740910e75 100644 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/MetricsImpl.java +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/MetricsImpl.java @@ -4,12 +4,14 @@ package com.azure.monitor.query.implementation.metrics; +import com.azure.core.annotation.BodyParam; import com.azure.core.annotation.ExpectedResponses; import com.azure.core.annotation.Get; import com.azure.core.annotation.HeaderParam; 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; @@ -19,9 +21,12 @@ import com.azure.core.http.rest.RestProxy; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; +import com.azure.monitor.query.implementation.metrics.models.ErrorContractException; import com.azure.monitor.query.implementation.metrics.models.ErrorResponseException; +import com.azure.monitor.query.implementation.metrics.models.MetricResultType; import com.azure.monitor.query.implementation.metrics.models.MetricsResponse; import com.azure.monitor.query.implementation.metrics.models.ResultType; +import com.azure.monitor.query.implementation.metrics.models.SubscriptionScopeMetricsRequestBodyParameters; import java.time.Duration; import reactor.core.publisher.Mono; @@ -50,12 +55,74 @@ public final class MetricsImpl { } /** - * The interface defining all the services for MonitorManagementClientMetrics to be used by the proxy service to + * The interface defining all the services for AzureMonitorMetricsDataAPIMetrics to be used by the proxy service to * perform REST calls. */ @Host("{$host}") - @ServiceInterface(name = "MonitorManagementCli") + @ServiceInterface(name = "AzureMonitorMetricsD") public interface MetricsService { + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Insights/metrics") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ErrorContractException.class) + Mono> listAtSubscriptionScope(@HostParam("$host") String host, + @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, + @QueryParam("region") String region, @QueryParam("timespan") String timespan, + @QueryParam("interval") Duration interval, @QueryParam("metricnames") String metricnames, + @QueryParam("aggregation") String aggregation, @QueryParam("top") Integer top, + @QueryParam("orderby") String orderBy, @QueryParam("$filter") String filter, + @QueryParam("resultType") MetricResultType resultType, + @QueryParam("metricnamespace") String metricnamespace, + @QueryParam("AutoAdjustTimegrain") Boolean autoAdjustTimegrain, + @QueryParam("ValidateDimensions") Boolean validateDimensions, @QueryParam("rollupby") String rollupby, + @HeaderParam("Accept") String accept, Context context); + + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Insights/metrics") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ErrorContractException.class) + Response listAtSubscriptionScopeSync(@HostParam("$host") String host, + @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, + @QueryParam("region") String region, @QueryParam("timespan") String timespan, + @QueryParam("interval") Duration interval, @QueryParam("metricnames") String metricnames, + @QueryParam("aggregation") String aggregation, @QueryParam("top") Integer top, + @QueryParam("orderby") String orderBy, @QueryParam("$filter") String filter, + @QueryParam("resultType") MetricResultType resultType, + @QueryParam("metricnamespace") String metricnamespace, + @QueryParam("AutoAdjustTimegrain") Boolean autoAdjustTimegrain, + @QueryParam("ValidateDimensions") Boolean validateDimensions, @QueryParam("rollupby") String rollupby, + @HeaderParam("Accept") String accept, Context context); + + @Post("/subscriptions/{subscriptionId}/providers/Microsoft.Insights/metrics") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ErrorContractException.class) + Mono> listAtSubscriptionScopePost(@HostParam("$host") String host, + @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, + @QueryParam("region") String region, @QueryParam("timespan") String timespan, + @QueryParam("interval") Duration interval, @QueryParam("metricnames") String metricnames, + @QueryParam("aggregation") String aggregation, @QueryParam("top") Integer top, + @QueryParam("orderby") String orderBy, @QueryParam("$filter") String filter, + @QueryParam("resultType") MetricResultType resultType, + @QueryParam("metricnamespace") String metricnamespace, + @QueryParam("AutoAdjustTimegrain") Boolean autoAdjustTimegrain, + @QueryParam("ValidateDimensions") Boolean validateDimensions, @QueryParam("rollupby") String rollupby, + @BodyParam("application/json") SubscriptionScopeMetricsRequestBodyParameters body, + @HeaderParam("Accept") String accept, Context context); + + @Post("/subscriptions/{subscriptionId}/providers/Microsoft.Insights/metrics") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ErrorContractException.class) + Response listAtSubscriptionScopePostSync(@HostParam("$host") String host, + @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, + @QueryParam("region") String region, @QueryParam("timespan") String timespan, + @QueryParam("interval") Duration interval, @QueryParam("metricnames") String metricnames, + @QueryParam("aggregation") String aggregation, @QueryParam("top") Integer top, + @QueryParam("orderby") String orderBy, @QueryParam("$filter") String filter, + @QueryParam("resultType") MetricResultType resultType, + @QueryParam("metricnamespace") String metricnamespace, + @QueryParam("AutoAdjustTimegrain") Boolean autoAdjustTimegrain, + @QueryParam("ValidateDimensions") Boolean validateDimensions, @QueryParam("rollupby") String rollupby, + @BodyParam("application/json") SubscriptionScopeMetricsRequestBodyParameters body, + @HeaderParam("Accept") String accept, Context context); + @Get("/{resourceUri}/providers/Microsoft.Insights/metrics") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ErrorResponseException.class) @@ -65,8 +132,10 @@ Mono> list(@HostParam("$host") String host, @QueryParam("metricnames") String metricnames, @QueryParam("aggregation") String aggregation, @QueryParam("top") Integer top, @QueryParam("orderby") String orderBy, @QueryParam("$filter") String filter, @QueryParam("resultType") ResultType resultType, @QueryParam("api-version") String apiVersion, - @QueryParam("metricnamespace") String metricnamespace, @HeaderParam("Accept") String accept, - Context context); + @QueryParam("metricnamespace") String metricnamespace, + @QueryParam("AutoAdjustTimegrain") Boolean autoAdjustTimegrain, + @QueryParam("ValidateDimensions") Boolean validateDimensions, @QueryParam("rollupby") String rollupby, + @HeaderParam("Accept") String accept, Context context); @Get("/{resourceUri}/providers/Microsoft.Insights/metrics") @ExpectedResponses({ 200 }) @@ -77,8 +146,640 @@ Response listSync(@HostParam("$host") String host, @QueryParam("metricnames") String metricnames, @QueryParam("aggregation") String aggregation, @QueryParam("top") Integer top, @QueryParam("orderby") String orderBy, @QueryParam("$filter") String filter, @QueryParam("resultType") ResultType resultType, @QueryParam("api-version") String apiVersion, - @QueryParam("metricnamespace") String metricnamespace, @HeaderParam("Accept") String accept, - Context context); + @QueryParam("metricnamespace") String metricnamespace, + @QueryParam("AutoAdjustTimegrain") Boolean autoAdjustTimegrain, + @QueryParam("ValidateDimensions") Boolean validateDimensions, @QueryParam("rollupby") String rollupby, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * **Lists the metric data for a subscription**. + * + * @param region The region where the metrics you want reside. + * @param timespan The timespan of the query. It is a string with the following format + * 'startDateTime_ISO/endDateTime_ISO'. + * @param interval The interval (i.e. timegrain) of the query in ISO 8601 duration format. Defaults to PT1M. Special + * case for 'FULL' value that returns single datapoint for entire time span requested. + * *Examples: PT15M, PT1H, P1D, FULL*. + * @param metricnames The names of the metrics (comma separated) to retrieve. + * @param aggregation The list of aggregation types (comma separated) to retrieve. + * *Examples: average, minimum, maximum*. + * @param top The maximum number of records to retrieve per resource ID in the request. + * Valid only if filter is specified. + * Defaults to 10. + * @param orderBy The aggregation to use for sorting results and the direction of the sort. + * Only one order can be specified. + * *Examples: sum asc*. + * @param filter The **$filter** is used to reduce the set of metric data + * returned.<br>Example:<br>Metric contains metadata A, B and C.<br>- Return all time series of C + * where A = a1 and B = b1 or b2<br>**$filter=A eq ‘a1’ and B eq ‘b1’ or B eq ‘b2’ and C eq ‘*’**<br>- + * Invalid variant:<br>**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘*’ or B = ‘b2’**<br>This is invalid + * because the logical or operator cannot separate two different metadata names.<br>- Return all time series + * where A = a1, B = b1 and C = c1:<br>**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘c1’**<br>- Return all + * time series where A = a1<br>**$filter=A eq ‘a1’ and B eq ‘*’ and C eq ‘*’**. + * @param resultType Reduces the set of data collected. The syntax allowed depends on the operation. See the + * operation's description for details. + * @param metricnamespace Metric namespace where the metrics you want reside. + * @param autoAdjustTimegrain When set to true, if the timespan passed in is not supported by this metric, the API + * will return the result using the closest supported timespan. When set to false, an error is returned for invalid + * timespan parameters. Defaults to false. + * @param validateDimensions When set to false, invalid filter parameter values will be ignored. When set to true, + * an error is returned for invalid filter parameters. Defaults to true. + * @param rollupby Dimension name(s) to rollup results by. For example if you only want to see metric values with a + * filter like 'City eq Seattle or City eq Tacoma' but don't want to see separate values for each city, you can + * specify 'RollUpBy=City' to see the results for Seattle and Tacoma rolled up into one timeseries. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response to a metrics query along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listAtSubscriptionScopeWithResponseAsync(String region, String timespan, + Duration interval, String metricnames, String aggregation, Integer top, String orderBy, String filter, + MetricResultType resultType, String metricnamespace, Boolean autoAdjustTimegrain, Boolean validateDimensions, + String rollupby) { + final String accept = "application/json"; + return FluxUtil.withContext( + context -> service.listAtSubscriptionScope(this.client.getHost(), this.client.getSubscriptionId(), + this.client.getApiVersion(), region, timespan, interval, metricnames, aggregation, top, orderBy, filter, + resultType, metricnamespace, autoAdjustTimegrain, validateDimensions, rollupby, accept, context)); + } + + /** + * **Lists the metric data for a subscription**. + * + * @param region The region where the metrics you want reside. + * @param timespan The timespan of the query. It is a string with the following format + * 'startDateTime_ISO/endDateTime_ISO'. + * @param interval The interval (i.e. timegrain) of the query in ISO 8601 duration format. Defaults to PT1M. Special + * case for 'FULL' value that returns single datapoint for entire time span requested. + * *Examples: PT15M, PT1H, P1D, FULL*. + * @param metricnames The names of the metrics (comma separated) to retrieve. + * @param aggregation The list of aggregation types (comma separated) to retrieve. + * *Examples: average, minimum, maximum*. + * @param top The maximum number of records to retrieve per resource ID in the request. + * Valid only if filter is specified. + * Defaults to 10. + * @param orderBy The aggregation to use for sorting results and the direction of the sort. + * Only one order can be specified. + * *Examples: sum asc*. + * @param filter The **$filter** is used to reduce the set of metric data + * returned.<br>Example:<br>Metric contains metadata A, B and C.<br>- Return all time series of C + * where A = a1 and B = b1 or b2<br>**$filter=A eq ‘a1’ and B eq ‘b1’ or B eq ‘b2’ and C eq ‘*’**<br>- + * Invalid variant:<br>**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘*’ or B = ‘b2’**<br>This is invalid + * because the logical or operator cannot separate two different metadata names.<br>- Return all time series + * where A = a1, B = b1 and C = c1:<br>**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘c1’**<br>- Return all + * time series where A = a1<br>**$filter=A eq ‘a1’ and B eq ‘*’ and C eq ‘*’**. + * @param resultType Reduces the set of data collected. The syntax allowed depends on the operation. See the + * operation's description for details. + * @param metricnamespace Metric namespace where the metrics you want reside. + * @param autoAdjustTimegrain When set to true, if the timespan passed in is not supported by this metric, the API + * will return the result using the closest supported timespan. When set to false, an error is returned for invalid + * timespan parameters. Defaults to false. + * @param validateDimensions When set to false, invalid filter parameter values will be ignored. When set to true, + * an error is returned for invalid filter parameters. Defaults to true. + * @param rollupby Dimension name(s) to rollup results by. For example if you only want to see metric values with a + * filter like 'City eq Seattle or City eq Tacoma' but don't want to see separate values for each city, you can + * specify 'RollUpBy=City' to see the results for Seattle and Tacoma rolled up into one timeseries. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response to a metrics query along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listAtSubscriptionScopeWithResponseAsync(String region, String timespan, + Duration interval, String metricnames, String aggregation, Integer top, String orderBy, String filter, + MetricResultType resultType, String metricnamespace, Boolean autoAdjustTimegrain, Boolean validateDimensions, + String rollupby, Context context) { + final String accept = "application/json"; + return service.listAtSubscriptionScope(this.client.getHost(), this.client.getSubscriptionId(), + this.client.getApiVersion(), region, timespan, interval, metricnames, aggregation, top, orderBy, filter, + resultType, metricnamespace, autoAdjustTimegrain, validateDimensions, rollupby, accept, context); + } + + /** + * **Lists the metric data for a subscription**. + * + * @param region The region where the metrics you want reside. + * @param timespan The timespan of the query. It is a string with the following format + * 'startDateTime_ISO/endDateTime_ISO'. + * @param interval The interval (i.e. timegrain) of the query in ISO 8601 duration format. Defaults to PT1M. Special + * case for 'FULL' value that returns single datapoint for entire time span requested. + * *Examples: PT15M, PT1H, P1D, FULL*. + * @param metricnames The names of the metrics (comma separated) to retrieve. + * @param aggregation The list of aggregation types (comma separated) to retrieve. + * *Examples: average, minimum, maximum*. + * @param top The maximum number of records to retrieve per resource ID in the request. + * Valid only if filter is specified. + * Defaults to 10. + * @param orderBy The aggregation to use for sorting results and the direction of the sort. + * Only one order can be specified. + * *Examples: sum asc*. + * @param filter The **$filter** is used to reduce the set of metric data + * returned.<br>Example:<br>Metric contains metadata A, B and C.<br>- Return all time series of C + * where A = a1 and B = b1 or b2<br>**$filter=A eq ‘a1’ and B eq ‘b1’ or B eq ‘b2’ and C eq ‘*’**<br>- + * Invalid variant:<br>**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘*’ or B = ‘b2’**<br>This is invalid + * because the logical or operator cannot separate two different metadata names.<br>- Return all time series + * where A = a1, B = b1 and C = c1:<br>**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘c1’**<br>- Return all + * time series where A = a1<br>**$filter=A eq ‘a1’ and B eq ‘*’ and C eq ‘*’**. + * @param resultType Reduces the set of data collected. The syntax allowed depends on the operation. See the + * operation's description for details. + * @param metricnamespace Metric namespace where the metrics you want reside. + * @param autoAdjustTimegrain When set to true, if the timespan passed in is not supported by this metric, the API + * will return the result using the closest supported timespan. When set to false, an error is returned for invalid + * timespan parameters. Defaults to false. + * @param validateDimensions When set to false, invalid filter parameter values will be ignored. When set to true, + * an error is returned for invalid filter parameters. Defaults to true. + * @param rollupby Dimension name(s) to rollup results by. For example if you only want to see metric values with a + * filter like 'City eq Seattle or City eq Tacoma' but don't want to see separate values for each city, you can + * specify 'RollUpBy=City' to see the results for Seattle and Tacoma rolled up into one timeseries. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response to a metrics query on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono listAtSubscriptionScopeAsync(String region, String timespan, Duration interval, + String metricnames, String aggregation, Integer top, String orderBy, String filter, MetricResultType resultType, + String metricnamespace, Boolean autoAdjustTimegrain, Boolean validateDimensions, String rollupby) { + return listAtSubscriptionScopeWithResponseAsync(region, timespan, interval, metricnames, aggregation, top, + orderBy, filter, resultType, metricnamespace, autoAdjustTimegrain, validateDimensions, rollupby) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * **Lists the metric data for a subscription**. + * + * @param region The region where the metrics you want reside. + * @param timespan The timespan of the query. It is a string with the following format + * 'startDateTime_ISO/endDateTime_ISO'. + * @param interval The interval (i.e. timegrain) of the query in ISO 8601 duration format. Defaults to PT1M. Special + * case for 'FULL' value that returns single datapoint for entire time span requested. + * *Examples: PT15M, PT1H, P1D, FULL*. + * @param metricnames The names of the metrics (comma separated) to retrieve. + * @param aggregation The list of aggregation types (comma separated) to retrieve. + * *Examples: average, minimum, maximum*. + * @param top The maximum number of records to retrieve per resource ID in the request. + * Valid only if filter is specified. + * Defaults to 10. + * @param orderBy The aggregation to use for sorting results and the direction of the sort. + * Only one order can be specified. + * *Examples: sum asc*. + * @param filter The **$filter** is used to reduce the set of metric data + * returned.<br>Example:<br>Metric contains metadata A, B and C.<br>- Return all time series of C + * where A = a1 and B = b1 or b2<br>**$filter=A eq ‘a1’ and B eq ‘b1’ or B eq ‘b2’ and C eq ‘*’**<br>- + * Invalid variant:<br>**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘*’ or B = ‘b2’**<br>This is invalid + * because the logical or operator cannot separate two different metadata names.<br>- Return all time series + * where A = a1, B = b1 and C = c1:<br>**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘c1’**<br>- Return all + * time series where A = a1<br>**$filter=A eq ‘a1’ and B eq ‘*’ and C eq ‘*’**. + * @param resultType Reduces the set of data collected. The syntax allowed depends on the operation. See the + * operation's description for details. + * @param metricnamespace Metric namespace where the metrics you want reside. + * @param autoAdjustTimegrain When set to true, if the timespan passed in is not supported by this metric, the API + * will return the result using the closest supported timespan. When set to false, an error is returned for invalid + * timespan parameters. Defaults to false. + * @param validateDimensions When set to false, invalid filter parameter values will be ignored. When set to true, + * an error is returned for invalid filter parameters. Defaults to true. + * @param rollupby Dimension name(s) to rollup results by. For example if you only want to see metric values with a + * filter like 'City eq Seattle or City eq Tacoma' but don't want to see separate values for each city, you can + * specify 'RollUpBy=City' to see the results for Seattle and Tacoma rolled up into one timeseries. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response to a metrics query on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono listAtSubscriptionScopeAsync(String region, String timespan, Duration interval, + String metricnames, String aggregation, Integer top, String orderBy, String filter, MetricResultType resultType, + String metricnamespace, Boolean autoAdjustTimegrain, Boolean validateDimensions, String rollupby, + Context context) { + return listAtSubscriptionScopeWithResponseAsync(region, timespan, interval, metricnames, aggregation, top, + orderBy, filter, resultType, metricnamespace, autoAdjustTimegrain, validateDimensions, rollupby, context) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * **Lists the metric data for a subscription**. + * + * @param region The region where the metrics you want reside. + * @param timespan The timespan of the query. It is a string with the following format + * 'startDateTime_ISO/endDateTime_ISO'. + * @param interval The interval (i.e. timegrain) of the query in ISO 8601 duration format. Defaults to PT1M. Special + * case for 'FULL' value that returns single datapoint for entire time span requested. + * *Examples: PT15M, PT1H, P1D, FULL*. + * @param metricnames The names of the metrics (comma separated) to retrieve. + * @param aggregation The list of aggregation types (comma separated) to retrieve. + * *Examples: average, minimum, maximum*. + * @param top The maximum number of records to retrieve per resource ID in the request. + * Valid only if filter is specified. + * Defaults to 10. + * @param orderBy The aggregation to use for sorting results and the direction of the sort. + * Only one order can be specified. + * *Examples: sum asc*. + * @param filter The **$filter** is used to reduce the set of metric data + * returned.<br>Example:<br>Metric contains metadata A, B and C.<br>- Return all time series of C + * where A = a1 and B = b1 or b2<br>**$filter=A eq ‘a1’ and B eq ‘b1’ or B eq ‘b2’ and C eq ‘*’**<br>- + * Invalid variant:<br>**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘*’ or B = ‘b2’**<br>This is invalid + * because the logical or operator cannot separate two different metadata names.<br>- Return all time series + * where A = a1, B = b1 and C = c1:<br>**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘c1’**<br>- Return all + * time series where A = a1<br>**$filter=A eq ‘a1’ and B eq ‘*’ and C eq ‘*’**. + * @param resultType Reduces the set of data collected. The syntax allowed depends on the operation. See the + * operation's description for details. + * @param metricnamespace Metric namespace where the metrics you want reside. + * @param autoAdjustTimegrain When set to true, if the timespan passed in is not supported by this metric, the API + * will return the result using the closest supported timespan. When set to false, an error is returned for invalid + * timespan parameters. Defaults to false. + * @param validateDimensions When set to false, invalid filter parameter values will be ignored. When set to true, + * an error is returned for invalid filter parameters. Defaults to true. + * @param rollupby Dimension name(s) to rollup results by. For example if you only want to see metric values with a + * filter like 'City eq Seattle or City eq Tacoma' but don't want to see separate values for each city, you can + * specify 'RollUpBy=City' to see the results for Seattle and Tacoma rolled up into one timeseries. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response to a metrics query along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response listAtSubscriptionScopeWithResponse(String region, String timespan, + Duration interval, String metricnames, String aggregation, Integer top, String orderBy, String filter, + MetricResultType resultType, String metricnamespace, Boolean autoAdjustTimegrain, Boolean validateDimensions, + String rollupby, Context context) { + final String accept = "application/json"; + return service.listAtSubscriptionScopeSync(this.client.getHost(), this.client.getSubscriptionId(), + this.client.getApiVersion(), region, timespan, interval, metricnames, aggregation, top, orderBy, filter, + resultType, metricnamespace, autoAdjustTimegrain, validateDimensions, rollupby, accept, context); + } + + /** + * **Lists the metric data for a subscription**. + * + * @param region The region where the metrics you want reside. + * @param timespan The timespan of the query. It is a string with the following format + * 'startDateTime_ISO/endDateTime_ISO'. + * @param interval The interval (i.e. timegrain) of the query in ISO 8601 duration format. Defaults to PT1M. Special + * case for 'FULL' value that returns single datapoint for entire time span requested. + * *Examples: PT15M, PT1H, P1D, FULL*. + * @param metricnames The names of the metrics (comma separated) to retrieve. + * @param aggregation The list of aggregation types (comma separated) to retrieve. + * *Examples: average, minimum, maximum*. + * @param top The maximum number of records to retrieve per resource ID in the request. + * Valid only if filter is specified. + * Defaults to 10. + * @param orderBy The aggregation to use for sorting results and the direction of the sort. + * Only one order can be specified. + * *Examples: sum asc*. + * @param filter The **$filter** is used to reduce the set of metric data + * returned.<br>Example:<br>Metric contains metadata A, B and C.<br>- Return all time series of C + * where A = a1 and B = b1 or b2<br>**$filter=A eq ‘a1’ and B eq ‘b1’ or B eq ‘b2’ and C eq ‘*’**<br>- + * Invalid variant:<br>**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘*’ or B = ‘b2’**<br>This is invalid + * because the logical or operator cannot separate two different metadata names.<br>- Return all time series + * where A = a1, B = b1 and C = c1:<br>**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘c1’**<br>- Return all + * time series where A = a1<br>**$filter=A eq ‘a1’ and B eq ‘*’ and C eq ‘*’**. + * @param resultType Reduces the set of data collected. The syntax allowed depends on the operation. See the + * operation's description for details. + * @param metricnamespace Metric namespace where the metrics you want reside. + * @param autoAdjustTimegrain When set to true, if the timespan passed in is not supported by this metric, the API + * will return the result using the closest supported timespan. When set to false, an error is returned for invalid + * timespan parameters. Defaults to false. + * @param validateDimensions When set to false, invalid filter parameter values will be ignored. When set to true, + * an error is returned for invalid filter parameters. Defaults to true. + * @param rollupby Dimension name(s) to rollup results by. For example if you only want to see metric values with a + * filter like 'City eq Seattle or City eq Tacoma' but don't want to see separate values for each city, you can + * specify 'RollUpBy=City' to see the results for Seattle and Tacoma rolled up into one timeseries. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response to a metrics query. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public MetricsResponse listAtSubscriptionScope(String region, String timespan, Duration interval, + String metricnames, String aggregation, Integer top, String orderBy, String filter, MetricResultType resultType, + String metricnamespace, Boolean autoAdjustTimegrain, Boolean validateDimensions, String rollupby) { + return listAtSubscriptionScopeWithResponse(region, timespan, interval, metricnames, aggregation, top, orderBy, + filter, resultType, metricnamespace, autoAdjustTimegrain, validateDimensions, rollupby, Context.NONE) + .getValue(); + } + + /** + * **Lists the metric data for a subscription**. Parameters can be specified on either query params or the body. + * + * @param region The region where the metrics you want reside. + * @param timespan The timespan of the query. It is a string with the following format + * 'startDateTime_ISO/endDateTime_ISO'. + * @param interval The interval (i.e. timegrain) of the query in ISO 8601 duration format. Defaults to PT1M. Special + * case for 'FULL' value that returns single datapoint for entire time span requested. + * *Examples: PT15M, PT1H, P1D, FULL*. + * @param metricnames The names of the metrics (comma separated) to retrieve. + * @param aggregation The list of aggregation types (comma separated) to retrieve. + * *Examples: average, minimum, maximum*. + * @param top The maximum number of records to retrieve per resource ID in the request. + * Valid only if filter is specified. + * Defaults to 10. + * @param orderBy The aggregation to use for sorting results and the direction of the sort. + * Only one order can be specified. + * *Examples: sum asc*. + * @param filter The **$filter** is used to reduce the set of metric data + * returned.<br>Example:<br>Metric contains metadata A, B and C.<br>- Return all time series of C + * where A = a1 and B = b1 or b2<br>**$filter=A eq ‘a1’ and B eq ‘b1’ or B eq ‘b2’ and C eq ‘*’**<br>- + * Invalid variant:<br>**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘*’ or B = ‘b2’**<br>This is invalid + * because the logical or operator cannot separate two different metadata names.<br>- Return all time series + * where A = a1, B = b1 and C = c1:<br>**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘c1’**<br>- Return all + * time series where A = a1<br>**$filter=A eq ‘a1’ and B eq ‘*’ and C eq ‘*’**. + * @param resultType Reduces the set of data collected. The syntax allowed depends on the operation. See the + * operation's description for details. + * @param metricnamespace Metric namespace where the metrics you want reside. + * @param autoAdjustTimegrain When set to true, if the timespan passed in is not supported by this metric, the API + * will return the result using the closest supported timespan. When set to false, an error is returned for invalid + * timespan parameters. Defaults to false. + * @param validateDimensions When set to false, invalid filter parameter values will be ignored. When set to true, + * an error is returned for invalid filter parameters. Defaults to true. + * @param rollupby Dimension name(s) to rollup results by. For example if you only want to see metric values with a + * filter like 'City eq Seattle or City eq Tacoma' but don't want to see separate values for each city, you can + * specify 'RollUpBy=City' to see the results for Seattle and Tacoma rolled up into one timeseries. + * @param body Parameters serialized in the body. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response to a metrics query along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listAtSubscriptionScopePostWithResponseAsync(String region, String timespan, + Duration interval, String metricnames, String aggregation, Integer top, String orderBy, String filter, + MetricResultType resultType, String metricnamespace, Boolean autoAdjustTimegrain, Boolean validateDimensions, + String rollupby, SubscriptionScopeMetricsRequestBodyParameters body) { + final String accept = "application/json"; + return FluxUtil.withContext( + context -> service.listAtSubscriptionScopePost(this.client.getHost(), this.client.getSubscriptionId(), + this.client.getApiVersion(), region, timespan, interval, metricnames, aggregation, top, orderBy, filter, + resultType, metricnamespace, autoAdjustTimegrain, validateDimensions, rollupby, body, accept, context)); + } + + /** + * **Lists the metric data for a subscription**. Parameters can be specified on either query params or the body. + * + * @param region The region where the metrics you want reside. + * @param timespan The timespan of the query. It is a string with the following format + * 'startDateTime_ISO/endDateTime_ISO'. + * @param interval The interval (i.e. timegrain) of the query in ISO 8601 duration format. Defaults to PT1M. Special + * case for 'FULL' value that returns single datapoint for entire time span requested. + * *Examples: PT15M, PT1H, P1D, FULL*. + * @param metricnames The names of the metrics (comma separated) to retrieve. + * @param aggregation The list of aggregation types (comma separated) to retrieve. + * *Examples: average, minimum, maximum*. + * @param top The maximum number of records to retrieve per resource ID in the request. + * Valid only if filter is specified. + * Defaults to 10. + * @param orderBy The aggregation to use for sorting results and the direction of the sort. + * Only one order can be specified. + * *Examples: sum asc*. + * @param filter The **$filter** is used to reduce the set of metric data + * returned.<br>Example:<br>Metric contains metadata A, B and C.<br>- Return all time series of C + * where A = a1 and B = b1 or b2<br>**$filter=A eq ‘a1’ and B eq ‘b1’ or B eq ‘b2’ and C eq ‘*’**<br>- + * Invalid variant:<br>**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘*’ or B = ‘b2’**<br>This is invalid + * because the logical or operator cannot separate two different metadata names.<br>- Return all time series + * where A = a1, B = b1 and C = c1:<br>**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘c1’**<br>- Return all + * time series where A = a1<br>**$filter=A eq ‘a1’ and B eq ‘*’ and C eq ‘*’**. + * @param resultType Reduces the set of data collected. The syntax allowed depends on the operation. See the + * operation's description for details. + * @param metricnamespace Metric namespace where the metrics you want reside. + * @param autoAdjustTimegrain When set to true, if the timespan passed in is not supported by this metric, the API + * will return the result using the closest supported timespan. When set to false, an error is returned for invalid + * timespan parameters. Defaults to false. + * @param validateDimensions When set to false, invalid filter parameter values will be ignored. When set to true, + * an error is returned for invalid filter parameters. Defaults to true. + * @param rollupby Dimension name(s) to rollup results by. For example if you only want to see metric values with a + * filter like 'City eq Seattle or City eq Tacoma' but don't want to see separate values for each city, you can + * specify 'RollUpBy=City' to see the results for Seattle and Tacoma rolled up into one timeseries. + * @param body Parameters serialized in the body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response to a metrics query along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listAtSubscriptionScopePostWithResponseAsync(String region, String timespan, + Duration interval, String metricnames, String aggregation, Integer top, String orderBy, String filter, + MetricResultType resultType, String metricnamespace, Boolean autoAdjustTimegrain, Boolean validateDimensions, + String rollupby, SubscriptionScopeMetricsRequestBodyParameters body, Context context) { + final String accept = "application/json"; + return service.listAtSubscriptionScopePost(this.client.getHost(), this.client.getSubscriptionId(), + this.client.getApiVersion(), region, timespan, interval, metricnames, aggregation, top, orderBy, filter, + resultType, metricnamespace, autoAdjustTimegrain, validateDimensions, rollupby, body, accept, context); + } + + /** + * **Lists the metric data for a subscription**. Parameters can be specified on either query params or the body. + * + * @param region The region where the metrics you want reside. + * @param timespan The timespan of the query. It is a string with the following format + * 'startDateTime_ISO/endDateTime_ISO'. + * @param interval The interval (i.e. timegrain) of the query in ISO 8601 duration format. Defaults to PT1M. Special + * case for 'FULL' value that returns single datapoint for entire time span requested. + * *Examples: PT15M, PT1H, P1D, FULL*. + * @param metricnames The names of the metrics (comma separated) to retrieve. + * @param aggregation The list of aggregation types (comma separated) to retrieve. + * *Examples: average, minimum, maximum*. + * @param top The maximum number of records to retrieve per resource ID in the request. + * Valid only if filter is specified. + * Defaults to 10. + * @param orderBy The aggregation to use for sorting results and the direction of the sort. + * Only one order can be specified. + * *Examples: sum asc*. + * @param filter The **$filter** is used to reduce the set of metric data + * returned.<br>Example:<br>Metric contains metadata A, B and C.<br>- Return all time series of C + * where A = a1 and B = b1 or b2<br>**$filter=A eq ‘a1’ and B eq ‘b1’ or B eq ‘b2’ and C eq ‘*’**<br>- + * Invalid variant:<br>**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘*’ or B = ‘b2’**<br>This is invalid + * because the logical or operator cannot separate two different metadata names.<br>- Return all time series + * where A = a1, B = b1 and C = c1:<br>**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘c1’**<br>- Return all + * time series where A = a1<br>**$filter=A eq ‘a1’ and B eq ‘*’ and C eq ‘*’**. + * @param resultType Reduces the set of data collected. The syntax allowed depends on the operation. See the + * operation's description for details. + * @param metricnamespace Metric namespace where the metrics you want reside. + * @param autoAdjustTimegrain When set to true, if the timespan passed in is not supported by this metric, the API + * will return the result using the closest supported timespan. When set to false, an error is returned for invalid + * timespan parameters. Defaults to false. + * @param validateDimensions When set to false, invalid filter parameter values will be ignored. When set to true, + * an error is returned for invalid filter parameters. Defaults to true. + * @param rollupby Dimension name(s) to rollup results by. For example if you only want to see metric values with a + * filter like 'City eq Seattle or City eq Tacoma' but don't want to see separate values for each city, you can + * specify 'RollUpBy=City' to see the results for Seattle and Tacoma rolled up into one timeseries. + * @param body Parameters serialized in the body. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response to a metrics query on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono listAtSubscriptionScopePostAsync(String region, String timespan, Duration interval, + String metricnames, String aggregation, Integer top, String orderBy, String filter, MetricResultType resultType, + String metricnamespace, Boolean autoAdjustTimegrain, Boolean validateDimensions, String rollupby, + SubscriptionScopeMetricsRequestBodyParameters body) { + return listAtSubscriptionScopePostWithResponseAsync(region, timespan, interval, metricnames, aggregation, top, + orderBy, filter, resultType, metricnamespace, autoAdjustTimegrain, validateDimensions, rollupby, body) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * **Lists the metric data for a subscription**. Parameters can be specified on either query params or the body. + * + * @param region The region where the metrics you want reside. + * @param timespan The timespan of the query. It is a string with the following format + * 'startDateTime_ISO/endDateTime_ISO'. + * @param interval The interval (i.e. timegrain) of the query in ISO 8601 duration format. Defaults to PT1M. Special + * case for 'FULL' value that returns single datapoint for entire time span requested. + * *Examples: PT15M, PT1H, P1D, FULL*. + * @param metricnames The names of the metrics (comma separated) to retrieve. + * @param aggregation The list of aggregation types (comma separated) to retrieve. + * *Examples: average, minimum, maximum*. + * @param top The maximum number of records to retrieve per resource ID in the request. + * Valid only if filter is specified. + * Defaults to 10. + * @param orderBy The aggregation to use for sorting results and the direction of the sort. + * Only one order can be specified. + * *Examples: sum asc*. + * @param filter The **$filter** is used to reduce the set of metric data + * returned.<br>Example:<br>Metric contains metadata A, B and C.<br>- Return all time series of C + * where A = a1 and B = b1 or b2<br>**$filter=A eq ‘a1’ and B eq ‘b1’ or B eq ‘b2’ and C eq ‘*’**<br>- + * Invalid variant:<br>**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘*’ or B = ‘b2’**<br>This is invalid + * because the logical or operator cannot separate two different metadata names.<br>- Return all time series + * where A = a1, B = b1 and C = c1:<br>**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘c1’**<br>- Return all + * time series where A = a1<br>**$filter=A eq ‘a1’ and B eq ‘*’ and C eq ‘*’**. + * @param resultType Reduces the set of data collected. The syntax allowed depends on the operation. See the + * operation's description for details. + * @param metricnamespace Metric namespace where the metrics you want reside. + * @param autoAdjustTimegrain When set to true, if the timespan passed in is not supported by this metric, the API + * will return the result using the closest supported timespan. When set to false, an error is returned for invalid + * timespan parameters. Defaults to false. + * @param validateDimensions When set to false, invalid filter parameter values will be ignored. When set to true, + * an error is returned for invalid filter parameters. Defaults to true. + * @param rollupby Dimension name(s) to rollup results by. For example if you only want to see metric values with a + * filter like 'City eq Seattle or City eq Tacoma' but don't want to see separate values for each city, you can + * specify 'RollUpBy=City' to see the results for Seattle and Tacoma rolled up into one timeseries. + * @param body Parameters serialized in the body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response to a metrics query on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono listAtSubscriptionScopePostAsync(String region, String timespan, Duration interval, + String metricnames, String aggregation, Integer top, String orderBy, String filter, MetricResultType resultType, + String metricnamespace, Boolean autoAdjustTimegrain, Boolean validateDimensions, String rollupby, + SubscriptionScopeMetricsRequestBodyParameters body, Context context) { + return listAtSubscriptionScopePostWithResponseAsync(region, timespan, interval, metricnames, aggregation, top, + orderBy, filter, resultType, metricnamespace, autoAdjustTimegrain, validateDimensions, rollupby, body, + context).flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * **Lists the metric data for a subscription**. Parameters can be specified on either query params or the body. + * + * @param region The region where the metrics you want reside. + * @param timespan The timespan of the query. It is a string with the following format + * 'startDateTime_ISO/endDateTime_ISO'. + * @param interval The interval (i.e. timegrain) of the query in ISO 8601 duration format. Defaults to PT1M. Special + * case for 'FULL' value that returns single datapoint for entire time span requested. + * *Examples: PT15M, PT1H, P1D, FULL*. + * @param metricnames The names of the metrics (comma separated) to retrieve. + * @param aggregation The list of aggregation types (comma separated) to retrieve. + * *Examples: average, minimum, maximum*. + * @param top The maximum number of records to retrieve per resource ID in the request. + * Valid only if filter is specified. + * Defaults to 10. + * @param orderBy The aggregation to use for sorting results and the direction of the sort. + * Only one order can be specified. + * *Examples: sum asc*. + * @param filter The **$filter** is used to reduce the set of metric data + * returned.<br>Example:<br>Metric contains metadata A, B and C.<br>- Return all time series of C + * where A = a1 and B = b1 or b2<br>**$filter=A eq ‘a1’ and B eq ‘b1’ or B eq ‘b2’ and C eq ‘*’**<br>- + * Invalid variant:<br>**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘*’ or B = ‘b2’**<br>This is invalid + * because the logical or operator cannot separate two different metadata names.<br>- Return all time series + * where A = a1, B = b1 and C = c1:<br>**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘c1’**<br>- Return all + * time series where A = a1<br>**$filter=A eq ‘a1’ and B eq ‘*’ and C eq ‘*’**. + * @param resultType Reduces the set of data collected. The syntax allowed depends on the operation. See the + * operation's description for details. + * @param metricnamespace Metric namespace where the metrics you want reside. + * @param autoAdjustTimegrain When set to true, if the timespan passed in is not supported by this metric, the API + * will return the result using the closest supported timespan. When set to false, an error is returned for invalid + * timespan parameters. Defaults to false. + * @param validateDimensions When set to false, invalid filter parameter values will be ignored. When set to true, + * an error is returned for invalid filter parameters. Defaults to true. + * @param rollupby Dimension name(s) to rollup results by. For example if you only want to see metric values with a + * filter like 'City eq Seattle or City eq Tacoma' but don't want to see separate values for each city, you can + * specify 'RollUpBy=City' to see the results for Seattle and Tacoma rolled up into one timeseries. + * @param body Parameters serialized in the body. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response to a metrics query along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response listAtSubscriptionScopePostWithResponse(String region, String timespan, + Duration interval, String metricnames, String aggregation, Integer top, String orderBy, String filter, + MetricResultType resultType, String metricnamespace, Boolean autoAdjustTimegrain, Boolean validateDimensions, + String rollupby, SubscriptionScopeMetricsRequestBodyParameters body, Context context) { + final String accept = "application/json"; + return service.listAtSubscriptionScopePostSync(this.client.getHost(), this.client.getSubscriptionId(), + this.client.getApiVersion(), region, timespan, interval, metricnames, aggregation, top, orderBy, filter, + resultType, metricnamespace, autoAdjustTimegrain, validateDimensions, rollupby, body, accept, context); + } + + /** + * **Lists the metric data for a subscription**. Parameters can be specified on either query params or the body. + * + * @param region The region where the metrics you want reside. + * @param timespan The timespan of the query. It is a string with the following format + * 'startDateTime_ISO/endDateTime_ISO'. + * @param interval The interval (i.e. timegrain) of the query in ISO 8601 duration format. Defaults to PT1M. Special + * case for 'FULL' value that returns single datapoint for entire time span requested. + * *Examples: PT15M, PT1H, P1D, FULL*. + * @param metricnames The names of the metrics (comma separated) to retrieve. + * @param aggregation The list of aggregation types (comma separated) to retrieve. + * *Examples: average, minimum, maximum*. + * @param top The maximum number of records to retrieve per resource ID in the request. + * Valid only if filter is specified. + * Defaults to 10. + * @param orderBy The aggregation to use for sorting results and the direction of the sort. + * Only one order can be specified. + * *Examples: sum asc*. + * @param filter The **$filter** is used to reduce the set of metric data + * returned.<br>Example:<br>Metric contains metadata A, B and C.<br>- Return all time series of C + * where A = a1 and B = b1 or b2<br>**$filter=A eq ‘a1’ and B eq ‘b1’ or B eq ‘b2’ and C eq ‘*’**<br>- + * Invalid variant:<br>**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘*’ or B = ‘b2’**<br>This is invalid + * because the logical or operator cannot separate two different metadata names.<br>- Return all time series + * where A = a1, B = b1 and C = c1:<br>**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘c1’**<br>- Return all + * time series where A = a1<br>**$filter=A eq ‘a1’ and B eq ‘*’ and C eq ‘*’**. + * @param resultType Reduces the set of data collected. The syntax allowed depends on the operation. See the + * operation's description for details. + * @param metricnamespace Metric namespace where the metrics you want reside. + * @param autoAdjustTimegrain When set to true, if the timespan passed in is not supported by this metric, the API + * will return the result using the closest supported timespan. When set to false, an error is returned for invalid + * timespan parameters. Defaults to false. + * @param validateDimensions When set to false, invalid filter parameter values will be ignored. When set to true, + * an error is returned for invalid filter parameters. Defaults to true. + * @param rollupby Dimension name(s) to rollup results by. For example if you only want to see metric values with a + * filter like 'City eq Seattle or City eq Tacoma' but don't want to see separate values for each city, you can + * specify 'RollUpBy=City' to see the results for Seattle and Tacoma rolled up into one timeseries. + * @param body Parameters serialized in the body. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response to a metrics query. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public MetricsResponse listAtSubscriptionScopePost(String region, String timespan, Duration interval, + String metricnames, String aggregation, Integer top, String orderBy, String filter, MetricResultType resultType, + String metricnamespace, Boolean autoAdjustTimegrain, Boolean validateDimensions, String rollupby, + SubscriptionScopeMetricsRequestBodyParameters body) { + return listAtSubscriptionScopePostWithResponse(region, timespan, interval, metricnames, aggregation, top, + orderBy, filter, resultType, metricnamespace, autoAdjustTimegrain, validateDimensions, rollupby, body, + Context.NONE).getValue(); } /** @@ -90,28 +791,33 @@ Response listSync(@HostParam("$host") String host, * @param interval The interval (i.e. timegrain) of the query in ISO 8601 duration format. Defaults to PT1M. Special * case for 'FULL' value that returns single datapoint for entire time span requested. * *Examples: PT15M, PT1H, P1D, FULL*. - * @param metricnames The names of the metrics (comma separated) to retrieve. Special case: If a metricname itself - * has a comma in it then use %2 to indicate it. Eg: 'Metric,Name1' should be **'Metric%2Name1'**. + * @param metricnames The names of the metrics (comma separated) to retrieve. * @param aggregation The list of aggregation types (comma separated) to retrieve. - * @param top The maximum number of records to retrieve. - * Valid only if $filter is specified. + * *Examples: average, minimum, maximum*. + * @param top The maximum number of records to retrieve per resource ID in the request. + * Valid only if filter is specified. * Defaults to 10. * @param orderBy The aggregation to use for sorting results and the direction of the sort. * Only one order can be specified. - * Examples: sum asc. - * @param filter The **$filter** is used to reduce the set of metric data returned. Example: Metric contains - * metadata A, B and C. - Return all time series of C where A = a1 and B = b1 or b2 **$filter=A eq 'a1' and B eq - * 'b1' or B eq 'b2' and C eq '*'** - Invalid variant: **$filter=A eq 'a1' and B eq 'b1' and C eq '*' or B = 'b2'** - * This is invalid because the logical or operator cannot separate two different metadata names. - Return all time - * series where A = a1, B = b1 and C = c1: **$filter=A eq 'a1' and B eq 'b1' and C eq 'c1'** - Return all time - * series where A = a1 **$filter=A eq 'a1' and B eq '*' and C eq '*'**. Special case: When dimension name or - * dimension value uses round brackets. Eg: When dimension name is **dim (test) 1** Instead of using $filter= "dim - * (test) 1 eq '*' " use **$filter= "dim %2528test%2529 1 eq '*' "** When dimension name is **dim (test) 3** and - * dimension value is **dim3 (test) val** Instead of using $filter= "dim (test) 3 eq 'dim3 (test) val' " use - * **$filter= "dim %2528test%2529 3 eq 'dim3 %2528test%2529 val' "**. + * *Examples: sum asc*. + * @param filter The **$filter** is used to reduce the set of metric data + * returned.<br>Example:<br>Metric contains metadata A, B and C.<br>- Return all time series of C + * where A = a1 and B = b1 or b2<br>**$filter=A eq ‘a1’ and B eq ‘b1’ or B eq ‘b2’ and C eq ‘*’**<br>- + * Invalid variant:<br>**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘*’ or B = ‘b2’**<br>This is invalid + * because the logical or operator cannot separate two different metadata names.<br>- Return all time series + * where A = a1, B = b1 and C = c1:<br>**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘c1’**<br>- Return all + * time series where A = a1<br>**$filter=A eq ‘a1’ and B eq ‘*’ and C eq ‘*’**. * @param resultType Reduces the set of data collected. The syntax allowed depends on the operation. See the * operation's description for details. - * @param metricnamespace Metric namespace to query metric definitions for. + * @param metricnamespace Metric namespace where the metrics you want reside. + * @param autoAdjustTimegrain When set to true, if the timespan passed in is not supported by this metric, the API + * will return the result using the closest supported timespan. When set to false, an error is returned for invalid + * timespan parameters. Defaults to false. + * @param validateDimensions When set to false, invalid filter parameter values will be ignored. When set to true, + * an error is returned for invalid filter parameters. Defaults to true. + * @param rollupby Dimension name(s) to rollup results by. For example if you only want to see metric values with a + * filter like 'City eq Seattle or City eq Tacoma' but don't want to see separate values for each city, you can + * specify 'RollUpBy=City' to see the results for Seattle and Tacoma rolled up into one timeseries. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -120,11 +826,11 @@ Response listSync(@HostParam("$host") String host, @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listWithResponseAsync(String resourceUri, String timespan, Duration interval, String metricnames, String aggregation, Integer top, String orderBy, String filter, ResultType resultType, - String metricnamespace) { + String metricnamespace, Boolean autoAdjustTimegrain, Boolean validateDimensions, String rollupby) { final String accept = "application/json"; - return FluxUtil.withContext( - context -> service.list(this.client.getHost(), resourceUri, timespan, interval, metricnames, aggregation, - top, orderBy, filter, resultType, this.client.getApiVersion(), metricnamespace, accept, context)); + return FluxUtil.withContext(context -> service.list(this.client.getHost(), resourceUri, timespan, interval, + metricnames, aggregation, top, orderBy, filter, resultType, this.client.getApiVersion(), metricnamespace, + autoAdjustTimegrain, validateDimensions, rollupby, accept, context)); } /** @@ -136,28 +842,33 @@ public Mono> listWithResponseAsync(String resourceUri, * @param interval The interval (i.e. timegrain) of the query in ISO 8601 duration format. Defaults to PT1M. Special * case for 'FULL' value that returns single datapoint for entire time span requested. * *Examples: PT15M, PT1H, P1D, FULL*. - * @param metricnames The names of the metrics (comma separated) to retrieve. Special case: If a metricname itself - * has a comma in it then use %2 to indicate it. Eg: 'Metric,Name1' should be **'Metric%2Name1'**. + * @param metricnames The names of the metrics (comma separated) to retrieve. * @param aggregation The list of aggregation types (comma separated) to retrieve. - * @param top The maximum number of records to retrieve. - * Valid only if $filter is specified. + * *Examples: average, minimum, maximum*. + * @param top The maximum number of records to retrieve per resource ID in the request. + * Valid only if filter is specified. * Defaults to 10. * @param orderBy The aggregation to use for sorting results and the direction of the sort. * Only one order can be specified. - * Examples: sum asc. - * @param filter The **$filter** is used to reduce the set of metric data returned. Example: Metric contains - * metadata A, B and C. - Return all time series of C where A = a1 and B = b1 or b2 **$filter=A eq 'a1' and B eq - * 'b1' or B eq 'b2' and C eq '*'** - Invalid variant: **$filter=A eq 'a1' and B eq 'b1' and C eq '*' or B = 'b2'** - * This is invalid because the logical or operator cannot separate two different metadata names. - Return all time - * series where A = a1, B = b1 and C = c1: **$filter=A eq 'a1' and B eq 'b1' and C eq 'c1'** - Return all time - * series where A = a1 **$filter=A eq 'a1' and B eq '*' and C eq '*'**. Special case: When dimension name or - * dimension value uses round brackets. Eg: When dimension name is **dim (test) 1** Instead of using $filter= "dim - * (test) 1 eq '*' " use **$filter= "dim %2528test%2529 1 eq '*' "** When dimension name is **dim (test) 3** and - * dimension value is **dim3 (test) val** Instead of using $filter= "dim (test) 3 eq 'dim3 (test) val' " use - * **$filter= "dim %2528test%2529 3 eq 'dim3 %2528test%2529 val' "**. + * *Examples: sum asc*. + * @param filter The **$filter** is used to reduce the set of metric data + * returned.<br>Example:<br>Metric contains metadata A, B and C.<br>- Return all time series of C + * where A = a1 and B = b1 or b2<br>**$filter=A eq ‘a1’ and B eq ‘b1’ or B eq ‘b2’ and C eq ‘*’**<br>- + * Invalid variant:<br>**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘*’ or B = ‘b2’**<br>This is invalid + * because the logical or operator cannot separate two different metadata names.<br>- Return all time series + * where A = a1, B = b1 and C = c1:<br>**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘c1’**<br>- Return all + * time series where A = a1<br>**$filter=A eq ‘a1’ and B eq ‘*’ and C eq ‘*’**. * @param resultType Reduces the set of data collected. The syntax allowed depends on the operation. See the * operation's description for details. - * @param metricnamespace Metric namespace to query metric definitions for. + * @param metricnamespace Metric namespace where the metrics you want reside. + * @param autoAdjustTimegrain When set to true, if the timespan passed in is not supported by this metric, the API + * will return the result using the closest supported timespan. When set to false, an error is returned for invalid + * timespan parameters. Defaults to false. + * @param validateDimensions When set to false, invalid filter parameter values will be ignored. When set to true, + * an error is returned for invalid filter parameters. Defaults to true. + * @param rollupby Dimension name(s) to rollup results by. For example if you only want to see metric values with a + * filter like 'City eq Seattle or City eq Tacoma' but don't want to see separate values for each city, you can + * specify 'RollUpBy=City' to see the results for Seattle and Tacoma rolled up into one timeseries. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorResponseException thrown if the request is rejected by server. @@ -167,10 +878,12 @@ public Mono> listWithResponseAsync(String resourceUri, @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listWithResponseAsync(String resourceUri, String timespan, Duration interval, String metricnames, String aggregation, Integer top, String orderBy, String filter, ResultType resultType, - String metricnamespace, Context context) { + String metricnamespace, Boolean autoAdjustTimegrain, Boolean validateDimensions, String rollupby, + Context context) { final String accept = "application/json"; return service.list(this.client.getHost(), resourceUri, timespan, interval, metricnames, aggregation, top, - orderBy, filter, resultType, this.client.getApiVersion(), metricnamespace, accept, context); + orderBy, filter, resultType, this.client.getApiVersion(), metricnamespace, autoAdjustTimegrain, + validateDimensions, rollupby, accept, context); } /** @@ -182,28 +895,33 @@ public Mono> listWithResponseAsync(String resourceUri, * @param interval The interval (i.e. timegrain) of the query in ISO 8601 duration format. Defaults to PT1M. Special * case for 'FULL' value that returns single datapoint for entire time span requested. * *Examples: PT15M, PT1H, P1D, FULL*. - * @param metricnames The names of the metrics (comma separated) to retrieve. Special case: If a metricname itself - * has a comma in it then use %2 to indicate it. Eg: 'Metric,Name1' should be **'Metric%2Name1'**. + * @param metricnames The names of the metrics (comma separated) to retrieve. * @param aggregation The list of aggregation types (comma separated) to retrieve. - * @param top The maximum number of records to retrieve. - * Valid only if $filter is specified. + * *Examples: average, minimum, maximum*. + * @param top The maximum number of records to retrieve per resource ID in the request. + * Valid only if filter is specified. * Defaults to 10. * @param orderBy The aggregation to use for sorting results and the direction of the sort. * Only one order can be specified. - * Examples: sum asc. - * @param filter The **$filter** is used to reduce the set of metric data returned. Example: Metric contains - * metadata A, B and C. - Return all time series of C where A = a1 and B = b1 or b2 **$filter=A eq 'a1' and B eq - * 'b1' or B eq 'b2' and C eq '*'** - Invalid variant: **$filter=A eq 'a1' and B eq 'b1' and C eq '*' or B = 'b2'** - * This is invalid because the logical or operator cannot separate two different metadata names. - Return all time - * series where A = a1, B = b1 and C = c1: **$filter=A eq 'a1' and B eq 'b1' and C eq 'c1'** - Return all time - * series where A = a1 **$filter=A eq 'a1' and B eq '*' and C eq '*'**. Special case: When dimension name or - * dimension value uses round brackets. Eg: When dimension name is **dim (test) 1** Instead of using $filter= "dim - * (test) 1 eq '*' " use **$filter= "dim %2528test%2529 1 eq '*' "** When dimension name is **dim (test) 3** and - * dimension value is **dim3 (test) val** Instead of using $filter= "dim (test) 3 eq 'dim3 (test) val' " use - * **$filter= "dim %2528test%2529 3 eq 'dim3 %2528test%2529 val' "**. + * *Examples: sum asc*. + * @param filter The **$filter** is used to reduce the set of metric data + * returned.<br>Example:<br>Metric contains metadata A, B and C.<br>- Return all time series of C + * where A = a1 and B = b1 or b2<br>**$filter=A eq ‘a1’ and B eq ‘b1’ or B eq ‘b2’ and C eq ‘*’**<br>- + * Invalid variant:<br>**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘*’ or B = ‘b2’**<br>This is invalid + * because the logical or operator cannot separate two different metadata names.<br>- Return all time series + * where A = a1, B = b1 and C = c1:<br>**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘c1’**<br>- Return all + * time series where A = a1<br>**$filter=A eq ‘a1’ and B eq ‘*’ and C eq ‘*’**. * @param resultType Reduces the set of data collected. The syntax allowed depends on the operation. See the * operation's description for details. - * @param metricnamespace Metric namespace to query metric definitions for. + * @param metricnamespace Metric namespace where the metrics you want reside. + * @param autoAdjustTimegrain When set to true, if the timespan passed in is not supported by this metric, the API + * will return the result using the closest supported timespan. When set to false, an error is returned for invalid + * timespan parameters. Defaults to false. + * @param validateDimensions When set to false, invalid filter parameter values will be ignored. When set to true, + * an error is returned for invalid filter parameters. Defaults to true. + * @param rollupby Dimension name(s) to rollup results by. For example if you only want to see metric values with a + * filter like 'City eq Seattle or City eq Tacoma' but don't want to see separate values for each city, you can + * specify 'RollUpBy=City' to see the results for Seattle and Tacoma rolled up into one timeseries. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -211,9 +929,11 @@ public Mono> listWithResponseAsync(String resourceUri, */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono listAsync(String resourceUri, String timespan, Duration interval, String metricnames, - String aggregation, Integer top, String orderBy, String filter, ResultType resultType, String metricnamespace) { + String aggregation, Integer top, String orderBy, String filter, ResultType resultType, String metricnamespace, + Boolean autoAdjustTimegrain, Boolean validateDimensions, String rollupby) { return listWithResponseAsync(resourceUri, timespan, interval, metricnames, aggregation, top, orderBy, filter, - resultType, metricnamespace).flatMap(res -> Mono.justOrEmpty(res.getValue())); + resultType, metricnamespace, autoAdjustTimegrain, validateDimensions, rollupby) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -225,28 +945,33 @@ public Mono listAsync(String resourceUri, String timespan, Dura * @param interval The interval (i.e. timegrain) of the query in ISO 8601 duration format. Defaults to PT1M. Special * case for 'FULL' value that returns single datapoint for entire time span requested. * *Examples: PT15M, PT1H, P1D, FULL*. - * @param metricnames The names of the metrics (comma separated) to retrieve. Special case: If a metricname itself - * has a comma in it then use %2 to indicate it. Eg: 'Metric,Name1' should be **'Metric%2Name1'**. + * @param metricnames The names of the metrics (comma separated) to retrieve. * @param aggregation The list of aggregation types (comma separated) to retrieve. - * @param top The maximum number of records to retrieve. - * Valid only if $filter is specified. + * *Examples: average, minimum, maximum*. + * @param top The maximum number of records to retrieve per resource ID in the request. + * Valid only if filter is specified. * Defaults to 10. * @param orderBy The aggregation to use for sorting results and the direction of the sort. * Only one order can be specified. - * Examples: sum asc. - * @param filter The **$filter** is used to reduce the set of metric data returned. Example: Metric contains - * metadata A, B and C. - Return all time series of C where A = a1 and B = b1 or b2 **$filter=A eq 'a1' and B eq - * 'b1' or B eq 'b2' and C eq '*'** - Invalid variant: **$filter=A eq 'a1' and B eq 'b1' and C eq '*' or B = 'b2'** - * This is invalid because the logical or operator cannot separate two different metadata names. - Return all time - * series where A = a1, B = b1 and C = c1: **$filter=A eq 'a1' and B eq 'b1' and C eq 'c1'** - Return all time - * series where A = a1 **$filter=A eq 'a1' and B eq '*' and C eq '*'**. Special case: When dimension name or - * dimension value uses round brackets. Eg: When dimension name is **dim (test) 1** Instead of using $filter= "dim - * (test) 1 eq '*' " use **$filter= "dim %2528test%2529 1 eq '*' "** When dimension name is **dim (test) 3** and - * dimension value is **dim3 (test) val** Instead of using $filter= "dim (test) 3 eq 'dim3 (test) val' " use - * **$filter= "dim %2528test%2529 3 eq 'dim3 %2528test%2529 val' "**. + * *Examples: sum asc*. + * @param filter The **$filter** is used to reduce the set of metric data + * returned.<br>Example:<br>Metric contains metadata A, B and C.<br>- Return all time series of C + * where A = a1 and B = b1 or b2<br>**$filter=A eq ‘a1’ and B eq ‘b1’ or B eq ‘b2’ and C eq ‘*’**<br>- + * Invalid variant:<br>**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘*’ or B = ‘b2’**<br>This is invalid + * because the logical or operator cannot separate two different metadata names.<br>- Return all time series + * where A = a1, B = b1 and C = c1:<br>**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘c1’**<br>- Return all + * time series where A = a1<br>**$filter=A eq ‘a1’ and B eq ‘*’ and C eq ‘*’**. * @param resultType Reduces the set of data collected. The syntax allowed depends on the operation. See the * operation's description for details. - * @param metricnamespace Metric namespace to query metric definitions for. + * @param metricnamespace Metric namespace where the metrics you want reside. + * @param autoAdjustTimegrain When set to true, if the timespan passed in is not supported by this metric, the API + * will return the result using the closest supported timespan. When set to false, an error is returned for invalid + * timespan parameters. Defaults to false. + * @param validateDimensions When set to false, invalid filter parameter values will be ignored. When set to true, + * an error is returned for invalid filter parameters. Defaults to true. + * @param rollupby Dimension name(s) to rollup results by. For example if you only want to see metric values with a + * filter like 'City eq Seattle or City eq Tacoma' but don't want to see separate values for each city, you can + * specify 'RollUpBy=City' to see the results for Seattle and Tacoma rolled up into one timeseries. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorResponseException thrown if the request is rejected by server. @@ -256,9 +981,10 @@ public Mono listAsync(String resourceUri, String timespan, Dura @ServiceMethod(returns = ReturnType.SINGLE) public Mono listAsync(String resourceUri, String timespan, Duration interval, String metricnames, String aggregation, Integer top, String orderBy, String filter, ResultType resultType, String metricnamespace, - Context context) { + Boolean autoAdjustTimegrain, Boolean validateDimensions, String rollupby, Context context) { return listWithResponseAsync(resourceUri, timespan, interval, metricnames, aggregation, top, orderBy, filter, - resultType, metricnamespace, context).flatMap(res -> Mono.justOrEmpty(res.getValue())); + resultType, metricnamespace, autoAdjustTimegrain, validateDimensions, rollupby, context) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -270,28 +996,33 @@ public Mono listAsync(String resourceUri, String timespan, Dura * @param interval The interval (i.e. timegrain) of the query in ISO 8601 duration format. Defaults to PT1M. Special * case for 'FULL' value that returns single datapoint for entire time span requested. * *Examples: PT15M, PT1H, P1D, FULL*. - * @param metricnames The names of the metrics (comma separated) to retrieve. Special case: If a metricname itself - * has a comma in it then use %2 to indicate it. Eg: 'Metric,Name1' should be **'Metric%2Name1'**. + * @param metricnames The names of the metrics (comma separated) to retrieve. * @param aggregation The list of aggregation types (comma separated) to retrieve. - * @param top The maximum number of records to retrieve. - * Valid only if $filter is specified. + * *Examples: average, minimum, maximum*. + * @param top The maximum number of records to retrieve per resource ID in the request. + * Valid only if filter is specified. * Defaults to 10. * @param orderBy The aggregation to use for sorting results and the direction of the sort. * Only one order can be specified. - * Examples: sum asc. - * @param filter The **$filter** is used to reduce the set of metric data returned. Example: Metric contains - * metadata A, B and C. - Return all time series of C where A = a1 and B = b1 or b2 **$filter=A eq 'a1' and B eq - * 'b1' or B eq 'b2' and C eq '*'** - Invalid variant: **$filter=A eq 'a1' and B eq 'b1' and C eq '*' or B = 'b2'** - * This is invalid because the logical or operator cannot separate two different metadata names. - Return all time - * series where A = a1, B = b1 and C = c1: **$filter=A eq 'a1' and B eq 'b1' and C eq 'c1'** - Return all time - * series where A = a1 **$filter=A eq 'a1' and B eq '*' and C eq '*'**. Special case: When dimension name or - * dimension value uses round brackets. Eg: When dimension name is **dim (test) 1** Instead of using $filter= "dim - * (test) 1 eq '*' " use **$filter= "dim %2528test%2529 1 eq '*' "** When dimension name is **dim (test) 3** and - * dimension value is **dim3 (test) val** Instead of using $filter= "dim (test) 3 eq 'dim3 (test) val' " use - * **$filter= "dim %2528test%2529 3 eq 'dim3 %2528test%2529 val' "**. + * *Examples: sum asc*. + * @param filter The **$filter** is used to reduce the set of metric data + * returned.<br>Example:<br>Metric contains metadata A, B and C.<br>- Return all time series of C + * where A = a1 and B = b1 or b2<br>**$filter=A eq ‘a1’ and B eq ‘b1’ or B eq ‘b2’ and C eq ‘*’**<br>- + * Invalid variant:<br>**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘*’ or B = ‘b2’**<br>This is invalid + * because the logical or operator cannot separate two different metadata names.<br>- Return all time series + * where A = a1, B = b1 and C = c1:<br>**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘c1’**<br>- Return all + * time series where A = a1<br>**$filter=A eq ‘a1’ and B eq ‘*’ and C eq ‘*’**. * @param resultType Reduces the set of data collected. The syntax allowed depends on the operation. See the * operation's description for details. - * @param metricnamespace Metric namespace to query metric definitions for. + * @param metricnamespace Metric namespace where the metrics you want reside. + * @param autoAdjustTimegrain When set to true, if the timespan passed in is not supported by this metric, the API + * will return the result using the closest supported timespan. When set to false, an error is returned for invalid + * timespan parameters. Defaults to false. + * @param validateDimensions When set to false, invalid filter parameter values will be ignored. When set to true, + * an error is returned for invalid filter parameters. Defaults to true. + * @param rollupby Dimension name(s) to rollup results by. For example if you only want to see metric values with a + * filter like 'City eq Seattle or City eq Tacoma' but don't want to see separate values for each city, you can + * specify 'RollUpBy=City' to see the results for Seattle and Tacoma rolled up into one timeseries. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorResponseException thrown if the request is rejected by server. @@ -301,10 +1032,12 @@ public Mono listAsync(String resourceUri, String timespan, Dura @ServiceMethod(returns = ReturnType.SINGLE) public Response listWithResponse(String resourceUri, String timespan, Duration interval, String metricnames, String aggregation, Integer top, String orderBy, String filter, ResultType resultType, - String metricnamespace, Context context) { + String metricnamespace, Boolean autoAdjustTimegrain, Boolean validateDimensions, String rollupby, + Context context) { final String accept = "application/json"; return service.listSync(this.client.getHost(), resourceUri, timespan, interval, metricnames, aggregation, top, - orderBy, filter, resultType, this.client.getApiVersion(), metricnamespace, accept, context); + orderBy, filter, resultType, this.client.getApiVersion(), metricnamespace, autoAdjustTimegrain, + validateDimensions, rollupby, accept, context); } /** @@ -316,28 +1049,33 @@ public Response listWithResponse(String resourceUri, String tim * @param interval The interval (i.e. timegrain) of the query in ISO 8601 duration format. Defaults to PT1M. Special * case for 'FULL' value that returns single datapoint for entire time span requested. * *Examples: PT15M, PT1H, P1D, FULL*. - * @param metricnames The names of the metrics (comma separated) to retrieve. Special case: If a metricname itself - * has a comma in it then use %2 to indicate it. Eg: 'Metric,Name1' should be **'Metric%2Name1'**. + * @param metricnames The names of the metrics (comma separated) to retrieve. * @param aggregation The list of aggregation types (comma separated) to retrieve. - * @param top The maximum number of records to retrieve. - * Valid only if $filter is specified. + * *Examples: average, minimum, maximum*. + * @param top The maximum number of records to retrieve per resource ID in the request. + * Valid only if filter is specified. * Defaults to 10. * @param orderBy The aggregation to use for sorting results and the direction of the sort. * Only one order can be specified. - * Examples: sum asc. - * @param filter The **$filter** is used to reduce the set of metric data returned. Example: Metric contains - * metadata A, B and C. - Return all time series of C where A = a1 and B = b1 or b2 **$filter=A eq 'a1' and B eq - * 'b1' or B eq 'b2' and C eq '*'** - Invalid variant: **$filter=A eq 'a1' and B eq 'b1' and C eq '*' or B = 'b2'** - * This is invalid because the logical or operator cannot separate two different metadata names. - Return all time - * series where A = a1, B = b1 and C = c1: **$filter=A eq 'a1' and B eq 'b1' and C eq 'c1'** - Return all time - * series where A = a1 **$filter=A eq 'a1' and B eq '*' and C eq '*'**. Special case: When dimension name or - * dimension value uses round brackets. Eg: When dimension name is **dim (test) 1** Instead of using $filter= "dim - * (test) 1 eq '*' " use **$filter= "dim %2528test%2529 1 eq '*' "** When dimension name is **dim (test) 3** and - * dimension value is **dim3 (test) val** Instead of using $filter= "dim (test) 3 eq 'dim3 (test) val' " use - * **$filter= "dim %2528test%2529 3 eq 'dim3 %2528test%2529 val' "**. + * *Examples: sum asc*. + * @param filter The **$filter** is used to reduce the set of metric data + * returned.<br>Example:<br>Metric contains metadata A, B and C.<br>- Return all time series of C + * where A = a1 and B = b1 or b2<br>**$filter=A eq ‘a1’ and B eq ‘b1’ or B eq ‘b2’ and C eq ‘*’**<br>- + * Invalid variant:<br>**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘*’ or B = ‘b2’**<br>This is invalid + * because the logical or operator cannot separate two different metadata names.<br>- Return all time series + * where A = a1, B = b1 and C = c1:<br>**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘c1’**<br>- Return all + * time series where A = a1<br>**$filter=A eq ‘a1’ and B eq ‘*’ and C eq ‘*’**. * @param resultType Reduces the set of data collected. The syntax allowed depends on the operation. See the * operation's description for details. - * @param metricnamespace Metric namespace to query metric definitions for. + * @param metricnamespace Metric namespace where the metrics you want reside. + * @param autoAdjustTimegrain When set to true, if the timespan passed in is not supported by this metric, the API + * will return the result using the closest supported timespan. When set to false, an error is returned for invalid + * timespan parameters. Defaults to false. + * @param validateDimensions When set to false, invalid filter parameter values will be ignored. When set to true, + * an error is returned for invalid filter parameters. Defaults to true. + * @param rollupby Dimension name(s) to rollup results by. For example if you only want to see metric values with a + * filter like 'City eq Seattle or City eq Tacoma' but don't want to see separate values for each city, you can + * specify 'RollUpBy=City' to see the results for Seattle and Tacoma rolled up into one timeseries. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -345,8 +1083,9 @@ public Response listWithResponse(String resourceUri, String tim */ @ServiceMethod(returns = ReturnType.SINGLE) public MetricsResponse list(String resourceUri, String timespan, Duration interval, String metricnames, - String aggregation, Integer top, String orderBy, String filter, ResultType resultType, String metricnamespace) { + String aggregation, Integer top, String orderBy, String filter, ResultType resultType, String metricnamespace, + Boolean autoAdjustTimegrain, Boolean validateDimensions, String rollupby) { return listWithResponse(resourceUri, timespan, interval, metricnames, aggregation, top, orderBy, filter, - resultType, metricnamespace, Context.NONE).getValue(); + resultType, metricnamespace, autoAdjustTimegrain, validateDimensions, rollupby, Context.NONE).getValue(); } } diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/MonitorManagementClientImpl.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/MonitorManagementClientImpl.java index 6f57dfa57fce..af7604dabed1 100644 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/MonitorManagementClientImpl.java +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/MonitorManagementClientImpl.java @@ -12,9 +12,23 @@ import com.azure.core.util.serializer.SerializerAdapter; /** - * Initializes a new instance of the MonitorManagementClient type. + * Initializes a new instance of the AzureMonitorMetricsDataAPI type. */ public final class MonitorManagementClientImpl { + /** + * The ID of the target subscription. + */ + private final String subscriptionId; + + /** + * Gets The ID of the target subscription. + * + * @return the subscriptionId value. + */ + public String getSubscriptionId() { + return this.subscriptionId; + } + /** * server parameter. */ @@ -86,39 +100,43 @@ public MetricsImpl getMetrics() { } /** - * Initializes an instance of MonitorManagementClient client. + * Initializes an instance of AzureMonitorMetricsDataAPI client. * + * @param subscriptionId The ID of the target subscription. * @param host server parameter. * @param apiVersion Api Version. */ - MonitorManagementClientImpl(String host, String apiVersion) { + MonitorManagementClientImpl(String subscriptionId, String host, String apiVersion) { this(new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build(), - JacksonAdapter.createDefaultSerializerAdapter(), host, apiVersion); + JacksonAdapter.createDefaultSerializerAdapter(), subscriptionId, host, apiVersion); } /** - * Initializes an instance of MonitorManagementClient client. + * Initializes an instance of AzureMonitorMetricsDataAPI client. * * @param httpPipeline The HTTP pipeline to send requests through. + * @param subscriptionId The ID of the target subscription. * @param host server parameter. * @param apiVersion Api Version. */ - MonitorManagementClientImpl(HttpPipeline httpPipeline, String host, String apiVersion) { - this(httpPipeline, JacksonAdapter.createDefaultSerializerAdapter(), host, apiVersion); + MonitorManagementClientImpl(HttpPipeline httpPipeline, String subscriptionId, String host, String apiVersion) { + this(httpPipeline, JacksonAdapter.createDefaultSerializerAdapter(), subscriptionId, host, apiVersion); } /** - * Initializes an instance of MonitorManagementClient client. + * Initializes an instance of AzureMonitorMetricsDataAPI client. * * @param httpPipeline The HTTP pipeline to send requests through. * @param serializerAdapter The serializer to serialize an object into a string. + * @param subscriptionId The ID of the target subscription. * @param host server parameter. * @param apiVersion Api Version. */ - MonitorManagementClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter, String host, - String apiVersion) { + MonitorManagementClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter, String subscriptionId, + String host, String apiVersion) { this.httpPipeline = httpPipeline; this.serializerAdapter = serializerAdapter; + this.subscriptionId = subscriptionId; this.host = host; this.apiVersion = apiVersion; this.metrics = new MetricsImpl(this); diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/MonitorManagementClientImplBuilder.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/MonitorManagementClientImplBuilder.java index 74ef08a9916c..615c4ed9f3f7 100644 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/MonitorManagementClientImplBuilder.java +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/MonitorManagementClientImplBuilder.java @@ -40,7 +40,7 @@ import java.util.Objects; /** - * A builder for creating a new instance of the MonitorManagementClient type. + * A builder for creating a new instance of the AzureMonitorMetricsDataAPI type. */ @ServiceClientBuilder(serviceClients = { MonitorManagementClientImpl.class }) public final class MonitorManagementClientImplBuilder implements HttpTrait, @@ -58,7 +58,7 @@ public final class MonitorManagementClientImplBuilder implements HttpTrait pipelinePolicies; /** - * Create an instance of the MonitorManagementClientBuilder. + * Create an instance of the AzureMonitorMetricsDataAPIBuilder. */ @Generated public MonitorManagementClientImplBuilder() { @@ -188,6 +188,24 @@ public MonitorManagementClientImplBuilder credential(TokenCredential tokenCreden return this; } + /* + * The ID of the target subscription. + */ + @Generated + private String subscriptionId; + + /** + * Sets The ID of the target subscription. + * + * @param subscriptionId the subscriptionId value. + * @return the AzureMonitorMetricsDataAPIBuilder. + */ + @Generated + public MonitorManagementClientImplBuilder subscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; + return this; + } + /* * server parameter */ @@ -198,7 +216,7 @@ public MonitorManagementClientImplBuilder credential(TokenCredential tokenCreden * Sets server parameter. * * @param host the host value. - * @return the MonitorManagementClientBuilder. + * @return the AzureMonitorMetricsDataAPIBuilder. */ @Generated public MonitorManagementClientImplBuilder host(String host) { @@ -216,7 +234,7 @@ public MonitorManagementClientImplBuilder host(String host) { * Sets Api Version. * * @param apiVersion the apiVersion value. - * @return the MonitorManagementClientBuilder. + * @return the AzureMonitorMetricsDataAPIBuilder. */ @Generated public MonitorManagementClientImplBuilder apiVersion(String apiVersion) { @@ -234,7 +252,7 @@ public MonitorManagementClientImplBuilder apiVersion(String apiVersion) { * Sets The serializer to serialize an object into a string. * * @param serializerAdapter the serializerAdapter value. - * @return the MonitorManagementClientBuilder. + * @return the AzureMonitorMetricsDataAPIBuilder. */ @Generated public MonitorManagementClientImplBuilder serializerAdapter(SerializerAdapter serializerAdapter) { @@ -252,7 +270,7 @@ public MonitorManagementClientImplBuilder serializerAdapter(SerializerAdapter se * Sets The retry policy that will attempt to retry failed requests, if applicable. * * @param retryPolicy the retryPolicy value. - * @return the MonitorManagementClientBuilder. + * @return the AzureMonitorMetricsDataAPIBuilder. */ @Generated public MonitorManagementClientImplBuilder retryPolicy(RetryPolicy retryPolicy) { @@ -261,19 +279,19 @@ public MonitorManagementClientImplBuilder retryPolicy(RetryPolicy retryPolicy) { } /** - * Builds an instance of MonitorManagementClient with the provided parameters. + * Builds an instance of AzureMonitorMetricsDataAPI with the provided parameters. * - * @return an instance of MonitorManagementClient. + * @return an instance of AzureMonitorMetricsDataAPI. */ @Generated public MonitorManagementClientImpl buildClient() { HttpPipeline localPipeline = (pipeline != null) ? pipeline : createHttpPipeline(); String localHost = (host != null) ? host : "https://management.azure.com"; - String localApiVersion = (apiVersion != null) ? apiVersion : "2018-01-01"; + String localApiVersion = (apiVersion != null) ? apiVersion : "2024-02-01"; SerializerAdapter localSerializerAdapter = (serializerAdapter != null) ? serializerAdapter : JacksonAdapter.createDefaultSerializerAdapter(); - MonitorManagementClientImpl client - = new MonitorManagementClientImpl(localPipeline, localSerializerAdapter, localHost, localApiVersion); + MonitorManagementClientImpl client = new MonitorManagementClientImpl(localPipeline, localSerializerAdapter, + this.subscriptionId, localHost, localApiVersion); return client; } @@ -308,7 +326,7 @@ private HttpPipeline createHttpPipeline() { this.pipelinePolicies.stream().filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY) .forEach(p -> policies.add(p)); HttpPolicyProviders.addAfterRetryPolicies(policies); - policies.add(new HttpLoggingPolicy(httpLogOptions)); + policies.add(new HttpLoggingPolicy(localHttpLogOptions)); HttpPipeline httpPipeline = new HttpPipelineBuilder().policies(policies.toArray(new HttpPipelinePolicy[0])) .httpClient(httpClient).clientOptions(localClientOptions).build(); return httpPipeline; diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/models/ErrorAdditionalInfo.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/models/ErrorAdditionalInfo.java new file mode 100644 index 000000000000..2f1abe1f2a0f --- /dev/null +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/models/ErrorAdditionalInfo.java @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.monitor.query.implementation.metrics.models; + +import com.azure.core.annotation.Immutable; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The resource management error additional info. + */ +@Immutable +public final class ErrorAdditionalInfo { + /* + * The additional info type. + */ + @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) + private String type; + + /* + * The additional info. + */ + @JsonProperty(value = "info", access = JsonProperty.Access.WRITE_ONLY) + private Object info; + + /** + * Creates an instance of ErrorAdditionalInfo class. + */ + public ErrorAdditionalInfo() { + } + + /** + * Get the type property: The additional info type. + * + * @return the type value. + */ + public String getType() { + return this.type; + } + + /** + * Get the info property: The additional info. + * + * @return the info value. + */ + public Object getInfo() { + return this.info; + } +} diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/models/ErrorContract.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/models/ErrorContract.java new file mode 100644 index 000000000000..68f0a9a8353b --- /dev/null +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/models/ErrorContract.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.monitor.query.implementation.metrics.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Error Response + * + * Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also + * follows the OData error response format.). + */ +@Fluent +public final class ErrorContract { + /* + * Error Response + * + * The error object. + */ + @JsonProperty(value = "error") + private ErrorResponse error; + + /** + * Creates an instance of ErrorContract class. + */ + public ErrorContract() { + } + + /** + * Get the error property: Error Response + * + * The error object. + * + * @return the error value. + */ + public ErrorResponse getError() { + return this.error; + } + + /** + * Set the error property: Error Response + * + * The error object. + * + * @param error the error value to set. + * @return the ErrorContract object itself. + */ + public ErrorContract setError(ErrorResponse error) { + this.error = error; + return this; + } +} diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/models/ErrorContractException.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/models/ErrorContractException.java new file mode 100644 index 000000000000..37c027bf88ef --- /dev/null +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/models/ErrorContractException.java @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.monitor.query.implementation.metrics.models; + +import com.azure.core.exception.HttpResponseException; +import com.azure.core.http.HttpResponse; + +/** + * Exception thrown for an invalid response with ErrorContract information. + */ +public final class ErrorContractException extends HttpResponseException { + /** + * Initializes a new instance of the ErrorContractException class. + * + * @param message the exception message or the response content if a message is not available. + * @param response the HTTP response. + */ + public ErrorContractException(String message, HttpResponse response) { + super(message, response); + } + + /** + * Initializes a new instance of the ErrorContractException class. + * + * @param message the exception message or the response content if a message is not available. + * @param response the HTTP response. + * @param value the deserialized response value. + */ + public ErrorContractException(String message, HttpResponse response, ErrorContract value) { + super(message, response, value); + } + + /** + * {@inheritDoc} + */ + @Override + public ErrorContract getValue() { + return (ErrorContract) super.getValue(); + } +} diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/models/ErrorResponse.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/models/ErrorResponse.java index c9df6c4746ad..a23875aa8b06 100644 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/models/ErrorResponse.java +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/models/ErrorResponse.java @@ -4,26 +4,48 @@ package com.azure.monitor.query.implementation.metrics.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; /** - * Describes the format of Error response. + * Error Response + * + * Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also + * follows the OData error response format.). */ -@Fluent +@Immutable public final class ErrorResponse { /* - * Error code + * The error code. */ - @JsonProperty(value = "code") + @JsonProperty(value = "code", access = JsonProperty.Access.WRITE_ONLY) private String code; /* - * Error message indicating why the operation failed. + * The error message. */ - @JsonProperty(value = "message") + @JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY) private String message; + /* + * The error target. + */ + @JsonProperty(value = "target", access = JsonProperty.Access.WRITE_ONLY) + private String target; + + /* + * The error details. + */ + @JsonProperty(value = "details", access = JsonProperty.Access.WRITE_ONLY) + private List details; + + /* + * The error additional info. + */ + @JsonProperty(value = "additionalInfo", access = JsonProperty.Access.WRITE_ONLY) + private List additionalInfo; + /** * Creates an instance of ErrorResponse class. */ @@ -31,7 +53,7 @@ public ErrorResponse() { } /** - * Get the code property: Error code. + * Get the code property: The error code. * * @return the code value. */ @@ -40,33 +62,38 @@ public String getCode() { } /** - * Set the code property: Error code. + * Get the message property: The error message. + * + * @return the message value. + */ + public String getMessage() { + return this.message; + } + + /** + * Get the target property: The error target. * - * @param code the code value to set. - * @return the ErrorResponse object itself. + * @return the target value. */ - public ErrorResponse setCode(String code) { - this.code = code; - return this; + public String getTarget() { + return this.target; } /** - * Get the message property: Error message indicating why the operation failed. + * Get the details property: The error details. * - * @return the message value. + * @return the details value. */ - public String getMessage() { - return this.message; + public List getDetails() { + return this.details; } /** - * Set the message property: Error message indicating why the operation failed. + * Get the additionalInfo property: The error additional info. * - * @param message the message value to set. - * @return the ErrorResponse object itself. + * @return the additionalInfo value. */ - public ErrorResponse setMessage(String message) { - this.message = message; - return this; + public List getAdditionalInfo() { + return this.additionalInfo; } } diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/models/Metric.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/models/Metric.java index 7ca4b12d5d85..464bd837e163 100644 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/models/Metric.java +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/models/Metric.java @@ -15,19 +15,19 @@ @Fluent public final class Metric { /* - * the metric Id. + * The metric Id. */ @JsonProperty(value = "id", required = true) private String id; /* - * the resource type of the metric resource. + * The resource type of the metric resource. */ @JsonProperty(value = "type", required = true) private String type; /* - * the name and the display name of the metric, i.e. it is localizable string. + * The name and the display name of the metric, i.e. it is localizable string. */ @JsonProperty(value = "name", required = true) private LocalizableString name; @@ -57,7 +57,7 @@ public final class Metric { private MetricUnit unit; /* - * the time series returned when a data query is performed. + * The time series returned when a data query is performed. */ @JsonProperty(value = "timeseries", required = true) private List timeseries; @@ -85,7 +85,7 @@ public Metric(@JsonProperty(value = "id", required = true) String id, } /** - * Get the id property: the metric Id. + * Get the id property: The metric Id. * * @return the id value. */ @@ -94,7 +94,7 @@ public String getId() { } /** - * Get the type property: the resource type of the metric resource. + * Get the type property: The resource type of the metric resource. * * @return the type value. */ @@ -103,7 +103,7 @@ public String getType() { } /** - * Get the name property: the name and the display name of the metric, i.e. it is localizable string. + * Get the name property: The name and the display name of the metric, i.e. it is localizable string. * * @return the name value. */ @@ -181,7 +181,7 @@ public MetricUnit getUnit() { } /** - * Get the timeseries property: the time series returned when a data query is performed. + * Get the timeseries property: The time series returned when a data query is performed. * * @return the timeseries value. */ diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/models/MetricResultType.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/models/MetricResultType.java new file mode 100644 index 000000000000..019de10230d2 --- /dev/null +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/models/MetricResultType.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.monitor.query.implementation.metrics.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** + * Reduces the set of data collected. The syntax allowed depends on the operation. See the operation's description for + * details. + */ +public final class MetricResultType extends ExpandableStringEnum { + /** + * Static value Data for MetricResultType. + */ + public static final MetricResultType DATA = fromString("Data"); + + /** + * Static value Metadata for MetricResultType. + */ + public static final MetricResultType METADATA = fromString("Metadata"); + + /** + * Creates a new instance of MetricResultType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public MetricResultType() { + } + + /** + * Creates or finds a MetricResultType from its string representation. + * + * @param name a name to look for. + * @return the corresponding MetricResultType. + */ + @JsonCreator + public static MetricResultType fromString(String name) { + return fromString(name, MetricResultType.class); + } + + /** + * Gets known MetricResultType values. + * + * @return known MetricResultType values. + */ + public static Collection values() { + return values(MetricResultType.class); + } +} diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/models/MetricUnit.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/models/MetricUnit.java index 49c07ffd2573..f123c2a08e8d 100644 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/models/MetricUnit.java +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/models/MetricUnit.java @@ -13,67 +13,68 @@ */ public final class MetricUnit extends ExpandableStringEnum { /** - * Static value Count for MetricUnit. + * Unit of raw quantity. */ public static final MetricUnit COUNT = fromString("Count"); /** - * Static value Bytes for MetricUnit. + * Unit of memory in bytes. */ public static final MetricUnit BYTES = fromString("Bytes"); /** - * Static value Seconds for MetricUnit. + * Unit of time in seconds. */ public static final MetricUnit SECONDS = fromString("Seconds"); /** - * Static value CountPerSecond for MetricUnit. + * Rate unit of raw quantity per second. */ public static final MetricUnit COUNT_PER_SECOND = fromString("CountPerSecond"); /** - * Static value BytesPerSecond for MetricUnit. + * Rate unit of memory in bytes per second. */ public static final MetricUnit BYTES_PER_SECOND = fromString("BytesPerSecond"); /** - * Static value Percent for MetricUnit. + * Percentage unit. */ public static final MetricUnit PERCENT = fromString("Percent"); /** - * Static value MilliSeconds for MetricUnit. + * Unit of time in 1/1000th of a second. */ public static final MetricUnit MILLI_SECONDS = fromString("MilliSeconds"); /** - * Static value ByteSeconds for MetricUnit. + * Unit of data transfer or storage. It is the size of the data in bytes multiplied by the time it takes to transfer + * or store the data in seconds. */ public static final MetricUnit BYTE_SECONDS = fromString("ByteSeconds"); /** - * Static value Unspecified for MetricUnit. + * No specified unit. */ public static final MetricUnit UNSPECIFIED = fromString("Unspecified"); /** - * Static value Cores for MetricUnit. + * Unit of processing power. */ public static final MetricUnit CORES = fromString("Cores"); /** - * Static value MilliCores for MetricUnit. + * Unit of processing power in 1/1000th of a CPU core. */ public static final MetricUnit MILLI_CORES = fromString("MilliCores"); /** - * Static value NanoCores for MetricUnit. + * Unit of processing power in one billionth of a CPU core. */ public static final MetricUnit NANO_CORES = fromString("NanoCores"); /** - * Static value BitsPerSecond for MetricUnit. + * Rate unit of binary digits per second. */ public static final MetricUnit BITS_PER_SECOND = fromString("BitsPerSecond"); diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/models/MetricsHelper.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/models/MetricsHelper.java index a9557225cd07..2e15ceb101e9 100644 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/models/MetricsHelper.java +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/models/MetricsHelper.java @@ -217,7 +217,7 @@ public static MetricsQueryResult mapToMetricsQueryResult(MetricResultsResponseVa .collect(Collectors.toList()); MetricsQueryResult metricsQueryResult = new MetricsQueryResult(/* TODO (srnagar): fix this item.getCost() */ null, - new QueryTimeInterval(item.getInterval()), item.getInterval(), item.getNamespace(), item.getResourceregion(), metrics); + QueryTimeInterval.parse(item.getStarttime() + "/" + item.getEndtime()), Duration.parse(item.getInterval()), item.getNamespace(), item.getResourceregion(), metrics); return metricsQueryResult; } diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/models/MetricsResponse.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/models/MetricsResponse.java index a4a0bbc2de46..0b7676027c98 100644 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/models/MetricsResponse.java +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/models/MetricsResponse.java @@ -51,7 +51,7 @@ public final class MetricsResponse { private String resourceregion; /* - * the value of the collection. + * The value of the collection. */ @JsonProperty(value = "value", required = true) private List value; @@ -169,7 +169,7 @@ public MetricsResponse setResourceregion(String resourceregion) { } /** - * Get the value property: the value of the collection. + * Get the value property: The value of the collection. * * @return the value value. */ diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/models/SubscriptionScopeMetricsRequestBodyParameters.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/models/SubscriptionScopeMetricsRequestBodyParameters.java new file mode 100644 index 000000000000..36163baa1e91 --- /dev/null +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/models/SubscriptionScopeMetricsRequestBodyParameters.java @@ -0,0 +1,388 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.monitor.query.implementation.metrics.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Query parameters can also be specified in the body, specifying the same parameter in both the body and query + * parameters will result in an error. + */ +@Fluent +public final class SubscriptionScopeMetricsRequestBodyParameters { + /* + * The timespan of the query. It is a string with the following format 'startDateTime_ISO/endDateTime_ISO'. + */ + @JsonProperty(value = "timespan") + private String timespan; + + /* + * The interval (i.e. timegrain) of the query in ISO 8601 duration format. Defaults to PT1M. Special case for + * 'FULL' value that returns single datapoint for entire time span requested. + * *Examples: PT15M, PT1H, P1D, FULL* + */ + @JsonProperty(value = "interval") + private String interval; + + /* + * The names of the metrics (comma separated) to retrieve. + */ + @JsonProperty(value = "metricNames") + private String metricNames; + + /* + * The list of aggregation types (comma separated) to retrieve. + */ + @JsonProperty(value = "aggregation") + private String aggregation; + + /* + * The **$filter** is used to reduce the set of metric data returned.
Example:
Metric contains metadata A, B + * and C.
- Return all time series of C where A = a1 and B = b1 or b2
**$filter=A eq ‘a1’ and B eq ‘b1’ or B + * eq ‘b2’ and C eq ‘*’**
- Invalid variant:
**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘*’ or B = + * ‘b2’**
This is invalid because the logical or operator cannot separate two different metadata names.
- + * Return all time series where A = a1, B = b1 and C = c1:
**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq + * ‘c1’**
- Return all time series where A = a1
**$filter=A eq ‘a1’ and B eq ‘*’ and C eq ‘*’**. + */ + @JsonProperty(value = "filter") + private String filter; + + /* + * The maximum number of records to retrieve. + * Valid only if $filter is specified. + * Defaults to 10. + */ + @JsonProperty(value = "top") + private Integer top; + + /* + * The aggregation to use for sorting results and the direction of the sort. + * Only one order can be specified. + * Examples: sum asc. + */ + @JsonProperty(value = "orderBy") + private String orderBy; + + /* + * Dimension name(s) to rollup results by. For example if you only want to see metric values with a filter like + * 'City eq Seattle or City eq Tacoma' but don't want to see separate values for each city, you can specify + * 'RollUpBy=City' to see the results for Seattle and Tacoma rolled up into one timeseries. + */ + @JsonProperty(value = "rollUpBy") + private String rollUpBy; + + /* + * Reduces the set of data collected. The syntax allowed depends on the operation. See the operation's description + * for details. + */ + @JsonProperty(value = "resultType") + private MetricResultType resultType; + + /* + * Metric namespace where the metrics you want reside. + */ + @JsonProperty(value = "metricNamespace") + private String metricNamespace; + + /* + * When set to true, if the timespan passed in is not supported by this metric, the API will return the result + * using the closest supported timespan. When set to false, an error is returned for invalid timespan parameters. + * Defaults to false. + */ + @JsonProperty(value = "autoAdjustTimegrain") + private Boolean autoAdjustTimegrain; + + /* + * When set to false, invalid filter parameter values will be ignored. When set to true, an error is returned for + * invalid filter parameters. Defaults to true. + */ + @JsonProperty(value = "validateDimensions") + private Boolean validateDimensions; + + /** + * Creates an instance of SubscriptionScopeMetricsRequestBodyParameters class. + */ + public SubscriptionScopeMetricsRequestBodyParameters() { + } + + /** + * Get the timespan property: The timespan of the query. It is a string with the following format + * 'startDateTime_ISO/endDateTime_ISO'. + * + * @return the timespan value. + */ + public String getTimespan() { + return this.timespan; + } + + /** + * Set the timespan property: The timespan of the query. It is a string with the following format + * 'startDateTime_ISO/endDateTime_ISO'. + * + * @param timespan the timespan value to set. + * @return the SubscriptionScopeMetricsRequestBodyParameters object itself. + */ + public SubscriptionScopeMetricsRequestBodyParameters setTimespan(String timespan) { + this.timespan = timespan; + return this; + } + + /** + * Get the interval property: The interval (i.e. timegrain) of the query in ISO 8601 duration format. Defaults to + * PT1M. Special case for 'FULL' value that returns single datapoint for entire time span requested. + * *Examples: PT15M, PT1H, P1D, FULL*. + * + * @return the interval value. + */ + public String getInterval() { + return this.interval; + } + + /** + * Set the interval property: The interval (i.e. timegrain) of the query in ISO 8601 duration format. Defaults to + * PT1M. Special case for 'FULL' value that returns single datapoint for entire time span requested. + * *Examples: PT15M, PT1H, P1D, FULL*. + * + * @param interval the interval value to set. + * @return the SubscriptionScopeMetricsRequestBodyParameters object itself. + */ + public SubscriptionScopeMetricsRequestBodyParameters setInterval(String interval) { + this.interval = interval; + return this; + } + + /** + * Get the metricNames property: The names of the metrics (comma separated) to retrieve. + * + * @return the metricNames value. + */ + public String getMetricNames() { + return this.metricNames; + } + + /** + * Set the metricNames property: The names of the metrics (comma separated) to retrieve. + * + * @param metricNames the metricNames value to set. + * @return the SubscriptionScopeMetricsRequestBodyParameters object itself. + */ + public SubscriptionScopeMetricsRequestBodyParameters setMetricNames(String metricNames) { + this.metricNames = metricNames; + return this; + } + + /** + * Get the aggregation property: The list of aggregation types (comma separated) to retrieve. + * + * @return the aggregation value. + */ + public String getAggregation() { + return this.aggregation; + } + + /** + * Set the aggregation property: The list of aggregation types (comma separated) to retrieve. + * + * @param aggregation the aggregation value to set. + * @return the SubscriptionScopeMetricsRequestBodyParameters object itself. + */ + public SubscriptionScopeMetricsRequestBodyParameters setAggregation(String aggregation) { + this.aggregation = aggregation; + return this; + } + + /** + * Get the filter property: The **$filter** is used to reduce the set of metric data + * returned.<br>Example:<br>Metric contains metadata A, B and C.<br>- Return all time series of C + * where A = a1 and B = b1 or b2<br>**$filter=A eq ‘a1’ and B eq ‘b1’ or B eq ‘b2’ and C eq ‘*’**<br>- + * Invalid variant:<br>**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘*’ or B = ‘b2’**<br>This is invalid + * because the logical or operator cannot separate two different metadata names.<br>- Return all time series + * where A = a1, B = b1 and C = c1:<br>**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘c1’**<br>- Return + * all time series where A = a1<br>**$filter=A eq ‘a1’ and B eq ‘*’ and C eq ‘*’**. + * + * @return the filter value. + */ + public String getFilter() { + return this.filter; + } + + /** + * Set the filter property: The **$filter** is used to reduce the set of metric data + * returned.<br>Example:<br>Metric contains metadata A, B and C.<br>- Return all time series of C + * where A = a1 and B = b1 or b2<br>**$filter=A eq ‘a1’ and B eq ‘b1’ or B eq ‘b2’ and C eq ‘*’**<br>- + * Invalid variant:<br>**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘*’ or B = ‘b2’**<br>This is invalid + * because the logical or operator cannot separate two different metadata names.<br>- Return all time series + * where A = a1, B = b1 and C = c1:<br>**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘c1’**<br>- Return + * all time series where A = a1<br>**$filter=A eq ‘a1’ and B eq ‘*’ and C eq ‘*’**. + * + * @param filter the filter value to set. + * @return the SubscriptionScopeMetricsRequestBodyParameters object itself. + */ + public SubscriptionScopeMetricsRequestBodyParameters setFilter(String filter) { + this.filter = filter; + return this; + } + + /** + * Get the top property: The maximum number of records to retrieve. + * Valid only if $filter is specified. + * Defaults to 10. + * + * @return the top value. + */ + public Integer getTop() { + return this.top; + } + + /** + * Set the top property: The maximum number of records to retrieve. + * Valid only if $filter is specified. + * Defaults to 10. + * + * @param top the top value to set. + * @return the SubscriptionScopeMetricsRequestBodyParameters object itself. + */ + public SubscriptionScopeMetricsRequestBodyParameters setTop(Integer top) { + this.top = top; + return this; + } + + /** + * Get the orderBy property: The aggregation to use for sorting results and the direction of the sort. + * Only one order can be specified. + * Examples: sum asc. + * + * @return the orderBy value. + */ + public String getOrderBy() { + return this.orderBy; + } + + /** + * Set the orderBy property: The aggregation to use for sorting results and the direction of the sort. + * Only one order can be specified. + * Examples: sum asc. + * + * @param orderBy the orderBy value to set. + * @return the SubscriptionScopeMetricsRequestBodyParameters object itself. + */ + public SubscriptionScopeMetricsRequestBodyParameters setOrderBy(String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Get the rollUpBy property: Dimension name(s) to rollup results by. For example if you only want to see metric + * values with a filter like 'City eq Seattle or City eq Tacoma' but don't want to see separate values for each + * city, you can specify 'RollUpBy=City' to see the results for Seattle and Tacoma rolled up into one timeseries. + * + * @return the rollUpBy value. + */ + public String getRollUpBy() { + return this.rollUpBy; + } + + /** + * Set the rollUpBy property: Dimension name(s) to rollup results by. For example if you only want to see metric + * values with a filter like 'City eq Seattle or City eq Tacoma' but don't want to see separate values for each + * city, you can specify 'RollUpBy=City' to see the results for Seattle and Tacoma rolled up into one timeseries. + * + * @param rollUpBy the rollUpBy value to set. + * @return the SubscriptionScopeMetricsRequestBodyParameters object itself. + */ + public SubscriptionScopeMetricsRequestBodyParameters setRollUpBy(String rollUpBy) { + this.rollUpBy = rollUpBy; + return this; + } + + /** + * Get the resultType property: Reduces the set of data collected. The syntax allowed depends on the operation. See + * the operation's description for details. + * + * @return the resultType value. + */ + public MetricResultType getResultType() { + return this.resultType; + } + + /** + * Set the resultType property: Reduces the set of data collected. The syntax allowed depends on the operation. See + * the operation's description for details. + * + * @param resultType the resultType value to set. + * @return the SubscriptionScopeMetricsRequestBodyParameters object itself. + */ + public SubscriptionScopeMetricsRequestBodyParameters setResultType(MetricResultType resultType) { + this.resultType = resultType; + return this; + } + + /** + * Get the metricNamespace property: Metric namespace where the metrics you want reside. + * + * @return the metricNamespace value. + */ + public String getMetricNamespace() { + return this.metricNamespace; + } + + /** + * Set the metricNamespace property: Metric namespace where the metrics you want reside. + * + * @param metricNamespace the metricNamespace value to set. + * @return the SubscriptionScopeMetricsRequestBodyParameters object itself. + */ + public SubscriptionScopeMetricsRequestBodyParameters setMetricNamespace(String metricNamespace) { + this.metricNamespace = metricNamespace; + return this; + } + + /** + * Get the autoAdjustTimegrain property: When set to true, if the timespan passed in is not supported by this + * metric, the API will return the result using the closest supported timespan. When set to false, an error is + * returned for invalid timespan parameters. Defaults to false. + * + * @return the autoAdjustTimegrain value. + */ + public Boolean isAutoAdjustTimegrain() { + return this.autoAdjustTimegrain; + } + + /** + * Set the autoAdjustTimegrain property: When set to true, if the timespan passed in is not supported by this + * metric, the API will return the result using the closest supported timespan. When set to false, an error is + * returned for invalid timespan parameters. Defaults to false. + * + * @param autoAdjustTimegrain the autoAdjustTimegrain value to set. + * @return the SubscriptionScopeMetricsRequestBodyParameters object itself. + */ + public SubscriptionScopeMetricsRequestBodyParameters setAutoAdjustTimegrain(Boolean autoAdjustTimegrain) { + this.autoAdjustTimegrain = autoAdjustTimegrain; + return this; + } + + /** + * Get the validateDimensions property: When set to false, invalid filter parameter values will be ignored. When + * set to true, an error is returned for invalid filter parameters. Defaults to true. + * + * @return the validateDimensions value. + */ + public Boolean isValidateDimensions() { + return this.validateDimensions; + } + + /** + * Set the validateDimensions property: When set to false, invalid filter parameter values will be ignored. When + * set to true, an error is returned for invalid filter parameters. Defaults to true. + * + * @param validateDimensions the validateDimensions value to set. + * @return the SubscriptionScopeMetricsRequestBodyParameters object itself. + */ + public SubscriptionScopeMetricsRequestBodyParameters setValidateDimensions(Boolean validateDimensions) { + this.validateDimensions = validateDimensions; + return this; + } +} diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/models/TimeSeriesElement.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/models/TimeSeriesElement.java index 7be6be29a237..5fdfb128fca7 100644 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/models/TimeSeriesElement.java +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/models/TimeSeriesElement.java @@ -14,7 +14,7 @@ @Fluent public final class TimeSeriesElement { /* - * the metadata values returned if $filter was specified in the call. + * The metadata values returned if $filter was specified in the call. */ @JsonProperty(value = "metadatavalues") private List metadatavalues; @@ -33,7 +33,7 @@ public TimeSeriesElement() { } /** - * Get the metadatavalues property: the metadata values returned if $filter was specified in the call. + * Get the metadatavalues property: The metadata values returned if $filter was specified in the call. * * @return the metadatavalues value. */ @@ -42,7 +42,7 @@ public List getMetadatavalues() { } /** - * Set the metadatavalues property: the metadata values returned if $filter was specified in the call. + * Set the metadatavalues property: The metadata values returned if $filter was specified in the call. * * @param metadatavalues the metadatavalues value to set. * @return the TimeSeriesElement object itself. diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/models/package-info.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/models/package-info.java index e918845ebbc2..b1b97e76a4fb 100644 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/models/package-info.java +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/models/package-info.java @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. /** - * Package containing the data models for MonitorManagementClient. - * null. + * Package containing the data models for AzureMonitorMetricsDataAPI. + * Provides APIs for getting the metric data for Azure resources. */ package com.azure.monitor.query.implementation.metrics.models; diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/package-info.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/package-info.java index 8b18437ec6ab..5699ec985b35 100644 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/package-info.java +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metrics/package-info.java @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. /** - * Package containing the classes for MonitorManagementClient. - * null. + * Package containing the classes for AzureMonitorMetricsDataAPI. + * Provides APIs for getting the metric data for Azure resources. */ package com.azure.monitor.query.implementation.metrics; diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsbatch/AzureMonitorMetricBatchBuilder.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsbatch/AzureMonitorMetricBatchBuilder.java index 95beda1631fa..2527c2754905 100644 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsbatch/AzureMonitorMetricBatchBuilder.java +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsbatch/AzureMonitorMetricBatchBuilder.java @@ -214,7 +214,7 @@ public AzureMonitorMetricBatchBuilder endpoint(String endpoint) { /** * Sets Api Version. - * + * * @param apiVersion the apiVersion value. * @return the AzureMonitorMetricBatchBuilder. */ @@ -232,7 +232,7 @@ public AzureMonitorMetricBatchBuilder apiVersion(String apiVersion) { /** * Sets The serializer to serialize an object into a string. - * + * * @param serializerAdapter the serializerAdapter value. * @return the AzureMonitorMetricBatchBuilder. */ @@ -250,7 +250,7 @@ public AzureMonitorMetricBatchBuilder serializerAdapter(SerializerAdapter serial /** * Sets The retry policy that will attempt to retry failed requests, if applicable. - * + * * @param retryPolicy the retryPolicy value. * @return the AzureMonitorMetricBatchBuilder. */ @@ -262,13 +262,13 @@ public AzureMonitorMetricBatchBuilder retryPolicy(RetryPolicy retryPolicy) { /** * Builds an instance of AzureMonitorMetricBatch with the provided parameters. - * + * * @return an instance of AzureMonitorMetricBatch. */ @Generated public AzureMonitorMetricBatch buildClient() { HttpPipeline localPipeline = (pipeline != null) ? pipeline : createHttpPipeline(); - String localApiVersion = (apiVersion != null) ? apiVersion : "2023-05-01-preview"; + String localApiVersion = (apiVersion != null) ? apiVersion : "2024-02-01"; SerializerAdapter localSerializerAdapter = (serializerAdapter != null) ? serializerAdapter : JacksonAdapter.createDefaultSerializerAdapter(); AzureMonitorMetricBatch client @@ -306,7 +306,7 @@ private HttpPipeline createHttpPipeline() { this.pipelinePolicies.stream().filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY) .forEach(p -> policies.add(p)); HttpPolicyProviders.addAfterRetryPolicies(policies); - policies.add(new HttpLoggingPolicy(httpLogOptions)); + policies.add(new HttpLoggingPolicy(localHttpLogOptions)); HttpPipeline httpPipeline = new HttpPipelineBuilder().policies(policies.toArray(new HttpPipelinePolicy[0])) .httpClient(httpClient).clientOptions(localClientOptions).build(); return httpPipeline; diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsbatch/MetricsBatches.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsbatch/MetricsBatches.java index 29ae890175a0..b4f4b1768075 100644 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsbatch/MetricsBatches.java +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsbatch/MetricsBatches.java @@ -20,7 +20,7 @@ import com.azure.core.http.rest.RestProxy; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.monitor.query.implementation.metricsbatch.models.AdditionalInfoErrorResponseException; +import com.azure.monitor.query.implementation.metricsbatch.models.ErrorResponseException; import com.azure.monitor.query.implementation.metricsbatch.models.MetricResultsResponse; import com.azure.monitor.query.implementation.metricsbatch.models.ResourceIdList; import java.time.Duration; @@ -63,27 +63,29 @@ public final class MetricsBatches { public interface MetricsBatchesService { @Post("/subscriptions/{subscriptionId}/metrics:getBatch") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(AdditionalInfoErrorResponseException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Mono> batch(@HostParam("endpoint") String endpoint, @PathParam("subscriptionId") String subscriptionId, @QueryParam("starttime") String starttime, @QueryParam("endtime") String endtime, @QueryParam("interval") Duration interval, @QueryParam("metricnamespace") String metricnamespace, @QueryParam("metricnames") String metricnames, @QueryParam("aggregation") String aggregation, @QueryParam("top") Integer top, @QueryParam("orderby") String orderBy, @QueryParam("filter") String filter, - @QueryParam("api-version") String apiVersion, @BodyParam("application/json") ResourceIdList resourceIds, - @HeaderParam("Accept") String accept, Context context); + @QueryParam("rollupby") String rollupby, @QueryParam("api-version") String apiVersion, + @BodyParam("application/json") ResourceIdList batchRequest, @HeaderParam("Accept") String accept, + Context context); @Post("/subscriptions/{subscriptionId}/metrics:getBatch") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(AdditionalInfoErrorResponseException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Response batchSync(@HostParam("endpoint") String endpoint, @PathParam("subscriptionId") String subscriptionId, @QueryParam("starttime") String starttime, @QueryParam("endtime") String endtime, @QueryParam("interval") Duration interval, @QueryParam("metricnamespace") String metricnamespace, @QueryParam("metricnames") String metricnames, @QueryParam("aggregation") String aggregation, @QueryParam("top") Integer top, @QueryParam("orderby") String orderBy, @QueryParam("filter") String filter, - @QueryParam("api-version") String apiVersion, @BodyParam("application/json") ResourceIdList resourceIds, - @HeaderParam("Accept") String accept, Context context); + @QueryParam("rollupby") String rollupby, @QueryParam("api-version") String apiVersion, + @BodyParam("application/json") ResourceIdList batchRequest, @HeaderParam("Accept") String accept, + Context context); } /** @@ -92,14 +94,15 @@ Response batchSync(@HostParam("endpoint") String endpoint * @param subscriptionId The subscription identifier for the resources in this batch. * @param metricnamespace Metric namespace that contains the requested metric names. * @param metricnames The names of the metrics (comma separated) to retrieve. - * @param resourceIds The comma separated list of resource IDs to query metrics for. + * @param batchRequest Metrics batch body including the list of resource ids. * @param starttime The start time of the query. It is a string in the format 'yyyy-MM-ddTHH:mm:ss.fffZ'. If you * have specified the endtime parameter, then this parameter is required. * If only starttime is specified, then endtime defaults to the current time. * If no time interval is specified, the default is 1 hour. * @param endtime The end time of the query. It is a string in the format 'yyyy-MM-ddTHH:mm:ss.fffZ'. - * @param interval The interval (i.e. timegrain) of the query. - * *Examples: PT15M, PT1H, P1D*. + * @param interval The interval (i.e. timegrain) of the query in ISO 8601 duration format. Defaults to PT1M. Special + * case for 'FULL' value that returns single datapoint for entire time span requested. + * *Examples: PT15M, PT1H, P1D, FULL*. * @param aggregation The list of aggregation types (comma separated) to retrieve. * *Examples: average, minimum, maximum*. * @param top The maximum number of records to retrieve per resource ID in the request. @@ -115,21 +118,24 @@ Response batchSync(@HostParam("endpoint") String endpoint * the logical or operator cannot separate two different metadata names.<br>- Return all time series where A = * a1, B = b1 and C = c1:<br>**filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘c1’**<br>- Return all time * series where A = a1<br>**filter=A eq ‘a1’ and B eq ‘*’ and C eq ‘*’**. + * @param rollupby Dimension name(s) to rollup results by. For example if you only want to see metric values with a + * filter like 'City eq Seattle or City eq Tacoma' but don't want to see separate values for each city, you can + * specify 'RollUpBy=City' to see the results for Seattle and Tacoma rolled up into one timeseries. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws AdditionalInfoErrorResponseException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the metrics result for a resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> batchWithResponseAsync(String subscriptionId, String metricnamespace, - List metricnames, ResourceIdList resourceIds, String starttime, String endtime, Duration interval, - String aggregation, Integer top, String orderBy, String filter) { + List metricnames, ResourceIdList batchRequest, String starttime, String endtime, Duration interval, + String aggregation, Integer top, String orderBy, String filter, String rollupby) { final String accept = "application/json"; String metricnamesConverted = metricnames.stream().map(paramItemValue -> Objects.toString(paramItemValue, "")) .collect(Collectors.joining(",")); return FluxUtil.withContext(context -> service.batch(this.client.getEndpoint(), subscriptionId, starttime, - endtime, interval, metricnamespace, metricnamesConverted, aggregation, top, orderBy, filter, - this.client.getApiVersion(), resourceIds, accept, context)); + endtime, interval, metricnamespace, metricnamesConverted, aggregation, top, orderBy, filter, rollupby, + this.client.getApiVersion(), batchRequest, accept, context)); } /** @@ -138,14 +144,15 @@ public Mono> batchWithResponseAsync(String subsc * @param subscriptionId The subscription identifier for the resources in this batch. * @param metricnamespace Metric namespace that contains the requested metric names. * @param metricnames The names of the metrics (comma separated) to retrieve. - * @param resourceIds The comma separated list of resource IDs to query metrics for. + * @param batchRequest Metrics batch body including the list of resource ids. * @param starttime The start time of the query. It is a string in the format 'yyyy-MM-ddTHH:mm:ss.fffZ'. If you * have specified the endtime parameter, then this parameter is required. * If only starttime is specified, then endtime defaults to the current time. * If no time interval is specified, the default is 1 hour. * @param endtime The end time of the query. It is a string in the format 'yyyy-MM-ddTHH:mm:ss.fffZ'. - * @param interval The interval (i.e. timegrain) of the query. - * *Examples: PT15M, PT1H, P1D*. + * @param interval The interval (i.e. timegrain) of the query in ISO 8601 duration format. Defaults to PT1M. Special + * case for 'FULL' value that returns single datapoint for entire time span requested. + * *Examples: PT15M, PT1H, P1D, FULL*. * @param aggregation The list of aggregation types (comma separated) to retrieve. * *Examples: average, minimum, maximum*. * @param top The maximum number of records to retrieve per resource ID in the request. @@ -161,22 +168,25 @@ public Mono> batchWithResponseAsync(String subsc * the logical or operator cannot separate two different metadata names.<br>- Return all time series where A = * a1, B = b1 and C = c1:<br>**filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘c1’**<br>- Return all time * series where A = a1<br>**filter=A eq ‘a1’ and B eq ‘*’ and C eq ‘*’**. + * @param rollupby Dimension name(s) to rollup results by. For example if you only want to see metric values with a + * filter like 'City eq Seattle or City eq Tacoma' but don't want to see separate values for each city, you can + * specify 'RollUpBy=City' to see the results for Seattle and Tacoma rolled up into one timeseries. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws AdditionalInfoErrorResponseException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the metrics result for a resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> batchWithResponseAsync(String subscriptionId, String metricnamespace, - List metricnames, ResourceIdList resourceIds, String starttime, String endtime, Duration interval, - String aggregation, Integer top, String orderBy, String filter, Context context) { + List metricnames, ResourceIdList batchRequest, String starttime, String endtime, Duration interval, + String aggregation, Integer top, String orderBy, String filter, String rollupby, Context context) { final String accept = "application/json"; String metricnamesConverted = metricnames.stream().map(paramItemValue -> Objects.toString(paramItemValue, "")) .collect(Collectors.joining(",")); return service.batch(this.client.getEndpoint(), subscriptionId, starttime, endtime, interval, metricnamespace, - metricnamesConverted, aggregation, top, orderBy, filter, this.client.getApiVersion(), resourceIds, accept, - context); + metricnamesConverted, aggregation, top, orderBy, filter, rollupby, this.client.getApiVersion(), + batchRequest, accept, context); } /** @@ -185,14 +195,15 @@ public Mono> batchWithResponseAsync(String subsc * @param subscriptionId The subscription identifier for the resources in this batch. * @param metricnamespace Metric namespace that contains the requested metric names. * @param metricnames The names of the metrics (comma separated) to retrieve. - * @param resourceIds The comma separated list of resource IDs to query metrics for. + * @param batchRequest Metrics batch body including the list of resource ids. * @param starttime The start time of the query. It is a string in the format 'yyyy-MM-ddTHH:mm:ss.fffZ'. If you * have specified the endtime parameter, then this parameter is required. * If only starttime is specified, then endtime defaults to the current time. * If no time interval is specified, the default is 1 hour. * @param endtime The end time of the query. It is a string in the format 'yyyy-MM-ddTHH:mm:ss.fffZ'. - * @param interval The interval (i.e. timegrain) of the query. - * *Examples: PT15M, PT1H, P1D*. + * @param interval The interval (i.e. timegrain) of the query in ISO 8601 duration format. Defaults to PT1M. Special + * case for 'FULL' value that returns single datapoint for entire time span requested. + * *Examples: PT15M, PT1H, P1D, FULL*. * @param aggregation The list of aggregation types (comma separated) to retrieve. * *Examples: average, minimum, maximum*. * @param top The maximum number of records to retrieve per resource ID in the request. @@ -208,17 +219,20 @@ public Mono> batchWithResponseAsync(String subsc * the logical or operator cannot separate two different metadata names.<br>- Return all time series where A = * a1, B = b1 and C = c1:<br>**filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘c1’**<br>- Return all time * series where A = a1<br>**filter=A eq ‘a1’ and B eq ‘*’ and C eq ‘*’**. + * @param rollupby Dimension name(s) to rollup results by. For example if you only want to see metric values with a + * filter like 'City eq Seattle or City eq Tacoma' but don't want to see separate values for each city, you can + * specify 'RollUpBy=City' to see the results for Seattle and Tacoma rolled up into one timeseries. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws AdditionalInfoErrorResponseException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the metrics result for a resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono batchAsync(String subscriptionId, String metricnamespace, - List metricnames, ResourceIdList resourceIds, String starttime, String endtime, Duration interval, - String aggregation, Integer top, String orderBy, String filter) { - return batchWithResponseAsync(subscriptionId, metricnamespace, metricnames, resourceIds, starttime, endtime, - interval, aggregation, top, orderBy, filter).flatMap(res -> Mono.justOrEmpty(res.getValue())); + List metricnames, ResourceIdList batchRequest, String starttime, String endtime, Duration interval, + String aggregation, Integer top, String orderBy, String filter, String rollupby) { + return batchWithResponseAsync(subscriptionId, metricnamespace, metricnames, batchRequest, starttime, endtime, + interval, aggregation, top, orderBy, filter, rollupby).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -227,14 +241,15 @@ public Mono batchAsync(String subscriptionId, String metr * @param subscriptionId The subscription identifier for the resources in this batch. * @param metricnamespace Metric namespace that contains the requested metric names. * @param metricnames The names of the metrics (comma separated) to retrieve. - * @param resourceIds The comma separated list of resource IDs to query metrics for. + * @param batchRequest Metrics batch body including the list of resource ids. * @param starttime The start time of the query. It is a string in the format 'yyyy-MM-ddTHH:mm:ss.fffZ'. If you * have specified the endtime parameter, then this parameter is required. * If only starttime is specified, then endtime defaults to the current time. * If no time interval is specified, the default is 1 hour. * @param endtime The end time of the query. It is a string in the format 'yyyy-MM-ddTHH:mm:ss.fffZ'. - * @param interval The interval (i.e. timegrain) of the query. - * *Examples: PT15M, PT1H, P1D*. + * @param interval The interval (i.e. timegrain) of the query in ISO 8601 duration format. Defaults to PT1M. Special + * case for 'FULL' value that returns single datapoint for entire time span requested. + * *Examples: PT15M, PT1H, P1D, FULL*. * @param aggregation The list of aggregation types (comma separated) to retrieve. * *Examples: average, minimum, maximum*. * @param top The maximum number of records to retrieve per resource ID in the request. @@ -250,18 +265,22 @@ public Mono batchAsync(String subscriptionId, String metr * the logical or operator cannot separate two different metadata names.<br>- Return all time series where A = * a1, B = b1 and C = c1:<br>**filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘c1’**<br>- Return all time * series where A = a1<br>**filter=A eq ‘a1’ and B eq ‘*’ and C eq ‘*’**. + * @param rollupby Dimension name(s) to rollup results by. For example if you only want to see metric values with a + * filter like 'City eq Seattle or City eq Tacoma' but don't want to see separate values for each city, you can + * specify 'RollUpBy=City' to see the results for Seattle and Tacoma rolled up into one timeseries. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws AdditionalInfoErrorResponseException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the metrics result for a resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono batchAsync(String subscriptionId, String metricnamespace, - List metricnames, ResourceIdList resourceIds, String starttime, String endtime, Duration interval, - String aggregation, Integer top, String orderBy, String filter, Context context) { - return batchWithResponseAsync(subscriptionId, metricnamespace, metricnames, resourceIds, starttime, endtime, - interval, aggregation, top, orderBy, filter, context).flatMap(res -> Mono.justOrEmpty(res.getValue())); + List metricnames, ResourceIdList batchRequest, String starttime, String endtime, Duration interval, + String aggregation, Integer top, String orderBy, String filter, String rollupby, Context context) { + return batchWithResponseAsync(subscriptionId, metricnamespace, metricnames, batchRequest, starttime, endtime, + interval, aggregation, top, orderBy, filter, rollupby, context) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -270,14 +289,15 @@ public Mono batchAsync(String subscriptionId, String metr * @param subscriptionId The subscription identifier for the resources in this batch. * @param metricnamespace Metric namespace that contains the requested metric names. * @param metricnames The names of the metrics (comma separated) to retrieve. - * @param resourceIds The comma separated list of resource IDs to query metrics for. + * @param batchRequest Metrics batch body including the list of resource ids. * @param starttime The start time of the query. It is a string in the format 'yyyy-MM-ddTHH:mm:ss.fffZ'. If you * have specified the endtime parameter, then this parameter is required. * If only starttime is specified, then endtime defaults to the current time. * If no time interval is specified, the default is 1 hour. * @param endtime The end time of the query. It is a string in the format 'yyyy-MM-ddTHH:mm:ss.fffZ'. - * @param interval The interval (i.e. timegrain) of the query. - * *Examples: PT15M, PT1H, P1D*. + * @param interval The interval (i.e. timegrain) of the query in ISO 8601 duration format. Defaults to PT1M. Special + * case for 'FULL' value that returns single datapoint for entire time span requested. + * *Examples: PT15M, PT1H, P1D, FULL*. * @param aggregation The list of aggregation types (comma separated) to retrieve. * *Examples: average, minimum, maximum*. * @param top The maximum number of records to retrieve per resource ID in the request. @@ -293,22 +313,25 @@ public Mono batchAsync(String subscriptionId, String metr * the logical or operator cannot separate two different metadata names.<br>- Return all time series where A = * a1, B = b1 and C = c1:<br>**filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘c1’**<br>- Return all time * series where A = a1<br>**filter=A eq ‘a1’ and B eq ‘*’ and C eq ‘*’**. + * @param rollupby Dimension name(s) to rollup results by. For example if you only want to see metric values with a + * filter like 'City eq Seattle or City eq Tacoma' but don't want to see separate values for each city, you can + * specify 'RollUpBy=City' to see the results for Seattle and Tacoma rolled up into one timeseries. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws AdditionalInfoErrorResponseException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the metrics result for a resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response batchWithResponse(String subscriptionId, String metricnamespace, - List metricnames, ResourceIdList resourceIds, String starttime, String endtime, Duration interval, - String aggregation, Integer top, String orderBy, String filter, Context context) { + List metricnames, ResourceIdList batchRequest, String starttime, String endtime, Duration interval, + String aggregation, Integer top, String orderBy, String filter, String rollupby, Context context) { final String accept = "application/json"; String metricnamesConverted = metricnames.stream().map(paramItemValue -> Objects.toString(paramItemValue, "")) .collect(Collectors.joining(",")); return service.batchSync(this.client.getEndpoint(), subscriptionId, starttime, endtime, interval, - metricnamespace, metricnamesConverted, aggregation, top, orderBy, filter, this.client.getApiVersion(), - resourceIds, accept, context); + metricnamespace, metricnamesConverted, aggregation, top, orderBy, filter, rollupby, + this.client.getApiVersion(), batchRequest, accept, context); } /** @@ -317,14 +340,15 @@ public Response batchWithResponse(String subscriptionId, * @param subscriptionId The subscription identifier for the resources in this batch. * @param metricnamespace Metric namespace that contains the requested metric names. * @param metricnames The names of the metrics (comma separated) to retrieve. - * @param resourceIds The comma separated list of resource IDs to query metrics for. + * @param batchRequest Metrics batch body including the list of resource ids. * @param starttime The start time of the query. It is a string in the format 'yyyy-MM-ddTHH:mm:ss.fffZ'. If you * have specified the endtime parameter, then this parameter is required. * If only starttime is specified, then endtime defaults to the current time. * If no time interval is specified, the default is 1 hour. * @param endtime The end time of the query. It is a string in the format 'yyyy-MM-ddTHH:mm:ss.fffZ'. - * @param interval The interval (i.e. timegrain) of the query. - * *Examples: PT15M, PT1H, P1D*. + * @param interval The interval (i.e. timegrain) of the query in ISO 8601 duration format. Defaults to PT1M. Special + * case for 'FULL' value that returns single datapoint for entire time span requested. + * *Examples: PT15M, PT1H, P1D, FULL*. * @param aggregation The list of aggregation types (comma separated) to retrieve. * *Examples: average, minimum, maximum*. * @param top The maximum number of records to retrieve per resource ID in the request. @@ -340,16 +364,19 @@ public Response batchWithResponse(String subscriptionId, * the logical or operator cannot separate two different metadata names.<br>- Return all time series where A = * a1, B = b1 and C = c1:<br>**filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘c1’**<br>- Return all time * series where A = a1<br>**filter=A eq ‘a1’ and B eq ‘*’ and C eq ‘*’**. + * @param rollupby Dimension name(s) to rollup results by. For example if you only want to see metric values with a + * filter like 'City eq Seattle or City eq Tacoma' but don't want to see separate values for each city, you can + * specify 'RollUpBy=City' to see the results for Seattle and Tacoma rolled up into one timeseries. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws AdditionalInfoErrorResponseException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the metrics result for a resource. */ @ServiceMethod(returns = ReturnType.SINGLE) public MetricResultsResponse batch(String subscriptionId, String metricnamespace, List metricnames, - ResourceIdList resourceIds, String starttime, String endtime, Duration interval, String aggregation, - Integer top, String orderBy, String filter) { - return batchWithResponse(subscriptionId, metricnamespace, metricnames, resourceIds, starttime, endtime, - interval, aggregation, top, orderBy, filter, Context.NONE).getValue(); + ResourceIdList batchRequest, String starttime, String endtime, Duration interval, String aggregation, + Integer top, String orderBy, String filter, String rollupby) { + return batchWithResponse(subscriptionId, metricnamespace, metricnames, batchRequest, starttime, endtime, + interval, aggregation, top, orderBy, filter, rollupby, Context.NONE).getValue(); } } diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsbatch/models/AdditionalInfoErrorResponse.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsbatch/models/AdditionalInfoErrorResponse.java deleted file mode 100644 index 46bcf865b2ef..000000000000 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsbatch/models/AdditionalInfoErrorResponse.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.monitor.query.implementation.metricsbatch.models; - -import com.azure.core.annotation.Immutable; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * The response to a metrics query that results in a bad request, with optional additional information. - */ -@Immutable -public final class AdditionalInfoErrorResponse { - /* - * Top level error object that contains all relevant information. - */ - @JsonProperty(value = "error", required = true) - private AdditionalInfoErrorResponseError error; - - /** - * Creates an instance of AdditionalInfoErrorResponse class. - * - * @param error the error value to set. - */ - @JsonCreator - public AdditionalInfoErrorResponse( - @JsonProperty(value = "error", required = true) AdditionalInfoErrorResponseError error) { - this.error = error; - } - - /** - * Get the error property: Top level error object that contains all relevant information. - * - * @return the error value. - */ - public AdditionalInfoErrorResponseError getError() { - return this.error; - } -} diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsbatch/models/AdditionalInfoErrorResponseError.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsbatch/models/AdditionalInfoErrorResponseError.java deleted file mode 100644 index c57ced759000..000000000000 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsbatch/models/AdditionalInfoErrorResponseError.java +++ /dev/null @@ -1,86 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.monitor.query.implementation.metricsbatch.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** - * Top level error object that contains all relevant information. - */ -@Fluent -public final class AdditionalInfoErrorResponseError { - /* - * Additional information about the error - */ - @JsonProperty(value = "additionalInfo") - private List additionalInfo; - - /* - * Error code - */ - @JsonProperty(value = "code", required = true) - private String code; - - /* - * Error message indicating why the operation failed. - */ - @JsonProperty(value = "message", required = true) - private String message; - - /** - * Creates an instance of AdditionalInfoErrorResponseError class. - * - * @param code the code value to set. - * @param message the message value to set. - */ - @JsonCreator - public AdditionalInfoErrorResponseError(@JsonProperty(value = "code", required = true) String code, - @JsonProperty(value = "message", required = true) String message) { - this.code = code; - this.message = message; - } - - /** - * Get the additionalInfo property: Additional information about the error. - * - * @return the additionalInfo value. - */ - public List getAdditionalInfo() { - return this.additionalInfo; - } - - /** - * Set the additionalInfo property: Additional information about the error. - * - * @param additionalInfo the additionalInfo value to set. - * @return the AdditionalInfoErrorResponseError object itself. - */ - public AdditionalInfoErrorResponseError - setAdditionalInfo(List additionalInfo) { - this.additionalInfo = additionalInfo; - return this; - } - - /** - * Get the code property: Error code. - * - * @return the code value. - */ - public String getCode() { - return this.code; - } - - /** - * Get the message property: Error message indicating why the operation failed. - * - * @return the message value. - */ - public String getMessage() { - return this.message; - } -} diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsbatch/models/AdditionalInfoErrorResponseErrorAdditionalInfoItem.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsbatch/models/AdditionalInfoErrorResponseErrorAdditionalInfoItem.java deleted file mode 100644 index 8ee700fb2390..000000000000 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsbatch/models/AdditionalInfoErrorResponseErrorAdditionalInfoItem.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.monitor.query.implementation.metricsbatch.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * The AdditionalInfoErrorResponseErrorAdditionalInfoItem model. - */ -@Fluent -public final class AdditionalInfoErrorResponseErrorAdditionalInfoItem { - /* - * The type of the info property (e.g. string). - */ - @JsonProperty(value = "type") - private String type; - - /* - * Additional information related to the error. - */ - @JsonProperty(value = "info") - private String info; - - /** - * Creates an instance of AdditionalInfoErrorResponseErrorAdditionalInfoItem class. - */ - public AdditionalInfoErrorResponseErrorAdditionalInfoItem() { - } - - /** - * Get the type property: The type of the info property (e.g. string). - * - * @return the type value. - */ - public String getType() { - return this.type; - } - - /** - * Set the type property: The type of the info property (e.g. string). - * - * @param type the type value to set. - * @return the AdditionalInfoErrorResponseErrorAdditionalInfoItem object itself. - */ - public AdditionalInfoErrorResponseErrorAdditionalInfoItem setType(String type) { - this.type = type; - return this; - } - - /** - * Get the info property: Additional information related to the error. - * - * @return the info value. - */ - public String getInfo() { - return this.info; - } - - /** - * Set the info property: Additional information related to the error. - * - * @param info the info value to set. - * @return the AdditionalInfoErrorResponseErrorAdditionalInfoItem object itself. - */ - public AdditionalInfoErrorResponseErrorAdditionalInfoItem setInfo(String info) { - this.info = info; - return this; - } -} diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsbatch/models/ErrorAdditionalInfo.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsbatch/models/ErrorAdditionalInfo.java new file mode 100644 index 000000000000..620a7435209a --- /dev/null +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsbatch/models/ErrorAdditionalInfo.java @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.monitor.query.implementation.metricsbatch.models; + +import com.azure.core.annotation.Immutable; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The resource management error additional info. + */ +@Immutable +public final class ErrorAdditionalInfo { + /* + * The additional info type. + */ + @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) + private String type; + + /* + * The additional info. + */ + @JsonProperty(value = "info", access = JsonProperty.Access.WRITE_ONLY) + private Object info; + + /** + * Creates an instance of ErrorAdditionalInfo class. + */ + public ErrorAdditionalInfo() { + } + + /** + * Get the type property: The additional info type. + * + * @return the type value. + */ + public String getType() { + return this.type; + } + + /** + * Get the info property: The additional info. + * + * @return the info value. + */ + public Object getInfo() { + return this.info; + } +} diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsbatch/models/ErrorDetail.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsbatch/models/ErrorDetail.java new file mode 100644 index 000000000000..8019cc8b910f --- /dev/null +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsbatch/models/ErrorDetail.java @@ -0,0 +1,96 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.monitor.query.implementation.metricsbatch.models; + +import com.azure.core.annotation.Immutable; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** + * The error detail. + */ +@Immutable +public final class ErrorDetail { + /* + * The error code. + */ + @JsonProperty(value = "code", access = JsonProperty.Access.WRITE_ONLY) + private String code; + + /* + * The error message. + */ + @JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY) + private String message; + + /* + * The error target. + */ + @JsonProperty(value = "target", access = JsonProperty.Access.WRITE_ONLY) + private String target; + + /* + * The error details. + */ + @JsonProperty(value = "details", access = JsonProperty.Access.WRITE_ONLY) + private List details; + + /* + * The error additional info. + */ + @JsonProperty(value = "additionalInfo", access = JsonProperty.Access.WRITE_ONLY) + private List additionalInfo; + + /** + * Creates an instance of ErrorDetail class. + */ + public ErrorDetail() { + } + + /** + * Get the code property: The error code. + * + * @return the code value. + */ + public String getCode() { + return this.code; + } + + /** + * Get the message property: The error message. + * + * @return the message value. + */ + public String getMessage() { + return this.message; + } + + /** + * Get the target property: The error target. + * + * @return the target value. + */ + public String getTarget() { + return this.target; + } + + /** + * Get the details property: The error details. + * + * @return the details value. + */ + public List getDetails() { + return this.details; + } + + /** + * Get the additionalInfo property: The error additional info. + * + * @return the additionalInfo value. + */ + public List getAdditionalInfo() { + return this.additionalInfo; + } +} diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsbatch/models/ErrorResponse.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsbatch/models/ErrorResponse.java new file mode 100644 index 000000000000..c9d4fd4924f9 --- /dev/null +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsbatch/models/ErrorResponse.java @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.monitor.query.implementation.metricsbatch.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Error response + * + * Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also + * follows the OData error response format.). + */ +@Fluent +public final class ErrorResponse { + /* + * The error object. + */ + @JsonProperty(value = "error") + private ErrorDetail error; + + /** + * Creates an instance of ErrorResponse class. + */ + public ErrorResponse() { + } + + /** + * Get the error property: The error object. + * + * @return the error value. + */ + public ErrorDetail getError() { + return this.error; + } + + /** + * Set the error property: The error object. + * + * @param error the error value to set. + * @return the ErrorResponse object itself. + */ + public ErrorResponse setError(ErrorDetail error) { + this.error = error; + return this; + } +} diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsbatch/models/AdditionalInfoErrorResponseException.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsbatch/models/ErrorResponseException.java similarity index 55% rename from sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsbatch/models/AdditionalInfoErrorResponseException.java rename to sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsbatch/models/ErrorResponseException.java index 1a3a7975b72f..c9bac001a4e4 100644 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsbatch/models/AdditionalInfoErrorResponseException.java +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsbatch/models/ErrorResponseException.java @@ -8,28 +8,27 @@ import com.azure.core.http.HttpResponse; /** - * Exception thrown for an invalid response with AdditionalInfoErrorResponse information. + * Exception thrown for an invalid response with ErrorResponse information. */ -public final class AdditionalInfoErrorResponseException extends HttpResponseException { +public final class ErrorResponseException extends HttpResponseException { /** - * Initializes a new instance of the AdditionalInfoErrorResponseException class. + * Initializes a new instance of the ErrorResponseException class. * * @param message the exception message or the response content if a message is not available. * @param response the HTTP response. */ - public AdditionalInfoErrorResponseException(String message, HttpResponse response) { + public ErrorResponseException(String message, HttpResponse response) { super(message, response); } /** - * Initializes a new instance of the AdditionalInfoErrorResponseException class. + * Initializes a new instance of the ErrorResponseException class. * * @param message the exception message or the response content if a message is not available. * @param response the HTTP response. * @param value the deserialized response value. */ - public AdditionalInfoErrorResponseException(String message, HttpResponse response, - AdditionalInfoErrorResponse value) { + public ErrorResponseException(String message, HttpResponse response, ErrorResponse value) { super(message, response, value); } @@ -37,7 +36,7 @@ public AdditionalInfoErrorResponseException(String message, HttpResponse respons * {@inheritDoc} */ @Override - public AdditionalInfoErrorResponse getValue() { - return (AdditionalInfoErrorResponse) super.getValue(); + public ErrorResponse getValue() { + return (ErrorResponse) super.getValue(); } } diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsbatch/models/Metric.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsbatch/models/Metric.java index 4472f2013267..c2c30abc84c4 100644 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsbatch/models/Metric.java +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsbatch/models/Metric.java @@ -15,19 +15,19 @@ @Fluent public final class Metric { /* - * the metric Id. + * The metric Id. */ @JsonProperty(value = "id", required = true) private String id; /* - * the resource type of the metric resource. + * The resource type of the metric resource. */ @JsonProperty(value = "type", required = true) private String type; /* - * the name and the display name of the metric, i.e. it is localizable string. + * The name and the display name of the metric, i.e. it is localizable string. */ @JsonProperty(value = "name", required = true) private LocalizableString name; @@ -57,7 +57,7 @@ public final class Metric { private MetricUnit unit; /* - * the time series returned when a data query is performed. + * The time series returned when a data query is performed. */ @JsonProperty(value = "timeseries", required = true) private List timeseries; @@ -85,7 +85,7 @@ public Metric(@JsonProperty(value = "id", required = true) String id, } /** - * Get the id property: the metric Id. + * Get the id property: The metric Id. * * @return the id value. */ @@ -94,7 +94,7 @@ public String getId() { } /** - * Get the type property: the resource type of the metric resource. + * Get the type property: The resource type of the metric resource. * * @return the type value. */ @@ -103,7 +103,7 @@ public String getType() { } /** - * Get the name property: the name and the display name of the metric, i.e. it is localizable string. + * Get the name property: The name and the display name of the metric, i.e. it is localizable string. * * @return the name value. */ @@ -181,7 +181,7 @@ public MetricUnit getUnit() { } /** - * Get the timeseries property: the time series returned when a data query is performed. + * Get the timeseries property: The time series returned when a data query is performed. * * @return the timeseries value. */ diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsbatch/models/MetricResultsResponseValuesItem.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsbatch/models/MetricResultsResponseValuesItem.java index f46ebedf2bc8..86c68f456510 100644 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsbatch/models/MetricResultsResponseValuesItem.java +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsbatch/models/MetricResultsResponseValuesItem.java @@ -7,7 +7,6 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; -import java.time.Duration; import java.util.List; /** @@ -28,12 +27,13 @@ public final class MetricResultsResponseValuesItem { private String endtime; /* - * The interval (window size) for which the metric data was returned in. Follows the IS8601/RFC3339 duration format - * (e.g. 'P1D' for 1 day). This may be adjusted in the future and returned back from what was originally requested. - * This is not present if a metadata request was made. + * The interval (window size) for which the metric data was returned in ISO 8601 duration format with a special + * case for 'FULL' value that returns single datapoint for entire time span requested (*Examples: PT15M, PT1H, P1D, + * FULL*). + * This may be adjusted and different from what was originally requested if AutoAdjustTimegrain=true is specified. */ @JsonProperty(value = "interval") - private Duration interval; + private String interval; /* * The namespace of the metrics been queried @@ -94,25 +94,27 @@ public String getEndtime() { } /** - * Get the interval property: The interval (window size) for which the metric data was returned in. Follows the - * IS8601/RFC3339 duration format (e.g. 'P1D' for 1 day). This may be adjusted in the future and returned back from - * what was originally requested. This is not present if a metadata request was made. + * Get the interval property: The interval (window size) for which the metric data was returned in ISO 8601 + * duration format with a special case for 'FULL' value that returns single datapoint for entire time span + * requested (*Examples: PT15M, PT1H, P1D, FULL*). + * This may be adjusted and different from what was originally requested if AutoAdjustTimegrain=true is specified. * * @return the interval value. */ - public Duration getInterval() { + public String getInterval() { return this.interval; } /** - * Set the interval property: The interval (window size) for which the metric data was returned in. Follows the - * IS8601/RFC3339 duration format (e.g. 'P1D' for 1 day). This may be adjusted in the future and returned back from - * what was originally requested. This is not present if a metadata request was made. + * Set the interval property: The interval (window size) for which the metric data was returned in ISO 8601 + * duration format with a special case for 'FULL' value that returns single datapoint for entire time span + * requested (*Examples: PT15M, PT1H, P1D, FULL*). + * This may be adjusted and different from what was originally requested if AutoAdjustTimegrain=true is specified. * * @param interval the interval value to set. * @return the MetricResultsResponseValuesItem object itself. */ - public MetricResultsResponseValuesItem setInterval(Duration interval) { + public MetricResultsResponseValuesItem setInterval(String interval) { this.interval = interval; return this; } diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsbatch/models/MetricUnit.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsbatch/models/MetricUnit.java index ead67897d648..5d58242b7d67 100644 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsbatch/models/MetricUnit.java +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsbatch/models/MetricUnit.java @@ -13,67 +13,68 @@ */ public final class MetricUnit extends ExpandableStringEnum { /** - * Static value Count for MetricUnit. + * Unit of raw quantity. */ public static final MetricUnit COUNT = fromString("Count"); /** - * Static value Bytes for MetricUnit. + * Unit of memory in bytes. */ public static final MetricUnit BYTES = fromString("Bytes"); /** - * Static value Seconds for MetricUnit. + * Unit of time in seconds. */ public static final MetricUnit SECONDS = fromString("Seconds"); /** - * Static value CountPerSecond for MetricUnit. + * Rate unit of raw quantity per second. */ public static final MetricUnit COUNT_PER_SECOND = fromString("CountPerSecond"); /** - * Static value BytesPerSecond for MetricUnit. + * Rate unit of memory in bytes per second. */ public static final MetricUnit BYTES_PER_SECOND = fromString("BytesPerSecond"); /** - * Static value Percent for MetricUnit. + * Percentage unit. */ public static final MetricUnit PERCENT = fromString("Percent"); /** - * Static value MilliSeconds for MetricUnit. + * Unit of time in 1/1000th of a second. */ public static final MetricUnit MILLI_SECONDS = fromString("MilliSeconds"); /** - * Static value ByteSeconds for MetricUnit. + * Unit of data transfer or storage. It is the size of the data in bytes multiplied by the time it takes to transfer + * or store the data in seconds. */ public static final MetricUnit BYTE_SECONDS = fromString("ByteSeconds"); /** - * Static value Unspecified for MetricUnit. + * No specified unit. */ public static final MetricUnit UNSPECIFIED = fromString("Unspecified"); /** - * Static value Cores for MetricUnit. + * Unit of processing power. */ public static final MetricUnit CORES = fromString("Cores"); /** - * Static value MilliCores for MetricUnit. + * Unit of processing power in 1/1000th of a CPU core. */ public static final MetricUnit MILLI_CORES = fromString("MilliCores"); /** - * Static value NanoCores for MetricUnit. + * Unit of processing power in one billionth of a CPU core. */ public static final MetricUnit NANO_CORES = fromString("NanoCores"); /** - * Static value BitsPerSecond for MetricUnit. + * Rate unit of binary digits per second. */ public static final MetricUnit BITS_PER_SECOND = fromString("BitsPerSecond"); diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsbatch/models/TimeSeriesElement.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsbatch/models/TimeSeriesElement.java index becd31d59a11..ba1c1c52f13e 100644 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsbatch/models/TimeSeriesElement.java +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsbatch/models/TimeSeriesElement.java @@ -14,7 +14,7 @@ @Fluent public final class TimeSeriesElement { /* - * the metadata values returned if $filter was specified in the call. + * The metadata values returned if $filter was specified in the call. */ @JsonProperty(value = "metadatavalues") private List metadatavalues; @@ -33,7 +33,7 @@ public TimeSeriesElement() { } /** - * Get the metadatavalues property: the metadata values returned if $filter was specified in the call. + * Get the metadatavalues property: The metadata values returned if $filter was specified in the call. * * @return the metadatavalues value. */ @@ -42,7 +42,7 @@ public List getMetadatavalues() { } /** - * Set the metadatavalues property: the metadata values returned if $filter was specified in the call. + * Set the metadatavalues property: The metadata values returned if $filter was specified in the call. * * @param metadatavalues the metadatavalues value to set. * @return the TimeSeriesElement object itself. diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/MetricDefinitionsImpl.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/MetricDefinitionsImpl.java index 02f92573777a..335a4bf1547a 100644 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/MetricDefinitionsImpl.java +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/MetricDefinitionsImpl.java @@ -23,9 +23,12 @@ import com.azure.core.http.rest.RestProxy; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; +import com.azure.monitor.query.implementation.metricsdefinitions.models.ErrorContractException; import com.azure.monitor.query.implementation.metricsdefinitions.models.ErrorResponseException; import com.azure.monitor.query.implementation.metricsdefinitions.models.MetricDefinition; import com.azure.monitor.query.implementation.metricsdefinitions.models.MetricDefinitionCollection; +import com.azure.monitor.query.implementation.metricsdefinitions.models.SubscriptionScopeMetricDefinition; +import com.azure.monitor.query.implementation.metricsdefinitions.models.SubscriptionScopeMetricDefinitionCollection; import reactor.core.publisher.Mono; /** @@ -54,12 +57,30 @@ public final class MetricDefinitionsImpl { } /** - * The interface defining all the services for MonitorManagementClientMetricDefinitions to be used by the proxy - * service to perform REST calls. + * The interface defining all the services for AzureMonitorMetricsDefinitionsAPIMetricDefinitions to be used by the + * proxy service to perform REST calls. */ @Host("{$host}") - @ServiceInterface(name = "MonitorManagementCli") + @ServiceInterface(name = "AzureMonitorMetricsD") public interface MetricDefinitionsService { + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Insights/metricDefinitions") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ErrorContractException.class) + Mono> listAtSubscriptionScope( + @HostParam("$host") String host, @PathParam("subscriptionId") String subscriptionId, + @QueryParam("api-version") String apiVersion, @QueryParam("region") String region, + @QueryParam("metricnamespace") String metricnamespace, @HeaderParam("Accept") String accept, + Context context); + + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Insights/metricDefinitions") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ErrorContractException.class) + Response listAtSubscriptionScopeSync( + @HostParam("$host") String host, @PathParam("subscriptionId") String subscriptionId, + @QueryParam("api-version") String apiVersion, @QueryParam("region") String region, + @QueryParam("metricnamespace") String metricnamespace, @HeaderParam("Accept") String accept, + Context context); + @Get("/{resourceUri}/providers/Microsoft.Insights/metricDefinitions") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ErrorResponseException.class) @@ -77,11 +98,165 @@ Response listSync(@HostParam("$host") String host, @HeaderParam("Accept") String accept, Context context); } + /** + * Lists the metric definitions for the subscription. + * + * @param region The region where the metrics you want reside. + * @param metricnamespace Metric namespace where the metrics you want reside. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents collection of metric definitions along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listAtSubscriptionScopeSinglePageAsync(String region, + String metricnamespace) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listAtSubscriptionScope(this.client.getHost(), + this.client.getSubscriptionId(), this.client.getApiVersion(), region, metricnamespace, accept, context)) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().getValue(), null, null)); + } + + /** + * Lists the metric definitions for the subscription. + * + * @param region The region where the metrics you want reside. + * @param metricnamespace Metric namespace where the metrics you want reside. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents collection of metric definitions along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listAtSubscriptionScopeSinglePageAsync(String region, + String metricnamespace, Context context) { + final String accept = "application/json"; + return service + .listAtSubscriptionScope(this.client.getHost(), this.client.getSubscriptionId(), + this.client.getApiVersion(), region, metricnamespace, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().getValue(), null, null)); + } + + /** + * Lists the metric definitions for the subscription. + * + * @param region The region where the metrics you want reside. + * @param metricnamespace Metric namespace where the metrics you want reside. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents collection of metric definitions as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAtSubscriptionScopeAsync(String region, + String metricnamespace) { + return new PagedFlux<>(() -> listAtSubscriptionScopeSinglePageAsync(region, metricnamespace)); + } + + /** + * Lists the metric definitions for the subscription. + * + * @param region The region where the metrics you want reside. + * @param metricnamespace Metric namespace where the metrics you want reside. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents collection of metric definitions as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAtSubscriptionScopeAsync(String region, + String metricnamespace, Context context) { + return new PagedFlux<>(() -> listAtSubscriptionScopeSinglePageAsync(region, metricnamespace, context)); + } + + /** + * Lists the metric definitions for the subscription. + * + * @param region The region where the metrics you want reside. + * @param metricnamespace Metric namespace where the metrics you want reside. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents collection of metric definitions along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public PagedResponse listAtSubscriptionScopeSinglePage(String region, + String metricnamespace) { + final String accept = "application/json"; + Response res + = service.listAtSubscriptionScopeSync(this.client.getHost(), this.client.getSubscriptionId(), + this.client.getApiVersion(), region, metricnamespace, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().getValue(), null, null); + } + + /** + * Lists the metric definitions for the subscription. + * + * @param region The region where the metrics you want reside. + * @param metricnamespace Metric namespace where the metrics you want reside. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents collection of metric definitions along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public PagedResponse listAtSubscriptionScopeSinglePage(String region, + String metricnamespace, Context context) { + final String accept = "application/json"; + Response res + = service.listAtSubscriptionScopeSync(this.client.getHost(), this.client.getSubscriptionId(), + this.client.getApiVersion(), region, metricnamespace, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().getValue(), null, null); + } + + /** + * Lists the metric definitions for the subscription. + * + * @param region The region where the metrics you want reside. + * @param metricnamespace Metric namespace where the metrics you want reside. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents collection of metric definitions as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listAtSubscriptionScope(String region, + String metricnamespace) { + return new PagedIterable<>(() -> listAtSubscriptionScopeSinglePage(region, metricnamespace, Context.NONE)); + } + + /** + * Lists the metric definitions for the subscription. + * + * @param region The region where the metrics you want reside. + * @param metricnamespace Metric namespace where the metrics you want reside. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorContractException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents collection of metric definitions as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listAtSubscriptionScope(String region, + String metricnamespace, Context context) { + return new PagedIterable<>(() -> listAtSubscriptionScopeSinglePage(region, metricnamespace, context)); + } + /** * Lists the metric definitions for the resource. * * @param resourceUri The identifier of the resource. - * @param metricnamespace Metric namespace to query metric definitions for. + * @param metricnamespace Metric namespace where the metrics you want reside. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -102,7 +277,7 @@ public Mono> listSinglePageAsync(String resource * Lists the metric definitions for the resource. * * @param resourceUri The identifier of the resource. - * @param metricnamespace Metric namespace to query metric definitions for. + * @param metricnamespace Metric namespace where the metrics you want reside. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorResponseException thrown if the request is rejected by server. @@ -124,7 +299,7 @@ public Mono> listSinglePageAsync(String resource * Lists the metric definitions for the resource. * * @param resourceUri The identifier of the resource. - * @param metricnamespace Metric namespace to query metric definitions for. + * @param metricnamespace Metric namespace where the metrics you want reside. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -139,7 +314,7 @@ public PagedFlux listAsync(String resourceUri, String metricna * Lists the metric definitions for the resource. * * @param resourceUri The identifier of the resource. - * @param metricnamespace Metric namespace to query metric definitions for. + * @param metricnamespace Metric namespace where the metrics you want reside. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorResponseException thrown if the request is rejected by server. @@ -155,7 +330,7 @@ public PagedFlux listAsync(String resourceUri, String metricna * Lists the metric definitions for the resource. * * @param resourceUri The identifier of the resource. - * @param metricnamespace Metric namespace to query metric definitions for. + * @param metricnamespace Metric namespace where the metrics you want reside. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -174,7 +349,7 @@ public PagedResponse listSinglePage(String resourceUri, String * Lists the metric definitions for the resource. * * @param resourceUri The identifier of the resource. - * @param metricnamespace Metric namespace to query metric definitions for. + * @param metricnamespace Metric namespace where the metrics you want reside. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorResponseException thrown if the request is rejected by server. @@ -194,7 +369,7 @@ public PagedResponse listSinglePage(String resourceUri, String * Lists the metric definitions for the resource. * * @param resourceUri The identifier of the resource. - * @param metricnamespace Metric namespace to query metric definitions for. + * @param metricnamespace Metric namespace where the metrics you want reside. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -209,7 +384,7 @@ public PagedIterable list(String resourceUri, String metricnam * Lists the metric definitions for the resource. * * @param resourceUri The identifier of the resource. - * @param metricnamespace Metric namespace to query metric definitions for. + * @param metricnamespace Metric namespace where the metrics you want reside. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorResponseException thrown if the request is rejected by server. diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/MetricsDefinitionsClientImpl.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/MetricsDefinitionsClientImpl.java index 496d6f7db552..6c537e0f058a 100644 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/MetricsDefinitionsClientImpl.java +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/MetricsDefinitionsClientImpl.java @@ -12,9 +12,23 @@ import com.azure.core.util.serializer.SerializerAdapter; /** - * Initializes a new instance of the MonitorManagementClient type. + * Initializes a new instance of the AzureMonitorMetricsDefinitionsAPI type. */ public final class MetricsDefinitionsClientImpl { + /** + * The ID of the target subscription. + */ + private final String subscriptionId; + + /** + * Gets The ID of the target subscription. + * + * @return the subscriptionId value. + */ + public String getSubscriptionId() { + return this.subscriptionId; + } + /** * server parameter. */ @@ -86,39 +100,43 @@ public MetricDefinitionsImpl getMetricDefinitions() { } /** - * Initializes an instance of MonitorManagementClient client. + * Initializes an instance of AzureMonitorMetricsDefinitionsAPI client. * + * @param subscriptionId The ID of the target subscription. * @param host server parameter. * @param apiVersion Api Version. */ - MetricsDefinitionsClientImpl(String host, String apiVersion) { + MetricsDefinitionsClientImpl(String subscriptionId, String host, String apiVersion) { this(new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build(), - JacksonAdapter.createDefaultSerializerAdapter(), host, apiVersion); + JacksonAdapter.createDefaultSerializerAdapter(), subscriptionId, host, apiVersion); } /** - * Initializes an instance of MonitorManagementClient client. + * Initializes an instance of AzureMonitorMetricsDefinitionsAPI client. * * @param httpPipeline The HTTP pipeline to send requests through. + * @param subscriptionId The ID of the target subscription. * @param host server parameter. * @param apiVersion Api Version. */ - MetricsDefinitionsClientImpl(HttpPipeline httpPipeline, String host, String apiVersion) { - this(httpPipeline, JacksonAdapter.createDefaultSerializerAdapter(), host, apiVersion); + MetricsDefinitionsClientImpl(HttpPipeline httpPipeline, String subscriptionId, String host, String apiVersion) { + this(httpPipeline, JacksonAdapter.createDefaultSerializerAdapter(), subscriptionId, host, apiVersion); } /** - * Initializes an instance of MonitorManagementClient client. + * Initializes an instance of AzureMonitorMetricsDefinitionsAPI client. * * @param httpPipeline The HTTP pipeline to send requests through. * @param serializerAdapter The serializer to serialize an object into a string. + * @param subscriptionId The ID of the target subscription. * @param host server parameter. * @param apiVersion Api Version. */ - MetricsDefinitionsClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter, String host, - String apiVersion) { + MetricsDefinitionsClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter, String subscriptionId, + String host, String apiVersion) { this.httpPipeline = httpPipeline; this.serializerAdapter = serializerAdapter; + this.subscriptionId = subscriptionId; this.host = host; this.apiVersion = apiVersion; this.metricDefinitions = new MetricDefinitionsImpl(this); diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/MetricsDefinitionsClientImplBuilder.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/MetricsDefinitionsClientImplBuilder.java index 075e5f4ca1e6..39d006ce111d 100644 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/MetricsDefinitionsClientImplBuilder.java +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/MetricsDefinitionsClientImplBuilder.java @@ -40,7 +40,7 @@ import java.util.Objects; /** - * A builder for creating a new instance of the MonitorManagementClient type. + * A builder for creating a new instance of the AzureMonitorMetricsDefinitionsAPI type. */ @ServiceClientBuilder(serviceClients = { MetricsDefinitionsClientImpl.class }) public final class MetricsDefinitionsClientImplBuilder implements HttpTrait, @@ -58,7 +58,7 @@ public final class MetricsDefinitionsClientImplBuilder implements HttpTrait pipelinePolicies; /** - * Create an instance of the MonitorManagementClientBuilder. + * Create an instance of the AzureMonitorMetricsDefinitionsAPIBuilder. */ @Generated public MetricsDefinitionsClientImplBuilder() { @@ -188,6 +188,24 @@ public MetricsDefinitionsClientImplBuilder credential(TokenCredential tokenCrede return this; } + /* + * The ID of the target subscription. + */ + @Generated + private String subscriptionId; + + /** + * Sets The ID of the target subscription. + * + * @param subscriptionId the subscriptionId value. + * @return the AzureMonitorMetricsDefinitionsAPIBuilder. + */ + @Generated + public MetricsDefinitionsClientImplBuilder subscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; + return this; + } + /* * server parameter */ @@ -198,7 +216,7 @@ public MetricsDefinitionsClientImplBuilder credential(TokenCredential tokenCrede * Sets server parameter. * * @param host the host value. - * @return the MonitorManagementClientBuilder. + * @return the AzureMonitorMetricsDefinitionsAPIBuilder. */ @Generated public MetricsDefinitionsClientImplBuilder host(String host) { @@ -216,7 +234,7 @@ public MetricsDefinitionsClientImplBuilder host(String host) { * Sets Api Version. * * @param apiVersion the apiVersion value. - * @return the MonitorManagementClientBuilder. + * @return the AzureMonitorMetricsDefinitionsAPIBuilder. */ @Generated public MetricsDefinitionsClientImplBuilder apiVersion(String apiVersion) { @@ -234,7 +252,7 @@ public MetricsDefinitionsClientImplBuilder apiVersion(String apiVersion) { * Sets The serializer to serialize an object into a string. * * @param serializerAdapter the serializerAdapter value. - * @return the MonitorManagementClientBuilder. + * @return the AzureMonitorMetricsDefinitionsAPIBuilder. */ @Generated public MetricsDefinitionsClientImplBuilder serializerAdapter(SerializerAdapter serializerAdapter) { @@ -252,7 +270,7 @@ public MetricsDefinitionsClientImplBuilder serializerAdapter(SerializerAdapter s * Sets The retry policy that will attempt to retry failed requests, if applicable. * * @param retryPolicy the retryPolicy value. - * @return the MonitorManagementClientBuilder. + * @return the AzureMonitorMetricsDefinitionsAPIBuilder. */ @Generated public MetricsDefinitionsClientImplBuilder retryPolicy(RetryPolicy retryPolicy) { @@ -261,19 +279,19 @@ public MetricsDefinitionsClientImplBuilder retryPolicy(RetryPolicy retryPolicy) } /** - * Builds an instance of MonitorManagementClient with the provided parameters. + * Builds an instance of AzureMonitorMetricsDefinitionsAPI with the provided parameters. * - * @return an instance of MonitorManagementClient. + * @return an instance of AzureMonitorMetricsDefinitionsAPI. */ @Generated public MetricsDefinitionsClientImpl buildClient() { HttpPipeline localPipeline = (pipeline != null) ? pipeline : createHttpPipeline(); String localHost = (host != null) ? host : "https://management.azure.com"; - String localApiVersion = (apiVersion != null) ? apiVersion : "2018-01-01"; + String localApiVersion = (apiVersion != null) ? apiVersion : "2024-02-01"; SerializerAdapter localSerializerAdapter = (serializerAdapter != null) ? serializerAdapter : JacksonAdapter.createDefaultSerializerAdapter(); - MetricsDefinitionsClientImpl client - = new MetricsDefinitionsClientImpl(localPipeline, localSerializerAdapter, localHost, localApiVersion); + MetricsDefinitionsClientImpl client = new MetricsDefinitionsClientImpl(localPipeline, localSerializerAdapter, + this.subscriptionId, localHost, localApiVersion); return client; } @@ -308,7 +326,7 @@ private HttpPipeline createHttpPipeline() { this.pipelinePolicies.stream().filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY) .forEach(p -> policies.add(p)); HttpPolicyProviders.addAfterRetryPolicies(policies); - policies.add(new HttpLoggingPolicy(httpLogOptions)); + policies.add(new HttpLoggingPolicy(localHttpLogOptions)); HttpPipeline httpPipeline = new HttpPipelineBuilder().policies(policies.toArray(new HttpPipelinePolicy[0])) .httpClient(httpClient).clientOptions(localClientOptions).build(); return httpPipeline; diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/models/AggregationType.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/models/AggregationType.java index 1e5818c57786..2e86fead7678 100644 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/models/AggregationType.java +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/models/AggregationType.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonValue; /** - * the aggregation type of the metric. + * The aggregation type of the metric. */ public enum AggregationType { /** diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/models/ErrorAdditionalInfo.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/models/ErrorAdditionalInfo.java new file mode 100644 index 000000000000..9f6ba2c8c962 --- /dev/null +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/models/ErrorAdditionalInfo.java @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.monitor.query.implementation.metricsdefinitions.models; + +import com.azure.core.annotation.Immutable; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The resource management error additional info. + */ +@Immutable +public final class ErrorAdditionalInfo { + /* + * The additional info type. + */ + @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) + private String type; + + /* + * The additional info. + */ + @JsonProperty(value = "info", access = JsonProperty.Access.WRITE_ONLY) + private Object info; + + /** + * Creates an instance of ErrorAdditionalInfo class. + */ + public ErrorAdditionalInfo() { + } + + /** + * Get the type property: The additional info type. + * + * @return the type value. + */ + public String getType() { + return this.type; + } + + /** + * Get the info property: The additional info. + * + * @return the info value. + */ + public Object getInfo() { + return this.info; + } +} diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/models/ErrorContract.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/models/ErrorContract.java new file mode 100644 index 000000000000..d9d8f73ab79c --- /dev/null +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/models/ErrorContract.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.monitor.query.implementation.metricsdefinitions.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Error Response + * + * Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also + * follows the OData error response format.). + */ +@Fluent +public final class ErrorContract { + /* + * Error Response + * + * The error object. + */ + @JsonProperty(value = "error") + private ErrorResponse error; + + /** + * Creates an instance of ErrorContract class. + */ + public ErrorContract() { + } + + /** + * Get the error property: Error Response + * + * The error object. + * + * @return the error value. + */ + public ErrorResponse getError() { + return this.error; + } + + /** + * Set the error property: Error Response + * + * The error object. + * + * @param error the error value to set. + * @return the ErrorContract object itself. + */ + public ErrorContract setError(ErrorResponse error) { + this.error = error; + return this; + } +} diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/models/ErrorContractException.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/models/ErrorContractException.java new file mode 100644 index 000000000000..dcd035b84429 --- /dev/null +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/models/ErrorContractException.java @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.monitor.query.implementation.metricsdefinitions.models; + +import com.azure.core.exception.HttpResponseException; +import com.azure.core.http.HttpResponse; + +/** + * Exception thrown for an invalid response with ErrorContract information. + */ +public final class ErrorContractException extends HttpResponseException { + /** + * Initializes a new instance of the ErrorContractException class. + * + * @param message the exception message or the response content if a message is not available. + * @param response the HTTP response. + */ + public ErrorContractException(String message, HttpResponse response) { + super(message, response); + } + + /** + * Initializes a new instance of the ErrorContractException class. + * + * @param message the exception message or the response content if a message is not available. + * @param response the HTTP response. + * @param value the deserialized response value. + */ + public ErrorContractException(String message, HttpResponse response, ErrorContract value) { + super(message, response, value); + } + + /** + * {@inheritDoc} + */ + @Override + public ErrorContract getValue() { + return (ErrorContract) super.getValue(); + } +} diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/models/ErrorResponse.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/models/ErrorResponse.java index 929e91c4b562..75bc7e57022b 100644 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/models/ErrorResponse.java +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/models/ErrorResponse.java @@ -4,26 +4,48 @@ package com.azure.monitor.query.implementation.metricsdefinitions.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; /** - * Describes the format of Error response. + * Error Response + * + * Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also + * follows the OData error response format.). */ -@Fluent +@Immutable public final class ErrorResponse { /* - * Error code + * The error code. */ - @JsonProperty(value = "code") + @JsonProperty(value = "code", access = JsonProperty.Access.WRITE_ONLY) private String code; /* - * Error message indicating why the operation failed. + * The error message. */ - @JsonProperty(value = "message") + @JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY) private String message; + /* + * The error target. + */ + @JsonProperty(value = "target", access = JsonProperty.Access.WRITE_ONLY) + private String target; + + /* + * The error details. + */ + @JsonProperty(value = "details", access = JsonProperty.Access.WRITE_ONLY) + private List details; + + /* + * The error additional info. + */ + @JsonProperty(value = "additionalInfo", access = JsonProperty.Access.WRITE_ONLY) + private List additionalInfo; + /** * Creates an instance of ErrorResponse class. */ @@ -31,7 +53,7 @@ public ErrorResponse() { } /** - * Get the code property: Error code. + * Get the code property: The error code. * * @return the code value. */ @@ -40,33 +62,38 @@ public String getCode() { } /** - * Set the code property: Error code. + * Get the message property: The error message. + * + * @return the message value. + */ + public String getMessage() { + return this.message; + } + + /** + * Get the target property: The error target. * - * @param code the code value to set. - * @return the ErrorResponse object itself. + * @return the target value. */ - public ErrorResponse setCode(String code) { - this.code = code; - return this; + public String getTarget() { + return this.target; } /** - * Get the message property: Error message indicating why the operation failed. + * Get the details property: The error details. * - * @return the message value. + * @return the details value. */ - public String getMessage() { - return this.message; + public List getDetails() { + return this.details; } /** - * Set the message property: Error message indicating why the operation failed. + * Get the additionalInfo property: The error additional info. * - * @param message the message value to set. - * @return the ErrorResponse object itself. + * @return the additionalInfo value. */ - public ErrorResponse setMessage(String message) { - this.message = message; - return this; + public List getAdditionalInfo() { + return this.additionalInfo; } } diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/models/MetricAggregationType.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/models/MetricAggregationType.java new file mode 100644 index 000000000000..83e35056f7dd --- /dev/null +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/models/MetricAggregationType.java @@ -0,0 +1,73 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.monitor.query.implementation.metricsdefinitions.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** + * The aggregation type of the metric. + */ +public final class MetricAggregationType extends ExpandableStringEnum { + /** + * Static value None for MetricAggregationType. + */ + public static final MetricAggregationType NONE = fromString("None"); + + /** + * Static value Average for MetricAggregationType. + */ + public static final MetricAggregationType AVERAGE = fromString("Average"); + + /** + * Static value Count for MetricAggregationType. + */ + public static final MetricAggregationType COUNT = fromString("Count"); + + /** + * Static value Minimum for MetricAggregationType. + */ + public static final MetricAggregationType MINIMUM = fromString("Minimum"); + + /** + * Static value Maximum for MetricAggregationType. + */ + public static final MetricAggregationType MAXIMUM = fromString("Maximum"); + + /** + * Static value Total for MetricAggregationType. + */ + public static final MetricAggregationType TOTAL = fromString("Total"); + + /** + * Creates a new instance of MetricAggregationType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public MetricAggregationType() { + } + + /** + * Creates or finds a MetricAggregationType from its string representation. + * + * @param name a name to look for. + * @return the corresponding MetricAggregationType. + */ + @JsonCreator + public static MetricAggregationType fromString(String name) { + return fromString(name, MetricAggregationType.class); + } + + /** + * Gets known MetricAggregationType values. + * + * @return known MetricAggregationType values. + */ + public static Collection values() { + return values(MetricAggregationType.class); + } +} diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/models/MetricAvailability.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/models/MetricAvailability.java index 4fe6f0024118..47525c2910e4 100644 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/models/MetricAvailability.java +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/models/MetricAvailability.java @@ -15,13 +15,14 @@ @Fluent public final class MetricAvailability { /* - * the time grain specifies the aggregation interval for the metric. Expressed as a duration 'PT1M', 'P1D', etc. + * The time grain specifies a supported aggregation interval for the metric. Expressed as a duration 'PT1M', 'P1D', + * etc. */ @JsonProperty(value = "timeGrain") private Duration timeGrain; /* - * the retention period for the metric at the specified timegrain. Expressed as a duration 'PT1M', 'P1D', etc. + * The retention period for the metric at the specified timegrain. Expressed as a duration 'PT1M', 'P1D', etc. */ @JsonProperty(value = "retention") private Duration retention; @@ -33,8 +34,8 @@ public MetricAvailability() { } /** - * Get the timeGrain property: the time grain specifies the aggregation interval for the metric. Expressed as a - * duration 'PT1M', 'P1D', etc. + * Get the timeGrain property: The time grain specifies a supported aggregation interval for the metric. Expressed + * as a duration 'PT1M', 'P1D', etc. * * @return the timeGrain value. */ @@ -43,8 +44,8 @@ public Duration getTimeGrain() { } /** - * Set the timeGrain property: the time grain specifies the aggregation interval for the metric. Expressed as a - * duration 'PT1M', 'P1D', etc. + * Set the timeGrain property: The time grain specifies a supported aggregation interval for the metric. Expressed + * as a duration 'PT1M', 'P1D', etc. * * @param timeGrain the timeGrain value to set. * @return the MetricAvailability object itself. @@ -55,7 +56,7 @@ public MetricAvailability setTimeGrain(Duration timeGrain) { } /** - * Get the retention property: the retention period for the metric at the specified timegrain. Expressed as a + * Get the retention property: The retention period for the metric at the specified timegrain. Expressed as a * duration 'PT1M', 'P1D', etc. * * @return the retention value. @@ -65,7 +66,7 @@ public Duration getRetention() { } /** - * Set the retention property: the retention period for the metric at the specified timegrain. Expressed as a + * Set the retention property: The retention period for the metric at the specified timegrain. Expressed as a * duration 'PT1M', 'P1D', etc. * * @param retention the retention value to set. diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/models/MetricDefinition.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/models/MetricDefinition.java index 68837e45af61..1a4bad2171f0 100644 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/models/MetricDefinition.java +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/models/MetricDefinition.java @@ -20,19 +20,19 @@ public final class MetricDefinition { private Boolean isDimensionRequired; /* - * the resource identifier of the resource that emitted the metric. + * The resource identifier of the resource that emitted the metric. */ @JsonProperty(value = "resourceId") private String resourceId; /* - * the namespace the metric belongs to. + * The namespace the metric belongs to. */ @JsonProperty(value = "namespace") private String namespace; /* - * the name and the display name of the metric, i.e. it is a localizable string. + * The name and the display name of the metric, i.e. it is a localizable string. */ @JsonProperty(value = "name") private LocalizableString name; @@ -62,31 +62,31 @@ public final class MetricDefinition { private MetricUnit unit; /* - * the primary aggregation type value defining how to use the values for display. + * The primary aggregation type value defining how to use the values for display. */ @JsonProperty(value = "primaryAggregationType") private AggregationType primaryAggregationType; /* - * the collection of what aggregation types are supported. + * The collection of what aggregation types are supported. */ @JsonProperty(value = "supportedAggregationTypes") private List supportedAggregationTypes; /* - * the collection of what aggregation intervals are available to be queried. + * The collection of what aggregation intervals are available to be queried. */ @JsonProperty(value = "metricAvailabilities") private List metricAvailabilities; /* - * the resource identifier of the metric definition. + * The resource identifier of the metric definition. */ @JsonProperty(value = "id") private String id; /* - * the name and the display name of the dimension, i.e. it is a localizable string. + * The name and the display name of the dimension, i.e. it is a localizable string. */ @JsonProperty(value = "dimensions") private List dimensions; @@ -118,7 +118,7 @@ public MetricDefinition setIsDimensionRequired(Boolean isDimensionRequired) { } /** - * Get the resourceId property: the resource identifier of the resource that emitted the metric. + * Get the resourceId property: The resource identifier of the resource that emitted the metric. * * @return the resourceId value. */ @@ -127,7 +127,7 @@ public String getResourceId() { } /** - * Set the resourceId property: the resource identifier of the resource that emitted the metric. + * Set the resourceId property: The resource identifier of the resource that emitted the metric. * * @param resourceId the resourceId value to set. * @return the MetricDefinition object itself. @@ -138,7 +138,7 @@ public MetricDefinition setResourceId(String resourceId) { } /** - * Get the namespace property: the namespace the metric belongs to. + * Get the namespace property: The namespace the metric belongs to. * * @return the namespace value. */ @@ -147,7 +147,7 @@ public String getNamespace() { } /** - * Set the namespace property: the namespace the metric belongs to. + * Set the namespace property: The namespace the metric belongs to. * * @param namespace the namespace value to set. * @return the MetricDefinition object itself. @@ -158,7 +158,7 @@ public MetricDefinition setNamespace(String namespace) { } /** - * Get the name property: the name and the display name of the metric, i.e. it is a localizable string. + * Get the name property: The name and the display name of the metric, i.e. it is a localizable string. * * @return the name value. */ @@ -167,7 +167,7 @@ public LocalizableString getName() { } /** - * Set the name property: the name and the display name of the metric, i.e. it is a localizable string. + * Set the name property: The name and the display name of the metric, i.e. it is a localizable string. * * @param name the name value to set. * @return the MetricDefinition object itself. @@ -258,7 +258,7 @@ public MetricDefinition setUnit(MetricUnit unit) { } /** - * Get the primaryAggregationType property: the primary aggregation type value defining how to use the values for + * Get the primaryAggregationType property: The primary aggregation type value defining how to use the values for * display. * * @return the primaryAggregationType value. @@ -268,7 +268,7 @@ public AggregationType getPrimaryAggregationType() { } /** - * Set the primaryAggregationType property: the primary aggregation type value defining how to use the values for + * Set the primaryAggregationType property: The primary aggregation type value defining how to use the values for * display. * * @param primaryAggregationType the primaryAggregationType value to set. @@ -280,7 +280,7 @@ public MetricDefinition setPrimaryAggregationType(AggregationType primaryAggrega } /** - * Get the supportedAggregationTypes property: the collection of what aggregation types are supported. + * Get the supportedAggregationTypes property: The collection of what aggregation types are supported. * * @return the supportedAggregationTypes value. */ @@ -289,7 +289,7 @@ public List getSupportedAggregationTypes() { } /** - * Set the supportedAggregationTypes property: the collection of what aggregation types are supported. + * Set the supportedAggregationTypes property: The collection of what aggregation types are supported. * * @param supportedAggregationTypes the supportedAggregationTypes value to set. * @return the MetricDefinition object itself. @@ -300,7 +300,7 @@ public MetricDefinition setSupportedAggregationTypes(List suppo } /** - * Get the metricAvailabilities property: the collection of what aggregation intervals are available to be queried. + * Get the metricAvailabilities property: The collection of what aggregation intervals are available to be queried. * * @return the metricAvailabilities value. */ @@ -309,7 +309,7 @@ public List getMetricAvailabilities() { } /** - * Set the metricAvailabilities property: the collection of what aggregation intervals are available to be queried. + * Set the metricAvailabilities property: The collection of what aggregation intervals are available to be queried. * * @param metricAvailabilities the metricAvailabilities value to set. * @return the MetricDefinition object itself. @@ -320,7 +320,7 @@ public MetricDefinition setMetricAvailabilities(List metricA } /** - * Get the id property: the resource identifier of the metric definition. + * Get the id property: The resource identifier of the metric definition. * * @return the id value. */ @@ -329,7 +329,7 @@ public String getId() { } /** - * Set the id property: the resource identifier of the metric definition. + * Set the id property: The resource identifier of the metric definition. * * @param id the id value to set. * @return the MetricDefinition object itself. @@ -340,7 +340,7 @@ public MetricDefinition setId(String id) { } /** - * Get the dimensions property: the name and the display name of the dimension, i.e. it is a localizable string. + * Get the dimensions property: The name and the display name of the dimension, i.e. it is a localizable string. * * @return the dimensions value. */ @@ -349,7 +349,7 @@ public List getDimensions() { } /** - * Set the dimensions property: the name and the display name of the dimension, i.e. it is a localizable string. + * Set the dimensions property: The name and the display name of the dimension, i.e. it is a localizable string. * * @param dimensions the dimensions value to set. * @return the MetricDefinition object itself. diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/models/MetricDefinitionCollection.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/models/MetricDefinitionCollection.java index 1fd268298a7e..4aaf3984bf46 100644 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/models/MetricDefinitionCollection.java +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/models/MetricDefinitionCollection.java @@ -15,7 +15,7 @@ @Immutable public final class MetricDefinitionCollection { /* - * the values for the metric definitions. + * The values for the metric definitions. */ @JsonProperty(value = "value", required = true) private List value; @@ -31,7 +31,7 @@ public MetricDefinitionCollection(@JsonProperty(value = "value", required = true } /** - * Get the value property: the values for the metric definitions. + * Get the value property: The values for the metric definitions. * * @return the value value. */ diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/models/MetricUnit.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/models/MetricUnit.java index a17abb6e296e..6058126d403d 100644 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/models/MetricUnit.java +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/models/MetricUnit.java @@ -13,67 +13,68 @@ */ public final class MetricUnit extends ExpandableStringEnum { /** - * Static value Count for MetricUnit. + * Unit of raw quantity. */ public static final MetricUnit COUNT = fromString("Count"); /** - * Static value Bytes for MetricUnit. + * Unit of memory in bytes. */ public static final MetricUnit BYTES = fromString("Bytes"); /** - * Static value Seconds for MetricUnit. + * Unit of time in seconds. */ public static final MetricUnit SECONDS = fromString("Seconds"); /** - * Static value CountPerSecond for MetricUnit. + * Rate unit of raw quantity per second. */ public static final MetricUnit COUNT_PER_SECOND = fromString("CountPerSecond"); /** - * Static value BytesPerSecond for MetricUnit. + * Rate unit of memory in bytes per second. */ public static final MetricUnit BYTES_PER_SECOND = fromString("BytesPerSecond"); /** - * Static value Percent for MetricUnit. + * Percentage unit. */ public static final MetricUnit PERCENT = fromString("Percent"); /** - * Static value MilliSeconds for MetricUnit. + * Unit of time in 1/1000th of a second. */ public static final MetricUnit MILLI_SECONDS = fromString("MilliSeconds"); /** - * Static value ByteSeconds for MetricUnit. + * Unit of data transfer or storage. It is the size of the data in bytes multiplied by the time it takes to transfer + * or store the data in seconds. */ public static final MetricUnit BYTE_SECONDS = fromString("ByteSeconds"); /** - * Static value Unspecified for MetricUnit. + * No specified unit. */ public static final MetricUnit UNSPECIFIED = fromString("Unspecified"); /** - * Static value Cores for MetricUnit. + * Unit of processing power. */ public static final MetricUnit CORES = fromString("Cores"); /** - * Static value MilliCores for MetricUnit. + * Unit of processing power in 1/1000th of a CPU core. */ public static final MetricUnit MILLI_CORES = fromString("MilliCores"); /** - * Static value NanoCores for MetricUnit. + * Unit of processing power in one billionth of a CPU core. */ public static final MetricUnit NANO_CORES = fromString("NanoCores"); /** - * Static value BitsPerSecond for MetricUnit. + * Rate unit of binary digits per second. */ public static final MetricUnit BITS_PER_SECOND = fromString("BitsPerSecond"); diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/models/SubscriptionScopeMetricDefinition.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/models/SubscriptionScopeMetricDefinition.java new file mode 100644 index 000000000000..127fded5ca4a --- /dev/null +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/models/SubscriptionScopeMetricDefinition.java @@ -0,0 +1,362 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.monitor.query.implementation.metricsdefinitions.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** + * Metric definition class specifies the metadata for a metric. + */ +@Fluent +public final class SubscriptionScopeMetricDefinition { + /* + * Flag to indicate whether the dimension is required. + */ + @JsonProperty(value = "isDimensionRequired") + private Boolean isDimensionRequired; + + /* + * The resource identifier of the resource that emitted the metric. + */ + @JsonProperty(value = "resourceId") + private String resourceId; + + /* + * The namespace the metric belongs to. + */ + @JsonProperty(value = "namespace") + private String namespace; + + /* + * The name and the display name of the metric, i.e. it is a localizable string. + */ + @JsonProperty(value = "name") + private LocalizableString name; + + /* + * Detailed description of this metric. + */ + @JsonProperty(value = "displayDescription") + private String displayDescription; + + /* + * Custom category name for this metric. + */ + @JsonProperty(value = "category") + private String category; + + /* + * The class of the metric. + */ + @JsonProperty(value = "metricClass") + private MetricClass metricClass; + + /* + * The unit of the metric. + */ + @JsonProperty(value = "unit") + private MetricUnit unit; + + /* + * The primary aggregation type value defining how to use the values for display. + */ + @JsonProperty(value = "primaryAggregationType") + private MetricAggregationType primaryAggregationType; + + /* + * The collection of what aggregation types are supported. + */ + @JsonProperty(value = "supportedAggregationTypes") + private List supportedAggregationTypes; + + /* + * The collection of what aggregation intervals are available to be queried. + */ + @JsonProperty(value = "metricAvailabilities") + private List metricAvailabilities; + + /* + * The resource identifier of the metric definition. + */ + @JsonProperty(value = "id") + private String id; + + /* + * The name and the display name of the dimension, i.e. it is a localizable string. + */ + @JsonProperty(value = "dimensions") + private List dimensions; + + /** + * Creates an instance of SubscriptionScopeMetricDefinition class. + */ + public SubscriptionScopeMetricDefinition() { + } + + /** + * Get the isDimensionRequired property: Flag to indicate whether the dimension is required. + * + * @return the isDimensionRequired value. + */ + public Boolean isDimensionRequired() { + return this.isDimensionRequired; + } + + /** + * Set the isDimensionRequired property: Flag to indicate whether the dimension is required. + * + * @param isDimensionRequired the isDimensionRequired value to set. + * @return the SubscriptionScopeMetricDefinition object itself. + */ + public SubscriptionScopeMetricDefinition setIsDimensionRequired(Boolean isDimensionRequired) { + this.isDimensionRequired = isDimensionRequired; + return this; + } + + /** + * Get the resourceId property: The resource identifier of the resource that emitted the metric. + * + * @return the resourceId value. + */ + public String getResourceId() { + return this.resourceId; + } + + /** + * Set the resourceId property: The resource identifier of the resource that emitted the metric. + * + * @param resourceId the resourceId value to set. + * @return the SubscriptionScopeMetricDefinition object itself. + */ + public SubscriptionScopeMetricDefinition setResourceId(String resourceId) { + this.resourceId = resourceId; + return this; + } + + /** + * Get the namespace property: The namespace the metric belongs to. + * + * @return the namespace value. + */ + public String getNamespace() { + return this.namespace; + } + + /** + * Set the namespace property: The namespace the metric belongs to. + * + * @param namespace the namespace value to set. + * @return the SubscriptionScopeMetricDefinition object itself. + */ + public SubscriptionScopeMetricDefinition setNamespace(String namespace) { + this.namespace = namespace; + return this; + } + + /** + * Get the name property: The name and the display name of the metric, i.e. it is a localizable string. + * + * @return the name value. + */ + public LocalizableString getName() { + return this.name; + } + + /** + * Set the name property: The name and the display name of the metric, i.e. it is a localizable string. + * + * @param name the name value to set. + * @return the SubscriptionScopeMetricDefinition object itself. + */ + public SubscriptionScopeMetricDefinition setName(LocalizableString name) { + this.name = name; + return this; + } + + /** + * Get the displayDescription property: Detailed description of this metric. + * + * @return the displayDescription value. + */ + public String getDisplayDescription() { + return this.displayDescription; + } + + /** + * Set the displayDescription property: Detailed description of this metric. + * + * @param displayDescription the displayDescription value to set. + * @return the SubscriptionScopeMetricDefinition object itself. + */ + public SubscriptionScopeMetricDefinition setDisplayDescription(String displayDescription) { + this.displayDescription = displayDescription; + return this; + } + + /** + * Get the category property: Custom category name for this metric. + * + * @return the category value. + */ + public String getCategory() { + return this.category; + } + + /** + * Set the category property: Custom category name for this metric. + * + * @param category the category value to set. + * @return the SubscriptionScopeMetricDefinition object itself. + */ + public SubscriptionScopeMetricDefinition setCategory(String category) { + this.category = category; + return this; + } + + /** + * Get the metricClass property: The class of the metric. + * + * @return the metricClass value. + */ + public MetricClass getMetricClass() { + return this.metricClass; + } + + /** + * Set the metricClass property: The class of the metric. + * + * @param metricClass the metricClass value to set. + * @return the SubscriptionScopeMetricDefinition object itself. + */ + public SubscriptionScopeMetricDefinition setMetricClass(MetricClass metricClass) { + this.metricClass = metricClass; + return this; + } + + /** + * Get the unit property: The unit of the metric. + * + * @return the unit value. + */ + public MetricUnit getUnit() { + return this.unit; + } + + /** + * Set the unit property: The unit of the metric. + * + * @param unit the unit value to set. + * @return the SubscriptionScopeMetricDefinition object itself. + */ + public SubscriptionScopeMetricDefinition setUnit(MetricUnit unit) { + this.unit = unit; + return this; + } + + /** + * Get the primaryAggregationType property: The primary aggregation type value defining how to use the values for + * display. + * + * @return the primaryAggregationType value. + */ + public MetricAggregationType getPrimaryAggregationType() { + return this.primaryAggregationType; + } + + /** + * Set the primaryAggregationType property: The primary aggregation type value defining how to use the values for + * display. + * + * @param primaryAggregationType the primaryAggregationType value to set. + * @return the SubscriptionScopeMetricDefinition object itself. + */ + public SubscriptionScopeMetricDefinition setPrimaryAggregationType(MetricAggregationType primaryAggregationType) { + this.primaryAggregationType = primaryAggregationType; + return this; + } + + /** + * Get the supportedAggregationTypes property: The collection of what aggregation types are supported. + * + * @return the supportedAggregationTypes value. + */ + public List getSupportedAggregationTypes() { + return this.supportedAggregationTypes; + } + + /** + * Set the supportedAggregationTypes property: The collection of what aggregation types are supported. + * + * @param supportedAggregationTypes the supportedAggregationTypes value to set. + * @return the SubscriptionScopeMetricDefinition object itself. + */ + public SubscriptionScopeMetricDefinition + setSupportedAggregationTypes(List supportedAggregationTypes) { + this.supportedAggregationTypes = supportedAggregationTypes; + return this; + } + + /** + * Get the metricAvailabilities property: The collection of what aggregation intervals are available to be queried. + * + * @return the metricAvailabilities value. + */ + public List getMetricAvailabilities() { + return this.metricAvailabilities; + } + + /** + * Set the metricAvailabilities property: The collection of what aggregation intervals are available to be queried. + * + * @param metricAvailabilities the metricAvailabilities value to set. + * @return the SubscriptionScopeMetricDefinition object itself. + */ + public SubscriptionScopeMetricDefinition setMetricAvailabilities(List metricAvailabilities) { + this.metricAvailabilities = metricAvailabilities; + return this; + } + + /** + * Get the id property: The resource identifier of the metric definition. + * + * @return the id value. + */ + public String getId() { + return this.id; + } + + /** + * Set the id property: The resource identifier of the metric definition. + * + * @param id the id value to set. + * @return the SubscriptionScopeMetricDefinition object itself. + */ + public SubscriptionScopeMetricDefinition setId(String id) { + this.id = id; + return this; + } + + /** + * Get the dimensions property: The name and the display name of the dimension, i.e. it is a localizable string. + * + * @return the dimensions value. + */ + public List getDimensions() { + return this.dimensions; + } + + /** + * Set the dimensions property: The name and the display name of the dimension, i.e. it is a localizable string. + * + * @param dimensions the dimensions value to set. + * @return the SubscriptionScopeMetricDefinition object itself. + */ + public SubscriptionScopeMetricDefinition setDimensions(List dimensions) { + this.dimensions = dimensions; + return this; + } +} diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/models/SubscriptionScopeMetricDefinitionCollection.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/models/SubscriptionScopeMetricDefinitionCollection.java new file mode 100644 index 000000000000..d057beb8b0a2 --- /dev/null +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/models/SubscriptionScopeMetricDefinitionCollection.java @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.monitor.query.implementation.metricsdefinitions.models; + +import com.azure.core.annotation.Immutable; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** + * Represents collection of metric definitions. + */ +@Immutable +public final class SubscriptionScopeMetricDefinitionCollection { + /* + * The values for the metric definitions. + */ + @JsonProperty(value = "value", required = true) + private List value; + + /** + * Creates an instance of SubscriptionScopeMetricDefinitionCollection class. + * + * @param value the value value to set. + */ + @JsonCreator + public SubscriptionScopeMetricDefinitionCollection( + @JsonProperty(value = "value", required = true) List value) { + this.value = value; + } + + /** + * Get the value property: The values for the metric definitions. + * + * @return the value value. + */ + public List getValue() { + return this.value; + } +} diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/models/package-info.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/models/package-info.java index 5b0e43e7860a..0e3344ce35ff 100644 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/models/package-info.java +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/models/package-info.java @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. /** - * Package containing the data models for MonitorManagementClient. - * null. + * Package containing the data models for AzureMonitorMetricsDefinitionsAPI. + * Provides APIs for getting the metric metadata for Azure resources. */ package com.azure.monitor.query.implementation.metricsdefinitions.models; diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/package-info.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/package-info.java index 9ef6e69c5fac..e33af1f7b2b4 100644 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/package-info.java +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsdefinitions/package-info.java @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. /** - * Package containing the classes for MonitorManagementClient. - * null. + * Package containing the classes for AzureMonitorMetricsDefinitionsAPI. + * Provides APIs for getting the metric metadata for Azure resources. */ package com.azure.monitor.query.implementation.metricsdefinitions; diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsnamespaces/MetricsNamespacesClientImplBuilder.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsnamespaces/MetricsNamespacesClientImplBuilder.java index 32cad800892f..bf881c5c6cc9 100644 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsnamespaces/MetricsNamespacesClientImplBuilder.java +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/implementation/metricsnamespaces/MetricsNamespacesClientImplBuilder.java @@ -269,7 +269,7 @@ public MetricsNamespacesClientImplBuilder retryPolicy(RetryPolicy retryPolicy) { public MetricsNamespacesClientImpl buildClient() { HttpPipeline localPipeline = (pipeline != null) ? pipeline : createHttpPipeline(); String localHost = (host != null) ? host : "https://management.azure.com"; - String localApiVersion = (apiVersion != null) ? apiVersion : "2017-12-01-preview"; + String localApiVersion = (apiVersion != null) ? apiVersion : "2024-02-01"; SerializerAdapter localSerializerAdapter = (serializerAdapter != null) ? serializerAdapter : JacksonAdapter.createDefaultSerializerAdapter(); MetricsNamespacesClientImpl client @@ -308,7 +308,7 @@ private HttpPipeline createHttpPipeline() { this.pipelinePolicies.stream().filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY) .forEach(p -> policies.add(p)); HttpPolicyProviders.addAfterRetryPolicies(policies); - policies.add(new HttpLoggingPolicy(httpLogOptions)); + policies.add(new HttpLoggingPolicy(localHttpLogOptions)); HttpPipeline httpPipeline = new HttpPipelineBuilder().policies(policies.toArray(new HttpPipelinePolicy[0])) .httpClient(httpClient).clientOptions(localClientOptions).build(); return httpPipeline; diff --git a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/models/MetricsBatchQueryOptions.java b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/models/MetricsBatchQueryOptions.java index d3470a871eff..108ebb5b57f3 100644 --- a/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/models/MetricsBatchQueryOptions.java +++ b/sdk/monitor/azure-monitor-query/src/main/java/com/azure/monitor/query/models/MetricsBatchQueryOptions.java @@ -20,6 +20,8 @@ public final class MetricsBatchQueryOptions { private String orderBy; private String filter; + private String rollupBy; + /** * Returns the time span for which the metrics data is queried. @@ -133,4 +135,32 @@ public MetricsBatchQueryOptions setFilter(String filter) { this.filter = filter; return this; } + + /** + * Gets the dimension name(s) to rollup results by. For example if you only want to see metric values with a + * filter like 'City eq Seattle or City eq Tacoma' but don't want to see separate values for each city, you can + * specify 'RollUpBy=City' to see the results for Seattle and Tacoma rolled up into one timeseries. + * + * @return the dimension name(s) to rollup results by. For example if you only want to see metric values with a + * filter like 'City eq Seattle or City eq Tacoma' but don't want to see separate values for each city, you can + * specify 'RollUpBy=City' to see the results for Seattle and Tacoma rolled up into one timeseries. + */ + public String getRollupBy() { + return rollupBy; + } + + /** + * Sets the dimension name(s) to rollup results by. For example if you only want to see metric values with a + * filter like 'City eq Seattle or City eq Tacoma' but don't want to see separate values for each city, you can + * specify 'RollUpBy=City' to see the results for Seattle and Tacoma rolled up into one timeseries. + * + * @param rollupBy the dimension name(s) to rollup results by. For example if you only want to see metric values with a + * filter like 'City eq Seattle or City eq Tacoma' but don't want to see separate values for each city, you can + * specify 'RollUpBy=City' to see the results for Seattle and Tacoma rolled up into one timeseries. + * @return The updated options instance + */ + public MetricsBatchQueryOptions setRollupBy(String rollupBy) { + this.rollupBy = rollupBy; + return this; + } } diff --git a/sdk/monitor/azure-monitor-query/src/samples/java/com/azure/monitor/query/MetricsBatchQuerySample.java b/sdk/monitor/azure-monitor-query/src/samples/java/com/azure/monitor/query/MetricsBatchQuerySample.java index 4b800a15fc1c..6ef22212bcbf 100644 --- a/sdk/monitor/azure-monitor-query/src/samples/java/com/azure/monitor/query/MetricsBatchQuerySample.java +++ b/sdk/monitor/azure-monitor-query/src/samples/java/com/azure/monitor/query/MetricsBatchQuerySample.java @@ -21,7 +21,7 @@ public class MetricsBatchQuerySample { * @param args Unused. Arguments to the program. */ public static void main(String[] args) { - MetricsBatchQueryClient metricsBatchQueryClient = new MetricsBatchQueryClientBuilder() + MetricsClient metricsBatchQueryClient = new MetricsClientBuilder() .credential(new DefaultAzureCredentialBuilder().build()) .endpoint("https://westus2.monitoring.azure.com") .buildClient(); diff --git a/sdk/monitor/azure-monitor-query/src/samples/java/com/azure/monitor/query/ReadmeSamples.java b/sdk/monitor/azure-monitor-query/src/samples/java/com/azure/monitor/query/ReadmeSamples.java index 70c58a87cc8c..9d2ea302797a 100644 --- a/sdk/monitor/azure-monitor-query/src/samples/java/com/azure/monitor/query/ReadmeSamples.java +++ b/sdk/monitor/azure-monitor-query/src/samples/java/com/azure/monitor/query/ReadmeSamples.java @@ -74,14 +74,14 @@ public void createMetricsClients() { public void createMetricsBatchClients() { // BEGIN: readme-sample-createMetricsBatchQueryClient - MetricsBatchQueryClient metricsBatchQueryClient = new MetricsBatchQueryClientBuilder() + MetricsClient metricsBatchQueryClient = new MetricsClientBuilder() .credential(new DefaultAzureCredentialBuilder().build()) .endpoint("{endpoint}") .buildClient(); // END: readme-sample-createMetricsBatchQueryClient // BEGIN: readme-sample-createMetricsBatchQueryAsyncClient - MetricsBatchQueryAsyncClient metricsBatchQueryAsyncClient = new MetricsBatchQueryClientBuilder() + MetricsAsyncClient metricsAsyncClient = new MetricsClientBuilder() .credential(new DefaultAzureCredentialBuilder().build()) .endpoint("{endpoint}") .buildAsyncClient(); @@ -448,7 +448,7 @@ public void createMetricsClientWithSovereignCloud() { */ public void getMetricsBatch() { // BEGIN: readme-sample-metricsquerybatch - MetricsBatchQueryClient metricsBatchQueryClient = new MetricsBatchQueryClientBuilder() + MetricsClient metricsBatchQueryClient = new MetricsClientBuilder() .credential(new DefaultAzureCredentialBuilder().build()) .endpoint("{endpoint}") .buildClient(); diff --git a/sdk/monitor/azure-monitor-query/src/samples/java/com/azure/monitor/query/codesnippets/MetricsBatchQueryClientJavaDocCodeSnippets.java b/sdk/monitor/azure-monitor-query/src/samples/java/com/azure/monitor/query/codesnippets/MetricsBatchQueryClientJavaDocCodeSnippets.java index 5b574c42b119..1f0d2dfc6260 100644 --- a/sdk/monitor/azure-monitor-query/src/samples/java/com/azure/monitor/query/codesnippets/MetricsBatchQueryClientJavaDocCodeSnippets.java +++ b/sdk/monitor/azure-monitor-query/src/samples/java/com/azure/monitor/query/codesnippets/MetricsBatchQueryClientJavaDocCodeSnippets.java @@ -4,9 +4,9 @@ package com.azure.monitor.query.codesnippets; import com.azure.identity.DefaultAzureCredentialBuilder; -import com.azure.monitor.query.MetricsBatchQueryAsyncClient; -import com.azure.monitor.query.MetricsBatchQueryClient; -import com.azure.monitor.query.MetricsBatchQueryClientBuilder; +import com.azure.monitor.query.MetricsAsyncClient; +import com.azure.monitor.query.MetricsClient; +import com.azure.monitor.query.MetricsClientBuilder; import com.azure.monitor.query.models.MetricResult; import com.azure.monitor.query.models.MetricsBatchQueryResult; import com.azure.monitor.query.models.MetricsQueryResult; @@ -16,15 +16,15 @@ /** * This class contains code samples for generating javadocs through doclets - * for {@link com.azure.monitor.query.MetricsBatchQueryClient} + * for {@link MetricsClient} */ public class MetricsBatchQueryClientJavaDocCodeSnippets { /** - * Generates code sample for creating a {@link MetricsBatchQueryClient}. + * Generates code sample for creating a {@link MetricsClient}. */ public void createClient() { // BEGIN: com.azure.monitor.query.MetricsBatchQueryClient.instantiation - MetricsBatchQueryClient metricsBatchQueryClient = new MetricsBatchQueryClientBuilder() + MetricsClient metricsBatchQueryClient = new MetricsClientBuilder() .endpoint("{endpoint}") .credential(new DefaultAzureCredentialBuilder().build()) .buildClient(); @@ -33,7 +33,7 @@ public void createClient() { public void createAsyncClient() { // BEGIN: com.azure.monitor.query.MetricsBatchQueryAsyncClient.instantiation - MetricsBatchQueryAsyncClient metricsBatchQueryAsyncClient = new MetricsBatchQueryClientBuilder() + MetricsAsyncClient metricsAsyncClient = new MetricsClientBuilder() .endpoint("{endpoint}") .credential(new DefaultAzureCredentialBuilder().build()) .buildAsyncClient(); @@ -41,10 +41,10 @@ public void createAsyncClient() { } /** - * Generates a code sample for using {@link MetricsBatchQueryClient#queryBatch(List, List, String)}. + * Generates a code sample for using {@link MetricsClient#queryBatch(List, List, String)}. */ public void queryBatch() { - MetricsBatchQueryClient metricsBatchQueryClient = new MetricsBatchQueryClientBuilder() + MetricsClient metricsBatchQueryClient = new MetricsClientBuilder() .endpoint("{endpoint}") .credential(new DefaultAzureCredentialBuilder().build()) .buildClient(); @@ -76,13 +76,13 @@ public void queryBatch() { } public void queryBatchAsync() { - MetricsBatchQueryAsyncClient metricsBatchQueryAsyncClient = new MetricsBatchQueryClientBuilder() + MetricsAsyncClient metricsAsyncClient = new MetricsClientBuilder() .endpoint("{endpoint}") .credential(new DefaultAzureCredentialBuilder().build()) .buildAsyncClient(); // BEGIN: com.azure.monitor.query.MetricsBatchQueryAsyncClient.queryBatch#List-List-String - metricsBatchQueryAsyncClient.queryBatch( + metricsAsyncClient.queryBatch( Arrays.asList("{resourceId1}", "{resourceId2}"), Arrays.asList("{metricId}"), "{metricNamespace}") .subscribe(metricsBatchResult -> { diff --git a/sdk/monitor/azure-monitor-query/src/test/java/com/azure/monitor/query/LogsQueryAsyncClientTest.java b/sdk/monitor/azure-monitor-query/src/test/java/com/azure/monitor/query/LogsQueryAsyncClientTest.java index 90a88324a750..13345d836838 100644 --- a/sdk/monitor/azure-monitor-query/src/test/java/com/azure/monitor/query/LogsQueryAsyncClientTest.java +++ b/sdk/monitor/azure-monitor-query/src/test/java/com/azure/monitor/query/LogsQueryAsyncClientTest.java @@ -11,6 +11,7 @@ import com.azure.core.http.policy.RetryStrategy; import com.azure.core.test.TestMode; import com.azure.core.test.TestProxyTestBase; +import com.azure.core.test.annotation.DoNotRecord; import com.azure.core.test.http.AssertingHttpClientBuilder; import com.azure.core.util.Context; import com.azure.core.util.serializer.TypeReference; @@ -21,10 +22,12 @@ import com.azure.monitor.query.models.LogsQueryOptions; import com.azure.monitor.query.models.LogsQueryResult; import com.azure.monitor.query.models.LogsQueryResultStatus; +import com.azure.monitor.query.models.LogsTableCell; import com.azure.monitor.query.models.QueryTimeInterval; import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.condition.DisabledIfEnvironmentVariable; +import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable; import reactor.core.publisher.Mono; import reactor.test.StepVerifier; @@ -32,12 +35,14 @@ import java.time.LocalDateTime; import java.time.OffsetDateTime; import java.time.ZoneOffset; -import java.util.Arrays; +import java.util.Collections; import java.util.LinkedHashMap; import java.util.List; -import static com.azure.monitor.query.MonitorQueryTestUtils.*; +import static com.azure.monitor.query.MonitorQueryTestUtils.QUERY_STRING; +import static com.azure.monitor.query.MonitorQueryTestUtils.getAdditionalLogWorkspaceId; import static com.azure.monitor.query.MonitorQueryTestUtils.getLogResourceId; +import static com.azure.monitor.query.MonitorQueryTestUtils.getLogWorkspaceId; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertNull; @@ -52,11 +57,14 @@ public class LogsQueryAsyncClientTest extends TestProxyTestBase { private String workspaceId; + private String additionalWorkspaceId; + private String resourceId; @BeforeEach public void setup() { workspaceId = getLogWorkspaceId(interceptorManager.isPlaybackMode()); + additionalWorkspaceId = getAdditionalLogWorkspaceId(interceptorManager.isPlaybackMode()); resourceId = getLogResourceId(interceptorManager.isPlaybackMode()); LogsQueryClientBuilder clientBuilder = new LogsQueryClientBuilder() .retryPolicy(new RetryPolicy(new RetryStrategy() { @@ -123,6 +131,7 @@ public void testLogsResourceQuery() { } @Test + @DoNotRecord(skipInPlayback = true) public void testLogsQueryAllowPartialSuccess() { // Arrange final String query = "let dt = datatable (DateTime: datetime, Bool:bool, Guid: guid, Int: " @@ -205,26 +214,33 @@ public void testLogsQueryBatchWithServerTimeout() { } @Test - @DisabledIfEnvironmentVariable(named = "AZURE_TEST_MODE", matches = "LIVE", disabledReason = "multi-workspace " - + "queries require sending logs to Azure Monitor first. So, run this test in playback or record mode only.") public void testMultipleWorkspaces() { + + final String multipleWorkspacesQuery = "let dt = datatable (DateTime: datetime, Bool:bool, Guid: guid, Int: " + + "int, Long:long, Double: double, String: string, Timespan: timespan, Decimal: decimal, Dynamic: dynamic, TenantId: string)\n" + + "[datetime(2015-12-31 23:59:59.9), false, guid(74be27de-1e4e-49d9-b579-fe0b331d3642), 12345, 1, 12345.6789," + + " 'string value', 10s, decimal(0.10101), dynamic({\"a\":123, \"b\":\"hello\", \"c\":[1,2,3], \"d\":{}}), \"" + workspaceId + "\"" + + ", datetime(2015-12-31 23:59:59.9), false, guid(74be27de-1e4e-49d9-b579-fe0b331d3642), 12345, 1, 12345.6789," + + " 'string value', 10s, decimal(0.10101), dynamic({\"a\":123, \"b\":\"hello\", \"c\":[1,2,3], \"d\":{}}), \"" + additionalWorkspaceId + "\"];" + + "range x from 1 to 2 step 1 | extend y=1 | join kind=fullouter dt on $left.y == $right.Long"; StepVerifier.create(client.queryWorkspaceWithResponse(workspaceId, - "union * | where TimeGenerated > ago(100d) | project TenantId | summarize count() by TenantId", null, - new LogsQueryOptions() - .setAdditionalWorkspaces(Arrays.asList("9dad0092-fd13-403a-b367-a189a090a541")), - Context.NONE)) - .assertNext(response -> { - LogsQueryResult queryResults = response.getValue(); - assertEquals(1, queryResults.getAllTables().size()); - assertEquals(2, queryResults - .getAllTables() - .get(0) - .getRows() - .stream() - .map(row -> row.getColumnValue("TenantId").get()) - .distinct() - .count()); - }).verifyComplete(); + multipleWorkspacesQuery, null, + new LogsQueryOptions() + .setAdditionalWorkspaces(Collections.singletonList(additionalWorkspaceId)), + Context.NONE)) + .assertNext(response -> { + LogsQueryResult queryResults = response.getValue(); + assertEquals(1, queryResults.getAllTables().size()); + assertEquals(2, queryResults + .getAllTables() + .get(0) + .getRows() + .stream() + .map(row -> row.getColumnValue("TenantId").get()) + .map(LogsTableCell::getValueAsString) + .distinct() + .count()); + }).verifyComplete(); } @Test @@ -234,31 +250,31 @@ public void testBatchQueryPartialSuccess() { logsBatchQuery.addWorkspaceQuery(workspaceId, QUERY_STRING + " | take", null); StepVerifier.create(client - .queryBatchWithResponse(logsBatchQuery, Context.NONE)) - .assertNext(response -> { - LogsBatchQueryResultCollection batchResultCollection = response.getValue(); - List responses = batchResultCollection.getBatchResults(); - - assertEquals(2, responses.size()); - assertEquals(LogsQueryResultStatus.SUCCESS, responses.get(0).getQueryResultStatus()); - assertNull(responses.get(0).getError()); - assertEquals(LogsQueryResultStatus.FAILURE, responses.get(1).getQueryResultStatus()); - assertNotNull(responses.get(1).getError()); - assertEquals("BadArgumentError", responses.get(1).getError().getCode()); - }) - .verifyComplete(); + .queryBatchWithResponse(logsBatchQuery, Context.NONE)) + .assertNext(response -> { + LogsBatchQueryResultCollection batchResultCollection = response.getValue(); + List responses = batchResultCollection.getBatchResults(); + + assertEquals(2, responses.size()); + assertEquals(LogsQueryResultStatus.SUCCESS, responses.get(0).getQueryResultStatus()); + assertNull(responses.get(0).getError()); + assertEquals(LogsQueryResultStatus.FAILURE, responses.get(1).getQueryResultStatus()); + assertNotNull(responses.get(1).getError()); + assertEquals("BadArgumentError", responses.get(1).getError().getCode()); + }) + .verifyComplete(); } @Test public void testStatistics() { StepVerifier.create(client.queryWorkspaceWithResponse(workspaceId, - QUERY_STRING, null, new LogsQueryOptions().setIncludeStatistics(true), Context.NONE)) - .assertNext(response -> { - LogsQueryResult queryResults = response.getValue(); - assertEquals(1, queryResults.getAllTables().size()); - assertNotNull(queryResults.getStatistics()); - }) - .verifyComplete(); + QUERY_STRING, null, new LogsQueryOptions().setIncludeStatistics(true), Context.NONE)) + .assertNext(response -> { + LogsQueryResult queryResults = response.getValue(); + assertEquals(1, queryResults.getAllTables().size()); + assertNotNull(queryResults.getStatistics()); + }) + .verifyComplete(); } @Test @@ -274,6 +290,7 @@ QUERY_STRING, null, new LogsQueryOptions().setIncludeStatistics(true), Context.N } @Test + @Disabled public void testBatchStatistics() { LogsBatchQuery logsBatchQuery = new LogsBatchQuery(); logsBatchQuery.addWorkspaceQuery(workspaceId, QUERY_STRING, null); @@ -298,7 +315,7 @@ public void testBatchStatistics() { } @Test - @DisabledIfEnvironmentVariable(named = "AZURE_TEST_MODE", matches = "LIVE", disabledReason = "server timeout is " + @EnabledIfEnvironmentVariable(named = "AZURE_TEST_MODE", matches = "LIVE", disabledReason = "server timeout is " + " not readily reproducible and because the service caches query results, the queries that require extended time " + "to complete if run the first time can return immediately if a cached result is available. So, this test can " + " wait for a long time before succeeding. So, disabling this in LIVE test mode") @@ -377,7 +394,5 @@ query, null, new LogsQueryOptions().setIncludeStatistics(true).setIncludeVisuali }) .verifyComplete(); - - } } diff --git a/sdk/monitor/azure-monitor-query/src/test/java/com/azure/monitor/query/LogsQueryClientTest.java b/sdk/monitor/azure-monitor-query/src/test/java/com/azure/monitor/query/LogsQueryClientTest.java index 24f9ad09bdca..8748da3d2679 100644 --- a/sdk/monitor/azure-monitor-query/src/test/java/com/azure/monitor/query/LogsQueryClientTest.java +++ b/sdk/monitor/azure-monitor-query/src/test/java/com/azure/monitor/query/LogsQueryClientTest.java @@ -12,6 +12,7 @@ import com.azure.core.http.rest.Response; import com.azure.core.test.TestMode; import com.azure.core.test.TestProxyTestBase; +import com.azure.core.test.annotation.DoNotRecord; import com.azure.core.test.http.AssertingHttpClientBuilder; import com.azure.core.util.Context; import com.azure.core.util.serializer.TypeReference; @@ -22,23 +23,26 @@ import com.azure.monitor.query.models.LogsQueryOptions; import com.azure.monitor.query.models.LogsQueryResult; import com.azure.monitor.query.models.LogsQueryResultStatus; +import com.azure.monitor.query.models.LogsTableCell; import com.azure.monitor.query.models.QueryTimeInterval; import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.condition.DisabledIfEnvironmentVariable; +import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable; import reactor.core.publisher.Mono; import java.time.Duration; import java.time.LocalDateTime; import java.time.OffsetDateTime; import java.time.ZoneOffset; -import java.util.Arrays; +import java.util.Collections; import java.util.LinkedHashMap; import java.util.List; import static com.azure.monitor.query.MonitorQueryTestUtils.QUERY_STRING; -import static com.azure.monitor.query.MonitorQueryTestUtils.getLogWorkspaceId; +import static com.azure.monitor.query.MonitorQueryTestUtils.getAdditionalLogWorkspaceId; import static com.azure.monitor.query.MonitorQueryTestUtils.getLogResourceId; +import static com.azure.monitor.query.MonitorQueryTestUtils.getLogWorkspaceId; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertNull; @@ -54,11 +58,14 @@ public class LogsQueryClientTest extends TestProxyTestBase { private String workspaceId; + private String additionalWorkspaceId; + private String resourceId; @BeforeEach public void setup() { workspaceId = getLogWorkspaceId(interceptorManager.isPlaybackMode()); + additionalWorkspaceId = getAdditionalLogWorkspaceId(interceptorManager.isPlaybackMode()); resourceId = getLogResourceId(interceptorManager.isPlaybackMode()); LogsQueryClientBuilder clientBuilder = new LogsQueryClientBuilder() .retryPolicy(new RetryPolicy(new RetryStrategy() { @@ -120,8 +127,8 @@ public void testLogsQueryResource() { } @Test + @DoNotRecord(skipInPlayback = true) public void testLogsQueryAllowPartialSuccess() { - // Arrange final String query = "let dt = datatable (DateTime: datetime, Bool:bool, Guid: guid, Int: " + "int, Long:long, Double: double, String: string, Timespan: timespan, Decimal: decimal, Dynamic: dynamic)\n" @@ -197,13 +204,19 @@ public void testLogsQueryBatchWithServerTimeout() { } @Test - @DisabledIfEnvironmentVariable(named = "AZURE_TEST_MODE", matches = "LIVE", disabledReason = "multi-workspace " - + "queries require sending logs to Azure Monitor first. So, run this test in playback or record mode only.") public void testMultipleWorkspaces() { + final String multipleWorkspacesQuery = "let dt = datatable (DateTime: datetime, Bool:bool, Guid: guid, Int: " + + "int, Long:long, Double: double, String: string, Timespan: timespan, Decimal: decimal, Dynamic: dynamic, TenantId: string)\n" + + "[datetime(2015-12-31 23:59:59.9), false, guid(74be27de-1e4e-49d9-b579-fe0b331d3642), 12345, 1, 12345.6789," + + " 'string value', 10s, decimal(0.10101), dynamic({\"a\":123, \"b\":\"hello\", \"c\":[1,2,3], \"d\":{}}), \"" + workspaceId + "\"" + + ", datetime(2015-12-31 23:59:59.9), false, guid(74be27de-1e4e-49d9-b579-fe0b331d3642), 12345, 1, 12345.6789," + + " 'string value', 10s, decimal(0.10101), dynamic({\"a\":123, \"b\":\"hello\", \"c\":[1,2,3], \"d\":{}}), \"" + additionalWorkspaceId + "\"];" + + "range x from 1 to 2 step 1 | extend y=1 | join kind=fullouter dt on $left.y == $right.Long"; + LogsQueryResult queryResults = client.queryWorkspaceWithResponse(workspaceId, - "union * | where TimeGenerated > ago(100d) | project TenantId | summarize count() by TenantId", null, + multipleWorkspacesQuery, null, new LogsQueryOptions() - .setAdditionalWorkspaces(Arrays.asList("9dad0092-fd13-403a-b367-a189a090a541")), Context.NONE) + .setAdditionalWorkspaces(Collections.singletonList(additionalWorkspaceId)), Context.NONE) .getValue(); assertEquals(1, queryResults.getAllTables().size()); assertEquals(2, queryResults @@ -211,9 +224,8 @@ public void testMultipleWorkspaces() { .get(0) .getRows() .stream() - .map(row -> { - return row.getColumnValue("TenantId").get(); - }) + .map(row -> row.getColumnValue("TenantId").get()) + .map(LogsTableCell::getValueAsString) .distinct() .count()); } @@ -256,6 +268,7 @@ QUERY_STRING, null, new LogsQueryOptions().setIncludeStatistics(true), Context.N } @Test + @Disabled public void testBatchStatistics() { LogsBatchQuery logsBatchQuery = new LogsBatchQuery(); logsBatchQuery.addWorkspaceQuery(workspaceId, QUERY_STRING, null); @@ -277,7 +290,7 @@ public void testBatchStatistics() { } @Test - @DisabledIfEnvironmentVariable(named = "AZURE_TEST_MODE", matches = "LIVE", disabledReason = "server timeout is " + @EnabledIfEnvironmentVariable(named = "AZURE_TEST_MODE", matches = "LIVE", disabledReason = "server timeout is " + " not readily reproducible and because the service caches query results, the queries that require extended time " + "to complete if run the first time can return immediately if a cached result is available. So, this test can " + " wait for a long time before succeeding. So, disabling this in LIVE test mode") diff --git a/sdk/monitor/azure-monitor-query/src/test/java/com/azure/monitor/query/MetricsBatchQueryClientTest.java b/sdk/monitor/azure-monitor-query/src/test/java/com/azure/monitor/query/MetricsClientTest.java similarity index 89% rename from sdk/monitor/azure-monitor-query/src/test/java/com/azure/monitor/query/MetricsBatchQueryClientTest.java rename to sdk/monitor/azure-monitor-query/src/test/java/com/azure/monitor/query/MetricsClientTest.java index e813567b4a77..ce1ea8d3540e 100644 --- a/sdk/monitor/azure-monitor-query/src/test/java/com/azure/monitor/query/MetricsBatchQueryClientTest.java +++ b/sdk/monitor/azure-monitor-query/src/test/java/com/azure/monitor/query/MetricsClientTest.java @@ -22,13 +22,13 @@ import static org.junit.jupiter.api.Assertions.*; /** - * Unit tests for {@link MetricsBatchQueryClient}. + * Unit tests for {@link MetricsClient}. */ -public class MetricsBatchQueryClientTest extends MetricsBatchQueryTestBase { +public class MetricsClientTest extends MetricsClientTestBase { @Test public void testMetricsBatchQuery() { - MetricsBatchQueryClient metricsBatchQueryClient = clientBuilder + MetricsClient metricsClient = clientBuilder .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BODY_AND_HEADERS)) .buildClient(); String resourceId = Configuration.getGlobalConfiguration().get("AZURE_MONITOR_METRICS_RESOURCE_URI_2", FAKE_RESOURCE_ID); @@ -45,7 +45,7 @@ public void testMetricsBatchQuery() { .setTop(10) .setTimeInterval(new QueryTimeInterval(OffsetDateTime.now().minusDays(1), OffsetDateTime.now())); - MetricsBatchQueryResult metricsQueryResults = metricsBatchQueryClient.queryBatchWithResponse( + MetricsBatchQueryResult metricsQueryResults = metricsClient.queryBatchWithResponse( Arrays.asList(resourceId), Arrays.asList("HttpIncomingRequestCount"), "microsoft.appconfiguration/configurationstores", options, Context.NONE) .getValue(); @@ -58,7 +58,7 @@ public void testMetricsBatchQuery() { @Test public void testMetricsBatchQueryDifferentResourceTypes() { - MetricsBatchQueryClient metricsBatchQueryClient = clientBuilder + MetricsClient metricsBatchQueryClient = clientBuilder .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BODY_AND_HEADERS)) .buildClient(); String resourceId1 = Configuration.getGlobalConfiguration().get("AZURE_MONITOR_METRICS_RESOURCE_URI_1", FAKE_RESOURCE_ID); diff --git a/sdk/monitor/azure-monitor-query/src/test/java/com/azure/monitor/query/MetricsBatchQueryTestBase.java b/sdk/monitor/azure-monitor-query/src/test/java/com/azure/monitor/query/MetricsClientTestBase.java similarity index 93% rename from sdk/monitor/azure-monitor-query/src/test/java/com/azure/monitor/query/MetricsBatchQueryTestBase.java rename to sdk/monitor/azure-monitor-query/src/test/java/com/azure/monitor/query/MetricsClientTestBase.java index da9882f8bc05..41baabcb4bb9 100644 --- a/sdk/monitor/azure-monitor-query/src/test/java/com/azure/monitor/query/MetricsBatchQueryTestBase.java +++ b/sdk/monitor/azure-monitor-query/src/test/java/com/azure/monitor/query/MetricsClientTestBase.java @@ -14,18 +14,18 @@ import java.util.Arrays; -public class MetricsBatchQueryTestBase extends TestProxyTestBase { +public class MetricsClientTestBase extends TestProxyTestBase { static final String FAKE_RESOURCE_ID = "/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/rg/providers/Microsoft.Compute/virtualMachines/vm"; protected String metricEndpoint; - protected MetricsBatchQueryClientBuilder clientBuilder; + protected MetricsClientBuilder clientBuilder; protected ConfigurationClient configClient; @Override public void beforeTest() { metricEndpoint = Configuration.getGlobalConfiguration().get("AZURE_MONITOR_METRICS_ENDPOINT", "https://westus.metrics.monitor.azure.com"); - MetricsBatchQueryClientBuilder clientBuilder = new MetricsBatchQueryClientBuilder(); + MetricsClientBuilder clientBuilder = new MetricsClientBuilder(); ConfigurationClientBuilder configClientBuilder = new ConfigurationClientBuilder(); if (getTestMode() == TestMode.PLAYBACK) { interceptorManager.addMatchers(new CustomMatcher() diff --git a/sdk/monitor/azure-monitor-query/src/test/java/com/azure/monitor/query/MonitorQueryTestUtils.java b/sdk/monitor/azure-monitor-query/src/test/java/com/azure/monitor/query/MonitorQueryTestUtils.java index 145c126c3be8..67eecd56aeec 100644 --- a/sdk/monitor/azure-monitor-query/src/test/java/com/azure/monitor/query/MonitorQueryTestUtils.java +++ b/sdk/monitor/azure-monitor-query/src/test/java/com/azure/monitor/query/MonitorQueryTestUtils.java @@ -15,6 +15,9 @@ private MonitorQueryTestUtils() { private static final String LOG_WORKSPACE_ID = Configuration.getGlobalConfiguration() .get("AZURE_MONITOR_LOGS_WORKSPACE_ID"); + private static final String ADDITIONAL_LOG_WORKSPACE_ID = Configuration.getGlobalConfiguration() + .get("AZURE_MONITOR_LOGS_ADDITIONAL_WORKSPACE_ID"); + private static final String LOG_RESOURCE_ID = Configuration.getGlobalConfiguration() .get("AZURE_MONITOR_LOGS_RESOURCE_ID"); @@ -38,25 +41,33 @@ private MonitorQueryTestUtils() { public static String getLogWorkspaceId(boolean isPlaybackMode) { if (isPlaybackMode) { - return "d2d0e126-fa1e-4b0a-b647-250cdd471e68"; + return "f87c198a-4353-4612-ae3c-9fe34076b771"; } else { return LOG_WORKSPACE_ID; } } + public static String getAdditionalLogWorkspaceId(boolean isPlaybackMode) { + if (isPlaybackMode) { + return "e9512cff-dd93-4a96-8583-e614eacda4fd"; + } else { + return ADDITIONAL_LOG_WORKSPACE_ID; + } + } + public static String getLogResourceId(boolean isPlaybackMode) { if (isPlaybackMode) { - return "subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/srnagar-azuresdkgroup/providers/Microsoft.Storage/storageAccounts/srnagarstorage"; + return "/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/rg-marchtest7/providers/Microsoft.OperationalInsights/workspaces/marchtest7-azmonitorlogsws"; } else { - return LOG_RESOURCE_ID; + return LOG_RESOURCE_ID.substring(LOG_RESOURCE_ID.indexOf("/subscriptions")); } } public static String getMetricResourceUri(boolean isPlaybackMode) { if (isPlaybackMode) { - return "/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/rg-jairmyree-test/providers/Microsoft.EventHub/namespaces/eventhubt9a76fe3bdd7263f8"; + return "/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/rg-marchtest7/providers/Microsoft.Eventhub/Namespaces/eventhubmarchtest7"; } else { - return METRIC_RESOURCE_URI; + return METRIC_RESOURCE_URI.substring(METRIC_RESOURCE_URI.indexOf("/subscriptions")); } } diff --git a/sdk/monitor/azure-monitor-query/swagger/README.md b/sdk/monitor/azure-monitor-query/swagger/README.md index b9b295e27d00..2cb2eb67213b 100644 --- a/sdk/monitor/azure-monitor-query/swagger/README.md +++ b/sdk/monitor/azure-monitor-query/swagger/README.md @@ -1,11 +1,11 @@ ## Generate autorest code ## input-file: https://dev.loganalytics.io/swagger/api.loganalytics.io/v1/swagger.json -## Log Query +## Log Query These settings apply only when `--tag=package-log` is specified on the command line. ```yaml $(tag) == 'package-log' -use: '@autorest/java@4.1.23' +use: '@autorest/java@4.1.27' input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/21f5332f2dc7437d1446edf240e9a3d4c90c6431/specification/operationalinsights/data-plane/Microsoft.OperationalInsights/stable/2022-10-27/OperationalInsights.json java: true output-folder: ../ @@ -16,7 +16,7 @@ sync-methods: all license-header: MICROSOFT_MIT_SMALL add-context-parameter: true context-client-method-parameter: true -required-parameter-client-methods: false +required-parameter-client-methods: false required-fields-as-ctor-args: true model-override-setter-from-superclass: true credential-types: tokencredential @@ -29,8 +29,8 @@ enable-sync-stack: true These settings apply only when `--tag=package-metrics` is specified on the command line. ```yaml $(tag) == 'package-metrics' -use: '@autorest/java@4.1.23' -input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/21f5332f2dc7437d1446edf240e9a3d4c90c6431/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/metrics_API.json +use: '@autorest/java@4.1.27' +input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/0b64ca7cbe3af8cd13228dfb783a16b8272b8be2/specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/metrics_API.json java: true output-folder: ../ namespace: com.azure.monitor.query.implementation.metrics @@ -75,9 +75,9 @@ directive: These settings apply only when `--tag=package-metrics-namespaces` is specified on the command line. ```yaml $(tag) == 'package-metrics-namespaces' -use: '@autorest/java@4.1.23' +use: '@autorest/java@4.1.27' service-name: MetricsNamespaces -input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/21f5332f2dc7437d1446edf240e9a3d4c90c6431/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-12-01-preview/metricNamespaces_API.json +input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/0b64ca7cbe3af8cd13228dfb783a16b8272b8be2/specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/metricNamespaces_API.json java: true output-folder: ../ namespace: com.azure.monitor.query.implementation.metricsnamespaces @@ -100,8 +100,8 @@ enable-sync-stack: true These settings apply only when `--tag=package-metrics-definitions` is specified on the command line. ```yaml $(tag) == 'package-metrics-definitions' -use: '@autorest/java@4.1.23' -input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/21f5332f2dc7437d1446edf240e9a3d4c90c6431/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/metricDefinitions_API.json +use: '@autorest/java@4.1.27' +input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/0b64ca7cbe3af8cd13228dfb783a16b8272b8be2/specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/metricDefinitions_API.json service-name: MetricsDefinitions java: true output-folder: ../ @@ -125,9 +125,9 @@ enable-sync-stack: true These settings apply only when `--tag=package-metrics-batch` is specified on the command line. ```yaml $(tag) == 'package-metrics-batch' -use: '@autorest/java@4.1.23' -input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/21f5332f2dc7437d1446edf240e9a3d4c90c6431/specification/monitor/data-plane/Microsoft.Insights/preview/2023-05-01-preview/metricBatch.json -service-name: MetricsDefinitions +use: '@autorest/java@4.1.27' +input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/0550754fb421cd3a5859abf6713a542b682f626c/specification/monitor/data-plane/Microsoft.Insights/stable/2024-02-01/metricBatch.json +service-name: MetricsBatch java: true output-folder: ../ namespace: com.azure.monitor.query.implementation.metricsbatch @@ -137,7 +137,7 @@ sync-methods: all license-header: MICROSOFT_MIT_SMALL add-context-parameter: true context-client-method-parameter: true -required-parameter-client-methods: false +required-parameter-client-methods: false required-fields-as-ctor-args: true model-override-setter-from-superclass: true credential-types: tokencredential @@ -149,8 +149,17 @@ enable-sync-stack: true ```yaml $(tag) == 'package-metrics-batch' directive: -- from: swagger-document - where: $.parameters.IntervalParameter - transform: > - $["format"] = "duration"; + - from: swagger-document + where: $.parameters.IntervalParameter + transform: > + $["format"] = "duration"; +``` + +### Change subscriptionId to type 'String' +```yaml $(tag) == 'package-metrics-batch' +directive: + - from: swagger-document + where: $.parameters.SubscriptionIdParameter + transform: > + $["format"] = ""; ``` diff --git a/sdk/monitor/azure-monitor-query/swagger/src/main/java/MetricsCustomization.java b/sdk/monitor/azure-monitor-query/swagger/src/main/java/MetricsCustomization.java index 4fc75e6a4e8e..c16e65c2eb26 100644 --- a/sdk/monitor/azure-monitor-query/swagger/src/main/java/MetricsCustomization.java +++ b/sdk/monitor/azure-monitor-query/swagger/src/main/java/MetricsCustomization.java @@ -11,11 +11,11 @@ public void customize(LibraryCustomization libraryCustomization, Logger logger) metrics.rename("MetricsImpl"); ClassCustomization metricsClient = libraryCustomization - .getClass("com.azure.monitor.query.implementation.metrics", "MonitorManagementClient"); + .getClass("com.azure.monitor.query.implementation.metrics", "AzureMonitorMetricsDataAPI"); metricsClient.rename("MonitorManagementClientImpl"); ClassCustomization metricsClientBuilder = libraryCustomization - .getClass("com.azure.monitor.query.implementation.metrics", "MonitorManagementClientBuilder"); + .getClass("com.azure.monitor.query.implementation.metrics", "AzureMonitorMetricsDataAPIBuilder"); metricsClientBuilder.rename("MonitorManagementClientImplBuilder"); String replace = libraryCustomization.getRawEditor().getFileContent("src/main/java/com/azure/monitor/query/implementation" + diff --git a/sdk/monitor/azure-monitor-query/swagger/src/main/java/MetricsDefinitionsCustomization.java b/sdk/monitor/azure-monitor-query/swagger/src/main/java/MetricsDefinitionsCustomization.java index 2a33804f046f..9dc3e339e804 100644 --- a/sdk/monitor/azure-monitor-query/swagger/src/main/java/MetricsDefinitionsCustomization.java +++ b/sdk/monitor/azure-monitor-query/swagger/src/main/java/MetricsDefinitionsCustomization.java @@ -7,16 +7,20 @@ public class MetricsDefinitionsCustomization extends Customization { @Override public void customize(LibraryCustomization libraryCustomization, Logger logger) { + libraryCustomization.getPackage("com.azure.monitor.query.implementation.metricsdefinitions") + .listClasses() + .forEach(cu -> logger.info("Class name " + cu.getFileName())); + ClassCustomization metricsDefinitions = libraryCustomization .getClass("com.azure.monitor.query.implementation.metricsdefinitions", "MetricDefinitions"); metricsDefinitions.rename("MetricDefinitionsImpl"); ClassCustomization metricsDefinitionsClient = libraryCustomization - .getClass("com.azure.monitor.query.implementation.metricsdefinitions", "MonitorManagementClient"); + .getClass("com.azure.monitor.query.implementation.metricsdefinitions", "AzureMonitorMetricsDefinitionsAPI"); metricsDefinitionsClient.rename("MetricsDefinitionsClientImpl"); ClassCustomization metricsDefinitionsClientBuilder = libraryCustomization - .getClass("com.azure.monitor.query.implementation.metricsdefinitions", "MonitorManagementClientBuilder"); + .getClass("com.azure.monitor.query.implementation.metricsdefinitions", "AzureMonitorMetricsDefinitionsAPIBuilder"); metricsDefinitionsClientBuilder.rename("MetricsDefinitionsClientImplBuilder"); String replace = libraryCustomization.getRawEditor().getFileContent("src/main/java/com/azure/monitor/query/implementation" + diff --git a/sdk/monitor/test-resources.json b/sdk/monitor/test-resources.json index 350ff258b15c..c77d6d573933 100644 --- a/sdk/monitor/test-resources.json +++ b/sdk/monitor/test-resources.json @@ -88,7 +88,8 @@ "dcrRoleName": "[concat('dcrrole', parameters('baseName'))]", "dataCollectionRuleName": "[concat(parameters('baseName'), '-', 'azmonitordcr')]", "dataCollectionEndpointName": "[concat(parameters('baseName'), '-', 'azmonitordce')]", - "workspaceName": "[concat(parameters('baseName'), '-', 'azmonitorlogsws')]" + "workspaceName": "[concat(parameters('baseName'), '-', 'azmonitorlogsws')]", + "additionalWorkspaceName": "[concat(parameters('baseName'), '-', 'azmonitorlogsws2')]" }, "resources": [ { @@ -275,6 +276,26 @@ "publicNetworkAccessForQuery": "Enabled" } }, + { + "type": "microsoft.operationalinsights/workspaces", + "apiVersion": "2021-12-01-preview", + "name": "[variables('additionalWorkspaceName')]", + "location": "[variables('location')]", + "properties": { + "sku": { + "name": "pergb2018" + }, + "retentionInDays": 30, + "features": { + "enableLogAccessUsingOnlyResourcePermissions": true + }, + "workspaceCapping": { + "dailyQuotaGb": -1 + }, + "publicNetworkAccessForIngestion": "Enabled", + "publicNetworkAccessForQuery": "Enabled" + } + }, { "type": "Microsoft.OperationalInsights/workspaces/tables", "apiVersion": "2021-12-01-preview", @@ -358,6 +379,10 @@ "type": "string", "value": "[reference(resourceId('Microsoft.OperationalInsights/workspaces', variables('workspaceName'))).customerId]" }, + "AZURE_MONITOR_LOGS_ADDITIONAL_WORKSPACE_ID": { + "type": "string", + "value": "[reference(resourceId('Microsoft.OperationalInsights/workspaces', variables('additionalWorkspaceName'))).customerId]" + }, "AZURE_MONITOR_LOGS_RESOURCE_ID": { "type": "string", "value": "[resourceId('Microsoft.OperationalInsights/workspaces', variables('workspaceName'))]" diff --git a/sdk/openai/azure-ai-openai/README.md b/sdk/openai/azure-ai-openai/README.md index af2beb119d4d..65db7a74cb05 100644 --- a/sdk/openai/azure-ai-openai/README.md +++ b/sdk/openai/azure-ai-openai/README.md @@ -253,7 +253,8 @@ chatCompletionsStream } }); ``` -For a complete sample example, see sample [Streaming Chat Completions][sample_get_chat_completions_streaming]. + +To compute tokens in streaming chat completions, see sample [Streaming Chat Completions][sample_get_chat_completions_streaming]. ### Text embeddings @@ -459,6 +460,7 @@ For details on contributing to this repository, see the [contributing guide](htt [azure_subscription]: https://azure.microsoft.com/free/ [docs]: https://azure.github.io/azure-sdk-for-java/ [jdk]: https://docs.microsoft.com/java/azure/jdk/ +[jtokkit]: https://github.com/knuddelsgmbh/jtokkit [logLevels]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core/src/main/java/com/azure/core/util/logging/ClientLogger.java [microsoft_docs_openai_completion]: https://learn.microsoft.com/azure/cognitive-services/openai/how-to/completions [microsoft_docs_openai_embedding]: https://learn.microsoft.com/azure/cognitive-services/openai/concepts/understand-embeddings diff --git a/sdk/openai/azure-ai-openai/pom.xml b/sdk/openai/azure-ai-openai/pom.xml index 50a8d2afe795..fbe634fdbd1d 100644 --- a/sdk/openai/azure-ai-openai/pom.xml +++ b/sdk/openai/azure-ai-openai/pom.xml @@ -103,6 +103,13 @@ test
+ + com.knuddels + jtokkit + 1.0.0 + test + + org.junit.jupiter diff --git a/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/OpenAIAsyncClient.java b/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/OpenAIAsyncClient.java index c899364fe114..e64a406382b4 100644 --- a/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/OpenAIAsyncClient.java +++ b/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/OpenAIAsyncClient.java @@ -639,6 +639,31 @@ public Mono getCompletions(String deploymentOrModelName, String pro * Gets completions as a stream for the provided input prompts. Completions support a wide variety of tasks and * generate text that continues from or "completes" provided prompt data. * + *

+ * Code Samples + *

+ * + *
+     * openAIAsyncClient
+     *         .getChatCompletionsStream(deploymentOrModelId, new ChatCompletionsOptions(chatMessages))
+     *         .toStream()
+     *         // Remove .skip(1) when using Non-Azure OpenAI API
+     *         // Note: the first chat completions can be ignored when using Azure OpenAI service which is a known service bug.
+     *         // TODO: remove .skip(1) after service fixes the issue.
+     *         .skip(1)
+     *         .forEach(chatCompletions -> {
+     *             ChatResponseMessage delta = chatCompletions.getChoices().get(0).getDelta();
+     *             if (delta.getRole() != null) {
+     *                 System.out.println("Role = " + delta.getRole());
+     *             }
+     *             if (delta.getContent() != null) {
+     *                 String content = delta.getContent();
+     *                 System.out.print(content);
+     *             }
+     *         });
+     * 
+ * + * * @param deploymentOrModelName Specifies either the model deployment name (when using Azure OpenAI) or model name * (when using non-Azure OpenAI) to use for this request. * @param completionsOptions The configuration information for a completions request. Completions support a wide diff --git a/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/OpenAIClient.java b/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/OpenAIClient.java index beb2fc0b8f0e..4505e47d4136 100644 --- a/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/OpenAIClient.java +++ b/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/OpenAIClient.java @@ -681,8 +681,31 @@ public ChatCompletions getChatCompletions(String deploymentOrModelName, } /** - * Gets chat completions for the provided chat messages. Chat completions support a wide variety of tasks and - * generate text that continues from or "completes" provided prompt data. + * Gets chat completions for the provided chat messages in streaming mode. Chat completions support a wide variety + * of tasks and generate text that continues from or "completes" provided prompt data. + *

+ * Code Samples + *

+ * + *
+     * openAIClient.getChatCompletionsStream(deploymentOrModelId, new ChatCompletionsOptions(chatMessages))
+     *         .stream()
+     *         // Remove .skip(1) when using Non-Azure OpenAI API
+     *         // Note: the first chat completions can be ignored when using Azure OpenAI service which is a known service bug.
+     *         // TODO: remove .skip(1) after service fixes the issue.
+     *         .skip(1)
+     *         .forEach(chatCompletions -> {
+     *             ChatResponseMessage delta = chatCompletions.getChoices().get(0).getDelta();
+     *             if (delta.getRole() != null) {
+     *                 System.out.println("Role = " + delta.getRole());
+     *             }
+     *             if (delta.getContent() != null) {
+     *                 String content = delta.getContent();
+     *                 System.out.print(content);
+     *             }
+     *         });
+     * 
+ * * * @param deploymentOrModelName Specifies either the model deployment name (when using Azure OpenAI) or model name * (when using non-Azure OpenAI) to use for this request. diff --git a/sdk/openai/azure-ai-openai/src/samples/java/com/azure/ai/openai/StreamingChatSample.java b/sdk/openai/azure-ai-openai/src/samples/java/com/azure/ai/openai/StreamingChatSample.java index 322776edb098..b9f1ea4bef4c 100644 --- a/sdk/openai/azure-ai-openai/src/samples/java/com/azure/ai/openai/StreamingChatSample.java +++ b/sdk/openai/azure-ai-openai/src/samples/java/com/azure/ai/openai/StreamingChatSample.java @@ -11,10 +11,16 @@ import com.azure.ai.openai.models.ChatRequestUserMessage; import com.azure.ai.openai.models.ChatResponseMessage; import com.azure.core.credential.AzureKeyCredential; +import com.azure.core.util.Configuration; import com.azure.core.util.IterableStream; +import com.knuddels.jtokkit.Encodings; +import com.knuddels.jtokkit.api.Encoding; +import com.knuddels.jtokkit.api.EncodingRegistry; +import com.knuddels.jtokkit.api.EncodingType; import java.util.ArrayList; import java.util.List; +import java.util.concurrent.atomic.AtomicInteger; /** * Demonstrates how to get chat completions for the provided chat messages. @@ -31,9 +37,9 @@ public class StreamingChatSample { * @param args Unused. Arguments to the program. */ public static void main(String[] args) { - String azureOpenaiKey = "{azure-open-ai-key}"; - String endpoint = "{azure-open-ai-endpoint}"; - String deploymentOrModelId = "{azure-open-ai-deployment-model-id}"; + String azureOpenaiKey = Configuration.getGlobalConfiguration().get("AZURE_OPENAI_KEY"); + String endpoint = Configuration.getGlobalConfiguration().get("AZURE_OPENAI_ENDPOINT"); + String deploymentOrModelId = Configuration.getGlobalConfiguration().get("OPENAI_DEPLOYMENT_OR_MODEL_ID"); OpenAIClient client = new OpenAIClientBuilder() .endpoint(endpoint) @@ -49,6 +55,8 @@ public static void main(String[] args) { IterableStream chatCompletionsStream = client.getChatCompletionsStream(deploymentOrModelId, new ChatCompletionsOptions(chatMessages)); + AtomicInteger tokenCount = new AtomicInteger(); + // The delta is the message content for a streaming response. // Subsequence of streaming delta will be like: // "delta": { @@ -64,19 +72,38 @@ public static void main(String[] args) { // "content": "'t" // } chatCompletionsStream - .stream() - // Remove .skip(1) when using Non-Azure OpenAI API - // Note: the first chat completions can be ignored when using Azure OpenAI service which is a known service bug. - // TODO: remove .skip(1) when service fix the issue. - .skip(1) - .forEach(chatCompletions -> { - ChatResponseMessage delta = chatCompletions.getChoices().get(0).getDelta(); - if (delta.getRole() != null) { - System.out.println("Role = " + delta.getRole()); - } - if (delta.getContent() != null) { - System.out.print(delta.getContent()); - } - }); + .stream() + // Remove .skip(1) when using Non-Azure OpenAI API + // Note: the first chat completions can be ignored when using Azure OpenAI service which is a known service bug. + // TODO: remove .skip(1) after service fixes the issue. + .skip(1) + .forEach(chatCompletions -> { + ChatResponseMessage delta = chatCompletions.getChoices().get(0).getDelta(); + + if (delta.getRole() != null) { + System.out.println("Role = " + delta.getRole()); + } + + if (delta.getContent() != null) { + String content = delta.getContent(); + System.out.print(content); + tokenCount.addAndGet(computeToken(content)); + } + }); + + // Use https://platform.openai.com/tokenizer to verify the token count + System.out.println("\nTotal token count: " + tokenCount.get()); + } + + // Compute the token count for the given input. + // For cl100k_base and p50k_base encodings, use 'jtokkit' library to compute the token count. https://github.com/knuddelsgmbh/jtokkit + // For r50k_base (gpt2) encodings, use 'gpt2-tokenizer-java' library to compute the token count. https://github.com/hyunwoongko/gpt2-tokenizer-java + // We use 'jtokkit' library to compute the token count for this sample. + private static int computeToken(String input) { + EncodingRegistry registry = Encodings.newDefaultEncodingRegistry(); + Encoding enc = registry.getEncoding(EncodingType.CL100K_BASE); + // Or get the tokenizer corresponding to a specific OpenAI model + // enc = registry.getEncodingForModel(ModelType.GPT_4); + return enc.countTokens(input); } } diff --git a/sdk/openai/azure-ai-openai/src/samples/java/com/azure/ai/openai/impl/OpenAIAsyncClientJavaDocCodeSnippets.java b/sdk/openai/azure-ai-openai/src/samples/java/com/azure/ai/openai/impl/OpenAIAsyncClientJavaDocCodeSnippets.java new file mode 100644 index 000000000000..3a93b4d470b4 --- /dev/null +++ b/sdk/openai/azure-ai-openai/src/samples/java/com/azure/ai/openai/impl/OpenAIAsyncClientJavaDocCodeSnippets.java @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.ai.openai.impl; + +import com.azure.ai.openai.OpenAIAsyncClient; +import com.azure.ai.openai.OpenAIClient; +import com.azure.ai.openai.OpenAIClientBuilder; +import com.azure.ai.openai.models.ChatCompletionsOptions; +import com.azure.ai.openai.models.ChatRequestAssistantMessage; +import com.azure.ai.openai.models.ChatRequestMessage; +import com.azure.ai.openai.models.ChatRequestSystemMessage; +import com.azure.ai.openai.models.ChatRequestUserMessage; +import com.azure.ai.openai.models.ChatResponseMessage; +import com.azure.core.credential.AzureKeyCredential; +import com.azure.core.util.Configuration; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.List; + +/** + * Code snippets for {@link OpenAIAsyncClient} + */ +public class OpenAIAsyncClientJavaDocCodeSnippets { + private OpenAIAsyncClient openAIAsyncClient = getOpenAIAsyncClient(); + + /** + * Code snippets for {@link OpenAIClient#getChatCompletionsStream(String, ChatCompletionsOptions)} + */ + @Test + public void getChatCompletionsStream() { + String deploymentOrModelId = "gpt-4-1106-preview"; + List chatMessages = new ArrayList<>(); + chatMessages.add(new ChatRequestSystemMessage("You are a helpful assistant. You will talk like a pirate.")); + chatMessages.add(new ChatRequestUserMessage("Can you help me?")); + chatMessages.add(new ChatRequestAssistantMessage("Of course, me hearty! What can I do for ye?")); + chatMessages.add(new ChatRequestUserMessage("What's the best way to train a parrot?")); + // BEGIN: com.azure.ai.openai.OpenAIAsyncClient.getChatCompletionsStream#String-ChatCompletionsOptions + openAIAsyncClient + .getChatCompletionsStream(deploymentOrModelId, new ChatCompletionsOptions(chatMessages)) + .toStream() + // Remove .skip(1) when using Non-Azure OpenAI API + // Note: the first chat completions can be ignored when using Azure OpenAI service which is a known service bug. + // TODO: remove .skip(1) after service fixes the issue. + .skip(1) + .forEach(chatCompletions -> { + ChatResponseMessage delta = chatCompletions.getChoices().get(0).getDelta(); + if (delta.getRole() != null) { + System.out.println("Role = " + delta.getRole()); + } + if (delta.getContent() != null) { + String content = delta.getContent(); + System.out.print(content); + } + }); + // END: com.azure.ai.openai.OpenAIAsyncClient.getChatCompletionsStream#String-ChatCompletionsOptions + } + + private OpenAIAsyncClient getOpenAIAsyncClient() { + return new OpenAIClientBuilder() + .endpoint(Configuration.getGlobalConfiguration().get("AZURE_OPENAI_ENDPOINT")) + .credential(new AzureKeyCredential(Configuration.getGlobalConfiguration().get("AZURE_OPENAI_KEY"))) + .buildAsyncClient(); + } +} diff --git a/sdk/openai/azure-ai-openai/src/samples/java/com/azure/ai/openai/impl/OpenAIClientJavaDocCodeSnippets.java b/sdk/openai/azure-ai-openai/src/samples/java/com/azure/ai/openai/impl/OpenAIClientJavaDocCodeSnippets.java new file mode 100644 index 000000000000..4c0edc428a0a --- /dev/null +++ b/sdk/openai/azure-ai-openai/src/samples/java/com/azure/ai/openai/impl/OpenAIClientJavaDocCodeSnippets.java @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.ai.openai.impl; + +import com.azure.ai.openai.OpenAIClient; +import com.azure.ai.openai.OpenAIClientBuilder; +import com.azure.ai.openai.models.ChatCompletionsOptions; +import com.azure.ai.openai.models.ChatRequestAssistantMessage; +import com.azure.ai.openai.models.ChatRequestMessage; +import com.azure.ai.openai.models.ChatRequestSystemMessage; +import com.azure.ai.openai.models.ChatRequestUserMessage; +import com.azure.ai.openai.models.ChatResponseMessage; +import com.azure.core.credential.AzureKeyCredential; +import com.azure.core.util.Configuration; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.List; + +/** + * Code snippets for {@link OpenAIClient} + */ +public class OpenAIClientJavaDocCodeSnippets { + + private OpenAIClient openAIClient = getOpenAIClient(); + + /** + * Code snippets for {@link OpenAIClient#getChatCompletionsStream(String, ChatCompletionsOptions)} + */ + @Test + public void getChatCompletionsStream() { + String deploymentOrModelId = "gpt-4-1106-preview"; + List chatMessages = new ArrayList<>(); + chatMessages.add(new ChatRequestSystemMessage("You are a helpful assistant. You will talk like a pirate.")); + chatMessages.add(new ChatRequestUserMessage("Can you help me?")); + chatMessages.add(new ChatRequestAssistantMessage("Of course, me hearty! What can I do for ye?")); + chatMessages.add(new ChatRequestUserMessage("What's the best way to train a parrot?")); + + // BEGIN: com.azure.ai.openai.OpenAIClient.getChatCompletionsStream#String-ChatCompletionsOptions + openAIClient.getChatCompletionsStream(deploymentOrModelId, new ChatCompletionsOptions(chatMessages)) + .stream() + // Remove .skip(1) when using Non-Azure OpenAI API + // Note: the first chat completions can be ignored when using Azure OpenAI service which is a known service bug. + // TODO: remove .skip(1) after service fixes the issue. + .skip(1) + .forEach(chatCompletions -> { + ChatResponseMessage delta = chatCompletions.getChoices().get(0).getDelta(); + if (delta.getRole() != null) { + System.out.println("Role = " + delta.getRole()); + } + if (delta.getContent() != null) { + String content = delta.getContent(); + System.out.print(content); + } + }); + // END: com.azure.ai.openai.OpenAIClient.getChatCompletionsStream#String-ChatCompletionsOptions + } + + private OpenAIClient getOpenAIClient() { + return new OpenAIClientBuilder() + .endpoint(Configuration.getGlobalConfiguration().get("AZURE_OPENAI_ENDPOINT")) + .credential(new AzureKeyCredential(Configuration.getGlobalConfiguration().get("AZURE_OPENAI_KEY"))) + .buildClient(); + } +} diff --git a/sdk/search/azure-search-documents/CHANGELOG.md b/sdk/search/azure-search-documents/CHANGELOG.md index 3120ce8f1d84..cb266dd6656c 100644 --- a/sdk/search/azure-search-documents/CHANGELOG.md +++ b/sdk/search/azure-search-documents/CHANGELOG.md @@ -1,23 +1,24 @@ # Release History -## 11.7.0-beta.2 (Unreleased) +## 11.7.0-beta.2 (2024-03-11) ### Features Added -### Breaking Changes - -### Bugs Fixed +- Added support for the java types `Byte` and `Short` to FieldBuilder. +- Added support for "isStored" annotation to FieldBuilder. +- Added `VectorSearchCompressionConfiguration` to `VectorSearch` -### Other Changes +### Breaking Changes -## 11.6.1 (2024-02-22) +- Replaced `SearchErrorException` with `ErrorResponseException` ### Other Changes #### Dependency Updates -- Upgraded `azure-core` from `1.45.1` to version `1.46.0`. -- Upgraded `azure-core-http-netty` from `1.13.11` to version `1.14.0`. +- Upgraded `azure-core-serializer-json-jackson` to version `1.4.10`. +- Upgraded `azure-core-http-netty` to version `1.14.1`. +- Upgraded `azure-core` to version `1.47.0`. ## 11.7.0-beta.1 (2024-02-09) diff --git a/sdk/search/azure-search-documents/README.md b/sdk/search/azure-search-documents/README.md index 02623a2fe8dc..513dcde4d890 100644 --- a/sdk/search/azure-search-documents/README.md +++ b/sdk/search/azure-search-documents/README.md @@ -75,7 +75,7 @@ add the direct dependency to your project as follows. com.azure azure-search-documents - 11.6.2 + 11.7.0-beta.2 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/search/azure-search-documents/assets.json b/sdk/search/azure-search-documents/assets.json index 9ffc44946d92..4626025686cc 100644 --- a/sdk/search/azure-search-documents/assets.json +++ b/sdk/search/azure-search-documents/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "java", "TagPrefix": "java/search/azure-search-documents", - "Tag": "java/search/azure-search-documents_134672a8ec" + "Tag": "java/search/azure-search-documents_68da41c6ed" } diff --git a/sdk/search/azure-search-documents/pom.xml b/sdk/search/azure-search-documents/pom.xml index a89b4ea82bc8..2e6c2fa5460d 100644 --- a/sdk/search/azure-search-documents/pom.xml +++ b/sdk/search/azure-search-documents/pom.xml @@ -24,7 +24,7 @@ UTF-8 - 0.59 + 0.56 0.47 diff --git a/sdk/search/azure-search-documents/spotbugs-exclude.xml b/sdk/search/azure-search-documents/spotbugs-exclude.xml index 4cba0c88e87e..7a714099e357 100644 --- a/sdk/search/azure-search-documents/spotbugs-exclude.xml +++ b/sdk/search/azure-search-documents/spotbugs-exclude.xml @@ -21,6 +21,7 @@ + @@ -36,6 +37,7 @@ + @@ -130,8 +132,8 @@ - + @@ -243,10 +245,6 @@ - - - - diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/SearchServiceVersion.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/SearchServiceVersion.java index 9fe4e4fd6daa..223f96b9cba8 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/SearchServiceVersion.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/SearchServiceVersion.java @@ -20,9 +20,9 @@ public enum SearchServiceVersion implements ServiceVersion { V2023_11_01("2023-11-01"), /** - * {@code 2023-10-01-preview} service version. + * {@code 2024-03-01-preview} service version. */ - V2023_10_01_PREVIEW("2023-10-01-preview"); + V2024_03_01_PREVIEW("2024-03-01-preview"); private final String version; @@ -44,6 +44,6 @@ public String getVersion() { * @return The latest version supported by this client library. */ public static SearchServiceVersion getLatest() { - return V2023_10_01_PREVIEW; + return V2024_03_01_PREVIEW; } } diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/DocumentsImpl.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/DocumentsImpl.java index 874857c19a69..5c09e8cf9b73 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/DocumentsImpl.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/DocumentsImpl.java @@ -23,10 +23,10 @@ import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; import com.azure.search.documents.implementation.models.AutocompleteRequest; +import com.azure.search.documents.implementation.models.ErrorResponseException; import com.azure.search.documents.implementation.models.IndexBatch; import com.azure.search.documents.implementation.models.RequestOptions; import com.azure.search.documents.implementation.models.SearchDocumentsResult; -import com.azure.search.documents.implementation.models.SearchErrorException; import com.azure.search.documents.implementation.models.SearchRequest; import com.azure.search.documents.implementation.models.SuggestDocumentsResult; import com.azure.search.documents.implementation.models.SuggestRequest; @@ -75,21 +75,21 @@ public interface DocumentsService { @Get("/docs/$count") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Mono> count(@HostParam("endpoint") String endpoint, @HostParam("indexName") String indexName, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @Get("/docs/$count") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Response countSync(@HostParam("endpoint") String endpoint, @HostParam("indexName") String indexName, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @Post("/docs/search.post.search") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Mono> searchPost(@HostParam("endpoint") String endpoint, @HostParam("indexName") String indexName, @QueryParam("api-version") String apiVersion, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @HeaderParam("Accept") String accept, @@ -97,7 +97,7 @@ Mono> searchPost(@HostParam("endpoint") String e @Post("/docs/search.post.search") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Response searchPostSync(@HostParam("endpoint") String endpoint, @HostParam("indexName") String indexName, @QueryParam("api-version") String apiVersion, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @HeaderParam("Accept") String accept, @@ -105,7 +105,7 @@ Response searchPostSync(@HostParam("endpoint") String end @Get("/docs('{key}')") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Mono>> get(@HostParam("endpoint") String endpoint, @HostParam("indexName") String indexName, @PathParam("key") String key, @QueryParam("$select") String selectedFields, @QueryParam("api-version") String apiVersion, @@ -114,7 +114,7 @@ Mono>> get(@HostParam("endpoint") String endpoint, @Get("/docs('{key}')") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Response> getSync(@HostParam("endpoint") String endpoint, @HostParam("indexName") String indexName, @PathParam("key") String key, @QueryParam("$select") String selectedFields, @QueryParam("api-version") String apiVersion, @@ -123,7 +123,7 @@ Response> getSync(@HostParam("endpoint") String endpoint, @Post("/docs/search.post.suggest") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Mono> suggestPost(@HostParam("endpoint") String endpoint, @HostParam("indexName") String indexName, @QueryParam("api-version") String apiVersion, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @HeaderParam("Accept") String accept, @@ -131,7 +131,7 @@ Mono> suggestPost(@HostParam("endpoint") String @Post("/docs/search.post.suggest") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Response suggestPostSync(@HostParam("endpoint") String endpoint, @HostParam("indexName") String indexName, @QueryParam("api-version") String apiVersion, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @HeaderParam("Accept") String accept, @@ -139,7 +139,7 @@ Response suggestPostSync(@HostParam("endpoint") String e @Post("/docs/search.index") @ExpectedResponses({ 200, 207 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Mono> index(@HostParam("endpoint") String endpoint, @HostParam("indexName") String indexName, @QueryParam("api-version") String apiVersion, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @HeaderParam("Accept") String accept, @@ -147,7 +147,7 @@ Mono> index(@HostParam("endpoint") String endpoin @Post("/docs/search.index") @ExpectedResponses({ 200, 207 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Response indexSync(@HostParam("endpoint") String endpoint, @HostParam("indexName") String indexName, @QueryParam("api-version") String apiVersion, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @HeaderParam("Accept") String accept, @@ -155,7 +155,7 @@ Response indexSync(@HostParam("endpoint") String endpoint, @Post("/docs/search.post.autocomplete") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Mono> autocompletePost(@HostParam("endpoint") String endpoint, @HostParam("indexName") String indexName, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, @@ -163,7 +163,7 @@ Mono> autocompletePost(@HostParam("endpoint") Strin @Post("/docs/search.post.autocomplete") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Response autocompletePostSync(@HostParam("endpoint") String endpoint, @HostParam("indexName") String indexName, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, @@ -175,7 +175,7 @@ Response autocompletePostSync(@HostParam("endpoint") String * * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @@ -197,7 +197,7 @@ public Mono> countWithResponseAsync(RequestOptions requestOptions * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @@ -218,7 +218,7 @@ public Mono> countWithResponseAsync(RequestOptions requestOptions * * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body on successful completion of {@link Mono}. */ @@ -233,7 +233,7 @@ public Mono countAsync(RequestOptions requestOptions) { * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body on successful completion of {@link Mono}. */ @@ -248,7 +248,7 @@ public Mono countAsync(RequestOptions requestOptions, Context context) { * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link Response}. */ @@ -269,7 +269,7 @@ public Response countWithResponse(RequestOptions requestOptions, Context c * * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @@ -284,7 +284,7 @@ public long count(RequestOptions requestOptions) { * @param searchRequest The definition of the Search request. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response containing search results from an index along with {@link Response} on successful completion of * {@link Mono}. @@ -309,7 +309,7 @@ public Mono> searchPostWithResponseAsync(SearchR * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response containing search results from an index along with {@link Response} on successful completion of * {@link Mono}. @@ -333,7 +333,7 @@ public Mono> searchPostWithResponseAsync(SearchR * @param searchRequest The definition of the Search request. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response containing search results from an index on successful completion of {@link Mono}. */ @@ -350,7 +350,7 @@ public Mono searchPostAsync(SearchRequest searchRequest, * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response containing search results from an index on successful completion of {@link Mono}. */ @@ -368,7 +368,7 @@ public Mono searchPostAsync(SearchRequest searchRequest, * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response containing search results from an index along with {@link Response}. */ @@ -391,7 +391,7 @@ public Response searchPostWithResponse(SearchRequest sear * @param searchRequest The definition of the Search request. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response containing search results from an index. */ @@ -408,7 +408,7 @@ public SearchDocumentsResult searchPost(SearchRequest searchRequest, RequestOpti * from the returned document. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a document retrieved via a document lookup operation along with {@link Response} on successful completion * of {@link Mono}. @@ -437,7 +437,7 @@ public Mono>> getWithResponseAsync(String key, List * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a document retrieved via a document lookup operation along with {@link Response} on successful completion * of {@link Mono}. @@ -465,7 +465,7 @@ public Mono>> getWithResponseAsync(String key, List * from the returned document. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a document retrieved via a document lookup operation on successful completion of {@link Mono}. */ @@ -484,7 +484,7 @@ public Mono> getAsync(String key, List selectedField * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a document retrieved via a document lookup operation on successful completion of {@link Mono}. */ @@ -504,7 +504,7 @@ public Mono> getAsync(String key, List selectedField * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a document retrieved via a document lookup operation along with {@link Response}. */ @@ -531,7 +531,7 @@ public Response> getWithResponse(String key, List se * from the returned document. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a document retrieved via a document lookup operation. */ @@ -546,7 +546,7 @@ public Map get(String key, List selectedFields, RequestO * @param suggestRequest The Suggest request. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response containing suggestion query results from an index along with {@link Response} on successful * completion of {@link Mono}. @@ -572,7 +572,7 @@ public Mono> suggestPostWithResponseAsync(Sugge * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response containing suggestion query results from an index along with {@link Response} on successful * completion of {@link Mono}. @@ -596,7 +596,7 @@ public Mono> suggestPostWithResponseAsync(Sugge * @param suggestRequest The Suggest request. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response containing suggestion query results from an index on successful completion of {@link Mono}. */ @@ -613,7 +613,7 @@ public Mono suggestPostAsync(SuggestRequest suggestReque * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response containing suggestion query results from an index on successful completion of {@link Mono}. */ @@ -631,7 +631,7 @@ public Mono suggestPostAsync(SuggestRequest suggestReque * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response containing suggestion query results from an index along with {@link Response}. */ @@ -654,7 +654,7 @@ public Response suggestPostWithResponse(SuggestRequest s * @param suggestRequest The Suggest request. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response containing suggestion query results from an index. */ @@ -669,7 +669,7 @@ public SuggestDocumentsResult suggestPost(SuggestRequest suggestRequest, Request * @param batch The batch of index actions. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response containing the status of operations for all documents in the indexing request along with * {@link Response} on successful completion of {@link Mono}. @@ -694,7 +694,7 @@ public Mono> indexWithResponseAsync(IndexBatch ba * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response containing the status of operations for all documents in the indexing request along with * {@link Response} on successful completion of {@link Mono}. @@ -718,7 +718,7 @@ public Mono> indexWithResponseAsync(IndexBatch ba * @param batch The batch of index actions. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response containing the status of operations for all documents in the indexing request on successful * completion of {@link Mono}. @@ -735,7 +735,7 @@ public Mono indexAsync(IndexBatch batch, RequestOptions re * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response containing the status of operations for all documents in the indexing request on successful * completion of {@link Mono}. @@ -752,7 +752,7 @@ public Mono indexAsync(IndexBatch batch, RequestOptions re * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response containing the status of operations for all documents in the indexing request along with * {@link Response}. @@ -776,7 +776,7 @@ public Response indexWithResponse(IndexBatch batch, Reques * @param batch The batch of index actions. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response containing the status of operations for all documents in the indexing request. */ @@ -791,7 +791,7 @@ public IndexDocumentsResult index(IndexBatch batch, RequestOptions requestOption * @param autocompleteRequest The definition of the Autocomplete request. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of Autocomplete query along with {@link Response} on successful completion of {@link Mono}. */ @@ -816,7 +816,7 @@ public Mono> autocompletePostWithResponseAsync(Auto * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of Autocomplete query along with {@link Response} on successful completion of {@link Mono}. */ @@ -839,7 +839,7 @@ public Mono> autocompletePostWithResponseAsync(Auto * @param autocompleteRequest The definition of the Autocomplete request. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of Autocomplete query on successful completion of {@link Mono}. */ @@ -857,7 +857,7 @@ public Mono autocompletePostAsync(AutocompleteRequest autoco * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of Autocomplete query on successful completion of {@link Mono}. */ @@ -875,7 +875,7 @@ public Mono autocompletePostAsync(AutocompleteRequest autoco * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of Autocomplete query along with {@link Response}. */ @@ -898,7 +898,7 @@ public Response autocompletePostWithResponse(AutocompleteReq * @param autocompleteRequest The definition of the Autocomplete request. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of Autocomplete query. */ diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/models/ErrorAdditionalInfo.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/models/ErrorAdditionalInfo.java new file mode 100644 index 000000000000..0dd66904dadf --- /dev/null +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/models/ErrorAdditionalInfo.java @@ -0,0 +1,88 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package com.azure.search.documents.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * The resource management error additional info. + */ +@Immutable +public final class ErrorAdditionalInfo implements JsonSerializable { + /* + * The additional info type. + */ + private String type; + + /* + * The additional info. + */ + private Object info; + + /** + * Creates an instance of ErrorAdditionalInfo class. + */ + public ErrorAdditionalInfo() { + } + + /** + * Get the type property: The additional info type. + * + * @return the type value. + */ + public String getType() { + return this.type; + } + + /** + * Get the info property: The additional info. + * + * @return the info value. + */ + public Object getInfo() { + return this.info; + } + + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ErrorAdditionalInfo from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ErrorAdditionalInfo if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the ErrorAdditionalInfo. + */ + public static ErrorAdditionalInfo fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ErrorAdditionalInfo deserializedErrorAdditionalInfo = new ErrorAdditionalInfo(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("type".equals(fieldName)) { + deserializedErrorAdditionalInfo.type = reader.getString(); + } else if ("info".equals(fieldName)) { + deserializedErrorAdditionalInfo.info = reader.readUntyped(); + } else { + reader.skipChildren(); + } + } + + return deserializedErrorAdditionalInfo; + }); + } +} diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/models/ErrorDetail.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/models/ErrorDetail.java new file mode 100644 index 000000000000..988a092e3884 --- /dev/null +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/models/ErrorDetail.java @@ -0,0 +1,140 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package com.azure.search.documents.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * The error detail. + */ +@Immutable +public final class ErrorDetail implements JsonSerializable { + /* + * The error code. + */ + private String code; + + /* + * The error message. + */ + private String message; + + /* + * The error target. + */ + private String target; + + /* + * The error details. + */ + private List details; + + /* + * The error additional info. + */ + private List additionalInfo; + + /** + * Creates an instance of ErrorDetail class. + */ + public ErrorDetail() { + } + + /** + * Get the code property: The error code. + * + * @return the code value. + */ + public String getCode() { + return this.code; + } + + /** + * Get the message property: The error message. + * + * @return the message value. + */ + public String getMessage() { + return this.message; + } + + /** + * Get the target property: The error target. + * + * @return the target value. + */ + public String getTarget() { + return this.target; + } + + /** + * Get the details property: The error details. + * + * @return the details value. + */ + public List getDetails() { + return this.details; + } + + /** + * Get the additionalInfo property: The error additional info. + * + * @return the additionalInfo value. + */ + public List getAdditionalInfo() { + return this.additionalInfo; + } + + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ErrorDetail from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ErrorDetail if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the ErrorDetail. + */ + public static ErrorDetail fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ErrorDetail deserializedErrorDetail = new ErrorDetail(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("code".equals(fieldName)) { + deserializedErrorDetail.code = reader.getString(); + } else if ("message".equals(fieldName)) { + deserializedErrorDetail.message = reader.getString(); + } else if ("target".equals(fieldName)) { + deserializedErrorDetail.target = reader.getString(); + } else if ("details".equals(fieldName)) { + List details = reader.readArray(reader1 -> ErrorDetail.fromJson(reader1)); + deserializedErrorDetail.details = details; + } else if ("additionalInfo".equals(fieldName)) { + List additionalInfo + = reader.readArray(reader1 -> ErrorAdditionalInfo.fromJson(reader1)); + deserializedErrorDetail.additionalInfo = additionalInfo; + } else { + reader.skipChildren(); + } + } + + return deserializedErrorDetail; + }); + } +} diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/models/ErrorResponse.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/models/ErrorResponse.java new file mode 100644 index 000000000000..b4efd478f1ec --- /dev/null +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/models/ErrorResponse.java @@ -0,0 +1,87 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package com.azure.search.documents.implementation.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Error response + * + * Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also + * follows the OData error response format.). + */ +@Fluent +public final class ErrorResponse implements JsonSerializable { + /* + * The error object. + */ + private ErrorDetail error; + + /** + * Creates an instance of ErrorResponse class. + */ + public ErrorResponse() { + } + + /** + * Get the error property: The error object. + * + * @return the error value. + */ + public ErrorDetail getError() { + return this.error; + } + + /** + * Set the error property: The error object. + * + * @param error the error value to set. + * @return the ErrorResponse object itself. + */ + public ErrorResponse setError(ErrorDetail error) { + this.error = error; + return this; + } + + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("error", this.error); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ErrorResponse from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ErrorResponse if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the ErrorResponse. + */ + public static ErrorResponse fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ErrorResponse deserializedErrorResponse = new ErrorResponse(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("error".equals(fieldName)) { + deserializedErrorResponse.error = ErrorDetail.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedErrorResponse; + }); + } +} diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/models/ErrorResponseException.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/models/ErrorResponseException.java new file mode 100644 index 000000000000..82ec56074f72 --- /dev/null +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/models/ErrorResponseException.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. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package com.azure.search.documents.implementation.models; + +import com.azure.core.exception.HttpResponseException; +import com.azure.core.http.HttpResponse; + +/** + * Exception thrown for an invalid response with ErrorResponse information. + */ +public final class ErrorResponseException extends HttpResponseException { + /** + * Initializes a new instance of the ErrorResponseException class. + * + * @param message the exception message or the response content if a message is not available. + * @param response the HTTP response. + */ + public ErrorResponseException(String message, HttpResponse response) { + super(message, response); + } + + /** + * Initializes a new instance of the ErrorResponseException class. + * + * @param message the exception message or the response content if a message is not available. + * @param response the HTTP response. + * @param value the deserialized response value. + */ + public ErrorResponseException(String message, HttpResponse response, ErrorResponse value) { + super(message, response, value); + } + + /** + * {@inheritDoc} + */ + @Override + public ErrorResponse getValue() { + return (ErrorResponse) super.getValue(); + } +} diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/util/FieldBuilder.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/util/FieldBuilder.java index ddef45c2622e..62040f0d53c9 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/util/FieldBuilder.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/util/FieldBuilder.java @@ -78,10 +78,10 @@ public final class FieldBuilder { SUPPORTED_NONE_PARAMETERIZED_TYPE.put(GeoPoint.class, SearchFieldDataType.GEOGRAPHY_POINT); SUPPORTED_NONE_PARAMETERIZED_TYPE.put(Float.class, SearchFieldDataType.SINGLE); SUPPORTED_NONE_PARAMETERIZED_TYPE.put(float.class, SearchFieldDataType.SINGLE); - UNSUPPORTED_TYPES.add(byte.class); - UNSUPPORTED_TYPES.add(Byte.class); - UNSUPPORTED_TYPES.add(short.class); - UNSUPPORTED_TYPES.add(Short.class); + SUPPORTED_NONE_PARAMETERIZED_TYPE.put(byte.class, SearchFieldDataType.SBYTE); + SUPPORTED_NONE_PARAMETERIZED_TYPE.put(Byte.class, SearchFieldDataType.SBYTE); + SUPPORTED_NONE_PARAMETERIZED_TYPE.put(short.class, SearchFieldDataType.INT16); + SUPPORTED_NONE_PARAMETERIZED_TYPE.put(Short.class, SearchFieldDataType.INT16); } /** @@ -270,7 +270,7 @@ private static SearchField enrichWithAnnotation(SearchField searchField, Member return searchField; } - boolean key, hidden, filterable, sortable, facetable; + boolean key, hidden, filterable, sortable, facetable, stored; boolean searchable = searchableField != null; String analyzerName = null; String searchAnalyzerName = null; @@ -283,6 +283,7 @@ private static SearchField enrichWithAnnotation(SearchField searchField, Member if (simpleField != null) { key = simpleField.isKey(); hidden = simpleField.isHidden(); + stored = simpleField.isStored(); filterable = simpleField.isFilterable(); sortable = simpleField.isSortable(); facetable = simpleField.isFacetable(); @@ -290,6 +291,7 @@ private static SearchField enrichWithAnnotation(SearchField searchField, Member } else { key = searchableField.isKey(); hidden = searchableField.isHidden(); + stored = searchableField.isStored(); filterable = searchableField.isFilterable(); sortable = searchableField.isSortable(); facetable = searchableField.isFacetable(); @@ -354,6 +356,7 @@ private static SearchField enrichWithAnnotation(SearchField searchField, Member .setFilterable(filterable) .setSortable(sortable) .setFacetable(facetable) + .setStored(stored) .setVectorSearchDimensions(vectorSearchDimensions) .setVectorSearchProfileName(vectorSearchProfileName); diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/SearchableField.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/SearchableField.java index b163b112686b..5b6c7ce6b7f1 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/SearchableField.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/SearchableField.java @@ -49,6 +49,13 @@ */ boolean isSortable() default false; + /** + * Indicates if whether the field will be persisted separately on disk to be returned in a search result. + * + * @return A flag indicating if the field or method should generate as a stored {@link SearchField field}. + */ + boolean isStored() default true; + /** * Indicates if the field or method should generate as a filterable {@link SearchField field}. * @@ -118,4 +125,5 @@ * {@link SearchField field}. */ String vectorSearchProfileName() default ""; + } diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/SimpleField.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/SimpleField.java index aa2f43edf7f0..6464d03d7415 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/SimpleField.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/SimpleField.java @@ -47,6 +47,13 @@ */ boolean isSortable() default false; + /** + * Indicates if whether the field will be persisted separately on disk to be returned in a search result. + * + * @return A flag indicating if the field or method should generate as a stored {@link SearchField field}. + */ + boolean isStored() default true; + /** * Indicates if the field or method should generate as a filterable {@link SearchField field}. * diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/AliasesImpl.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/AliasesImpl.java index 3352b4fd93c6..3289bb43155b 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/AliasesImpl.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/AliasesImpl.java @@ -29,9 +29,9 @@ import com.azure.core.http.rest.RestProxy; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; +import com.azure.search.documents.indexes.implementation.models.ErrorResponseException; import com.azure.search.documents.indexes.implementation.models.ListAliasesResult; import com.azure.search.documents.indexes.implementation.models.RequestOptions; -import com.azure.search.documents.indexes.implementation.models.SearchErrorException; import com.azure.search.documents.indexes.models.SearchAlias; import java.util.UUID; import reactor.core.publisher.Mono; @@ -69,7 +69,7 @@ public final class AliasesImpl { public interface AliasesService { @Post("/aliases") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Mono> create(@HostParam("endpoint") String endpoint, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, @@ -77,7 +77,7 @@ Mono> create(@HostParam("endpoint") String endpoint, @Post("/aliases") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Response createSync(@HostParam("endpoint") String endpoint, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, @@ -85,21 +85,21 @@ Response createSync(@HostParam("endpoint") String endpoint, @Get("/aliases") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Mono> list(@HostParam("endpoint") String endpoint, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @Get("/aliases") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Response listSync(@HostParam("endpoint") String endpoint, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @Put("/aliases('{aliasName}')") @ExpectedResponses({ 200, 201 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Mono> createOrUpdate(@HostParam("endpoint") String endpoint, @PathParam("aliasName") String aliasName, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @HeaderParam("If-Match") String ifMatch, @HeaderParam("If-None-Match") String ifNoneMatch, @@ -108,7 +108,7 @@ Mono> createOrUpdate(@HostParam("endpoint") String endpoin @Put("/aliases('{aliasName}')") @ExpectedResponses({ 200, 201 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Response createOrUpdateSync(@HostParam("endpoint") String endpoint, @PathParam("aliasName") String aliasName, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @HeaderParam("If-Match") String ifMatch, @HeaderParam("If-None-Match") String ifNoneMatch, @@ -117,7 +117,7 @@ Response createOrUpdateSync(@HostParam("endpoint") String endpoint, @Delete("/aliases('{aliasName}')") @ExpectedResponses({ 204, 404 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Mono> delete(@HostParam("endpoint") String endpoint, @PathParam("aliasName") String aliasName, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @HeaderParam("If-Match") String ifMatch, @HeaderParam("If-None-Match") String ifNoneMatch, @QueryParam("api-version") String apiVersion, @@ -125,7 +125,7 @@ Mono> delete(@HostParam("endpoint") String endpoint, @PathParam(" @Delete("/aliases('{aliasName}')") @ExpectedResponses({ 204, 404 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Response deleteSync(@HostParam("endpoint") String endpoint, @PathParam("aliasName") String aliasName, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @HeaderParam("If-Match") String ifMatch, @HeaderParam("If-None-Match") String ifNoneMatch, @QueryParam("api-version") String apiVersion, @@ -133,14 +133,14 @@ Response deleteSync(@HostParam("endpoint") String endpoint, @PathParam("al @Get("/aliases('{aliasName}')") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Mono> get(@HostParam("endpoint") String endpoint, @PathParam("aliasName") String aliasName, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @Get("/aliases('{aliasName}')") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Response getSync(@HostParam("endpoint") String endpoint, @PathParam("aliasName") String aliasName, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @@ -152,7 +152,7 @@ Response getSync(@HostParam("endpoint") String endpoint, @PathParam * @param alias The definition of the alias to create. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents an index alias, which describes a mapping from the alias name to an index along with * {@link Response} on successful completion of {@link Mono}. @@ -176,7 +176,7 @@ public Mono> createWithResponseAsync(SearchAlias alias, Re * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents an index alias, which describes a mapping from the alias name to an index along with * {@link Response} on successful completion of {@link Mono}. @@ -200,7 +200,7 @@ public Mono> createWithResponseAsync(SearchAlias alias, Re * @param alias The definition of the alias to create. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents an index alias, which describes a mapping from the alias name to an index on successful * completion of {@link Mono}. @@ -217,7 +217,7 @@ public Mono createAsync(SearchAlias alias, RequestOptions requestOp * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents an index alias, which describes a mapping from the alias name to an index on successful * completion of {@link Mono}. @@ -234,7 +234,7 @@ public Mono createAsync(SearchAlias alias, RequestOptions requestOp * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents an index alias, which describes a mapping from the alias name to an index along with * {@link Response}. @@ -257,7 +257,7 @@ public Response createWithResponse(SearchAlias alias, RequestOption * @param alias The definition of the alias to create. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents an index alias, which describes a mapping from the alias name to an index. */ @@ -271,7 +271,7 @@ public SearchAlias create(SearchAlias alias, RequestOptions requestOptions) { * * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response from a List Aliases request along with {@link PagedResponse} on successful completion of * {@link Mono}. @@ -297,7 +297,7 @@ public Mono> listSinglePageAsync(RequestOptions reque * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response from a List Aliases request along with {@link PagedResponse} on successful completion of * {@link Mono}. @@ -320,7 +320,7 @@ public Mono> listSinglePageAsync(RequestOptions reque * * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response from a List Aliases request as paginated response with {@link PagedFlux}. */ @@ -335,7 +335,7 @@ public PagedFlux listAsync(RequestOptions requestOptions) { * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response from a List Aliases request as paginated response with {@link PagedFlux}. */ @@ -349,7 +349,7 @@ public PagedFlux listAsync(RequestOptions requestOptions, Context c * * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response from a List Aliases request along with {@link PagedResponse}. */ @@ -373,7 +373,7 @@ public PagedResponse listSinglePage(RequestOptions requestOptions) * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response from a List Aliases request along with {@link PagedResponse}. */ @@ -396,7 +396,7 @@ public PagedResponse listSinglePage(RequestOptions requestOptions, * * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response from a List Aliases request as paginated response with {@link PagedIterable}. */ @@ -411,7 +411,7 @@ public PagedIterable list(RequestOptions requestOptions) { * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response from a List Aliases request as paginated response with {@link PagedIterable}. */ @@ -431,7 +431,7 @@ public PagedIterable list(RequestOptions requestOptions, Context co * server does not match this value. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents an index alias, which describes a mapping from the alias name to an index along with * {@link Response} on successful completion of {@link Mono}. @@ -462,7 +462,7 @@ public Mono> createOrUpdateWithResponseAsync(String aliasN * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents an index alias, which describes a mapping from the alias name to an index along with * {@link Response} on successful completion of {@link Mono}. @@ -492,7 +492,7 @@ public Mono> createOrUpdateWithResponseAsync(String aliasN * server does not match this value. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents an index alias, which describes a mapping from the alias name to an index on successful * completion of {@link Mono}. @@ -516,7 +516,7 @@ public Mono createOrUpdateAsync(String aliasName, SearchAlias alias * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents an index alias, which describes a mapping from the alias name to an index on successful * completion of {@link Mono}. @@ -540,7 +540,7 @@ public Mono createOrUpdateAsync(String aliasName, SearchAlias alias * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents an index alias, which describes a mapping from the alias name to an index along with * {@link Response}. @@ -570,7 +570,7 @@ public Response createOrUpdateWithResponse(String aliasName, Search * server does not match this value. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents an index alias, which describes a mapping from the alias name to an index. */ @@ -592,7 +592,7 @@ public SearchAlias createOrUpdate(String aliasName, SearchAlias alias, String if * server does not match this value. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown 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}. */ @@ -621,7 +621,7 @@ public Mono> deleteWithResponseAsync(String aliasName, String ifM * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown 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}. */ @@ -649,7 +649,7 @@ public Mono> deleteWithResponseAsync(String aliasName, String ifM * server does not match this value. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -671,7 +671,7 @@ public Mono deleteAsync(String aliasName, String ifMatch, String ifNoneMat * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -694,7 +694,7 @@ public Mono deleteAsync(String aliasName, String ifMatch, String ifNoneMat * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown 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}. */ @@ -722,7 +722,7 @@ public Response deleteWithResponse(String aliasName, String ifMatch, Strin * server does not match this value. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -736,7 +736,7 @@ public void delete(String aliasName, String ifMatch, String ifNoneMatch, Request * @param aliasName The name of the alias to retrieve. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents an index alias, which describes a mapping from the alias name to an index along with * {@link Response} on successful completion of {@link Mono}. @@ -760,7 +760,7 @@ public Mono> getWithResponseAsync(String aliasName, Reques * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents an index alias, which describes a mapping from the alias name to an index along with * {@link Response} on successful completion of {@link Mono}. @@ -784,7 +784,7 @@ public Mono> getWithResponseAsync(String aliasName, Reques * @param aliasName The name of the alias to retrieve. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents an index alias, which describes a mapping from the alias name to an index on successful * completion of {@link Mono}. @@ -801,7 +801,7 @@ public Mono getAsync(String aliasName, RequestOptions requestOption * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents an index alias, which describes a mapping from the alias name to an index on successful * completion of {@link Mono}. @@ -819,7 +819,7 @@ public Mono getAsync(String aliasName, RequestOptions requestOption * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents an index alias, which describes a mapping from the alias name to an index along with * {@link Response}. @@ -842,7 +842,7 @@ public Response getWithResponse(String aliasName, RequestOptions re * @param aliasName The name of the alias to retrieve. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents an index alias, which describes a mapping from the alias name to an index. */ diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/DataSourcesImpl.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/DataSourcesImpl.java index a2b5fac53fb5..a15d54c173f0 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/DataSourcesImpl.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/DataSourcesImpl.java @@ -25,9 +25,9 @@ import com.azure.core.http.rest.RestProxy; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; +import com.azure.search.documents.indexes.implementation.models.ErrorResponseException; import com.azure.search.documents.indexes.implementation.models.ListDataSourcesResult; import com.azure.search.documents.indexes.implementation.models.RequestOptions; -import com.azure.search.documents.indexes.implementation.models.SearchErrorException; import com.azure.search.documents.indexes.models.SearchIndexerDataSourceConnection; import java.util.UUID; import reactor.core.publisher.Mono; @@ -66,7 +66,7 @@ public final class DataSourcesImpl { public interface DataSourcesService { @Put("/datasources('{dataSourceName}')") @ExpectedResponses({ 200, 201 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Mono> createOrUpdate(@HostParam("endpoint") String endpoint, @PathParam("dataSourceName") String dataSourceName, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @HeaderParam("If-Match") String ifMatch, @@ -78,7 +78,7 @@ Mono> createOrUpdate(@HostParam("end @Put("/datasources('{dataSourceName}')") @ExpectedResponses({ 200, 201 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Response createOrUpdateSync(@HostParam("endpoint") String endpoint, @PathParam("dataSourceName") String dataSourceName, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @HeaderParam("If-Match") String ifMatch, @@ -90,7 +90,7 @@ Response createOrUpdateSync(@HostParam("endpo @Delete("/datasources('{dataSourceName}')") @ExpectedResponses({ 204, 404 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Mono> delete(@HostParam("endpoint") String endpoint, @PathParam("dataSourceName") String dataSourceName, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @HeaderParam("If-Match") String ifMatch, @@ -99,7 +99,7 @@ Mono> delete(@HostParam("endpoint") String endpoint, @Delete("/datasources('{dataSourceName}')") @ExpectedResponses({ 204, 404 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Response deleteSync(@HostParam("endpoint") String endpoint, @PathParam("dataSourceName") String dataSourceName, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @HeaderParam("If-Match") String ifMatch, @@ -108,7 +108,7 @@ Response deleteSync(@HostParam("endpoint") String endpoint, @Get("/datasources('{dataSourceName}')") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Mono> get(@HostParam("endpoint") String endpoint, @PathParam("dataSourceName") String dataSourceName, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @@ -116,7 +116,7 @@ Mono> get(@HostParam("endpoint") Str @Get("/datasources('{dataSourceName}')") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Response getSync(@HostParam("endpoint") String endpoint, @PathParam("dataSourceName") String dataSourceName, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @@ -124,21 +124,21 @@ Response getSync(@HostParam("endpoint") Strin @Get("/datasources") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("$select") String select, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @Get("/datasources") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Response listSync(@HostParam("endpoint") String endpoint, @QueryParam("$select") String select, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @Post("/datasources") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Mono> create(@HostParam("endpoint") String endpoint, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, @@ -146,7 +146,7 @@ Mono> create(@HostParam("endpoint") @Post("/datasources") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Response createSync(@HostParam("endpoint") String endpoint, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, @@ -165,7 +165,7 @@ Response createSync(@HostParam("endpoint") St * @param skipIndexerResetRequirementForCache Ignores cache reset requirements. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a datasource definition, which can be used to configure an indexer along with {@link Response} * on successful completion of {@link Mono}. @@ -199,7 +199,7 @@ public Mono> createOrUpdateWithRespo * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a datasource definition, which can be used to configure an indexer along with {@link Response} * on successful completion of {@link Mono}. @@ -232,7 +232,7 @@ public Mono> createOrUpdateWithRespo * @param skipIndexerResetRequirementForCache Ignores cache reset requirements. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a datasource definition, which can be used to configure an indexer on successful completion of * {@link Mono}. @@ -258,7 +258,7 @@ public Mono createOrUpdateAsync(String dataSo * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a datasource definition, which can be used to configure an indexer on successful completion of * {@link Mono}. @@ -285,7 +285,7 @@ public Mono createOrUpdateAsync(String dataSo * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a datasource definition, which can be used to configure an indexer along with * {@link Response}. @@ -318,7 +318,7 @@ public Response createOrUpdateWithResponse(St * @param skipIndexerResetRequirementForCache Ignores cache reset requirements. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a datasource definition, which can be used to configure an indexer. */ @@ -340,7 +340,7 @@ public SearchIndexerDataSourceConnection createOrUpdate(String dataSourceName, * server does not match this value. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown 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}. */ @@ -368,7 +368,7 @@ public Mono> deleteWithResponseAsync(String dataSourceName, Strin * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown 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}. */ @@ -395,7 +395,7 @@ public Mono> deleteWithResponseAsync(String dataSourceName, Strin * server does not match this value. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -417,7 +417,7 @@ public Mono deleteAsync(String dataSourceName, String ifMatch, String ifNo * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -439,7 +439,7 @@ public Mono deleteAsync(String dataSourceName, String ifMatch, String ifNo * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown 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}. */ @@ -466,7 +466,7 @@ public Response deleteWithResponse(String dataSourceName, String ifMatch, * server does not match this value. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -480,7 +480,7 @@ public void delete(String dataSourceName, String ifMatch, String ifNoneMatch, Re * @param dataSourceName The name of the datasource to retrieve. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a datasource definition, which can be used to configure an indexer along with {@link Response} * on successful completion of {@link Mono}. @@ -505,7 +505,7 @@ public Mono> getWithResponseAsync(St * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a datasource definition, which can be used to configure an indexer along with {@link Response} * on successful completion of {@link Mono}. @@ -529,7 +529,7 @@ public Mono> getWithResponseAsync(St * @param dataSourceName The name of the datasource to retrieve. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a datasource definition, which can be used to configure an indexer on successful completion of * {@link Mono}. @@ -546,7 +546,7 @@ public Mono getAsync(String dataSourceName, R * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a datasource definition, which can be used to configure an indexer on successful completion of * {@link Mono}. @@ -565,7 +565,7 @@ public Mono getAsync(String dataSourceName, R * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a datasource definition, which can be used to configure an indexer along with * {@link Response}. @@ -589,7 +589,7 @@ public Response getWithResponse(String dataSo * @param dataSourceName The name of the datasource to retrieve. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a datasource definition, which can be used to configure an indexer. */ @@ -605,7 +605,7 @@ public SearchIndexerDataSourceConnection get(String dataSourceName, RequestOptio * list of JSON property names, or '*' for all properties. The default is all properties. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response from a List Datasources request along with {@link Response} on successful completion of * {@link Mono}. @@ -630,7 +630,7 @@ public Mono> listWithResponseAsync(String select * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response from a List Datasources request along with {@link Response} on successful completion of * {@link Mono}. @@ -655,7 +655,7 @@ public Mono> listWithResponseAsync(String select * list of JSON property names, or '*' for all properties. The default is all properties. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response from a List Datasources request on successful completion of {@link Mono}. */ @@ -672,7 +672,7 @@ public Mono listAsync(String select, RequestOptions reque * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response from a List Datasources request on successful completion of {@link Mono}. */ @@ -689,7 +689,7 @@ public Mono listAsync(String select, RequestOptions reque * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response from a List Datasources request along with {@link Response}. */ @@ -713,7 +713,7 @@ public Response listWithResponse(String select, RequestOp * list of JSON property names, or '*' for all properties. The default is all properties. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response from a List Datasources request. */ @@ -728,7 +728,7 @@ public ListDataSourcesResult list(String select, RequestOptions requestOptions) * @param dataSource The definition of the datasource to create. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a datasource definition, which can be used to configure an indexer along with {@link Response} * on successful completion of {@link Mono}. @@ -753,7 +753,7 @@ public ListDataSourcesResult list(String select, RequestOptions requestOptions) * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a datasource definition, which can be used to configure an indexer along with {@link Response} * on successful completion of {@link Mono}. @@ -777,7 +777,7 @@ public Mono> createWithResponseAsync * @param dataSource The definition of the datasource to create. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a datasource definition, which can be used to configure an indexer on successful completion of * {@link Mono}. @@ -795,7 +795,7 @@ public Mono createAsync(SearchIndexerDataSour * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a datasource definition, which can be used to configure an indexer on successful completion of * {@link Mono}. @@ -814,7 +814,7 @@ public Mono createAsync(SearchIndexerDataSour * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a datasource definition, which can be used to configure an indexer along with * {@link Response}. @@ -838,7 +838,7 @@ public Response createWithResponse(SearchInde * @param dataSource The definition of the datasource to create. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a datasource definition, which can be used to configure an indexer. */ diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/IndexersImpl.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/IndexersImpl.java index 235ed5da24fa..2d4689f40c74 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/IndexersImpl.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/IndexersImpl.java @@ -26,9 +26,9 @@ import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; import com.azure.search.documents.indexes.implementation.models.DocumentKeysOrIds; +import com.azure.search.documents.indexes.implementation.models.ErrorResponseException; import com.azure.search.documents.indexes.implementation.models.ListIndexersResult; import com.azure.search.documents.indexes.implementation.models.RequestOptions; -import com.azure.search.documents.indexes.implementation.models.SearchErrorException; import com.azure.search.documents.indexes.models.SearchIndexer; import com.azure.search.documents.indexes.models.SearchIndexerStatus; import java.util.UUID; @@ -67,21 +67,21 @@ public final class IndexersImpl { public interface IndexersService { @Post("/indexers('{indexerName}')/search.reset") @ExpectedResponses({ 204 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Mono> reset(@HostParam("endpoint") String endpoint, @PathParam("indexerName") String indexerName, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @Post("/indexers('{indexerName}')/search.reset") @ExpectedResponses({ 204 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Response resetSync(@HostParam("endpoint") String endpoint, @PathParam("indexerName") String indexerName, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @Post("/indexers('{indexerName}')/search.resetdocs") @ExpectedResponses({ 204 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Mono> resetDocs(@HostParam("endpoint") String endpoint, @PathParam("indexerName") String indexerName, @QueryParam("overwrite") Boolean overwrite, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @@ -90,7 +90,7 @@ Mono> resetDocs(@HostParam("endpoint") String endpoint, @Post("/indexers('{indexerName}')/search.resetdocs") @ExpectedResponses({ 204 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Response resetDocsSync(@HostParam("endpoint") String endpoint, @PathParam("indexerName") String indexerName, @QueryParam("overwrite") Boolean overwrite, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @@ -99,21 +99,21 @@ Response resetDocsSync(@HostParam("endpoint") String endpoint, @Post("/indexers('{indexerName}')/search.run") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Mono> run(@HostParam("endpoint") String endpoint, @PathParam("indexerName") String indexerName, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @Post("/indexers('{indexerName}')/search.run") @ExpectedResponses({ 202 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Response runSync(@HostParam("endpoint") String endpoint, @PathParam("indexerName") String indexerName, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @Put("/indexers('{indexerName}')") @ExpectedResponses({ 200, 201 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Mono> createOrUpdate(@HostParam("endpoint") String endpoint, @PathParam("indexerName") String indexerName, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @HeaderParam("If-Match") String ifMatch, @@ -126,7 +126,7 @@ Mono> createOrUpdate(@HostParam("endpoint") String endpo @Put("/indexers('{indexerName}')") @ExpectedResponses({ 200, 201 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Response createOrUpdateSync(@HostParam("endpoint") String endpoint, @PathParam("indexerName") String indexerName, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @HeaderParam("If-Match") String ifMatch, @@ -139,7 +139,7 @@ Response createOrUpdateSync(@HostParam("endpoint") String endpoin @Delete("/indexers('{indexerName}')") @ExpectedResponses({ 204, 404 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Mono> delete(@HostParam("endpoint") String endpoint, @PathParam("indexerName") String indexerName, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @HeaderParam("If-Match") String ifMatch, @@ -148,7 +148,7 @@ Mono> delete(@HostParam("endpoint") String endpoint, @Delete("/indexers('{indexerName}')") @ExpectedResponses({ 204, 404 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Response deleteSync(@HostParam("endpoint") String endpoint, @PathParam("indexerName") String indexerName, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @HeaderParam("If-Match") String ifMatch, @HeaderParam("If-None-Match") String ifNoneMatch, @QueryParam("api-version") String apiVersion, @@ -156,7 +156,7 @@ Response deleteSync(@HostParam("endpoint") String endpoint, @PathParam("in @Get("/indexers('{indexerName}')") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Mono> get(@HostParam("endpoint") String endpoint, @PathParam("indexerName") String indexerName, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @@ -164,7 +164,7 @@ Mono> get(@HostParam("endpoint") String endpoint, @Get("/indexers('{indexerName}')") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Response getSync(@HostParam("endpoint") String endpoint, @PathParam("indexerName") String indexerName, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @@ -172,21 +172,21 @@ Response getSync(@HostParam("endpoint") String endpoint, @Get("/indexers") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("$select") String select, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @Get("/indexers") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Response listSync(@HostParam("endpoint") String endpoint, @QueryParam("$select") String select, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @Post("/indexers") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Mono> create(@HostParam("endpoint") String endpoint, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, @@ -194,7 +194,7 @@ Mono> create(@HostParam("endpoint") String endpoint, @Post("/indexers") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Response createSync(@HostParam("endpoint") String endpoint, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, @@ -202,7 +202,7 @@ Response createSync(@HostParam("endpoint") String endpoint, @Get("/indexers('{indexerName}')/search.status") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Mono> getStatus(@HostParam("endpoint") String endpoint, @PathParam("indexerName") String indexerName, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @@ -210,7 +210,7 @@ Mono> getStatus(@HostParam("endpoint") String endp @Get("/indexers('{indexerName}')/search.status") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Response getStatusSync(@HostParam("endpoint") String endpoint, @PathParam("indexerName") String indexerName, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @@ -223,7 +223,7 @@ Response getStatusSync(@HostParam("endpoint") String endpoi * @param indexerName The name of the indexer to reset. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown 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}. */ @@ -246,7 +246,7 @@ public Mono> resetWithResponseAsync(String indexerName, RequestOp * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown 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}. */ @@ -269,7 +269,7 @@ public Mono> resetWithResponseAsync(String indexerName, RequestOp * @param indexerName The name of the indexer to reset. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -285,7 +285,7 @@ public Mono resetAsync(String indexerName, RequestOptions requestOptions) * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -301,7 +301,7 @@ public Mono resetAsync(String indexerName, RequestOptions requestOptions, * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown 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}. */ @@ -323,7 +323,7 @@ public Response resetWithResponse(String indexerName, RequestOptions reque * @param indexerName The name of the indexer to reset. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -340,7 +340,7 @@ public void reset(String indexerName, RequestOptions requestOptions) { * @param keysOrIds The keysOrIds parameter. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown 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}. */ @@ -367,7 +367,7 @@ public Mono> resetDocsWithResponseAsync(String indexerName, Boole * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown 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}. */ @@ -393,7 +393,7 @@ public Mono> resetDocsWithResponseAsync(String indexerName, Boole * @param keysOrIds The keysOrIds parameter. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -414,7 +414,7 @@ public Mono resetDocsAsync(String indexerName, Boolean overwrite, Document * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -435,7 +435,7 @@ public Mono resetDocsAsync(String indexerName, Boolean overwrite, Document * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown 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}. */ @@ -461,7 +461,7 @@ public Response resetDocsWithResponse(String indexerName, Boolean overwrit * @param keysOrIds The keysOrIds parameter. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -476,7 +476,7 @@ public void resetDocs(String indexerName, Boolean overwrite, DocumentKeysOrIds k * @param indexerName The name of the indexer to run. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown 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}. */ @@ -499,7 +499,7 @@ public Mono> runWithResponseAsync(String indexerName, RequestOpti * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown 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}. */ @@ -522,7 +522,7 @@ public Mono> runWithResponseAsync(String indexerName, RequestOpti * @param indexerName The name of the indexer to run. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -538,7 +538,7 @@ public Mono runAsync(String indexerName, RequestOptions requestOptions) { * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -554,7 +554,7 @@ public Mono runAsync(String indexerName, RequestOptions requestOptions, Co * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown 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}. */ @@ -576,7 +576,7 @@ public Response runWithResponse(String indexerName, RequestOptions request * @param indexerName The name of the indexer to run. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -597,7 +597,7 @@ public void run(String indexerName, RequestOptions requestOptions) { * @param disableCacheReprocessingChangeDetection Disables cache reprocessing change detection. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents an indexer along with {@link Response} on successful completion of {@link Mono}. */ @@ -631,7 +631,7 @@ public Mono> createOrUpdateWithResponseAsync(String inde * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents an indexer along with {@link Response} on successful completion of {@link Mono}. */ @@ -664,7 +664,7 @@ public Mono> createOrUpdateWithResponseAsync(String inde * @param disableCacheReprocessingChangeDetection Disables cache reprocessing change detection. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents an indexer on successful completion of {@link Mono}. */ @@ -691,7 +691,7 @@ public Mono createOrUpdateAsync(String indexerName, SearchIndexer * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents an indexer on successful completion of {@link Mono}. */ @@ -718,7 +718,7 @@ public Mono createOrUpdateAsync(String indexerName, SearchIndexer * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents an indexer along with {@link Response}. */ @@ -751,7 +751,7 @@ public Response createOrUpdateWithResponse(String indexerName, Se * @param disableCacheReprocessingChangeDetection Disables cache reprocessing change detection. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents an indexer. */ @@ -774,7 +774,7 @@ public SearchIndexer createOrUpdate(String indexerName, SearchIndexer indexer, S * server does not match this value. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown 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}. */ @@ -802,7 +802,7 @@ public Mono> deleteWithResponseAsync(String indexerName, String i * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown 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}. */ @@ -829,7 +829,7 @@ public Mono> deleteWithResponseAsync(String indexerName, String i * server does not match this value. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -851,7 +851,7 @@ public Mono deleteAsync(String indexerName, String ifMatch, String ifNoneM * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -873,7 +873,7 @@ public Mono deleteAsync(String indexerName, String ifMatch, String ifNoneM * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown 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}. */ @@ -900,7 +900,7 @@ public Response deleteWithResponse(String indexerName, String ifMatch, Str * server does not match this value. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -914,7 +914,7 @@ public void delete(String indexerName, String ifMatch, String ifNoneMatch, Reque * @param indexerName The name of the indexer to retrieve. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents an indexer along with {@link Response} on successful completion of {@link Mono}. */ @@ -937,7 +937,7 @@ public Mono> getWithResponseAsync(String indexerName, Re * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents an indexer along with {@link Response} on successful completion of {@link Mono}. */ @@ -960,7 +960,7 @@ public Mono> getWithResponseAsync(String indexerName, Re * @param indexerName The name of the indexer to retrieve. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents an indexer on successful completion of {@link Mono}. */ @@ -976,7 +976,7 @@ public Mono getAsync(String indexerName, RequestOptions requestOp * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents an indexer on successful completion of {@link Mono}. */ @@ -993,7 +993,7 @@ public Mono getAsync(String indexerName, RequestOptions requestOp * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents an indexer along with {@link Response}. */ @@ -1015,7 +1015,7 @@ public Response getWithResponse(String indexerName, RequestOption * @param indexerName The name of the indexer to retrieve. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents an indexer. */ @@ -1031,7 +1031,7 @@ public SearchIndexer get(String indexerName, RequestOptions requestOptions) { * of JSON property names, or '*' for all properties. The default is all properties. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response from a List Indexers request along with {@link Response} on successful completion of * {@link Mono}. @@ -1056,7 +1056,7 @@ public Mono> listWithResponseAsync(String select, R * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response from a List Indexers request along with {@link Response} on successful completion of * {@link Mono}. @@ -1081,7 +1081,7 @@ public Mono> listWithResponseAsync(String select, R * of JSON property names, or '*' for all properties. The default is all properties. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response from a List Indexers request on successful completion of {@link Mono}. */ @@ -1098,7 +1098,7 @@ public Mono listAsync(String select, RequestOptions requestO * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response from a List Indexers request on successful completion of {@link Mono}. */ @@ -1115,7 +1115,7 @@ public Mono listAsync(String select, RequestOptions requestO * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response from a List Indexers request along with {@link Response}. */ @@ -1139,7 +1139,7 @@ public Response listWithResponse(String select, RequestOptio * of JSON property names, or '*' for all properties. The default is all properties. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response from a List Indexers request. */ @@ -1154,7 +1154,7 @@ public ListIndexersResult list(String select, RequestOptions requestOptions) { * @param indexer The definition of the indexer to create. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents an indexer along with {@link Response} on successful completion of {@link Mono}. */ @@ -1177,7 +1177,7 @@ public Mono> createWithResponseAsync(SearchIndexer index * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents an indexer along with {@link Response} on successful completion of {@link Mono}. */ @@ -1200,7 +1200,7 @@ public Mono> createWithResponseAsync(SearchIndexer index * @param indexer The definition of the indexer to create. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents an indexer on successful completion of {@link Mono}. */ @@ -1216,7 +1216,7 @@ public Mono createAsync(SearchIndexer indexer, RequestOptions req * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents an indexer on successful completion of {@link Mono}. */ @@ -1233,7 +1233,7 @@ public Mono createAsync(SearchIndexer indexer, RequestOptions req * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents an indexer along with {@link Response}. */ @@ -1256,7 +1256,7 @@ public Response createWithResponse(SearchIndexer indexer, Request * @param indexer The definition of the indexer to create. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents an indexer. */ @@ -1271,7 +1271,7 @@ public SearchIndexer create(SearchIndexer indexer, RequestOptions requestOptions * @param indexerName The name of the indexer for which to retrieve status. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents the current status and execution history of an indexer along with {@link Response} on * successful completion of {@link Mono}. @@ -1296,7 +1296,7 @@ public Mono> getStatusWithResponseAsync(String ind * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents the current status and execution history of an indexer along with {@link Response} on * successful completion of {@link Mono}. @@ -1320,7 +1320,7 @@ public Mono> getStatusWithResponseAsync(String ind * @param indexerName The name of the indexer for which to retrieve status. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents the current status and execution history of an indexer on successful completion of * {@link Mono}. @@ -1337,7 +1337,7 @@ public Mono getStatusAsync(String indexerName, RequestOptio * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents the current status and execution history of an indexer on successful completion of * {@link Mono}. @@ -1356,7 +1356,7 @@ public Mono getStatusAsync(String indexerName, RequestOptio * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents the current status and execution history of an indexer along with {@link Response}. */ @@ -1379,7 +1379,7 @@ public Response getStatusWithResponse(String indexerName, R * @param indexerName The name of the indexer for which to retrieve status. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents the current status and execution history of an indexer. */ diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/IndexesImpl.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/IndexesImpl.java index 438d19d4a8aa..e91da9dea2be 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/IndexesImpl.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/IndexesImpl.java @@ -31,9 +31,9 @@ import com.azure.core.util.FluxUtil; import com.azure.search.documents.indexes.implementation.models.AnalyzeRequest; import com.azure.search.documents.indexes.implementation.models.AnalyzeResult; +import com.azure.search.documents.indexes.implementation.models.ErrorResponseException; import com.azure.search.documents.indexes.implementation.models.ListIndexesResult; import com.azure.search.documents.indexes.implementation.models.RequestOptions; -import com.azure.search.documents.indexes.implementation.models.SearchErrorException; import com.azure.search.documents.indexes.models.SearchIndex; import com.azure.search.documents.indexes.models.SearchIndexStatistics; import java.util.UUID; @@ -72,7 +72,7 @@ public final class IndexesImpl { public interface IndexesService { @Post("/indexes") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Mono> create(@HostParam("endpoint") String endpoint, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, @@ -80,7 +80,7 @@ Mono> create(@HostParam("endpoint") String endpoint, @Post("/indexes") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Response createSync(@HostParam("endpoint") String endpoint, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, @@ -88,21 +88,21 @@ Response createSync(@HostParam("endpoint") String endpoint, @Get("/indexes") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("$select") String select, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @Get("/indexes") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Response listSync(@HostParam("endpoint") String endpoint, @QueryParam("$select") String select, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @Put("/indexes('{indexName}')") @ExpectedResponses({ 200, 201 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Mono> createOrUpdate(@HostParam("endpoint") String endpoint, @PathParam("indexName") String indexName, @QueryParam("allowIndexDowntime") Boolean allowIndexDowntime, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @HeaderParam("If-Match") String ifMatch, @@ -112,7 +112,7 @@ Mono> createOrUpdate(@HostParam("endpoint") String endpoin @Put("/indexes('{indexName}')") @ExpectedResponses({ 200, 201 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Response createOrUpdateSync(@HostParam("endpoint") String endpoint, @PathParam("indexName") String indexName, @QueryParam("allowIndexDowntime") Boolean allowIndexDowntime, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @HeaderParam("If-Match") String ifMatch, @@ -122,7 +122,7 @@ Response createOrUpdateSync(@HostParam("endpoint") String endpoint, @Delete("/indexes('{indexName}')") @ExpectedResponses({ 204, 404 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Mono> delete(@HostParam("endpoint") String endpoint, @PathParam("indexName") String indexName, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @HeaderParam("If-Match") String ifMatch, @HeaderParam("If-None-Match") String ifNoneMatch, @QueryParam("api-version") String apiVersion, @@ -130,7 +130,7 @@ Mono> delete(@HostParam("endpoint") String endpoint, @PathParam(" @Delete("/indexes('{indexName}')") @ExpectedResponses({ 204, 404 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Response deleteSync(@HostParam("endpoint") String endpoint, @PathParam("indexName") String indexName, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @HeaderParam("If-Match") String ifMatch, @HeaderParam("If-None-Match") String ifNoneMatch, @QueryParam("api-version") String apiVersion, @@ -138,35 +138,35 @@ Response deleteSync(@HostParam("endpoint") String endpoint, @PathParam("in @Get("/indexes('{indexName}')") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Mono> get(@HostParam("endpoint") String endpoint, @PathParam("indexName") String indexName, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @Get("/indexes('{indexName}')") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Response getSync(@HostParam("endpoint") String endpoint, @PathParam("indexName") String indexName, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @Get("/indexes('{indexName}')/search.stats") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Mono> getStatistics(@HostParam("endpoint") String endpoint, @PathParam("indexName") String indexName, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @Get("/indexes('{indexName}')/search.stats") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Response getStatisticsSync(@HostParam("endpoint") String endpoint, @PathParam("indexName") String indexName, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @Post("/indexes('{indexName}')/search.analyze") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Mono> analyze(@HostParam("endpoint") String endpoint, @PathParam("indexName") String indexName, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, @@ -174,7 +174,7 @@ Mono> analyze(@HostParam("endpoint") String endpoint, @Post("/indexes('{indexName}')/search.analyze") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Response analyzeSync(@HostParam("endpoint") String endpoint, @PathParam("indexName") String indexName, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, @@ -187,7 +187,7 @@ Response analyzeSync(@HostParam("endpoint") String endpoint, * @param index The definition of the index to create. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a search index definition, which describes the fields and search behavior of an index along * with {@link Response} on successful completion of {@link Mono}. @@ -211,7 +211,7 @@ public Mono> createWithResponseAsync(SearchIndex index, Re * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a search index definition, which describes the fields and search behavior of an index along * with {@link Response} on successful completion of {@link Mono}. @@ -235,7 +235,7 @@ public Mono> createWithResponseAsync(SearchIndex index, Re * @param index The definition of the index to create. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a search index definition, which describes the fields and search behavior of an index on * successful completion of {@link Mono}. @@ -252,7 +252,7 @@ public Mono createAsync(SearchIndex index, RequestOptions requestOp * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a search index definition, which describes the fields and search behavior of an index on * successful completion of {@link Mono}. @@ -269,7 +269,7 @@ public Mono createAsync(SearchIndex index, RequestOptions requestOp * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a search index definition, which describes the fields and search behavior of an index along * with {@link Response}. @@ -292,7 +292,7 @@ public Response createWithResponse(SearchIndex index, RequestOption * @param index The definition of the index to create. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a search index definition, which describes the fields and search behavior of an index. */ @@ -308,7 +308,7 @@ public SearchIndex create(SearchIndex index, RequestOptions requestOptions) { * comma-separated list of JSON property names, or '*' for all properties. The default is all properties. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response from a List Indexes request along with {@link PagedResponse} on successful completion of * {@link Mono}. @@ -336,7 +336,7 @@ public Mono> listSinglePageAsync(String select, Reque * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response from a List Indexes request along with {@link PagedResponse} on successful completion of * {@link Mono}. @@ -363,7 +363,7 @@ public Mono> listSinglePageAsync(String select, Reque * comma-separated list of JSON property names, or '*' for all properties. The default is all properties. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response from a List Indexes request as paginated response with {@link PagedFlux}. */ @@ -380,7 +380,7 @@ public PagedFlux listAsync(String select, RequestOptions requestOpt * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response from a List Indexes request as paginated response with {@link PagedFlux}. */ @@ -396,7 +396,7 @@ public PagedFlux listAsync(String select, RequestOptions requestOpt * comma-separated list of JSON property names, or '*' for all properties. The default is all properties. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response from a List Indexes request along with {@link PagedResponse}. */ @@ -422,7 +422,7 @@ public PagedResponse listSinglePage(String select, RequestOptions r * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response from a List Indexes request along with {@link PagedResponse}. */ @@ -447,7 +447,7 @@ public PagedResponse listSinglePage(String select, RequestOptions r * comma-separated list of JSON property names, or '*' for all properties. The default is all properties. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response from a List Indexes request as paginated response with {@link PagedIterable}. */ @@ -464,7 +464,7 @@ public PagedIterable list(String select, RequestOptions requestOpti * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response from a List Indexes request as paginated response with {@link PagedIterable}. */ @@ -488,7 +488,7 @@ public PagedIterable list(String select, RequestOptions requestOpti * server does not match this value. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a search index definition, which describes the fields and search behavior of an index along * with {@link Response} on successful completion of {@link Mono}. @@ -524,7 +524,7 @@ public Mono> createOrUpdateWithResponseAsync(String indexN * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a search index definition, which describes the fields and search behavior of an index along * with {@link Response} on successful completion of {@link Mono}. @@ -559,7 +559,7 @@ public Mono> createOrUpdateWithResponseAsync(String indexN * server does not match this value. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a search index definition, which describes the fields and search behavior of an index on * successful completion of {@link Mono}. @@ -587,7 +587,7 @@ public Mono createOrUpdateAsync(String indexName, SearchIndex index * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a search index definition, which describes the fields and search behavior of an index on * successful completion of {@link Mono}. @@ -615,7 +615,7 @@ public Mono createOrUpdateAsync(String indexName, SearchIndex index * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a search index definition, which describes the fields and search behavior of an index along * with {@link Response}. @@ -650,7 +650,7 @@ public Response createOrUpdateWithResponse(String indexName, Search * server does not match this value. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a search index definition, which describes the fields and search behavior of an index. */ @@ -673,7 +673,7 @@ public SearchIndex createOrUpdate(String indexName, SearchIndex index, Boolean a * server does not match this value. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown 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}. */ @@ -703,7 +703,7 @@ public Mono> deleteWithResponseAsync(String indexName, String ifM * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown 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}. */ @@ -732,7 +732,7 @@ public Mono> deleteWithResponseAsync(String indexName, String ifM * server does not match this value. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -755,7 +755,7 @@ public Mono deleteAsync(String indexName, String ifMatch, String ifNoneMat * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -779,7 +779,7 @@ public Mono deleteAsync(String indexName, String ifMatch, String ifNoneMat * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown 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}. */ @@ -808,7 +808,7 @@ public Response deleteWithResponse(String indexName, String ifMatch, Strin * server does not match this value. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -822,7 +822,7 @@ public void delete(String indexName, String ifMatch, String ifNoneMatch, Request * @param indexName The name of the index to retrieve. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a search index definition, which describes the fields and search behavior of an index along * with {@link Response} on successful completion of {@link Mono}. @@ -846,7 +846,7 @@ public Mono> getWithResponseAsync(String indexName, Reques * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a search index definition, which describes the fields and search behavior of an index along * with {@link Response} on successful completion of {@link Mono}. @@ -870,7 +870,7 @@ public Mono> getWithResponseAsync(String indexName, Reques * @param indexName The name of the index to retrieve. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a search index definition, which describes the fields and search behavior of an index on * successful completion of {@link Mono}. @@ -887,7 +887,7 @@ public Mono getAsync(String indexName, RequestOptions requestOption * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a search index definition, which describes the fields and search behavior of an index on * successful completion of {@link Mono}. @@ -905,7 +905,7 @@ public Mono getAsync(String indexName, RequestOptions requestOption * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a search index definition, which describes the fields and search behavior of an index along * with {@link Response}. @@ -928,7 +928,7 @@ public Response getWithResponse(String indexName, RequestOptions re * @param indexName The name of the index to retrieve. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a search index definition, which describes the fields and search behavior of an index. */ @@ -943,7 +943,7 @@ public SearchIndex get(String indexName, RequestOptions requestOptions) { * @param indexName The name of the index for which to retrieve statistics. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return statistics for a given index along with {@link Response} on successful completion of {@link Mono}. */ @@ -967,7 +967,7 @@ public Mono> getStatisticsWithResponseAsync(Stri * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return statistics for a given index along with {@link Response} on successful completion of {@link Mono}. */ @@ -990,7 +990,7 @@ public Mono> getStatisticsWithResponseAsync(Stri * @param indexName The name of the index for which to retrieve statistics. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return statistics for a given index on successful completion of {@link Mono}. */ @@ -1007,7 +1007,7 @@ public Mono getStatisticsAsync(String indexName, RequestO * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return statistics for a given index on successful completion of {@link Mono}. */ @@ -1025,7 +1025,7 @@ public Mono getStatisticsAsync(String indexName, RequestO * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return statistics for a given index along with {@link Response}. */ @@ -1048,7 +1048,7 @@ public Response getStatisticsWithResponse(String indexNam * @param indexName The name of the index for which to retrieve statistics. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return statistics for a given index. */ @@ -1064,7 +1064,7 @@ public SearchIndexStatistics getStatistics(String indexName, RequestOptions requ * @param request The text and analyzer or analysis components to test. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of testing an analyzer on text along with {@link Response} on successful completion of * {@link Mono}. @@ -1090,7 +1090,7 @@ public Mono> analyzeWithResponseAsync(String indexName, * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of testing an analyzer on text along with {@link Response} on successful completion of * {@link Mono}. @@ -1115,7 +1115,7 @@ public Mono> analyzeWithResponseAsync(String indexName, * @param request The text and analyzer or analysis components to test. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of testing an analyzer on text on successful completion of {@link Mono}. */ @@ -1133,7 +1133,7 @@ public Mono analyzeAsync(String indexName, AnalyzeRequest request * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of testing an analyzer on text on successful completion of {@link Mono}. */ @@ -1152,7 +1152,7 @@ public Mono analyzeAsync(String indexName, AnalyzeRequest request * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of testing an analyzer on text along with {@link Response}. */ @@ -1176,7 +1176,7 @@ public Response analyzeWithResponse(String indexName, AnalyzeRequ * @param request The text and analyzer or analysis components to test. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of testing an analyzer on text. */ diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/SearchServiceClientImpl.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/SearchServiceClientImpl.java index dca0e9884ac5..3e51bf5355de 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/SearchServiceClientImpl.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/SearchServiceClientImpl.java @@ -26,8 +26,8 @@ import com.azure.core.util.FluxUtil; import com.azure.core.util.serializer.JacksonAdapter; import com.azure.core.util.serializer.SerializerAdapter; +import com.azure.search.documents.indexes.implementation.models.ErrorResponseException; import com.azure.search.documents.indexes.implementation.models.RequestOptions; -import com.azure.search.documents.indexes.implementation.models.SearchErrorException; import com.azure.search.documents.indexes.models.SearchServiceStatistics; import java.util.UUID; import reactor.core.publisher.Mono; @@ -236,14 +236,14 @@ public SearchServiceClientImpl(HttpPipeline httpPipeline, SerializerAdapter seri public interface SearchServiceClientService { @Get("/servicestats") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Mono> getServiceStatistics(@HostParam("endpoint") String endpoint, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @Get("/servicestats") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Response getServiceStatisticsSync(@HostParam("endpoint") String endpoint, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @@ -254,7 +254,7 @@ Response getServiceStatisticsSync(@HostParam("endpoint" * * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return service level statistics for a search service along with {@link Response} on successful completion of * {@link Mono}. @@ -278,7 +278,7 @@ Response getServiceStatisticsSync(@HostParam("endpoint" * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return service level statistics for a search service along with {@link Response} on successful completion of * {@link Mono}. @@ -301,7 +301,7 @@ public Mono> getServiceStatisticsWithResponseA * * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return service level statistics for a search service on successful completion of {@link Mono}. */ @@ -316,7 +316,7 @@ public Mono getServiceStatisticsAsync(RequestOptions re * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return service level statistics for a search service on successful completion of {@link Mono}. */ @@ -332,7 +332,7 @@ public Mono getServiceStatisticsAsync(RequestOptions re * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return service level statistics for a search service along with {@link Response}. */ @@ -354,7 +354,7 @@ public Response getServiceStatisticsWithResponse(Reques * * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return service level statistics for a search service. */ diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/SkillsetsImpl.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/SkillsetsImpl.java index 05793154f18b..109103c83f3e 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/SkillsetsImpl.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/SkillsetsImpl.java @@ -25,9 +25,9 @@ import com.azure.core.http.rest.RestProxy; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; +import com.azure.search.documents.indexes.implementation.models.ErrorResponseException; import com.azure.search.documents.indexes.implementation.models.ListSkillsetsResult; import com.azure.search.documents.indexes.implementation.models.RequestOptions; -import com.azure.search.documents.indexes.implementation.models.SearchErrorException; import com.azure.search.documents.indexes.implementation.models.SkillNames; import com.azure.search.documents.indexes.models.SearchIndexerSkillset; import java.util.UUID; @@ -67,7 +67,7 @@ public final class SkillsetsImpl { public interface SkillsetsService { @Put("/skillsets('{skillsetName}')") @ExpectedResponses({ 200, 201 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Mono> createOrUpdate(@HostParam("endpoint") String endpoint, @PathParam("skillsetName") String skillsetName, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @HeaderParam("If-Match") String ifMatch, @@ -80,7 +80,7 @@ Mono> createOrUpdate(@HostParam("endpoint") Stri @Put("/skillsets('{skillsetName}')") @ExpectedResponses({ 200, 201 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Response createOrUpdateSync(@HostParam("endpoint") String endpoint, @PathParam("skillsetName") String skillsetName, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @HeaderParam("If-Match") String ifMatch, @@ -93,7 +93,7 @@ Response createOrUpdateSync(@HostParam("endpoint") String @Delete("/skillsets('{skillsetName}')") @ExpectedResponses({ 204, 404 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Mono> delete(@HostParam("endpoint") String endpoint, @PathParam("skillsetName") String skillsetName, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @HeaderParam("If-Match") String ifMatch, @@ -102,7 +102,7 @@ Mono> delete(@HostParam("endpoint") String endpoint, @Delete("/skillsets('{skillsetName}')") @ExpectedResponses({ 204, 404 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Response deleteSync(@HostParam("endpoint") String endpoint, @PathParam("skillsetName") String skillsetName, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @HeaderParam("If-Match") String ifMatch, @@ -111,7 +111,7 @@ Response deleteSync(@HostParam("endpoint") String endpoint, @Get("/skillsets('{skillsetName}')") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Mono> get(@HostParam("endpoint") String endpoint, @PathParam("skillsetName") String skillsetName, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @@ -119,7 +119,7 @@ Mono> get(@HostParam("endpoint") String endpoint @Get("/skillsets('{skillsetName}')") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Response getSync(@HostParam("endpoint") String endpoint, @PathParam("skillsetName") String skillsetName, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @@ -127,21 +127,21 @@ Response getSync(@HostParam("endpoint") String endpoint, @Get("/skillsets") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("$select") String select, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @Get("/skillsets") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Response listSync(@HostParam("endpoint") String endpoint, @QueryParam("$select") String select, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @Post("/skillsets") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Mono> create(@HostParam("endpoint") String endpoint, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, @@ -149,7 +149,7 @@ Mono> create(@HostParam("endpoint") String endpo @Post("/skillsets") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Response createSync(@HostParam("endpoint") String endpoint, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, @@ -157,7 +157,7 @@ Response createSync(@HostParam("endpoint") String endpoin @Post("/skillsets('{skillsetName}')/search.resetskills") @ExpectedResponses({ 204 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Mono> resetSkills(@HostParam("endpoint") String endpoint, @PathParam("skillsetName") String skillsetName, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @@ -166,7 +166,7 @@ Mono> resetSkills(@HostParam("endpoint") String endpoint, @Post("/skillsets('{skillsetName}')/search.resetskills") @ExpectedResponses({ 204 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Response resetSkillsSync(@HostParam("endpoint") String endpoint, @PathParam("skillsetName") String skillsetName, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @@ -187,7 +187,7 @@ Response resetSkillsSync(@HostParam("endpoint") String endpoint, * @param disableCacheReprocessingChangeDetection Disables cache reprocessing change detection. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of skills along with {@link Response} on successful completion of {@link Mono}. */ @@ -221,7 +221,7 @@ public Mono> createOrUpdateWithResponseAsync(Str * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of skills along with {@link Response} on successful completion of {@link Mono}. */ @@ -254,7 +254,7 @@ public Mono> createOrUpdateWithResponseAsync(Str * @param disableCacheReprocessingChangeDetection Disables cache reprocessing change detection. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of skills on successful completion of {@link Mono}. */ @@ -281,7 +281,7 @@ public Mono createOrUpdateAsync(String skillsetName, Sear * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of skills on successful completion of {@link Mono}. */ @@ -308,7 +308,7 @@ public Mono createOrUpdateAsync(String skillsetName, Sear * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of skills along with {@link Response}. */ @@ -341,7 +341,7 @@ public Response createOrUpdateWithResponse(String skillse * @param disableCacheReprocessingChangeDetection Disables cache reprocessing change detection. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of skills. */ @@ -364,7 +364,7 @@ public SearchIndexerSkillset createOrUpdate(String skillsetName, SearchIndexerSk * server does not match this value. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown 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}. */ @@ -392,7 +392,7 @@ public Mono> deleteWithResponseAsync(String skillsetName, String * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown 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}. */ @@ -419,7 +419,7 @@ public Mono> deleteWithResponseAsync(String skillsetName, String * server does not match this value. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -441,7 +441,7 @@ public Mono deleteAsync(String skillsetName, String ifMatch, String ifNone * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -463,7 +463,7 @@ public Mono deleteAsync(String skillsetName, String ifMatch, String ifNone * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown 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}. */ @@ -490,7 +490,7 @@ public Response deleteWithResponse(String skillsetName, String ifMatch, St * server does not match this value. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -504,7 +504,7 @@ public void delete(String skillsetName, String ifMatch, String ifNoneMatch, Requ * @param skillsetName The name of the skillset to retrieve. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of skills along with {@link Response} on successful completion of {@link Mono}. */ @@ -528,7 +528,7 @@ public Mono> getWithResponseAsync(String skillse * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of skills along with {@link Response} on successful completion of {@link Mono}. */ @@ -551,7 +551,7 @@ public Mono> getWithResponseAsync(String skillse * @param skillsetName The name of the skillset to retrieve. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of skills on successful completion of {@link Mono}. */ @@ -567,7 +567,7 @@ public Mono getAsync(String skillsetName, RequestOptions * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of skills on successful completion of {@link Mono}. */ @@ -584,7 +584,7 @@ public Mono getAsync(String skillsetName, RequestOptions * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of skills along with {@link Response}. */ @@ -607,7 +607,7 @@ public Response getWithResponse(String skillsetName, Requ * @param skillsetName The name of the skillset to retrieve. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of skills. */ @@ -623,7 +623,7 @@ public SearchIndexerSkillset get(String skillsetName, RequestOptions requestOpti * list of JSON property names, or '*' for all properties. The default is all properties. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response from a list skillset request along with {@link Response} on successful completion of * {@link Mono}. @@ -648,7 +648,7 @@ public Mono> listWithResponseAsync(String select, * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response from a list skillset request along with {@link Response} on successful completion of * {@link Mono}. @@ -673,7 +673,7 @@ public Mono> listWithResponseAsync(String select, * list of JSON property names, or '*' for all properties. The default is all properties. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response from a list skillset request on successful completion of {@link Mono}. */ @@ -690,7 +690,7 @@ public Mono listAsync(String select, RequestOptions request * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response from a list skillset request on successful completion of {@link Mono}. */ @@ -707,7 +707,7 @@ public Mono listAsync(String select, RequestOptions request * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response from a list skillset request along with {@link Response}. */ @@ -731,7 +731,7 @@ public Response listWithResponse(String select, RequestOpti * list of JSON property names, or '*' for all properties. The default is all properties. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response from a list skillset request. */ @@ -746,7 +746,7 @@ public ListSkillsetsResult list(String select, RequestOptions requestOptions) { * @param skillset The skillset containing one or more skills to create in a search service. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of skills along with {@link Response} on successful completion of {@link Mono}. */ @@ -770,7 +770,7 @@ public Mono> createWithResponseAsync(SearchIndex * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of skills along with {@link Response} on successful completion of {@link Mono}. */ @@ -793,7 +793,7 @@ public Mono> createWithResponseAsync(SearchIndex * @param skillset The skillset containing one or more skills to create in a search service. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of skills on successful completion of {@link Mono}. */ @@ -809,7 +809,7 @@ public Mono createAsync(SearchIndexerSkillset skillset, R * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of skills on successful completion of {@link Mono}. */ @@ -827,7 +827,7 @@ public Mono createAsync(SearchIndexerSkillset skillset, R * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of skills along with {@link Response}. */ @@ -850,7 +850,7 @@ public Response createWithResponse(SearchIndexerSkillset * @param skillset The skillset containing one or more skills to create in a search service. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of skills. */ @@ -866,7 +866,7 @@ public SearchIndexerSkillset create(SearchIndexerSkillset skillset, RequestOptio * @param skillNames The names of skills to reset. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown 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}. */ @@ -891,7 +891,7 @@ public Mono> resetSkillsWithResponseAsync(String skillsetName, Sk * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown 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}. */ @@ -915,7 +915,7 @@ public Mono> resetSkillsWithResponseAsync(String skillsetName, Sk * @param skillNames The names of skills to reset. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -932,7 +932,7 @@ public Mono resetSkillsAsync(String skillsetName, SkillNames skillNames, R * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -951,7 +951,7 @@ public Mono resetSkillsAsync(String skillsetName, SkillNames skillNames, R * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown 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}. */ @@ -975,7 +975,7 @@ public Response resetSkillsWithResponse(String skillsetName, SkillNames sk * @param skillNames The names of skills to reset. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/SynonymMapsImpl.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/SynonymMapsImpl.java index b48f92647d4c..d63503c5da00 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/SynonymMapsImpl.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/SynonymMapsImpl.java @@ -25,9 +25,9 @@ import com.azure.core.http.rest.RestProxy; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; +import com.azure.search.documents.indexes.implementation.models.ErrorResponseException; import com.azure.search.documents.indexes.implementation.models.ListSynonymMapsResult; import com.azure.search.documents.indexes.implementation.models.RequestOptions; -import com.azure.search.documents.indexes.implementation.models.SearchErrorException; import com.azure.search.documents.indexes.models.SynonymMap; import java.util.UUID; import reactor.core.publisher.Mono; @@ -66,7 +66,7 @@ public final class SynonymMapsImpl { public interface SynonymMapsService { @Put("/synonymmaps('{synonymMapName}')") @ExpectedResponses({ 200, 201 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Mono> createOrUpdate(@HostParam("endpoint") String endpoint, @PathParam("synonymMapName") String synonymMapName, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @HeaderParam("If-Match") String ifMatch, @@ -76,7 +76,7 @@ Mono> createOrUpdate(@HostParam("endpoint") String endpoint @Put("/synonymmaps('{synonymMapName}')") @ExpectedResponses({ 200, 201 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Response createOrUpdateSync(@HostParam("endpoint") String endpoint, @PathParam("synonymMapName") String synonymMapName, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @HeaderParam("If-Match") String ifMatch, @@ -86,7 +86,7 @@ Response createOrUpdateSync(@HostParam("endpoint") String endpoint, @Delete("/synonymmaps('{synonymMapName}')") @ExpectedResponses({ 204, 404 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Mono> delete(@HostParam("endpoint") String endpoint, @PathParam("synonymMapName") String synonymMapName, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @HeaderParam("If-Match") String ifMatch, @@ -95,7 +95,7 @@ Mono> delete(@HostParam("endpoint") String endpoint, @Delete("/synonymmaps('{synonymMapName}')") @ExpectedResponses({ 204, 404 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Response deleteSync(@HostParam("endpoint") String endpoint, @PathParam("synonymMapName") String synonymMapName, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @HeaderParam("If-Match") String ifMatch, @@ -104,7 +104,7 @@ Response deleteSync(@HostParam("endpoint") String endpoint, @Get("/synonymmaps('{synonymMapName}')") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Mono> get(@HostParam("endpoint") String endpoint, @PathParam("synonymMapName") String synonymMapName, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @@ -112,7 +112,7 @@ Mono> get(@HostParam("endpoint") String endpoint, @Get("/synonymmaps('{synonymMapName}')") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Response getSync(@HostParam("endpoint") String endpoint, @PathParam("synonymMapName") String synonymMapName, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @@ -120,21 +120,21 @@ Response getSync(@HostParam("endpoint") String endpoint, @Get("/synonymmaps") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("$select") String select, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @Get("/synonymmaps") @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Response listSync(@HostParam("endpoint") String endpoint, @QueryParam("$select") String select, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); @Post("/synonymmaps") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Mono> create(@HostParam("endpoint") String endpoint, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, @@ -142,7 +142,7 @@ Mono> create(@HostParam("endpoint") String endpoint, @Post("/synonymmaps") @ExpectedResponses({ 201 }) - @UnexpectedResponseExceptionType(SearchErrorException.class) + @UnexpectedResponseExceptionType(ErrorResponseException.class) Response createSync(@HostParam("endpoint") String endpoint, @HeaderParam("x-ms-client-request-id") UUID xMsClientRequestId, @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, @@ -160,7 +160,7 @@ Response createSync(@HostParam("endpoint") String endpoint, * server does not match this value. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a synonym map definition along with {@link Response} on successful completion of {@link Mono}. */ @@ -191,7 +191,7 @@ public Mono> createOrUpdateWithResponseAsync(String synonym * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a synonym map definition along with {@link Response} on successful completion of {@link Mono}. */ @@ -220,7 +220,7 @@ public Mono> createOrUpdateWithResponseAsync(String synonym * server does not match this value. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a synonym map definition on successful completion of {@link Mono}. */ @@ -243,7 +243,7 @@ public Mono createOrUpdateAsync(String synonymMapName, SynonymMap sy * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a synonym map definition on successful completion of {@link Mono}. */ @@ -266,7 +266,7 @@ public Mono createOrUpdateAsync(String synonymMapName, SynonymMap sy * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a synonym map definition along with {@link Response}. */ @@ -295,7 +295,7 @@ public Response createOrUpdateWithResponse(String synonymMapName, Sy * server does not match this value. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a synonym map definition. */ @@ -316,7 +316,7 @@ public SynonymMap createOrUpdate(String synonymMapName, SynonymMap synonymMap, S * server does not match this value. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown 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}. */ @@ -344,7 +344,7 @@ public Mono> deleteWithResponseAsync(String synonymMapName, Strin * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown 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}. */ @@ -371,7 +371,7 @@ public Mono> deleteWithResponseAsync(String synonymMapName, Strin * server does not match this value. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -393,7 +393,7 @@ public Mono deleteAsync(String synonymMapName, String ifMatch, String ifNo * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @@ -415,7 +415,7 @@ public Mono deleteAsync(String synonymMapName, String ifMatch, String ifNo * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown 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}. */ @@ -442,7 +442,7 @@ public Response deleteWithResponse(String synonymMapName, String ifMatch, * server does not match this value. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -456,7 +456,7 @@ public void delete(String synonymMapName, String ifMatch, String ifNoneMatch, Re * @param synonymMapName The name of the synonym map to retrieve. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a synonym map definition along with {@link Response} on successful completion of {@link Mono}. */ @@ -479,7 +479,7 @@ public Mono> getWithResponseAsync(String synonymMapName, Re * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a synonym map definition along with {@link Response} on successful completion of {@link Mono}. */ @@ -502,7 +502,7 @@ public Mono> getWithResponseAsync(String synonymMapName, Re * @param synonymMapName The name of the synonym map to retrieve. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a synonym map definition on successful completion of {@link Mono}. */ @@ -518,7 +518,7 @@ public Mono getAsync(String synonymMapName, RequestOptions requestOp * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a synonym map definition on successful completion of {@link Mono}. */ @@ -535,7 +535,7 @@ public Mono getAsync(String synonymMapName, RequestOptions requestOp * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a synonym map definition along with {@link Response}. */ @@ -557,7 +557,7 @@ public Response getWithResponse(String synonymMapName, RequestOption * @param synonymMapName The name of the synonym map to retrieve. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a synonym map definition. */ @@ -573,7 +573,7 @@ public SynonymMap get(String synonymMapName, RequestOptions requestOptions) { * list of JSON property names, or '*' for all properties. The default is all properties. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response from a List SynonymMaps request along with {@link Response} on successful completion of * {@link Mono}. @@ -598,7 +598,7 @@ public Mono> listWithResponseAsync(String select * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response from a List SynonymMaps request along with {@link Response} on successful completion of * {@link Mono}. @@ -623,7 +623,7 @@ public Mono> listWithResponseAsync(String select * list of JSON property names, or '*' for all properties. The default is all properties. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response from a List SynonymMaps request on successful completion of {@link Mono}. */ @@ -640,7 +640,7 @@ public Mono listAsync(String select, RequestOptions reque * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response from a List SynonymMaps request on successful completion of {@link Mono}. */ @@ -657,7 +657,7 @@ public Mono listAsync(String select, RequestOptions reque * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response from a List SynonymMaps request along with {@link Response}. */ @@ -681,7 +681,7 @@ public Response listWithResponse(String select, RequestOp * list of JSON property names, or '*' for all properties. The default is all properties. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return response from a List SynonymMaps request. */ @@ -696,7 +696,7 @@ public ListSynonymMapsResult list(String select, RequestOptions requestOptions) * @param synonymMap The definition of the synonym map to create. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a synonym map definition along with {@link Response} on successful completion of {@link Mono}. */ @@ -719,7 +719,7 @@ public Mono> createWithResponseAsync(SynonymMap synonymMap, * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a synonym map definition along with {@link Response} on successful completion of {@link Mono}. */ @@ -742,7 +742,7 @@ public Mono> createWithResponseAsync(SynonymMap synonymMap, * @param synonymMap The definition of the synonym map to create. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a synonym map definition on successful completion of {@link Mono}. */ @@ -758,7 +758,7 @@ public Mono createAsync(SynonymMap synonymMap, RequestOptions reques * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a synonym map definition on successful completion of {@link Mono}. */ @@ -775,7 +775,7 @@ public Mono createAsync(SynonymMap synonymMap, RequestOptions reques * @param requestOptions Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a synonym map definition along with {@link Response}. */ @@ -798,7 +798,7 @@ public Response createWithResponse(SynonymMap synonymMap, RequestOpt * @param synonymMap The definition of the synonym map to create. * @param requestOptions Parameter group. * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws SearchErrorException thrown if the request is rejected by server. + * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a synonym map definition. */ diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/ErrorAdditionalInfo.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/ErrorAdditionalInfo.java new file mode 100644 index 000000000000..7e2ebe673585 --- /dev/null +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/ErrorAdditionalInfo.java @@ -0,0 +1,88 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package com.azure.search.documents.indexes.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * The resource management error additional info. + */ +@Immutable +public final class ErrorAdditionalInfo implements JsonSerializable { + /* + * The additional info type. + */ + private String type; + + /* + * The additional info. + */ + private Object info; + + /** + * Creates an instance of ErrorAdditionalInfo class. + */ + public ErrorAdditionalInfo() { + } + + /** + * Get the type property: The additional info type. + * + * @return the type value. + */ + public String getType() { + return this.type; + } + + /** + * Get the info property: The additional info. + * + * @return the info value. + */ + public Object getInfo() { + return this.info; + } + + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ErrorAdditionalInfo from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ErrorAdditionalInfo if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the ErrorAdditionalInfo. + */ + public static ErrorAdditionalInfo fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ErrorAdditionalInfo deserializedErrorAdditionalInfo = new ErrorAdditionalInfo(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("type".equals(fieldName)) { + deserializedErrorAdditionalInfo.type = reader.getString(); + } else if ("info".equals(fieldName)) { + deserializedErrorAdditionalInfo.info = reader.readUntyped(); + } else { + reader.skipChildren(); + } + } + + return deserializedErrorAdditionalInfo; + }); + } +} diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/ErrorDetail.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/ErrorDetail.java new file mode 100644 index 000000000000..ac3ecce49150 --- /dev/null +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/ErrorDetail.java @@ -0,0 +1,140 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package com.azure.search.documents.indexes.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * The error detail. + */ +@Immutable +public final class ErrorDetail implements JsonSerializable { + /* + * The error code. + */ + private String code; + + /* + * The error message. + */ + private String message; + + /* + * The error target. + */ + private String target; + + /* + * The error details. + */ + private List details; + + /* + * The error additional info. + */ + private List additionalInfo; + + /** + * Creates an instance of ErrorDetail class. + */ + public ErrorDetail() { + } + + /** + * Get the code property: The error code. + * + * @return the code value. + */ + public String getCode() { + return this.code; + } + + /** + * Get the message property: The error message. + * + * @return the message value. + */ + public String getMessage() { + return this.message; + } + + /** + * Get the target property: The error target. + * + * @return the target value. + */ + public String getTarget() { + return this.target; + } + + /** + * Get the details property: The error details. + * + * @return the details value. + */ + public List getDetails() { + return this.details; + } + + /** + * Get the additionalInfo property: The error additional info. + * + * @return the additionalInfo value. + */ + public List getAdditionalInfo() { + return this.additionalInfo; + } + + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ErrorDetail from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ErrorDetail if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the ErrorDetail. + */ + public static ErrorDetail fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ErrorDetail deserializedErrorDetail = new ErrorDetail(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("code".equals(fieldName)) { + deserializedErrorDetail.code = reader.getString(); + } else if ("message".equals(fieldName)) { + deserializedErrorDetail.message = reader.getString(); + } else if ("target".equals(fieldName)) { + deserializedErrorDetail.target = reader.getString(); + } else if ("details".equals(fieldName)) { + List details = reader.readArray(reader1 -> ErrorDetail.fromJson(reader1)); + deserializedErrorDetail.details = details; + } else if ("additionalInfo".equals(fieldName)) { + List additionalInfo + = reader.readArray(reader1 -> ErrorAdditionalInfo.fromJson(reader1)); + deserializedErrorDetail.additionalInfo = additionalInfo; + } else { + reader.skipChildren(); + } + } + + return deserializedErrorDetail; + }); + } +} diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/ErrorResponse.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/ErrorResponse.java new file mode 100644 index 000000000000..f414801b282d --- /dev/null +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/ErrorResponse.java @@ -0,0 +1,87 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package com.azure.search.documents.indexes.implementation.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Error response + * + * Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also + * follows the OData error response format.). + */ +@Fluent +public final class ErrorResponse implements JsonSerializable { + /* + * The error object. + */ + private ErrorDetail error; + + /** + * Creates an instance of ErrorResponse class. + */ + public ErrorResponse() { + } + + /** + * Get the error property: The error object. + * + * @return the error value. + */ + public ErrorDetail getError() { + return this.error; + } + + /** + * Set the error property: The error object. + * + * @param error the error value to set. + * @return the ErrorResponse object itself. + */ + public ErrorResponse setError(ErrorDetail error) { + this.error = error; + return this; + } + + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("error", this.error); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ErrorResponse from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ErrorResponse if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the ErrorResponse. + */ + public static ErrorResponse fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ErrorResponse deserializedErrorResponse = new ErrorResponse(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("error".equals(fieldName)) { + deserializedErrorResponse.error = ErrorDetail.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedErrorResponse; + }); + } +} diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/ErrorResponseException.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/ErrorResponseException.java new file mode 100644 index 000000000000..a83cabce5e5c --- /dev/null +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/ErrorResponseException.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. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package com.azure.search.documents.indexes.implementation.models; + +import com.azure.core.exception.HttpResponseException; +import com.azure.core.http.HttpResponse; + +/** + * Exception thrown for an invalid response with ErrorResponse information. + */ +public final class ErrorResponseException extends HttpResponseException { + /** + * Initializes a new instance of the ErrorResponseException class. + * + * @param message the exception message or the response content if a message is not available. + * @param response the HTTP response. + */ + public ErrorResponseException(String message, HttpResponse response) { + super(message, response); + } + + /** + * Initializes a new instance of the ErrorResponseException class. + * + * @param message the exception message or the response content if a message is not available. + * @param response the HTTP response. + * @param value the deserialized response value. + */ + public ErrorResponseException(String message, HttpResponse response, ErrorResponse value) { + super(message, response, value); + } + + /** + * {@inheritDoc} + */ + @Override + public ErrorResponse getValue() { + return (ErrorResponse) super.getValue(); + } +} diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/ScalarQuantizationCompressionConfiguration.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/ScalarQuantizationCompressionConfiguration.java new file mode 100644 index 000000000000..507000eddcc2 --- /dev/null +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/ScalarQuantizationCompressionConfiguration.java @@ -0,0 +1,141 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package com.azure.search.documents.indexes.implementation.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.search.documents.indexes.models.VectorSearchCompressionConfiguration; +import com.azure.search.documents.indexes.models.VectorSearchCompressionKind; +import java.io.IOException; + +/** + * Contains configuration options specific to the scalar quantization compression method used during indexing and + * querying. + */ +@Fluent +public final class ScalarQuantizationCompressionConfiguration extends VectorSearchCompressionConfiguration { + /* + * Contains the parameters specific to Scalar Quantization. + */ + private ScalarQuantizationParameters parameters; + + /** + * Creates an instance of ScalarQuantizationCompressionConfiguration class. + * + * @param name the name value to set. + */ + public ScalarQuantizationCompressionConfiguration(String name) { + super(name); + } + + /** + * Get the parameters property: Contains the parameters specific to Scalar Quantization. + * + * @return the parameters value. + */ + public ScalarQuantizationParameters getParameters() { + return this.parameters; + } + + /** + * Set the parameters property: Contains the parameters specific to Scalar Quantization. + * + * @param parameters the parameters value to set. + * @return the ScalarQuantizationCompressionConfiguration object itself. + */ + public ScalarQuantizationCompressionConfiguration setParameters(ScalarQuantizationParameters parameters) { + this.parameters = parameters; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public ScalarQuantizationCompressionConfiguration setRerankWithOriginalVectors(Boolean rerankWithOriginalVectors) { + super.setRerankWithOriginalVectors(rerankWithOriginalVectors); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public ScalarQuantizationCompressionConfiguration setDefaultOversampling(Double defaultOversampling) { + super.setDefaultOversampling(defaultOversampling); + return this; + } + + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("kind", VectorSearchCompressionKind.SCALAR_QUANTIZATION == null ? null + : VectorSearchCompressionKind.SCALAR_QUANTIZATION.toString()); + jsonWriter.writeStringField("name", getName()); + jsonWriter.writeBooleanField("rerankWithOriginalVectors", isRerankWithOriginalVectors()); + jsonWriter.writeNumberField("defaultOversampling", getDefaultOversampling()); + jsonWriter.writeJsonField("scalarQuantizationParameters", this.parameters); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ScalarQuantizationCompressionConfiguration from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ScalarQuantizationCompressionConfiguration if the JsonReader was pointing to an instance + * of it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties or the + * polymorphic discriminator. + * @throws IOException If an error occurs while reading the ScalarQuantizationCompressionConfiguration. + */ + public static ScalarQuantizationCompressionConfiguration fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + boolean nameFound = false; + String name = null; + Boolean rerankWithOriginalVectors = null; + Double defaultOversampling = null; + ScalarQuantizationParameters parameters = null; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("kind".equals(fieldName)) { + String kind = reader.getString(); + if (!"scalarQuantization".equals(kind)) { + throw new IllegalStateException( + "'kind' was expected to be non-null and equal to 'scalarQuantization'. The found 'kind' was '" + + kind + "'."); + } + } else if ("name".equals(fieldName)) { + name = reader.getString(); + nameFound = true; + } else if ("rerankWithOriginalVectors".equals(fieldName)) { + rerankWithOriginalVectors = reader.getNullable(JsonReader::getBoolean); + } else if ("defaultOversampling".equals(fieldName)) { + defaultOversampling = reader.getNullable(JsonReader::getDouble); + } else if ("scalarQuantizationParameters".equals(fieldName)) { + parameters = ScalarQuantizationParameters.fromJson(reader); + } else { + reader.skipChildren(); + } + } + if (nameFound) { + ScalarQuantizationCompressionConfiguration deserializedScalarQuantizationCompressionConfiguration + = new ScalarQuantizationCompressionConfiguration(name); + deserializedScalarQuantizationCompressionConfiguration + .setRerankWithOriginalVectors(rerankWithOriginalVectors); + deserializedScalarQuantizationCompressionConfiguration.setDefaultOversampling(defaultOversampling); + deserializedScalarQuantizationCompressionConfiguration.parameters = parameters; + + return deserializedScalarQuantizationCompressionConfiguration; + } + throw new IllegalStateException("Missing required property: name"); + }); + } +} diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/ScalarQuantizationParameters.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/ScalarQuantizationParameters.java new file mode 100644 index 000000000000..04e15571cc13 --- /dev/null +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/ScalarQuantizationParameters.java @@ -0,0 +1,87 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package com.azure.search.documents.indexes.implementation.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.search.documents.indexes.models.VectorSearchCompressionTargetDataType; +import java.io.IOException; + +/** + * Contains the parameters specific to Scalar Quantization. + */ +@Fluent +public final class ScalarQuantizationParameters implements JsonSerializable { + /* + * The quantized data type of compressed vector values. + */ + private VectorSearchCompressionTargetDataType quantizedDataType; + + /** + * Creates an instance of ScalarQuantizationParameters class. + */ + public ScalarQuantizationParameters() { + } + + /** + * Get the quantizedDataType property: The quantized data type of compressed vector values. + * + * @return the quantizedDataType value. + */ + public VectorSearchCompressionTargetDataType getQuantizedDataType() { + return this.quantizedDataType; + } + + /** + * Set the quantizedDataType property: The quantized data type of compressed vector values. + * + * @param quantizedDataType the quantizedDataType value to set. + * @return the ScalarQuantizationParameters object itself. + */ + public ScalarQuantizationParameters setQuantizedDataType(VectorSearchCompressionTargetDataType quantizedDataType) { + this.quantizedDataType = quantizedDataType; + return this; + } + + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("quantizedDataType", + this.quantizedDataType == null ? null : this.quantizedDataType.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ScalarQuantizationParameters from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ScalarQuantizationParameters if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ScalarQuantizationParameters. + */ + public static ScalarQuantizationParameters fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ScalarQuantizationParameters deserializedScalarQuantizationParameters = new ScalarQuantizationParameters(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("quantizedDataType".equals(fieldName)) { + deserializedScalarQuantizationParameters.quantizedDataType + = VectorSearchCompressionTargetDataType.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedScalarQuantizationParameters; + }); + } +} diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/CustomWebApiParameters.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/CustomWebApiParameters.java index 877a1953fcac..5deb2a5c8902 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/CustomWebApiParameters.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/CustomWebApiParameters.java @@ -44,7 +44,7 @@ public final class CustomWebApiParameters implements JsonSerializable getHttpHeaders() { @@ -94,7 +94,7 @@ public Map getHttpHeaders() { /** * Set the httpHeaders property: The headers required to make the HTTP request. - * + * * @param httpHeaders the httpHeaders value to set. * @return the CustomWebApiParameters object itself. */ @@ -105,7 +105,7 @@ public CustomWebApiParameters setHttpHeaders(Map httpHeaders) { /** * Get the httpMethod property: The method for the HTTP request. - * + * * @return the httpMethod value. */ public String getHttpMethod() { @@ -114,7 +114,7 @@ public String getHttpMethod() { /** * Set the httpMethod property: The method for the HTTP request. - * + * * @param httpMethod the httpMethod value to set. * @return the CustomWebApiParameters object itself. */ @@ -125,7 +125,7 @@ public CustomWebApiParameters setHttpMethod(String httpMethod) { /** * Get the timeout property: The desired timeout for the request. Default is 30 seconds. - * + * * @return the timeout value. */ public Duration getTimeout() { @@ -134,7 +134,7 @@ public Duration getTimeout() { /** * Set the timeout property: The desired timeout for the request. Default is 30 seconds. - * + * * @param timeout the timeout value to set. * @return the CustomWebApiParameters object itself. */ @@ -146,11 +146,11 @@ public CustomWebApiParameters setTimeout(Duration timeout) { /** * Get the authResourceId property: Applies to custom endpoints that connect to external code in an Azure function * or some other application that provides the transformations. This value should be the application ID created for - * the function or app when it was registered with Microsoft Entra ID. When specified, the vectorization + * the function or app when it was registered with Azure Active Directory. When specified, the vectorization * connects to the function or app using a managed ID (either system or user-assigned) of the search service and * the access token of the function or app, using this value as the resource id for creating the scope of the * access token. - * + * * @return the authResourceId value. */ public String getAuthResourceId() { @@ -160,11 +160,11 @@ public String getAuthResourceId() { /** * Set the authResourceId property: Applies to custom endpoints that connect to external code in an Azure function * or some other application that provides the transformations. This value should be the application ID created for - * the function or app when it was registered with Microsoft Entra ID. When specified, the vectorization + * the function or app when it was registered with Azure Active Directory. When specified, the vectorization * connects to the function or app using a managed ID (either system or user-assigned) of the search service and * the access token of the function or app, using this value as the resource id for creating the scope of the * access token. - * + * * @param authResourceId the authResourceId value to set. * @return the CustomWebApiParameters object itself. */ @@ -178,7 +178,7 @@ public CustomWebApiParameters setAuthResourceId(String authResourceId) { * authResourceId is provided and it's not specified, the system-assigned managed identity is used. On updates to * the indexer, if the identity is unspecified, the value remains unchanged. If set to "none", the value of this * property is cleared. - * + * * @return the authIdentity value. */ public SearchIndexerDataIdentity getAuthIdentity() { @@ -190,7 +190,7 @@ public SearchIndexerDataIdentity getAuthIdentity() { * authResourceId is provided and it's not specified, the system-assigned managed identity is used. On updates to * the indexer, if the identity is unspecified, the value remains unchanged. If set to "none", the value of this * property is cleared. - * + * * @param authIdentity the authIdentity value to set. * @return the CustomWebApiParameters object itself. */ @@ -213,7 +213,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { /** * Reads an instance of CustomWebApiParameters from the JsonReader. - * + * * @param jsonReader The JsonReader being read. * @return An instance of CustomWebApiParameters if the JsonReader was pointing to an instance of it, or null if it * was pointing to JSON null. diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SearchField.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SearchField.java index 5f47b7494981..9c01243c67e4 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SearchField.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SearchField.java @@ -46,6 +46,17 @@ public final class SearchField implements JsonSerializable { */ private Boolean hidden; + /* + * An immutable value indicating whether the field will be persisted separately on disk to be returned in a search + * result. You can disable this option if you don't plan to return the field contents in a search response to save + * on storage overhead. This can only be set during index creation and only for vector fields. This property cannot + * be changed for existing fields or set as false for new fields. If this property is set as false, the property + * 'retrievable' must also be set to false. This property must be true or unset for key fields, for new fields, and + * for non-vector fields, and it must be null for complex fields. Disabling this property will reduce index storage + * requirements. The default is true for vector fields. + */ + private Boolean stored; + /* * A value indicating whether the field is full-text searchable. This means it will undergo analysis such as * word-breaking during indexing. If you set a searchable field to a value like "sunny day", internally it will be @@ -226,6 +237,38 @@ public SearchField setHidden(Boolean hidden) { return this; } + /** + * Get the stored property: An immutable value indicating whether the field will be persisted separately on disk to + * be returned in a search result. You can disable this option if you don't plan to return the field contents in a + * search response to save on storage overhead. This can only be set during index creation and only for vector + * fields. This property cannot be changed for existing fields or set as false for new fields. If this property is + * set as false, the property 'retrievable' must also be set to false. This property must be true or unset for key + * fields, for new fields, and for non-vector fields, and it must be null for complex fields. Disabling this + * property will reduce index storage requirements. The default is true for vector fields. + * + * @return the stored value. + */ + public Boolean isStored() { + return this.stored; + } + + /** + * Set the stored property: An immutable value indicating whether the field will be persisted separately on disk to + * be returned in a search result. You can disable this option if you don't plan to return the field contents in a + * search response to save on storage overhead. This can only be set during index creation and only for vector + * fields. This property cannot be changed for existing fields or set as false for new fields. If this property is + * set as false, the property 'retrievable' must also be set to false. This property must be true or unset for key + * fields, for new fields, and for non-vector fields, and it must be null for complex fields. Disabling this + * property will reduce index storage requirements. The default is true for vector fields. + * + * @param stored the stored value to set. + * @return the SearchField object itself. + */ + public SearchField setStored(Boolean stored) { + this.stored = stored; + return this; + } + /** * Get the searchable property: A value indicating whether the field is full-text searchable. This means it will * undergo analysis such as word-breaking during indexing. If you set a searchable field to a value like "sunny @@ -557,6 +600,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); jsonWriter.writeBooleanField("key", this.key); jsonWriter.writeBooleanField("retrievable", this.hidden); + jsonWriter.writeBooleanField("stored", this.stored); jsonWriter.writeBooleanField("searchable", this.searchable); jsonWriter.writeBooleanField("filterable", this.filterable); jsonWriter.writeBooleanField("sortable", this.sortable); @@ -592,6 +636,7 @@ public static SearchField fromJson(JsonReader jsonReader) throws IOException { SearchFieldDataType type = null; Boolean key = null; Boolean hidden = null; + Boolean stored = null; Boolean searchable = null; Boolean filterable = null; Boolean sortable = null; @@ -617,6 +662,8 @@ public static SearchField fromJson(JsonReader jsonReader) throws IOException { key = reader.getNullable(JsonReader::getBoolean); } else if ("retrievable".equals(fieldName)) { hidden = reader.getNullable(JsonReader::getBoolean); + } else if ("stored".equals(fieldName)) { + stored = reader.getNullable(JsonReader::getBoolean); } else if ("searchable".equals(fieldName)) { searchable = reader.getNullable(JsonReader::getBoolean); } else if ("filterable".equals(fieldName)) { @@ -649,6 +696,7 @@ public static SearchField fromJson(JsonReader jsonReader) throws IOException { SearchField deserializedSearchField = new SearchField(name, type); deserializedSearchField.key = key; deserializedSearchField.hidden = hidden; + deserializedSearchField.stored = stored; deserializedSearchField.searchable = searchable; deserializedSearchField.filterable = filterable; deserializedSearchField.sortable = sortable; diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SearchFieldDataType.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SearchFieldDataType.java index 05eaed97d98e..cd4bfc06a186 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SearchFieldDataType.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SearchFieldDataType.java @@ -59,6 +59,22 @@ public final class SearchFieldDataType extends ExpandableStringEnum { */ private List vectorizers; + /* + * Contains configuration options specific to the compression method used during indexing or querying. + */ + private List compressions; + /** * Creates an instance of VectorSearch class. */ @@ -102,12 +107,35 @@ public VectorSearch setVectorizers(List vectorizers) { return this; } + /** + * Get the compressions property: Contains configuration options specific to the compression method used during + * indexing or querying. + * + * @return the compressions value. + */ + public List getCompressions() { + return this.compressions; + } + + /** + * Set the compressions property: Contains configuration options specific to the compression method used during + * indexing or querying. + * + * @param compressions the compressions value to set. + * @return the VectorSearch object itself. + */ + public VectorSearch setCompressions(List compressions) { + this.compressions = compressions; + return this; + } + @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("profiles", this.profiles, (writer, element) -> writer.writeJson(element)); jsonWriter.writeArrayField("algorithms", this.algorithms, (writer, element) -> writer.writeJson(element)); jsonWriter.writeArrayField("vectorizers", this.vectorizers, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeArrayField("compressions", this.compressions, (writer, element) -> writer.writeJson(element)); return jsonWriter.writeEndObject(); } @@ -137,6 +165,10 @@ public static VectorSearch fromJson(JsonReader jsonReader) throws IOException { List vectorizers = reader.readArray(reader1 -> VectorSearchVectorizer.fromJson(reader1)); deserializedVectorSearch.vectorizers = vectorizers; + } else if ("compressions".equals(fieldName)) { + List compressions + = reader.readArray(reader1 -> VectorSearchCompressionConfiguration.fromJson(reader1)); + deserializedVectorSearch.compressions = compressions; } else { reader.skipChildren(); } diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/VectorSearchCompressionConfiguration.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/VectorSearchCompressionConfiguration.java new file mode 100644 index 000000000000..7ec3a16f252f --- /dev/null +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/VectorSearchCompressionConfiguration.java @@ -0,0 +1,188 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package com.azure.search.documents.indexes.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.search.documents.indexes.implementation.models.ScalarQuantizationCompressionConfiguration; +import java.io.IOException; + +/** + * Contains configuration options specific to the compression method used during indexing or querying. + */ +@Fluent +public class VectorSearchCompressionConfiguration implements JsonSerializable { + /* + * The name to associate with this particular configuration. + */ + private final String name; + + /* + * If set to true, once the ordered set of results calculated using compressed vectors are obtained, they will be + * reranked again by recalculating the full-precision similarity scores. This will improve recall at the expense of + * latency. + */ + private Boolean rerankWithOriginalVectors; + + /* + * Default oversampling factor. Oversampling will internally request more documents (specified by this multiplier) + * in the initial search. This increases the set of results that will be reranked using recomputed similarity + * scores from full-precision vectors. Minimum value is 1, meaning no oversampling (1x). This parameter can only be + * set when rerankWithOriginalVectors is true. Higher values improve recall at the expense of latency. + */ + private Double defaultOversampling; + + /** + * Creates an instance of VectorSearchCompressionConfiguration class. + * + * @param name the name value to set. + */ + public VectorSearchCompressionConfiguration(String name) { + this.name = name; + } + + /** + * Get the name property: The name to associate with this particular configuration. + * + * @return the name value. + */ + public String getName() { + return this.name; + } + + /** + * Get the rerankWithOriginalVectors property: If set to true, once the ordered set of results calculated using + * compressed vectors are obtained, they will be reranked again by recalculating the full-precision similarity + * scores. This will improve recall at the expense of latency. + * + * @return the rerankWithOriginalVectors value. + */ + public Boolean isRerankWithOriginalVectors() { + return this.rerankWithOriginalVectors; + } + + /** + * Set the rerankWithOriginalVectors property: If set to true, once the ordered set of results calculated using + * compressed vectors are obtained, they will be reranked again by recalculating the full-precision similarity + * scores. This will improve recall at the expense of latency. + * + * @param rerankWithOriginalVectors the rerankWithOriginalVectors value to set. + * @return the VectorSearchCompressionConfiguration object itself. + */ + public VectorSearchCompressionConfiguration setRerankWithOriginalVectors(Boolean rerankWithOriginalVectors) { + this.rerankWithOriginalVectors = rerankWithOriginalVectors; + return this; + } + + /** + * Get the defaultOversampling property: Default oversampling factor. Oversampling will internally request more + * documents (specified by this multiplier) in the initial search. This increases the set of results that will be + * reranked using recomputed similarity scores from full-precision vectors. Minimum value is 1, meaning no + * oversampling (1x). This parameter can only be set when rerankWithOriginalVectors is true. Higher values improve + * recall at the expense of latency. + * + * @return the defaultOversampling value. + */ + public Double getDefaultOversampling() { + return this.defaultOversampling; + } + + /** + * Set the defaultOversampling property: Default oversampling factor. Oversampling will internally request more + * documents (specified by this multiplier) in the initial search. This increases the set of results that will be + * reranked using recomputed similarity scores from full-precision vectors. Minimum value is 1, meaning no + * oversampling (1x). This parameter can only be set when rerankWithOriginalVectors is true. Higher values improve + * recall at the expense of latency. + * + * @param defaultOversampling the defaultOversampling value to set. + * @return the VectorSearchCompressionConfiguration object itself. + */ + public VectorSearchCompressionConfiguration setDefaultOversampling(Double defaultOversampling) { + this.defaultOversampling = defaultOversampling; + return this; + } + + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("name", this.name); + jsonWriter.writeBooleanField("rerankWithOriginalVectors", this.rerankWithOriginalVectors); + jsonWriter.writeNumberField("defaultOversampling", this.defaultOversampling); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of VectorSearchCompressionConfiguration from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of VectorSearchCompressionConfiguration if the JsonReader was pointing to an instance of it, + * or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties or the + * polymorphic discriminator. + * @throws IOException If an error occurs while reading the VectorSearchCompressionConfiguration. + */ + public static VectorSearchCompressionConfiguration fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + String discriminatorValue = null; + JsonReader readerToUse = reader.bufferObject(); + + readerToUse.nextToken(); // Prepare for reading + while (readerToUse.nextToken() != JsonToken.END_OBJECT) { + String fieldName = readerToUse.getFieldName(); + readerToUse.nextToken(); + if ("kind".equals(fieldName)) { + discriminatorValue = readerToUse.getString(); + break; + } else { + readerToUse.skipChildren(); + } + } + // Use the discriminator value to determine which subtype should be deserialized. + if ("scalarQuantization".equals(discriminatorValue)) { + return ScalarQuantizationCompressionConfiguration.fromJson(readerToUse.reset()); + } else { + return fromJsonKnownDiscriminator(readerToUse.reset()); + } + }); + } + + static VectorSearchCompressionConfiguration fromJsonKnownDiscriminator(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + boolean nameFound = false; + String name = null; + Boolean rerankWithOriginalVectors = null; + Double defaultOversampling = null; + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("name".equals(fieldName)) { + name = reader.getString(); + nameFound = true; + } else if ("rerankWithOriginalVectors".equals(fieldName)) { + rerankWithOriginalVectors = reader.getNullable(JsonReader::getBoolean); + } else if ("defaultOversampling".equals(fieldName)) { + defaultOversampling = reader.getNullable(JsonReader::getDouble); + } else { + reader.skipChildren(); + } + } + if (nameFound) { + VectorSearchCompressionConfiguration deserializedVectorSearchCompressionConfiguration + = new VectorSearchCompressionConfiguration(name); + deserializedVectorSearchCompressionConfiguration.rerankWithOriginalVectors = rerankWithOriginalVectors; + deserializedVectorSearchCompressionConfiguration.defaultOversampling = defaultOversampling; + + return deserializedVectorSearchCompressionConfiguration; + } + throw new IllegalStateException("Missing required property: name"); + }); + } +} diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/VectorSearchCompressionKind.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/VectorSearchCompressionKind.java new file mode 100644 index 000000000000..2563c7e69857 --- /dev/null +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/VectorSearchCompressionKind.java @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package com.azure.search.documents.indexes.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The compression method used for indexing and querying. + */ +public final class VectorSearchCompressionKind extends ExpandableStringEnum { + /** + * Scalar Quantization, a type of compression method. In scalar quantization, the original vectors values are + * compressed to a narrower type by discretizing and representing each component of a vector using a reduced set of + * quantized values, thereby reducing the overall data size. + */ + public static final VectorSearchCompressionKind SCALAR_QUANTIZATION = fromString("scalarQuantization"); + + /** + * Creates a new instance of VectorSearchCompressionKind value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public VectorSearchCompressionKind() { + } + + /** + * Creates or finds a VectorSearchCompressionKind from its string representation. + * + * @param name a name to look for. + * @return the corresponding VectorSearchCompressionKind. + */ + public static VectorSearchCompressionKind fromString(String name) { + return fromString(name, VectorSearchCompressionKind.class); + } + + /** + * Gets known VectorSearchCompressionKind values. + * + * @return known VectorSearchCompressionKind values. + */ + public static Collection values() { + return values(VectorSearchCompressionKind.class); + } +} diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/VectorSearchCompressionTargetDataType.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/VectorSearchCompressionTargetDataType.java new file mode 100644 index 000000000000..d3bc63dceea2 --- /dev/null +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/VectorSearchCompressionTargetDataType.java @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package com.azure.search.documents.indexes.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The quantized data type of compressed vector values. + */ +public final class VectorSearchCompressionTargetDataType + extends ExpandableStringEnum { + /** + * Static value int8 for VectorSearchCompressionTargetDataType. + */ + public static final VectorSearchCompressionTargetDataType INT8 = fromString("int8"); + + /** + * Creates a new instance of VectorSearchCompressionTargetDataType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public VectorSearchCompressionTargetDataType() { + } + + /** + * Creates or finds a VectorSearchCompressionTargetDataType from its string representation. + * + * @param name a name to look for. + * @return the corresponding VectorSearchCompressionTargetDataType. + */ + public static VectorSearchCompressionTargetDataType fromString(String name) { + return fromString(name, VectorSearchCompressionTargetDataType.class); + } + + /** + * Gets known VectorSearchCompressionTargetDataType values. + * + * @return known VectorSearchCompressionTargetDataType values. + */ + public static Collection values() { + return values(VectorSearchCompressionTargetDataType.class); + } +} diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/VectorSearchProfile.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/VectorSearchProfile.java index cf5c28bbdd72..7308fc28cede 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/VectorSearchProfile.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/VectorSearchProfile.java @@ -35,6 +35,11 @@ public final class VectorSearchProfile implements JsonSerializable inputs, List getHttpHeaders() { @@ -100,7 +100,7 @@ public Map getHttpHeaders() { /** * Set the httpHeaders property: The headers required to make the http request. - * + * * @param httpHeaders the httpHeaders value to set. * @return the WebApiSkill object itself. */ @@ -111,7 +111,7 @@ public WebApiSkill setHttpHeaders(Map httpHeaders) { /** * Get the httpMethod property: The method for the http request. - * + * * @return the httpMethod value. */ public String getHttpMethod() { @@ -120,7 +120,7 @@ public String getHttpMethod() { /** * Set the httpMethod property: The method for the http request. - * + * * @param httpMethod the httpMethod value to set. * @return the WebApiSkill object itself. */ @@ -131,7 +131,7 @@ public WebApiSkill setHttpMethod(String httpMethod) { /** * Get the timeout property: The desired timeout for the request. Default is 30 seconds. - * + * * @return the timeout value. */ public Duration getTimeout() { @@ -140,7 +140,7 @@ public Duration getTimeout() { /** * Set the timeout property: The desired timeout for the request. Default is 30 seconds. - * + * * @param timeout the timeout value to set. * @return the WebApiSkill object itself. */ @@ -151,7 +151,7 @@ public WebApiSkill setTimeout(Duration timeout) { /** * Get the batchSize property: The desired batch size which indicates number of documents. - * + * * @return the batchSize value. */ public Integer getBatchSize() { @@ -160,7 +160,7 @@ public Integer getBatchSize() { /** * Set the batchSize property: The desired batch size which indicates number of documents. - * + * * @param batchSize the batchSize value to set. * @return the WebApiSkill object itself. */ @@ -171,7 +171,7 @@ public WebApiSkill setBatchSize(Integer batchSize) { /** * Get the degreeOfParallelism property: If set, the number of parallel calls that can be made to the Web API. - * + * * @return the degreeOfParallelism value. */ public Integer getDegreeOfParallelism() { @@ -180,7 +180,7 @@ public Integer getDegreeOfParallelism() { /** * Set the degreeOfParallelism property: If set, the number of parallel calls that can be made to the Web API. - * + * * @param degreeOfParallelism the degreeOfParallelism value to set. * @return the WebApiSkill object itself. */ @@ -192,11 +192,11 @@ public WebApiSkill setDegreeOfParallelism(Integer degreeOfParallelism) { /** * Get the authResourceId property: Applies to custom skills that connect to external code in an Azure function or * some other application that provides the transformations. This value should be the application ID created for - * the function or app when it was registered with Microsoft Entra ID. When specified, the custom skill + * the function or app when it was registered with Azure Active Directory. When specified, the custom skill * connects to the function or app using a managed ID (either system or user-assigned) of the search service and * the access token of the function or app, using this value as the resource id for creating the scope of the * access token. - * + * * @return the authResourceId value. */ public String getAuthResourceId() { @@ -206,11 +206,11 @@ public String getAuthResourceId() { /** * Set the authResourceId property: Applies to custom skills that connect to external code in an Azure function or * some other application that provides the transformations. This value should be the application ID created for - * the function or app when it was registered with Microsoft Entra ID. When specified, the custom skill + * the function or app when it was registered with Azure Active Directory. When specified, the custom skill * connects to the function or app using a managed ID (either system or user-assigned) of the search service and * the access token of the function or app, using this value as the resource id for creating the scope of the * access token. - * + * * @param authResourceId the authResourceId value to set. * @return the WebApiSkill object itself. */ @@ -224,7 +224,7 @@ public WebApiSkill setAuthResourceId(String authResourceId) { * authResourceId is provided and it's not specified, the system-assigned managed identity is used. On updates to * the indexer, if the identity is unspecified, the value remains unchanged. If set to "none", the value of this * property is cleared. - * + * * @return the authIdentity value. */ public SearchIndexerDataIdentity getAuthIdentity() { @@ -236,7 +236,7 @@ public SearchIndexerDataIdentity getAuthIdentity() { * authResourceId is provided and it's not specified, the system-assigned managed identity is used. On updates to * the indexer, if the identity is unspecified, the value remains unchanged. If set to "none", the value of this * property is cleared. - * + * * @param authIdentity the authIdentity value to set. * @return the WebApiSkill object itself. */ @@ -294,7 +294,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { /** * Reads an instance of WebApiSkill from the JsonReader. - * + * * @param jsonReader The JsonReader being read. * @return An instance of WebApiSkill if the JsonReader was pointing to an instance of it, or null if it was * pointing to JSON null. diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/VectorQuery.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/VectorQuery.java index a7e40f8d95b8..17e5acba8ef5 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/VectorQuery.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/VectorQuery.java @@ -34,6 +34,13 @@ public class VectorQuery implements JsonSerializable { */ private Boolean exhaustive; + /* + * Oversampling factor. Minimum value is 1. It overrides the 'defaultOversampling' parameter configured in the + * index definition. It can be set only when 'rerankWithOriginalVectors' is true. This parameter is only permitted + * when a compression method is used on the underlying vector field. + */ + private Double oversampling; + /** * Creates an instance of VectorQuery class. */ @@ -104,12 +111,37 @@ public VectorQuery setExhaustive(Boolean exhaustive) { return this; } + /** + * Get the oversampling property: Oversampling factor. Minimum value is 1. It overrides the 'defaultOversampling' + * parameter configured in the index definition. It can be set only when 'rerankWithOriginalVectors' is true. This + * parameter is only permitted when a compression method is used on the underlying vector field. + * + * @return the oversampling value. + */ + public Double getOversampling() { + return this.oversampling; + } + + /** + * Set the oversampling property: Oversampling factor. Minimum value is 1. It overrides the 'defaultOversampling' + * parameter configured in the index definition. It can be set only when 'rerankWithOriginalVectors' is true. This + * parameter is only permitted when a compression method is used on the underlying vector field. + * + * @param oversampling the oversampling value to set. + * @return the VectorQuery object itself. + */ + public VectorQuery setOversampling(Double oversampling) { + this.oversampling = oversampling; + return this; + } + @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeNumberField("k", this.kNearestNeighborsCount); jsonWriter.writeStringField("fields", this.fields); jsonWriter.writeBooleanField("exhaustive", this.exhaustive); + jsonWriter.writeNumberField("oversampling", this.oversampling); return jsonWriter.writeEndObject(); } @@ -161,6 +193,8 @@ static VectorQuery fromJsonKnownDiscriminator(JsonReader jsonReader) throws IOEx deserializedVectorQuery.fields = reader.getString(); } else if ("exhaustive".equals(fieldName)) { deserializedVectorQuery.exhaustive = reader.getNullable(JsonReader::getBoolean); + } else if ("oversampling".equals(fieldName)) { + deserializedVectorQuery.oversampling = reader.getNullable(JsonReader::getDouble); } else { reader.skipChildren(); } diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/VectorizableTextQuery.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/VectorizableTextQuery.java index eea1b77128fb..b9be6cf439a8 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/VectorizableTextQuery.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/VectorizableTextQuery.java @@ -68,6 +68,15 @@ public VectorizableTextQuery setExhaustive(Boolean exhaustive) { return this; } + /** + * {@inheritDoc} + */ + @Override + public VectorizableTextQuery setOversampling(Double oversampling) { + super.setOversampling(oversampling); + return this; + } + @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); @@ -75,6 +84,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeNumberField("k", getKNearestNeighborsCount()); jsonWriter.writeStringField("fields", getFields()); jsonWriter.writeBooleanField("exhaustive", isExhaustive()); + jsonWriter.writeNumberField("oversampling", getOversampling()); jsonWriter.writeStringField("text", this.text); return jsonWriter.writeEndObject(); } @@ -94,6 +104,7 @@ public static VectorizableTextQuery fromJson(JsonReader jsonReader) throws IOExc Integer kNearestNeighborsCount = null; String fields = null; Boolean exhaustive = null; + Double oversampling = null; boolean textFound = false; String text = null; while (reader.nextToken() != JsonToken.END_OBJECT) { @@ -112,6 +123,8 @@ public static VectorizableTextQuery fromJson(JsonReader jsonReader) throws IOExc fields = reader.getString(); } else if ("exhaustive".equals(fieldName)) { exhaustive = reader.getNullable(JsonReader::getBoolean); + } else if ("oversampling".equals(fieldName)) { + oversampling = reader.getNullable(JsonReader::getDouble); } else if ("text".equals(fieldName)) { text = reader.getString(); textFound = true; @@ -124,6 +137,7 @@ public static VectorizableTextQuery fromJson(JsonReader jsonReader) throws IOExc deserializedVectorizableTextQuery.setKNearestNeighborsCount(kNearestNeighborsCount); deserializedVectorizableTextQuery.setFields(fields); deserializedVectorizableTextQuery.setExhaustive(exhaustive); + deserializedVectorizableTextQuery.setOversampling(oversampling); return deserializedVectorizableTextQuery; } throw new IllegalStateException("Missing required property: text"); diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/VectorizedQuery.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/VectorizedQuery.java index 5c0b476c36e6..b523b504ccd8 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/VectorizedQuery.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/VectorizedQuery.java @@ -69,6 +69,15 @@ public VectorizedQuery setExhaustive(Boolean exhaustive) { return this; } + /** + * {@inheritDoc} + */ + @Override + public VectorizedQuery setOversampling(Double oversampling) { + super.setOversampling(oversampling); + return this; + } + @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); @@ -76,6 +85,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeNumberField("k", getKNearestNeighborsCount()); jsonWriter.writeStringField("fields", getFields()); jsonWriter.writeBooleanField("exhaustive", isExhaustive()); + jsonWriter.writeNumberField("oversampling", getOversampling()); jsonWriter.writeArrayField("vector", this.vector, (writer, element) -> writer.writeFloat(element)); return jsonWriter.writeEndObject(); } @@ -95,6 +105,7 @@ public static VectorizedQuery fromJson(JsonReader jsonReader) throws IOException Integer kNearestNeighborsCount = null; String fields = null; Boolean exhaustive = null; + Double oversampling = null; boolean vectorFound = false; List vector = null; while (reader.nextToken() != JsonToken.END_OBJECT) { @@ -113,6 +124,8 @@ public static VectorizedQuery fromJson(JsonReader jsonReader) throws IOException fields = reader.getString(); } else if ("exhaustive".equals(fieldName)) { exhaustive = reader.getNullable(JsonReader::getBoolean); + } else if ("oversampling".equals(fieldName)) { + oversampling = reader.getNullable(JsonReader::getDouble); } else if ("vector".equals(fieldName)) { vector = reader.readArray(reader1 -> reader1.getFloat()); vectorFound = true; @@ -125,6 +138,7 @@ public static VectorizedQuery fromJson(JsonReader jsonReader) throws IOException deserializedVectorizedQuery.setKNearestNeighborsCount(kNearestNeighborsCount); deserializedVectorizedQuery.setFields(fields); deserializedVectorizedQuery.setExhaustive(exhaustive); + deserializedVectorizedQuery.setOversampling(oversampling); return deserializedVectorizedQuery; } throw new IllegalStateException("Missing required property: vector"); diff --git a/sdk/search/azure-search-documents/src/samples/README.md b/sdk/search/azure-search-documents/src/samples/README.md index d578bc8d413c..de5e01dc3c05 100644 --- a/sdk/search/azure-search-documents/src/samples/README.md +++ b/sdk/search/azure-search-documents/src/samples/README.md @@ -61,7 +61,7 @@ add the direct dependency to your project as follows. com.azure azure-search-documents - 11.6.2 + 11.7.0-beta.2 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/search/azure-search-documents/src/test/java/com/azure/search/documents/VectorSearchTests.java b/sdk/search/azure-search-documents/src/test/java/com/azure/search/documents/VectorSearchTests.java index 0d6e6a976305..1c64d6641b21 100644 --- a/sdk/search/azure-search-documents/src/test/java/com/azure/search/documents/VectorSearchTests.java +++ b/sdk/search/azure-search-documents/src/test/java/com/azure/search/documents/VectorSearchTests.java @@ -357,6 +357,7 @@ public void updateExistingIndexToAddVectorFieldsAsync() { SearchField vectorField = new SearchField("DescriptionVector", SearchFieldDataType.collection(SearchFieldDataType.SINGLE)) .setSearchable(true) + .setHidden(false) .setVectorSearchDimensions(1536) .setVectorSearchProfileName("my-vector-profile"); @@ -449,6 +450,7 @@ public void updateExistingIndexToAddVectorFieldsSync() { SearchField vectorField = new SearchField("DescriptionVector", SearchFieldDataType.collection(SearchFieldDataType.SINGLE)) .setSearchable(true) + .setHidden(false) .setVectorSearchDimensions(1536) .setVectorSearchProfileName("my-vector-profile"); diff --git a/sdk/search/azure-search-documents/src/test/java/com/azure/search/documents/indexes/FieldBuilderTests.java b/sdk/search/azure-search-documents/src/test/java/com/azure/search/documents/indexes/FieldBuilderTests.java index a6f45f285539..7aad823cce5f 100644 --- a/sdk/search/azure-search-documents/src/test/java/com/azure/search/documents/indexes/FieldBuilderTests.java +++ b/sdk/search/azure-search-documents/src/test/java/com/azure/search/documents/indexes/FieldBuilderTests.java @@ -17,7 +17,6 @@ import com.azure.search.documents.test.environment.models.HotelWithArray; import com.azure.search.documents.test.environment.models.HotelWithEmptyInSynonymMaps; import com.azure.search.documents.test.environment.models.HotelWithIgnoredFields; -import com.azure.search.documents.test.environment.models.HotelWithUnsupportedField; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.parallel.Execution; import org.junit.jupiter.api.parallel.ExecutionMode; @@ -72,6 +71,7 @@ public void hotelWithEmptySynonymMaps() { SearchFieldDataType.collection(SearchFieldDataType.STRING)) .setSearchable(true) .setKey(false) + .setStored(true) .setHidden(false) .setFilterable(false) .setSortable(false) @@ -126,7 +126,7 @@ public void ignoredPropertyName() { public void supportedFields() { List fields = SearchIndexClient.buildSearchFields(AllSupportedFields.class, null); - assertEquals(19, fields.size()); + assertEquals(23, fields.size()); Map fieldToDataType = fields.stream() .collect(Collectors.toMap(SearchField::getName, SearchField::getType)); @@ -150,6 +150,10 @@ public void supportedFields() { assertEquals(SearchFieldDataType.collection(SearchFieldDataType.INT32), fieldToDataType.get("intList")); assertEquals(SearchFieldDataType.collection(SearchFieldDataType.SINGLE), fieldToDataType.get("floatArray")); assertEquals(SearchFieldDataType.collection(SearchFieldDataType.SINGLE), fieldToDataType.get("floatList")); + assertEquals(SearchFieldDataType.INT16, fieldToDataType.get("nullableShort")); + assertEquals(SearchFieldDataType.INT16, fieldToDataType.get("primitiveShort")); + assertEquals(SearchFieldDataType.SBYTE, fieldToDataType.get("nullableByte")); + assertEquals(SearchFieldDataType.SBYTE, fieldToDataType.get("primitiveByte")); } @SuppressWarnings({"unused", "UseOfObsoleteDateTimeApi"}) @@ -268,15 +272,31 @@ public List getFloatList() { public Float[] getFloatArray() { return floatArray; } - } - @Test - public void unsupportedFields() { - Exception exception = assertThrows(IllegalArgumentException.class, () -> - SearchIndexClient.buildSearchFields(HotelWithUnsupportedField.class, null)); - assertExceptionMassageAndDataType(exception, null, "is not supported"); - } + // 20. name = 'primitiveShort', OData type = INT16 + private short primitiveShort; + public short getPrimitiveShort() { + return primitiveShort; + } + + // 21. name = 'nullableShort', OData type = INT16 + private Short nullableShort; + public Short getNullableShort() { + return nullableShort; + } + + // 22. name = 'primitiveByte', OData type = SBYTE + private byte primitiveByte; + public byte getPrimitiveByte() { + return primitiveByte; + } + // 23. name = 'nullableByte', OData type = SBYTE + private Byte nullableByte; + public Byte getNullableByte() { + return nullableByte; + } + } @Test public void validNormalizerField() { List fields = SearchIndexClient.buildSearchFields(ValidNormalizer.class, null); @@ -426,6 +446,7 @@ private List buildHotelWithArrayModel() { SearchField hotelId = new SearchField("hotelId", SearchFieldDataType.STRING) .setKey(true) .setSortable(true) + .setStored(true) .setHidden(false) .setSearchable(false) .setFacetable(false) @@ -433,6 +454,7 @@ private List buildHotelWithArrayModel() { SearchField tags = new SearchField("tags", SearchFieldDataType.collection(SearchFieldDataType.STRING)) .setKey(false) .setHidden(false) + .setStored(true) .setSearchable(true) .setSortable(false) .setFilterable(false) diff --git a/sdk/search/azure-search-documents/swagger/README.md b/sdk/search/azure-search-documents/swagger/README.md index 82d39c3c717c..faac14825de7 100644 --- a/sdk/search/azure-search-documents/swagger/README.md +++ b/sdk/search/azure-search-documents/swagger/README.md @@ -87,10 +87,10 @@ These settings apply only when `--tag=searchindex` is specified on the command l ``` yaml $(tag) == 'searchindex' namespace: com.azure.search.documents input-file: -- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/58e92dd03733bc175e6a9540f4bc53703b57fcc9/specification/search/data-plane/Azure.Search/preview/2023-10-01-Preview/searchindex.json +- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/a0151afd7cd14913fc86cb793bde49c71122eb1e/specification/search/data-plane/Azure.Search/preview/2024-03-01-Preview/searchindex.json models-subpackage: models custom-types-subpackage: implementation.models -custom-types: AutocompleteRequest,IndexAction,IndexBatch,RequestOptions,SearchDocumentsResult,SearchError,SearchErrorException,SearchOptions,SearchRequest,SearchResult,SuggestDocumentsResult,SuggestRequest,SuggestResult,VectorQueryKind +custom-types: AutocompleteRequest,IndexAction,IndexBatch,RequestOptions,SearchDocumentsResult,SearchErrorException,SearchOptions,SearchRequest,SearchResult,SuggestDocumentsResult,SuggestRequest,SuggestResult,VectorQueryKind,ErrorAdditionalInfo,ErrorDetail,ErrorResponse,ErrorResponseException,ScalarQuantizationParameters,ScalarQuantizationCompressionConfiguration customization-class: src/main/java/SearchIndexCustomizations.java directive: - rename-model: @@ -105,10 +105,10 @@ These settings apply only when `--tag=searchservice` is specified on the command ``` yaml $(tag) == 'searchservice' namespace: com.azure.search.documents.indexes input-file: -- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/58e92dd03733bc175e6a9540f4bc53703b57fcc9/specification/search/data-plane/Azure.Search/preview/2023-10-01-Preview/searchservice.json +- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/a0151afd7cd14913fc86cb793bde49c71122eb1e/specification/search/data-plane/Azure.Search/preview/2024-03-01-Preview/searchservice.json models-subpackage: models custom-types-subpackage: implementation.models -custom-types: AnalyzeRequest,AnalyzeResult,AzureActiveDirectoryApplicationCredentials,DataSourceCredentials,DocumentKeysOrIds,EdgeNGramTokenFilterV1,EdgeNGramTokenFilterV2,EntityRecognitionSkillV1,EntityRecognitionSkillV3,KeywordTokenizerV1,KeywordTokenizerV2,ListAliasesResult,ListDataSourcesResult,ListIndexersResult,ListIndexesResult,ListSkillsetsResult,ListSynonymMapsResult,LuceneStandardTokenizerV1,LuceneStandardTokenizerV2,NGramTokenFilterV1,NGramTokenFilterV2,RequestOptions,SearchError,SearchErrorException,SentimentSkillV1,SentimentSkillV3,SkillNames,VectorSearchAlgorithmKind +custom-types: AnalyzeRequest,AnalyzeResult,AzureActiveDirectoryApplicationCredentials,DataSourceCredentials,DocumentKeysOrIds,EdgeNGramTokenFilterV1,EdgeNGramTokenFilterV2,EntityRecognitionSkillV1,EntityRecognitionSkillV3,KeywordTokenizerV1,KeywordTokenizerV2,ListAliasesResult,ListDataSourcesResult,ListIndexersResult,ListIndexesResult,ListSkillsetsResult,ListSynonymMapsResult,LuceneStandardTokenizerV1,LuceneStandardTokenizerV2,NGramTokenFilterV1,NGramTokenFilterV2,RequestOptions,SearchErrorException,SentimentSkillV1,SentimentSkillV3,SkillNames,VectorSearchAlgorithmKind,ErrorAdditionalInfo,ErrorDetail,ErrorResponse,ErrorResponseException,ScalarQuantizationParameters,ScalarQuantizationCompressionConfiguration customization-class: src/main/java/SearchServiceCustomizations.java directive: - rename-model: diff --git a/sdk/search/azure-search-documents/swagger/src/main/java/SearchIndexCustomizations.java b/sdk/search/azure-search-documents/swagger/src/main/java/SearchIndexCustomizations.java index 79c11eb1c065..0e98334d4871 100644 --- a/sdk/search/azure-search-documents/swagger/src/main/java/SearchIndexCustomizations.java +++ b/sdk/search/azure-search-documents/swagger/src/main/java/SearchIndexCustomizations.java @@ -104,7 +104,7 @@ private void customizeSuggestOptions(ClassCustomization classCustomization) { private void customizeImplementationModelsPackage(PackageCustomization packageCustomization) { customizeSearchOptions(packageCustomization.getClass("SearchOptions")); customizeIndexAction(packageCustomization.getClass("IndexAction")); - customizeSearchError(packageCustomization.getClass("SearchError")); + // customizeSearchError(packageCustomization.getClass("SearchError")); } private void customizeSearchOptions(ClassCustomization classCustomization) { diff --git a/sdk/search/azure-search-documents/swagger/src/main/java/SearchServiceCustomizations.java b/sdk/search/azure-search-documents/swagger/src/main/java/SearchServiceCustomizations.java index 1b0bfe321889..e2cbe06d9f04 100644 --- a/sdk/search/azure-search-documents/swagger/src/main/java/SearchServiceCustomizations.java +++ b/sdk/search/azure-search-documents/swagger/src/main/java/SearchServiceCustomizations.java @@ -95,7 +95,7 @@ public void customize(LibraryCustomization libraryCustomization, Logger logger) customizeSearchIndexerDataSourceConnection(publicCustomization.getClass("SearchIndexerDataSourceConnection")); customizeSemanticPrioritizedFields(publicCustomization.getClass("SemanticPrioritizedFields")); customizeVectorSearch(publicCustomization.getClass("VectorSearch")); - customizeSearchError(implCustomization.getClass("SearchError")); + // customizeSearchError(implCustomization.getClass("SearchError")); bulkRemoveFromJsonMethods(publicCustomization.getClass("SearchIndexerKnowledgeStoreProjectionSelector"), publicCustomization.getClass("SearchIndexerKnowledgeStoreBlobProjectionSelector")); diff --git a/sdk/synapse/azure-resourcemanager-synapse/CHANGELOG.md b/sdk/synapse/azure-resourcemanager-synapse/CHANGELOG.md index 3ad29b29a18d..0e5993e22a4a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/CHANGELOG.md +++ b/sdk/synapse/azure-resourcemanager-synapse/CHANGELOG.md @@ -1,6 +1,8 @@ # Release History -## 1.0.0-beta.8 (Unreleased) +## 1.0.0-beta.1 (2024-03-12) + +- Azure Resource Manager Synapse client library for Java. This package contains Microsoft Azure SDK for Synapse Management SDK. Azure Synapse Analytics Management Client. Package tag package-composite-v2. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Features Added diff --git a/sdk/synapse/azure-resourcemanager-synapse/README.md b/sdk/synapse/azure-resourcemanager-synapse/README.md index bd08c7448d53..68f6af6e845d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/README.md +++ b/sdk/synapse/azure-resourcemanager-synapse/README.md @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-synapse - 1.0.0-beta.7 + 1.0.0-beta.8 ``` [//]: # ({x-version-update-end}) @@ -45,7 +45,7 @@ Azure Management Libraries require a `TokenCredential` implementation for authen ### Authentication -By default, Azure Active Directory token authentication depends on correct configuration of the following environment variables. +By default, Microsoft Entra ID token authentication depends on correct configuration of the following environment variables. - `AZURE_CLIENT_ID` for Azure client ID. - `AZURE_TENANT_ID` for Azure tenant ID. @@ -94,7 +94,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m [survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS [docs]: https://azure.github.io/azure-sdk-for-java/ -[jdk]: https://docs.microsoft.com/java/azure/jdk/ +[jdk]: https://learn.microsoft.com/azure/developer/java/fundamentals/ [azure_subscription]: https://azure.microsoft.com/free/ [azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity [azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty @@ -103,3 +103,5 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m [cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md [coc]: https://opensource.microsoft.com/codeofconduct/ [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ + +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-java%2Fsdk%2Fsynapse%2Fazure-resourcemanager-synapse%2FREADME.png) diff --git a/sdk/synapse/azure-resourcemanager-synapse/SAMPLE.md b/sdk/synapse/azure-resourcemanager-synapse/SAMPLE.md index 2a89c62b49ef..a408b6943366 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/SAMPLE.md +++ b/sdk/synapse/azure-resourcemanager-synapse/SAMPLE.md @@ -187,6 +187,7 @@ - [CheckNameAvailability](#operations_checknameavailability) - [GetAzureAsyncHeaderResult](#operations_getazureasyncheaderresult) - [GetLocationHeaderResult](#operations_getlocationheaderresult) +- [GetWorkspacePerSubscriptionQuota](#operations_getworkspacepersubscriptionquota) - [List](#operations_list) ## PrivateEndpointConnections @@ -376,7 +377,6 @@ - [Get](#sqlpools_get) - [ListByWorkspace](#sqlpools_listbyworkspace) - [Pause](#sqlpools_pause) -- [Rename](#sqlpools_rename) - [Resume](#sqlpools_resume) - [Update](#sqlpools_update) @@ -457,24 +457,23 @@ ```java import com.azure.resourcemanager.synapse.models.AzureADOnlyAuthenticationName; -/** Samples for AzureADOnlyAuthentications Create. */ +/** + * Samples for AzureADOnlyAuthentications Create. + */ public final class AzureADOnlyAuthenticationsCreateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateAzureADOnlyAuthentication.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CreateOrUpdateAzureADOnlyAuthentication.json */ /** * Sample code: Create or Update Azure Active Directory Only Authentication property. - * + * * @param manager Entry point to SynapseManager. */ public static void createOrUpdateAzureActiveDirectoryOnlyAuthenticationProperty( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .azureADOnlyAuthentications() - .define(AzureADOnlyAuthenticationName.DEFAULT) - .withExistingWorkspace("workspace-6852", "workspace-2080") - .withAzureADOnlyAuthentication(true) - .create(); + manager.azureADOnlyAuthentications().define(AzureADOnlyAuthenticationName.DEFAULT) + .withExistingWorkspace("workspace-6852", "workspace-2080").withAzureADOnlyAuthentication(true).create(); } } ``` @@ -484,25 +483,24 @@ public final class AzureADOnlyAuthenticationsCreateSamples { ```java import com.azure.resourcemanager.synapse.models.AzureADOnlyAuthenticationName; -/** Samples for AzureADOnlyAuthentications Get. */ +/** + * Samples for AzureADOnlyAuthentications Get. + */ public final class AzureADOnlyAuthenticationsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetAzureADOnlyAuthentication.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetAzureADOnlyAuthentication. + * json */ /** * Sample code: Get Azure Active Directory Only Authentication property. - * + * * @param manager Entry point to SynapseManager. */ - public static void getAzureActiveDirectoryOnlyAuthenticationProperty( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .azureADOnlyAuthentications() - .getWithResponse( - "workspace-6852", - "workspace-2080", - AzureADOnlyAuthenticationName.DEFAULT, - com.azure.core.util.Context.NONE); + public static void + getAzureActiveDirectoryOnlyAuthenticationProperty(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.azureADOnlyAuthentications().getWithResponse("workspace-6852", "workspace-2080", + AzureADOnlyAuthenticationName.DEFAULT, com.azure.core.util.Context.NONE); } } ``` @@ -510,14 +508,18 @@ public final class AzureADOnlyAuthenticationsGetSamples { ### AzureADOnlyAuthentications_List ```java -/** Samples for AzureADOnlyAuthentications List. */ +/** + * Samples for AzureADOnlyAuthentications List. + */ public final class AzureADOnlyAuthenticationsListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListAzureADOnlyAuthentication.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListAzureADOnlyAuthentication + * .json */ /** * Sample code: Get a list of Azure Active Directory Only Authentication property. - * + * * @param manager Entry point to SynapseManager. */ public static void getAListOfAzureActiveDirectoryOnlyAuthenticationProperty( @@ -538,36 +540,32 @@ import com.azure.resourcemanager.synapse.models.NodeSizeFamily; import java.util.HashMap; import java.util.Map; -/** Samples for BigDataPools CreateOrUpdate. */ +/** + * Samples for BigDataPools CreateOrUpdate. + */ public final class BigDataPoolsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/CreateOrUpdateBigDataPool.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * CreateOrUpdateBigDataPool.json */ /** * Sample code: Create or update a Big Data pool. - * + * * @param manager Entry point to SynapseManager. */ public static void createOrUpdateABigDataPool(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .bigDataPools() - .define("ExamplePool") - .withRegion("West US 2") + manager.bigDataPools().define("ExamplePool").withRegion("West US 2") .withExistingWorkspace("ExampleResourceGroup", "ExampleWorkspace") - .withTags(mapOf("key", "value")) + .withTags(mapOf("key", "fakeTokenPlaceholder")) .withAutoScale(new AutoScaleProperties().withMinNodeCount(3).withEnabled(true).withMaxNodeCount(50)) .withAutoPause(new AutoPauseProperties().withDelayInMinutes(15).withEnabled(true)) - .withIsAutotuneEnabled(false) - .withSparkEventsFolder("/events") - .withNodeCount(4) + .withIsAutotuneEnabled(false).withSparkEventsFolder("/events").withNodeCount(4) .withLibraryRequirements(new LibraryRequirements().withContent("").withFilename("requirements.txt")) - .withSparkVersion("3.3") - .withDefaultSparkLogFolder("/logs") - .withNodeSize(NodeSize.MEDIUM) - .withNodeSizeFamily(NodeSizeFamily.MEMORY_OPTIMIZED) - .create(); + .withSparkVersion("3.3").withDefaultSparkLogFolder("/logs").withNodeSize(NodeSize.MEDIUM) + .withNodeSizeFamily(NodeSizeFamily.MEMORY_OPTIMIZED).create(); } + // Use "Map.of" if available @SuppressWarnings("unchecked") private static Map mapOf(Object... inputs) { Map map = new HashMap<>(); @@ -584,20 +582,23 @@ public final class BigDataPoolsCreateOrUpdateSamples { ### BigDataPools_Delete ```java -/** Samples for BigDataPools Delete. */ +/** + * Samples for BigDataPools Delete. + */ public final class BigDataPoolsDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/DeleteBigDataPool.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/DeleteBigDataPool. + * json */ /** * Sample code: Delete a Big Data pool. - * + * * @param manager Entry point to SynapseManager. */ public static void deleteABigDataPool(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .bigDataPools() - .delete("ExampleResourceGroup", "ExampleWorkspace", "ExamplePool", com.azure.core.util.Context.NONE); + manager.bigDataPools().delete("ExampleResourceGroup", "ExampleWorkspace", "ExamplePool", + com.azure.core.util.Context.NONE); } } ``` @@ -605,21 +606,22 @@ public final class BigDataPoolsDeleteSamples { ### BigDataPools_Get ```java -/** Samples for BigDataPools Get. */ +/** + * Samples for BigDataPools Get. + */ public final class BigDataPoolsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/GetBigDataPool.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/GetBigDataPool.json */ /** * Sample code: Get a Big Data pool. - * + * * @param manager Entry point to SynapseManager. */ public static void getABigDataPool(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .bigDataPools() - .getWithResponse( - "ExampleResourceGroup", "ExampleWorkspace", "ExamplePool", com.azure.core.util.Context.NONE); + manager.bigDataPools().getWithResponse("ExampleResourceGroup", "ExampleWorkspace", "ExamplePool", + com.azure.core.util.Context.NONE); } } ``` @@ -627,20 +629,22 @@ public final class BigDataPoolsGetSamples { ### BigDataPools_ListByWorkspace ```java -/** Samples for BigDataPools ListByWorkspace. */ +/** + * Samples for BigDataPools ListByWorkspace. + */ public final class BigDataPoolsListByWorkspaceSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ListBigDataPoolsInWorkspace.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * ListBigDataPoolsInWorkspace.json */ /** * Sample code: List Big Data pools in a workspace. - * + * * @param manager Entry point to SynapseManager. */ public static void listBigDataPoolsInAWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .bigDataPools() - .listByWorkspace("ExampleResourceGroup", "ExampleWorkspace", com.azure.core.util.Context.NONE); + manager.bigDataPools().listByWorkspace("ExampleResourceGroup", "ExampleWorkspace", + com.azure.core.util.Context.NONE); } } ``` @@ -652,26 +656,27 @@ import com.azure.resourcemanager.synapse.models.BigDataPoolResourceInfo; import java.util.HashMap; import java.util.Map; -/** Samples for BigDataPools Update. */ +/** + * Samples for BigDataPools Update. + */ public final class BigDataPoolsUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/UpdateBigDataPool.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/UpdateBigDataPool. + * json */ /** * Sample code: Update a Big Data pool. - * + * * @param manager Entry point to SynapseManager. */ public static void updateABigDataPool(com.azure.resourcemanager.synapse.SynapseManager manager) { - BigDataPoolResourceInfo resource = - manager - .bigDataPools() - .getWithResponse( - "ExampleResourceGroup", "ExampleWorkspace", "ExamplePool", com.azure.core.util.Context.NONE) - .getValue(); - resource.update().withTags(mapOf("key", "value")).apply(); + BigDataPoolResourceInfo resource = manager.bigDataPools().getWithResponse("ExampleResourceGroup", + "ExampleWorkspace", "ExamplePool", com.azure.core.util.Context.NONE).getValue(); + resource.update().withTags(mapOf("key", "fakeTokenPlaceholder")).apply(); } + // Use "Map.of" if available @SuppressWarnings("unchecked") private static Map mapOf(Object... inputs) { Map map = new HashMap<>(); @@ -690,41 +695,38 @@ public final class BigDataPoolsUpdateSamples { ```java import com.azure.resourcemanager.synapse.models.DataMaskingState; -/** Samples for DataMaskingPolicies CreateOrUpdate. */ +/** + * Samples for DataMaskingPolicies CreateOrUpdate. + */ public final class DataMaskingPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DataMaskingPolicyCreateOrUpdateMin.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * DataMaskingPolicyCreateOrUpdateMin.json */ /** * Sample code: Create or update data masking policy min. - * + * * @param manager Entry point to SynapseManager. */ public static void createOrUpdateDataMaskingPolicyMin(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .dataMaskingPolicies() - .define() + manager.dataMaskingPolicies().define() .withExistingSqlPool("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-331") - .withDataMaskingState(DataMaskingState.ENABLED) - .create(); + .withDataMaskingState(DataMaskingState.ENABLED).create(); } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DataMaskingPolicyCreateOrUpdateMax.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * DataMaskingPolicyCreateOrUpdateMax.json */ /** * Sample code: Create or update data masking policy max. - * + * * @param manager Entry point to SynapseManager. */ public static void createOrUpdateDataMaskingPolicyMax(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .dataMaskingPolicies() - .define() + manager.dataMaskingPolicies().define() .withExistingSqlPool("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-331") - .withDataMaskingState(DataMaskingState.ENABLED) - .withExemptPrincipals("testuser;") - .create(); + .withDataMaskingState(DataMaskingState.ENABLED).withExemptPrincipals("testuser;").create(); } } ``` @@ -732,21 +734,22 @@ public final class DataMaskingPoliciesCreateOrUpdateSamples { ### DataMaskingPolicies_Get ```java -/** Samples for DataMaskingPolicies Get. */ +/** + * Samples for DataMaskingPolicies Get. + */ public final class DataMaskingPoliciesGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DataMaskingPolicyGet.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DataMaskingPolicyGet.json */ /** * Sample code: Get data masking policy. - * + * * @param manager Entry point to SynapseManager. */ public static void getDataMaskingPolicy(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .dataMaskingPolicies() - .getWithResponse( - "sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-331", com.azure.core.util.Context.NONE); + manager.dataMaskingPolicies().getWithResponse("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-331", + com.azure.core.util.Context.NONE); } } ``` @@ -757,95 +760,73 @@ public final class DataMaskingPoliciesGetSamples { import com.azure.resourcemanager.synapse.models.DataMaskingFunction; import com.azure.resourcemanager.synapse.models.DataMaskingRuleState; -/** Samples for DataMaskingRules CreateOrUpdate. */ +/** + * Samples for DataMaskingRules CreateOrUpdate. + */ public final class DataMaskingRulesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DataMaskingRuleCreateOrUpdateDefaultMin.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * DataMaskingRuleCreateOrUpdateDefaultMin.json */ /** * Sample code: Create/Update data masking rule for default min. - * + * * @param manager Entry point to SynapseManager. */ - public static void createUpdateDataMaskingRuleForDefaultMin( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .dataMaskingRules() - .define("rule1") - .withExistingSqlPool("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-331") - .withSchemaName("dbo") - .withTableName("Table_1") - .withColumnName("test1") - .withMaskingFunction(DataMaskingFunction.DEFAULT) - .create(); + public static void + createUpdateDataMaskingRuleForDefaultMin(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.dataMaskingRules().define("rule1") + .withExistingSqlPool("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-331").withSchemaName("dbo") + .withTableName("Table_1").withColumnName("test1").withMaskingFunction(DataMaskingFunction.DEFAULT).create(); } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DataMaskingRuleCreateOrUpdateDefaultMax.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * DataMaskingRuleCreateOrUpdateDefaultMax.json */ /** * Sample code: Create/Update data masking rule for default max. - * + * * @param manager Entry point to SynapseManager. */ - public static void createUpdateDataMaskingRuleForDefaultMax( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .dataMaskingRules() - .define("rule1") - .withExistingSqlPool("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-331") - .withAliasName("nickname") - .withRuleState(DataMaskingRuleState.ENABLED) - .withSchemaName("dbo") - .withTableName("Table_1") - .withColumnName("test1") - .withMaskingFunction(DataMaskingFunction.DEFAULT) - .create(); + public static void + createUpdateDataMaskingRuleForDefaultMax(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.dataMaskingRules().define("rule1") + .withExistingSqlPool("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-331").withAliasName("nickname") + .withRuleState(DataMaskingRuleState.ENABLED).withSchemaName("dbo").withTableName("Table_1") + .withColumnName("test1").withMaskingFunction(DataMaskingFunction.DEFAULT).create(); } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DataMaskingRuleCreateOrUpdateText.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * DataMaskingRuleCreateOrUpdateText.json */ /** * Sample code: Create/Update data masking rule for text. - * + * * @param manager Entry point to SynapseManager. */ public static void createUpdateDataMaskingRuleForText(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .dataMaskingRules() - .define("rule1") - .withExistingSqlPool("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-331") - .withSchemaName("dbo") - .withTableName("Table_1") - .withColumnName("test1") - .withMaskingFunction(DataMaskingFunction.TEXT) - .withPrefixSize("1") - .withSuffixSize("0") - .withReplacementString("asdf") - .create(); + manager.dataMaskingRules().define("rule1") + .withExistingSqlPool("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-331").withSchemaName("dbo") + .withTableName("Table_1").withColumnName("test1").withMaskingFunction(DataMaskingFunction.TEXT) + .withPrefixSize("1").withSuffixSize("0").withReplacementString("asdf").create(); } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DataMaskingRuleCreateOrUpdateNumber.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * DataMaskingRuleCreateOrUpdateNumber.json */ /** * Sample code: Create/Update data masking rule for numbers. - * + * * @param manager Entry point to SynapseManager. */ public static void createUpdateDataMaskingRuleForNumbers(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .dataMaskingRules() - .define("rule1") - .withExistingSqlPool("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-331") - .withSchemaName("dbo") - .withTableName("Table_1") - .withColumnName("test1") - .withMaskingFunction(DataMaskingFunction.NUMBER) - .withNumberFrom("0") - .withNumberTo("2") - .create(); + manager.dataMaskingRules().define("rule1") + .withExistingSqlPool("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-331").withSchemaName("dbo") + .withTableName("Table_1").withColumnName("test1").withMaskingFunction(DataMaskingFunction.NUMBER) + .withNumberFrom("0").withNumberTo("2").create(); } } ``` @@ -853,21 +834,22 @@ public final class DataMaskingRulesCreateOrUpdateSamples { ### DataMaskingRules_Get ```java -/** Samples for DataMaskingRules Get. */ +/** + * Samples for DataMaskingRules Get. + */ public final class DataMaskingRulesGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DataMaskingRuleGet.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DataMaskingRuleGet.json */ /** * Sample code: Get data masking rule. - * + * * @param manager Entry point to SynapseManager. */ public static void getDataMaskingRule(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .dataMaskingRules() - .getWithResponse( - "sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-331", "rule1", com.azure.core.util.Context.NONE); + manager.dataMaskingRules().getWithResponse("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-331", "rule1", + com.azure.core.util.Context.NONE); } } ``` @@ -875,20 +857,22 @@ public final class DataMaskingRulesGetSamples { ### DataMaskingRules_ListBySqlPool ```java -/** Samples for DataMaskingRules ListBySqlPool. */ +/** + * Samples for DataMaskingRules ListBySqlPool. + */ public final class DataMaskingRulesListBySqlPoolSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DataMaskingRuleList.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DataMaskingRuleList.json */ /** * Sample code: List data masking rules. - * + * * @param manager Entry point to SynapseManager. */ public static void listDataMaskingRules(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .dataMaskingRules() - .listBySqlPool("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-331", com.azure.core.util.Context.NONE); + manager.dataMaskingRules().listBySqlPool("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-331", + com.azure.core.util.Context.NONE); } } ``` @@ -900,75 +884,64 @@ import com.azure.resourcemanager.synapse.models.BlobAuditingPolicyState; import java.util.Arrays; import java.util.UUID; -/** Samples for ExtendedSqlPoolBlobAuditingPolicies CreateOrUpdate. */ +/** + * Samples for ExtendedSqlPoolBlobAuditingPolicies CreateOrUpdate. + */ public final class ExtendedSqlPoolBlobAuditingPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ExtendedSqlPoolBlobAuditingCreateMax.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * ExtendedSqlPoolBlobAuditingCreateMax.json */ /** * Sample code: Create or update an extended Sql pool's blob auditing policy with all parameters. - * + * * @param manager Entry point to SynapseManager. */ public static void createOrUpdateAnExtendedSqlPoolSBlobAuditingPolicyWithAllParameters( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .extendedSqlPoolBlobAuditingPolicies() - .define() + manager.extendedSqlPoolBlobAuditingPolicies().define() .withExistingSqlPool("blobauditingtest-4799", "blobauditingtest-6440", "testdb") - .withPredicateExpression("statement = 'select 1'") - .withState(BlobAuditingPolicyState.ENABLED) + .withPredicateExpression("statement = 'select 1'").withState(BlobAuditingPolicyState.ENABLED) .withStorageEndpoint("https://mystorage.blob.core.windows.net") .withStorageAccountAccessKey( "sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==") .withRetentionDays(6) - .withAuditActionsAndGroups( - Arrays - .asList( - "DATABASE_LOGOUT_GROUP", - "DATABASE_ROLE_MEMBER_CHANGE_GROUP", - "UPDATE on database::TestDatabaseName by public")) + .withAuditActionsAndGroups(Arrays.asList("DATABASE_LOGOUT_GROUP", "DATABASE_ROLE_MEMBER_CHANGE_GROUP", + "UPDATE on database::TestDatabaseName by public")) .withStorageAccountSubscriptionId(UUID.fromString("00000000-1234-0000-5678-000000000000")) - .withIsStorageSecondaryKeyInUse(false) - .withIsAzureMonitorTargetEnabled(true) - .create(); + .withIsStorageSecondaryKeyInUse(false).withIsAzureMonitorTargetEnabled(true).create(); } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ExtendedSqlPoolAzureMonitorAuditingCreateMin.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * ExtendedSqlPoolAzureMonitorAuditingCreateMin.json */ /** * Sample code: Create or update an extended SQL pool's azure monitor auditing policy with minimal parameters. - * + * * @param manager Entry point to SynapseManager. */ public static void createOrUpdateAnExtendedSQLPoolSAzureMonitorAuditingPolicyWithMinimalParameters( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .extendedSqlPoolBlobAuditingPolicies() - .define() + manager.extendedSqlPoolBlobAuditingPolicies().define() .withExistingSqlPool("blobauditingtest-4799", "blobauditingtest-6440", "testdb") - .withState(BlobAuditingPolicyState.ENABLED) - .withIsAzureMonitorTargetEnabled(true) - .create(); + .withState(BlobAuditingPolicyState.ENABLED).withIsAzureMonitorTargetEnabled(true).create(); } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ExtendedSqlPoolBlobAuditingCreateMin.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * ExtendedSqlPoolBlobAuditingCreateMin.json */ /** * Sample code: Create or update an extended Sql pool's blob auditing policy with minimal parameters. - * + * * @param manager Entry point to SynapseManager. */ public static void createOrUpdateAnExtendedSqlPoolSBlobAuditingPolicyWithMinimalParameters( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .extendedSqlPoolBlobAuditingPolicies() - .define() + manager.extendedSqlPoolBlobAuditingPolicies().define() .withExistingSqlPool("blobauditingtest-4799", "blobauditingtest-6440", "testdb") - .withState(BlobAuditingPolicyState.ENABLED) - .withStorageEndpoint("https://mystorage.blob.core.windows.net") + .withState(BlobAuditingPolicyState.ENABLED).withStorageEndpoint("https://mystorage.blob.core.windows.net") .withStorageAccountAccessKey( "sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==") .create(); @@ -979,22 +952,23 @@ public final class ExtendedSqlPoolBlobAuditingPoliciesCreateOrUpdateSamples { ### ExtendedSqlPoolBlobAuditingPolicies_Get ```java -/** Samples for ExtendedSqlPoolBlobAuditingPolicies Get. */ +/** + * Samples for ExtendedSqlPoolBlobAuditingPolicies Get. + */ public final class ExtendedSqlPoolBlobAuditingPoliciesGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ExtendedSqlPoolBlobAuditingGet.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * ExtendedSqlPoolBlobAuditingGet.json */ /** * Sample code: Get an extended database's blob auditing policy. - * + * * @param manager Entry point to SynapseManager. */ - public static void getAnExtendedDatabaseSBlobAuditingPolicy( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .extendedSqlPoolBlobAuditingPolicies() - .getWithResponse( - "blobauditingtest-6852", "blobauditingtest-2080", "testdb", com.azure.core.util.Context.NONE); + public static void + getAnExtendedDatabaseSBlobAuditingPolicy(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.extendedSqlPoolBlobAuditingPolicies().getWithResponse("blobauditingtest-6852", "blobauditingtest-2080", + "testdb", com.azure.core.util.Context.NONE); } } ``` @@ -1002,22 +976,23 @@ public final class ExtendedSqlPoolBlobAuditingPoliciesGetSamples { ### ExtendedSqlPoolBlobAuditingPolicies_ListBySqlPool ```java -/** Samples for ExtendedSqlPoolBlobAuditingPolicies ListBySqlPool. */ +/** + * Samples for ExtendedSqlPoolBlobAuditingPolicies ListBySqlPool. + */ public final class ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolExtendedAuditingSettingsList.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * SqlPoolExtendedAuditingSettingsList.json */ /** * Sample code: List extended auditing settings of a database. - * + * * @param manager Entry point to SynapseManager. */ - public static void listExtendedAuditingSettingsOfADatabase( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .extendedSqlPoolBlobAuditingPolicies() - .listBySqlPool( - "blobauditingtest-6852", "blobauditingtest-2080", "testdb", com.azure.core.util.Context.NONE); + public static void + listExtendedAuditingSettingsOfADatabase(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.extendedSqlPoolBlobAuditingPolicies().listBySqlPool("blobauditingtest-6852", "blobauditingtest-2080", + "testdb", com.azure.core.util.Context.NONE); } } ``` @@ -1025,25 +1000,23 @@ public final class ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolSamples { ### Get_IntegrationRuntimeEnableInteractivequery ```java -/** Samples for Get IntegrationRuntimeEnableInteractivequery. */ +/** + * Samples for Get IntegrationRuntimeEnableInteractivequery. + */ public final class GetIntegrationRuntimeEnableInteractivequerySamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/EnableInteractivequery_IntegrationRuntimes.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * EnableInteractivequery_IntegrationRuntimes.json */ /** * Sample code: Get integration runtime operation status. - * + * * @param manager Entry point to SynapseManager. */ public static void getIntegrationRuntimeOperationStatus(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .gets() - .integrationRuntimeEnableInteractivequeryWithResponse( - "drage-felles-prod-rg", - "felles-prod-synapse-workspace", - "SSIS-intergrationRuntime-Drage", - "5752dcdf918e4aecb941245ddf6ebb83", - com.azure.core.util.Context.NONE); + manager.gets().integrationRuntimeEnableInteractivequeryWithResponse("drage-felles-prod-rg", + "felles-prod-synapse-workspace", "SSIS-intergrationRuntime-Drage", "5752dcdf918e4aecb941245ddf6ebb83", + com.azure.core.util.Context.NONE); } } ``` @@ -1051,25 +1024,22 @@ public final class GetIntegrationRuntimeEnableInteractivequerySamples { ### Get_IntegrationRuntimeStart ```java -/** Samples for Get IntegrationRuntimeStart. */ +/** + * Samples for Get IntegrationRuntimeStart. + */ public final class GetIntegrationRuntimeStartSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_Start_OperationStatus.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * IntegrationRuntimes_Start_OperationStatus.json */ /** * Sample code: Get integration runtime operation status. - * + * * @param manager Entry point to SynapseManager. */ public static void getIntegrationRuntimeOperationStatus(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .gets() - .integrationRuntimeStartWithResponse( - "drage-felles-prod-rg", - "felles-prod-synapse-workspace", - "SSIS-intergrationRuntime-Drage", - "5752dcdf918e4aecb941245ddf6ebb83", - com.azure.core.util.Context.NONE); + manager.gets().integrationRuntimeStartWithResponse("drage-felles-prod-rg", "felles-prod-synapse-workspace", + "SSIS-intergrationRuntime-Drage", "5752dcdf918e4aecb941245ddf6ebb83", com.azure.core.util.Context.NONE); } } ``` @@ -1077,25 +1047,22 @@ public final class GetIntegrationRuntimeStartSamples { ### Get_IntegrationRuntimeStop ```java -/** Samples for Get IntegrationRuntimeStop. */ +/** + * Samples for Get IntegrationRuntimeStop. + */ public final class GetIntegrationRuntimeStopSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_Stop_OperationStatus.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * IntegrationRuntimes_Stop_OperationStatus.json */ /** * Sample code: Get integration runtime operation status. - * + * * @param manager Entry point to SynapseManager. */ public static void getIntegrationRuntimeOperationStatus(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .gets() - .integrationRuntimeStopWithResponse( - "drage-felles-prod-rg", - "felles-prod-synapse-workspace", - "SSIS-intergrationRuntime-Drage", - "5752dcdf918e4aecb941245ddf6ebb83", - com.azure.core.util.Context.NONE); + manager.gets().integrationRuntimeStopWithResponse("drage-felles-prod-rg", "felles-prod-synapse-workspace", + "SSIS-intergrationRuntime-Drage", "5752dcdf918e4aecb941245ddf6ebb83", com.azure.core.util.Context.NONE); } } ``` @@ -1103,24 +1070,22 @@ public final class GetIntegrationRuntimeStopSamples { ### IntegrationRuntimeAuthKeysOperation_List ```java -/** Samples for IntegrationRuntimeAuthKeysOperation List. */ +/** + * Samples for IntegrationRuntimeAuthKeysOperation List. + */ public final class IntegrationRuntimeAuthKeysOperationListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_ListAuthKeys.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * IntegrationRuntimes_ListAuthKeys.json */ /** * Sample code: List auth keys. - * + * * @param manager Entry point to SynapseManager. */ public static void listAuthKeys(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .integrationRuntimeAuthKeysOperations() - .listWithResponse( - "exampleResourceGroup", - "exampleWorkspace", - "exampleIntegrationRuntime", - com.azure.core.util.Context.NONE); + manager.integrationRuntimeAuthKeysOperations().listWithResponse("exampleResourceGroup", "exampleWorkspace", + "exampleIntegrationRuntime", com.azure.core.util.Context.NONE); } } ``` @@ -1131,25 +1096,24 @@ public final class IntegrationRuntimeAuthKeysOperationListSamples { import com.azure.resourcemanager.synapse.models.IntegrationRuntimeAuthKeyName; import com.azure.resourcemanager.synapse.models.IntegrationRuntimeRegenerateKeyParameters; -/** Samples for IntegrationRuntimeAuthKeysOperation Regenerate. */ +/** + * Samples for IntegrationRuntimeAuthKeysOperation Regenerate. + */ public final class IntegrationRuntimeAuthKeysOperationRegenerateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_RegenerateAuthKey.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * IntegrationRuntimes_RegenerateAuthKey.json */ /** * Sample code: Regenerate auth key. - * + * * @param manager Entry point to SynapseManager. */ public static void regenerateAuthKey(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .integrationRuntimeAuthKeysOperations() - .regenerateWithResponse( - "exampleResourceGroup", - "exampleWorkspace", - "exampleIntegrationRuntime", - new IntegrationRuntimeRegenerateKeyParameters().withKeyName(IntegrationRuntimeAuthKeyName.AUTH_KEY2), - com.azure.core.util.Context.NONE); + manager.integrationRuntimeAuthKeysOperations().regenerateWithResponse("exampleResourceGroup", + "exampleWorkspace", "exampleIntegrationRuntime", + new IntegrationRuntimeRegenerateKeyParameters().withKeyName(IntegrationRuntimeAuthKeyName.AUTH_KEY2), + com.azure.core.util.Context.NONE); } } ``` @@ -1157,24 +1121,22 @@ public final class IntegrationRuntimeAuthKeysOperationRegenerateSamples { ### IntegrationRuntimeConnectionInfos_Get ```java -/** Samples for IntegrationRuntimeConnectionInfos Get. */ +/** + * Samples for IntegrationRuntimeConnectionInfos Get. + */ public final class IntegrationRuntimeConnectionInfosGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_GetConnectionInfo.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * IntegrationRuntimes_GetConnectionInfo.json */ /** * Sample code: Get connection info. - * + * * @param manager Entry point to SynapseManager. */ public static void getConnectionInfo(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .integrationRuntimeConnectionInfos() - .getWithResponse( - "exampleResourceGroup", - "exampleWorkspace", - "exampleIntegrationRuntime", - com.azure.core.util.Context.NONE); + manager.integrationRuntimeConnectionInfos().getWithResponse("exampleResourceGroup", "exampleWorkspace", + "exampleIntegrationRuntime", com.azure.core.util.Context.NONE); } } ``` @@ -1182,24 +1144,22 @@ public final class IntegrationRuntimeConnectionInfosGetSamples { ### IntegrationRuntimeCredentials_Sync ```java -/** Samples for IntegrationRuntimeCredentials Sync. */ +/** + * Samples for IntegrationRuntimeCredentials Sync. + */ public final class IntegrationRuntimeCredentialsSyncSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_SyncCredentials.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * IntegrationRuntimes_SyncCredentials.json */ /** * Sample code: Sync credentials. - * + * * @param manager Entry point to SynapseManager. */ public static void syncCredentials(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .integrationRuntimeCredentials() - .syncWithResponse( - "exampleResourceGroup", - "exampleWorkspace", - "exampleIntegrationRuntime", - com.azure.core.util.Context.NONE); + manager.integrationRuntimeCredentials().syncWithResponse("exampleResourceGroup", "exampleWorkspace", + "exampleIntegrationRuntime", com.azure.core.util.Context.NONE); } } ``` @@ -1207,24 +1167,22 @@ public final class IntegrationRuntimeCredentialsSyncSamples { ### IntegrationRuntimeMonitoringData_List ```java -/** Samples for IntegrationRuntimeMonitoringData List. */ +/** + * Samples for IntegrationRuntimeMonitoringData List. + */ public final class IntegrationRuntimeMonitoringDataListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimeMonitoringData_List.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * IntegrationRuntimeMonitoringData_List.json */ /** * Sample code: Get monitoring data. - * + * * @param manager Entry point to SynapseManager. */ public static void getMonitoringData(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .integrationRuntimeMonitoringDatas() - .listWithResponse( - "exampleResourceGroup", - "exampleWorkspace", - "exampleIntegrationRuntime", - com.azure.core.util.Context.NONE); + manager.integrationRuntimeMonitoringDatas().listWithResponse("exampleResourceGroup", "exampleWorkspace", + "exampleIntegrationRuntime", com.azure.core.util.Context.NONE); } } ``` @@ -1232,25 +1190,22 @@ public final class IntegrationRuntimeMonitoringDataListSamples { ### IntegrationRuntimeNodeIpAddressOperation_Get ```java -/** Samples for IntegrationRuntimeNodeIpAddressOperation Get. */ +/** + * Samples for IntegrationRuntimeNodeIpAddressOperation Get. + */ public final class IntegrationRuntimeNodeIpAddressOperationGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimeNodes_GetIpAddress.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * IntegrationRuntimeNodes_GetIpAddress.json */ /** * Sample code: Get integration runtime node IP address. - * + * * @param manager Entry point to SynapseManager. */ public static void getIntegrationRuntimeNodeIPAddress(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .integrationRuntimeNodeIpAddressOperations() - .getWithResponse( - "exampleResourceGroup", - "exampleWorkspace", - "exampleIntegrationRuntime", - "Node_1", - com.azure.core.util.Context.NONE); + manager.integrationRuntimeNodeIpAddressOperations().getWithResponse("exampleResourceGroup", "exampleWorkspace", + "exampleIntegrationRuntime", "Node_1", com.azure.core.util.Context.NONE); } } ``` @@ -1258,25 +1213,22 @@ public final class IntegrationRuntimeNodeIpAddressOperationGetSamples { ### IntegrationRuntimeNodes_Delete ```java -/** Samples for IntegrationRuntimeNodes Delete. */ +/** + * Samples for IntegrationRuntimeNodes Delete. + */ public final class IntegrationRuntimeNodesDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimeNodes_Delete.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * IntegrationRuntimeNodes_Delete.json */ /** * Sample code: Delete integration runtime node. - * + * * @param manager Entry point to SynapseManager. */ public static void deleteIntegrationRuntimeNode(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .integrationRuntimeNodes() - .deleteWithResponse( - "exampleResourceGroup", - "exampleWorkspace", - "exampleIntegrationRuntime", - "Node_1", - com.azure.core.util.Context.NONE); + manager.integrationRuntimeNodes().deleteWithResponse("exampleResourceGroup", "exampleWorkspace", + "exampleIntegrationRuntime", "Node_1", com.azure.core.util.Context.NONE); } } ``` @@ -1284,25 +1236,22 @@ public final class IntegrationRuntimeNodesDeleteSamples { ### IntegrationRuntimeNodes_Get ```java -/** Samples for IntegrationRuntimeNodes Get. */ +/** + * Samples for IntegrationRuntimeNodes Get. + */ public final class IntegrationRuntimeNodesGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimeNodes_Get.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * IntegrationRuntimeNodes_Get.json */ /** * Sample code: Get integration runtime node. - * + * * @param manager Entry point to SynapseManager. */ public static void getIntegrationRuntimeNode(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .integrationRuntimeNodes() - .getWithResponse( - "exampleResourceGroup", - "exampleWorkspace", - "exampleIntegrationRuntime", - "Node_1", - com.azure.core.util.Context.NONE); + manager.integrationRuntimeNodes().getWithResponse("exampleResourceGroup", "exampleWorkspace", + "exampleIntegrationRuntime", "Node_1", com.azure.core.util.Context.NONE); } } ``` @@ -1312,26 +1261,23 @@ public final class IntegrationRuntimeNodesGetSamples { ```java import com.azure.resourcemanager.synapse.models.UpdateIntegrationRuntimeNodeRequest; -/** Samples for IntegrationRuntimeNodes Update. */ +/** + * Samples for IntegrationRuntimeNodes Update. + */ public final class IntegrationRuntimeNodesUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimeNodes_Update.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * IntegrationRuntimeNodes_Update.json */ /** * Sample code: Update integration runtime node. - * + * * @param manager Entry point to SynapseManager. */ public static void updateIntegrationRuntimeNode(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .integrationRuntimeNodes() - .updateWithResponse( - "exampleResourceGroup", - "exampleWorkspace", - "exampleIntegrationRuntime", - "Node_1", - new UpdateIntegrationRuntimeNodeRequest().withConcurrentJobsLimit(2), - com.azure.core.util.Context.NONE); + manager.integrationRuntimeNodes().updateWithResponse("exampleResourceGroup", "exampleWorkspace", + "exampleIntegrationRuntime", "Node_1", new UpdateIntegrationRuntimeNodeRequest().withConcurrentJobsLimit(2), + com.azure.core.util.Context.NONE); } } ``` @@ -1341,25 +1287,23 @@ public final class IntegrationRuntimeNodesUpdateSamples { ```java import com.azure.resourcemanager.synapse.models.GetSsisObjectMetadataRequest; -/** Samples for IntegrationRuntimeObjectMetadata List. */ +/** + * Samples for IntegrationRuntimeObjectMetadata List. + */ public final class IntegrationRuntimeObjectMetadataListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimeObjectMetadata_List.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * IntegrationRuntimeObjectMetadata_List.json */ /** * Sample code: Get integration runtime object metadata. - * + * * @param manager Entry point to SynapseManager. */ public static void getIntegrationRuntimeObjectMetadata(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .integrationRuntimeObjectMetadatas() - .listWithResponse( - "exampleResourceGroup", - "exampleWorkspace", - "testactivityv2", - new GetSsisObjectMetadataRequest().withMetadataPath("ssisFolders"), - com.azure.core.util.Context.NONE); + manager.integrationRuntimeObjectMetadatas().listWithResponse("exampleResourceGroup", "exampleWorkspace", + "testactivityv2", new GetSsisObjectMetadataRequest().withMetadataPath("ssisFolders"), + com.azure.core.util.Context.NONE); } } ``` @@ -1367,20 +1311,22 @@ public final class IntegrationRuntimeObjectMetadataListSamples { ### IntegrationRuntimeObjectMetadata_Refresh ```java -/** Samples for IntegrationRuntimeObjectMetadata Refresh. */ +/** + * Samples for IntegrationRuntimeObjectMetadata Refresh. + */ public final class IntegrationRuntimeObjectMetadataRefreshSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimeObjectMetadata_Refresh.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * IntegrationRuntimeObjectMetadata_Refresh.json */ /** * Sample code: Refresh object metadata. - * + * * @param manager Entry point to SynapseManager. */ public static void refreshObjectMetadata(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .integrationRuntimeObjectMetadatas() - .refresh("exampleResourceGroup", "exampleWorkspace", "testactivityv2", com.azure.core.util.Context.NONE); + manager.integrationRuntimeObjectMetadatas().refresh("exampleResourceGroup", "exampleWorkspace", + "testactivityv2", com.azure.core.util.Context.NONE); } } ``` @@ -1388,24 +1334,22 @@ public final class IntegrationRuntimeObjectMetadataRefreshSamples { ### IntegrationRuntimeStatusOperation_Get ```java -/** Samples for IntegrationRuntimeStatusOperation Get. */ +/** + * Samples for IntegrationRuntimeStatusOperation Get. + */ public final class IntegrationRuntimeStatusOperationGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_GetStatus.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * IntegrationRuntimes_GetStatus.json */ /** * Sample code: Get status. - * + * * @param manager Entry point to SynapseManager. */ public static void getStatus(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .integrationRuntimeStatusOperations() - .getWithResponse( - "exampleResourceGroup", - "exampleWorkspace", - "exampleIntegrationRuntime", - com.azure.core.util.Context.NONE); + manager.integrationRuntimeStatusOperations().getWithResponse("exampleResourceGroup", "exampleWorkspace", + "exampleIntegrationRuntime", com.azure.core.util.Context.NONE); } } ``` @@ -1415,20 +1359,21 @@ public final class IntegrationRuntimeStatusOperationGetSamples { ```java import com.azure.resourcemanager.synapse.models.SelfHostedIntegrationRuntime; -/** Samples for IntegrationRuntimes Create. */ +/** + * Samples for IntegrationRuntimes Create. + */ public final class IntegrationRuntimesCreateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_Create.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * IntegrationRuntimes_Create.json */ /** * Sample code: Create integration runtime. - * + * * @param manager Entry point to SynapseManager. */ public static void createIntegrationRuntime(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .integrationRuntimes() - .define("exampleIntegrationRuntime") + manager.integrationRuntimes().define("exampleIntegrationRuntime") .withExistingWorkspace("exampleResourceGroup", "exampleWorkspace") .withProperties(new SelfHostedIntegrationRuntime().withDescription("A selfhosted integration runtime")) .create(); @@ -1439,24 +1384,22 @@ public final class IntegrationRuntimesCreateSamples { ### IntegrationRuntimes_Delete ```java -/** Samples for IntegrationRuntimes Delete. */ +/** + * Samples for IntegrationRuntimes Delete. + */ public final class IntegrationRuntimesDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_Delete.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * IntegrationRuntimes_Delete.json */ /** * Sample code: Delete integration runtime. - * + * * @param manager Entry point to SynapseManager. */ public static void deleteIntegrationRuntime(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .integrationRuntimes() - .delete( - "exampleResourceGroup", - "exampleWorkspace", - "exampleIntegrationRuntime", - com.azure.core.util.Context.NONE); + manager.integrationRuntimes().delete("exampleResourceGroup", "exampleWorkspace", "exampleIntegrationRuntime", + com.azure.core.util.Context.NONE); } } ``` @@ -1464,24 +1407,22 @@ public final class IntegrationRuntimesDeleteSamples { ### IntegrationRuntimes_DisableInteractiveQuery ```java -/** Samples for IntegrationRuntimes DisableInteractiveQuery. */ +/** + * Samples for IntegrationRuntimes DisableInteractiveQuery. + */ public final class IntegrationRuntimesDisableInteractiveQuerySamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_DisableInteractiveQuery.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * IntegrationRuntimes_DisableInteractiveQuery.json */ /** * Sample code: Stop integration runtime. - * + * * @param manager Entry point to SynapseManager. */ public static void stopIntegrationRuntime(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .integrationRuntimes() - .disableInteractiveQuery( - "exampleResourceGroup", - "exampleWorkspace", - "exampleManagedIntegrationRuntime", - com.azure.core.util.Context.NONE); + manager.integrationRuntimes().disableInteractiveQuery("exampleResourceGroup", "exampleWorkspace", + "exampleManagedIntegrationRuntime", com.azure.core.util.Context.NONE); } } ``` @@ -1489,24 +1430,22 @@ public final class IntegrationRuntimesDisableInteractiveQuerySamples { ### IntegrationRuntimes_EnableInteractiveQuery ```java -/** Samples for IntegrationRuntimes EnableInteractiveQuery. */ +/** + * Samples for IntegrationRuntimes EnableInteractiveQuery. + */ public final class IntegrationRuntimesEnableInteractiveQuerySamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_EnableInteractiveQuery.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * IntegrationRuntimes_EnableInteractiveQuery.json */ /** * Sample code: Stop integration runtime. - * + * * @param manager Entry point to SynapseManager. */ public static void stopIntegrationRuntime(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .integrationRuntimes() - .enableInteractiveQuery( - "exampleResourceGroup", - "exampleWorkspace", - "exampleManagedIntegrationRuntime", - com.azure.core.util.Context.NONE); + manager.integrationRuntimes().enableInteractiveQuery("exampleResourceGroup", "exampleWorkspace", + "exampleManagedIntegrationRuntime", com.azure.core.util.Context.NONE); } } ``` @@ -1514,25 +1453,22 @@ public final class IntegrationRuntimesEnableInteractiveQuerySamples { ### IntegrationRuntimes_Get ```java -/** Samples for IntegrationRuntimes Get. */ +/** + * Samples for IntegrationRuntimes Get. + */ public final class IntegrationRuntimesGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_Get.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * IntegrationRuntimes_Get.json */ /** * Sample code: Get integration runtime. - * + * * @param manager Entry point to SynapseManager. */ public static void getIntegrationRuntime(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .integrationRuntimes() - .getWithResponse( - "exampleResourceGroup", - "exampleWorkspace", - "exampleIntegrationRuntime", - null, - com.azure.core.util.Context.NONE); + manager.integrationRuntimes().getWithResponse("exampleResourceGroup", "exampleWorkspace", + "exampleIntegrationRuntime", null, com.azure.core.util.Context.NONE); } } ``` @@ -1540,20 +1476,22 @@ public final class IntegrationRuntimesGetSamples { ### IntegrationRuntimes_ListByWorkspace ```java -/** Samples for IntegrationRuntimes ListByWorkspace. */ +/** + * Samples for IntegrationRuntimes ListByWorkspace. + */ public final class IntegrationRuntimesListByWorkspaceSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_ListByWorkspace.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * IntegrationRuntimes_ListByWorkspace.json */ /** * Sample code: List integration runtimes. - * + * * @param manager Entry point to SynapseManager. */ public static void listIntegrationRuntimes(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .integrationRuntimes() - .listByWorkspace("exampleResourceGroup", "exampleWorkspace", com.azure.core.util.Context.NONE); + manager.integrationRuntimes().listByWorkspace("exampleResourceGroup", "exampleWorkspace", + com.azure.core.util.Context.NONE); } } ``` @@ -1561,24 +1499,22 @@ public final class IntegrationRuntimesListByWorkspaceSamples { ### IntegrationRuntimes_ListOutboundNetworkDependenciesEndpoints ```java -/** Samples for IntegrationRuntimes ListOutboundNetworkDependenciesEndpoints. */ +/** + * Samples for IntegrationRuntimes ListOutboundNetworkDependenciesEndpoints. + */ public final class IntegrationRuntimesListOutboundNetworkDependenciesEndpointsSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_ListOutboundNetworkDependenciesEndpoints.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * IntegrationRuntimes_ListOutboundNetworkDependenciesEndpoints.json */ /** * Sample code: Get outbound network dependency endpoints. - * + * * @param manager Entry point to SynapseManager. */ public static void getOutboundNetworkDependencyEndpoints(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .integrationRuntimes() - .listOutboundNetworkDependenciesEndpointsWithResponse( - "exampleResourceGroup", - "exampleWorkspace", - "exampleIntegrationRuntime", - com.azure.core.util.Context.NONE); + manager.integrationRuntimes().listOutboundNetworkDependenciesEndpointsWithResponse("exampleResourceGroup", + "exampleWorkspace", "exampleIntegrationRuntime", com.azure.core.util.Context.NONE); } } ``` @@ -1586,24 +1522,22 @@ public final class IntegrationRuntimesListOutboundNetworkDependenciesEndpointsSa ### IntegrationRuntimes_Start ```java -/** Samples for IntegrationRuntimes Start. */ +/** + * Samples for IntegrationRuntimes Start. + */ public final class IntegrationRuntimesStartSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_Start.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * IntegrationRuntimes_Start.json */ /** * Sample code: Start integration runtime. - * + * * @param manager Entry point to SynapseManager. */ public static void startIntegrationRuntime(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .integrationRuntimes() - .start( - "exampleResourceGroup", - "exampleWorkspace", - "exampleManagedIntegrationRuntime", - com.azure.core.util.Context.NONE); + manager.integrationRuntimes().start("exampleResourceGroup", "exampleWorkspace", + "exampleManagedIntegrationRuntime", com.azure.core.util.Context.NONE); } } ``` @@ -1611,24 +1545,22 @@ public final class IntegrationRuntimesStartSamples { ### IntegrationRuntimes_Stop ```java -/** Samples for IntegrationRuntimes Stop. */ +/** + * Samples for IntegrationRuntimes Stop. + */ public final class IntegrationRuntimesStopSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_Stop.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * IntegrationRuntimes_Stop.json */ /** * Sample code: Stop integration runtime. - * + * * @param manager Entry point to SynapseManager. */ public static void stopIntegrationRuntime(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .integrationRuntimes() - .stop( - "exampleResourceGroup", - "exampleWorkspace", - "exampleManagedIntegrationRuntime", - com.azure.core.util.Context.NONE); + manager.integrationRuntimes().stop("exampleResourceGroup", "exampleWorkspace", + "exampleManagedIntegrationRuntime", com.azure.core.util.Context.NONE); } } ``` @@ -1639,27 +1571,22 @@ public final class IntegrationRuntimesStopSamples { import com.azure.resourcemanager.synapse.models.IntegrationRuntimeAutoUpdate; import com.azure.resourcemanager.synapse.models.IntegrationRuntimeResource; -/** Samples for IntegrationRuntimes Update. */ +/** + * Samples for IntegrationRuntimes Update. + */ public final class IntegrationRuntimesUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_Update.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * IntegrationRuntimes_Update.json */ /** * Sample code: Update integration runtime. - * + * * @param manager Entry point to SynapseManager. */ public static void updateIntegrationRuntime(com.azure.resourcemanager.synapse.SynapseManager manager) { - IntegrationRuntimeResource resource = - manager - .integrationRuntimes() - .getWithResponse( - "exampleResourceGroup", - "exampleWorkspace", - "exampleIntegrationRuntime", - null, - com.azure.core.util.Context.NONE) - .getValue(); + IntegrationRuntimeResource resource = manager.integrationRuntimes().getWithResponse("exampleResourceGroup", + "exampleWorkspace", "exampleIntegrationRuntime", null, com.azure.core.util.Context.NONE).getValue(); resource.update().withAutoUpdate(IntegrationRuntimeAutoUpdate.OFF).withUpdateDelayOffset("\"PT3H\"").apply(); } } @@ -1668,24 +1595,22 @@ public final class IntegrationRuntimesUpdateSamples { ### IntegrationRuntimes_Upgrade ```java -/** Samples for IntegrationRuntimes Upgrade. */ +/** + * Samples for IntegrationRuntimes Upgrade. + */ public final class IntegrationRuntimesUpgradeSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_Upgrade.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * IntegrationRuntimes_Upgrade.json */ /** * Sample code: Upgrade integration runtime. - * + * * @param manager Entry point to SynapseManager. */ public static void upgradeIntegrationRuntime(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .integrationRuntimes() - .upgradeWithResponse( - "exampleResourceGroup", - "exampleWorkspace", - "exampleIntegrationRuntime", - com.azure.core.util.Context.NONE); + manager.integrationRuntimes().upgradeWithResponse("exampleResourceGroup", "exampleWorkspace", + "exampleIntegrationRuntime", com.azure.core.util.Context.NONE); } } ``` @@ -1693,24 +1618,23 @@ public final class IntegrationRuntimesUpgradeSamples { ### IpFirewallRules_CreateOrUpdate ```java -/** Samples for IpFirewallRules CreateOrUpdate. */ +/** + * Samples for IpFirewallRules CreateOrUpdate. + */ public final class IpFirewallRulesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateIpFirewallRule.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateIpFirewallRule.json */ /** * Sample code: Create an IP firewall rule. - * + * * @param manager Entry point to SynapseManager. */ public static void createAnIPFirewallRule(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .ipFirewallRules() - .define("ExampleIpFirewallRule") - .withExistingWorkspace("ExampleResourceGroup", "ExampleWorkspace") - .withEndIpAddress("10.0.0.254") - .withStartIpAddress("10.0.0.0") - .create(); + manager.ipFirewallRules().define("ExampleIpFirewallRule") + .withExistingWorkspace("ExampleResourceGroup", "ExampleWorkspace").withEndIpAddress("10.0.0.254") + .withStartIpAddress("10.0.0.0").create(); } } ``` @@ -1718,21 +1642,22 @@ public final class IpFirewallRulesCreateOrUpdateSamples { ### IpFirewallRules_Delete ```java -/** Samples for IpFirewallRules Delete. */ +/** + * Samples for IpFirewallRules Delete. + */ public final class IpFirewallRulesDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteIpFirewallRule.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteIpFirewallRule.json */ /** * Sample code: Delete an IP firewall rule from a workspace. - * + * * @param manager Entry point to SynapseManager. */ public static void deleteAnIPFirewallRuleFromAWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .ipFirewallRules() - .delete( - "ExampleResourceGroup", "ExampleWorkspace", "ExampleIpFirewallRule", com.azure.core.util.Context.NONE); + manager.ipFirewallRules().delete("ExampleResourceGroup", "ExampleWorkspace", "ExampleIpFirewallRule", + com.azure.core.util.Context.NONE); } } ``` @@ -1740,21 +1665,22 @@ public final class IpFirewallRulesDeleteSamples { ### IpFirewallRules_Get ```java -/** Samples for IpFirewallRules Get. */ +/** + * Samples for IpFirewallRules Get. + */ public final class IpFirewallRulesGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetIpFirewallRule.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetIpFirewallRule.json */ /** * Sample code: Get IP firewall rule. - * + * * @param manager Entry point to SynapseManager. */ public static void getIPFirewallRule(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .ipFirewallRules() - .getWithResponse( - "ExampleResourceGroup", "ExampleWorkspace", "ExampleIpFirewallRule", com.azure.core.util.Context.NONE); + manager.ipFirewallRules().getWithResponse("ExampleResourceGroup", "ExampleWorkspace", "ExampleIpFirewallRule", + com.azure.core.util.Context.NONE); } } ``` @@ -1762,20 +1688,22 @@ public final class IpFirewallRulesGetSamples { ### IpFirewallRules_ListByWorkspace ```java -/** Samples for IpFirewallRules ListByWorkspace. */ +/** + * Samples for IpFirewallRules ListByWorkspace. + */ public final class IpFirewallRulesListByWorkspaceSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListIpFirewallRules.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListIpFirewallRules.json */ /** * Sample code: List IP firewall rules in a workspace. - * + * * @param manager Entry point to SynapseManager. */ public static void listIPFirewallRulesInAWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .ipFirewallRules() - .listByWorkspace("ExampleResourceGroup", "ExampleWorkspace", com.azure.core.util.Context.NONE); + manager.ipFirewallRules().listByWorkspace("ExampleResourceGroup", "ExampleWorkspace", + com.azure.core.util.Context.NONE); } } ``` @@ -1788,36 +1716,30 @@ import com.azure.resourcemanager.synapse.models.ReplaceAllIpFirewallRulesRequest import java.util.HashMap; import java.util.Map; -/** Samples for IpFirewallRules ReplaceAll. */ +/** + * Samples for IpFirewallRules ReplaceAll. + */ public final class IpFirewallRulesReplaceAllSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ReplaceAllIpFirewallRules.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ReplaceAllIpFirewallRules. + * json */ /** * Sample code: Replace all IP firewall rules in a workspace. - * + * * @param manager Entry point to SynapseManager. */ public static void replaceAllIPFirewallRulesInAWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .ipFirewallRules() - .replaceAll( - "ExampleResourceGroup", - "ExampleWorkspace", - new ReplaceAllIpFirewallRulesRequest() - .withIpFirewallRules( - mapOf( - "AnotherExampleFirewallRule", - new IpFirewallRuleProperties() - .withEndIpAddress("10.0.1.254") - .withStartIpAddress("10.0.1.0"), - "ExampleFirewallRule", - new IpFirewallRuleProperties() - .withEndIpAddress("10.0.0.254") - .withStartIpAddress("10.0.0.0"))), - com.azure.core.util.Context.NONE); + manager.ipFirewallRules().replaceAll("ExampleResourceGroup", "ExampleWorkspace", + new ReplaceAllIpFirewallRulesRequest().withIpFirewallRules(mapOf("AnotherExampleFirewallRule", + new IpFirewallRuleProperties().withEndIpAddress("10.0.1.254").withStartIpAddress("10.0.1.0"), + "ExampleFirewallRule", + new IpFirewallRuleProperties().withEndIpAddress("10.0.0.254").withStartIpAddress("10.0.0.0"))), + com.azure.core.util.Context.NONE); } + // Use "Map.of" if available @SuppressWarnings("unchecked") private static Map mapOf(Object... inputs) { Map map = new HashMap<>(); @@ -1834,24 +1756,22 @@ public final class IpFirewallRulesReplaceAllSamples { ### Keys_CreateOrUpdate ```java -/** Samples for Keys CreateOrUpdate. */ +/** + * Samples for Keys CreateOrUpdate. + */ public final class KeysCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateKey.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateKey.json */ /** * Sample code: Create or update a workspace key. - * + * * @param manager Entry point to SynapseManager. */ public static void createOrUpdateAWorkspaceKey(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .keys() - .define("somekey") - .withExistingWorkspace("ExampleResourceGroup", "ExampleWorkspace") - .withIsActiveCmk(true) - .withKeyVaultUrl("https://vault.azure.net/keys/somesecret") - .create(); + manager.keys().define("somekey").withExistingWorkspace("ExampleResourceGroup", "ExampleWorkspace") + .withIsActiveCmk(true).withKeyVaultUrl("https://vault.azure.net/keys/somesecret").create(); } } ``` @@ -1859,21 +1779,22 @@ public final class KeysCreateOrUpdateSamples { ### Keys_Delete ```java -/** Samples for Keys Delete. */ +/** + * Samples for Keys Delete. + */ public final class KeysDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteKey.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteKey.json */ /** * Sample code: Delete a workspace key. - * + * * @param manager Entry point to SynapseManager. */ public static void deleteAWorkspaceKey(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .keys() - .deleteWithResponse( - "ExampleResourceGroup", "ExampleWorkspace", "somekey", com.azure.core.util.Context.NONE); + manager.keys().deleteWithResponse("ExampleResourceGroup", "ExampleWorkspace", "somekey", + com.azure.core.util.Context.NONE); } } ``` @@ -1881,20 +1802,22 @@ public final class KeysDeleteSamples { ### Keys_Get ```java -/** Samples for Keys Get. */ +/** + * Samples for Keys Get. + */ public final class KeysGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetKey.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetKey.json */ /** * Sample code: Get a workspace key. - * + * * @param manager Entry point to SynapseManager. */ public static void getAWorkspaceKey(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .keys() - .getWithResponse("ExampleResourceGroup", "ExampleWorkspace", "somekey", com.azure.core.util.Context.NONE); + manager.keys().getWithResponse("ExampleResourceGroup", "ExampleWorkspace", "somekey", + com.azure.core.util.Context.NONE); } } ``` @@ -1902,14 +1825,17 @@ public final class KeysGetSamples { ### Keys_ListByWorkspace ```java -/** Samples for Keys ListByWorkspace. */ +/** + * Samples for Keys ListByWorkspace. + */ public final class KeysListByWorkspaceSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListKeysInWorkspace.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListKeysInWorkspace.json */ /** * Sample code: List keys in workspace. - * + * * @param manager Entry point to SynapseManager. */ public static void listKeysInWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { @@ -1921,14 +1847,18 @@ public final class KeysListByWorkspaceSamples { ### KustoOperations_List ```java -/** Samples for KustoOperations List. */ +/** + * Samples for KustoOperations List. + */ public final class KustoOperationsListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoOperationsList.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoOperationsList. + * json */ /** * Sample code: KustoOperationsList. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoOperationsList(com.azure.resourcemanager.synapse.SynapseManager manager) { @@ -1944,35 +1874,33 @@ import com.azure.resourcemanager.synapse.models.DefaultPrincipalsModificationKin import com.azure.resourcemanager.synapse.models.TableLevelSharingProperties; import java.util.Arrays; -/** Samples for KustoPoolAttachedDatabaseConfigurations CreateOrUpdate. */ +/** + * Samples for KustoPoolAttachedDatabaseConfigurations CreateOrUpdate. + */ public final class KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolAttachedDatabaseConfigurationsCreateOrUpdate.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolAttachedDatabaseConfigurationsCreateOrUpdate.json */ /** * Sample code: KustoPoolAttachedDatabaseConfigurationsCreateOrUpdate. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolAttachedDatabaseConfigurationsCreateOrUpdate( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolAttachedDatabaseConfigurations() - .define("attachedDatabaseConfigurations1") - .withExistingKustoPool("kustorptest", "kustoclusterrptest4", "kustorptest") - .withRegion("westus") + manager.kustoPoolAttachedDatabaseConfigurations().define("attachedDatabaseConfigurations1") + .withExistingKustoPool("kustorptest", "kustoclusterrptest4", "kustorptest").withRegion("westus") .withDatabaseName("kustodatabase") .withKustoPoolResourceId( "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/Workspaces/kustorptest/KustoPools/kustoclusterrptest4") .withDefaultPrincipalsModificationKind(DefaultPrincipalsModificationKind.UNION) - .withTableLevelSharingProperties( - new TableLevelSharingProperties() - .withTablesToInclude(Arrays.asList("Table1")) - .withTablesToExclude(Arrays.asList("Table2")) - .withExternalTablesToInclude(Arrays.asList("ExternalTable1")) - .withExternalTablesToExclude(Arrays.asList("ExternalTable2")) - .withMaterializedViewsToInclude(Arrays.asList("MaterializedViewTable1")) - .withMaterializedViewsToExclude(Arrays.asList("MaterializedViewTable2"))) + .withTableLevelSharingProperties(new TableLevelSharingProperties() + .withTablesToInclude(Arrays.asList("Table1")).withTablesToExclude(Arrays.asList("Table2")) + .withExternalTablesToInclude(Arrays.asList("ExternalTable1")) + .withExternalTablesToExclude(Arrays.asList("ExternalTable2")) + .withMaterializedViewsToInclude(Arrays.asList("MaterializedViewTable1")) + .withMaterializedViewsToExclude(Arrays.asList("MaterializedViewTable2"))) .create(); } } @@ -1981,26 +1909,23 @@ public final class KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateSamples ### KustoPoolAttachedDatabaseConfigurations_Delete ```java -/** Samples for KustoPoolAttachedDatabaseConfigurations Delete. */ +/** + * Samples for KustoPoolAttachedDatabaseConfigurations Delete. + */ public final class KustoPoolAttachedDatabaseConfigurationsDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolAttachedDatabaseConfigurationsDelete.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolAttachedDatabaseConfigurationsDelete.json */ /** * Sample code: KustoPoolAttachedDatabaseConfigurationsDelete. - * + * * @param manager Entry point to SynapseManager. */ - public static void kustoPoolAttachedDatabaseConfigurationsDelete( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolAttachedDatabaseConfigurations() - .delete( - "kustorptest", - "kustoclusterrptest4", - "attachedDatabaseConfigurations1", - "kustorptest", - com.azure.core.util.Context.NONE); + public static void + kustoPoolAttachedDatabaseConfigurationsDelete(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.kustoPoolAttachedDatabaseConfigurations().delete("kustorptest", "kustoclusterrptest4", + "attachedDatabaseConfigurations1", "kustorptest", com.azure.core.util.Context.NONE); } } ``` @@ -2008,26 +1933,23 @@ public final class KustoPoolAttachedDatabaseConfigurationsDeleteSamples { ### KustoPoolAttachedDatabaseConfigurations_Get ```java -/** Samples for KustoPoolAttachedDatabaseConfigurations Get. */ +/** + * Samples for KustoPoolAttachedDatabaseConfigurations Get. + */ public final class KustoPoolAttachedDatabaseConfigurationsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolAttachedDatabaseConfigurationsGet.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolAttachedDatabaseConfigurationsGet.json */ /** * Sample code: KustoPoolAttachedDatabaseConfigurationsGet. - * + * * @param manager Entry point to SynapseManager. */ - public static void kustoPoolAttachedDatabaseConfigurationsGet( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolAttachedDatabaseConfigurations() - .getWithResponse( - "kustorptest", - "kustoclusterrptest4", - "attachedDatabaseConfigurations1", - "kustorptest", - com.azure.core.util.Context.NONE); + public static void + kustoPoolAttachedDatabaseConfigurationsGet(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.kustoPoolAttachedDatabaseConfigurations().getWithResponse("kustorptest", "kustoclusterrptest4", + "attachedDatabaseConfigurations1", "kustorptest", com.azure.core.util.Context.NONE); } } ``` @@ -2035,21 +1957,23 @@ public final class KustoPoolAttachedDatabaseConfigurationsGetSamples { ### KustoPoolAttachedDatabaseConfigurations_ListByKustoPool ```java -/** Samples for KustoPoolAttachedDatabaseConfigurations ListByKustoPool. */ +/** + * Samples for KustoPoolAttachedDatabaseConfigurations ListByKustoPool. + */ public final class KustoPoolAttachedDatabaseConfigurationsListByKustoPoolSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolAttachedDatabaseConfigurationsListByKustoPool.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolAttachedDatabaseConfigurationsListByKustoPool.json */ /** * Sample code: KustoPoolAttachedDatabaseConfigurationsListByKustoPool. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolAttachedDatabaseConfigurationsListByKustoPool( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolAttachedDatabaseConfigurations() - .listByKustoPool("kustorptest", "kustoclusterrptest4", "kustorptest", com.azure.core.util.Context.NONE); + manager.kustoPoolAttachedDatabaseConfigurations().listByKustoPool("kustorptest", "kustoclusterrptest4", + "kustorptest", com.azure.core.util.Context.NONE); } } ``` @@ -2060,50 +1984,43 @@ public final class KustoPoolAttachedDatabaseConfigurationsListByKustoPoolSamples import com.azure.resourcemanager.synapse.models.DatabaseCheckNameRequest; import com.azure.resourcemanager.synapse.models.Type; -/** Samples for KustoPoolChildResource CheckNameAvailability. */ +/** + * Samples for KustoPoolChildResource CheckNameAvailability. + */ public final class KustoPoolChildResourceCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolAttachedDatabaseConfigurationCheckNameAvailability.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolAttachedDatabaseConfigurationCheckNameAvailability.json */ /** * Sample code: KustoPoolAttachedDatabaseConfigurationCheckNameAvailability. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolAttachedDatabaseConfigurationCheckNameAvailability( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolChildResources() - .checkNameAvailabilityWithResponse( - "kustorptest", - "kustoclusterrptest4", - "kustorptest", - new DatabaseCheckNameRequest() - .withName("adc1") - .withType(Type.MICROSOFT_SYNAPSE_WORKSPACES_KUSTO_POOLS_ATTACHED_DATABASE_CONFIGURATIONS), - com.azure.core.util.Context.NONE); + manager.kustoPoolChildResources().checkNameAvailabilityWithResponse("kustorptest", "kustoclusterrptest4", + "kustorptest", + new DatabaseCheckNameRequest().withName("adc1") + .withType(Type.MICROSOFT_SYNAPSE_WORKSPACES_KUSTO_POOLS_ATTACHED_DATABASE_CONFIGURATIONS), + com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDatabasesCheckNameAvailability.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolDatabasesCheckNameAvailability.json */ /** * Sample code: KustoPoolDatabasesCheckNameAvailability. - * + * * @param manager Entry point to SynapseManager. */ - public static void kustoPoolDatabasesCheckNameAvailability( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolChildResources() - .checkNameAvailabilityWithResponse( - "synapseWorkspaceName", - "kustoclusterrptest4", - "kustorptest", - new DatabaseCheckNameRequest() - .withName("database1") - .withType(Type.MICROSOFT_SYNAPSE_WORKSPACES_KUSTO_POOLS_DATABASES), - com.azure.core.util.Context.NONE); + public static void + kustoPoolDatabasesCheckNameAvailability(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.kustoPoolChildResources().checkNameAvailabilityWithResponse( + "synapseWorkspaceName", "kustoclusterrptest4", "kustorptest", new DatabaseCheckNameRequest() + .withName("database1").withType(Type.MICROSOFT_SYNAPSE_WORKSPACES_KUSTO_POOLS_DATABASES), + com.azure.core.util.Context.NONE); } } ``` @@ -2113,27 +2030,24 @@ public final class KustoPoolChildResourceCheckNameAvailabilitySamples { ```java import com.azure.resourcemanager.synapse.models.DataConnectionCheckNameRequest; -/** Samples for KustoPoolDataConnections CheckNameAvailability. */ +/** + * Samples for KustoPoolDataConnections CheckNameAvailability. + */ public final class KustoPoolDataConnectionsCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDataConnectionsCheckNameAvailability.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolDataConnectionsCheckNameAvailability.json */ /** * Sample code: KustoPoolDataConnectionsCheckNameAvailability. - * + * * @param manager Entry point to SynapseManager. */ - public static void kustoPoolDataConnectionsCheckNameAvailability( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolDataConnections() - .checkNameAvailabilityWithResponse( - "kustorptest", - "synapseWorkspaceName", - "kustoclusterrptest4", - "Kustodatabase8", - new DataConnectionCheckNameRequest().withName("DataConnections8"), - com.azure.core.util.Context.NONE); + public static void + kustoPoolDataConnectionsCheckNameAvailability(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.kustoPoolDataConnections().checkNameAvailabilityWithResponse("kustorptest", "synapseWorkspaceName", + "kustoclusterrptest4", "Kustodatabase8", new DataConnectionCheckNameRequest().withName("DataConnections8"), + com.azure.core.util.Context.NONE); } } ``` @@ -2143,32 +2057,27 @@ public final class KustoPoolDataConnectionsCheckNameAvailabilitySamples { ```java import com.azure.resourcemanager.synapse.models.EventHubDataConnection; -/** Samples for KustoPoolDataConnections CreateOrUpdate. */ +/** + * Samples for KustoPoolDataConnections CreateOrUpdate. + */ public final class KustoPoolDataConnectionsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDataConnectionsCreateOrUpdate.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolDataConnectionsCreateOrUpdate.json */ /** * Sample code: KustoPoolDataConnectionsCreateOrUpdate.json. - * + * * @param manager Entry point to SynapseManager. */ - public static void kustoPoolDataConnectionsCreateOrUpdateJson( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolDataConnections() - .createOrUpdate( - "kustorptest", - "synapseWorkspaceName", - "kustoclusterrptest4", - "KustoDatabase8", - "DataConnections8", - new EventHubDataConnection() - .withLocation("westus") - .withEventHubResourceId( - "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1") - .withConsumerGroup("testConsumerGroup1"), - com.azure.core.util.Context.NONE); + public static void + kustoPoolDataConnectionsCreateOrUpdateJson(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.kustoPoolDataConnections().createOrUpdate("kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", + "KustoDatabase8", "DataConnections8", + new EventHubDataConnection().withLocation("westus").withEventHubResourceId( + "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1") + .withConsumerGroup("testConsumerGroup1"), + com.azure.core.util.Context.NONE); } } ``` @@ -2179,28 +2088,24 @@ public final class KustoPoolDataConnectionsCreateOrUpdateSamples { import com.azure.resourcemanager.synapse.fluent.models.DataConnectionValidationInner; import com.azure.resourcemanager.synapse.models.EventHubDataConnection; -/** Samples for KustoPoolDataConnections DataConnectionValidation. */ +/** + * Samples for KustoPoolDataConnections DataConnectionValidation. + */ public final class KustoPoolDataConnectionsDataConnectionValidationSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDataConnectionValidation.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolDataConnectionValidation.json */ /** * Sample code: KustoPoolDataConnectionValidation. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolDataConnectionValidation(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolDataConnections() - .dataConnectionValidation( - "kustorptest", - "kustorptest", - "kustoclusterrptest4", - "KustoDatabase8", - new DataConnectionValidationInner() - .withDataConnectionName("DataConnections8") - .withProperties(new EventHubDataConnection()), - com.azure.core.util.Context.NONE); + manager.kustoPoolDataConnections().dataConnectionValidation( + "kustorptest", "kustorptest", "kustoclusterrptest4", "KustoDatabase8", new DataConnectionValidationInner() + .withDataConnectionName("DataConnections8").withProperties(new EventHubDataConnection()), + com.azure.core.util.Context.NONE); } } ``` @@ -2208,26 +2113,22 @@ public final class KustoPoolDataConnectionsDataConnectionValidationSamples { ### KustoPoolDataConnections_Delete ```java -/** Samples for KustoPoolDataConnections Delete. */ +/** + * Samples for KustoPoolDataConnections Delete. + */ public final class KustoPoolDataConnectionsDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDataConnectionsDelete.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolDataConnectionsDelete.json */ /** * Sample code: KustoPoolDataConnectionsDelete. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolDataConnectionsDelete(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolDataConnections() - .delete( - "kustorptest", - "synapseWorkspaceName", - "kustoclusterrptest4", - "KustoDatabase8", - "kustoeventhubconnection1", - com.azure.core.util.Context.NONE); + manager.kustoPoolDataConnections().delete("kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", + "KustoDatabase8", "kustoeventhubconnection1", com.azure.core.util.Context.NONE); } } ``` @@ -2235,26 +2136,22 @@ public final class KustoPoolDataConnectionsDeleteSamples { ### KustoPoolDataConnections_Get ```java -/** Samples for KustoPoolDataConnections Get. */ +/** + * Samples for KustoPoolDataConnections Get. + */ public final class KustoPoolDataConnectionsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDataConnectionsGet.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolDataConnectionsGet.json */ /** * Sample code: KustoPoolDataConnectionsGet. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolDataConnectionsGet(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolDataConnections() - .getWithResponse( - "kustorptest", - "synapseWorkspaceName", - "kustoclusterrptest4", - "KustoDatabase8", - "DataConnections8", - com.azure.core.util.Context.NONE); + manager.kustoPoolDataConnections().getWithResponse("kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", + "KustoDatabase8", "DataConnections8", com.azure.core.util.Context.NONE); } } ``` @@ -2262,26 +2159,23 @@ public final class KustoPoolDataConnectionsGetSamples { ### KustoPoolDataConnections_ListByDatabase ```java -/** Samples for KustoPoolDataConnections ListByDatabase. */ +/** + * Samples for KustoPoolDataConnections ListByDatabase. + */ public final class KustoPoolDataConnectionsListByDatabaseSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDataConnectionsListByDatabase.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolDataConnectionsListByDatabase.json */ /** * Sample code: KustoPoolDataConnectionsListByDatabase. - * + * * @param manager Entry point to SynapseManager. */ - public static void kustoPoolDataConnectionsListByDatabase( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolDataConnections() - .listByDatabase( - "kustorptest", - "synapseWorkspaceName", - "kustoclusterrptest4", - "KustoDatabase8", - com.azure.core.util.Context.NONE); + public static void + kustoPoolDataConnectionsListByDatabase(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.kustoPoolDataConnections().listByDatabase("kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", + "KustoDatabase8", com.azure.core.util.Context.NONE); } } ``` @@ -2291,31 +2185,26 @@ public final class KustoPoolDataConnectionsListByDatabaseSamples { ```java import com.azure.resourcemanager.synapse.models.EventHubDataConnection; -/** Samples for KustoPoolDataConnections Update. */ +/** + * Samples for KustoPoolDataConnections Update. + */ public final class KustoPoolDataConnectionsUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDataConnectionsUpdate.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolDataConnectionsUpdate.json */ /** * Sample code: KustoPoolDataConnectionsUpdate. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolDataConnectionsUpdate(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolDataConnections() - .update( - "kustorptest", - "synapseWorkspaceName", - "kustoclusterrptest4", - "KustoDatabase8", - "DataConnections8", - new EventHubDataConnection() - .withLocation("westus") - .withEventHubResourceId( - "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1") - .withConsumerGroup("testConsumerGroup1"), - com.azure.core.util.Context.NONE); + manager.kustoPoolDataConnections().update("kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", + "KustoDatabase8", "DataConnections8", + new EventHubDataConnection().withLocation("westus").withEventHubResourceId( + "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1") + .withConsumerGroup("testConsumerGroup1"), + com.azure.core.util.Context.NONE); } } ``` @@ -2325,27 +2214,25 @@ public final class KustoPoolDataConnectionsUpdateSamples { ```java import com.azure.resourcemanager.synapse.models.DatabasePrincipalAssignmentCheckNameRequest; -/** Samples for KustoPoolDatabasePrincipalAssignments CheckNameAvailability. */ +/** + * Samples for KustoPoolDatabasePrincipalAssignments CheckNameAvailability. + */ public final class KustoPoolDatabasePrincipalAssignmentsCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDatabasePrincipalAssignmentsCheckNameAvailability.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolDatabasePrincipalAssignmentsCheckNameAvailability.json */ /** * Sample code: KustoPoolDatabasePrincipalAssignmentsCheckNameAvailability. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolDatabasePrincipalAssignmentsCheckNameAvailability( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolDatabasePrincipalAssignments() - .checkNameAvailabilityWithResponse( - "synapseWorkspaceName", - "kustoclusterrptest4", - "Kustodatabase8", - "kustorptest", - new DatabasePrincipalAssignmentCheckNameRequest().withName("kustoprincipal1"), - com.azure.core.util.Context.NONE); + manager.kustoPoolDatabasePrincipalAssignments().checkNameAvailabilityWithResponse("synapseWorkspaceName", + "kustoclusterrptest4", "Kustodatabase8", "kustorptest", + new DatabasePrincipalAssignmentCheckNameRequest().withName("kustoprincipal1"), + com.azure.core.util.Context.NONE); } } ``` @@ -2356,27 +2243,25 @@ public final class KustoPoolDatabasePrincipalAssignmentsCheckNameAvailabilitySam import com.azure.resourcemanager.synapse.models.DatabasePrincipalRole; import com.azure.resourcemanager.synapse.models.PrincipalType; -/** Samples for KustoPoolDatabasePrincipalAssignments CreateOrUpdate. */ +/** + * Samples for KustoPoolDatabasePrincipalAssignments CreateOrUpdate. + */ public final class KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDatabasePrincipalAssignmentsCreateOrUpdate.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolDatabasePrincipalAssignmentsCreateOrUpdate.json */ /** * Sample code: KustoPoolDatabasePrincipalAssignmentsCreateOrUpdate. - * + * * @param manager Entry point to SynapseManager. */ - public static void kustoPoolDatabasePrincipalAssignmentsCreateOrUpdate( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolDatabasePrincipalAssignments() - .define("kustoprincipal1") + public static void + kustoPoolDatabasePrincipalAssignmentsCreateOrUpdate(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.kustoPoolDatabasePrincipalAssignments().define("kustoprincipal1") .withExistingDatabase("synapseWorkspaceName", "kustoclusterrptest4", "Kustodatabase8", "kustorptest") - .withPrincipalId("87654321-1234-1234-1234-123456789123") - .withRole(DatabasePrincipalRole.ADMIN) - .withTenantId("12345678-1234-1234-1234-123456789123") - .withPrincipalType(PrincipalType.APP) - .create(); + .withPrincipalId("87654321-1234-1234-1234-123456789123").withRole(DatabasePrincipalRole.ADMIN) + .withTenantId("12345678-1234-1234-1234-123456789123").withPrincipalType(PrincipalType.APP).create(); } } ``` @@ -2384,27 +2269,23 @@ public final class KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateSamples { ### KustoPoolDatabasePrincipalAssignments_Delete ```java -/** Samples for KustoPoolDatabasePrincipalAssignments Delete. */ +/** + * Samples for KustoPoolDatabasePrincipalAssignments Delete. + */ public final class KustoPoolDatabasePrincipalAssignmentsDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDatabasePrincipalAssignmentsDelete.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolDatabasePrincipalAssignmentsDelete.json */ /** * Sample code: KustoPoolDatabasePrincipalAssignmentsDelete. - * + * * @param manager Entry point to SynapseManager. */ - public static void kustoPoolDatabasePrincipalAssignmentsDelete( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolDatabasePrincipalAssignments() - .delete( - "synapseWorkspaceName", - "kustoclusterrptest4", - "Kustodatabase8", - "kustoprincipal1", - "kustorptest", - com.azure.core.util.Context.NONE); + public static void + kustoPoolDatabasePrincipalAssignmentsDelete(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.kustoPoolDatabasePrincipalAssignments().delete("synapseWorkspaceName", "kustoclusterrptest4", + "Kustodatabase8", "kustoprincipal1", "kustorptest", com.azure.core.util.Context.NONE); } } ``` @@ -2412,27 +2293,23 @@ public final class KustoPoolDatabasePrincipalAssignmentsDeleteSamples { ### KustoPoolDatabasePrincipalAssignments_Get ```java -/** Samples for KustoPoolDatabasePrincipalAssignments Get. */ +/** + * Samples for KustoPoolDatabasePrincipalAssignments Get. + */ public final class KustoPoolDatabasePrincipalAssignmentsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDatabasePrincipalAssignmentsGet.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolDatabasePrincipalAssignmentsGet.json */ /** * Sample code: KustoPoolDatabasePrincipalAssignmentsGet. - * + * * @param manager Entry point to SynapseManager. */ - public static void kustoPoolDatabasePrincipalAssignmentsGet( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolDatabasePrincipalAssignments() - .getWithResponse( - "synapseWorkspaceName", - "kustoclusterrptest4", - "Kustodatabase8", - "kustoprincipal1", - "kustorptest", - com.azure.core.util.Context.NONE); + public static void + kustoPoolDatabasePrincipalAssignmentsGet(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.kustoPoolDatabasePrincipalAssignments().getWithResponse("synapseWorkspaceName", "kustoclusterrptest4", + "Kustodatabase8", "kustoprincipal1", "kustorptest", com.azure.core.util.Context.NONE); } } ``` @@ -2440,26 +2317,23 @@ public final class KustoPoolDatabasePrincipalAssignmentsGetSamples { ### KustoPoolDatabasePrincipalAssignments_List ```java -/** Samples for KustoPoolDatabasePrincipalAssignments List. */ +/** + * Samples for KustoPoolDatabasePrincipalAssignments List. + */ public final class KustoPoolDatabasePrincipalAssignmentsListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDatabasePrincipalAssignmentsList.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolDatabasePrincipalAssignmentsList.json */ /** * Sample code: KustoPoolDatabasePrincipalAssignmentsList. - * + * * @param manager Entry point to SynapseManager. */ - public static void kustoPoolDatabasePrincipalAssignmentsList( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolDatabasePrincipalAssignments() - .list( - "synapseWorkspaceName", - "kustoclusterrptest4", - "Kustodatabase8", - "kustorptest", - com.azure.core.util.Context.NONE); + public static void + kustoPoolDatabasePrincipalAssignmentsList(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.kustoPoolDatabasePrincipalAssignments().list("synapseWorkspaceName", "kustoclusterrptest4", + "Kustodatabase8", "kustorptest", com.azure.core.util.Context.NONE); } } ``` @@ -2470,26 +2344,24 @@ public final class KustoPoolDatabasePrincipalAssignmentsListSamples { import com.azure.resourcemanager.synapse.models.ReadWriteDatabase; import java.time.Duration; -/** Samples for KustoPoolDatabases CreateOrUpdate. */ +/** + * Samples for KustoPoolDatabases CreateOrUpdate. + */ public final class KustoPoolDatabasesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDatabasesCreateOrUpdate.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolDatabasesCreateOrUpdate.json */ /** * Sample code: KustoPoolDatabasesCreateOrUpdate. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolDatabasesCreateOrUpdate(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolDatabases() - .createOrUpdate( - "kustorptest", - "synapseWorkspaceName", - "kustoclusterrptest4", - "KustoDatabase8", - new ReadWriteDatabase().withLocation("westus").withSoftDeletePeriod(Duration.parse("P1D")), - com.azure.core.util.Context.NONE); + manager.kustoPoolDatabases().createOrUpdate("kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", + "KustoDatabase8", + new ReadWriteDatabase().withLocation("westus").withSoftDeletePeriod(Duration.parse("P1D")), + com.azure.core.util.Context.NONE); } } ``` @@ -2497,25 +2369,22 @@ public final class KustoPoolDatabasesCreateOrUpdateSamples { ### KustoPoolDatabases_Delete ```java -/** Samples for KustoPoolDatabases Delete. */ +/** + * Samples for KustoPoolDatabases Delete. + */ public final class KustoPoolDatabasesDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDatabasesDelete.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolDatabasesDelete.json */ /** * Sample code: KustoPoolDatabasesDelete. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolDatabasesDelete(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolDatabases() - .delete( - "kustorptest", - "synapseWorkspaceName", - "kustoclusterrptest4", - "KustoDatabase8", - com.azure.core.util.Context.NONE); + manager.kustoPoolDatabases().delete("kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", + "KustoDatabase8", com.azure.core.util.Context.NONE); } } ``` @@ -2523,25 +2392,22 @@ public final class KustoPoolDatabasesDeleteSamples { ### KustoPoolDatabases_Get ```java -/** Samples for KustoPoolDatabases Get. */ +/** + * Samples for KustoPoolDatabases Get. + */ public final class KustoPoolDatabasesGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDatabasesGet.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolDatabasesGet.json */ /** * Sample code: KustoPoolDatabasesGet. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolDatabasesGet(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolDatabases() - .getWithResponse( - "kustorptest", - "synapseWorkspaceName", - "kustoclusterrptest4", - "KustoDatabase8", - com.azure.core.util.Context.NONE); + manager.kustoPoolDatabases().getWithResponse("kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", + "KustoDatabase8", com.azure.core.util.Context.NONE); } } ``` @@ -2549,21 +2415,22 @@ public final class KustoPoolDatabasesGetSamples { ### KustoPoolDatabases_ListByKustoPool ```java -/** Samples for KustoPoolDatabases ListByKustoPool. */ +/** + * Samples for KustoPoolDatabases ListByKustoPool. + */ public final class KustoPoolDatabasesListByKustoPoolSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoDatabasesListByKustoPool.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoDatabasesListByKustoPool.json */ /** * Sample code: KustoDatabasesListByKustoPool. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoDatabasesListByKustoPool(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolDatabases() - .listByKustoPool( - "kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", com.azure.core.util.Context.NONE); + manager.kustoPoolDatabases().listByKustoPool("kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", + com.azure.core.util.Context.NONE); } } ``` @@ -2574,26 +2441,23 @@ public final class KustoPoolDatabasesListByKustoPoolSamples { import com.azure.resourcemanager.synapse.models.ReadWriteDatabase; import java.time.Duration; -/** Samples for KustoPoolDatabases Update. */ +/** + * Samples for KustoPoolDatabases Update. + */ public final class KustoPoolDatabasesUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDatabasesUpdate.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolDatabasesUpdate.json */ /** * Sample code: KustoPoolDatabasesUpdate. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolDatabasesUpdate(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolDatabases() - .update( - "kustorptest", - "synapseWorkspaceName", - "kustoclusterrptest4", - "KustoDatabase8", - new ReadWriteDatabase().withSoftDeletePeriod(Duration.parse("P1D")), - com.azure.core.util.Context.NONE); + manager.kustoPoolDatabases().update("kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", + "KustoDatabase8", new ReadWriteDatabase().withSoftDeletePeriod(Duration.parse("P1D")), + com.azure.core.util.Context.NONE); } } ``` @@ -2603,26 +2467,25 @@ public final class KustoPoolDatabasesUpdateSamples { ```java import com.azure.resourcemanager.synapse.models.ClusterPrincipalAssignmentCheckNameRequest; -/** Samples for KustoPoolPrincipalAssignments CheckNameAvailability. */ +/** + * Samples for KustoPoolPrincipalAssignments CheckNameAvailability. + */ public final class KustoPoolPrincipalAssignmentsCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolPrincipalAssignmentsCheckNameAvailability.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolPrincipalAssignmentsCheckNameAvailability.json */ /** * Sample code: KustoPoolPrincipalAssignmentsCheckNameAvailability. - * + * * @param manager Entry point to SynapseManager. */ - public static void kustoPoolPrincipalAssignmentsCheckNameAvailability( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolPrincipalAssignments() - .checkNameAvailabilityWithResponse( - "synapseWorkspaceName", - "kustoclusterrptest4", - "kustorptest", - new ClusterPrincipalAssignmentCheckNameRequest().withName("kustoprincipal1"), - com.azure.core.util.Context.NONE); + public static void + kustoPoolPrincipalAssignmentsCheckNameAvailability(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.kustoPoolPrincipalAssignments().checkNameAvailabilityWithResponse("synapseWorkspaceName", + "kustoclusterrptest4", "kustorptest", + new ClusterPrincipalAssignmentCheckNameRequest().withName("kustoprincipal1"), + com.azure.core.util.Context.NONE); } } ``` @@ -2633,27 +2496,25 @@ public final class KustoPoolPrincipalAssignmentsCheckNameAvailabilitySamples { import com.azure.resourcemanager.synapse.models.ClusterPrincipalRole; import com.azure.resourcemanager.synapse.models.PrincipalType; -/** Samples for KustoPoolPrincipalAssignments CreateOrUpdate. */ +/** + * Samples for KustoPoolPrincipalAssignments CreateOrUpdate. + */ public final class KustoPoolPrincipalAssignmentsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolPrincipalAssignmentsCreateOrUpdate.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolPrincipalAssignmentsCreateOrUpdate.json */ /** * Sample code: KustoPoolPrincipalAssignmentsCreateOrUpdate. - * + * * @param manager Entry point to SynapseManager. */ - public static void kustoPoolPrincipalAssignmentsCreateOrUpdate( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolPrincipalAssignments() - .define("kustoprincipal1") + public static void + kustoPoolPrincipalAssignmentsCreateOrUpdate(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.kustoPoolPrincipalAssignments().define("kustoprincipal1") .withExistingKustoPool("synapseWorkspaceName", "kustoclusterrptest4", "kustorptest") - .withPrincipalId("87654321-1234-1234-1234-123456789123") - .withRole(ClusterPrincipalRole.ALL_DATABASES_ADMIN) - .withTenantId("12345678-1234-1234-1234-123456789123") - .withPrincipalType(PrincipalType.APP) - .create(); + .withPrincipalId("87654321-1234-1234-1234-123456789123").withRole(ClusterPrincipalRole.ALL_DATABASES_ADMIN) + .withTenantId("12345678-1234-1234-1234-123456789123").withPrincipalType(PrincipalType.APP).create(); } } ``` @@ -2661,25 +2522,22 @@ public final class KustoPoolPrincipalAssignmentsCreateOrUpdateSamples { ### KustoPoolPrincipalAssignments_Delete ```java -/** Samples for KustoPoolPrincipalAssignments Delete. */ +/** + * Samples for KustoPoolPrincipalAssignments Delete. + */ public final class KustoPoolPrincipalAssignmentsDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolPrincipalAssignmentsDelete.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolPrincipalAssignmentsDelete.json */ /** * Sample code: KustoPoolPrincipalAssignmentsDelete. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolPrincipalAssignmentsDelete(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolPrincipalAssignments() - .delete( - "synapseWorkspaceName", - "kustoclusterrptest4", - "kustoprincipal1", - "kustorptest", - com.azure.core.util.Context.NONE); + manager.kustoPoolPrincipalAssignments().delete("synapseWorkspaceName", "kustoclusterrptest4", "kustoprincipal1", + "kustorptest", com.azure.core.util.Context.NONE); } } ``` @@ -2687,25 +2545,22 @@ public final class KustoPoolPrincipalAssignmentsDeleteSamples { ### KustoPoolPrincipalAssignments_Get ```java -/** Samples for KustoPoolPrincipalAssignments Get. */ +/** + * Samples for KustoPoolPrincipalAssignments Get. + */ public final class KustoPoolPrincipalAssignmentsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolPrincipalAssignmentsGet.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolPrincipalAssignmentsGet.json */ /** * Sample code: KustoPoolPrincipalAssignmentsGet. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolPrincipalAssignmentsGet(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolPrincipalAssignments() - .getWithResponse( - "synapseWorkspaceName", - "kustoclusterrptest4", - "kustoprincipal1", - "kustorptest", - com.azure.core.util.Context.NONE); + manager.kustoPoolPrincipalAssignments().getWithResponse("synapseWorkspaceName", "kustoclusterrptest4", + "kustoprincipal1", "kustorptest", com.azure.core.util.Context.NONE); } } ``` @@ -2713,20 +2568,22 @@ public final class KustoPoolPrincipalAssignmentsGetSamples { ### KustoPoolPrincipalAssignments_List ```java -/** Samples for KustoPoolPrincipalAssignments List. */ +/** + * Samples for KustoPoolPrincipalAssignments List. + */ public final class KustoPoolPrincipalAssignmentsListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolPrincipalAssignmentsList.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolPrincipalAssignmentsList.json */ /** * Sample code: KustoPoolPrincipalAssignmentsList. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolPrincipalAssignmentsList(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolPrincipalAssignments() - .list("synapseWorkspaceName", "kustoclusterrptest4", "kustorptest", com.azure.core.util.Context.NONE); + manager.kustoPoolPrincipalAssignments().list("synapseWorkspaceName", "kustoclusterrptest4", "kustorptest", + com.azure.core.util.Context.NONE); } } ``` @@ -2734,20 +2591,22 @@ public final class KustoPoolPrincipalAssignmentsListSamples { ### KustoPoolPrivateLinkResourcesOperation_List ```java -/** Samples for KustoPoolPrivateLinkResourcesOperation List. */ +/** + * Samples for KustoPoolPrivateLinkResourcesOperation List. + */ public final class KustoPoolPrivateLinkResourcesOperationListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolPrivateLinkResourcesList.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolPrivateLinkResourcesList.json */ /** * Sample code: KustoPoolPrivateLinkResourcesList. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolPrivateLinkResourcesList(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolPrivateLinkResourcesOperations() - .list("DP-900", "synapse-ws-ebi-data", "dataexplorerpool900", com.azure.core.util.Context.NONE); + manager.kustoPoolPrivateLinkResourcesOperations().list("DP-900", "synapse-ws-ebi-data", "dataexplorerpool900", + com.azure.core.util.Context.NONE); } } ``` @@ -2760,30 +2619,25 @@ import com.azure.resourcemanager.synapse.models.LanguageExtensionName; import com.azure.resourcemanager.synapse.models.LanguageExtensionsList; import java.util.Arrays; -/** Samples for KustoPools AddLanguageExtensions. */ +/** + * Samples for KustoPools AddLanguageExtensions. + */ public final class KustoPoolsAddLanguageExtensionsSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolLanguageExtensionsAdd.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolLanguageExtensionsAdd.json */ /** * Sample code: KustoPoolAddLanguageExtensions. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolAddLanguageExtensions(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPools() - .addLanguageExtensions( - "kustorptest", - "kustoclusterrptest4", - "kustorptest", - new LanguageExtensionsList() - .withValue( - Arrays - .asList( - new LanguageExtensionInner().withLanguageExtensionName(LanguageExtensionName.PYTHON), - new LanguageExtensionInner().withLanguageExtensionName(LanguageExtensionName.R))), - com.azure.core.util.Context.NONE); + manager.kustoPools().addLanguageExtensions("kustorptest", "kustoclusterrptest4", "kustorptest", + new LanguageExtensionsList().withValue( + Arrays.asList(new LanguageExtensionInner().withLanguageExtensionName(LanguageExtensionName.PYTHON), + new LanguageExtensionInner().withLanguageExtensionName(LanguageExtensionName.R))), + com.azure.core.util.Context.NONE); } } ``` @@ -2793,23 +2647,22 @@ public final class KustoPoolsAddLanguageExtensionsSamples { ```java import com.azure.resourcemanager.synapse.models.KustoPoolCheckNameRequest; -/** Samples for KustoPools CheckNameAvailability. */ +/** + * Samples for KustoPools CheckNameAvailability. + */ public final class KustoPoolsCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsCheckNameAvailability.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolsCheckNameAvailability.json */ /** * Sample code: KustoPoolsCheckNameAvailability. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolsCheckNameAvailability(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPools() - .checkNameAvailabilityWithResponse( - "westus", - new KustoPoolCheckNameRequest().withName("kustoclusterrptest4"), - com.azure.core.util.Context.NONE); + manager.kustoPools().checkNameAvailabilityWithResponse("westus", + new KustoPoolCheckNameRequest().withName("kustoclusterrptest4"), com.azure.core.util.Context.NONE); } } ``` @@ -2821,26 +2674,24 @@ import com.azure.resourcemanager.synapse.models.AzureSku; import com.azure.resourcemanager.synapse.models.SkuName; import com.azure.resourcemanager.synapse.models.SkuSize; -/** Samples for KustoPools CreateOrUpdate. */ +/** + * Samples for KustoPools CreateOrUpdate. + */ public final class KustoPoolsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsCreateOrUpdate.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolsCreateOrUpdate.json */ /** * Sample code: kustoPoolsCreateOrUpdate. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolsCreateOrUpdate(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPools() - .define("kustoclusterrptest4") - .withRegion("westus") + manager.kustoPools().define("kustoclusterrptest4").withRegion("westus") .withExistingWorkspace("synapseWorkspaceName", "kustorptest") .withSku(new AzureSku().withName(SkuName.STORAGE_OPTIMIZED).withCapacity(2).withSize(SkuSize.MEDIUM)) - .withEnableStreamingIngest(true) - .withEnablePurge(true) - .withWorkspaceUid("11111111-2222-3333-444444444444") + .withEnableStreamingIngest(true).withEnablePurge(true).withWorkspaceUid("11111111-2222-3333-444444444444") .create(); } } @@ -2849,20 +2700,23 @@ public final class KustoPoolsCreateOrUpdateSamples { ### KustoPools_Delete ```java -/** Samples for KustoPools Delete. */ +/** + * Samples for KustoPools Delete. + */ public final class KustoPoolsDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsDelete.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsDelete. + * json */ /** * Sample code: kustoPoolsDelete. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolsDelete(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPools() - .delete("kustorptest", "kustorptest", "kustoclusterrptest4", com.azure.core.util.Context.NONE); + manager.kustoPools().delete("kustorptest", "kustorptest", "kustoclusterrptest4", + com.azure.core.util.Context.NONE); } } ``` @@ -2872,28 +2726,25 @@ public final class KustoPoolsDeleteSamples { ```java import com.azure.resourcemanager.synapse.fluent.models.FollowerDatabaseDefinitionInner; -/** Samples for KustoPools DetachFollowerDatabases. */ +/** + * Samples for KustoPools DetachFollowerDatabases. + */ public final class KustoPoolsDetachFollowerDatabasesSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolFollowerDatabasesDetach.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolFollowerDatabasesDetach.json */ /** * Sample code: KustoPoolDetachFollowerDatabases. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolDetachFollowerDatabases(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPools() - .detachFollowerDatabases( - "kustorptest", - "kustoclusterrptest4", - "kustorptest", - new FollowerDatabaseDefinitionInner() - .withKustoPoolResourceId( - "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/kustorptest/kustoPools/leader4") - .withAttachedDatabaseConfigurationName("myAttachedDatabaseConfiguration"), - com.azure.core.util.Context.NONE); + manager.kustoPools().detachFollowerDatabases("kustorptest", "kustoclusterrptest4", "kustorptest", + new FollowerDatabaseDefinitionInner().withKustoPoolResourceId( + "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/kustorptest/kustoPools/leader4") + .withAttachedDatabaseConfigurationName("myAttachedDatabaseConfiguration"), + com.azure.core.util.Context.NONE); } } ``` @@ -2901,21 +2752,22 @@ public final class KustoPoolsDetachFollowerDatabasesSamples { ### KustoPools_Get ```java -/** Samples for KustoPools Get. */ +/** + * Samples for KustoPools Get. + */ public final class KustoPoolsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsGet.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsGet.json */ /** * Sample code: kustoPoolsGet. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolsGet(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPools() - .getWithResponse( - "synapseWorkspaceName", "kustoclusterrptest4", "kustorptest", com.azure.core.util.Context.NONE); + manager.kustoPools().getWithResponse("synapseWorkspaceName", "kustoclusterrptest4", "kustorptest", + com.azure.core.util.Context.NONE); } } ``` @@ -2923,14 +2775,18 @@ public final class KustoPoolsGetSamples { ### KustoPools_List ```java -/** Samples for KustoPools List. */ +/** + * Samples for KustoPools List. + */ public final class KustoPoolsListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsListSkus.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsListSkus. + * json */ /** * Sample code: KustoPoolsListSkus. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolsListSkus(com.azure.resourcemanager.synapse.SynapseManager manager) { @@ -2942,20 +2798,22 @@ public final class KustoPoolsListSamples { ### KustoPools_ListByWorkspace ```java -/** Samples for KustoPools ListByWorkspace. */ +/** + * Samples for KustoPools ListByWorkspace. + */ public final class KustoPoolsListByWorkspaceSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsListByWorkspace.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolsListByWorkspace.json */ /** * Sample code: List Kusto pools in a workspace. - * + * * @param manager Entry point to SynapseManager. */ public static void listKustoPoolsInAWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPools() - .listByWorkspaceWithResponse("kustorptest", "kustorptest", com.azure.core.util.Context.NONE); + manager.kustoPools().listByWorkspaceWithResponse("kustorptest", "kustorptest", + com.azure.core.util.Context.NONE); } } ``` @@ -2963,21 +2821,22 @@ public final class KustoPoolsListByWorkspaceSamples { ### KustoPools_ListFollowerDatabases ```java -/** Samples for KustoPools ListFollowerDatabases. */ +/** + * Samples for KustoPools ListFollowerDatabases. + */ public final class KustoPoolsListFollowerDatabasesSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolFollowerDatabasesList.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolFollowerDatabasesList.json */ /** * Sample code: KustoPoolListFollowerDatabases. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolListFollowerDatabases(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPools() - .listFollowerDatabases( - "kustorptest", "kustoclusterrptest4", "kustorptest", com.azure.core.util.Context.NONE); + manager.kustoPools().listFollowerDatabases("kustorptest", "kustoclusterrptest4", "kustorptest", + com.azure.core.util.Context.NONE); } } ``` @@ -2985,21 +2844,22 @@ public final class KustoPoolsListFollowerDatabasesSamples { ### KustoPools_ListLanguageExtensions ```java -/** Samples for KustoPools ListLanguageExtensions. */ +/** + * Samples for KustoPools ListLanguageExtensions. + */ public final class KustoPoolsListLanguageExtensionsSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolLanguageExtensionsList.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolLanguageExtensionsList.json */ /** * Sample code: KustoPoolListLanguageExtensions. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolListLanguageExtensions(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPools() - .listLanguageExtensions( - "kustorptest", "kustoclusterrptest4", "kustorptest", com.azure.core.util.Context.NONE); + manager.kustoPools().listLanguageExtensions("kustorptest", "kustoclusterrptest4", "kustorptest", + com.azure.core.util.Context.NONE); } } ``` @@ -3007,21 +2867,22 @@ public final class KustoPoolsListLanguageExtensionsSamples { ### KustoPools_ListSkusByResource ```java -/** Samples for KustoPools ListSkusByResource. */ +/** + * Samples for KustoPools ListSkusByResource. + */ public final class KustoPoolsListSkusByResourceSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsListResourceSkus.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolsListResourceSkus.json */ /** * Sample code: KustoPoolsListResourceSkus. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolsListResourceSkus(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPools() - .listSkusByResource( - "synapseWorkspaceName", "kustoclusterrptest4", "kustorptest", com.azure.core.util.Context.NONE); + manager.kustoPools().listSkusByResource("synapseWorkspaceName", "kustoclusterrptest4", "kustorptest", + com.azure.core.util.Context.NONE); } } ``` @@ -3034,30 +2895,25 @@ import com.azure.resourcemanager.synapse.models.LanguageExtensionName; import com.azure.resourcemanager.synapse.models.LanguageExtensionsList; import java.util.Arrays; -/** Samples for KustoPools RemoveLanguageExtensions. */ +/** + * Samples for KustoPools RemoveLanguageExtensions. + */ public final class KustoPoolsRemoveLanguageExtensionsSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolLanguageExtensionsRemove.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolLanguageExtensionsRemove.json */ /** * Sample code: KustoPoolRemoveLanguageExtensions. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolRemoveLanguageExtensions(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPools() - .removeLanguageExtensions( - "kustorptest", - "kustoclusterrptest4", - "kustorptest", - new LanguageExtensionsList() - .withValue( - Arrays - .asList( - new LanguageExtensionInner().withLanguageExtensionName(LanguageExtensionName.PYTHON), - new LanguageExtensionInner().withLanguageExtensionName(LanguageExtensionName.R))), - com.azure.core.util.Context.NONE); + manager.kustoPools().removeLanguageExtensions("kustorptest", "kustoclusterrptest4", "kustorptest", + new LanguageExtensionsList().withValue( + Arrays.asList(new LanguageExtensionInner().withLanguageExtensionName(LanguageExtensionName.PYTHON), + new LanguageExtensionInner().withLanguageExtensionName(LanguageExtensionName.R))), + com.azure.core.util.Context.NONE); } } ``` @@ -3065,20 +2921,22 @@ public final class KustoPoolsRemoveLanguageExtensionsSamples { ### KustoPools_Start ```java -/** Samples for KustoPools Start. */ +/** + * Samples for KustoPools Start. + */ public final class KustoPoolsStartSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsStart.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsStart.json */ /** * Sample code: kustoPoolsStop. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolsStop(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPools() - .start("kustorptest", "kustoclusterrptest4", "kustorptest", com.azure.core.util.Context.NONE); + manager.kustoPools().start("kustorptest", "kustoclusterrptest4", "kustorptest", + com.azure.core.util.Context.NONE); } } ``` @@ -3086,20 +2944,22 @@ public final class KustoPoolsStartSamples { ### KustoPools_Stop ```java -/** Samples for KustoPools Stop. */ +/** + * Samples for KustoPools Stop. + */ public final class KustoPoolsStopSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsStop.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsStop.json */ /** * Sample code: kustoPoolsStop. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolsStop(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPools() - .stop("kustorptest", "kustoclusterrptest4", "kustorptest", com.azure.core.util.Context.NONE); + manager.kustoPools().stop("kustorptest", "kustoclusterrptest4", "kustorptest", + com.azure.core.util.Context.NONE); } } ``` @@ -3112,29 +2972,26 @@ import com.azure.resourcemanager.synapse.models.KustoPool; import com.azure.resourcemanager.synapse.models.SkuName; import com.azure.resourcemanager.synapse.models.SkuSize; -/** Samples for KustoPools Update. */ +/** + * Samples for KustoPools Update. + */ public final class KustoPoolsUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsUpdate.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsUpdate. + * json */ /** * Sample code: kustoPoolsUpdate. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolsUpdate(com.azure.resourcemanager.synapse.SynapseManager manager) { - KustoPool resource = - manager - .kustoPools() - .getWithResponse( - "synapseWorkspaceName", "kustoclusterrptest4", "kustorptest", com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() + KustoPool resource = manager.kustoPools().getWithResponse("synapseWorkspaceName", "kustoclusterrptest4", + "kustorptest", com.azure.core.util.Context.NONE).getValue(); + resource.update() .withSku(new AzureSku().withName(SkuName.STORAGE_OPTIMIZED).withCapacity(2).withSize(SkuSize.MEDIUM)) - .withEnableStreamingIngest(true) - .withEnablePurge(true) - .apply(); + .withEnableStreamingIngest(true).withEnablePurge(true).apply(); } } ``` @@ -3142,20 +2999,22 @@ public final class KustoPoolsUpdateSamples { ### LibrariesOperation_ListByWorkspace ```java -/** Samples for LibrariesOperation ListByWorkspace. */ +/** + * Samples for LibrariesOperation ListByWorkspace. + */ public final class LibrariesOperationListByWorkspaceSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/Libraries_ListByWorkspace.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * Libraries_ListByWorkspace.json */ /** * Sample code: List libraries in a workspace. - * + * * @param manager Entry point to SynapseManager. */ public static void listLibrariesInAWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .librariesOperations() - .listByWorkspace("exampleResourceGroup", "exampleWorkspace", com.azure.core.util.Context.NONE); + manager.librariesOperations().listByWorkspace("exampleResourceGroup", "exampleWorkspace", + com.azure.core.util.Context.NONE); } } ``` @@ -3163,21 +3022,22 @@ public final class LibrariesOperationListByWorkspaceSamples { ### Library_Get ```java -/** Samples for Library Get. */ +/** + * Samples for Library Get. + */ public final class LibraryGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/Library_Get.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/Library_Get.json */ /** * Sample code: Get Library by name. - * + * * @param manager Entry point to SynapseManager. */ public static void getLibraryByName(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .libraries() - .getWithResponse( - "exampleResourceGroup", "exampleLibraryName.jar", "exampleWorkspace", com.azure.core.util.Context.NONE); + manager.libraries().getWithResponse("exampleResourceGroup", "exampleLibraryName.jar", "exampleWorkspace", + com.azure.core.util.Context.NONE); } } ``` @@ -3187,41 +3047,39 @@ public final class LibraryGetSamples { ```java import com.azure.resourcemanager.synapse.models.CheckNameAvailabilityRequest; -/** Samples for Operations CheckNameAvailability. */ +/** + * Samples for Operations CheckNameAvailability. + */ public final class OperationsCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CheckNameAvailabilityWorkspaceAlreadyExists.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CheckNameAvailabilityWorkspaceAlreadyExists.json */ /** * Sample code: Check for a workspace name that already exists. - * + * * @param manager Entry point to SynapseManager. */ - public static void checkForAWorkspaceNameThatAlreadyExists( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .operations() - .checkNameAvailabilityWithResponse( - new CheckNameAvailabilityRequest().withName("workspace1").withType("Microsoft.Synapse/workspaces"), - com.azure.core.util.Context.NONE); + public static void + checkForAWorkspaceNameThatAlreadyExists(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.operations().checkNameAvailabilityWithResponse( + new CheckNameAvailabilityRequest().withName("workspace1").withType("Microsoft.Synapse/workspaces"), + com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CheckNameAvailabilityWorkspaceAvailable.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CheckNameAvailabilityWorkspaceAvailable.json */ /** * Sample code: Check for a workspace name that is available. - * + * * @param manager Entry point to SynapseManager. */ public static void checkForAWorkspaceNameThatIsAvailable(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .operations() - .checkNameAvailabilityWithResponse( - new CheckNameAvailabilityRequest() - .withName("workspace1") - .withType("Microsoft.ProjectArcadia/workspaces"), - com.azure.core.util.Context.NONE); + manager.operations().checkNameAvailabilityWithResponse( + new CheckNameAvailabilityRequest().withName("workspace1").withType("Microsoft.ProjectArcadia/workspaces"), + com.azure.core.util.Context.NONE); } } ``` @@ -3229,24 +3087,23 @@ public final class OperationsCheckNameAvailabilitySamples { ### Operations_GetAzureAsyncHeaderResult ```java -/** Samples for Operations GetAzureAsyncHeaderResult. */ +/** + * Samples for Operations GetAzureAsyncHeaderResult. + */ public final class OperationsGetAzureAsyncHeaderResultSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetAzureAsyncOperationHeader.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetAzureAsyncOperationHeader. + * json */ /** * Sample code: Get azure async operation header result. - * + * * @param manager Entry point to SynapseManager. */ public static void getAzureAsyncOperationHeaderResult(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .operations() - .getAzureAsyncHeaderResultWithResponse( - "resourceGroup1", - "workspace1", - "01234567-89ab-4def-0123-456789abcdef", - com.azure.core.util.Context.NONE); + manager.operations().getAzureAsyncHeaderResultWithResponse("resourceGroup1", "workspace1", + "01234567-89ab-4def-0123-456789abcdef", com.azure.core.util.Context.NONE); } } ``` @@ -3254,24 +3111,45 @@ public final class OperationsGetAzureAsyncHeaderResultSamples { ### Operations_GetLocationHeaderResult ```java -/** Samples for Operations GetLocationHeaderResult. */ +/** + * Samples for Operations GetLocationHeaderResult. + */ public final class OperationsGetLocationHeaderResultSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetLocationHeader.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetLocationHeader.json */ /** * Sample code: Get location header result. - * + * * @param manager Entry point to SynapseManager. */ public static void getLocationHeaderResult(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .operations() - .getLocationHeaderResultWithResponse( - "resourceGroup1", - "workspace1", - "01234567-89ab-4def-0123-456789abcdef", - com.azure.core.util.Context.NONE); + manager.operations().getLocationHeaderResultWithResponse("resourceGroup1", "workspace1", + "01234567-89ab-4def-0123-456789abcdef", com.azure.core.util.Context.NONE); + } +} +``` + +### Operations_GetWorkspacePerSubscriptionQuota + +```java +/** + * Samples for Operations GetWorkspacePerSubscriptionQuota. + */ +public final class OperationsGetWorkspacePerSubscriptionQuotaSamples { + /* + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * WorkspacePerSubscriptionUsageGet.json + */ + /** + * Sample code: Workspace per subscription usage in given location. + * + * @param manager Entry point to SynapseManager. + */ + public static void + workspacePerSubscriptionUsageInGivenLocation(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.operations().getWorkspacePerSubscriptionQuotaWithResponse("WestUS", com.azure.core.util.Context.NONE); } } ``` @@ -3279,14 +3157,17 @@ public final class OperationsGetLocationHeaderResultSamples { ### Operations_List ```java -/** Samples for Operations List. */ +/** + * Samples for Operations List. + */ public final class OperationsListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetAvailableOperations.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetAvailableOperations.json */ /** * Sample code: Get available operations. - * + * * @param manager Entry point to SynapseManager. */ public static void getAvailableOperations(com.azure.resourcemanager.synapse.SynapseManager manager) { @@ -3300,25 +3181,24 @@ public final class OperationsListSamples { ```java import com.azure.resourcemanager.synapse.models.PrivateLinkServiceConnectionState; -/** Samples for PrivateEndpointConnections Create. */ +/** + * Samples for PrivateEndpointConnections Create. + */ public final class PrivateEndpointConnectionsCreateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ApprovePrivateEndpointConnection.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * ApprovePrivateEndpointConnection.json */ /** * Sample code: Approve private endpoint connection. - * + * * @param manager Entry point to SynapseManager. */ public static void approvePrivateEndpointConnection(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .privateEndpointConnections() - .define("ExamplePrivateEndpointConnection") + manager.privateEndpointConnections().define("ExamplePrivateEndpointConnection") .withExistingWorkspace("ExampleResourceGroup", "ExampleWorkspace") - .withPrivateLinkServiceConnectionState( - new PrivateLinkServiceConnectionState() - .withStatus("Approved") - .withDescription("Approved by abc@example.com")) + .withPrivateLinkServiceConnectionState(new PrivateLinkServiceConnectionState().withStatus("Approved") + .withDescription("Approved by abc@example.com")) .create(); } } @@ -3327,24 +3207,22 @@ public final class PrivateEndpointConnectionsCreateSamples { ### PrivateEndpointConnections_Delete ```java -/** Samples for PrivateEndpointConnections Delete. */ +/** + * Samples for PrivateEndpointConnections Delete. + */ public final class PrivateEndpointConnectionsDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeletePrivateEndpointConnection.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * DeletePrivateEndpointConnection.json */ /** * Sample code: Delete private endpoint connection. - * + * * @param manager Entry point to SynapseManager. */ public static void deletePrivateEndpointConnection(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .privateEndpointConnections() - .delete( - "ExampleResourceGroup", - "ExampleWorkspace", - "ExamplePrivateEndpointConnection", - com.azure.core.util.Context.NONE); + manager.privateEndpointConnections().delete("ExampleResourceGroup", "ExampleWorkspace", + "ExamplePrivateEndpointConnection", com.azure.core.util.Context.NONE); } } ``` @@ -3352,24 +3230,23 @@ public final class PrivateEndpointConnectionsDeleteSamples { ### PrivateEndpointConnections_Get ```java -/** Samples for PrivateEndpointConnections Get. */ +/** + * Samples for PrivateEndpointConnections Get. + */ public final class PrivateEndpointConnectionsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetPrivateEndpointConnection.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetPrivateEndpointConnection. + * json */ /** * Sample code: Get private endpoint connection. - * + * * @param manager Entry point to SynapseManager. */ public static void getPrivateEndpointConnection(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .privateEndpointConnections() - .getWithResponse( - "ExampleResourceGroup", - "ExampleWorkspace", - "ExamplePrivateEndpointConnection", - com.azure.core.util.Context.NONE); + manager.privateEndpointConnections().getWithResponse("ExampleResourceGroup", "ExampleWorkspace", + "ExamplePrivateEndpointConnection", com.azure.core.util.Context.NONE); } } ``` @@ -3377,21 +3254,23 @@ public final class PrivateEndpointConnectionsGetSamples { ### PrivateEndpointConnections_List ```java -/** Samples for PrivateEndpointConnections List. */ +/** + * Samples for PrivateEndpointConnections List. + */ public final class PrivateEndpointConnectionsListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListPrivateEndpointConnections.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * ListPrivateEndpointConnections.json */ /** * Sample code: List private endpoint connections in workspace. - * + * * @param manager Entry point to SynapseManager. */ - public static void listPrivateEndpointConnectionsInWorkspace( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .privateEndpointConnections() - .list("ExampleResourceGroup", "ExampleWorkspace", com.azure.core.util.Context.NONE); + public static void + listPrivateEndpointConnectionsInWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.privateEndpointConnections().list("ExampleResourceGroup", "ExampleWorkspace", + com.azure.core.util.Context.NONE); } } ``` @@ -3399,21 +3278,22 @@ public final class PrivateEndpointConnectionsListSamples { ### PrivateEndpointConnectionsPrivateLinkHub_Get ```java -/** Samples for PrivateEndpointConnectionsPrivateLinkHub Get. */ +/** + * Samples for PrivateEndpointConnectionsPrivateLinkHub Get. + */ public final class PrivateEndpointConnectionsPrivateLinkHubGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/PrivateEndpointConnectionsPrivateLinkHub_Get.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * PrivateEndpointConnectionsPrivateLinkHub_Get.json */ /** * Sample code: Get a privateLinkHub. - * + * * @param manager Entry point to SynapseManager. */ public static void getAPrivateLinkHub(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .privateEndpointConnectionsPrivateLinkHubs() - .getWithResponse( - "gh-res-grp", "pe0", "pe0-f3ed30f5-338c-4855-a542-24a403694ad2", com.azure.core.util.Context.NONE); + manager.privateEndpointConnectionsPrivateLinkHubs().getWithResponse("gh-res-grp", "pe0", + "pe0-f3ed30f5-338c-4855-a542-24a403694ad2", com.azure.core.util.Context.NONE); } } ``` @@ -3421,14 +3301,17 @@ public final class PrivateEndpointConnectionsPrivateLinkHubGetSamples { ### PrivateEndpointConnectionsPrivateLinkHub_List ```java -/** Samples for PrivateEndpointConnectionsPrivateLinkHub List. */ +/** + * Samples for PrivateEndpointConnectionsPrivateLinkHub List. + */ public final class PrivateEndpointConnectionsPrivateLinkHubListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/PrivateEndpointConnectionsPrivateLinkHub_List.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * PrivateEndpointConnectionsPrivateLinkHub_List.json */ /** * Sample code: Get a privateLinkHub. - * + * * @param manager Entry point to SynapseManager. */ public static void getAPrivateLinkHub(com.azure.resourcemanager.synapse.SynapseManager manager) { @@ -3440,21 +3323,23 @@ public final class PrivateEndpointConnectionsPrivateLinkHubListSamples { ### PrivateLinkHubPrivateLinkResources_Get ```java -/** Samples for PrivateLinkHubPrivateLinkResources Get. */ +/** + * Samples for PrivateLinkHubPrivateLinkResources Get. + */ public final class PrivateLinkHubPrivateLinkResourcesGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetPrivateLinkHubPrivateLinkResource.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * GetPrivateLinkHubPrivateLinkResource.json */ /** * Sample code: Get private link resources for private link hub. - * + * * @param manager Entry point to SynapseManager. */ - public static void getPrivateLinkResourcesForPrivateLinkHub( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .privateLinkHubPrivateLinkResources() - .getWithResponse("ExampleResourceGroup", "ExamplePrivateLinkHub", "sql", com.azure.core.util.Context.NONE); + public static void + getPrivateLinkResourcesForPrivateLinkHub(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.privateLinkHubPrivateLinkResources().getWithResponse("ExampleResourceGroup", "ExamplePrivateLinkHub", + "sql", com.azure.core.util.Context.NONE); } } ``` @@ -3462,21 +3347,23 @@ public final class PrivateLinkHubPrivateLinkResourcesGetSamples { ### PrivateLinkHubPrivateLinkResources_List ```java -/** Samples for PrivateLinkHubPrivateLinkResources List. */ +/** + * Samples for PrivateLinkHubPrivateLinkResources List. + */ public final class PrivateLinkHubPrivateLinkResourcesListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListPrivateLinkHubPrivateLinkResources.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * ListPrivateLinkHubPrivateLinkResources.json */ /** * Sample code: Get private link resources for private link hub. - * + * * @param manager Entry point to SynapseManager. */ - public static void getPrivateLinkResourcesForPrivateLinkHub( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .privateLinkHubPrivateLinkResources() - .list("ExampleResourceGroup", "ExamplePrivateLinkHub", com.azure.core.util.Context.NONE); + public static void + getPrivateLinkResourcesForPrivateLinkHub(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.privateLinkHubPrivateLinkResources().list("ExampleResourceGroup", "ExamplePrivateLinkHub", + com.azure.core.util.Context.NONE); } } ``` @@ -3487,26 +3374,26 @@ public final class PrivateLinkHubPrivateLinkResourcesListSamples { import java.util.HashMap; import java.util.Map; -/** Samples for PrivateLinkHubs CreateOrUpdate. */ +/** + * Samples for PrivateLinkHubs CreateOrUpdate. + */ public final class PrivateLinkHubsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdatePrivateLinkHub.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdatePrivateLinkHub. + * json */ /** * Sample code: Create or update a privateLinkHub. - * + * * @param manager Entry point to SynapseManager. */ public static void createOrUpdateAPrivateLinkHub(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .privateLinkHubs() - .define("privateLinkHub1") - .withRegion("East US") - .withExistingResourceGroup("resourceGroup1") - .withTags(mapOf("key", "value")) - .create(); + manager.privateLinkHubs().define("privateLinkHub1").withRegion("East US") + .withExistingResourceGroup("resourceGroup1").withTags(mapOf("key", "fakeTokenPlaceholder")).create(); } + // Use "Map.of" if available @SuppressWarnings("unchecked") private static Map mapOf(Object... inputs) { Map map = new HashMap<>(); @@ -3523,14 +3410,17 @@ public final class PrivateLinkHubsCreateOrUpdateSamples { ### PrivateLinkHubs_Delete ```java -/** Samples for PrivateLinkHubs Delete. */ +/** + * Samples for PrivateLinkHubs Delete. + */ public final class PrivateLinkHubsDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeletePrivateLinkHub.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeletePrivateLinkHub.json */ /** * Sample code: Delete a privateLinkHub. - * + * * @param manager Entry point to SynapseManager. */ public static void deleteAPrivateLinkHub(com.azure.resourcemanager.synapse.SynapseManager manager) { @@ -3542,20 +3432,22 @@ public final class PrivateLinkHubsDeleteSamples { ### PrivateLinkHubs_GetByResourceGroup ```java -/** Samples for PrivateLinkHubs GetByResourceGroup. */ +/** + * Samples for PrivateLinkHubs GetByResourceGroup. + */ public final class PrivateLinkHubsGetByResourceGroupSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetPrivateLinkHub.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetPrivateLinkHub.json */ /** * Sample code: Get a privateLinkHub. - * + * * @param manager Entry point to SynapseManager. */ public static void getAPrivateLinkHub(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .privateLinkHubs() - .getByResourceGroupWithResponse("resourceGroup1", "privateLinkHub1", com.azure.core.util.Context.NONE); + manager.privateLinkHubs().getByResourceGroupWithResponse("resourceGroup1", "privateLinkHub1", + com.azure.core.util.Context.NONE); } } ``` @@ -3563,14 +3455,17 @@ public final class PrivateLinkHubsGetByResourceGroupSamples { ### PrivateLinkHubs_List ```java -/** Samples for PrivateLinkHubs List. */ +/** + * Samples for PrivateLinkHubs List. + */ public final class PrivateLinkHubsListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListPrivateLinkHubsInSubscription.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * ListPrivateLinkHubsInSubscription.json */ /** * Sample code: List privateLinkHubs in subscription. - * + * * @param manager Entry point to SynapseManager. */ public static void listPrivateLinkHubsInSubscription(com.azure.resourcemanager.synapse.SynapseManager manager) { @@ -3582,14 +3477,17 @@ public final class PrivateLinkHubsListSamples { ### PrivateLinkHubs_ListByResourceGroup ```java -/** Samples for PrivateLinkHubs ListByResourceGroup. */ +/** + * Samples for PrivateLinkHubs ListByResourceGroup. + */ public final class PrivateLinkHubsListByResourceGroupSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListPrivateLinkHubsInResourceGroup.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * ListPrivateLinkHubsInResourceGroup.json */ /** * Sample code: List privateLinkHubs in resource group. - * + * * @param manager Entry point to SynapseManager. */ public static void listPrivateLinkHubsInResourceGroup(com.azure.resourcemanager.synapse.SynapseManager manager) { @@ -3605,25 +3503,27 @@ import com.azure.resourcemanager.synapse.models.PrivateLinkHub; import java.util.HashMap; import java.util.Map; -/** Samples for PrivateLinkHubs Update. */ +/** + * Samples for PrivateLinkHubs Update. + */ public final class PrivateLinkHubsUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/UpdatePrivateLinkHub.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/UpdatePrivateLinkHub.json */ /** * Sample code: Update a privateLinkHub. - * + * * @param manager Entry point to SynapseManager. */ public static void updateAPrivateLinkHub(com.azure.resourcemanager.synapse.SynapseManager manager) { - PrivateLinkHub resource = - manager - .privateLinkHubs() - .getByResourceGroupWithResponse("resourceGroup1", "privateLinkHub1", com.azure.core.util.Context.NONE) - .getValue(); - resource.update().withTags(mapOf("key", "value")).apply(); + PrivateLinkHub resource = manager.privateLinkHubs() + .getByResourceGroupWithResponse("resourceGroup1", "privateLinkHub1", com.azure.core.util.Context.NONE) + .getValue(); + resource.update().withTags(mapOf("key", "fakeTokenPlaceholder")).apply(); } + // Use "Map.of" if available @SuppressWarnings("unchecked") private static Map mapOf(Object... inputs) { Map map = new HashMap<>(); @@ -3640,20 +3540,22 @@ public final class PrivateLinkHubsUpdateSamples { ### PrivateLinkResourcesOperation_Get ```java -/** Samples for PrivateLinkResourcesOperation Get. */ +/** + * Samples for PrivateLinkResourcesOperation Get. + */ public final class PrivateLinkResourcesOperationGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetPrivateLinkResource.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetPrivateLinkResource.json */ /** * Sample code: Get private link resources for workspace. - * + * * @param manager Entry point to SynapseManager. */ public static void getPrivateLinkResourcesForWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .privateLinkResourcesOperations() - .getWithResponse("ExampleResourceGroup", "ExampleWorkspace", "sql", com.azure.core.util.Context.NONE); + manager.privateLinkResourcesOperations().getWithResponse("ExampleResourceGroup", "ExampleWorkspace", "sql", + com.azure.core.util.Context.NONE); } } ``` @@ -3661,20 +3563,22 @@ public final class PrivateLinkResourcesOperationGetSamples { ### PrivateLinkResourcesOperation_List ```java -/** Samples for PrivateLinkResourcesOperation List. */ +/** + * Samples for PrivateLinkResourcesOperation List. + */ public final class PrivateLinkResourcesOperationListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListPrivateLinkResources.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListPrivateLinkResources.json */ /** * Sample code: Get private link resources for workspace. - * + * * @param manager Entry point to SynapseManager. */ public static void getPrivateLinkResourcesForWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .privateLinkResourcesOperations() - .list("ExampleResourceGroup", "ExampleWorkspace", com.azure.core.util.Context.NONE); + manager.privateLinkResourcesOperations().list("ExampleResourceGroup", "ExampleWorkspace", + com.azure.core.util.Context.NONE); } } ``` @@ -3682,24 +3586,24 @@ public final class PrivateLinkResourcesOperationListSamples { ### RestorableDroppedSqlPools_Get ```java -/** Samples for RestorableDroppedSqlPools Get. */ +/** + * Samples for RestorableDroppedSqlPools Get. + */ public final class RestorableDroppedSqlPoolsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/RestorableDroppedSqlPoolGet.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/RestorableDroppedSqlPoolGet. + * json */ /** * Sample code: Get a restorable dropped Sql pool. - * + * * @param manager Entry point to SynapseManager. */ public static void getARestorableDroppedSqlPool(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .restorableDroppedSqlPools() - .getWithResponse( - "restorabledroppeddatabasetest-1257", - "restorabledroppeddatabasetest-2389", - "restorabledroppeddatabasetest-7654,131403269876900000", - com.azure.core.util.Context.NONE); + manager.restorableDroppedSqlPools().getWithResponse("restorabledroppeddatabasetest-1257", + "restorabledroppeddatabasetest-2389", "restorabledroppeddatabasetest-7654,131403269876900000", + com.azure.core.util.Context.NONE); } } ``` @@ -3707,23 +3611,23 @@ public final class RestorableDroppedSqlPoolsGetSamples { ### RestorableDroppedSqlPools_ListByWorkspace ```java -/** Samples for RestorableDroppedSqlPools ListByWorkspace. */ +/** + * Samples for RestorableDroppedSqlPools ListByWorkspace. + */ public final class RestorableDroppedSqlPoolsListByWorkspaceSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/RestorableDroppedSqlpoolList.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/RestorableDroppedSqlpoolList. + * json */ /** * Sample code: Get list of restorable dropped Sql pools. - * + * * @param manager Entry point to SynapseManager. */ public static void getListOfRestorableDroppedSqlPools(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .restorableDroppedSqlPools() - .listByWorkspace( - "restorabledroppeddatabasetest-1349", - "restorabledroppeddatabasetest-1840", - com.azure.core.util.Context.NONE); + manager.restorableDroppedSqlPools().listByWorkspace("restorabledroppeddatabasetest-1349", + "restorabledroppeddatabasetest-1840", com.azure.core.util.Context.NONE); } } ``` @@ -3731,24 +3635,22 @@ public final class RestorableDroppedSqlPoolsListByWorkspaceSamples { ### SparkConfiguration_Get ```java -/** Samples for SparkConfiguration Get. */ +/** + * Samples for SparkConfiguration Get. + */ public final class SparkConfigurationGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/SparkConfiguration_Get.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * SparkConfiguration_Get.json */ /** * Sample code: Get SparkConfiguration by name. - * + * * @param manager Entry point to SynapseManager. */ public static void getSparkConfigurationByName(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sparkConfigurations() - .getWithResponse( - "exampleResourceGroup", - "exampleSparkConfigurationName", - "exampleWorkspace", - com.azure.core.util.Context.NONE); + manager.sparkConfigurations().getWithResponse("exampleResourceGroup", "exampleSparkConfigurationName", + "exampleWorkspace", com.azure.core.util.Context.NONE); } } ``` @@ -3756,20 +3658,22 @@ public final class SparkConfigurationGetSamples { ### SparkConfigurationsOperation_ListByWorkspace ```java -/** Samples for SparkConfigurationsOperation ListByWorkspace. */ +/** + * Samples for SparkConfigurationsOperation ListByWorkspace. + */ public final class SparkConfigurationsOperationListByWorkspaceSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/SparkConfigurations_ListByWorkspace.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * SparkConfigurations_ListByWorkspace.json */ /** * Sample code: List sparkConfigurations in a workspace. - * + * * @param manager Entry point to SynapseManager. */ public static void listSparkConfigurationsInAWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sparkConfigurationsOperations() - .listByWorkspace("exampleResourceGroup", "exampleWorkspace", com.azure.core.util.Context.NONE); + manager.sparkConfigurationsOperations().listByWorkspace("exampleResourceGroup", "exampleWorkspace", + com.azure.core.util.Context.NONE); } } ``` @@ -3781,55 +3685,47 @@ import com.azure.resourcemanager.synapse.models.BlobAuditingPolicyState; import java.util.Arrays; import java.util.UUID; -/** Samples for SqlPoolBlobAuditingPolicies CreateOrUpdate. */ +/** + * Samples for SqlPoolBlobAuditingPolicies CreateOrUpdate. + */ public final class SqlPoolBlobAuditingPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateSqlPoolBlobAuditingWithAllParameters.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CreateOrUpdateSqlPoolBlobAuditingWithAllParameters.json */ /** * Sample code: Create or update a database's blob auditing policy with all parameters. - * + * * @param manager Entry point to SynapseManager. */ public static void createOrUpdateADatabaseSBlobAuditingPolicyWithAllParameters( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolBlobAuditingPolicies() - .define() + manager.sqlPoolBlobAuditingPolicies().define() .withExistingSqlPool("blobauditingtest-4799", "blobauditingtest-6440", "testdb") - .withState(BlobAuditingPolicyState.ENABLED) - .withStorageEndpoint("https://mystorage.blob.core.windows.net") + .withState(BlobAuditingPolicyState.ENABLED).withStorageEndpoint("https://mystorage.blob.core.windows.net") .withStorageAccountAccessKey( "sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==") .withRetentionDays(6) - .withAuditActionsAndGroups( - Arrays - .asList( - "DATABASE_LOGOUT_GROUP", - "DATABASE_ROLE_MEMBER_CHANGE_GROUP", - "UPDATE on database::TestDatabaseName by public")) + .withAuditActionsAndGroups(Arrays.asList("DATABASE_LOGOUT_GROUP", "DATABASE_ROLE_MEMBER_CHANGE_GROUP", + "UPDATE on database::TestDatabaseName by public")) .withStorageAccountSubscriptionId(UUID.fromString("00000000-1234-0000-5678-000000000000")) - .withIsStorageSecondaryKeyInUse(false) - .withIsAzureMonitorTargetEnabled(true) - .create(); + .withIsStorageSecondaryKeyInUse(false).withIsAzureMonitorTargetEnabled(true).create(); } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateSqlPoolBlobAuditingWithMinParameters.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CreateOrUpdateSqlPoolBlobAuditingWithMinParameters.json */ /** * Sample code: Create or update a database's blob auditing policy with minimal parameters. - * + * * @param manager Entry point to SynapseManager. */ public static void createOrUpdateADatabaseSBlobAuditingPolicyWithMinimalParameters( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolBlobAuditingPolicies() - .define() + manager.sqlPoolBlobAuditingPolicies().define() .withExistingSqlPool("blobauditingtest-4799", "blobauditingtest-6440", "testdb") - .withState(BlobAuditingPolicyState.ENABLED) - .withStorageEndpoint("https://mystorage.blob.core.windows.net") + .withState(BlobAuditingPolicyState.ENABLED).withStorageEndpoint("https://mystorage.blob.core.windows.net") .withStorageAccountAccessKey( "sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==") .create(); @@ -3840,22 +3736,23 @@ public final class SqlPoolBlobAuditingPoliciesCreateOrUpdateSamples { ### SqlPoolBlobAuditingPolicies_Get ```java -/** Samples for SqlPoolBlobAuditingPolicies Get. */ +/** + * Samples for SqlPoolBlobAuditingPolicies Get. + */ public final class SqlPoolBlobAuditingPoliciesGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolBlobAuditing.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolBlobAuditing.json */ /** * Sample code: Get blob auditing policy of a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ - public static void getBlobAuditingPolicyOfASQLAnalyticsPool( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolBlobAuditingPolicies() - .getWithResponse( - "blobauditingtest-6852", "blobauditingtest-2080", "testdb", com.azure.core.util.Context.NONE); + public static void + getBlobAuditingPolicyOfASQLAnalyticsPool(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.sqlPoolBlobAuditingPolicies().getWithResponse("blobauditingtest-6852", "blobauditingtest-2080", + "testdb", com.azure.core.util.Context.NONE); } } ``` @@ -3863,21 +3760,23 @@ public final class SqlPoolBlobAuditingPoliciesGetSamples { ### SqlPoolBlobAuditingPolicies_ListBySqlPool ```java -/** Samples for SqlPoolBlobAuditingPolicies ListBySqlPool. */ +/** + * Samples for SqlPoolBlobAuditingPolicies ListBySqlPool. + */ public final class SqlPoolBlobAuditingPoliciesListBySqlPoolSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolAuditingSettingsList.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolAuditingSettingsList. + * json */ /** * Sample code: List audit settings of a database. - * + * * @param manager Entry point to SynapseManager. */ public static void listAuditSettingsOfADatabase(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolBlobAuditingPolicies() - .listBySqlPool( - "blobauditingtest-6852", "blobauditingtest-2080", "testdb", com.azure.core.util.Context.NONE); + manager.sqlPoolBlobAuditingPolicies().listBySqlPool("blobauditingtest-6852", "blobauditingtest-2080", "testdb", + com.azure.core.util.Context.NONE); } } ``` @@ -3885,21 +3784,22 @@ public final class SqlPoolBlobAuditingPoliciesListBySqlPoolSamples { ### SqlPoolColumns_Get ```java -/** Samples for SqlPoolColumns Get. */ +/** + * Samples for SqlPoolColumns Get. + */ public final class SqlPoolColumnsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolColumnGet.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolColumnGet.json */ /** * Sample code: Get database column. - * + * * @param manager Entry point to SynapseManager. */ public static void getDatabaseColumn(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolColumns() - .getWithResponse( - "myRG", "serverName", "myDatabase", "dbo", "table1", "column1", com.azure.core.util.Context.NONE); + manager.sqlPoolColumns().getWithResponse("myRG", "serverName", "myDatabase", "dbo", "table1", "column1", + com.azure.core.util.Context.NONE); } } ``` @@ -3909,26 +3809,24 @@ public final class SqlPoolColumnsGetSamples { ```java import com.azure.resourcemanager.synapse.models.ConnectionPolicyName; -/** Samples for SqlPoolConnectionPolicies Get. */ +/** + * Samples for SqlPoolConnectionPolicies Get. + */ public final class SqlPoolConnectionPoliciesGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolConnectionPolicy.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolConnectionPolicy. + * json */ /** * Sample code: Get a connection policy of a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ - public static void getAConnectionPolicyOfASQLAnalyticsPool( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolConnectionPolicies() - .getWithResponse( - "blobauditingtest-6852", - "blobauditingtest-2080", - "testdb", - ConnectionPolicyName.DEFAULT, - com.azure.core.util.Context.NONE); + public static void + getAConnectionPolicyOfASQLAnalyticsPool(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.sqlPoolConnectionPolicies().getWithResponse("blobauditingtest-6852", "blobauditingtest-2080", "testdb", + ConnectionPolicyName.DEFAULT, com.azure.core.util.Context.NONE); } } ``` @@ -3938,25 +3836,22 @@ public final class SqlPoolConnectionPoliciesGetSamples { ```java import com.azure.resourcemanager.synapse.models.DataWarehouseUserActivityName; -/** Samples for SqlPoolDataWarehouseUserActivities Get. */ +/** + * Samples for SqlPoolDataWarehouseUserActivities Get. + */ public final class SqlPoolDataWarehouseUserActivitiesGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolUserActivity.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolUserActivity.json */ /** * Sample code: Get a SQL Analytics pool user activity. - * + * * @param manager Entry point to SynapseManager. */ public static void getASQLAnalyticsPoolUserActivity(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolDataWarehouseUserActivities() - .getWithResponse( - "Default-SQL-SouthEastAsia", - "testsvr", - "testdb", - DataWarehouseUserActivityName.CURRENT, - com.azure.core.util.Context.NONE); + manager.sqlPoolDataWarehouseUserActivities().getWithResponse("Default-SQL-SouthEastAsia", "testsvr", "testdb", + DataWarehouseUserActivityName.CURRENT, com.azure.core.util.Context.NONE); } } ``` @@ -3967,23 +3862,22 @@ public final class SqlPoolDataWarehouseUserActivitiesGetSamples { import com.azure.resourcemanager.synapse.models.GeoBackupPolicyName; import com.azure.resourcemanager.synapse.models.GeoBackupPolicyState; -/** Samples for SqlPoolGeoBackupPolicies CreateOrUpdate. */ +/** + * Samples for SqlPoolGeoBackupPolicies CreateOrUpdate. + */ public final class SqlPoolGeoBackupPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateGeoBackupPolicies.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CreateOrUpdateGeoBackupPolicies.json */ /** * Sample code: Create geo backup policy. - * + * * @param manager Entry point to SynapseManager. */ public static void createGeoBackupPolicy(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolGeoBackupPolicies() - .define(GeoBackupPolicyName.DEFAULT) - .withExistingSqlPool("testrg", "testws", "testdw") - .withState(GeoBackupPolicyState.ENABLED) - .create(); + manager.sqlPoolGeoBackupPolicies().define(GeoBackupPolicyName.DEFAULT) + .withExistingSqlPool("testrg", "testws", "testdw").withState(GeoBackupPolicyState.ENABLED).create(); } } ``` @@ -3993,25 +3887,23 @@ public final class SqlPoolGeoBackupPoliciesCreateOrUpdateSamples { ```java import com.azure.resourcemanager.synapse.models.GeoBackupPolicyName; -/** Samples for SqlPoolGeoBackupPolicies Get. */ +/** + * Samples for SqlPoolGeoBackupPolicies Get. + */ public final class SqlPoolGeoBackupPoliciesGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolGeoBackupPolicy.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolGeoBackupPolicy. + * json */ /** * Sample code: Get Sql pool geo backup policy. - * + * * @param manager Entry point to SynapseManager. */ public static void getSqlPoolGeoBackupPolicy(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolGeoBackupPolicies() - .getWithResponse( - "sqlcrudtest-4799", - "sqlcrudtest-5961", - "testdw", - GeoBackupPolicyName.DEFAULT, - com.azure.core.util.Context.NONE); + manager.sqlPoolGeoBackupPolicies().getWithResponse("sqlcrudtest-4799", "sqlcrudtest-5961", "testdw", + GeoBackupPolicyName.DEFAULT, com.azure.core.util.Context.NONE); } } ``` @@ -4019,20 +3911,23 @@ public final class SqlPoolGeoBackupPoliciesGetSamples { ### SqlPoolGeoBackupPolicies_List ```java -/** Samples for SqlPoolGeoBackupPolicies List. */ +/** + * Samples for SqlPoolGeoBackupPolicies List. + */ public final class SqlPoolGeoBackupPoliciesListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolGeoBackupPolicies_List.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolGeoBackupPolicies_List + * .json */ /** * Sample code: Get Sql pool geo backup policy. - * + * * @param manager Entry point to SynapseManager. */ public static void getSqlPoolGeoBackupPolicy(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolGeoBackupPolicies() - .list("sqlcrudtest-4799", "sqlcrudtest-5961", "testdw", com.azure.core.util.Context.NONE); + manager.sqlPoolGeoBackupPolicies().list("sqlcrudtest-4799", "sqlcrudtest-5961", "testdw", + com.azure.core.util.Context.NONE); } } ``` @@ -4040,21 +3935,24 @@ public final class SqlPoolGeoBackupPoliciesListSamples { ### SqlPoolMaintenanceWindowOptions_Get ```java -/** Samples for SqlPoolMaintenanceWindowOptions Get. */ +/** + * Samples for SqlPoolMaintenanceWindowOptions Get. + */ public final class SqlPoolMaintenanceWindowOptionsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetMaintenanceWindowOptions.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetMaintenanceWindowOptions. + * json */ /** * Sample code: Get list of transparent data encryption configurations of a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ public static void getListOfTransparentDataEncryptionConfigurationsOfASQLAnalyticsPool( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolMaintenanceWindowOptions() - .getWithResponse("samplerg", "testworkspace", "testsp", "current", com.azure.core.util.Context.NONE); + manager.sqlPoolMaintenanceWindowOptions().getWithResponse("samplerg", "testworkspace", "testsp", "current", + com.azure.core.util.Context.NONE); } } ``` @@ -4067,34 +3965,25 @@ import com.azure.resourcemanager.synapse.models.DayOfWeek; import com.azure.resourcemanager.synapse.models.MaintenanceWindowTimeRange; import java.util.Arrays; -/** Samples for SqlPoolMaintenanceWindows CreateOrUpdate. */ +/** + * Samples for SqlPoolMaintenanceWindows CreateOrUpdate. + */ public final class SqlPoolMaintenanceWindowsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateMaintenanceWindows.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CreateOrUpdateMaintenanceWindows.json */ /** * Sample code: Sets maintenance window settings for a selected SQL Analytics Pool. - * + * * @param manager Entry point to SynapseManager. */ public static void setsMaintenanceWindowSettingsForASelectedSQLAnalyticsPool( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolMaintenanceWindows() - .createOrUpdateWithResponse( - "samplerg", - "testworkspace", - "testsp", - "current", - new MaintenanceWindowsInner() - .withTimeRanges( - Arrays - .asList( - new MaintenanceWindowTimeRange() - .withDayOfWeek(DayOfWeek.SATURDAY) - .withStartTime("00:00:00") - .withDuration("PT60M"))), - com.azure.core.util.Context.NONE); + manager.sqlPoolMaintenanceWindows().createOrUpdateWithResponse("samplerg", "testworkspace", "testsp", "current", + new MaintenanceWindowsInner().withTimeRanges(Arrays.asList(new MaintenanceWindowTimeRange() + .withDayOfWeek(DayOfWeek.SATURDAY).withStartTime("00:00:00").withDuration("PT60M"))), + com.azure.core.util.Context.NONE); } } ``` @@ -4102,21 +3991,23 @@ public final class SqlPoolMaintenanceWindowsCreateOrUpdateSamples { ### SqlPoolMaintenanceWindows_Get ```java -/** Samples for SqlPoolMaintenanceWindows Get. */ +/** + * Samples for SqlPoolMaintenanceWindows Get. + */ public final class SqlPoolMaintenanceWindowsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetMaintenanceWindows.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetMaintenanceWindows.json */ /** * Sample code: Gets maintenance window settings for a selected SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ public static void getsMaintenanceWindowSettingsForASelectedSQLAnalyticsPool( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolMaintenanceWindows() - .getWithResponse("samplerg", "testworkspace", "testsp", "current", com.azure.core.util.Context.NONE); + manager.sqlPoolMaintenanceWindows().getWithResponse("samplerg", "testworkspace", "testsp", "current", + com.azure.core.util.Context.NONE); } } ``` @@ -4126,26 +4017,23 @@ public final class SqlPoolMaintenanceWindowsGetSamples { ```java import com.azure.resourcemanager.synapse.fluent.models.MetadataSyncConfigInner; -/** Samples for SqlPoolMetadataSyncConfigs Create. */ +/** + * Samples for SqlPoolMetadataSyncConfigs Create. + */ public final class SqlPoolMetadataSyncConfigsCreateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateSqlPoolMetadataSyncConfig.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CreateSqlPoolMetadataSyncConfig.json */ /** * Sample code: Set metadata sync config for a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ - public static void setMetadataSyncConfigForASQLAnalyticsPool( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolMetadataSyncConfigs() - .createWithResponse( - "ExampleResourceGroup", - "ExampleWorkspace", - "ExampleSqlPool", - new MetadataSyncConfigInner().withEnabled(true), - com.azure.core.util.Context.NONE); + public static void + setMetadataSyncConfigForASQLAnalyticsPool(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.sqlPoolMetadataSyncConfigs().createWithResponse("ExampleResourceGroup", "ExampleWorkspace", + "ExampleSqlPool", new MetadataSyncConfigInner().withEnabled(true), com.azure.core.util.Context.NONE); } } ``` @@ -4153,22 +4041,24 @@ public final class SqlPoolMetadataSyncConfigsCreateSamples { ### SqlPoolMetadataSyncConfigs_Get ```java -/** Samples for SqlPoolMetadataSyncConfigs Get. */ +/** + * Samples for SqlPoolMetadataSyncConfigs Get. + */ public final class SqlPoolMetadataSyncConfigsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolMetadataSyncConfig.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolMetadataSyncConfig. + * json */ /** * Sample code: Get metadata sync config for a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ - public static void getMetadataSyncConfigForASQLAnalyticsPool( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolMetadataSyncConfigs() - .getWithResponse( - "ExampleResourceGroup", "ExampleWorkspace", "ExampleSqlPool", com.azure.core.util.Context.NONE); + public static void + getMetadataSyncConfigForASQLAnalyticsPool(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.sqlPoolMetadataSyncConfigs().getWithResponse("ExampleResourceGroup", "ExampleWorkspace", + "ExampleSqlPool", com.azure.core.util.Context.NONE); } } ``` @@ -4176,26 +4066,23 @@ public final class SqlPoolMetadataSyncConfigsGetSamples { ### SqlPoolOperationResults_GetLocationHeaderResult ```java -/** Samples for SqlPoolOperationResults GetLocationHeaderResult. */ +/** + * Samples for SqlPoolOperationResults GetLocationHeaderResult. + */ public final class SqlPoolOperationResultsGetLocationHeaderResultSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetLocationHeaderResultWithSqlPool.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * GetLocationHeaderResultWithSqlPool.json */ /** * Sample code: Get the result of an operation on a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ - public static void getTheResultOfAnOperationOnASQLAnalyticsPool( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolOperationResults() - .getLocationHeaderResult( - "ExampleResourceGroup", - "ExampleWorkspace", - "ExampleSqlPool", - "fedcba98-7654-4210-fedc-ba9876543210", - com.azure.core.util.Context.NONE); + public static void + getTheResultOfAnOperationOnASQLAnalyticsPool(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.sqlPoolOperationResults().getLocationHeaderResult("ExampleResourceGroup", "ExampleWorkspace", + "ExampleSqlPool", "fedcba98-7654-4210-fedc-ba9876543210", com.azure.core.util.Context.NONE); } } ``` @@ -4203,21 +4090,23 @@ public final class SqlPoolOperationResultsGetLocationHeaderResultSamples { ### SqlPoolOperations_List ```java -/** Samples for SqlPoolOperations List. */ +/** + * Samples for SqlPoolOperations List. + */ public final class SqlPoolOperationsListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolOperations.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolOperations.json */ /** * Sample code: List the Sql Analytics pool management operations. - * + * * @param manager Entry point to SynapseManager. */ - public static void listTheSqlAnalyticsPoolManagementOperations( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolOperations() - .list("sqlcrudtest-7398", "sqlcrudtest-4645", "testdb", com.azure.core.util.Context.NONE); + public static void + listTheSqlAnalyticsPoolManagementOperations(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.sqlPoolOperations().list("sqlcrudtest-7398", "sqlcrudtest-4645", "testdb", + com.azure.core.util.Context.NONE); } } ``` @@ -4230,44 +4119,30 @@ import com.azure.resourcemanager.synapse.models.RecommendedSensitivityLabelUpdat import com.azure.resourcemanager.synapse.models.RecommendedSensitivityLabelUpdateList; import java.util.Arrays; -/** Samples for SqlPoolRecommendedSensitivityLabels Update. */ +/** + * Samples for SqlPoolRecommendedSensitivityLabels Update. + */ public final class SqlPoolRecommendedSensitivityLabelsUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SensitivityLabelsRecommendedUpdate.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * SensitivityLabelsRecommendedUpdate.json */ /** * Sample code: Update recommended sensitivity labels of a given SQL Pool using an operations batch. - * + * * @param manager Entry point to SynapseManager. */ public static void updateRecommendedSensitivityLabelsOfAGivenSQLPoolUsingAnOperationsBatch( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolRecommendedSensitivityLabels() - .updateWithResponse( - "myRG", - "myWorkspace", - "mySqlPool", - new RecommendedSensitivityLabelUpdateList() - .withOperations( - Arrays - .asList( - new RecommendedSensitivityLabelUpdate() - .withOp(RecommendedSensitivityLabelUpdateKind.ENABLE) - .withSchema("dbo") - .withTable("table1") - .withColumn("column1"), - new RecommendedSensitivityLabelUpdate() - .withOp(RecommendedSensitivityLabelUpdateKind.ENABLE) - .withSchema("dbo") - .withTable("table2") - .withColumn("column2"), - new RecommendedSensitivityLabelUpdate() - .withOp(RecommendedSensitivityLabelUpdateKind.DISABLE) - .withSchema("dbo") - .withTable("table1") - .withColumn("column3"))), - com.azure.core.util.Context.NONE); + manager.sqlPoolRecommendedSensitivityLabels().updateWithResponse("myRG", "myWorkspace", "mySqlPool", + new RecommendedSensitivityLabelUpdateList().withOperations(Arrays.asList( + new RecommendedSensitivityLabelUpdate().withOp(RecommendedSensitivityLabelUpdateKind.ENABLE) + .withSchema("dbo").withTable("table1").withColumn("column1"), + new RecommendedSensitivityLabelUpdate().withOp(RecommendedSensitivityLabelUpdateKind.ENABLE) + .withSchema("dbo").withTable("table2").withColumn("column2"), + new RecommendedSensitivityLabelUpdate().withOp(RecommendedSensitivityLabelUpdateKind.DISABLE) + .withSchema("dbo").withTable("table1").withColumn("column3"))), + com.azure.core.util.Context.NONE); } } ``` @@ -4275,26 +4150,23 @@ public final class SqlPoolRecommendedSensitivityLabelsUpdateSamples { ### SqlPoolReplicationLinks_GetByName ```java -/** Samples for SqlPoolReplicationLinks GetByName. */ +/** + * Samples for SqlPoolReplicationLinks GetByName. + */ public final class SqlPoolReplicationLinksGetByNameSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolReplicationLinks_GetByName.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * SqlPoolReplicationLinks_GetByName.json */ /** * Sample code: Lists a Sql Analytic pool's replication links. - * + * * @param manager Entry point to SynapseManager. */ - public static void listsASqlAnalyticPoolSReplicationLinks( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolReplicationLinks() - .getByNameWithResponse( - "sqlcrudtest-4799", - "sqlcrudtest-6440", - "testdb", - "5b301b68-03f6-4b26-b0f4-73ebb8634238", - com.azure.core.util.Context.NONE); + public static void + listsASqlAnalyticPoolSReplicationLinks(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.sqlPoolReplicationLinks().getByNameWithResponse("sqlcrudtest-4799", "sqlcrudtest-6440", "testdb", + "5b301b68-03f6-4b26-b0f4-73ebb8634238", com.azure.core.util.Context.NONE); } } ``` @@ -4302,21 +4174,24 @@ public final class SqlPoolReplicationLinksGetByNameSamples { ### SqlPoolReplicationLinks_List ```java -/** Samples for SqlPoolReplicationLinks List. */ +/** + * Samples for SqlPoolReplicationLinks List. + */ public final class SqlPoolReplicationLinksListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolReplicationLinks.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolReplicationLinks. + * json */ /** * Sample code: Lists a Sql Analytic pool's replication links. - * + * * @param manager Entry point to SynapseManager. */ - public static void listsASqlAnalyticPoolSReplicationLinks( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolReplicationLinks() - .list("sqlcrudtest-4799", "sqlcrudtest-6440", "testdb", com.azure.core.util.Context.NONE); + public static void + listsASqlAnalyticPoolSReplicationLinks(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.sqlPoolReplicationLinks().list("sqlcrudtest-4799", "sqlcrudtest-6440", "testdb", + com.azure.core.util.Context.NONE); } } ``` @@ -4326,25 +4201,24 @@ public final class SqlPoolReplicationLinksListSamples { ```java import com.azure.resourcemanager.synapse.models.CreateSqlPoolRestorePointDefinition; -/** Samples for SqlPoolRestorePoints Create. */ +/** + * Samples for SqlPoolRestorePoints Create. + */ public final class SqlPoolRestorePointsCreateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateSqlPoolRestorePoints.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateSqlPoolRestorePoints. + * json */ /** * Sample code: Creates Sql pool restore point. - * + * * @param manager Entry point to SynapseManager. */ public static void createsSqlPoolRestorePoint(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolRestorePoints() - .create( - "Default-SQL-SouthEastAsia", - "testserver", - "testDatabase", - new CreateSqlPoolRestorePointDefinition().withRestorePointLabel("mylabel"), - com.azure.core.util.Context.NONE); + manager.sqlPoolRestorePoints().create("Default-SQL-SouthEastAsia", "testserver", "testDatabase", + new CreateSqlPoolRestorePointDefinition().withRestorePointLabel("mylabel"), + com.azure.core.util.Context.NONE); } } ``` @@ -4352,25 +4226,23 @@ public final class SqlPoolRestorePointsCreateSamples { ### SqlPoolRestorePoints_Delete ```java -/** Samples for SqlPoolRestorePoints Delete. */ +/** + * Samples for SqlPoolRestorePoints Delete. + */ public final class SqlPoolRestorePointsDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolRestorePointsDelete.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolRestorePointsDelete. + * json */ /** * Sample code: Deletes a restore point. - * + * * @param manager Entry point to SynapseManager. */ public static void deletesARestorePoint(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolRestorePoints() - .deleteWithResponse( - "Default-SQL-SouthEastAsia", - "testws", - "testpool", - "131546477590000000", - com.azure.core.util.Context.NONE); + manager.sqlPoolRestorePoints().deleteWithResponse("Default-SQL-SouthEastAsia", "testws", "testpool", + "131546477590000000", com.azure.core.util.Context.NONE); } } ``` @@ -4378,25 +4250,22 @@ public final class SqlPoolRestorePointsDeleteSamples { ### SqlPoolRestorePoints_Get ```java -/** Samples for SqlPoolRestorePoints Get. */ +/** + * Samples for SqlPoolRestorePoints Get. + */ public final class SqlPoolRestorePointsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolRestorePointsGet.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolRestorePointsGet.json */ /** * Sample code: Gets a Sql pool restore point. - * + * * @param manager Entry point to SynapseManager. */ public static void getsASqlPoolRestorePoint(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolRestorePoints() - .getWithResponse( - "Default-SQL-SouthEastAsia", - "testws", - "testpool", - "131546477590000000", - com.azure.core.util.Context.NONE); + manager.sqlPoolRestorePoints().getWithResponse("Default-SQL-SouthEastAsia", "testws", "testpool", + "131546477590000000", com.azure.core.util.Context.NONE); } } ``` @@ -4404,21 +4273,23 @@ public final class SqlPoolRestorePointsGetSamples { ### SqlPoolRestorePoints_List ```java -/** Samples for SqlPoolRestorePoints List. */ +/** + * Samples for SqlPoolRestorePoints List. + */ public final class SqlPoolRestorePointsListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolRestorePoints.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolRestorePoints.json */ /** * Sample code: Get a list of restore points of a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ - public static void getAListOfRestorePointsOfASQLAnalyticsPool( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolRestorePoints() - .list("Default-SQL-SouthEastAsia", "testserver", "testDatabase", com.azure.core.util.Context.NONE); + public static void + getAListOfRestorePointsOfASQLAnalyticsPool(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.sqlPoolRestorePoints().list("Default-SQL-SouthEastAsia", "testserver", "testDatabase", + com.azure.core.util.Context.NONE); } } ``` @@ -4426,20 +4297,22 @@ public final class SqlPoolRestorePointsListSamples { ### SqlPoolSchemas_Get ```java -/** Samples for SqlPoolSchemas Get. */ +/** + * Samples for SqlPoolSchemas Get. + */ public final class SqlPoolSchemasGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolSchemaGet.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolSchemaGet.json */ /** * Sample code: Get database schema. - * + * * @param manager Entry point to SynapseManager. */ public static void getDatabaseSchema(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolSchemas() - .getWithResponse("myRG", "serverName", "myDatabase", "dbo", com.azure.core.util.Context.NONE); + manager.sqlPoolSchemas().getWithResponse("myRG", "serverName", "myDatabase", "dbo", + com.azure.core.util.Context.NONE); } } ``` @@ -4447,14 +4320,17 @@ public final class SqlPoolSchemasGetSamples { ### SqlPoolSchemas_List ```java -/** Samples for SqlPoolSchemas List. */ +/** + * Samples for SqlPoolSchemas List. + */ public final class SqlPoolSchemasListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolSchema.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolSchema.json */ /** * Sample code: List the schema in a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ public static void listTheSchemaInASQLAnalyticsPool(com.azure.resourcemanager.synapse.SynapseManager manager) { @@ -4470,59 +4346,45 @@ import com.azure.resourcemanager.synapse.models.SecurityAlertPolicyName; import com.azure.resourcemanager.synapse.models.SecurityAlertPolicyState; import com.azure.resourcemanager.synapse.models.SqlPoolSecurityAlertPolicy; -/** Samples for SqlPoolSecurityAlertPolicies CreateOrUpdate. */ +/** + * Samples for SqlPoolSecurityAlertPolicies CreateOrUpdate. + */ public final class SqlPoolSecurityAlertPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateSqlPoolSecurityAlertWithAllParameters.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CreateOrUpdateSqlPoolSecurityAlertWithAllParameters.json */ /** * Sample code: Update a Sql pool's threat detection policy with all parameters. - * + * * @param manager Entry point to SynapseManager. */ public static void updateASqlPoolSThreatDetectionPolicyWithAllParameters( com.azure.resourcemanager.synapse.SynapseManager manager) { - SqlPoolSecurityAlertPolicy resource = - manager - .sqlPoolSecurityAlertPolicies() - .getWithResponse( - "securityalert-4799", - "securityalert-6440", - "testdb", - SecurityAlertPolicyName.DEFAULT, - com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() - .withState(SecurityAlertPolicyState.ENABLED) - .withEmailAccountAdmins(true) + SqlPoolSecurityAlertPolicy resource + = manager.sqlPoolSecurityAlertPolicies().getWithResponse("securityalert-4799", "securityalert-6440", + "testdb", SecurityAlertPolicyName.DEFAULT, com.azure.core.util.Context.NONE).getValue(); + resource.update().withState(SecurityAlertPolicyState.ENABLED).withEmailAccountAdmins(true) .withStorageEndpoint("https://mystorage.blob.core.windows.net") .withStorageAccountAccessKey( "sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==") - .withRetentionDays(6) - .apply(); + .withRetentionDays(6).apply(); } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateSqlPoolSecurityAlertWithMinParameters.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CreateOrUpdateSqlPoolSecurityAlertWithMinParameters.json */ /** * Sample code: Update a Sql pool's threat detection policy with minimal parameters. - * + * * @param manager Entry point to SynapseManager. */ public static void updateASqlPoolSThreatDetectionPolicyWithMinimalParameters( com.azure.resourcemanager.synapse.SynapseManager manager) { - SqlPoolSecurityAlertPolicy resource = - manager - .sqlPoolSecurityAlertPolicies() - .getWithResponse( - "securityalert-4799", - "securityalert-6440", - "testdb", - SecurityAlertPolicyName.DEFAULT, - com.azure.core.util.Context.NONE) - .getValue(); + SqlPoolSecurityAlertPolicy resource + = manager.sqlPoolSecurityAlertPolicies().getWithResponse("securityalert-4799", "securityalert-6440", + "testdb", SecurityAlertPolicyName.DEFAULT, com.azure.core.util.Context.NONE).getValue(); resource.update().withState(SecurityAlertPolicyState.ENABLED).apply(); } } @@ -4533,25 +4395,22 @@ public final class SqlPoolSecurityAlertPoliciesCreateOrUpdateSamples { ```java import com.azure.resourcemanager.synapse.models.SecurityAlertPolicyName; -/** Samples for SqlPoolSecurityAlertPolicies Get. */ +/** + * Samples for SqlPoolSecurityAlertPolicies Get. + */ public final class SqlPoolSecurityAlertPoliciesGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolSecurityAlert.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolSecurityAlert.json */ /** * Sample code: Get a security alert of a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ public static void getASecurityAlertOfASQLAnalyticsPool(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolSecurityAlertPolicies() - .getWithResponse( - "securityalert-6852", - "securityalert-2080", - "testdb", - SecurityAlertPolicyName.DEFAULT, - com.azure.core.util.Context.NONE); + manager.sqlPoolSecurityAlertPolicies().getWithResponse("securityalert-6852", "securityalert-2080", "testdb", + SecurityAlertPolicyName.DEFAULT, com.azure.core.util.Context.NONE); } } ``` @@ -4559,20 +4418,22 @@ public final class SqlPoolSecurityAlertPoliciesGetSamples { ### SqlPoolSecurityAlertPolicies_List ```java -/** Samples for SqlPoolSecurityAlertPolicies List. */ +/** + * Samples for SqlPoolSecurityAlertPolicies List. + */ public final class SqlPoolSecurityAlertPoliciesListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolSecurityAlertPolicies_List.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * SqlPoolSecurityAlertPolicies_List.json */ /** * Sample code: Get a security alert of a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ public static void getASecurityAlertOfASQLAnalyticsPool(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolSecurityAlertPolicies() - .list("securityalert-6852", "securityalert-2080", "testdb", com.azure.core.util.Context.NONE); + manager.sqlPoolSecurityAlertPolicies().list("securityalert-6852", "securityalert-2080", "testdb", + com.azure.core.util.Context.NONE); } } ``` @@ -4580,22 +4441,23 @@ public final class SqlPoolSecurityAlertPoliciesListSamples { ### SqlPoolSensitivityLabels_Delete ```java -/** Samples for SqlPoolSensitivityLabels Delete. */ +/** + * Samples for SqlPoolSensitivityLabels Delete. + */ public final class SqlPoolSensitivityLabelsDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteSqlPoolColumnSensitivityLabel.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * DeleteSqlPoolColumnSensitivityLabel.json */ /** * Sample code: Deletes the sensitivity label of a given column. - * + * * @param manager Entry point to SynapseManager. */ - public static void deletesTheSensitivityLabelOfAGivenColumn( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolSensitivityLabels() - .deleteWithResponse( - "myRG", "myServer", "myDatabase", "dbo", "myTable", "myColumn", com.azure.core.util.Context.NONE); + public static void + deletesTheSensitivityLabelOfAGivenColumn(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.sqlPoolSensitivityLabels().deleteWithResponse("myRG", "myServer", "myDatabase", "dbo", "myTable", + "myColumn", com.azure.core.util.Context.NONE); } } ``` @@ -4603,22 +4465,23 @@ public final class SqlPoolSensitivityLabelsDeleteSamples { ### SqlPoolSensitivityLabels_DisableRecommendation ```java -/** Samples for SqlPoolSensitivityLabels DisableRecommendation. */ +/** + * Samples for SqlPoolSensitivityLabels DisableRecommendation. + */ public final class SqlPoolSensitivityLabelsDisableRecommendationSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/RecommendedColumnSensitivityLabelDisable.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * RecommendedColumnSensitivityLabelDisable.json */ /** * Sample code: Disables sensitivity recommendations on a given column. - * + * * @param manager Entry point to SynapseManager. */ - public static void disablesSensitivityRecommendationsOnAGivenColumn( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolSensitivityLabels() - .disableRecommendationWithResponse( - "myRG", "myServer", "myDatabase", "dbo", "myTable", "myColumn", com.azure.core.util.Context.NONE); + public static void + disablesSensitivityRecommendationsOnAGivenColumn(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.sqlPoolSensitivityLabels().disableRecommendationWithResponse("myRG", "myServer", "myDatabase", "dbo", + "myTable", "myColumn", com.azure.core.util.Context.NONE); } } ``` @@ -4626,22 +4489,23 @@ public final class SqlPoolSensitivityLabelsDisableRecommendationSamples { ### SqlPoolSensitivityLabels_EnableRecommendation ```java -/** Samples for SqlPoolSensitivityLabels EnableRecommendation. */ +/** + * Samples for SqlPoolSensitivityLabels EnableRecommendation. + */ public final class SqlPoolSensitivityLabelsEnableRecommendationSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/RecommendedColumnSensitivityLabelEnable.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * RecommendedColumnSensitivityLabelEnable.json */ /** * Sample code: Enables sensitivity recommendations on a given column. - * + * * @param manager Entry point to SynapseManager. */ - public static void enablesSensitivityRecommendationsOnAGivenColumn( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolSensitivityLabels() - .enableRecommendationWithResponse( - "myRG", "myServer", "myDatabase", "dbo", "myTable", "myColumn", com.azure.core.util.Context.NONE); + public static void + enablesSensitivityRecommendationsOnAGivenColumn(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.sqlPoolSensitivityLabels().enableRecommendationWithResponse("myRG", "myServer", "myDatabase", "dbo", + "myTable", "myColumn", com.azure.core.util.Context.NONE); } } ``` @@ -4651,28 +4515,22 @@ public final class SqlPoolSensitivityLabelsEnableRecommendationSamples { ```java import com.azure.resourcemanager.synapse.models.SensitivityLabelSource; -/** Samples for SqlPoolSensitivityLabels Get. */ +/** + * Samples for SqlPoolSensitivityLabels Get. + */ public final class SqlPoolSensitivityLabelsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolColumnSensitivityLabelGet.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * GetSqlPoolColumnSensitivityLabelGet.json */ /** * Sample code: Gets the sensitivity label of a given column. - * + * * @param manager Entry point to SynapseManager. */ public static void getsTheSensitivityLabelOfAGivenColumn(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolSensitivityLabels() - .getWithResponse( - "myRG", - "myServer", - "myDatabase", - "dbo", - "myTable", - "myColumn", - SensitivityLabelSource.CURRENT, - com.azure.core.util.Context.NONE); + manager.sqlPoolSensitivityLabels().getWithResponse("myRG", "myServer", "myDatabase", "dbo", "myTable", + "myColumn", SensitivityLabelSource.CURRENT, com.azure.core.util.Context.NONE); } } ``` @@ -4680,21 +4538,23 @@ public final class SqlPoolSensitivityLabelsGetSamples { ### SqlPoolSensitivityLabels_ListCurrent ```java -/** Samples for SqlPoolSensitivityLabels ListCurrent. */ +/** + * Samples for SqlPoolSensitivityLabels ListCurrent. + */ public final class SqlPoolSensitivityLabelsListCurrentSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolsSensitivityLabelsWithSourceCurrent.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * ListSqlPoolsSensitivityLabelsWithSourceCurrent.json */ /** * Sample code: Gets the current sensitivity labels of a given SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ public static void getsTheCurrentSensitivityLabelsOfAGivenSQLAnalyticsPool( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolSensitivityLabels() - .listCurrent("myRG", "myServer", "myDatabase", null, com.azure.core.util.Context.NONE); + manager.sqlPoolSensitivityLabels().listCurrent("myRG", "myServer", "myDatabase", null, + com.azure.core.util.Context.NONE); } } ``` @@ -4702,21 +4562,23 @@ public final class SqlPoolSensitivityLabelsListCurrentSamples { ### SqlPoolSensitivityLabels_ListRecommended ```java -/** Samples for SqlPoolSensitivityLabels ListRecommended. */ +/** + * Samples for SqlPoolSensitivityLabels ListRecommended. + */ public final class SqlPoolSensitivityLabelsListRecommendedSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolSensitivityLabelsWithSourceRecommended.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * ListSqlPoolSensitivityLabelsWithSourceRecommended.json */ /** * Sample code: Gets the recommended sensitivity labels of a given SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ public static void getsTheRecommendedSensitivityLabelsOfAGivenSQLAnalyticsPool( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolSensitivityLabels() - .listRecommended("myRG", "myServer", "myDatabase", null, null, null, com.azure.core.util.Context.NONE); + manager.sqlPoolSensitivityLabels().listRecommended("myRG", "myServer", "myDatabase", null, null, null, + com.azure.core.util.Context.NONE); } } ``` @@ -4731,58 +4593,36 @@ import com.azure.resourcemanager.synapse.models.SensitivityLabelUpdateKind; import com.azure.resourcemanager.synapse.models.SensitivityLabelUpdateList; import java.util.Arrays; -/** Samples for SqlPoolSensitivityLabels Update. */ +/** + * Samples for SqlPoolSensitivityLabels Update. + */ public final class SqlPoolSensitivityLabelsUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SensitivityLabelsCurrentUpdate.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * SensitivityLabelsCurrentUpdate.json */ /** * Sample code: Update sensitivity labels of a given database using an operations batch. - * + * * @param manager Entry point to SynapseManager. */ public static void updateSensitivityLabelsOfAGivenDatabaseUsingAnOperationsBatch( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolSensitivityLabels() - .updateWithResponse( - "myRG", - "myWorkspace", - "mySqlPool", - new SensitivityLabelUpdateList() - .withOperations( - Arrays - .asList( - new SensitivityLabelUpdateInner() - .withOp(SensitivityLabelUpdateKind.SET) - .withSchema("dbo") - .withTable("table1") - .withColumn("column1") - .withSensitivityLabel( - new SensitivityLabelInner() - .withLabelName("Highly Confidential") - .withLabelId("3A477B16-9423-432B-AA97-6069B481CEC3") - .withInformationType("Financial") - .withInformationTypeId("1D3652D6-422C-4115-82F1-65DAEBC665C8") - .withRank(SensitivityLabelRank.LOW)), - new SensitivityLabelUpdateInner() - .withOp(SensitivityLabelUpdateKind.SET) - .withSchema("dbo") - .withTable("table2") - .withColumn("column2") - .withSensitivityLabel( - new SensitivityLabelInner() - .withLabelName("PII") - .withLabelId("bf91e08c-f4f0-478a-b016-25164b2a65ff") - .withInformationType("PhoneNumber") - .withInformationTypeId("d22fa6e9-5ee4-3bde-4c2b-a409604c4646") - .withRank(SensitivityLabelRank.CRITICAL)), - new SensitivityLabelUpdateInner() - .withOp(SensitivityLabelUpdateKind.REMOVE) - .withSchema("dbo") - .withTable("Table1") - .withColumn("Column3"))), - com.azure.core.util.Context.NONE); + manager.sqlPoolSensitivityLabels().updateWithResponse("myRG", "myWorkspace", "mySqlPool", + new SensitivityLabelUpdateList().withOperations(Arrays.asList(new SensitivityLabelUpdateInner() + .withOp(SensitivityLabelUpdateKind.SET).withSchema("dbo").withTable("table1").withColumn("column1") + .withSensitivityLabel(new SensitivityLabelInner().withLabelName("Highly Confidential") + .withLabelId("3A477B16-9423-432B-AA97-6069B481CEC3").withInformationType("Financial") + .withInformationTypeId("1D3652D6-422C-4115-82F1-65DAEBC665C8").withRank(SensitivityLabelRank.LOW)), + new SensitivityLabelUpdateInner().withOp(SensitivityLabelUpdateKind.SET).withSchema("dbo") + .withTable("table2").withColumn("column2") + .withSensitivityLabel(new SensitivityLabelInner().withLabelName("PII") + .withLabelId("bf91e08c-f4f0-478a-b016-25164b2a65ff").withInformationType("PhoneNumber") + .withInformationTypeId("d22fa6e9-5ee4-3bde-4c2b-a409604c4646") + .withRank(SensitivityLabelRank.CRITICAL)), + new SensitivityLabelUpdateInner().withOp(SensitivityLabelUpdateKind.REMOVE).withSchema("dbo") + .withTable("Table1").withColumn("Column3"))), + com.azure.core.util.Context.NONE); } } ``` @@ -4790,22 +4630,23 @@ public final class SqlPoolSensitivityLabelsUpdateSamples { ### SqlPoolTableColumns_ListByTableName ```java -/** Samples for SqlPoolTableColumns ListByTableName. */ +/** + * Samples for SqlPoolTableColumns ListByTableName. + */ public final class SqlPoolTableColumnsListByTableNameSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolColumns.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolColumns.json */ /** * Sample code: List the columns in a table of a given schema in a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ public static void listTheColumnsInATableOfAGivenSchemaInASQLAnalyticsPool( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolTableColumns() - .listByTableName( - "myRG", "serverName", "myDatabase", "dbo", "table1", null, com.azure.core.util.Context.NONE); + manager.sqlPoolTableColumns().listByTableName("myRG", "serverName", "myDatabase", "dbo", "table1", null, + com.azure.core.util.Context.NONE); } } ``` @@ -4813,20 +4654,22 @@ public final class SqlPoolTableColumnsListByTableNameSamples { ### SqlPoolTables_Get ```java -/** Samples for SqlPoolTables Get. */ +/** + * Samples for SqlPoolTables Get. + */ public final class SqlPoolTablesGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolTableGet.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolTableGet.json */ /** * Sample code: Get database table. - * + * * @param manager Entry point to SynapseManager. */ public static void getDatabaseTable(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolTables() - .getWithResponse("myRG", "serverName", "myDatabase", "dbo", "table1", com.azure.core.util.Context.NONE); + manager.sqlPoolTables().getWithResponse("myRG", "serverName", "myDatabase", "dbo", "table1", + com.azure.core.util.Context.NONE); } } ``` @@ -4834,21 +4677,23 @@ public final class SqlPoolTablesGetSamples { ### SqlPoolTables_ListBySchema ```java -/** Samples for SqlPoolTables ListBySchema. */ +/** + * Samples for SqlPoolTables ListBySchema. + */ public final class SqlPoolTablesListBySchemaSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolTables.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolTables.json */ /** * Sample code: List the tables of a given schema in a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ - public static void listTheTablesOfAGivenSchemaInASQLAnalyticsPool( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolTables() - .listBySchema("myRG", "serverName", "myDatabase", "dbo", null, com.azure.core.util.Context.NONE); + public static void + listTheTablesOfAGivenSchemaInASQLAnalyticsPool(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.sqlPoolTables().listBySchema("myRG", "serverName", "myDatabase", "dbo", null, + com.azure.core.util.Context.NONE); } } ``` @@ -4859,24 +4704,24 @@ public final class SqlPoolTablesListBySchemaSamples { import com.azure.resourcemanager.synapse.models.TransparentDataEncryptionName; import com.azure.resourcemanager.synapse.models.TransparentDataEncryptionStatus; -/** Samples for SqlPoolTransparentDataEncryptions CreateOrUpdate. */ +/** + * Samples for SqlPoolTransparentDataEncryptions CreateOrUpdate. + */ public final class SqlPoolTransparentDataEncryptionsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateSqlPoolTransparentDataEncryption.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CreateOrUpdateSqlPoolTransparentDataEncryption.json */ /** * Sample code: Create or update a Sql pool's transparent data encryption configuration. - * + * * @param manager Entry point to SynapseManager. */ public static void createOrUpdateASqlPoolSTransparentDataEncryptionConfiguration( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolTransparentDataEncryptions() - .define(TransparentDataEncryptionName.CURRENT) + manager.sqlPoolTransparentDataEncryptions().define(TransparentDataEncryptionName.CURRENT) .withExistingSqlPool("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187") - .withStatus(TransparentDataEncryptionStatus.ENABLED) - .create(); + .withStatus(TransparentDataEncryptionStatus.ENABLED).create(); } } ``` @@ -4886,26 +4731,23 @@ public final class SqlPoolTransparentDataEncryptionsCreateOrUpdateSamples { ```java import com.azure.resourcemanager.synapse.models.TransparentDataEncryptionName; -/** Samples for SqlPoolTransparentDataEncryptions Get. */ +/** + * Samples for SqlPoolTransparentDataEncryptions Get. + */ public final class SqlPoolTransparentDataEncryptionsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolTransparentDataEncryption.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * GetSqlPoolTransparentDataEncryption.json */ /** * Sample code: Get transparent data encryption configuration of a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ public static void getTransparentDataEncryptionConfigurationOfASQLAnalyticsPool( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolTransparentDataEncryptions() - .getWithResponse( - "sqlcrudtest-6852", - "sqlcrudtest-2080", - "sqlcrudtest-9187", - TransparentDataEncryptionName.CURRENT, - com.azure.core.util.Context.NONE); + manager.sqlPoolTransparentDataEncryptions().getWithResponse("sqlcrudtest-6852", "sqlcrudtest-2080", + "sqlcrudtest-9187", TransparentDataEncryptionName.CURRENT, com.azure.core.util.Context.NONE); } } ``` @@ -4913,21 +4755,23 @@ public final class SqlPoolTransparentDataEncryptionsGetSamples { ### SqlPoolTransparentDataEncryptions_List ```java -/** Samples for SqlPoolTransparentDataEncryptions List. */ +/** + * Samples for SqlPoolTransparentDataEncryptions List. + */ public final class SqlPoolTransparentDataEncryptionsListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolTransparentDataEncryptionList.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * GetSqlPoolTransparentDataEncryptionList.json */ /** * Sample code: Get list of transparent data encryption configurations of a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ public static void getListOfTransparentDataEncryptionConfigurationsOfASQLAnalyticsPool( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolTransparentDataEncryptions() - .list("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187", com.azure.core.util.Context.NONE); + manager.sqlPoolTransparentDataEncryptions().list("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187", + com.azure.core.util.Context.NONE); } } ``` @@ -4935,14 +4779,17 @@ public final class SqlPoolTransparentDataEncryptionsListSamples { ### SqlPoolUsages_List ```java -/** Samples for SqlPoolUsages List. */ +/** + * Samples for SqlPoolUsages List. + */ public final class SqlPoolUsagesListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolUsageMetricsList.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolUsageMetricsList.json */ /** * Sample code: List the usages of a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ public static void listTheUsagesOfASQLAnalyticsPool(com.azure.resourcemanager.synapse.SynapseManager manager) { @@ -4959,36 +4806,29 @@ import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentPolicyBaselineName; import java.util.Arrays; -/** Samples for SqlPoolVulnerabilityAssessmentRuleBaselines CreateOrUpdate. */ +/** + * Samples for SqlPoolVulnerabilityAssessmentRuleBaselines CreateOrUpdate. + */ public final class SqlPoolVulnerabilityAssessmentRuleBaselinesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateSqlPoolVulnerabilityAssessmentRuleBaseline.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CreateOrUpdateSqlPoolVulnerabilityAssessmentRuleBaseline.json */ /** * Sample code: Creates or updates a database's vulnerability assessment rule baseline. - * + * * @param manager Entry point to SynapseManager. */ public static void createsOrUpdatesADatabaseSVulnerabilityAssessmentRuleBaseline( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolVulnerabilityAssessmentRuleBaselines() - .define(VulnerabilityAssessmentPolicyBaselineName.DEFAULT) - .withExistingRule( - "vulnerabilityaseessmenttest-4799", - "vulnerabilityaseessmenttest-6440", - "testdb", - VulnerabilityAssessmentName.DEFAULT, - "VA1001") - .withBaselineResults( - Arrays - .asList( - new SqlPoolVulnerabilityAssessmentRuleBaselineItem() - .withResult(Arrays.asList("userA", "SELECT")), - new SqlPoolVulnerabilityAssessmentRuleBaselineItem() - .withResult(Arrays.asList("userB", "SELECT")), - new SqlPoolVulnerabilityAssessmentRuleBaselineItem() - .withResult(Arrays.asList("userC", "SELECT", "tableId_4")))) + manager.sqlPoolVulnerabilityAssessmentRuleBaselines().define(VulnerabilityAssessmentPolicyBaselineName.DEFAULT) + .withExistingRule("vulnerabilityaseessmenttest-4799", "vulnerabilityaseessmenttest-6440", "testdb", + VulnerabilityAssessmentName.DEFAULT, "VA1001") + .withBaselineResults(Arrays.asList( + new SqlPoolVulnerabilityAssessmentRuleBaselineItem().withResult(Arrays.asList("userA", "SELECT")), + new SqlPoolVulnerabilityAssessmentRuleBaselineItem().withResult(Arrays.asList("userB", "SELECT")), + new SqlPoolVulnerabilityAssessmentRuleBaselineItem() + .withResult(Arrays.asList("userC", "SELECT", "tableId_4")))) .create(); } } @@ -5000,28 +4840,24 @@ public final class SqlPoolVulnerabilityAssessmentRuleBaselinesCreateOrUpdateSamp import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentPolicyBaselineName; -/** Samples for SqlPoolVulnerabilityAssessmentRuleBaselines Delete. */ +/** + * Samples for SqlPoolVulnerabilityAssessmentRuleBaselines Delete. + */ public final class SqlPoolVulnerabilityAssessmentRuleBaselinesDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteSqlPoolVulnerabilityAssessmentRuleBaseline.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * DeleteSqlPoolVulnerabilityAssessmentRuleBaseline.json */ /** * Sample code: Removes a database's vulnerability assessment rule baseline. - * + * * @param manager Entry point to SynapseManager. */ - public static void removesADatabaseSVulnerabilityAssessmentRuleBaseline( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolVulnerabilityAssessmentRuleBaselines() - .deleteWithResponse( - "vulnerabilityaseessmenttest-4799", - "vulnerabilityaseessmenttest-6440", - "testdb", - VulnerabilityAssessmentName.DEFAULT, - "VA1001", - VulnerabilityAssessmentPolicyBaselineName.DEFAULT, - com.azure.core.util.Context.NONE); + public static void + removesADatabaseSVulnerabilityAssessmentRuleBaseline(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.sqlPoolVulnerabilityAssessmentRuleBaselines().deleteWithResponse("vulnerabilityaseessmenttest-4799", + "vulnerabilityaseessmenttest-6440", "testdb", VulnerabilityAssessmentName.DEFAULT, "VA1001", + VulnerabilityAssessmentPolicyBaselineName.DEFAULT, com.azure.core.util.Context.NONE); } } ``` @@ -5032,28 +4868,24 @@ public final class SqlPoolVulnerabilityAssessmentRuleBaselinesDeleteSamples { import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentPolicyBaselineName; -/** Samples for SqlPoolVulnerabilityAssessmentRuleBaselines Get. */ +/** + * Samples for SqlPoolVulnerabilityAssessmentRuleBaselines Get. + */ public final class SqlPoolVulnerabilityAssessmentRuleBaselinesGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolVulnerabilityAssessmentRuleBaselineGet.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * SqlPoolVulnerabilityAssessmentRuleBaselineGet.json */ /** * Sample code: Gets a Sql pool's vulnerability assessment rule baseline. - * + * * @param manager Entry point to SynapseManager. */ - public static void getsASqlPoolSVulnerabilityAssessmentRuleBaseline( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolVulnerabilityAssessmentRuleBaselines() - .getWithResponse( - "vulnerabilityaseessmenttest-4711", - "vulnerabilityaseessmenttest-6411", - "testdb", - VulnerabilityAssessmentName.DEFAULT, - "VA1001", - VulnerabilityAssessmentPolicyBaselineName.MASTER, - com.azure.core.util.Context.NONE); + public static void + getsASqlPoolSVulnerabilityAssessmentRuleBaseline(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.sqlPoolVulnerabilityAssessmentRuleBaselines().getWithResponse("vulnerabilityaseessmenttest-4711", + "vulnerabilityaseessmenttest-6411", "testdb", VulnerabilityAssessmentName.DEFAULT, "VA1001", + VulnerabilityAssessmentPolicyBaselineName.MASTER, com.azure.core.util.Context.NONE); } } ``` @@ -5063,27 +4895,24 @@ public final class SqlPoolVulnerabilityAssessmentRuleBaselinesGetSamples { ```java import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; -/** Samples for SqlPoolVulnerabilityAssessmentScans Export. */ +/** + * Samples for SqlPoolVulnerabilityAssessmentScans Export. + */ public final class SqlPoolVulnerabilityAssessmentScansExportSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ExportSqlPoolVulnerabilityAssessmentScan.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * ExportSqlPoolVulnerabilityAssessmentScan.json */ /** * Sample code: Export a database's vulnerability assessment scan results. - * + * * @param manager Entry point to SynapseManager. */ - public static void exportADatabaseSVulnerabilityAssessmentScanResults( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolVulnerabilityAssessmentScans() - .exportWithResponse( - "vulnerabilityassessmenttest-4799", - "vulnerabilityassessmenttest-6440", - "testdb", - VulnerabilityAssessmentName.DEFAULT, - "scan001", - com.azure.core.util.Context.NONE); + public static void + exportADatabaseSVulnerabilityAssessmentScanResults(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.sqlPoolVulnerabilityAssessmentScans().exportWithResponse("vulnerabilityassessmenttest-4799", + "vulnerabilityassessmenttest-6440", "testdb", VulnerabilityAssessmentName.DEFAULT, "scan001", + com.azure.core.util.Context.NONE); } } ``` @@ -5093,27 +4922,24 @@ public final class SqlPoolVulnerabilityAssessmentScansExportSamples { ```java import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; -/** Samples for SqlPoolVulnerabilityAssessmentScans Get. */ +/** + * Samples for SqlPoolVulnerabilityAssessmentScans Get. + */ public final class SqlPoolVulnerabilityAssessmentScansGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolVulnerabilityAssessmentScanRecordsGet.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * SqlPoolVulnerabilityAssessmentScanRecordsGet.json */ /** * Sample code: Gets a database vulnerability assessment scan record by scan ID. - * + * * @param manager Entry point to SynapseManager. */ public static void getsADatabaseVulnerabilityAssessmentScanRecordByScanID( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolVulnerabilityAssessmentScans() - .getWithResponse( - "vulnerabilityassessmenttest-4711", - "vulnerabilityassessmenttest-6411", - "testdb", - VulnerabilityAssessmentName.DEFAULT, - "scan001", - com.azure.core.util.Context.NONE); + manager.sqlPoolVulnerabilityAssessmentScans().getWithResponse("vulnerabilityassessmenttest-4711", + "vulnerabilityassessmenttest-6411", "testdb", VulnerabilityAssessmentName.DEFAULT, "scan001", + com.azure.core.util.Context.NONE); } } ``` @@ -5123,27 +4949,24 @@ public final class SqlPoolVulnerabilityAssessmentScansGetSamples { ```java import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; -/** Samples for SqlPoolVulnerabilityAssessmentScans InitiateScan. */ +/** + * Samples for SqlPoolVulnerabilityAssessmentScans InitiateScan. + */ public final class SqlPoolVulnerabilityAssessmentScansInitiateScanSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ExecuteSqlPoolVulnerabilityAssessmentScans.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * ExecuteSqlPoolVulnerabilityAssessmentScans.json */ /** * Sample code: Executes a Sql pool's vulnerability assessment scan. - * + * * @param manager Entry point to SynapseManager. */ - public static void executesASqlPoolSVulnerabilityAssessmentScan( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolVulnerabilityAssessmentScans() - .initiateScan( - "vulnerabilityassessmenttest-4711", - "vulnerabilityassessmenttest-6411", - "testdb", - VulnerabilityAssessmentName.DEFAULT, - "scan01", - com.azure.core.util.Context.NONE); + public static void + executesASqlPoolSVulnerabilityAssessmentScan(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.sqlPoolVulnerabilityAssessmentScans().initiateScan("vulnerabilityassessmenttest-4711", + "vulnerabilityassessmenttest-6411", "testdb", VulnerabilityAssessmentName.DEFAULT, "scan01", + com.azure.core.util.Context.NONE); } } ``` @@ -5153,26 +4976,24 @@ public final class SqlPoolVulnerabilityAssessmentScansInitiateScanSamples { ```java import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; -/** Samples for SqlPoolVulnerabilityAssessmentScans List. */ +/** + * Samples for SqlPoolVulnerabilityAssessmentScans List. + */ public final class SqlPoolVulnerabilityAssessmentScansListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolVulnerabilityAssessmentScanRecords.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * ListSqlPoolVulnerabilityAssessmentScanRecords.json */ /** * Sample code: Get a vulnerability scan record of a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ - public static void getAVulnerabilityScanRecordOfASQLAnalyticsPool( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolVulnerabilityAssessmentScans() - .list( - "vulnerabilityassessmenttest-4711", - "vulnerabilityassessmenttest-6411", - "testdb", - VulnerabilityAssessmentName.DEFAULT, - com.azure.core.util.Context.NONE); + public static void + getAVulnerabilityScanRecordOfASQLAnalyticsPool(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.sqlPoolVulnerabilityAssessmentScans().list("vulnerabilityassessmenttest-4711", + "vulnerabilityassessmenttest-6411", "testdb", VulnerabilityAssessmentName.DEFAULT, + com.azure.core.util.Context.NONE); } } ``` @@ -5184,73 +5005,67 @@ import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentRecurringScansProperties; import java.util.Arrays; -/** Samples for SqlPoolVulnerabilityAssessments CreateOrUpdate. */ +/** + * Samples for SqlPoolVulnerabilityAssessments CreateOrUpdate. + */ public final class SqlPoolVulnerabilityAssessmentsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateSqlPoolVulnerabilityAssessmentWithContainerSasKeyAndMinParameters.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CreateOrUpdateSqlPoolVulnerabilityAssessmentWithContainerSasKeyAndMinParameters.json */ /** * Sample code: Create a database's vulnerability assessment with minimal parameters, when storageContainerSasKey is * specified. - * + * * @param manager Entry point to SynapseManager. */ public static void createADatabaseSVulnerabilityAssessmentWithMinimalParametersWhenStorageContainerSasKeyIsSpecified( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolVulnerabilityAssessments() - .define(VulnerabilityAssessmentName.DEFAULT) + manager.sqlPoolVulnerabilityAssessments().define(VulnerabilityAssessmentName.DEFAULT) .withExistingSqlPool("vulnerabilityaseessmenttest-4799", "vulnerabilityaseessmenttest-6440", "testdb") .withStorageContainerPath("https://myStorage.blob.core.windows.net/vulnerability-assessment/") - .withStorageContainerSasKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") - .create(); + .withStorageContainerSasKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").create(); } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateSqlPoolVulnerabilityAssessmentWithAllParameters.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CreateOrUpdateSqlPoolVulnerabilityAssessmentWithAllParameters.json */ /** * Sample code: Create a database's vulnerability assessment with all parameters. - * + * * @param manager Entry point to SynapseManager. */ public static void createADatabaseSVulnerabilityAssessmentWithAllParameters( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolVulnerabilityAssessments() - .define(VulnerabilityAssessmentName.DEFAULT) + manager.sqlPoolVulnerabilityAssessments().define(VulnerabilityAssessmentName.DEFAULT) .withExistingSqlPool("vulnerabilityaseessmenttest-4799", "vulnerabilityaseessmenttest-6440", "testdb") .withStorageContainerPath("https://myStorage.blob.core.windows.net/vulnerability-assessment/") .withStorageContainerSasKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") .withStorageAccountAccessKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") - .withRecurringScans( - new VulnerabilityAssessmentRecurringScansProperties() - .withIsEnabled(true) - .withEmailSubscriptionAdmins(true) - .withEmails(Arrays.asList("email1@mail.com", "email2@mail.com"))) + .withRecurringScans(new VulnerabilityAssessmentRecurringScansProperties().withIsEnabled(true) + .withEmailSubscriptionAdmins(true).withEmails(Arrays.asList("email1@mail.com", "email2@mail.com"))) .create(); } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateVulnerabilityAssessmentWithStorageAccessKeyAndMinParameters.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CreateOrUpdateVulnerabilityAssessmentWithStorageAccessKeyAndMinParameters.json */ /** * Sample code: Create a database's vulnerability assessment with minimal parameters, when storageAccountAccessKey * is specified. - * + * * @param manager Entry point to SynapseManager. */ public static void createADatabaseSVulnerabilityAssessmentWithMinimalParametersWhenStorageAccountAccessKeyIsSpecified( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolVulnerabilityAssessments() - .define(VulnerabilityAssessmentName.DEFAULT) + manager.sqlPoolVulnerabilityAssessments().define(VulnerabilityAssessmentName.DEFAULT) .withExistingSqlPool("vulnerabilityaseessmenttest-4799", "vulnerabilityaseessmenttest-6440", "testdb") .withStorageContainerPath("https://myStorage.blob.core.windows.net/vulnerability-assessment/") - .withStorageAccountAccessKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") - .create(); + .withStorageAccountAccessKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").create(); } } ``` @@ -5260,26 +5075,24 @@ public final class SqlPoolVulnerabilityAssessmentsCreateOrUpdateSamples { ```java import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; -/** Samples for SqlPoolVulnerabilityAssessments Delete. */ +/** + * Samples for SqlPoolVulnerabilityAssessments Delete. + */ public final class SqlPoolVulnerabilityAssessmentsDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteSqlPoolVulnerabilityAssessment.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * DeleteSqlPoolVulnerabilityAssessment.json */ /** * Sample code: Remove a database's vulnerability assessment. - * + * * @param manager Entry point to SynapseManager. */ - public static void removeADatabaseSVulnerabilityAssessment( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolVulnerabilityAssessments() - .deleteWithResponse( - "vulnerabilityaseessmenttest-4799", - "vulnerabilityaseessmenttest-6440", - "testdb", - VulnerabilityAssessmentName.DEFAULT, - com.azure.core.util.Context.NONE); + public static void + removeADatabaseSVulnerabilityAssessment(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.sqlPoolVulnerabilityAssessments().deleteWithResponse("vulnerabilityaseessmenttest-4799", + "vulnerabilityaseessmenttest-6440", "testdb", VulnerabilityAssessmentName.DEFAULT, + com.azure.core.util.Context.NONE); } } ``` @@ -5289,25 +5102,23 @@ public final class SqlPoolVulnerabilityAssessmentsDeleteSamples { ```java import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; -/** Samples for SqlPoolVulnerabilityAssessments Get. */ +/** + * Samples for SqlPoolVulnerabilityAssessments Get. + */ public final class SqlPoolVulnerabilityAssessmentsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolVulnerabilityAssessment.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * GetSqlPoolVulnerabilityAssessment.json */ /** * Sample code: Get a Sql pool's vulnerability assessment. - * + * * @param manager Entry point to SynapseManager. */ public static void getASqlPoolSVulnerabilityAssessment(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolVulnerabilityAssessments() - .getWithResponse( - "vulnerabilityaseessmenttest-4799", - "vulnerabilityaseessmenttest-6440", - "testdb", - VulnerabilityAssessmentName.DEFAULT, - com.azure.core.util.Context.NONE); + manager.sqlPoolVulnerabilityAssessments().getWithResponse("vulnerabilityaseessmenttest-4799", + "vulnerabilityaseessmenttest-6440", "testdb", VulnerabilityAssessmentName.DEFAULT, + com.azure.core.util.Context.NONE); } } ``` @@ -5315,25 +5126,23 @@ public final class SqlPoolVulnerabilityAssessmentsGetSamples { ### SqlPoolVulnerabilityAssessments_List ```java -/** Samples for SqlPoolVulnerabilityAssessments List. */ +/** + * Samples for SqlPoolVulnerabilityAssessments List. + */ public final class SqlPoolVulnerabilityAssessmentsListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolVulnerabilityAssessments.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * ListSqlPoolVulnerabilityAssessments.json */ /** * Sample code: Get a vulnerability assessment of a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ - public static void getAVulnerabilityAssessmentOfASQLAnalyticsPool( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolVulnerabilityAssessments() - .list( - "vulnerabilityaseessmenttest-4799", - "vulnerabilityaseessmenttest-6440", - "testdb", - com.azure.core.util.Context.NONE); + public static void + getAVulnerabilityAssessmentOfASQLAnalyticsPool(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.sqlPoolVulnerabilityAssessments().list("vulnerabilityaseessmenttest-4799", + "vulnerabilityaseessmenttest-6440", "testdb", com.azure.core.util.Context.NONE); } } ``` @@ -5341,47 +5150,41 @@ public final class SqlPoolVulnerabilityAssessmentsListSamples { ### SqlPoolWorkloadClassifier_CreateOrUpdate ```java -/** Samples for SqlPoolWorkloadClassifier CreateOrUpdate. */ +/** + * Samples for SqlPoolWorkloadClassifier CreateOrUpdate. + */ public final class SqlPoolWorkloadClassifierCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateSqlPoolWorkloadClassifierMin.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CreateOrUpdateSqlPoolWorkloadClassifierMin.json */ /** * Sample code: Create a workload classifier with the required properties specified. - * + * * @param manager Entry point to SynapseManager. */ public static void createAWorkloadClassifierWithTheRequiredPropertiesSpecified( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolWorkloadClassifiers() - .define("wlm_workloadclassifier") + manager.sqlPoolWorkloadClassifiers().define("wlm_workloadclassifier") .withExistingWorkloadGroup("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187", "wlm_workloadgroup") - .withMemberName("dbo") - .create(); + .withMemberName("dbo").create(); } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateSqlPoolWorkloadClassifierMax.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CreateOrUpdateSqlPoolWorkloadClassifierMax.json */ /** * Sample code: Create a workload classifier with all properties specified. - * + * * @param manager Entry point to SynapseManager. */ - public static void createAWorkloadClassifierWithAllPropertiesSpecified( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolWorkloadClassifiers() - .define("wlm_workloadclassifier") + public static void + createAWorkloadClassifierWithAllPropertiesSpecified(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.sqlPoolWorkloadClassifiers().define("wlm_workloadclassifier") .withExistingWorkloadGroup("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187", "wlm_workloadgroup") - .withMemberName("dbo") - .withLabel("test_label") - .withContext("test_context") - .withStartTime("12:00") - .withEndTime("14:00") - .withImportance("high") - .create(); + .withMemberName("dbo").withLabel("test_label").withContext("test_context").withStartTime("12:00") + .withEndTime("14:00").withImportance("high").create(); } } ``` @@ -5389,27 +5192,23 @@ public final class SqlPoolWorkloadClassifierCreateOrUpdateSamples { ### SqlPoolWorkloadClassifier_Delete ```java -/** Samples for SqlPoolWorkloadClassifier Delete. */ +/** + * Samples for SqlPoolWorkloadClassifier Delete. + */ public final class SqlPoolWorkloadClassifierDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteSqlPoolWorkloadGroupWorkloadClassifer.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * DeleteSqlPoolWorkloadGroupWorkloadClassifer.json */ /** * Sample code: Delete a workload classifier of a SQL Analytics pool's workload group. - * + * * @param manager Entry point to SynapseManager. */ public static void deleteAWorkloadClassifierOfASQLAnalyticsPoolSWorkloadGroup( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolWorkloadClassifiers() - .delete( - "sqlcrudtest-6852", - "sqlcrudtest-2080", - "sqlcrudtest-9187", - "wlm_workloadgroup", - "wlm_workloadclassifier", - com.azure.core.util.Context.NONE); + manager.sqlPoolWorkloadClassifiers().delete("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187", + "wlm_workloadgroup", "wlm_workloadclassifier", com.azure.core.util.Context.NONE); } } ``` @@ -5417,27 +5216,23 @@ public final class SqlPoolWorkloadClassifierDeleteSamples { ### SqlPoolWorkloadClassifier_Get ```java -/** Samples for SqlPoolWorkloadClassifier Get. */ +/** + * Samples for SqlPoolWorkloadClassifier Get. + */ public final class SqlPoolWorkloadClassifierGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolWorkloadGroupWorkloadClassifier.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * GetSqlPoolWorkloadGroupWorkloadClassifier.json */ /** * Sample code: Get a workload classifier for SQL Analytics pool's workload group. - * + * * @param manager Entry point to SynapseManager. */ public static void getAWorkloadClassifierForSQLAnalyticsPoolSWorkloadGroup( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolWorkloadClassifiers() - .getWithResponse( - "sqlcrudtest-6852", - "sqlcrudtest-2080", - "sqlcrudtest-9187", - "wlm_workloadgroup", - "wlm_classifier", - com.azure.core.util.Context.NONE); + manager.sqlPoolWorkloadClassifiers().getWithResponse("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187", + "wlm_workloadgroup", "wlm_classifier", com.azure.core.util.Context.NONE); } } ``` @@ -5445,26 +5240,23 @@ public final class SqlPoolWorkloadClassifierGetSamples { ### SqlPoolWorkloadClassifier_List ```java -/** Samples for SqlPoolWorkloadClassifier List. */ +/** + * Samples for SqlPoolWorkloadClassifier List. + */ public final class SqlPoolWorkloadClassifierListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolWorkloadGroupWorkloadClassifierList.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * GetSqlPoolWorkloadGroupWorkloadClassifierList.json */ /** * Sample code: Get the list of workload classifiers of a SQL Analytics pool's workload group. - * + * * @param manager Entry point to SynapseManager. */ public static void getTheListOfWorkloadClassifiersOfASQLAnalyticsPoolSWorkloadGroup( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolWorkloadClassifiers() - .list( - "sqlcrudtest-6852", - "sqlcrudtest-2080", - "sqlcrudtest-9187", - "wlm_workloadgroup", - com.azure.core.util.Context.NONE); + manager.sqlPoolWorkloadClassifiers().list("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187", + "wlm_workloadgroup", com.azure.core.util.Context.NONE); } } ``` @@ -5472,49 +5264,41 @@ public final class SqlPoolWorkloadClassifierListSamples { ### SqlPoolWorkloadGroup_CreateOrUpdate ```java -/** Samples for SqlPoolWorkloadGroup CreateOrUpdate. */ +/** + * Samples for SqlPoolWorkloadGroup CreateOrUpdate. + */ public final class SqlPoolWorkloadGroupCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateSqlPoolWorkloadGroupMin.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CreateOrUpdateSqlPoolWorkloadGroupMin.json */ /** * Sample code: Create a workload group with the required properties specified. - * + * * @param manager Entry point to SynapseManager. */ public static void createAWorkloadGroupWithTheRequiredPropertiesSpecified( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolWorkloadGroups() - .define("smallrc") - .withExistingSqlPool("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187") - .withMinResourcePercent(0) - .withMaxResourcePercent(100) - .withMinResourcePercentPerRequest(3.0) - .create(); + manager.sqlPoolWorkloadGroups().define("smallrc") + .withExistingSqlPool("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187").withMinResourcePercent(0) + .withMaxResourcePercent(100).withMinResourcePercentPerRequest(3.0).create(); } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateSqlPoolWorkloadGroupMax.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CreateOrUpdateSqlPoolWorkloadGroupMax.json */ /** * Sample code: Create a workload group with all properties specified. - * + * * @param manager Entry point to SynapseManager. */ - public static void createAWorkloadGroupWithAllPropertiesSpecified( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolWorkloadGroups() - .define("smallrc") - .withExistingSqlPool("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187") - .withMinResourcePercent(0) - .withMaxResourcePercent(100) - .withMinResourcePercentPerRequest(3.0) - .withMaxResourcePercentPerRequest(3.0D) - .withImportance("normal") - .withQueryExecutionTimeout(0) - .create(); + public static void + createAWorkloadGroupWithAllPropertiesSpecified(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.sqlPoolWorkloadGroups().define("smallrc") + .withExistingSqlPool("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187").withMinResourcePercent(0) + .withMaxResourcePercent(100).withMinResourcePercentPerRequest(3.0).withMaxResourcePercentPerRequest(3.0D) + .withImportance("normal").withQueryExecutionTimeout(0).create(); } } ``` @@ -5522,26 +5306,24 @@ public final class SqlPoolWorkloadGroupCreateOrUpdateSamples { ### SqlPoolWorkloadGroup_Delete ```java -/** Samples for SqlPoolWorkloadGroup Delete. */ +/** + * Samples for SqlPoolWorkloadGroup Delete. + */ public final class SqlPoolWorkloadGroupDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteSqlPoolWorkloadGroup.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteSqlPoolWorkloadGroup. + * json */ /** * Sample code: Delete a workload group of a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ - public static void deleteAWorkloadGroupOfASQLAnalyticsPool( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolWorkloadGroups() - .delete( - "sqlcrudtest-6852", - "sqlcrudtest-2080", - "sqlcrudtest-9187", - "wlm_workloadgroup", - com.azure.core.util.Context.NONE); + public static void + deleteAWorkloadGroupOfASQLAnalyticsPool(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.sqlPoolWorkloadGroups().delete("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187", + "wlm_workloadgroup", com.azure.core.util.Context.NONE); } } ``` @@ -5549,25 +5331,22 @@ public final class SqlPoolWorkloadGroupDeleteSamples { ### SqlPoolWorkloadGroup_Get ```java -/** Samples for SqlPoolWorkloadGroup Get. */ +/** + * Samples for SqlPoolWorkloadGroup Get. + */ public final class SqlPoolWorkloadGroupGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolWorkloadGroup.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolWorkloadGroup.json */ /** * Sample code: Get a a workload group of a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ public static void getAAWorkloadGroupOfASQLAnalyticsPool(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolWorkloadGroups() - .getWithResponse( - "sqlcrudtest-6852", - "sqlcrudtest-2080", - "sqlcrudtest-9187", - "smallrc", - com.azure.core.util.Context.NONE); + manager.sqlPoolWorkloadGroups().getWithResponse("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187", + "smallrc", com.azure.core.util.Context.NONE); } } ``` @@ -5575,21 +5354,24 @@ public final class SqlPoolWorkloadGroupGetSamples { ### SqlPoolWorkloadGroup_List ```java -/** Samples for SqlPoolWorkloadGroup List. */ +/** + * Samples for SqlPoolWorkloadGroup List. + */ public final class SqlPoolWorkloadGroupListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolWorkloadGroupList.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolWorkloadGroupList. + * json */ /** * Sample code: Get the list of workload groups of a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ - public static void getTheListOfWorkloadGroupsOfASQLAnalyticsPool( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolWorkloadGroups() - .list("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187", com.azure.core.util.Context.NONE); + public static void + getTheListOfWorkloadGroupsOfASQLAnalyticsPool(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.sqlPoolWorkloadGroups().list("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187", + com.azure.core.util.Context.NONE); } } ``` @@ -5603,33 +5385,28 @@ import com.azure.resourcemanager.synapse.models.StorageAccountType; import java.util.HashMap; import java.util.Map; -/** Samples for SqlPools Create. */ +/** + * Samples for SqlPools Create. + */ public final class SqlPoolsCreateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateSqlPool.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateSqlPool.json */ /** * Sample code: Create a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ public static void createASQLAnalyticsPool(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPools() - .define("ExampleSqlPool") - .withRegion("Southeast Asia") - .withExistingWorkspace("ExampleResourceGroup", "ExampleWorkspace") - .withTags(mapOf()) - .withSku(new Sku().withTier("").withName("")) - .withMaxSizeBytes(0L) - .withCollation("") - .withSourceDatabaseId("") - .withRecoverableDatabaseId("") - .withCreateMode(CreateMode.fromString("")) - .withStorageAccountType(StorageAccountType.LRS) - .create(); + manager.sqlPools().define("ExampleSqlPool").withRegion("Southeast Asia") + .withExistingWorkspace("ExampleResourceGroup", "ExampleWorkspace").withTags(mapOf()) + .withSku(new Sku().withTier("").withName("")).withMaxSizeBytes(0L).withCollation("") + .withSourceDatabaseId("").withRecoverableDatabaseId("").withCreateMode(CreateMode.fromString("")) + .withStorageAccountType(StorageAccountType.LRS).create(); } + // Use "Map.of" if available @SuppressWarnings("unchecked") private static Map mapOf(Object... inputs) { Map map = new HashMap<>(); @@ -5646,20 +5423,22 @@ public final class SqlPoolsCreateSamples { ### SqlPools_Delete ```java -/** Samples for SqlPools Delete. */ +/** + * Samples for SqlPools Delete. + */ public final class SqlPoolsDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteSqlPool.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteSqlPool.json */ /** * Sample code: Delete a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ public static void deleteASQLAnalyticsPool(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPools() - .delete("ExampleResourceGroup", "ExampleWorkspace", "ExampleSqlPool", com.azure.core.util.Context.NONE); + manager.sqlPools().delete("ExampleResourceGroup", "ExampleWorkspace", "ExampleSqlPool", + com.azure.core.util.Context.NONE); } } ``` @@ -5667,21 +5446,22 @@ public final class SqlPoolsDeleteSamples { ### SqlPools_Get ```java -/** Samples for SqlPools Get. */ +/** + * Samples for SqlPools Get. + */ public final class SqlPoolsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPool.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPool.json */ /** * Sample code: Get a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ public static void getASQLAnalyticsPool(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPools() - .getWithResponse( - "sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187", com.azure.core.util.Context.NONE); + manager.sqlPools().getWithResponse("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187", + com.azure.core.util.Context.NONE); } } ``` @@ -5689,27 +5469,31 @@ public final class SqlPoolsGetSamples { ### SqlPools_ListByWorkspace ```java -/** Samples for SqlPools ListByWorkspace. */ +/** + * Samples for SqlPools ListByWorkspace. + */ public final class SqlPoolsListByWorkspaceSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolsInWorkspaceWithFilter.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * ListSqlPoolsInWorkspaceWithFilter.json */ /** * Sample code: List SQL Analytics pools in a workspace with filter. - * + * * @param manager Entry point to SynapseManager. */ - public static void listSQLAnalyticsPoolsInAWorkspaceWithFilter( - com.azure.resourcemanager.synapse.SynapseManager manager) { + public static void + listSQLAnalyticsPoolsInAWorkspaceWithFilter(com.azure.resourcemanager.synapse.SynapseManager manager) { manager.sqlPools().listByWorkspace("sqlcrudtest-6845", "sqlcrudtest-7177", com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolsInWorkspace.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolsInWorkspace.json */ /** * Sample code: List SQL Analytics pools in a workspace. - * + * * @param manager Entry point to SynapseManager. */ public static void listSQLAnalyticsPoolsInAWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { @@ -5721,14 +5505,17 @@ public final class SqlPoolsListByWorkspaceSamples { ### SqlPools_Pause ```java -/** Samples for SqlPools Pause. */ +/** + * Samples for SqlPools Pause. + */ public final class SqlPoolsPauseSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/PauseSqlPool.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/PauseSqlPool.json */ /** * Sample code: Pause a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ public static void pauseASQLAnalyticsPool(com.azure.resourcemanager.synapse.SynapseManager manager) { @@ -5737,53 +5524,25 @@ public final class SqlPoolsPauseSamples { } ``` -### SqlPools_Rename - -```java -import com.azure.resourcemanager.synapse.models.ResourceMoveDefinition; - -/** Samples for SqlPools Rename. */ -public final class SqlPoolsRenameSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/RenameSqlPool.json - */ - /** - * Sample code: Rename a SQL Analytics pool. - * - * @param manager Entry point to SynapseManager. - */ - public static void renameASQLAnalyticsPool(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPools() - .renameWithResponse( - "Default-SQL-SouthEastAsia", - "testsvr", - "testdb", - new ResourceMoveDefinition() - .withId( - "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Synapse/workspaces/testsvr/sqlPools/newtestdb"), - com.azure.core.util.Context.NONE); - } -} -``` - ### SqlPools_Resume ```java -/** Samples for SqlPools Resume. */ +/** + * Samples for SqlPools Resume. + */ public final class SqlPoolsResumeSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ResumeSqlPool.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ResumeSqlPool.json */ /** * Sample code: Resume a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ public static void resumeASQLAnalyticsPool(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPools() - .resume("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187", com.azure.core.util.Context.NONE); + manager.sqlPools().resume("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187", + com.azure.core.util.Context.NONE); } } ``` @@ -5796,26 +5555,26 @@ import com.azure.resourcemanager.synapse.models.SqlPool; import java.util.HashMap; import java.util.Map; -/** Samples for SqlPools Update. */ +/** + * Samples for SqlPools Update. + */ public final class SqlPoolsUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/UpdateSqlPool.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/UpdateSqlPool.json */ /** * Sample code: Update a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ public static void updateASQLAnalyticsPool(com.azure.resourcemanager.synapse.SynapseManager manager) { - SqlPool resource = - manager - .sqlPools() - .getWithResponse( - "ExampleResourceGroup", "ExampleWorkspace", "ExampleSqlPool", com.azure.core.util.Context.NONE) - .getValue(); + SqlPool resource = manager.sqlPools().getWithResponse("ExampleResourceGroup", "ExampleWorkspace", + "ExampleSqlPool", com.azure.core.util.Context.NONE).getValue(); resource.update().withTags(mapOf()).withSku(new Sku().withTier("").withName("")).withMaxSizeBytes(0L).apply(); } + // Use "Map.of" if available @SuppressWarnings("unchecked") private static Map mapOf(Object... inputs) { Map map = new HashMap<>(); @@ -5834,29 +5593,26 @@ public final class SqlPoolsUpdateSamples { ```java import com.azure.resourcemanager.synapse.fluent.models.WorkspaceAadAdminInfoInner; -/** Samples for WorkspaceAadAdmins CreateOrUpdate. */ +/** + * Samples for WorkspaceAadAdmins CreateOrUpdate. + */ public final class WorkspaceAadAdminsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateWorkspaceAadAdmin.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CreateOrUpdateWorkspaceAadAdmin.json */ /** * Sample code: Create or update workspace active directory admin. - * + * * @param manager Entry point to SynapseManager. */ - public static void createOrUpdateWorkspaceActiveDirectoryAdmin( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceAadAdmins() - .createOrUpdate( - "resourceGroup1", - "workspace1", - new WorkspaceAadAdminInfoInner() - .withTenantId("c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c") - .withLogin("bob@contoso.com") - .withAdministratorType("ActiveDirectory") - .withSid("c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c"), - com.azure.core.util.Context.NONE); + public static void + createOrUpdateWorkspaceActiveDirectoryAdmin(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.workspaceAadAdmins().createOrUpdate("resourceGroup1", "workspace1", + new WorkspaceAadAdminInfoInner().withTenantId("c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c") + .withLogin("bob@contoso.com").withAdministratorType("ActiveDirectory") + .withSid("c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c"), + com.azure.core.util.Context.NONE); } } ``` @@ -5864,14 +5620,17 @@ public final class WorkspaceAadAdminsCreateOrUpdateSamples { ### WorkspaceAadAdmins_Delete ```java -/** Samples for WorkspaceAadAdmins Delete. */ +/** + * Samples for WorkspaceAadAdmins Delete. + */ public final class WorkspaceAadAdminsDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteWorkspaceAadAdmin.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteWorkspaceAadAdmin.json */ /** * Sample code: Delete workspace active directory admin. - * + * * @param manager Entry point to SynapseManager. */ public static void deleteWorkspaceActiveDirectoryAdmin(com.azure.resourcemanager.synapse.SynapseManager manager) { @@ -5883,14 +5642,17 @@ public final class WorkspaceAadAdminsDeleteSamples { ### WorkspaceAadAdmins_Get ```java -/** Samples for WorkspaceAadAdmins Get. */ +/** + * Samples for WorkspaceAadAdmins Get. + */ public final class WorkspaceAadAdminsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceAadAdmin.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceAadAdmin.json */ /** * Sample code: Get workspace active directory admin. - * + * * @param manager Entry point to SynapseManager. */ public static void getWorkspaceActiveDirectoryAdmin(com.azure.resourcemanager.synapse.SynapseManager manager) { @@ -5906,28 +5668,26 @@ import com.azure.resourcemanager.synapse.fluent.models.ManagedIdentitySqlControl import com.azure.resourcemanager.synapse.models.DesiredState; import com.azure.resourcemanager.synapse.models.ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity; -/** Samples for WorkspaceManagedIdentitySqlControlSettings CreateOrUpdate. */ +/** + * Samples for WorkspaceManagedIdentitySqlControlSettings CreateOrUpdate. + */ public final class WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateManagedIdentitySqlControlSettings.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CreateOrUpdateManagedIdentitySqlControlSettings.json */ /** * Sample code: Create or update managed identity sql control settings. - * + * * @param manager Entry point to SynapseManager. */ - public static void createOrUpdateManagedIdentitySqlControlSettings( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedIdentitySqlControlSettings() - .createOrUpdate( - "resourceGroup1", - "workspace1", - new ManagedIdentitySqlControlSettingsModelInner() - .withGrantSqlControlToManagedIdentity( - new ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity() - .withDesiredState(DesiredState.ENABLED)), - com.azure.core.util.Context.NONE); + public static void + createOrUpdateManagedIdentitySqlControlSettings(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.workspaceManagedIdentitySqlControlSettings().createOrUpdate("resourceGroup1", "workspace1", + new ManagedIdentitySqlControlSettingsModelInner().withGrantSqlControlToManagedIdentity( + new ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity() + .withDesiredState(DesiredState.ENABLED)), + com.azure.core.util.Context.NONE); } } ``` @@ -5935,20 +5695,22 @@ public final class WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateSampl ### WorkspaceManagedIdentitySqlControlSettings_Get ```java -/** Samples for WorkspaceManagedIdentitySqlControlSettings Get. */ +/** + * Samples for WorkspaceManagedIdentitySqlControlSettings Get. + */ public final class WorkspaceManagedIdentitySqlControlSettingsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetManagedIdentitySqlControlSettings.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * GetManagedIdentitySqlControlSettings.json */ /** * Sample code: Get managed identity sql control settings. - * + * * @param manager Entry point to SynapseManager. */ public static void getManagedIdentitySqlControlSettings(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedIdentitySqlControlSettings() - .getWithResponse("resourceGroup1", "workspace1", com.azure.core.util.Context.NONE); + manager.workspaceManagedIdentitySqlControlSettings().getWithResponse("resourceGroup1", "workspace1", + com.azure.core.util.Context.NONE); } } ``` @@ -5961,57 +5723,48 @@ import com.azure.resourcemanager.synapse.models.BlobAuditingPolicyState; import java.util.Arrays; import java.util.UUID; -/** Samples for WorkspaceManagedSqlServerBlobAuditingPolicies CreateOrUpdate. */ +/** + * Samples for WorkspaceManagedSqlServerBlobAuditingPolicies CreateOrUpdate. + */ public final class WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateWorkspaceManagedSqlServerBlobAuditingSettingsWithAllParameters.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CreateWorkspaceManagedSqlServerBlobAuditingSettingsWithAllParameters.json */ /** * Sample code: Create or update blob auditing policy of workspace SQL Server with all parameters. - * + * * @param manager Entry point to SynapseManager. */ public static void createOrUpdateBlobAuditingPolicyOfWorkspaceSQLServerWithAllParameters( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedSqlServerBlobAuditingPolicies() - .define(BlobAuditingPolicyName.DEFAULT) - .withExistingWorkspace("wsg-7398", "testWorkspace") - .withState(BlobAuditingPolicyState.ENABLED) + manager.workspaceManagedSqlServerBlobAuditingPolicies().define(BlobAuditingPolicyName.DEFAULT) + .withExistingWorkspace("wsg-7398", "testWorkspace").withState(BlobAuditingPolicyState.ENABLED) .withStorageEndpoint("https://mystorage.blob.core.windows.net") .withStorageAccountAccessKey( "sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==") .withRetentionDays(6) - .withAuditActionsAndGroups( - Arrays - .asList( - "SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP", - "FAILED_DATABASE_AUTHENTICATION_GROUP", - "BATCH_COMPLETED_GROUP")) + .withAuditActionsAndGroups(Arrays.asList("SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP", + "FAILED_DATABASE_AUTHENTICATION_GROUP", "BATCH_COMPLETED_GROUP")) .withStorageAccountSubscriptionId(UUID.fromString("00000000-1234-0000-5678-000000000000")) - .withIsStorageSecondaryKeyInUse(false) - .withIsAzureMonitorTargetEnabled(true) - .withQueueDelayMs(4000) + .withIsStorageSecondaryKeyInUse(false).withIsAzureMonitorTargetEnabled(true).withQueueDelayMs(4000) .create(); } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateWorkspaceManagedSqlServerBlobAuditingSettingsWithMinParameters.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CreateWorkspaceManagedSqlServerBlobAuditingSettingsWithMinParameters.json */ /** * Sample code: Create or update blob auditing policy of workspace managed Sql Server with minimal parameters. - * + * * @param manager Entry point to SynapseManager. */ public static void createOrUpdateBlobAuditingPolicyOfWorkspaceManagedSqlServerWithMinimalParameters( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedSqlServerBlobAuditingPolicies() - .define(BlobAuditingPolicyName.DEFAULT) - .withExistingWorkspace("wsg-7398", "testWorkspace") - .withState(BlobAuditingPolicyState.ENABLED) - .withStorageEndpoint("https://mystorage.blob.core.windows.net") - .withStorageAccountAccessKey( + manager.workspaceManagedSqlServerBlobAuditingPolicies().define(BlobAuditingPolicyName.DEFAULT) + .withExistingWorkspace("wsg-7398", "testWorkspace").withState(BlobAuditingPolicyState.ENABLED) + .withStorageEndpoint("https://mystorage.blob.core.windows.net").withStorageAccountAccessKey( "sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==") .create(); } @@ -6023,22 +5776,23 @@ public final class WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateSa ```java import com.azure.resourcemanager.synapse.models.BlobAuditingPolicyName; -/** Samples for WorkspaceManagedSqlServerBlobAuditingPolicies Get. */ +/** + * Samples for WorkspaceManagedSqlServerBlobAuditingPolicies Get. + */ public final class WorkspaceManagedSqlServerBlobAuditingPoliciesGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceManagedSqlServerBlobAuditingSettings.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * GetWorkspaceManagedSqlServerBlobAuditingSettings.json */ /** * Sample code: Get blob auditing setting of workspace managed sql Server. - * + * * @param manager Entry point to SynapseManager. */ - public static void getBlobAuditingSettingOfWorkspaceManagedSqlServer( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedSqlServerBlobAuditingPolicies() - .getWithResponse( - "wsg-7398", "testWorkspace", BlobAuditingPolicyName.DEFAULT, com.azure.core.util.Context.NONE); + public static void + getBlobAuditingSettingOfWorkspaceManagedSqlServer(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.workspaceManagedSqlServerBlobAuditingPolicies().getWithResponse("wsg-7398", "testWorkspace", + BlobAuditingPolicyName.DEFAULT, com.azure.core.util.Context.NONE); } } ``` @@ -6046,21 +5800,23 @@ public final class WorkspaceManagedSqlServerBlobAuditingPoliciesGetSamples { ### WorkspaceManagedSqlServerBlobAuditingPolicies_ListByWorkspace ```java -/** Samples for WorkspaceManagedSqlServerBlobAuditingPolicies ListByWorkspace. */ +/** + * Samples for WorkspaceManagedSqlServerBlobAuditingPolicies ListByWorkspace. + */ public final class WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListWorkspaceManagedSqlServerBlobAuditingSettings.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * ListWorkspaceManagedSqlServerBlobAuditingSettings.json */ /** * Sample code: Get blob auditing policy of workspace manged sql Server. - * + * * @param manager Entry point to SynapseManager. */ - public static void getBlobAuditingPolicyOfWorkspaceMangedSqlServer( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedSqlServerBlobAuditingPolicies() - .listByWorkspace("wsg-7398", "testWorkspace", com.azure.core.util.Context.NONE); + public static void + getBlobAuditingPolicyOfWorkspaceMangedSqlServer(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.workspaceManagedSqlServerBlobAuditingPolicies().listByWorkspace("wsg-7398", "testWorkspace", + com.azure.core.util.Context.NONE); } } ``` @@ -6068,21 +5824,23 @@ public final class WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceS ### WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings_Get ```java -/** Samples for WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings Get. */ +/** + * Samples for WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings Get. + */ public final class WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * GetWorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings.json */ /** * Sample code: Get workspace managed sql server dedicated sql minimal tls settings. - * + * * @param manager Entry point to SynapseManager. */ public static void getWorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings() - .getWithResponse("workspace-6852", "workspace-2080", "default", com.azure.core.util.Context.NONE); + manager.workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings().getWithResponse("workspace-6852", + "workspace-2080", "default", com.azure.core.util.Context.NONE); } } ``` @@ -6090,21 +5848,23 @@ public final class WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsGetSam ### WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings_List ```java -/** Samples for WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings List. */ +/** + * Samples for WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings List. + */ public final class WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListWorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * ListWorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings.json */ /** * Sample code: List dedicated sql minimal tls settings of the workspace managed sql server. - * + * * @param manager Entry point to SynapseManager. */ public static void listDedicatedSqlMinimalTlsSettingsOfTheWorkspaceManagedSqlServer( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings() - .list("workspace-6852", "workspace-2080", com.azure.core.util.Context.NONE); + manager.workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings().list("workspace-6852", "workspace-2080", + com.azure.core.util.Context.NONE); } } ``` @@ -6115,26 +5875,24 @@ public final class WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsListSa import com.azure.resourcemanager.synapse.fluent.models.DedicatedSQLminimalTlsSettingsInner; import com.azure.resourcemanager.synapse.models.DedicatedSqlMinimalTlsSettingsName; -/** Samples for WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings Update. */ +/** + * Samples for WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings Update. + */ public final class WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/UpdateWorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * UpdateWorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings.json */ /** * Sample code: Update tls version of the workspace managed sql server. - * + * * @param manager Entry point to SynapseManager. */ - public static void updateTlsVersionOfTheWorkspaceManagedSqlServer( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings() - .update( - "workspace-6852", - "workspace-2080", - DedicatedSqlMinimalTlsSettingsName.DEFAULT, - new DedicatedSQLminimalTlsSettingsInner().withMinimalTlsVersion("1.1"), - com.azure.core.util.Context.NONE); + public static void + updateTlsVersionOfTheWorkspaceManagedSqlServer(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings().update("workspace-6852", "workspace-2080", + DedicatedSqlMinimalTlsSettingsName.DEFAULT, + new DedicatedSQLminimalTlsSettingsInner().withMinimalTlsVersion("1.1"), com.azure.core.util.Context.NONE); } } ``` @@ -6146,47 +5904,42 @@ import com.azure.resourcemanager.synapse.models.EncryptionProtector; import com.azure.resourcemanager.synapse.models.EncryptionProtectorName; import com.azure.resourcemanager.synapse.models.ServerKeyType; -/** Samples for WorkspaceManagedSqlServerEncryptionProtector CreateOrUpdate. */ +/** + * Samples for WorkspaceManagedSqlServerEncryptionProtector CreateOrUpdate. + */ public final class WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateKeyVault.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateKeyVault.json */ /** * Sample code: Update the encryption protector to key vault. - * + * * @param manager Entry point to SynapseManager. */ - public static void updateTheEncryptionProtectorToKeyVault( - com.azure.resourcemanager.synapse.SynapseManager manager) { - EncryptionProtector resource = - manager - .workspaceManagedSqlServerEncryptionProtectors() - .getWithResponse( - "wsg-7398", "testWorkspace", EncryptionProtectorName.CURRENT, com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() - .withServerKeyName("someVault_someKey_01234567890123456789012345678901") - .withServerKeyType(ServerKeyType.AZURE_KEY_VAULT) - .apply(); + public static void + updateTheEncryptionProtectorToKeyVault(com.azure.resourcemanager.synapse.SynapseManager manager) { + EncryptionProtector resource + = manager.workspaceManagedSqlServerEncryptionProtectors().getWithResponse("wsg-7398", "testWorkspace", + EncryptionProtectorName.CURRENT, com.azure.core.util.Context.NONE).getValue(); + resource.update().withServerKeyName("someVault_someKey_01234567890123456789012345678901") + .withServerKeyType(ServerKeyType.AZURE_KEY_VAULT).apply(); } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateServiceManaged.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateServiceManaged.json */ /** * Sample code: Update the encryption protector to service managed. - * + * * @param manager Entry point to SynapseManager. */ - public static void updateTheEncryptionProtectorToServiceManaged( - com.azure.resourcemanager.synapse.SynapseManager manager) { - EncryptionProtector resource = - manager - .workspaceManagedSqlServerEncryptionProtectors() - .getWithResponse( - "wsg-7398", "testWorkspace", EncryptionProtectorName.CURRENT, com.azure.core.util.Context.NONE) - .getValue(); + public static void + updateTheEncryptionProtectorToServiceManaged(com.azure.resourcemanager.synapse.SynapseManager manager) { + EncryptionProtector resource + = manager.workspaceManagedSqlServerEncryptionProtectors().getWithResponse("wsg-7398", "testWorkspace", + EncryptionProtectorName.CURRENT, com.azure.core.util.Context.NONE).getValue(); resource.update().withServerKeyName("ServiceManaged").withServerKeyType(ServerKeyType.SERVICE_MANAGED).apply(); } } @@ -6197,22 +5950,23 @@ public final class WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateSam ```java import com.azure.resourcemanager.synapse.models.EncryptionProtectorName; -/** Samples for WorkspaceManagedSqlServerEncryptionProtector Get. */ +/** + * Samples for WorkspaceManagedSqlServerEncryptionProtector Get. + */ public final class WorkspaceManagedSqlServerEncryptionProtectorGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceManagedSqlServerEncryptionProtector.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * GetWorkspaceManagedSqlServerEncryptionProtector.json */ /** * Sample code: Get workspace managed sql Server's encryption protector. - * + * * @param manager Entry point to SynapseManager. */ - public static void getWorkspaceManagedSqlServerSEncryptionProtector( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedSqlServerEncryptionProtectors() - .getWithResponse( - "wsg-7398", "testWorkspace", EncryptionProtectorName.CURRENT, com.azure.core.util.Context.NONE); + public static void + getWorkspaceManagedSqlServerSEncryptionProtector(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.workspaceManagedSqlServerEncryptionProtectors().getWithResponse("wsg-7398", "testWorkspace", + EncryptionProtectorName.CURRENT, com.azure.core.util.Context.NONE); } } ``` @@ -6220,21 +5974,23 @@ public final class WorkspaceManagedSqlServerEncryptionProtectorGetSamples { ### WorkspaceManagedSqlServerEncryptionProtector_List ```java -/** Samples for WorkspaceManagedSqlServerEncryptionProtector List. */ +/** + * Samples for WorkspaceManagedSqlServerEncryptionProtector List. + */ public final class WorkspaceManagedSqlServerEncryptionProtectorListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceManagedSqlServerEncryptionProtectorList.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * GetWorkspaceManagedSqlServerEncryptionProtectorList.json */ /** * Sample code: Get workspace managed sql Server's encryption protectors. - * + * * @param manager Entry point to SynapseManager. */ - public static void getWorkspaceManagedSqlServerSEncryptionProtectors( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedSqlServerEncryptionProtectors() - .list("wsg-7398", "testWorkspace", com.azure.core.util.Context.NONE); + public static void + getWorkspaceManagedSqlServerSEncryptionProtectors(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.workspaceManagedSqlServerEncryptionProtectors().list("wsg-7398", "testWorkspace", + com.azure.core.util.Context.NONE); } } ``` @@ -6244,20 +6000,22 @@ public final class WorkspaceManagedSqlServerEncryptionProtectorListSamples { ```java import com.azure.resourcemanager.synapse.models.EncryptionProtectorName; -/** Samples for WorkspaceManagedSqlServerEncryptionProtector Revalidate. */ +/** + * Samples for WorkspaceManagedSqlServerEncryptionProtector Revalidate. + */ public final class WorkspaceManagedSqlServerEncryptionProtectorRevalidateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/WorkspaceManagedSqlServerEncryptionProtectorRevalidate.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * WorkspaceManagedSqlServerEncryptionProtectorRevalidate.json */ /** * Sample code: Revalidates the encryption protector. - * + * * @param manager Entry point to SynapseManager. */ public static void revalidatesTheEncryptionProtector(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedSqlServerEncryptionProtectors() - .revalidate("wsg-7398", "testWorkspace", EncryptionProtectorName.CURRENT, com.azure.core.util.Context.NONE); + manager.workspaceManagedSqlServerEncryptionProtectors().revalidate("wsg-7398", "testWorkspace", + EncryptionProtectorName.CURRENT, com.azure.core.util.Context.NONE); } } ``` @@ -6270,59 +6028,49 @@ import com.azure.resourcemanager.synapse.models.BlobAuditingPolicyState; import java.util.Arrays; import java.util.UUID; -/** Samples for WorkspaceManagedSqlServerExtendedBlobAuditingPolicies CreateOrUpdate. */ +/** + * Samples for WorkspaceManagedSqlServerExtendedBlobAuditingPolicies CreateOrUpdate. + */ public final class WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateWorkspaceManagedSqlServerExtendedBlobAuditingSettingsWithAllParameters.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CreateWorkspaceManagedSqlServerExtendedBlobAuditingSettingsWithAllParameters.json */ /** * Sample code: Create or update workspace managed sql server's extended blob auditing policy of with all * parameters. - * + * * @param manager Entry point to SynapseManager. */ public static void createOrUpdateWorkspaceManagedSqlServerSExtendedBlobAuditingPolicyOfWithAllParameters( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedSqlServerExtendedBlobAuditingPolicies() - .define(BlobAuditingPolicyName.DEFAULT) - .withExistingWorkspace("wsg-7398", "testWorkspace") - .withPredicateExpression("object_name = 'SensitiveData'") - .withState(BlobAuditingPolicyState.ENABLED) - .withStorageEndpoint("https://mystorage.blob.core.windows.net") + manager.workspaceManagedSqlServerExtendedBlobAuditingPolicies().define(BlobAuditingPolicyName.DEFAULT) + .withExistingWorkspace("wsg-7398", "testWorkspace").withPredicateExpression("object_name = 'SensitiveData'") + .withState(BlobAuditingPolicyState.ENABLED).withStorageEndpoint("https://mystorage.blob.core.windows.net") .withStorageAccountAccessKey( "sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==") .withRetentionDays(6) - .withAuditActionsAndGroups( - Arrays - .asList( - "SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP", - "FAILED_DATABASE_AUTHENTICATION_GROUP", - "BATCH_COMPLETED_GROUP")) + .withAuditActionsAndGroups(Arrays.asList("SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP", + "FAILED_DATABASE_AUTHENTICATION_GROUP", "BATCH_COMPLETED_GROUP")) .withStorageAccountSubscriptionId(UUID.fromString("00000000-1234-0000-5678-000000000000")) - .withIsStorageSecondaryKeyInUse(false) - .withIsAzureMonitorTargetEnabled(true) - .create(); + .withIsStorageSecondaryKeyInUse(false).withIsAzureMonitorTargetEnabled(true).create(); } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateWorkspaceManagedSqlServerExetendedBlobAuditingSettingsWithMinParameters.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CreateWorkspaceManagedSqlServerExetendedBlobAuditingSettingsWithMinParameters.json */ /** * Sample code: Create or update workspace managed sql server's extended blob auditing policy of with minimal * parameters. - * + * * @param manager Entry point to SynapseManager. */ public static void createOrUpdateWorkspaceManagedSqlServerSExtendedBlobAuditingPolicyOfWithMinimalParameters( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedSqlServerExtendedBlobAuditingPolicies() - .define(BlobAuditingPolicyName.DEFAULT) - .withExistingWorkspace("wsg-7398", "testWorkspace") - .withState(BlobAuditingPolicyState.ENABLED) - .withStorageEndpoint("https://mystorage.blob.core.windows.net") - .withStorageAccountAccessKey( + manager.workspaceManagedSqlServerExtendedBlobAuditingPolicies().define(BlobAuditingPolicyName.DEFAULT) + .withExistingWorkspace("wsg-7398", "testWorkspace").withState(BlobAuditingPolicyState.ENABLED) + .withStorageEndpoint("https://mystorage.blob.core.windows.net").withStorageAccountAccessKey( "sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==") .create(); } @@ -6334,22 +6082,23 @@ public final class WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOr ```java import com.azure.resourcemanager.synapse.models.BlobAuditingPolicyName; -/** Samples for WorkspaceManagedSqlServerExtendedBlobAuditingPolicies Get. */ +/** + * Samples for WorkspaceManagedSqlServerExtendedBlobAuditingPolicies Get. + */ public final class WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceManagedSqlExtendedServerBlobAuditingSettings.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * GetWorkspaceManagedSqlExtendedServerBlobAuditingSettings.json */ /** * Sample code: Get workspace managed sql servers' extended blob auditing settings. - * + * * @param manager Entry point to SynapseManager. */ public static void getWorkspaceManagedSqlServersExtendedBlobAuditingSettings( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedSqlServerExtendedBlobAuditingPolicies() - .getWithResponse( - "wsg-7398", "testWorkspace", BlobAuditingPolicyName.DEFAULT, com.azure.core.util.Context.NONE); + manager.workspaceManagedSqlServerExtendedBlobAuditingPolicies().getWithResponse("wsg-7398", "testWorkspace", + BlobAuditingPolicyName.DEFAULT, com.azure.core.util.Context.NONE); } } ``` @@ -6357,21 +6106,23 @@ public final class WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesGetSampl ### WorkspaceManagedSqlServerExtendedBlobAuditingPolicies_ListByWorkspace ```java -/** Samples for WorkspaceManagedSqlServerExtendedBlobAuditingPolicies ListByWorkspace. */ +/** + * Samples for WorkspaceManagedSqlServerExtendedBlobAuditingPolicies ListByWorkspace. + */ public final class WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListWorkspaceManagedSqlServerExtendedBlobAuditingSettings.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * ListWorkspaceManagedSqlServerExtendedBlobAuditingSettings.json */ /** * Sample code: Get workspace managed sql server's extended blob auditing settings. - * + * * @param manager Entry point to SynapseManager. */ public static void getWorkspaceManagedSqlServerSExtendedBlobAuditingSettings( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedSqlServerExtendedBlobAuditingPolicies() - .listByWorkspace("wsg-7398", "testWorkspace", com.azure.core.util.Context.NONE); + manager.workspaceManagedSqlServerExtendedBlobAuditingPolicies().listByWorkspace("wsg-7398", "testWorkspace", + com.azure.core.util.Context.NONE); } } ``` @@ -6379,20 +6130,22 @@ public final class WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWo ### WorkspaceManagedSqlServerRecoverableSqlPools_Get ```java -/** Samples for WorkspaceManagedSqlServerRecoverableSqlPools Get. */ +/** + * Samples for WorkspaceManagedSqlServerRecoverableSqlPools Get. + */ public final class WorkspaceManagedSqlServerRecoverableSqlPoolsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceManagedSqlServerRecoverableSqlPool.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * GetWorkspaceManagedSqlServerRecoverableSqlPool.json */ /** * Sample code: Get recoverable sql pools for the server. - * + * * @param manager Entry point to SynapseManager. */ public static void getRecoverableSqlPoolsForTheServer(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedSqlServerRecoverableSqlPools() - .getWithResponse("wsg-7398", "testWorkspace", "recoverableSqlpools-1235", com.azure.core.util.Context.NONE); + manager.workspaceManagedSqlServerRecoverableSqlPools().getWithResponse("wsg-7398", "testWorkspace", + "recoverableSqlpools-1235", com.azure.core.util.Context.NONE); } } ``` @@ -6400,20 +6153,22 @@ public final class WorkspaceManagedSqlServerRecoverableSqlPoolsGetSamples { ### WorkspaceManagedSqlServerRecoverableSqlPools_List ```java -/** Samples for WorkspaceManagedSqlServerRecoverableSqlPools List. */ +/** + * Samples for WorkspaceManagedSqlServerRecoverableSqlPools List. + */ public final class WorkspaceManagedSqlServerRecoverableSqlPoolsListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListWorkspaceManagedSqlServerRecoverableSqlPool.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * ListWorkspaceManagedSqlServerRecoverableSqlPool.json */ /** * Sample code: List recoverable sql pools for the server. - * + * * @param manager Entry point to SynapseManager. */ public static void listRecoverableSqlPoolsForTheServer(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedSqlServerRecoverableSqlPools() - .list("wsg-7398", "testWorkspace", com.azure.core.util.Context.NONE); + manager.workspaceManagedSqlServerRecoverableSqlPools().list("wsg-7398", "testWorkspace", + com.azure.core.util.Context.NONE); } } ``` @@ -6425,60 +6180,44 @@ import com.azure.resourcemanager.synapse.models.SecurityAlertPolicyNameAutoGener import com.azure.resourcemanager.synapse.models.SecurityAlertPolicyState; import com.azure.resourcemanager.synapse.models.ServerSecurityAlertPolicy; -/** Samples for WorkspaceManagedSqlServerSecurityAlertPolicy CreateOrUpdate. */ +/** + * Samples for WorkspaceManagedSqlServerSecurityAlertPolicy CreateOrUpdate. + */ public final class WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/WorkspaceManagedSqlServerSecurityAlertWithAllParameters.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * WorkspaceManagedSqlServerSecurityAlertWithAllParameters.json */ /** * Sample code: Update a workspace managed sql server's threat detection policy with all parameters. - * + * * @param manager Entry point to SynapseManager. */ public static void updateAWorkspaceManagedSqlServerSThreatDetectionPolicyWithAllParameters( com.azure.resourcemanager.synapse.SynapseManager manager) { - ServerSecurityAlertPolicy resource = - manager - .workspaceManagedSqlServerSecurityAlertPolicies() - .getWithResponse( - "wsg-7398", - "testWorkspace", - SecurityAlertPolicyNameAutoGenerated.DEFAULT, - com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() - .withState(SecurityAlertPolicyState.ENABLED) - .withStorageAccountAccessKey( - "sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==") - .apply(); + ServerSecurityAlertPolicy resource + = manager.workspaceManagedSqlServerSecurityAlertPolicies().getWithResponse("wsg-7398", "testWorkspace", + SecurityAlertPolicyNameAutoGenerated.DEFAULT, com.azure.core.util.Context.NONE).getValue(); + resource.update().withState(SecurityAlertPolicyState.ENABLED).withStorageAccountAccessKey( + "sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==").apply(); } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/WorkspaceManagedSqlServerSecurityAlertCreateWithMinParameters.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * WorkspaceManagedSqlServerSecurityAlertCreateWithMinParameters.json */ /** * Sample code: Update a workspace managed sql server's threat detection policy with minimal parameters. - * + * * @param manager Entry point to SynapseManager. */ public static void updateAWorkspaceManagedSqlServerSThreatDetectionPolicyWithMinimalParameters( com.azure.resourcemanager.synapse.SynapseManager manager) { - ServerSecurityAlertPolicy resource = - manager - .workspaceManagedSqlServerSecurityAlertPolicies() - .getWithResponse( - "wsg-7398", - "testWorkspace", - SecurityAlertPolicyNameAutoGenerated.DEFAULT, - com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() - .withState(SecurityAlertPolicyState.DISABLED) - .withStorageAccountAccessKey( - "sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==") - .apply(); + ServerSecurityAlertPolicy resource + = manager.workspaceManagedSqlServerSecurityAlertPolicies().getWithResponse("wsg-7398", "testWorkspace", + SecurityAlertPolicyNameAutoGenerated.DEFAULT, com.azure.core.util.Context.NONE).getValue(); + resource.update().withState(SecurityAlertPolicyState.DISABLED).withStorageAccountAccessKey( + "sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==").apply(); } } ``` @@ -6488,25 +6227,23 @@ public final class WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateSam ```java import com.azure.resourcemanager.synapse.models.SecurityAlertPolicyNameAutoGenerated; -/** Samples for WorkspaceManagedSqlServerSecurityAlertPolicy Get. */ +/** + * Samples for WorkspaceManagedSqlServerSecurityAlertPolicy Get. + */ public final class WorkspaceManagedSqlServerSecurityAlertPolicyGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceManagedSqlServerSecurityAlertPolicy.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * GetWorkspaceManagedSqlServerSecurityAlertPolicy.json */ /** * Sample code: Get workspace managed sql Server's security alert policy. - * + * * @param manager Entry point to SynapseManager. */ - public static void getWorkspaceManagedSqlServerSSecurityAlertPolicy( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedSqlServerSecurityAlertPolicies() - .getWithResponse( - "wsg-7398", - "testWorkspace", - SecurityAlertPolicyNameAutoGenerated.DEFAULT, - com.azure.core.util.Context.NONE); + public static void + getWorkspaceManagedSqlServerSSecurityAlertPolicy(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.workspaceManagedSqlServerSecurityAlertPolicies().getWithResponse("wsg-7398", "testWorkspace", + SecurityAlertPolicyNameAutoGenerated.DEFAULT, com.azure.core.util.Context.NONE); } } ``` @@ -6514,21 +6251,23 @@ public final class WorkspaceManagedSqlServerSecurityAlertPolicyGetSamples { ### WorkspaceManagedSqlServerSecurityAlertPolicy_List ```java -/** Samples for WorkspaceManagedSqlServerSecurityAlertPolicy List. */ +/** + * Samples for WorkspaceManagedSqlServerSecurityAlertPolicy List. + */ public final class WorkspaceManagedSqlServerSecurityAlertPolicyListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListWorkspaceManagedSqlServerSecurityAlertPolicies.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * ListWorkspaceManagedSqlServerSecurityAlertPolicies.json */ /** * Sample code: Get workspace managed sql server's security alert policy. - * + * * @param manager Entry point to SynapseManager. */ - public static void getWorkspaceManagedSqlServerSSecurityAlertPolicy( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedSqlServerSecurityAlertPolicies() - .list("wsg-7398", "testWorkspace", com.azure.core.util.Context.NONE); + public static void + getWorkspaceManagedSqlServerSSecurityAlertPolicy(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.workspaceManagedSqlServerSecurityAlertPolicies().list("wsg-7398", "testWorkspace", + com.azure.core.util.Context.NONE); } } ``` @@ -6536,18 +6275,21 @@ public final class WorkspaceManagedSqlServerSecurityAlertPolicyListSamples { ### WorkspaceManagedSqlServerUsages_List ```java -/** Samples for WorkspaceManagedSqlServerUsages List. */ +/** + * Samples for WorkspaceManagedSqlServerUsages List. + */ public final class WorkspaceManagedSqlServerUsagesListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListWorkspaceManagedSqlServerUsages.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * ListWorkspaceManagedSqlServerUsages.json */ /** * Sample code: List usages metric for the workspace managed sql server. - * + * * @param manager Entry point to SynapseManager. */ - public static void listUsagesMetricForTheWorkspaceManagedSqlServer( - com.azure.resourcemanager.synapse.SynapseManager manager) { + public static void + listUsagesMetricForTheWorkspaceManagedSqlServer(com.azure.resourcemanager.synapse.SynapseManager manager) { manager.workspaceManagedSqlServerUsages().list("wsg-7398", "testWorkspace", com.azure.core.util.Context.NONE); } } @@ -6557,75 +6299,69 @@ public final class WorkspaceManagedSqlServerUsagesListSamples { ```java import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; -import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated; +import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentRecurringScansProperties; import java.util.Arrays; -/** Samples for WorkspaceManagedSqlServerVulnerabilityAssessments CreateOrUpdate. */ +/** + * Samples for WorkspaceManagedSqlServerVulnerabilityAssessments CreateOrUpdate. + */ public final class WorkspaceManagedSqlServerVulnerabilityAssessmentsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/PutWorkspaceMangedSqlServerVulnerabilityAssessmentCreateContainerSasKeyMin.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * PutWorkspaceMangedSqlServerVulnerabilityAssessmentCreateContainerSasKeyMin.json */ /** * Sample code: Create or Update a workspace managed sql server's vulnerability assessment with minimal parameters, * when storageContainerSasKey is specified. - * + * * @param manager Entry point to SynapseManager. */ public static void createOrUpdateAWorkspaceManagedSqlServerSVulnerabilityAssessmentWithMinimalParametersWhenStorageContainerSasKeyIsSpecified( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedSqlServerVulnerabilityAssessments() - .define(VulnerabilityAssessmentName.DEFAULT) + manager.workspaceManagedSqlServerVulnerabilityAssessments().define(VulnerabilityAssessmentName.DEFAULT) .withExistingWorkspace("wsg-7398", "testWorkspace") .withStorageContainerPath("https://myStorage.blob.core.windows.net/vulnerability-assessment/") - .withStorageContainerSasKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") - .create(); + .withStorageContainerSasKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").create(); } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/PutWorkspaceMangedSqlServerVulnerabilityAssessmentCreateStorageAccessKeyMin.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * PutWorkspaceMangedSqlServerVulnerabilityAssessmentCreateStorageAccessKeyMin.json */ /** * Sample code: Create or Update a workspace managed sql server's vulnerability assessment with minimal parameters, * when storageAccountAccessKey is specified. - * + * * @param manager Entry point to SynapseManager. */ public static void createOrUpdateAWorkspaceManagedSqlServerSVulnerabilityAssessmentWithMinimalParametersWhenStorageAccountAccessKeyIsSpecified( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedSqlServerVulnerabilityAssessments() - .define(VulnerabilityAssessmentName.DEFAULT) + manager.workspaceManagedSqlServerVulnerabilityAssessments().define(VulnerabilityAssessmentName.DEFAULT) .withExistingWorkspace("wsg-7398", "testWorkspace") .withStorageContainerPath("https://myStorage.blob.core.windows.net/vulnerability-assessment/") - .withStorageAccountAccessKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") - .create(); + .withStorageAccountAccessKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").create(); } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/PutWorkspaceManagedSqlServerVulnerabilityAssessmentWithAllParameters.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * PutWorkspaceManagedSqlServerVulnerabilityAssessmentWithAllParameters.json */ /** * Sample code: Create or Update a workspace managed sql server's vulnerability assessment with all parameters. - * + * * @param manager Entry point to SynapseManager. */ public static void createOrUpdateAWorkspaceManagedSqlServerSVulnerabilityAssessmentWithAllParameters( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedSqlServerVulnerabilityAssessments() - .define(VulnerabilityAssessmentName.DEFAULT) + manager.workspaceManagedSqlServerVulnerabilityAssessments().define(VulnerabilityAssessmentName.DEFAULT) .withExistingWorkspace("wsg-7398", "testWorkspace") .withStorageContainerPath("https://myStorage.blob.core.windows.net/vulnerability-assessment/") .withStorageContainerSasKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") .withStorageAccountAccessKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") - .withRecurringScans( - new VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated() - .withIsEnabled(true) - .withEmailSubscriptionAdmins(true) - .withEmails(Arrays.asList("email1@mail.com", "email2@mail.com"))) + .withRecurringScans(new VulnerabilityAssessmentRecurringScansProperties().withIsEnabled(true) + .withEmailSubscriptionAdmins(true).withEmails(Arrays.asList("email1@mail.com", "email2@mail.com"))) .create(); } } @@ -6636,22 +6372,23 @@ public final class WorkspaceManagedSqlServerVulnerabilityAssessmentsCreateOrUpda ```java import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; -/** Samples for WorkspaceManagedSqlServerVulnerabilityAssessments Delete. */ +/** + * Samples for WorkspaceManagedSqlServerVulnerabilityAssessments Delete. + */ public final class WorkspaceManagedSqlServerVulnerabilityAssessmentsDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteWorkspaceManagedSqlServerVulnerabilityAssessment.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * DeleteWorkspaceManagedSqlServerVulnerabilityAssessment.json */ /** * Sample code: Remove workspace managed sql Server's vulnerability assessment. - * + * * @param manager Entry point to SynapseManager. */ public static void removeWorkspaceManagedSqlServerSVulnerabilityAssessment( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedSqlServerVulnerabilityAssessments() - .deleteWithResponse( - "wsg-7398", "testWorkspace", VulnerabilityAssessmentName.DEFAULT, com.azure.core.util.Context.NONE); + manager.workspaceManagedSqlServerVulnerabilityAssessments().deleteWithResponse("wsg-7398", "testWorkspace", + VulnerabilityAssessmentName.DEFAULT, com.azure.core.util.Context.NONE); } } ``` @@ -6661,22 +6398,23 @@ public final class WorkspaceManagedSqlServerVulnerabilityAssessmentsDeleteSample ```java import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; -/** Samples for WorkspaceManagedSqlServerVulnerabilityAssessments Get. */ +/** + * Samples for WorkspaceManagedSqlServerVulnerabilityAssessments Get. + */ public final class WorkspaceManagedSqlServerVulnerabilityAssessmentsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceManagedSqlServerVulnerabilityAssessment.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * GetWorkspaceManagedSqlServerVulnerabilityAssessment.json */ /** * Sample code: Get workspace managed sql Server's vulnerability assessment. - * + * * @param manager Entry point to SynapseManager. */ - public static void getWorkspaceManagedSqlServerSVulnerabilityAssessment( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedSqlServerVulnerabilityAssessments() - .getWithResponse( - "wsg-7398", "testWorkspace", VulnerabilityAssessmentName.DEFAULT, com.azure.core.util.Context.NONE); + public static void + getWorkspaceManagedSqlServerSVulnerabilityAssessment(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.workspaceManagedSqlServerVulnerabilityAssessments().getWithResponse("wsg-7398", "testWorkspace", + VulnerabilityAssessmentName.DEFAULT, com.azure.core.util.Context.NONE); } } ``` @@ -6684,21 +6422,23 @@ public final class WorkspaceManagedSqlServerVulnerabilityAssessmentsGetSamples { ### WorkspaceManagedSqlServerVulnerabilityAssessments_List ```java -/** Samples for WorkspaceManagedSqlServerVulnerabilityAssessments List. */ +/** + * Samples for WorkspaceManagedSqlServerVulnerabilityAssessments List. + */ public final class WorkspaceManagedSqlServerVulnerabilityAssessmentsListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListWorkspaceManagedSqlServerVulnerabilityAssessmentPolicies.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * ListWorkspaceManagedSqlServerVulnerabilityAssessmentPolicies.json */ /** * Sample code: Get workspace managed sql Server's vulnerability assessment policies. - * + * * @param manager Entry point to SynapseManager. */ public static void getWorkspaceManagedSqlServerSVulnerabilityAssessmentPolicies( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedSqlServerVulnerabilityAssessments() - .list("wsg-7398", "testWorkspace", com.azure.core.util.Context.NONE); + manager.workspaceManagedSqlServerVulnerabilityAssessments().list("wsg-7398", "testWorkspace", + com.azure.core.util.Context.NONE); } } ``` @@ -6708,29 +6448,26 @@ public final class WorkspaceManagedSqlServerVulnerabilityAssessmentsListSamples ```java import com.azure.resourcemanager.synapse.fluent.models.WorkspaceAadAdminInfoInner; -/** Samples for WorkspaceSqlAadAdmins CreateOrUpdate. */ +/** + * Samples for WorkspaceSqlAadAdmins CreateOrUpdate. + */ public final class WorkspaceSqlAadAdminsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateWorkspaceAadAdmin.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CreateOrUpdateWorkspaceAadAdmin.json */ /** * Sample code: Create or update workspace active directory admin. - * + * * @param manager Entry point to SynapseManager. */ - public static void createOrUpdateWorkspaceActiveDirectoryAdmin( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceSqlAadAdmins() - .createOrUpdate( - "resourceGroup1", - "workspace1", - new WorkspaceAadAdminInfoInner() - .withTenantId("c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c") - .withLogin("bob@contoso.com") - .withAdministratorType("ActiveDirectory") - .withSid("c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c"), - com.azure.core.util.Context.NONE); + public static void + createOrUpdateWorkspaceActiveDirectoryAdmin(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.workspaceSqlAadAdmins().createOrUpdate("resourceGroup1", "workspace1", + new WorkspaceAadAdminInfoInner().withTenantId("c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c") + .withLogin("bob@contoso.com").withAdministratorType("ActiveDirectory") + .withSid("c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c"), + com.azure.core.util.Context.NONE); } } ``` @@ -6738,14 +6475,17 @@ public final class WorkspaceSqlAadAdminsCreateOrUpdateSamples { ### WorkspaceSqlAadAdmins_Delete ```java -/** Samples for WorkspaceSqlAadAdmins Delete. */ +/** + * Samples for WorkspaceSqlAadAdmins Delete. + */ public final class WorkspaceSqlAadAdminsDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteWorkspaceAadAdmin.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteWorkspaceAadAdmin.json */ /** * Sample code: Delete workspace active directory admin. - * + * * @param manager Entry point to SynapseManager. */ public static void deleteWorkspaceActiveDirectoryAdmin(com.azure.resourcemanager.synapse.SynapseManager manager) { @@ -6757,20 +6497,22 @@ public final class WorkspaceSqlAadAdminsDeleteSamples { ### WorkspaceSqlAadAdmins_Get ```java -/** Samples for WorkspaceSqlAadAdmins Get. */ +/** + * Samples for WorkspaceSqlAadAdmins Get. + */ public final class WorkspaceSqlAadAdminsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceAadAdmin.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceAadAdmin.json */ /** * Sample code: Get workspace active directory admin. - * + * * @param manager Entry point to SynapseManager. */ public static void getWorkspaceActiveDirectoryAdmin(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceSqlAadAdmins() - .getWithResponse("resourceGroup1", "workspace1", com.azure.core.util.Context.NONE); + manager.workspaceSqlAadAdmins().getWithResponse("resourceGroup1", "workspace1", + com.azure.core.util.Context.NONE); } } ``` @@ -6795,74 +6537,52 @@ import java.util.Arrays; import java.util.HashMap; import java.util.Map; -/** Samples for Workspaces CreateOrUpdate. */ +/** + * Samples for Workspaces CreateOrUpdate. + */ public final class WorkspacesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateWorkspace.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateWorkspace.json */ /** * Sample code: Create or update a workspace. - * + * * @param manager Entry point to SynapseManager. */ public static void createOrUpdateAWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaces() - .define("workspace1") - .withRegion("East US") - .withExistingResourceGroup("resourceGroup1") - .withTags(mapOf("key", "value")) - .withIdentity( - new ManagedIdentity() - .withType(ResourceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED) - .withUserAssignedIdentities( - mapOf( - "/subscriptions/00000000-1111-2222-3333-444444444444/resourcegroups/resourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uami1", - new UserAssignedManagedIdentity()))) - .withDefaultDataLakeStorage( - new DataLakeStorageAccountDetails() - .withAccountUrl("https://accountname.dfs.core.windows.net") - .withFilesystem("default")) + manager.workspaces().define("workspace1").withRegion("East US").withExistingResourceGroup("resourceGroup1") + .withTags(mapOf("key", "fakeTokenPlaceholder")) + .withIdentity(new ManagedIdentity().withType(ResourceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED) + .withUserAssignedIdentities(mapOf( + "/subscriptions/00000000-1111-2222-3333-444444444444/resourcegroups/resourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uami1", + new UserAssignedManagedIdentity()))) + .withDefaultDataLakeStorage(new DataLakeStorageAccountDetails() + .withAccountUrl("https://accountname.dfs.core.windows.net").withFilesystem("default")) .withSqlAdministratorLoginPassword("password") - .withManagedResourceGroupName("workspaceManagedResourceGroupUnique") - .withSqlAdministratorLogin("login") + .withManagedResourceGroupName("workspaceManagedResourceGroupUnique").withSqlAdministratorLogin("login") .withManagedVirtualNetwork("default") - .withEncryption( - new EncryptionDetails() - .withCmk( - new CustomerManagedKeyDetails() - .withKey( - new WorkspaceKeyDetails().withName("default").withKeyVaultUrl("fakeTokenPlaceholder")) - .withKekIdentity( - new KekIdentityProperties() - .withUserAssignedIdentity( - "/subscriptions/b64d7b94-73e7-4d36-94b2-7764ea3fd74a/resourcegroups/SynapseCI/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uami1") - .withUseSystemAssignedIdentity(false)))) - .withManagedVirtualNetworkSettings( - new ManagedVirtualNetworkSettings() - .withPreventDataExfiltration(false) - .withLinkedAccessCheckOnTargetResource(false) - .withAllowedAadTenantIdsForLinking(Arrays.asList("740239CE-A25B-485B-86A0-262F29F6EBDB"))) + .withEncryption(new EncryptionDetails().withCmk(new CustomerManagedKeyDetails() + .withKey(new WorkspaceKeyDetails().withName("default").withKeyVaultUrl("fakeTokenPlaceholder")) + .withKekIdentity(new KekIdentityProperties().withUserAssignedIdentity( + "/subscriptions/b64d7b94-73e7-4d36-94b2-7764ea3fd74a/resourcegroups/SynapseCI/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uami1") + .withUseSystemAssignedIdentity(false)))) + .withManagedVirtualNetworkSettings(new ManagedVirtualNetworkSettings().withPreventDataExfiltration(false) + .withLinkedAccessCheckOnTargetResource(false) + .withAllowedAadTenantIdsForLinking(Arrays.asList("740239CE-A25B-485B-86A0-262F29F6EBDB"))) .withWorkspaceRepositoryConfiguration( - new WorkspaceRepositoryConfiguration() - .withType("FactoryGitHubConfiguration") - .withHostname("") - .withAccountName("mygithubaccount") - .withProjectName("myproject") - .withRepositoryName("myrepository") - .withCollaborationBranch("master") - .withRootFolder("/")) - .withPurviewConfiguration( - new PurviewConfiguration() - .withPurviewResourceId( - "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup1/providers/Microsoft.ProjectPurview/accounts/accountname1")) + new WorkspaceRepositoryConfiguration().withType("FactoryGitHubConfiguration").withHostname("") + .withAccountName("mygithubaccount").withProjectName("myproject").withRepositoryName("myrepository") + .withCollaborationBranch("master").withRootFolder("/")) + .withPurviewConfiguration(new PurviewConfiguration().withPurviewResourceId( + "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup1/providers/Microsoft.ProjectPurview/accounts/accountname1")) .withPublicNetworkAccess(WorkspacePublicNetworkAccess.ENABLED) - .withCspWorkspaceAdminProperties( - new CspWorkspaceAdminProperties() - .withInitialWorkspaceAdminObjectId("6c20646f-8050-49ec-b3b1-80a0e58e454d")) + .withCspWorkspaceAdminProperties(new CspWorkspaceAdminProperties() + .withInitialWorkspaceAdminObjectId("6c20646f-8050-49ec-b3b1-80a0e58e454d")) .create(); } + // Use "Map.of" if available @SuppressWarnings("unchecked") private static Map mapOf(Object... inputs) { Map map = new HashMap<>(); @@ -6879,14 +6599,17 @@ public final class WorkspacesCreateOrUpdateSamples { ### Workspaces_Delete ```java -/** Samples for Workspaces Delete. */ +/** + * Samples for Workspaces Delete. + */ public final class WorkspacesDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteWorkspace.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteWorkspace.json */ /** * Sample code: Delete a workspace. - * + * * @param manager Entry point to SynapseManager. */ public static void deleteAWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { @@ -6898,20 +6621,22 @@ public final class WorkspacesDeleteSamples { ### Workspaces_GetByResourceGroup ```java -/** Samples for Workspaces GetByResourceGroup. */ +/** + * Samples for Workspaces GetByResourceGroup. + */ public final class WorkspacesGetByResourceGroupSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspace.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspace.json */ /** * Sample code: Get a workspace. - * + * * @param manager Entry point to SynapseManager. */ public static void getAWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaces() - .getByResourceGroupWithResponse("resourceGroup1", "workspace1", com.azure.core.util.Context.NONE); + manager.workspaces().getByResourceGroupWithResponse("resourceGroup1", "workspace1", + com.azure.core.util.Context.NONE); } } ``` @@ -6919,14 +6644,18 @@ public final class WorkspacesGetByResourceGroupSamples { ### Workspaces_List ```java -/** Samples for Workspaces List. */ +/** + * Samples for Workspaces List. + */ public final class WorkspacesListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListWorkspacesInSubscription.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListWorkspacesInSubscription. + * json */ /** * Sample code: List workspaces in subscription. - * + * * @param manager Entry point to SynapseManager. */ public static void listWorkspacesInSubscription(com.azure.resourcemanager.synapse.SynapseManager manager) { @@ -6938,14 +6667,18 @@ public final class WorkspacesListSamples { ### Workspaces_ListByResourceGroup ```java -/** Samples for Workspaces ListByResourceGroup. */ +/** + * Samples for Workspaces ListByResourceGroup. + */ public final class WorkspacesListByResourceGroupSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListWorkspacesInResourceGroup.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListWorkspacesInResourceGroup + * .json */ /** * Sample code: List workspaces in resource group. - * + * * @param manager Entry point to SynapseManager. */ public static void listWorkspacesInResourceGroup(com.azure.resourcemanager.synapse.SynapseManager manager) { @@ -6971,55 +6704,41 @@ import java.util.Arrays; import java.util.HashMap; import java.util.Map; -/** Samples for Workspaces Update. */ +/** + * Samples for Workspaces Update. + */ public final class WorkspacesUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/UpdateWorkspace.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/UpdateWorkspace.json */ /** * Sample code: Update a workspace. - * + * * @param manager Entry point to SynapseManager. */ public static void updateAWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { - Workspace resource = - manager - .workspaces() - .getByResourceGroupWithResponse("resourceGroup1", "workspace1", com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() - .withTags(mapOf("key", "value")) + Workspace resource = manager.workspaces() + .getByResourceGroupWithResponse("resourceGroup1", "workspace1", com.azure.core.util.Context.NONE) + .getValue(); + resource.update().withTags(mapOf("key", "fakeTokenPlaceholder")) .withIdentity(new ManagedIdentity().withType(ResourceIdentityType.SYSTEM_ASSIGNED)) .withSqlAdministratorLoginPassword("password") - .withManagedVirtualNetworkSettings( - new ManagedVirtualNetworkSettings() - .withPreventDataExfiltration(false) - .withLinkedAccessCheckOnTargetResource(false) - .withAllowedAadTenantIdsForLinking(Arrays.asList("740239CE-A25B-485B-86A0-262F29F6EBDB"))) + .withManagedVirtualNetworkSettings(new ManagedVirtualNetworkSettings().withPreventDataExfiltration(false) + .withLinkedAccessCheckOnTargetResource(false) + .withAllowedAadTenantIdsForLinking(Arrays.asList("740239CE-A25B-485B-86A0-262F29F6EBDB"))) .withWorkspaceRepositoryConfiguration( - new WorkspaceRepositoryConfiguration() - .withType("FactoryGitHubConfiguration") - .withHostname("") - .withAccountName("adifferentacount") - .withProjectName("myproject") - .withRepositoryName("myrepository") - .withCollaborationBranch("master") - .withRootFolder("/")) - .withPurviewConfiguration( - new PurviewConfiguration() - .withPurviewResourceId( - "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup1/providers/Microsoft.ProjectPurview/accounts/accountname1")) - .withEncryption( - new EncryptionDetails() - .withCmk( - new CustomerManagedKeyDetails() - .withKey( - new WorkspaceKeyDetails().withName("default").withKeyVaultUrl("fakeTokenPlaceholder")))) - .withPublicNetworkAccess(WorkspacePublicNetworkAccess.ENABLED) - .apply(); + new WorkspaceRepositoryConfiguration().withType("FactoryGitHubConfiguration").withHostname("") + .withAccountName("adifferentacount").withProjectName("myproject").withRepositoryName("myrepository") + .withCollaborationBranch("master").withRootFolder("/")) + .withPurviewConfiguration(new PurviewConfiguration().withPurviewResourceId( + "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup1/providers/Microsoft.ProjectPurview/accounts/accountname1")) + .withEncryption(new EncryptionDetails().withCmk(new CustomerManagedKeyDetails() + .withKey(new WorkspaceKeyDetails().withName("default").withKeyVaultUrl("fakeTokenPlaceholder")))) + .withPublicNetworkAccess(WorkspacePublicNetworkAccess.ENABLED).apply(); } + // Use "Map.of" if available @SuppressWarnings("unchecked") private static Map mapOf(Object... inputs) { Map map = new HashMap<>(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/pom.xml b/sdk/synapse/azure-resourcemanager-synapse/pom.xml index d267caaa12f9..705a72760996 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/pom.xml +++ b/sdk/synapse/azure-resourcemanager-synapse/pom.xml @@ -1,3 +1,8 @@ + 4.0.0 @@ -38,7 +43,9 @@ UTF-8 - true + 0 + 0 + true @@ -81,8 +88,6 @@ 4.11.0 test - - net.bytebuddy byte-buddy diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/SynapseManager.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/SynapseManager.java index d53bda1519c4..978ddce7482d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/SynapseManager.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/SynapseManager.java @@ -182,7 +182,10 @@ import java.util.Objects; import java.util.stream.Collectors; -/** Entry point to SynapseManager. Azure Synapse Analytics Management Client. */ +/** + * Entry point to SynapseManager. + * Azure Synapse Analytics Management Client. + */ public final class SynapseManager { private AzureADOnlyAuthentications azureADOnlyAuthentications; @@ -274,8 +277,7 @@ public final class SynapseManager { private WorkspaceManagedSqlServerRecoverableSqlPools workspaceManagedSqlServerRecoverableSqlPools; - private WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings - workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings; + private WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings; private Workspaces workspaces; @@ -340,18 +342,14 @@ public final class SynapseManager { private SynapseManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) { Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null."); Objects.requireNonNull(profile, "'profile' cannot be null."); - this.clientObject = - new SynapseManagementClientBuilder() - .pipeline(httpPipeline) - .endpoint(profile.getEnvironment().getResourceManagerEndpoint()) - .subscriptionId(profile.getSubscriptionId()) - .defaultPollInterval(defaultPollInterval) - .buildClient(); + this.clientObject = new SynapseManagementClientBuilder().pipeline(httpPipeline) + .endpoint(profile.getEnvironment().getResourceManagerEndpoint()).subscriptionId(profile.getSubscriptionId()) + .defaultPollInterval(defaultPollInterval).buildClient(); } /** * Creates an instance of Synapse service API entry point. - * + * * @param credential the credential to use. * @param profile the Azure profile for client. * @return the Synapse service API instance. @@ -364,7 +362,7 @@ public static SynapseManager authenticate(TokenCredential credential, AzureProfi /** * Creates an instance of Synapse service API entry point. - * + * * @param httpPipeline the {@link HttpPipeline} configured with Azure authentication credential. * @param profile the Azure profile for client. * @return the Synapse service API instance. @@ -377,14 +375,16 @@ public static SynapseManager authenticate(HttpPipeline httpPipeline, AzureProfil /** * Gets a Configurable instance that can be used to create SynapseManager with optional configuration. - * + * * @return the Configurable instance allowing configurations. */ public static Configurable configure() { return new SynapseManager.Configurable(); } - /** The Configurable allowing configurations to be set. */ + /** + * The Configurable allowing configurations to be set. + */ public static final class Configurable { private static final ClientLogger LOGGER = new ClientLogger(Configurable.class); @@ -456,8 +456,8 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) { /** * Sets the retry options for the HTTP pipeline retry policy. - * - *

This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}. + *

+ * This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}. * * @param retryOptions the retry options for the HTTP pipeline retry policy. * @return the configurable object itself. @@ -474,8 +474,8 @@ public Configurable withRetryOptions(RetryOptions retryOptions) { * @return the configurable object itself. */ public Configurable withDefaultPollInterval(Duration defaultPollInterval) { - this.defaultPollInterval = - Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null."); + this.defaultPollInterval + = Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null."); if (this.defaultPollInterval.isNegative()) { throw LOGGER .logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative")); @@ -495,21 +495,12 @@ public SynapseManager authenticate(TokenCredential credential, AzureProfile prof Objects.requireNonNull(profile, "'profile' cannot be null."); StringBuilder userAgentBuilder = new StringBuilder(); - userAgentBuilder - .append("azsdk-java") - .append("-") - .append("com.azure.resourcemanager.synapse") - .append("/") - .append("1.0.0-beta.7"); + userAgentBuilder.append("azsdk-java").append("-").append("com.azure.resourcemanager.synapse").append("/") + .append("1.0.0-beta.1"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { - userAgentBuilder - .append(" (") - .append(Configuration.getGlobalConfiguration().get("java.version")) - .append("; ") - .append(Configuration.getGlobalConfiguration().get("os.name")) - .append("; ") - .append(Configuration.getGlobalConfiguration().get("os.version")) - .append("; auto-generated)"); + userAgentBuilder.append(" (").append(Configuration.getGlobalConfiguration().get("java.version")) + .append("; ").append(Configuration.getGlobalConfiguration().get("os.name")).append("; ") + .append(Configuration.getGlobalConfiguration().get("os.version")).append("; auto-generated)"); } else { userAgentBuilder.append(" (auto-generated)"); } @@ -528,51 +519,38 @@ public SynapseManager authenticate(TokenCredential credential, AzureProfile prof policies.add(new UserAgentPolicy(userAgentBuilder.toString())); policies.add(new AddHeadersFromContextPolicy()); policies.add(new RequestIdPolicy()); - policies - .addAll( - this - .policies - .stream() - .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL) - .collect(Collectors.toList())); + policies.addAll(this.policies.stream().filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL) + .collect(Collectors.toList())); HttpPolicyProviders.addBeforeRetryPolicies(policies); policies.add(retryPolicy); policies.add(new AddDatePolicy()); policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0]))); - policies - .addAll( - this - .policies - .stream() - .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY) - .collect(Collectors.toList())); + policies.addAll(this.policies.stream() + .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY).collect(Collectors.toList())); HttpPolicyProviders.addAfterRetryPolicies(policies); policies.add(new HttpLoggingPolicy(httpLogOptions)); - HttpPipeline httpPipeline = - new HttpPipelineBuilder() - .httpClient(httpClient) - .policies(policies.toArray(new HttpPipelinePolicy[0])) - .build(); + HttpPipeline httpPipeline = new HttpPipelineBuilder().httpClient(httpClient) + .policies(policies.toArray(new HttpPipelinePolicy[0])).build(); return new SynapseManager(httpPipeline, profile, defaultPollInterval); } } /** * Gets the resource collection API of AzureADOnlyAuthentications. It manages AzureADOnlyAuthentication. - * + * * @return Resource collection API of AzureADOnlyAuthentications. */ public AzureADOnlyAuthentications azureADOnlyAuthentications() { if (this.azureADOnlyAuthentications == null) { - this.azureADOnlyAuthentications = - new AzureADOnlyAuthenticationsImpl(clientObject.getAzureADOnlyAuthentications(), this); + this.azureADOnlyAuthentications + = new AzureADOnlyAuthenticationsImpl(clientObject.getAzureADOnlyAuthentications(), this); } return azureADOnlyAuthentications; } /** * Gets the resource collection API of Operations. - * + * * @return Resource collection API of Operations. */ public Operations operations() { @@ -584,7 +562,7 @@ public Operations operations() { /** * Gets the resource collection API of IpFirewallRules. It manages IpFirewallRuleInfo. - * + * * @return Resource collection API of IpFirewallRules. */ public IpFirewallRules ipFirewallRules() { @@ -596,7 +574,7 @@ public IpFirewallRules ipFirewallRules() { /** * Gets the resource collection API of Keys. It manages Key. - * + * * @return Resource collection API of Keys. */ public Keys keys() { @@ -608,46 +586,46 @@ public Keys keys() { /** * Gets the resource collection API of PrivateEndpointConnections. It manages PrivateEndpointConnection. - * + * * @return Resource collection API of PrivateEndpointConnections. */ public PrivateEndpointConnections privateEndpointConnections() { if (this.privateEndpointConnections == null) { - this.privateEndpointConnections = - new PrivateEndpointConnectionsImpl(clientObject.getPrivateEndpointConnections(), this); + this.privateEndpointConnections + = new PrivateEndpointConnectionsImpl(clientObject.getPrivateEndpointConnections(), this); } return privateEndpointConnections; } /** * Gets the resource collection API of PrivateLinkResourcesOperations. - * + * * @return Resource collection API of PrivateLinkResourcesOperations. */ public PrivateLinkResourcesOperations privateLinkResourcesOperations() { if (this.privateLinkResourcesOperations == null) { - this.privateLinkResourcesOperations = - new PrivateLinkResourcesOperationsImpl(clientObject.getPrivateLinkResourcesOperations(), this); + this.privateLinkResourcesOperations + = new PrivateLinkResourcesOperationsImpl(clientObject.getPrivateLinkResourcesOperations(), this); } return privateLinkResourcesOperations; } /** * Gets the resource collection API of PrivateLinkHubPrivateLinkResources. - * + * * @return Resource collection API of PrivateLinkHubPrivateLinkResources. */ public PrivateLinkHubPrivateLinkResources privateLinkHubPrivateLinkResources() { if (this.privateLinkHubPrivateLinkResources == null) { - this.privateLinkHubPrivateLinkResources = - new PrivateLinkHubPrivateLinkResourcesImpl(clientObject.getPrivateLinkHubPrivateLinkResources(), this); + this.privateLinkHubPrivateLinkResources = new PrivateLinkHubPrivateLinkResourcesImpl( + clientObject.getPrivateLinkHubPrivateLinkResources(), this); } return privateLinkHubPrivateLinkResources; } /** * Gets the resource collection API of PrivateLinkHubs. It manages PrivateLinkHub. - * + * * @return Resource collection API of PrivateLinkHubs. */ public PrivateLinkHubs privateLinkHubs() { @@ -659,21 +637,20 @@ public PrivateLinkHubs privateLinkHubs() { /** * Gets the resource collection API of PrivateEndpointConnectionsPrivateLinkHubs. - * + * * @return Resource collection API of PrivateEndpointConnectionsPrivateLinkHubs. */ public PrivateEndpointConnectionsPrivateLinkHubs privateEndpointConnectionsPrivateLinkHubs() { if (this.privateEndpointConnectionsPrivateLinkHubs == null) { - this.privateEndpointConnectionsPrivateLinkHubs = - new PrivateEndpointConnectionsPrivateLinkHubsImpl( - clientObject.getPrivateEndpointConnectionsPrivateLinkHubs(), this); + this.privateEndpointConnectionsPrivateLinkHubs = new PrivateEndpointConnectionsPrivateLinkHubsImpl( + clientObject.getPrivateEndpointConnectionsPrivateLinkHubs(), this); } return privateEndpointConnectionsPrivateLinkHubs; } /** * Gets the resource collection API of SqlPools. It manages SqlPool. - * + * * @return Resource collection API of SqlPools. */ public SqlPools sqlPools() { @@ -685,59 +662,59 @@ public SqlPools sqlPools() { /** * Gets the resource collection API of SqlPoolMetadataSyncConfigs. - * + * * @return Resource collection API of SqlPoolMetadataSyncConfigs. */ public SqlPoolMetadataSyncConfigs sqlPoolMetadataSyncConfigs() { if (this.sqlPoolMetadataSyncConfigs == null) { - this.sqlPoolMetadataSyncConfigs = - new SqlPoolMetadataSyncConfigsImpl(clientObject.getSqlPoolMetadataSyncConfigs(), this); + this.sqlPoolMetadataSyncConfigs + = new SqlPoolMetadataSyncConfigsImpl(clientObject.getSqlPoolMetadataSyncConfigs(), this); } return sqlPoolMetadataSyncConfigs; } /** * Gets the resource collection API of SqlPoolOperationResults. - * + * * @return Resource collection API of SqlPoolOperationResults. */ public SqlPoolOperationResults sqlPoolOperationResults() { if (this.sqlPoolOperationResults == null) { - this.sqlPoolOperationResults = - new SqlPoolOperationResultsImpl(clientObject.getSqlPoolOperationResults(), this); + this.sqlPoolOperationResults + = new SqlPoolOperationResultsImpl(clientObject.getSqlPoolOperationResults(), this); } return sqlPoolOperationResults; } /** * Gets the resource collection API of SqlPoolGeoBackupPolicies. It manages GeoBackupPolicy. - * + * * @return Resource collection API of SqlPoolGeoBackupPolicies. */ public SqlPoolGeoBackupPolicies sqlPoolGeoBackupPolicies() { if (this.sqlPoolGeoBackupPolicies == null) { - this.sqlPoolGeoBackupPolicies = - new SqlPoolGeoBackupPoliciesImpl(clientObject.getSqlPoolGeoBackupPolicies(), this); + this.sqlPoolGeoBackupPolicies + = new SqlPoolGeoBackupPoliciesImpl(clientObject.getSqlPoolGeoBackupPolicies(), this); } return sqlPoolGeoBackupPolicies; } /** * Gets the resource collection API of SqlPoolDataWarehouseUserActivities. - * + * * @return Resource collection API of SqlPoolDataWarehouseUserActivities. */ public SqlPoolDataWarehouseUserActivities sqlPoolDataWarehouseUserActivities() { if (this.sqlPoolDataWarehouseUserActivities == null) { - this.sqlPoolDataWarehouseUserActivities = - new SqlPoolDataWarehouseUserActivitiesImpl(clientObject.getSqlPoolDataWarehouseUserActivities(), this); + this.sqlPoolDataWarehouseUserActivities = new SqlPoolDataWarehouseUserActivitiesImpl( + clientObject.getSqlPoolDataWarehouseUserActivities(), this); } return sqlPoolDataWarehouseUserActivities; } /** * Gets the resource collection API of SqlPoolRestorePoints. - * + * * @return Resource collection API of SqlPoolRestorePoints. */ public SqlPoolRestorePoints sqlPoolRestorePoints() { @@ -749,72 +726,72 @@ public SqlPoolRestorePoints sqlPoolRestorePoints() { /** * Gets the resource collection API of SqlPoolReplicationLinks. - * + * * @return Resource collection API of SqlPoolReplicationLinks. */ public SqlPoolReplicationLinks sqlPoolReplicationLinks() { if (this.sqlPoolReplicationLinks == null) { - this.sqlPoolReplicationLinks = - new SqlPoolReplicationLinksImpl(clientObject.getSqlPoolReplicationLinks(), this); + this.sqlPoolReplicationLinks + = new SqlPoolReplicationLinksImpl(clientObject.getSqlPoolReplicationLinks(), this); } return sqlPoolReplicationLinks; } /** * Gets the resource collection API of SqlPoolMaintenanceWindows. - * + * * @return Resource collection API of SqlPoolMaintenanceWindows. */ public SqlPoolMaintenanceWindows sqlPoolMaintenanceWindows() { if (this.sqlPoolMaintenanceWindows == null) { - this.sqlPoolMaintenanceWindows = - new SqlPoolMaintenanceWindowsImpl(clientObject.getSqlPoolMaintenanceWindows(), this); + this.sqlPoolMaintenanceWindows + = new SqlPoolMaintenanceWindowsImpl(clientObject.getSqlPoolMaintenanceWindows(), this); } return sqlPoolMaintenanceWindows; } /** * Gets the resource collection API of SqlPoolMaintenanceWindowOptions. - * + * * @return Resource collection API of SqlPoolMaintenanceWindowOptions. */ public SqlPoolMaintenanceWindowOptions sqlPoolMaintenanceWindowOptions() { if (this.sqlPoolMaintenanceWindowOptions == null) { - this.sqlPoolMaintenanceWindowOptions = - new SqlPoolMaintenanceWindowOptionsImpl(clientObject.getSqlPoolMaintenanceWindowOptions(), this); + this.sqlPoolMaintenanceWindowOptions + = new SqlPoolMaintenanceWindowOptionsImpl(clientObject.getSqlPoolMaintenanceWindowOptions(), this); } return sqlPoolMaintenanceWindowOptions; } /** * Gets the resource collection API of SqlPoolTransparentDataEncryptions. It manages TransparentDataEncryption. - * + * * @return Resource collection API of SqlPoolTransparentDataEncryptions. */ public SqlPoolTransparentDataEncryptions sqlPoolTransparentDataEncryptions() { if (this.sqlPoolTransparentDataEncryptions == null) { - this.sqlPoolTransparentDataEncryptions = - new SqlPoolTransparentDataEncryptionsImpl(clientObject.getSqlPoolTransparentDataEncryptions(), this); + this.sqlPoolTransparentDataEncryptions + = new SqlPoolTransparentDataEncryptionsImpl(clientObject.getSqlPoolTransparentDataEncryptions(), this); } return sqlPoolTransparentDataEncryptions; } /** * Gets the resource collection API of SqlPoolBlobAuditingPolicies. It manages SqlPoolBlobAuditingPolicy. - * + * * @return Resource collection API of SqlPoolBlobAuditingPolicies. */ public SqlPoolBlobAuditingPolicies sqlPoolBlobAuditingPolicies() { if (this.sqlPoolBlobAuditingPolicies == null) { - this.sqlPoolBlobAuditingPolicies = - new SqlPoolBlobAuditingPoliciesImpl(clientObject.getSqlPoolBlobAuditingPolicies(), this); + this.sqlPoolBlobAuditingPolicies + = new SqlPoolBlobAuditingPoliciesImpl(clientObject.getSqlPoolBlobAuditingPolicies(), this); } return sqlPoolBlobAuditingPolicies; } /** * Gets the resource collection API of SqlPoolOperations. - * + * * @return Resource collection API of SqlPoolOperations. */ public SqlPoolOperations sqlPoolOperations() { @@ -826,7 +803,7 @@ public SqlPoolOperations sqlPoolOperations() { /** * Gets the resource collection API of SqlPoolUsages. - * + * * @return Resource collection API of SqlPoolUsages. */ public SqlPoolUsages sqlPoolUsages() { @@ -838,34 +815,33 @@ public SqlPoolUsages sqlPoolUsages() { /** * Gets the resource collection API of SqlPoolSensitivityLabels. It manages SensitivityLabel. - * + * * @return Resource collection API of SqlPoolSensitivityLabels. */ public SqlPoolSensitivityLabels sqlPoolSensitivityLabels() { if (this.sqlPoolSensitivityLabels == null) { - this.sqlPoolSensitivityLabels = - new SqlPoolSensitivityLabelsImpl(clientObject.getSqlPoolSensitivityLabels(), this); + this.sqlPoolSensitivityLabels + = new SqlPoolSensitivityLabelsImpl(clientObject.getSqlPoolSensitivityLabels(), this); } return sqlPoolSensitivityLabels; } /** * Gets the resource collection API of SqlPoolRecommendedSensitivityLabels. - * + * * @return Resource collection API of SqlPoolRecommendedSensitivityLabels. */ public SqlPoolRecommendedSensitivityLabels sqlPoolRecommendedSensitivityLabels() { if (this.sqlPoolRecommendedSensitivityLabels == null) { - this.sqlPoolRecommendedSensitivityLabels = - new SqlPoolRecommendedSensitivityLabelsImpl( - clientObject.getSqlPoolRecommendedSensitivityLabels(), this); + this.sqlPoolRecommendedSensitivityLabels = new SqlPoolRecommendedSensitivityLabelsImpl( + clientObject.getSqlPoolRecommendedSensitivityLabels(), this); } return sqlPoolRecommendedSensitivityLabels; } /** * Gets the resource collection API of SqlPoolSchemas. - * + * * @return Resource collection API of SqlPoolSchemas. */ public SqlPoolSchemas sqlPoolSchemas() { @@ -877,7 +853,7 @@ public SqlPoolSchemas sqlPoolSchemas() { /** * Gets the resource collection API of SqlPoolTables. - * + * * @return Resource collection API of SqlPoolTables. */ public SqlPoolTables sqlPoolTables() { @@ -889,7 +865,7 @@ public SqlPoolTables sqlPoolTables() { /** * Gets the resource collection API of SqlPoolTableColumns. - * + * * @return Resource collection API of SqlPoolTableColumns. */ public SqlPoolTableColumns sqlPoolTableColumns() { @@ -901,53 +877,52 @@ public SqlPoolTableColumns sqlPoolTableColumns() { /** * Gets the resource collection API of SqlPoolConnectionPolicies. - * + * * @return Resource collection API of SqlPoolConnectionPolicies. */ public SqlPoolConnectionPolicies sqlPoolConnectionPolicies() { if (this.sqlPoolConnectionPolicies == null) { - this.sqlPoolConnectionPolicies = - new SqlPoolConnectionPoliciesImpl(clientObject.getSqlPoolConnectionPolicies(), this); + this.sqlPoolConnectionPolicies + = new SqlPoolConnectionPoliciesImpl(clientObject.getSqlPoolConnectionPolicies(), this); } return sqlPoolConnectionPolicies; } /** * Gets the resource collection API of SqlPoolVulnerabilityAssessments. It manages SqlPoolVulnerabilityAssessment. - * + * * @return Resource collection API of SqlPoolVulnerabilityAssessments. */ public SqlPoolVulnerabilityAssessments sqlPoolVulnerabilityAssessments() { if (this.sqlPoolVulnerabilityAssessments == null) { - this.sqlPoolVulnerabilityAssessments = - new SqlPoolVulnerabilityAssessmentsImpl(clientObject.getSqlPoolVulnerabilityAssessments(), this); + this.sqlPoolVulnerabilityAssessments + = new SqlPoolVulnerabilityAssessmentsImpl(clientObject.getSqlPoolVulnerabilityAssessments(), this); } return sqlPoolVulnerabilityAssessments; } /** * Gets the resource collection API of SqlPoolVulnerabilityAssessmentScans. - * + * * @return Resource collection API of SqlPoolVulnerabilityAssessmentScans. */ public SqlPoolVulnerabilityAssessmentScans sqlPoolVulnerabilityAssessmentScans() { if (this.sqlPoolVulnerabilityAssessmentScans == null) { - this.sqlPoolVulnerabilityAssessmentScans = - new SqlPoolVulnerabilityAssessmentScansImpl( - clientObject.getSqlPoolVulnerabilityAssessmentScans(), this); + this.sqlPoolVulnerabilityAssessmentScans = new SqlPoolVulnerabilityAssessmentScansImpl( + clientObject.getSqlPoolVulnerabilityAssessmentScans(), this); } return sqlPoolVulnerabilityAssessmentScans; } /** * Gets the resource collection API of SqlPoolSecurityAlertPolicies. It manages SqlPoolSecurityAlertPolicy. - * + * * @return Resource collection API of SqlPoolSecurityAlertPolicies. */ public SqlPoolSecurityAlertPolicies sqlPoolSecurityAlertPolicies() { if (this.sqlPoolSecurityAlertPolicies == null) { - this.sqlPoolSecurityAlertPolicies = - new SqlPoolSecurityAlertPoliciesImpl(clientObject.getSqlPoolSecurityAlertPolicies(), this); + this.sqlPoolSecurityAlertPolicies + = new SqlPoolSecurityAlertPoliciesImpl(clientObject.getSqlPoolSecurityAlertPolicies(), this); } return sqlPoolSecurityAlertPolicies; } @@ -955,14 +930,13 @@ public SqlPoolSecurityAlertPolicies sqlPoolSecurityAlertPolicies() { /** * Gets the resource collection API of SqlPoolVulnerabilityAssessmentRuleBaselines. It manages * SqlPoolVulnerabilityAssessmentRuleBaseline. - * + * * @return Resource collection API of SqlPoolVulnerabilityAssessmentRuleBaselines. */ public SqlPoolVulnerabilityAssessmentRuleBaselines sqlPoolVulnerabilityAssessmentRuleBaselines() { if (this.sqlPoolVulnerabilityAssessmentRuleBaselines == null) { - this.sqlPoolVulnerabilityAssessmentRuleBaselines = - new SqlPoolVulnerabilityAssessmentRuleBaselinesImpl( - clientObject.getSqlPoolVulnerabilityAssessmentRuleBaselines(), this); + this.sqlPoolVulnerabilityAssessmentRuleBaselines = new SqlPoolVulnerabilityAssessmentRuleBaselinesImpl( + clientObject.getSqlPoolVulnerabilityAssessmentRuleBaselines(), this); } return sqlPoolVulnerabilityAssessmentRuleBaselines; } @@ -970,21 +944,20 @@ public SqlPoolVulnerabilityAssessmentRuleBaselines sqlPoolVulnerabilityAssessmen /** * Gets the resource collection API of ExtendedSqlPoolBlobAuditingPolicies. It manages * ExtendedSqlPoolBlobAuditingPolicy. - * + * * @return Resource collection API of ExtendedSqlPoolBlobAuditingPolicies. */ public ExtendedSqlPoolBlobAuditingPolicies extendedSqlPoolBlobAuditingPolicies() { if (this.extendedSqlPoolBlobAuditingPolicies == null) { - this.extendedSqlPoolBlobAuditingPolicies = - new ExtendedSqlPoolBlobAuditingPoliciesImpl( - clientObject.getExtendedSqlPoolBlobAuditingPolicies(), this); + this.extendedSqlPoolBlobAuditingPolicies = new ExtendedSqlPoolBlobAuditingPoliciesImpl( + clientObject.getExtendedSqlPoolBlobAuditingPolicies(), this); } return extendedSqlPoolBlobAuditingPolicies; } /** * Gets the resource collection API of DataMaskingPolicies. It manages DataMaskingPolicy. - * + * * @return Resource collection API of DataMaskingPolicies. */ public DataMaskingPolicies dataMaskingPolicies() { @@ -996,7 +969,7 @@ public DataMaskingPolicies dataMaskingPolicies() { /** * Gets the resource collection API of DataMaskingRules. It manages DataMaskingRule. - * + * * @return Resource collection API of DataMaskingRules. */ public DataMaskingRules dataMaskingRules() { @@ -1008,7 +981,7 @@ public DataMaskingRules dataMaskingRules() { /** * Gets the resource collection API of SqlPoolColumns. - * + * * @return Resource collection API of SqlPoolColumns. */ public SqlPoolColumns sqlPoolColumns() { @@ -1020,7 +993,7 @@ public SqlPoolColumns sqlPoolColumns() { /** * Gets the resource collection API of SqlPoolWorkloadGroups. It manages WorkloadGroup. - * + * * @return Resource collection API of SqlPoolWorkloadGroups. */ public SqlPoolWorkloadGroups sqlPoolWorkloadGroups() { @@ -1032,13 +1005,13 @@ public SqlPoolWorkloadGroups sqlPoolWorkloadGroups() { /** * Gets the resource collection API of SqlPoolWorkloadClassifiers. It manages WorkloadClassifier. - * + * * @return Resource collection API of SqlPoolWorkloadClassifiers. */ public SqlPoolWorkloadClassifiers sqlPoolWorkloadClassifiers() { if (this.sqlPoolWorkloadClassifiers == null) { - this.sqlPoolWorkloadClassifiers = - new SqlPoolWorkloadClassifiersImpl(clientObject.getSqlPoolWorkloadClassifiers(), this); + this.sqlPoolWorkloadClassifiers + = new SqlPoolWorkloadClassifiersImpl(clientObject.getSqlPoolWorkloadClassifiers(), this); } return sqlPoolWorkloadClassifiers; } @@ -1046,14 +1019,13 @@ public SqlPoolWorkloadClassifiers sqlPoolWorkloadClassifiers() { /** * Gets the resource collection API of WorkspaceManagedSqlServerBlobAuditingPolicies. It manages * ServerBlobAuditingPolicy. - * + * * @return Resource collection API of WorkspaceManagedSqlServerBlobAuditingPolicies. */ public WorkspaceManagedSqlServerBlobAuditingPolicies workspaceManagedSqlServerBlobAuditingPolicies() { if (this.workspaceManagedSqlServerBlobAuditingPolicies == null) { - this.workspaceManagedSqlServerBlobAuditingPolicies = - new WorkspaceManagedSqlServerBlobAuditingPoliciesImpl( - clientObject.getWorkspaceManagedSqlServerBlobAuditingPolicies(), this); + this.workspaceManagedSqlServerBlobAuditingPolicies = new WorkspaceManagedSqlServerBlobAuditingPoliciesImpl( + clientObject.getWorkspaceManagedSqlServerBlobAuditingPolicies(), this); } return workspaceManagedSqlServerBlobAuditingPolicies; } @@ -1061,14 +1033,14 @@ public WorkspaceManagedSqlServerBlobAuditingPolicies workspaceManagedSqlServerBl /** * Gets the resource collection API of WorkspaceManagedSqlServerExtendedBlobAuditingPolicies. It manages * ExtendedServerBlobAuditingPolicy. - * + * * @return Resource collection API of WorkspaceManagedSqlServerExtendedBlobAuditingPolicies. */ public WorkspaceManagedSqlServerExtendedBlobAuditingPolicies workspaceManagedSqlServerExtendedBlobAuditingPolicies() { if (this.workspaceManagedSqlServerExtendedBlobAuditingPolicies == null) { - this.workspaceManagedSqlServerExtendedBlobAuditingPolicies = - new WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesImpl( + this.workspaceManagedSqlServerExtendedBlobAuditingPolicies + = new WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesImpl( clientObject.getWorkspaceManagedSqlServerExtendedBlobAuditingPolicies(), this); } return workspaceManagedSqlServerExtendedBlobAuditingPolicies; @@ -1077,13 +1049,13 @@ public WorkspaceManagedSqlServerBlobAuditingPolicies workspaceManagedSqlServerBl /** * Gets the resource collection API of WorkspaceManagedSqlServerSecurityAlertPolicies. It manages * ServerSecurityAlertPolicy. - * + * * @return Resource collection API of WorkspaceManagedSqlServerSecurityAlertPolicies. */ public WorkspaceManagedSqlServerSecurityAlertPolicies workspaceManagedSqlServerSecurityAlertPolicies() { if (this.workspaceManagedSqlServerSecurityAlertPolicies == null) { - this.workspaceManagedSqlServerSecurityAlertPolicies = - new WorkspaceManagedSqlServerSecurityAlertPoliciesImpl( + this.workspaceManagedSqlServerSecurityAlertPolicies + = new WorkspaceManagedSqlServerSecurityAlertPoliciesImpl( clientObject.getWorkspaceManagedSqlServerSecurityAlertPolicies(), this); } return workspaceManagedSqlServerSecurityAlertPolicies; @@ -1092,13 +1064,13 @@ public WorkspaceManagedSqlServerSecurityAlertPolicies workspaceManagedSqlServerS /** * Gets the resource collection API of WorkspaceManagedSqlServerVulnerabilityAssessments. It manages * ServerVulnerabilityAssessment. - * + * * @return Resource collection API of WorkspaceManagedSqlServerVulnerabilityAssessments. */ public WorkspaceManagedSqlServerVulnerabilityAssessments workspaceManagedSqlServerVulnerabilityAssessments() { if (this.workspaceManagedSqlServerVulnerabilityAssessments == null) { - this.workspaceManagedSqlServerVulnerabilityAssessments = - new WorkspaceManagedSqlServerVulnerabilityAssessmentsImpl( + this.workspaceManagedSqlServerVulnerabilityAssessments + = new WorkspaceManagedSqlServerVulnerabilityAssessmentsImpl( clientObject.getWorkspaceManagedSqlServerVulnerabilityAssessments(), this); } return workspaceManagedSqlServerVulnerabilityAssessments; @@ -1107,55 +1079,53 @@ public WorkspaceManagedSqlServerVulnerabilityAssessments workspaceManagedSqlServ /** * Gets the resource collection API of WorkspaceManagedSqlServerEncryptionProtectors. It manages * EncryptionProtector. - * + * * @return Resource collection API of WorkspaceManagedSqlServerEncryptionProtectors. */ public WorkspaceManagedSqlServerEncryptionProtectors workspaceManagedSqlServerEncryptionProtectors() { if (this.workspaceManagedSqlServerEncryptionProtectors == null) { - this.workspaceManagedSqlServerEncryptionProtectors = - new WorkspaceManagedSqlServerEncryptionProtectorsImpl( - clientObject.getWorkspaceManagedSqlServerEncryptionProtectors(), this); + this.workspaceManagedSqlServerEncryptionProtectors = new WorkspaceManagedSqlServerEncryptionProtectorsImpl( + clientObject.getWorkspaceManagedSqlServerEncryptionProtectors(), this); } return workspaceManagedSqlServerEncryptionProtectors; } /** * Gets the resource collection API of WorkspaceManagedSqlServerUsages. - * + * * @return Resource collection API of WorkspaceManagedSqlServerUsages. */ public WorkspaceManagedSqlServerUsages workspaceManagedSqlServerUsages() { if (this.workspaceManagedSqlServerUsages == null) { - this.workspaceManagedSqlServerUsages = - new WorkspaceManagedSqlServerUsagesImpl(clientObject.getWorkspaceManagedSqlServerUsages(), this); + this.workspaceManagedSqlServerUsages + = new WorkspaceManagedSqlServerUsagesImpl(clientObject.getWorkspaceManagedSqlServerUsages(), this); } return workspaceManagedSqlServerUsages; } /** * Gets the resource collection API of WorkspaceManagedSqlServerRecoverableSqlPools. - * + * * @return Resource collection API of WorkspaceManagedSqlServerRecoverableSqlPools. */ public WorkspaceManagedSqlServerRecoverableSqlPools workspaceManagedSqlServerRecoverableSqlPools() { if (this.workspaceManagedSqlServerRecoverableSqlPools == null) { - this.workspaceManagedSqlServerRecoverableSqlPools = - new WorkspaceManagedSqlServerRecoverableSqlPoolsImpl( - clientObject.getWorkspaceManagedSqlServerRecoverableSqlPools(), this); + this.workspaceManagedSqlServerRecoverableSqlPools = new WorkspaceManagedSqlServerRecoverableSqlPoolsImpl( + clientObject.getWorkspaceManagedSqlServerRecoverableSqlPools(), this); } return workspaceManagedSqlServerRecoverableSqlPools; } /** * Gets the resource collection API of WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings. - * + * * @return Resource collection API of WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings. */ public WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings() { if (this.workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings == null) { - this.workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings = - new WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsImpl( + this.workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings + = new WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsImpl( clientObject.getWorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings(), this); } return workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings; @@ -1163,7 +1133,7 @@ public WorkspaceManagedSqlServerRecoverableSqlPools workspaceManagedSqlServerRec /** * Gets the resource collection API of Workspaces. It manages Workspace. - * + * * @return Resource collection API of Workspaces. */ public Workspaces workspaces() { @@ -1175,7 +1145,7 @@ public Workspaces workspaces() { /** * Gets the resource collection API of WorkspaceAadAdmins. - * + * * @return Resource collection API of WorkspaceAadAdmins. */ public WorkspaceAadAdmins workspaceAadAdmins() { @@ -1187,7 +1157,7 @@ public WorkspaceAadAdmins workspaceAadAdmins() { /** * Gets the resource collection API of WorkspaceSqlAadAdmins. - * + * * @return Resource collection API of WorkspaceSqlAadAdmins. */ public WorkspaceSqlAadAdmins workspaceSqlAadAdmins() { @@ -1199,34 +1169,33 @@ public WorkspaceSqlAadAdmins workspaceSqlAadAdmins() { /** * Gets the resource collection API of WorkspaceManagedIdentitySqlControlSettings. - * + * * @return Resource collection API of WorkspaceManagedIdentitySqlControlSettings. */ public WorkspaceManagedIdentitySqlControlSettings workspaceManagedIdentitySqlControlSettings() { if (this.workspaceManagedIdentitySqlControlSettings == null) { - this.workspaceManagedIdentitySqlControlSettings = - new WorkspaceManagedIdentitySqlControlSettingsImpl( - clientObject.getWorkspaceManagedIdentitySqlControlSettings(), this); + this.workspaceManagedIdentitySqlControlSettings = new WorkspaceManagedIdentitySqlControlSettingsImpl( + clientObject.getWorkspaceManagedIdentitySqlControlSettings(), this); } return workspaceManagedIdentitySqlControlSettings; } /** * Gets the resource collection API of RestorableDroppedSqlPools. - * + * * @return Resource collection API of RestorableDroppedSqlPools. */ public RestorableDroppedSqlPools restorableDroppedSqlPools() { if (this.restorableDroppedSqlPools == null) { - this.restorableDroppedSqlPools = - new RestorableDroppedSqlPoolsImpl(clientObject.getRestorableDroppedSqlPools(), this); + this.restorableDroppedSqlPools + = new RestorableDroppedSqlPoolsImpl(clientObject.getRestorableDroppedSqlPools(), this); } return restorableDroppedSqlPools; } /** * Gets the resource collection API of BigDataPools. It manages BigDataPoolResourceInfo. - * + * * @return Resource collection API of BigDataPools. */ public BigDataPools bigDataPools() { @@ -1238,7 +1207,7 @@ public BigDataPools bigDataPools() { /** * Gets the resource collection API of Libraries. - * + * * @return Resource collection API of Libraries. */ public Libraries libraries() { @@ -1250,7 +1219,7 @@ public Libraries libraries() { /** * Gets the resource collection API of LibrariesOperations. - * + * * @return Resource collection API of LibrariesOperations. */ public LibrariesOperations librariesOperations() { @@ -1262,7 +1231,7 @@ public LibrariesOperations librariesOperations() { /** * Gets the resource collection API of IntegrationRuntimes. It manages IntegrationRuntimeResource. - * + * * @return Resource collection API of IntegrationRuntimes. */ public IntegrationRuntimes integrationRuntimes() { @@ -1274,113 +1243,111 @@ public IntegrationRuntimes integrationRuntimes() { /** * Gets the resource collection API of IntegrationRuntimeNodeIpAddressOperations. - * + * * @return Resource collection API of IntegrationRuntimeNodeIpAddressOperations. */ public IntegrationRuntimeNodeIpAddressOperations integrationRuntimeNodeIpAddressOperations() { if (this.integrationRuntimeNodeIpAddressOperations == null) { - this.integrationRuntimeNodeIpAddressOperations = - new IntegrationRuntimeNodeIpAddressOperationsImpl( - clientObject.getIntegrationRuntimeNodeIpAddressOperations(), this); + this.integrationRuntimeNodeIpAddressOperations = new IntegrationRuntimeNodeIpAddressOperationsImpl( + clientObject.getIntegrationRuntimeNodeIpAddressOperations(), this); } return integrationRuntimeNodeIpAddressOperations; } /** * Gets the resource collection API of IntegrationRuntimeObjectMetadatas. - * + * * @return Resource collection API of IntegrationRuntimeObjectMetadatas. */ public IntegrationRuntimeObjectMetadatas integrationRuntimeObjectMetadatas() { if (this.integrationRuntimeObjectMetadatas == null) { - this.integrationRuntimeObjectMetadatas = - new IntegrationRuntimeObjectMetadatasImpl(clientObject.getIntegrationRuntimeObjectMetadatas(), this); + this.integrationRuntimeObjectMetadatas + = new IntegrationRuntimeObjectMetadatasImpl(clientObject.getIntegrationRuntimeObjectMetadatas(), this); } return integrationRuntimeObjectMetadatas; } /** * Gets the resource collection API of IntegrationRuntimeNodes. - * + * * @return Resource collection API of IntegrationRuntimeNodes. */ public IntegrationRuntimeNodes integrationRuntimeNodes() { if (this.integrationRuntimeNodes == null) { - this.integrationRuntimeNodes = - new IntegrationRuntimeNodesImpl(clientObject.getIntegrationRuntimeNodes(), this); + this.integrationRuntimeNodes + = new IntegrationRuntimeNodesImpl(clientObject.getIntegrationRuntimeNodes(), this); } return integrationRuntimeNodes; } /** * Gets the resource collection API of IntegrationRuntimeCredentials. - * + * * @return Resource collection API of IntegrationRuntimeCredentials. */ public IntegrationRuntimeCredentials integrationRuntimeCredentials() { if (this.integrationRuntimeCredentials == null) { - this.integrationRuntimeCredentials = - new IntegrationRuntimeCredentialsImpl(clientObject.getIntegrationRuntimeCredentials(), this); + this.integrationRuntimeCredentials + = new IntegrationRuntimeCredentialsImpl(clientObject.getIntegrationRuntimeCredentials(), this); } return integrationRuntimeCredentials; } /** * Gets the resource collection API of IntegrationRuntimeConnectionInfos. - * + * * @return Resource collection API of IntegrationRuntimeConnectionInfos. */ public IntegrationRuntimeConnectionInfos integrationRuntimeConnectionInfos() { if (this.integrationRuntimeConnectionInfos == null) { - this.integrationRuntimeConnectionInfos = - new IntegrationRuntimeConnectionInfosImpl(clientObject.getIntegrationRuntimeConnectionInfos(), this); + this.integrationRuntimeConnectionInfos + = new IntegrationRuntimeConnectionInfosImpl(clientObject.getIntegrationRuntimeConnectionInfos(), this); } return integrationRuntimeConnectionInfos; } /** * Gets the resource collection API of IntegrationRuntimeAuthKeysOperations. - * + * * @return Resource collection API of IntegrationRuntimeAuthKeysOperations. */ public IntegrationRuntimeAuthKeysOperations integrationRuntimeAuthKeysOperations() { if (this.integrationRuntimeAuthKeysOperations == null) { - this.integrationRuntimeAuthKeysOperations = - new IntegrationRuntimeAuthKeysOperationsImpl( - clientObject.getIntegrationRuntimeAuthKeysOperations(), this); + this.integrationRuntimeAuthKeysOperations = new IntegrationRuntimeAuthKeysOperationsImpl( + clientObject.getIntegrationRuntimeAuthKeysOperations(), this); } return integrationRuntimeAuthKeysOperations; } /** * Gets the resource collection API of IntegrationRuntimeMonitoringDatas. - * + * * @return Resource collection API of IntegrationRuntimeMonitoringDatas. */ public IntegrationRuntimeMonitoringDatas integrationRuntimeMonitoringDatas() { if (this.integrationRuntimeMonitoringDatas == null) { - this.integrationRuntimeMonitoringDatas = - new IntegrationRuntimeMonitoringDatasImpl(clientObject.getIntegrationRuntimeMonitoringDatas(), this); + this.integrationRuntimeMonitoringDatas + = new IntegrationRuntimeMonitoringDatasImpl(clientObject.getIntegrationRuntimeMonitoringDatas(), this); } return integrationRuntimeMonitoringDatas; } /** * Gets the resource collection API of IntegrationRuntimeStatusOperations. - * + * * @return Resource collection API of IntegrationRuntimeStatusOperations. */ public IntegrationRuntimeStatusOperations integrationRuntimeStatusOperations() { if (this.integrationRuntimeStatusOperations == null) { - this.integrationRuntimeStatusOperations = - new IntegrationRuntimeStatusOperationsImpl(clientObject.getIntegrationRuntimeStatusOperations(), this); + this.integrationRuntimeStatusOperations = new IntegrationRuntimeStatusOperationsImpl( + clientObject.getIntegrationRuntimeStatusOperations(), this); } return integrationRuntimeStatusOperations; } /** * Gets the resource collection API of Gets. - * + * * @return Resource collection API of Gets. */ public Gets gets() { @@ -1392,7 +1359,7 @@ public Gets gets() { /** * Gets the resource collection API of SparkConfigurations. - * + * * @return Resource collection API of SparkConfigurations. */ public SparkConfigurations sparkConfigurations() { @@ -1404,20 +1371,20 @@ public SparkConfigurations sparkConfigurations() { /** * Gets the resource collection API of SparkConfigurationsOperations. - * + * * @return Resource collection API of SparkConfigurationsOperations. */ public SparkConfigurationsOperations sparkConfigurationsOperations() { if (this.sparkConfigurationsOperations == null) { - this.sparkConfigurationsOperations = - new SparkConfigurationsOperationsImpl(clientObject.getSparkConfigurationsOperations(), this); + this.sparkConfigurationsOperations + = new SparkConfigurationsOperationsImpl(clientObject.getSparkConfigurationsOperations(), this); } return sparkConfigurationsOperations; } /** * Gets the resource collection API of KustoOperations. - * + * * @return Resource collection API of KustoOperations. */ public KustoOperations kustoOperations() { @@ -1429,7 +1396,7 @@ public KustoOperations kustoOperations() { /** * Gets the resource collection API of KustoPools. It manages KustoPool. - * + * * @return Resource collection API of KustoPools. */ public KustoPools kustoPools() { @@ -1441,13 +1408,13 @@ public KustoPools kustoPools() { /** * Gets the resource collection API of KustoPoolChildResources. - * + * * @return Resource collection API of KustoPoolChildResources. */ public KustoPoolChildResources kustoPoolChildResources() { if (this.kustoPoolChildResources == null) { - this.kustoPoolChildResources = - new KustoPoolChildResourcesImpl(clientObject.getKustoPoolChildResources(), this); + this.kustoPoolChildResources + = new KustoPoolChildResourcesImpl(clientObject.getKustoPoolChildResources(), this); } return kustoPoolChildResources; } @@ -1455,21 +1422,20 @@ public KustoPoolChildResources kustoPoolChildResources() { /** * Gets the resource collection API of KustoPoolAttachedDatabaseConfigurations. It manages * AttachedDatabaseConfiguration. - * + * * @return Resource collection API of KustoPoolAttachedDatabaseConfigurations. */ public KustoPoolAttachedDatabaseConfigurations kustoPoolAttachedDatabaseConfigurations() { if (this.kustoPoolAttachedDatabaseConfigurations == null) { - this.kustoPoolAttachedDatabaseConfigurations = - new KustoPoolAttachedDatabaseConfigurationsImpl( - clientObject.getKustoPoolAttachedDatabaseConfigurations(), this); + this.kustoPoolAttachedDatabaseConfigurations = new KustoPoolAttachedDatabaseConfigurationsImpl( + clientObject.getKustoPoolAttachedDatabaseConfigurations(), this); } return kustoPoolAttachedDatabaseConfigurations; } /** * Gets the resource collection API of KustoPoolDatabases. - * + * * @return Resource collection API of KustoPoolDatabases. */ public KustoPoolDatabases kustoPoolDatabases() { @@ -1481,26 +1447,26 @@ public KustoPoolDatabases kustoPoolDatabases() { /** * Gets the resource collection API of KustoPoolDataConnections. - * + * * @return Resource collection API of KustoPoolDataConnections. */ public KustoPoolDataConnections kustoPoolDataConnections() { if (this.kustoPoolDataConnections == null) { - this.kustoPoolDataConnections = - new KustoPoolDataConnectionsImpl(clientObject.getKustoPoolDataConnections(), this); + this.kustoPoolDataConnections + = new KustoPoolDataConnectionsImpl(clientObject.getKustoPoolDataConnections(), this); } return kustoPoolDataConnections; } /** * Gets the resource collection API of KustoPoolPrincipalAssignments. It manages ClusterPrincipalAssignment. - * + * * @return Resource collection API of KustoPoolPrincipalAssignments. */ public KustoPoolPrincipalAssignments kustoPoolPrincipalAssignments() { if (this.kustoPoolPrincipalAssignments == null) { - this.kustoPoolPrincipalAssignments = - new KustoPoolPrincipalAssignmentsImpl(clientObject.getKustoPoolPrincipalAssignments(), this); + this.kustoPoolPrincipalAssignments + = new KustoPoolPrincipalAssignmentsImpl(clientObject.getKustoPoolPrincipalAssignments(), this); } return kustoPoolPrincipalAssignments; } @@ -1508,35 +1474,35 @@ public KustoPoolPrincipalAssignments kustoPoolPrincipalAssignments() { /** * Gets the resource collection API of KustoPoolDatabasePrincipalAssignments. It manages * DatabasePrincipalAssignment. - * + * * @return Resource collection API of KustoPoolDatabasePrincipalAssignments. */ public KustoPoolDatabasePrincipalAssignments kustoPoolDatabasePrincipalAssignments() { if (this.kustoPoolDatabasePrincipalAssignments == null) { - this.kustoPoolDatabasePrincipalAssignments = - new KustoPoolDatabasePrincipalAssignmentsImpl( - clientObject.getKustoPoolDatabasePrincipalAssignments(), this); + this.kustoPoolDatabasePrincipalAssignments = new KustoPoolDatabasePrincipalAssignmentsImpl( + clientObject.getKustoPoolDatabasePrincipalAssignments(), this); } return kustoPoolDatabasePrincipalAssignments; } /** * Gets the resource collection API of KustoPoolPrivateLinkResourcesOperations. - * + * * @return Resource collection API of KustoPoolPrivateLinkResourcesOperations. */ public KustoPoolPrivateLinkResourcesOperations kustoPoolPrivateLinkResourcesOperations() { if (this.kustoPoolPrivateLinkResourcesOperations == null) { - this.kustoPoolPrivateLinkResourcesOperations = - new KustoPoolPrivateLinkResourcesOperationsImpl( - clientObject.getKustoPoolPrivateLinkResourcesOperations(), this); + this.kustoPoolPrivateLinkResourcesOperations = new KustoPoolPrivateLinkResourcesOperationsImpl( + clientObject.getKustoPoolPrivateLinkResourcesOperations(), this); } return kustoPoolPrivateLinkResourcesOperations; } /** - * @return Wrapped service client SynapseManagementClient providing direct access to the underlying auto-generated - * API implementation, based on Azure REST API. + * Gets wrapped service client SynapseManagementClient providing direct access to the underlying auto-generated API + * implementation, based on Azure REST API. + * + * @return Wrapped service client SynapseManagementClient. */ public SynapseManagementClient serviceClient() { return this.clientObject; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/AzureADOnlyAuthenticationsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/AzureADOnlyAuthenticationsClient.java index 156a684d9431..144d212ee017 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/AzureADOnlyAuthenticationsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/AzureADOnlyAuthenticationsClient.java @@ -14,13 +14,15 @@ import com.azure.resourcemanager.synapse.fluent.models.AzureADOnlyAuthenticationInner; import com.azure.resourcemanager.synapse.models.AzureADOnlyAuthenticationName; -/** An instance of this class provides access to all the operations defined in AzureADOnlyAuthenticationsClient. */ +/** + * An instance of this class provides access to all the operations defined in AzureADOnlyAuthenticationsClient. + */ public interface AzureADOnlyAuthenticationsClient { /** * Get Azure Active Directory only authentication property - * - *

Gets a Azure Active Directory only authentication property. - * + * + * Gets a Azure Active Directory only authentication property. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param azureADOnlyAuthenticationName name of the property. @@ -31,17 +33,14 @@ public interface AzureADOnlyAuthenticationsClient { * @return a Azure Active Directory only authentication property along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, - String workspaceName, - AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, - Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, Context context); /** * Get Azure Active Directory only authentication property - * - *

Gets a Azure Active Directory only authentication property. - * + * + * Gets a Azure Active Directory only authentication property. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param azureADOnlyAuthenticationName name of the property. @@ -51,14 +50,14 @@ Response getWithResponse( * @return a Azure Active Directory only authentication property. */ @ServiceMethod(returns = ReturnType.SINGLE) - AzureADOnlyAuthenticationInner get( - String resourceGroupName, String workspaceName, AzureADOnlyAuthenticationName azureADOnlyAuthenticationName); + AzureADOnlyAuthenticationInner get(String resourceGroupName, String workspaceName, + AzureADOnlyAuthenticationName azureADOnlyAuthenticationName); /** * Create or Update Azure Active Directory only authentication property - * - *

Create or Update a Azure Active Directory only authentication property for the workspaces. - * + * + * Create or Update a Azure Active Directory only authentication property for the workspaces. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param azureADOnlyAuthenticationName name of the property. @@ -70,16 +69,14 @@ AzureADOnlyAuthenticationInner get( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, AzureADOnlyAuthenticationInner> beginCreate( - String resourceGroupName, - String workspaceName, - AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, + String resourceGroupName, String workspaceName, AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, AzureADOnlyAuthenticationInner azureADOnlyAuthenticationInfo); /** * Create or Update Azure Active Directory only authentication property - * - *

Create or Update a Azure Active Directory only authentication property for the workspaces. - * + * + * Create or Update a Azure Active Directory only authentication property for the workspaces. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param azureADOnlyAuthenticationName name of the property. @@ -92,17 +89,14 @@ SyncPoller, AzureADOnlyAuthentication */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, AzureADOnlyAuthenticationInner> beginCreate( - String resourceGroupName, - String workspaceName, - AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, - AzureADOnlyAuthenticationInner azureADOnlyAuthenticationInfo, - Context context); + String resourceGroupName, String workspaceName, AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, + AzureADOnlyAuthenticationInner azureADOnlyAuthenticationInfo, Context context); /** * Create or Update Azure Active Directory only authentication property - * - *

Create or Update a Azure Active Directory only authentication property for the workspaces. - * + * + * Create or Update a Azure Active Directory only authentication property for the workspaces. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param azureADOnlyAuthenticationName name of the property. @@ -113,17 +107,15 @@ SyncPoller, AzureADOnlyAuthentication * @return azure Active Directory Only Authentication Info. */ @ServiceMethod(returns = ReturnType.SINGLE) - AzureADOnlyAuthenticationInner create( - String resourceGroupName, - String workspaceName, + AzureADOnlyAuthenticationInner create(String resourceGroupName, String workspaceName, AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, AzureADOnlyAuthenticationInner azureADOnlyAuthenticationInfo); /** * Create or Update Azure Active Directory only authentication property - * - *

Create or Update a Azure Active Directory only authentication property for the workspaces. - * + * + * Create or Update a Azure Active Directory only authentication property for the workspaces. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param azureADOnlyAuthenticationName name of the property. @@ -135,34 +127,31 @@ AzureADOnlyAuthenticationInner create( * @return azure Active Directory Only Authentication Info. */ @ServiceMethod(returns = ReturnType.SINGLE) - AzureADOnlyAuthenticationInner create( - String resourceGroupName, - String workspaceName, + AzureADOnlyAuthenticationInner create(String resourceGroupName, String workspaceName, AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, - AzureADOnlyAuthenticationInner azureADOnlyAuthenticationInfo, - Context context); + AzureADOnlyAuthenticationInner azureADOnlyAuthenticationInfo, Context context); /** * Gets a list of Azure Active Directory only authentication property - * - *

Gets a list of Azure Active Directory only authentication property for a workspace. - * + * + * Gets a list of Azure Active Directory only authentication property for a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of Azure Active Directory only authentication property for a workspace as paginated response with - * {@link PagedIterable}. + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String workspaceName); /** * Gets a list of Azure Active Directory only authentication property - * - *

Gets a list of Azure Active Directory only authentication property for a workspace. - * + * + * Gets a list of Azure Active Directory only authentication property for a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -170,7 +159,7 @@ AzureADOnlyAuthenticationInner create( * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of Azure Active Directory only authentication property for a workspace as paginated response with - * {@link PagedIterable}. + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String workspaceName, Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/BigDataPoolsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/BigDataPoolsClient.java index fa656e653476..37b2cb6bb786 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/BigDataPoolsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/BigDataPoolsClient.java @@ -14,13 +14,15 @@ import com.azure.resourcemanager.synapse.fluent.models.BigDataPoolResourceInfoInner; import com.azure.resourcemanager.synapse.models.BigDataPoolPatchInfo; -/** An instance of this class provides access to all the operations defined in BigDataPoolsClient. */ +/** + * An instance of this class provides access to all the operations defined in BigDataPoolsClient. + */ public interface BigDataPoolsClient { /** * Get Big Data pool - * - *

Get a Big Data pool. - * + * + * Get a Big Data pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. @@ -31,14 +33,14 @@ public interface BigDataPoolsClient { * @return a Big Data pool along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String workspaceName, String bigDataPoolName, Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + String bigDataPoolName, Context context); /** * Get Big Data pool - * - *

Get a Big Data pool. - * + * + * Get a Big Data pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. @@ -52,9 +54,9 @@ Response getWithResponse( /** * Update a Big Data pool. - * - *

Patch a Big Data pool. - * + * + * Patch a Big Data pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. @@ -66,18 +68,14 @@ Response getWithResponse( * @return big Data pool along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response updateWithResponse( - String resourceGroupName, - String workspaceName, - String bigDataPoolName, - BigDataPoolPatchInfo bigDataPoolPatchInfo, - Context context); + Response updateWithResponse(String resourceGroupName, String workspaceName, + String bigDataPoolName, BigDataPoolPatchInfo bigDataPoolPatchInfo, Context context); /** * Update a Big Data pool. - * - *

Patch a Big Data pool. - * + * + * Patch a Big Data pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. @@ -88,17 +86,14 @@ Response updateWithResponse( * @return big Data pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - BigDataPoolResourceInfoInner update( - String resourceGroupName, - String workspaceName, - String bigDataPoolName, + BigDataPoolResourceInfoInner update(String resourceGroupName, String workspaceName, String bigDataPoolName, BigDataPoolPatchInfo bigDataPoolPatchInfo); /** * Create a Big Data pool. - * - *

Create a new Big Data pool. - * + * + * Create a new Big Data pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. @@ -110,16 +105,14 @@ BigDataPoolResourceInfoInner update( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, BigDataPoolResourceInfoInner> beginCreateOrUpdate( - String resourceGroupName, - String workspaceName, - String bigDataPoolName, + String resourceGroupName, String workspaceName, String bigDataPoolName, BigDataPoolResourceInfoInner bigDataPoolInfo); /** * Create a Big Data pool. - * - *

Create a new Big Data pool. - * + * + * Create a new Big Data pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. @@ -133,18 +126,14 @@ SyncPoller, BigDataPoolResourceInfoInne */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, BigDataPoolResourceInfoInner> beginCreateOrUpdate( - String resourceGroupName, - String workspaceName, - String bigDataPoolName, - BigDataPoolResourceInfoInner bigDataPoolInfo, - Boolean force, - Context context); + String resourceGroupName, String workspaceName, String bigDataPoolName, + BigDataPoolResourceInfoInner bigDataPoolInfo, Boolean force, Context context); /** * Create a Big Data pool. - * - *

Create a new Big Data pool. - * + * + * Create a new Big Data pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. @@ -155,17 +144,14 @@ SyncPoller, BigDataPoolResourceInfoInne * @return big Data pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - BigDataPoolResourceInfoInner createOrUpdate( - String resourceGroupName, - String workspaceName, - String bigDataPoolName, + BigDataPoolResourceInfoInner createOrUpdate(String resourceGroupName, String workspaceName, String bigDataPoolName, BigDataPoolResourceInfoInner bigDataPoolInfo); /** * Create a Big Data pool. - * - *

Create a new Big Data pool. - * + * + * Create a new Big Data pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. @@ -178,19 +164,14 @@ BigDataPoolResourceInfoInner createOrUpdate( * @return big Data pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - BigDataPoolResourceInfoInner createOrUpdate( - String resourceGroupName, - String workspaceName, - String bigDataPoolName, - BigDataPoolResourceInfoInner bigDataPoolInfo, - Boolean force, - Context context); + BigDataPoolResourceInfoInner createOrUpdate(String resourceGroupName, String workspaceName, String bigDataPoolName, + BigDataPoolResourceInfoInner bigDataPoolInfo, Boolean force, Context context); /** * Delete a Big Data pool. - * - *

Delete a Big Data pool from the workspace. - * + * + * Delete a Big Data pool from the workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. @@ -200,14 +181,14 @@ BigDataPoolResourceInfoInner createOrUpdate( * @return the {@link SyncPoller} for polling of big Data pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, BigDataPoolResourceInfoInner> beginDelete( - String resourceGroupName, String workspaceName, String bigDataPoolName); + SyncPoller, BigDataPoolResourceInfoInner> + beginDelete(String resourceGroupName, String workspaceName, String bigDataPoolName); /** * Delete a Big Data pool. - * - *

Delete a Big Data pool from the workspace. - * + * + * Delete a Big Data pool from the workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. @@ -218,14 +199,14 @@ SyncPoller, BigDataPoolResourceInfoInne * @return the {@link SyncPoller} for polling of big Data pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, BigDataPoolResourceInfoInner> beginDelete( - String resourceGroupName, String workspaceName, String bigDataPoolName, Context context); + SyncPoller, BigDataPoolResourceInfoInner> + beginDelete(String resourceGroupName, String workspaceName, String bigDataPoolName, Context context); /** * Delete a Big Data pool. - * - *

Delete a Big Data pool from the workspace. - * + * + * Delete a Big Data pool from the workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. @@ -239,9 +220,9 @@ SyncPoller, BigDataPoolResourceInfoInne /** * Delete a Big Data pool. - * - *

Delete a Big Data pool from the workspace. - * + * + * Delete a Big Data pool from the workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. @@ -252,14 +233,14 @@ SyncPoller, BigDataPoolResourceInfoInne * @return big Data pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - BigDataPoolResourceInfoInner delete( - String resourceGroupName, String workspaceName, String bigDataPoolName, Context context); + BigDataPoolResourceInfoInner delete(String resourceGroupName, String workspaceName, String bigDataPoolName, + Context context); /** * List the Big Data pools in a workspace. - * - *

List Big Data pools in a workspace. - * + * + * List Big Data pools in a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -272,9 +253,9 @@ BigDataPoolResourceInfoInner delete( /** * List the Big Data pools in a workspace. - * - *

List Big Data pools in a workspace. - * + * + * List Big Data pools in a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -284,6 +265,6 @@ BigDataPoolResourceInfoInner delete( * @return collection of Big Data pools as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByWorkspace( - String resourceGroupName, String workspaceName, Context context); + PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, + Context context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/DataMaskingPoliciesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/DataMaskingPoliciesClient.java index 719837c1364a..3251fffb4914 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/DataMaskingPoliciesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/DataMaskingPoliciesClient.java @@ -10,11 +10,13 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.synapse.fluent.models.DataMaskingPolicyInner; -/** An instance of this class provides access to all the operations defined in DataMaskingPoliciesClient. */ +/** + * An instance of this class provides access to all the operations defined in DataMaskingPoliciesClient. + */ public interface DataMaskingPoliciesClient { /** * Creates or updates a Sql pool data masking policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -26,16 +28,12 @@ public interface DataMaskingPoliciesClient { * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - DataMaskingPolicyInner parameters, - Context context); + Response createOrUpdateWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, DataMaskingPolicyInner parameters, Context context); /** * Creates or updates a Sql pool data masking policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -46,12 +44,12 @@ Response createOrUpdateWithResponse( * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - DataMaskingPolicyInner createOrUpdate( - String resourceGroupName, String workspaceName, String sqlPoolName, DataMaskingPolicyInner parameters); + DataMaskingPolicyInner createOrUpdate(String resourceGroupName, String workspaceName, String sqlPoolName, + DataMaskingPolicyInner parameters); /** * Gets a Sql pool data masking policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -62,12 +60,12 @@ DataMaskingPolicyInner createOrUpdate( * @return a Sql pool data masking policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + Context context); /** * Gets a Sql pool data masking policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/DataMaskingRulesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/DataMaskingRulesClient.java index 6889c5fd45b4..fa8feca06c18 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/DataMaskingRulesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/DataMaskingRulesClient.java @@ -11,11 +11,13 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.synapse.fluent.models.DataMaskingRuleInner; -/** An instance of this class provides access to all the operations defined in DataMaskingRulesClient. */ +/** + * An instance of this class provides access to all the operations defined in DataMaskingRulesClient. + */ public interface DataMaskingRulesClient { /** * Creates or updates a Sql pool data masking rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -28,17 +30,12 @@ public interface DataMaskingRulesClient { * @return represents a Sql pool data masking rule along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String dataMaskingRuleName, - DataMaskingRuleInner parameters, - Context context); + Response createOrUpdateWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, String dataMaskingRuleName, DataMaskingRuleInner parameters, Context context); /** * Creates or updates a Sql pool data masking rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -50,16 +47,12 @@ Response createOrUpdateWithResponse( * @return represents a Sql pool data masking rule. */ @ServiceMethod(returns = ReturnType.SINGLE) - DataMaskingRuleInner createOrUpdate( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String dataMaskingRuleName, - DataMaskingRuleInner parameters); + DataMaskingRuleInner createOrUpdate(String resourceGroupName, String workspaceName, String sqlPoolName, + String dataMaskingRuleName, DataMaskingRuleInner parameters); /** * Gets the specific Sql pool data masking rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -71,16 +64,12 @@ DataMaskingRuleInner createOrUpdate( * @return the specific Sql pool data masking rule along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String dataMaskingRuleName, - Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + String dataMaskingRuleName, Context context); /** * Gets the specific Sql pool data masking rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -91,12 +80,12 @@ Response getWithResponse( * @return the specific Sql pool data masking rule. */ @ServiceMethod(returns = ReturnType.SINGLE) - DataMaskingRuleInner get( - String resourceGroupName, String workspaceName, String sqlPoolName, String dataMaskingRuleName); + DataMaskingRuleInner get(String resourceGroupName, String workspaceName, String sqlPoolName, + String dataMaskingRuleName); /** * Gets a list of Sql pool data masking rules. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -106,12 +95,12 @@ DataMaskingRuleInner get( * @return a list of Sql pool data masking rules as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listBySqlPool( - String resourceGroupName, String workspaceName, String sqlPoolName); + PagedIterable listBySqlPool(String resourceGroupName, String workspaceName, + String sqlPoolName); /** * Gets a list of Sql pool data masking rules. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -122,6 +111,6 @@ PagedIterable listBySqlPool( * @return a list of Sql pool data masking rules as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listBySqlPool( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + PagedIterable listBySqlPool(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/ExtendedSqlPoolBlobAuditingPoliciesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/ExtendedSqlPoolBlobAuditingPoliciesClient.java index c2952f759fcf..edaeaa2f347e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/ExtendedSqlPoolBlobAuditingPoliciesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/ExtendedSqlPoolBlobAuditingPoliciesClient.java @@ -12,12 +12,13 @@ import com.azure.resourcemanager.synapse.fluent.models.ExtendedSqlPoolBlobAuditingPolicyInner; /** - * An instance of this class provides access to all the operations defined in ExtendedSqlPoolBlobAuditingPoliciesClient. + * An instance of this class provides access to all the operations defined in + * ExtendedSqlPoolBlobAuditingPoliciesClient. */ public interface ExtendedSqlPoolBlobAuditingPoliciesClient { /** * Gets an extended Sql pool's blob auditing policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -28,12 +29,12 @@ public interface ExtendedSqlPoolBlobAuditingPoliciesClient { * @return an extended Sql pool's blob auditing policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context); /** * Gets an extended Sql pool's blob auditing policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -47,7 +48,7 @@ Response getWithResponse( /** * Creates or updates an extended Sql pool's blob auditing policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -59,16 +60,12 @@ Response getWithResponse( * @return an extended Sql pool blob auditing policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - ExtendedSqlPoolBlobAuditingPolicyInner parameters, - Context context); + Response createOrUpdateWithResponse(String resourceGroupName, + String workspaceName, String sqlPoolName, ExtendedSqlPoolBlobAuditingPolicyInner parameters, Context context); /** * Creates or updates an extended Sql pool's blob auditing policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -79,15 +76,12 @@ Response createOrUpdateWithResponse( * @return an extended Sql pool blob auditing policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - ExtendedSqlPoolBlobAuditingPolicyInner createOrUpdate( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - ExtendedSqlPoolBlobAuditingPolicyInner parameters); + ExtendedSqlPoolBlobAuditingPolicyInner createOrUpdate(String resourceGroupName, String workspaceName, + String sqlPoolName, ExtendedSqlPoolBlobAuditingPolicyInner parameters); /** * Lists extended auditing settings of a Sql pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -97,12 +91,12 @@ ExtendedSqlPoolBlobAuditingPolicyInner createOrUpdate( * @return a list of sql pool extended auditing settings as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listBySqlPool( - String resourceGroupName, String workspaceName, String sqlPoolName); + PagedIterable listBySqlPool(String resourceGroupName, String workspaceName, + String sqlPoolName); /** * Lists extended auditing settings of a Sql pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -113,6 +107,6 @@ PagedIterable listBySqlPool( * @return a list of sql pool extended auditing settings as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listBySqlPool( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + PagedIterable listBySqlPool(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/GetsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/GetsClient.java index 646fb0df41cd..ab8e28671314 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/GetsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/GetsClient.java @@ -12,13 +12,15 @@ import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeOperationStatusInner; import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeStopOperationStatusInner; -/** An instance of this class provides access to all the operations defined in GetsClient. */ +/** + * An instance of this class provides access to all the operations defined in GetsClient. + */ public interface GetsClient { /** * Get integration runtime start operation status - * - *

Get an integration runtime start operation status. - * + * + * Get an integration runtime start operation status. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -30,18 +32,14 @@ public interface GetsClient { * @return an integration runtime start operation status along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response integrationRuntimeStartWithResponse( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String integrationRuntimeOperationId, - Context context); + Response integrationRuntimeStartWithResponse(String resourceGroupName, + String workspaceName, String integrationRuntimeName, String integrationRuntimeOperationId, Context context); /** * Get integration runtime start operation status - * - *

Get an integration runtime start operation status. - * + * + * Get an integration runtime start operation status. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -52,17 +50,14 @@ Response integrationRuntimeStartWithResp * @return an integration runtime start operation status. */ @ServiceMethod(returns = ReturnType.SINGLE) - IntegrationRuntimeOperationStatusInner integrationRuntimeStart( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String integrationRuntimeOperationId); + IntegrationRuntimeOperationStatusInner integrationRuntimeStart(String resourceGroupName, String workspaceName, + String integrationRuntimeName, String integrationRuntimeOperationId); /** * Get integration runtime stop operation status - * - *

Get an integration runtime stop operation status. - * + * + * Get an integration runtime stop operation status. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -74,18 +69,14 @@ IntegrationRuntimeOperationStatusInner integrationRuntimeStart( * @return an integration runtime stop operation status along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response integrationRuntimeStopWithResponse( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String integrationRuntimeOperationId, - Context context); + Response integrationRuntimeStopWithResponse(String resourceGroupName, + String workspaceName, String integrationRuntimeName, String integrationRuntimeOperationId, Context context); /** * Get integration runtime stop operation status - * - *

Get an integration runtime stop operation status. - * + * + * Get an integration runtime stop operation status. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -96,17 +87,14 @@ Response integrationRuntimeStopWithR * @return an integration runtime stop operation status. */ @ServiceMethod(returns = ReturnType.SINGLE) - IntegrationRuntimeStopOperationStatusInner integrationRuntimeStop( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String integrationRuntimeOperationId); + IntegrationRuntimeStopOperationStatusInner integrationRuntimeStop(String resourceGroupName, String workspaceName, + String integrationRuntimeName, String integrationRuntimeOperationId); /** * Get integration runtime enable interactivequery operation status - * - *

Get an integration runtime enable interactivequery operation status. - * + * + * Get an integration runtime enable interactivequery operation status. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -119,17 +107,14 @@ IntegrationRuntimeStopOperationStatusInner integrationRuntimeStop( */ @ServiceMethod(returns = ReturnType.SINGLE) Response integrationRuntimeEnableInteractivequeryWithResponse( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String integrationRuntimeOperationId, - Context context); + String resourceGroupName, String workspaceName, String integrationRuntimeName, + String integrationRuntimeOperationId, Context context); /** * Get integration runtime enable interactivequery operation status - * - *

Get an integration runtime enable interactivequery operation status. - * + * + * Get an integration runtime enable interactivequery operation status. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -140,9 +125,6 @@ Response integrationRuntimeEnable * @return an integration runtime enable interactivequery operation status. */ @ServiceMethod(returns = ReturnType.SINGLE) - IntegrationRuntimeEnableinteractivequeryInner integrationRuntimeEnableInteractivequery( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String integrationRuntimeOperationId); + IntegrationRuntimeEnableinteractivequeryInner integrationRuntimeEnableInteractivequery(String resourceGroupName, + String workspaceName, String integrationRuntimeName, String integrationRuntimeOperationId); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeAuthKeysOperationsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeAuthKeysOperationsClient.java index 3070cd1e1b07..6aa3d5ffec22 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeAuthKeysOperationsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeAuthKeysOperationsClient.java @@ -18,9 +18,9 @@ public interface IntegrationRuntimeAuthKeysOperationsClient { /** * Regenerate integration runtime authentication key - * - *

Regenerate the authentication key for an integration runtime. - * + * + * Regenerate the authentication key for an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -32,18 +32,15 @@ public interface IntegrationRuntimeAuthKeysOperationsClient { * @return the integration runtime authentication keys along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response regenerateWithResponse( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters, + Response regenerateWithResponse(String resourceGroupName, String workspaceName, + String integrationRuntimeName, IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters, Context context); /** * Regenerate integration runtime authentication key - * - *

Regenerate the authentication key for an integration runtime. - * + * + * Regenerate the authentication key for an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -54,17 +51,14 @@ Response regenerateWithResponse( * @return the integration runtime authentication keys. */ @ServiceMethod(returns = ReturnType.SINGLE) - IntegrationRuntimeAuthKeysInner regenerate( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters); + IntegrationRuntimeAuthKeysInner regenerate(String resourceGroupName, String workspaceName, + String integrationRuntimeName, IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters); /** * List integration runtime authentication keys - * - *

List authentication keys in an integration runtime. - * + * + * List authentication keys in an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -75,14 +69,14 @@ IntegrationRuntimeAuthKeysInner regenerate( * @return the integration runtime authentication keys along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response listWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); + Response listWithResponse(String resourceGroupName, String workspaceName, + String integrationRuntimeName, Context context); /** * List integration runtime authentication keys - * - *

List authentication keys in an integration runtime. - * + * + * List authentication keys in an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeConnectionInfosClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeConnectionInfosClient.java index d7c25e8a34fc..344520337a8b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeConnectionInfosClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeConnectionInfosClient.java @@ -16,9 +16,9 @@ public interface IntegrationRuntimeConnectionInfosClient { /** * Get integration runtime connection info - * - *

Get connection info for an integration runtime. - * + * + * Get connection info for an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -29,14 +29,14 @@ public interface IntegrationRuntimeConnectionInfosClient { * @return connection info for an integration runtime along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + String integrationRuntimeName, Context context); /** * Get integration runtime connection info - * - *

Get connection info for an integration runtime. - * + * + * Get connection info for an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -46,6 +46,6 @@ Response getWithResponse( * @return connection info for an integration runtime. */ @ServiceMethod(returns = ReturnType.SINGLE) - IntegrationRuntimeConnectionInfoInner get( - String resourceGroupName, String workspaceName, String integrationRuntimeName); + IntegrationRuntimeConnectionInfoInner get(String resourceGroupName, String workspaceName, + String integrationRuntimeName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeCredentialsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeCredentialsClient.java index 4dd527fe9e12..30df05fbc63a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeCredentialsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeCredentialsClient.java @@ -9,16 +9,18 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** An instance of this class provides access to all the operations defined in IntegrationRuntimeCredentialsClient. */ +/** + * An instance of this class provides access to all the operations defined in IntegrationRuntimeCredentialsClient. + */ public interface IntegrationRuntimeCredentialsClient { /** * Sync integration runtime credentials - * - *

Force the integration runtime to synchronize credentials across integration runtime nodes, and this will - * override the credentials across all worker nodes with those available on the dispatcher node. If you already have - * the latest credential backup file, you should manually import it (preferred) on any self-hosted integration - * runtime node than using this API directly. - * + * + * Force the integration runtime to synchronize credentials across integration runtime nodes, and this will override + * the credentials across all worker nodes with those available on the dispatcher node. If you already have the + * latest credential backup file, you should manually import it (preferred) on any self-hosted integration runtime + * node than using this API directly. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -29,17 +31,17 @@ public interface IntegrationRuntimeCredentialsClient { * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response syncWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); + Response syncWithResponse(String resourceGroupName, String workspaceName, String integrationRuntimeName, + Context context); /** * Sync integration runtime credentials - * - *

Force the integration runtime to synchronize credentials across integration runtime nodes, and this will - * override the credentials across all worker nodes with those available on the dispatcher node. If you already have - * the latest credential backup file, you should manually import it (preferred) on any self-hosted integration - * runtime node than using this API directly. - * + * + * Force the integration runtime to synchronize credentials across integration runtime nodes, and this will override + * the credentials across all worker nodes with those available on the dispatcher node. If you already have the + * latest credential backup file, you should manually import it (preferred) on any self-hosted integration runtime + * node than using this API directly. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeMonitoringDatasClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeMonitoringDatasClient.java index 8662ddbde9b2..9de579c55527 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeMonitoringDatasClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeMonitoringDatasClient.java @@ -16,9 +16,9 @@ public interface IntegrationRuntimeMonitoringDatasClient { /** * Get integration runtime monitoring data - * - *

Get monitoring data for an integration runtime. - * + * + * Get monitoring data for an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -29,14 +29,14 @@ public interface IntegrationRuntimeMonitoringDatasClient { * @return monitoring data for an integration runtime along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response listWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); + Response listWithResponse(String resourceGroupName, String workspaceName, + String integrationRuntimeName, Context context); /** * Get integration runtime monitoring data - * - *

Get monitoring data for an integration runtime. - * + * + * Get monitoring data for an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -46,6 +46,6 @@ Response listWithResponse( * @return monitoring data for an integration runtime. */ @ServiceMethod(returns = ReturnType.SINGLE) - IntegrationRuntimeMonitoringDataInner list( - String resourceGroupName, String workspaceName, String integrationRuntimeName); + IntegrationRuntimeMonitoringDataInner list(String resourceGroupName, String workspaceName, + String integrationRuntimeName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeNodeIpAddressOperationsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeNodeIpAddressOperationsClient.java index 69cb107716ac..4f5a9ef0d5e8 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeNodeIpAddressOperationsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeNodeIpAddressOperationsClient.java @@ -17,9 +17,9 @@ public interface IntegrationRuntimeNodeIpAddressOperationsClient { /** * Get integration runtime node IP address - * - *

Get the IP address of an integration runtime node. - * + * + * Get the IP address of an integration runtime node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -31,18 +31,14 @@ public interface IntegrationRuntimeNodeIpAddressOperationsClient { * @return the IP address of an integration runtime node along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String nodeName, - Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + String integrationRuntimeName, String nodeName, Context context); /** * Get integration runtime node IP address - * - *

Get the IP address of an integration runtime node. - * + * + * Get the IP address of an integration runtime node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -53,6 +49,6 @@ Response getWithResponse( * @return the IP address of an integration runtime node. */ @ServiceMethod(returns = ReturnType.SINGLE) - IntegrationRuntimeNodeIpAddressInner get( - String resourceGroupName, String workspaceName, String integrationRuntimeName, String nodeName); + IntegrationRuntimeNodeIpAddressInner get(String resourceGroupName, String workspaceName, + String integrationRuntimeName, String nodeName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeNodesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeNodesClient.java index 913bc1735aab..45cb95f0e4f5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeNodesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeNodesClient.java @@ -11,13 +11,15 @@ import com.azure.resourcemanager.synapse.fluent.models.SelfHostedIntegrationRuntimeNodeInner; import com.azure.resourcemanager.synapse.models.UpdateIntegrationRuntimeNodeRequest; -/** An instance of this class provides access to all the operations defined in IntegrationRuntimeNodesClient. */ +/** + * An instance of this class provides access to all the operations defined in IntegrationRuntimeNodesClient. + */ public interface IntegrationRuntimeNodesClient { /** * Get integration runtime node - * - *

Get an integration runtime node. - * + * + * Get an integration runtime node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -29,18 +31,14 @@ public interface IntegrationRuntimeNodesClient { * @return an integration runtime node along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String nodeName, - Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + String integrationRuntimeName, String nodeName, Context context); /** * Get integration runtime node - * - *

Get an integration runtime node. - * + * + * Get an integration runtime node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -51,14 +49,14 @@ Response getWithResponse( * @return an integration runtime node. */ @ServiceMethod(returns = ReturnType.SINGLE) - SelfHostedIntegrationRuntimeNodeInner get( - String resourceGroupName, String workspaceName, String integrationRuntimeName, String nodeName); + SelfHostedIntegrationRuntimeNodeInner get(String resourceGroupName, String workspaceName, + String integrationRuntimeName, String nodeName); /** * Create integration runtime node - * - *

Create an integration runtime node. - * + * + * Create an integration runtime node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -71,19 +69,15 @@ SelfHostedIntegrationRuntimeNodeInner get( * @return properties of Self-hosted integration runtime node along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response updateWithResponse( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String nodeName, - UpdateIntegrationRuntimeNodeRequest updateIntegrationRuntimeNodeRequest, - Context context); + Response updateWithResponse(String resourceGroupName, String workspaceName, + String integrationRuntimeName, String nodeName, + UpdateIntegrationRuntimeNodeRequest updateIntegrationRuntimeNodeRequest, Context context); /** * Create integration runtime node - * - *

Create an integration runtime node. - * + * + * Create an integration runtime node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -95,18 +89,15 @@ Response updateWithResponse( * @return properties of Self-hosted integration runtime node. */ @ServiceMethod(returns = ReturnType.SINGLE) - SelfHostedIntegrationRuntimeNodeInner update( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String nodeName, + SelfHostedIntegrationRuntimeNodeInner update(String resourceGroupName, String workspaceName, + String integrationRuntimeName, String nodeName, UpdateIntegrationRuntimeNodeRequest updateIntegrationRuntimeNodeRequest); /** * Delete integration runtime node - * - *

Delete an integration runtime node. - * + * + * Delete an integration runtime node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -118,18 +109,14 @@ SelfHostedIntegrationRuntimeNodeInner update( * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String nodeName, - Context context); + Response deleteWithResponse(String resourceGroupName, String workspaceName, String integrationRuntimeName, + String nodeName, Context context); /** * Delete integration runtime node - * - *

Delete an integration runtime node. - * + * + * Delete an integration runtime node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeObjectMetadatasClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeObjectMetadatasClient.java index e2a11f62ec57..f6f20eac18b4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeObjectMetadatasClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeObjectMetadatasClient.java @@ -20,9 +20,9 @@ public interface IntegrationRuntimeObjectMetadatasClient { /** * Get integration runtime object metadata - * - *

Get object metadata from an integration runtime. - * + * + * Get object metadata from an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -34,18 +34,14 @@ public interface IntegrationRuntimeObjectMetadatasClient { * @return object metadata from an integration runtime along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response listWithResponse( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - GetSsisObjectMetadataRequest getMetadataRequest, - Context context); + Response listWithResponse(String resourceGroupName, String workspaceName, + String integrationRuntimeName, GetSsisObjectMetadataRequest getMetadataRequest, Context context); /** * Get integration runtime object metadata - * - *

Get object metadata from an integration runtime. - * + * + * Get object metadata from an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -55,14 +51,14 @@ Response listWithResponse( * @return object metadata from an integration runtime. */ @ServiceMethod(returns = ReturnType.SINGLE) - SsisObjectMetadataListResponseInner list( - String resourceGroupName, String workspaceName, String integrationRuntimeName); + SsisObjectMetadataListResponseInner list(String resourceGroupName, String workspaceName, + String integrationRuntimeName); /** * Refresh integration runtime object metadata - * - *

Refresh the object metadata in an integration runtime. - * + * + * Refresh the object metadata in an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -72,14 +68,14 @@ SsisObjectMetadataListResponseInner list( * @return the {@link SyncPoller} for polling of the status of the operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SsisObjectMetadataStatusResponseInner> beginRefresh( - String resourceGroupName, String workspaceName, String integrationRuntimeName); + SyncPoller, SsisObjectMetadataStatusResponseInner> + beginRefresh(String resourceGroupName, String workspaceName, String integrationRuntimeName); /** * Refresh integration runtime object metadata - * - *

Refresh the object metadata in an integration runtime. - * + * + * Refresh the object metadata in an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -90,14 +86,14 @@ SyncPoller, SsisObjectMetadata * @return the {@link SyncPoller} for polling of the status of the operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SsisObjectMetadataStatusResponseInner> beginRefresh( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); + SyncPoller, SsisObjectMetadataStatusResponseInner> + beginRefresh(String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); /** * Refresh integration runtime object metadata - * - *

Refresh the object metadata in an integration runtime. - * + * + * Refresh the object metadata in an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -107,14 +103,14 @@ SyncPoller, SsisObjectMetadata * @return the status of the operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - SsisObjectMetadataStatusResponseInner refresh( - String resourceGroupName, String workspaceName, String integrationRuntimeName); + SsisObjectMetadataStatusResponseInner refresh(String resourceGroupName, String workspaceName, + String integrationRuntimeName); /** * Refresh integration runtime object metadata - * - *

Refresh the object metadata in an integration runtime. - * + * + * Refresh the object metadata in an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -125,6 +121,6 @@ SsisObjectMetadataStatusResponseInner refresh( * @return the status of the operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - SsisObjectMetadataStatusResponseInner refresh( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); + SsisObjectMetadataStatusResponseInner refresh(String resourceGroupName, String workspaceName, + String integrationRuntimeName, Context context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeStatusOperationsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeStatusOperationsClient.java index 8ee0eb3fec07..eeb86da9368f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeStatusOperationsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeStatusOperationsClient.java @@ -16,9 +16,9 @@ public interface IntegrationRuntimeStatusOperationsClient { /** * Get integration runtime status - * - *

Get the integration runtime status. - * + * + * Get the integration runtime status. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -29,14 +29,14 @@ public interface IntegrationRuntimeStatusOperationsClient { * @return the integration runtime status along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + String integrationRuntimeName, Context context); /** * Get integration runtime status - * - *

Get the integration runtime status. - * + * + * Get the integration runtime status. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -46,6 +46,6 @@ Response getWithResponse( * @return the integration runtime status. */ @ServiceMethod(returns = ReturnType.SINGLE) - IntegrationRuntimeStatusResponseInner get( - String resourceGroupName, String workspaceName, String integrationRuntimeName); + IntegrationRuntimeStatusResponseInner get(String resourceGroupName, String workspaceName, + String integrationRuntimeName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimesClient.java index 8319cd7d371f..df8fd40131ed 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimesClient.java @@ -16,13 +16,15 @@ import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeStatusResponseInner; import com.azure.resourcemanager.synapse.models.UpdateIntegrationRuntimeRequest; -/** An instance of this class provides access to all the operations defined in IntegrationRuntimesClient. */ +/** + * An instance of this class provides access to all the operations defined in IntegrationRuntimesClient. + */ public interface IntegrationRuntimesClient { /** * Update integration runtime - * - *

Update an integration runtime. - * + * + * Update an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -34,18 +36,15 @@ public interface IntegrationRuntimesClient { * @return integration runtime resource type along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response updateWithResponse( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - UpdateIntegrationRuntimeRequest updateIntegrationRuntimeRequest, + Response updateWithResponse(String resourceGroupName, String workspaceName, + String integrationRuntimeName, UpdateIntegrationRuntimeRequest updateIntegrationRuntimeRequest, Context context); /** * Update integration runtime - * - *

Update an integration runtime. - * + * + * Update an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -56,22 +55,19 @@ Response updateWithResponse( * @return integration runtime resource type. */ @ServiceMethod(returns = ReturnType.SINGLE) - IntegrationRuntimeResourceInner update( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - UpdateIntegrationRuntimeRequest updateIntegrationRuntimeRequest); + IntegrationRuntimeResourceInner update(String resourceGroupName, String workspaceName, + String integrationRuntimeName, UpdateIntegrationRuntimeRequest updateIntegrationRuntimeRequest); /** * Get integration runtime - * - *

Get an integration runtime. - * + * + * Get an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. * @param ifNoneMatch ETag of the integration runtime entity. Should only be specified for get. If the ETag matches - * the existing entity tag, or if * was provided, then no content will be returned. + * the existing entity tag, or if * was provided, then no content will be returned. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -79,18 +75,14 @@ IntegrationRuntimeResourceInner update( * @return an integration runtime along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String ifNoneMatch, - Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + String integrationRuntimeName, String ifNoneMatch, Context context); /** * Get integration runtime - * - *

Get an integration runtime. - * + * + * Get an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -104,9 +96,9 @@ Response getWithResponse( /** * Create integration runtime - * - *

Create an integration runtime. - * + * + * Create an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -118,22 +110,20 @@ Response getWithResponse( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, IntegrationRuntimeResourceInner> beginCreate( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, + String resourceGroupName, String workspaceName, String integrationRuntimeName, IntegrationRuntimeResourceInner integrationRuntime); /** * Create integration runtime - * - *

Create an integration runtime. - * + * + * Create an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. * @param integrationRuntime Integration runtime resource definition. * @param ifMatch ETag of the integration runtime entity. Should only be specified for update, for which it should - * match existing entity or can be * for unconditional update. + * match existing entity or can be * for unconditional update. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -142,18 +132,14 @@ SyncPoller, IntegrationRuntimeResour */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, IntegrationRuntimeResourceInner> beginCreate( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - IntegrationRuntimeResourceInner integrationRuntime, - String ifMatch, - Context context); + String resourceGroupName, String workspaceName, String integrationRuntimeName, + IntegrationRuntimeResourceInner integrationRuntime, String ifMatch, Context context); /** * Create integration runtime - * - *

Create an integration runtime. - * + * + * Create an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -164,23 +150,20 @@ SyncPoller, IntegrationRuntimeResour * @return integration runtime resource type. */ @ServiceMethod(returns = ReturnType.SINGLE) - IntegrationRuntimeResourceInner create( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - IntegrationRuntimeResourceInner integrationRuntime); + IntegrationRuntimeResourceInner create(String resourceGroupName, String workspaceName, + String integrationRuntimeName, IntegrationRuntimeResourceInner integrationRuntime); /** * Create integration runtime - * - *

Create an integration runtime. - * + * + * Create an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. * @param integrationRuntime Integration runtime resource definition. * @param ifMatch ETag of the integration runtime entity. Should only be specified for update, for which it should - * match existing entity or can be * for unconditional update. + * match existing entity or can be * for unconditional update. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -188,19 +171,15 @@ IntegrationRuntimeResourceInner create( * @return integration runtime resource type. */ @ServiceMethod(returns = ReturnType.SINGLE) - IntegrationRuntimeResourceInner create( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - IntegrationRuntimeResourceInner integrationRuntime, - String ifMatch, + IntegrationRuntimeResourceInner create(String resourceGroupName, String workspaceName, + String integrationRuntimeName, IntegrationRuntimeResourceInner integrationRuntime, String ifMatch, Context context); /** * Delete integration runtime - * - *

Delete an integration runtime. - * + * + * Delete an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -210,14 +189,14 @@ IntegrationRuntimeResourceInner create( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete( - String resourceGroupName, String workspaceName, String integrationRuntimeName); + SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, + String integrationRuntimeName); /** * Delete integration runtime - * - *

Delete an integration runtime. - * + * + * Delete an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -228,14 +207,14 @@ SyncPoller, Void> beginDelete( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); + SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, + String integrationRuntimeName, Context context); /** * Delete integration runtime - * - *

Delete an integration runtime. - * + * + * Delete an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -248,9 +227,9 @@ SyncPoller, Void> beginDelete( /** * Delete integration runtime - * - *

Delete an integration runtime. - * + * + * Delete an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -264,9 +243,9 @@ SyncPoller, Void> beginDelete( /** * Upgrade integration runtime - * - *

Upgrade an integration runtime. - * + * + * Upgrade an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -277,14 +256,14 @@ SyncPoller, Void> beginDelete( * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response upgradeWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); + Response upgradeWithResponse(String resourceGroupName, String workspaceName, String integrationRuntimeName, + Context context); /** * Upgrade integration runtime - * - *

Upgrade an integration runtime. - * + * + * Upgrade an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -297,9 +276,9 @@ Response upgradeWithResponse( /** * List integration runtimes - * - *

List all integration runtimes. - * + * + * List all integration runtimes. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -312,9 +291,9 @@ Response upgradeWithResponse( /** * List integration runtimes - * - *

List all integration runtimes. - * + * + * List all integration runtimes. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -324,14 +303,14 @@ Response upgradeWithResponse( * @return a list of integration runtime resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByWorkspace( - String resourceGroupName, String workspaceName, Context context); + PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, + Context context); /** * Start integration runtime - * - *

Start an integration runtime. - * + * + * Start an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -341,14 +320,14 @@ PagedIterable listByWorkspace( * @return the {@link SyncPoller} for polling of integration runtime status response. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, IntegrationRuntimeStatusResponseInner> beginStart( - String resourceGroupName, String workspaceName, String integrationRuntimeName); + SyncPoller, IntegrationRuntimeStatusResponseInner> + beginStart(String resourceGroupName, String workspaceName, String integrationRuntimeName); /** * Start integration runtime - * - *

Start an integration runtime. - * + * + * Start an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -359,14 +338,14 @@ SyncPoller, IntegrationRuntime * @return the {@link SyncPoller} for polling of integration runtime status response. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, IntegrationRuntimeStatusResponseInner> beginStart( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); + SyncPoller, IntegrationRuntimeStatusResponseInner> + beginStart(String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); /** * Start integration runtime - * - *

Start an integration runtime. - * + * + * Start an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -376,14 +355,14 @@ SyncPoller, IntegrationRuntime * @return integration runtime status response. */ @ServiceMethod(returns = ReturnType.SINGLE) - IntegrationRuntimeStatusResponseInner start( - String resourceGroupName, String workspaceName, String integrationRuntimeName); + IntegrationRuntimeStatusResponseInner start(String resourceGroupName, String workspaceName, + String integrationRuntimeName); /** * Start integration runtime - * - *

Start an integration runtime. - * + * + * Start an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -394,14 +373,14 @@ IntegrationRuntimeStatusResponseInner start( * @return integration runtime status response. */ @ServiceMethod(returns = ReturnType.SINGLE) - IntegrationRuntimeStatusResponseInner start( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); + IntegrationRuntimeStatusResponseInner start(String resourceGroupName, String workspaceName, + String integrationRuntimeName, Context context); /** * Stop integration runtime - * - *

Stop an integration runtime. - * + * + * Stop an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -411,14 +390,14 @@ IntegrationRuntimeStatusResponseInner start( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginStop( - String resourceGroupName, String workspaceName, String integrationRuntimeName); + SyncPoller, Void> beginStop(String resourceGroupName, String workspaceName, + String integrationRuntimeName); /** * Stop integration runtime - * - *

Stop an integration runtime. - * + * + * Stop an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -429,14 +408,14 @@ SyncPoller, Void> beginStop( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginStop( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); + SyncPoller, Void> beginStop(String resourceGroupName, String workspaceName, + String integrationRuntimeName, Context context); /** * Stop integration runtime - * - *

Stop an integration runtime. - * + * + * Stop an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -449,9 +428,9 @@ SyncPoller, Void> beginStop( /** * Stop integration runtime - * - *

Stop an integration runtime. - * + * + * Stop an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -465,9 +444,9 @@ SyncPoller, Void> beginStop( /** * Gets list of outbound network dependencies for a given Azure-SSIS integration runtime. - * - *

Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. - * + * + * Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -475,19 +454,19 @@ SyncPoller, Void> beginStop( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of outbound network dependencies for a given Azure-SSIS integration runtime along with {@link - * Response}. + * @return the list of outbound network dependencies for a given Azure-SSIS integration runtime along with + * {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) Response - listOutboundNetworkDependenciesEndpointsWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); + listOutboundNetworkDependenciesEndpointsWithResponse(String resourceGroupName, String workspaceName, + String integrationRuntimeName, Context context); /** * Gets list of outbound network dependencies for a given Azure-SSIS integration runtime. - * - *

Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. - * + * + * Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -502,7 +481,7 @@ IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner listOutbound /** * Enable interactive query in integration runtime. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -512,12 +491,12 @@ IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner listOutbound * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginEnableInteractiveQuery( - String resourceGroupName, String workspaceName, String integrationRuntimeName); + SyncPoller, Void> beginEnableInteractiveQuery(String resourceGroupName, String workspaceName, + String integrationRuntimeName); /** * Enable interactive query in integration runtime. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -528,12 +507,12 @@ SyncPoller, Void> beginEnableInteractiveQuery( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginEnableInteractiveQuery( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); + SyncPoller, Void> beginEnableInteractiveQuery(String resourceGroupName, String workspaceName, + String integrationRuntimeName, Context context); /** * Enable interactive query in integration runtime. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -546,7 +525,7 @@ SyncPoller, Void> beginEnableInteractiveQuery( /** * Enable interactive query in integration runtime. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -556,12 +535,12 @@ SyncPoller, Void> beginEnableInteractiveQuery( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void enableInteractiveQuery( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); + void enableInteractiveQuery(String resourceGroupName, String workspaceName, String integrationRuntimeName, + Context context); /** * Disable interactive query in integration runtime. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -571,12 +550,12 @@ void enableInteractiveQuery( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDisableInteractiveQuery( - String resourceGroupName, String workspaceName, String integrationRuntimeName); + SyncPoller, Void> beginDisableInteractiveQuery(String resourceGroupName, String workspaceName, + String integrationRuntimeName); /** * Disable interactive query in integration runtime. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -587,12 +566,12 @@ SyncPoller, Void> beginDisableInteractiveQuery( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDisableInteractiveQuery( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); + SyncPoller, Void> beginDisableInteractiveQuery(String resourceGroupName, String workspaceName, + String integrationRuntimeName, Context context); /** * Disable interactive query in integration runtime. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -605,7 +584,7 @@ SyncPoller, Void> beginDisableInteractiveQuery( /** * Disable interactive query in integration runtime. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -615,6 +594,6 @@ SyncPoller, Void> beginDisableInteractiveQuery( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void disableInteractiveQuery( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); + void disableInteractiveQuery(String resourceGroupName, String workspaceName, String integrationRuntimeName, + Context context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IpFirewallRulesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IpFirewallRulesClient.java index 43e2363e6ed5..49879b7f383b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IpFirewallRulesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IpFirewallRulesClient.java @@ -15,11 +15,13 @@ import com.azure.resourcemanager.synapse.fluent.models.ReplaceAllFirewallRulesOperationResponseInner; import com.azure.resourcemanager.synapse.models.ReplaceAllIpFirewallRulesRequest; -/** An instance of this class provides access to all the operations defined in IpFirewallRulesClient. */ +/** + * An instance of this class provides access to all the operations defined in IpFirewallRulesClient. + */ public interface IpFirewallRulesClient { /** * Returns a list of firewall rules. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -32,7 +34,7 @@ public interface IpFirewallRulesClient { /** * Returns a list of firewall rules. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -42,12 +44,12 @@ public interface IpFirewallRulesClient { * @return list of IP firewall rules as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByWorkspace( - String resourceGroupName, String workspaceName, Context context); + PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, + Context context); /** * Creates or updates a firewall rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param ruleName The IP firewall rule name. @@ -63,7 +65,7 @@ SyncPoller, IpFirewallRuleInfoInner> beginCr /** * Creates or updates a firewall rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param ruleName The IP firewall rule name. @@ -76,15 +78,12 @@ SyncPoller, IpFirewallRuleInfoInner> beginCr */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, IpFirewallRuleInfoInner> beginCreateOrUpdate( - String resourceGroupName, - String workspaceName, - String ruleName, - IpFirewallRuleInfoInner ipFirewallRuleInfo, + String resourceGroupName, String workspaceName, String ruleName, IpFirewallRuleInfoInner ipFirewallRuleInfo, Context context); /** * Creates or updates a firewall rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param ruleName The IP firewall rule name. @@ -95,12 +94,12 @@ SyncPoller, IpFirewallRuleInfoInner> beginCr * @return iP firewall rule. */ @ServiceMethod(returns = ReturnType.SINGLE) - IpFirewallRuleInfoInner createOrUpdate( - String resourceGroupName, String workspaceName, String ruleName, IpFirewallRuleInfoInner ipFirewallRuleInfo); + IpFirewallRuleInfoInner createOrUpdate(String resourceGroupName, String workspaceName, String ruleName, + IpFirewallRuleInfoInner ipFirewallRuleInfo); /** * Creates or updates a firewall rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param ruleName The IP firewall rule name. @@ -112,16 +111,12 @@ IpFirewallRuleInfoInner createOrUpdate( * @return iP firewall rule. */ @ServiceMethod(returns = ReturnType.SINGLE) - IpFirewallRuleInfoInner createOrUpdate( - String resourceGroupName, - String workspaceName, - String ruleName, - IpFirewallRuleInfoInner ipFirewallRuleInfo, - Context context); + IpFirewallRuleInfoInner createOrUpdate(String resourceGroupName, String workspaceName, String ruleName, + IpFirewallRuleInfoInner ipFirewallRuleInfo, Context context); /** * Deletes a firewall rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param ruleName The IP firewall rule name. @@ -131,12 +126,12 @@ IpFirewallRuleInfoInner createOrUpdate( * @return the {@link SyncPoller} for polling of iP firewall rule. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, IpFirewallRuleInfoInner> beginDelete( - String resourceGroupName, String workspaceName, String ruleName); + SyncPoller, IpFirewallRuleInfoInner> beginDelete(String resourceGroupName, + String workspaceName, String ruleName); /** * Deletes a firewall rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param ruleName The IP firewall rule name. @@ -147,12 +142,12 @@ SyncPoller, IpFirewallRuleInfoInner> beginDe * @return the {@link SyncPoller} for polling of iP firewall rule. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, IpFirewallRuleInfoInner> beginDelete( - String resourceGroupName, String workspaceName, String ruleName, Context context); + SyncPoller, IpFirewallRuleInfoInner> beginDelete(String resourceGroupName, + String workspaceName, String ruleName, Context context); /** * Deletes a firewall rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param ruleName The IP firewall rule name. @@ -166,7 +161,7 @@ SyncPoller, IpFirewallRuleInfoInner> beginDe /** * Deletes a firewall rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param ruleName The IP firewall rule name. @@ -181,7 +176,7 @@ SyncPoller, IpFirewallRuleInfoInner> beginDe /** * Get a firewall rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param ruleName The IP firewall rule name. @@ -192,12 +187,12 @@ SyncPoller, IpFirewallRuleInfoInner> beginDe * @return a firewall rule along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String workspaceName, String ruleName, Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, String ruleName, + Context context); /** * Get a firewall rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param ruleName The IP firewall rule name. @@ -211,7 +206,7 @@ Response getWithResponse( /** * Replaces firewall rules. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param request Replace all IP firewall rules request. @@ -226,7 +221,7 @@ Response getWithResponse( /** * Replaces firewall rules. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param request Replace all IP firewall rules request. @@ -238,12 +233,12 @@ Response getWithResponse( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ReplaceAllFirewallRulesOperationResponseInner> - beginReplaceAll( - String resourceGroupName, String workspaceName, ReplaceAllIpFirewallRulesRequest request, Context context); + beginReplaceAll(String resourceGroupName, String workspaceName, ReplaceAllIpFirewallRulesRequest request, + Context context); /** * Replaces firewall rules. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param request Replace all IP firewall rules request. @@ -253,12 +248,12 @@ Response getWithResponse( * @return an existing operation for replacing the firewall rules. */ @ServiceMethod(returns = ReturnType.SINGLE) - ReplaceAllFirewallRulesOperationResponseInner replaceAll( - String resourceGroupName, String workspaceName, ReplaceAllIpFirewallRulesRequest request); + ReplaceAllFirewallRulesOperationResponseInner replaceAll(String resourceGroupName, String workspaceName, + ReplaceAllIpFirewallRulesRequest request); /** * Replaces firewall rules. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param request Replace all IP firewall rules request. @@ -269,6 +264,6 @@ ReplaceAllFirewallRulesOperationResponseInner replaceAll( * @return an existing operation for replacing the firewall rules. */ @ServiceMethod(returns = ReturnType.SINGLE) - ReplaceAllFirewallRulesOperationResponseInner replaceAll( - String resourceGroupName, String workspaceName, ReplaceAllIpFirewallRulesRequest request, Context context); + ReplaceAllFirewallRulesOperationResponseInner replaceAll(String resourceGroupName, String workspaceName, + ReplaceAllIpFirewallRulesRequest request, Context context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KeysClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KeysClient.java index a0b61833315e..d4d1505bf4d4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KeysClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KeysClient.java @@ -11,11 +11,13 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.synapse.fluent.models.KeyInner; -/** An instance of this class provides access to all the operations defined in KeysClient. */ +/** + * An instance of this class provides access to all the operations defined in KeysClient. + */ public interface KeysClient { /** * Returns a list of keys in a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -28,7 +30,7 @@ public interface KeysClient { /** * Returns a list of keys in a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -42,7 +44,7 @@ public interface KeysClient { /** * Gets a workspace key. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param keyName The name of the workspace key. @@ -57,7 +59,7 @@ public interface KeysClient { /** * Gets a workspace key. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param keyName The name of the workspace key. @@ -71,7 +73,7 @@ public interface KeysClient { /** * Creates or updates a workspace key. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param keyName The name of the workspace key. @@ -83,12 +85,12 @@ public interface KeysClient { * @return a workspace key along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse( - String resourceGroupName, String workspaceName, String keyName, KeyInner keyProperties, Context context); + Response createOrUpdateWithResponse(String resourceGroupName, String workspaceName, String keyName, + KeyInner keyProperties, Context context); /** * Creates or updates a workspace key. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param keyName The name of the workspace key. @@ -103,7 +105,7 @@ Response createOrUpdateWithResponse( /** * Deletes a workspace key. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param keyName The name of the workspace key. @@ -114,12 +116,12 @@ Response createOrUpdateWithResponse( * @return a workspace key along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse( - String resourceGroupName, String workspaceName, String keyName, Context context); + Response deleteWithResponse(String resourceGroupName, String workspaceName, String keyName, + Context context); /** * Deletes a workspace key. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param keyName The name of the workspace key. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoOperationsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoOperationsClient.java index 8d89e1ee21e1..fa378ba49d7f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoOperationsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoOperationsClient.java @@ -10,11 +10,13 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.synapse.fluent.models.OperationInner; -/** An instance of this class provides access to all the operations defined in KustoOperationsClient. */ +/** + * An instance of this class provides access to all the operations defined in KustoOperationsClient. + */ public interface KustoOperationsClient { /** * Lists available operations for the Kusto sub-resources inside Microsoft.Synapse provider. - * + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return result of the request to list REST API operations as paginated response with {@link PagedIterable}. @@ -24,7 +26,7 @@ public interface KustoOperationsClient { /** * Lists available operations for the Kusto sub-resources inside Microsoft.Synapse provider. - * + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolAttachedDatabaseConfigurationsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolAttachedDatabaseConfigurationsClient.java index a53941cc28f0..ad3e49ef4def 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolAttachedDatabaseConfigurationsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolAttachedDatabaseConfigurationsClient.java @@ -20,23 +20,23 @@ public interface KustoPoolAttachedDatabaseConfigurationsClient { /** * Returns the list of attached database configurations of the given Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list attached database configurations operation response as paginated response with {@link - * PagedIterable}. + * @return the list attached database configurations operation response as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByKustoPool( - String workspaceName, String kustoPoolName, String resourceGroupName); + PagedIterable listByKustoPool(String workspaceName, String kustoPoolName, + String resourceGroupName); /** * Returns the list of attached database configurations of the given Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -44,16 +44,16 @@ PagedIterable listByKustoPool( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list attached database configurations operation response as paginated response with {@link - * PagedIterable}. + * @return the list attached database configurations operation response as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByKustoPool( - String workspaceName, String kustoPoolName, String resourceGroupName, Context context); + PagedIterable listByKustoPool(String workspaceName, String kustoPoolName, + String resourceGroupName, Context context); /** * Returns an attached database configuration. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param attachedDatabaseConfigurationName The name of the attached database configuration. @@ -65,16 +65,12 @@ PagedIterable listByKustoPool( * @return class representing an attached database configuration along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String workspaceName, - String kustoPoolName, - String attachedDatabaseConfigurationName, - String resourceGroupName, - Context context); + Response getWithResponse(String workspaceName, String kustoPoolName, + String attachedDatabaseConfigurationName, String resourceGroupName, Context context); /** * Returns an attached database configuration. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param attachedDatabaseConfigurationName The name of the attached database configuration. @@ -85,12 +81,12 @@ Response getWithResponse( * @return class representing an attached database configuration. */ @ServiceMethod(returns = ReturnType.SINGLE) - AttachedDatabaseConfigurationInner get( - String workspaceName, String kustoPoolName, String attachedDatabaseConfigurationName, String resourceGroupName); + AttachedDatabaseConfigurationInner get(String workspaceName, String kustoPoolName, + String attachedDatabaseConfigurationName, String resourceGroupName); /** * Creates or updates an attached database configuration. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param attachedDatabaseConfigurationName The name of the attached database configuration. @@ -103,15 +99,12 @@ AttachedDatabaseConfigurationInner get( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, AttachedDatabaseConfigurationInner> beginCreateOrUpdate( - String workspaceName, - String kustoPoolName, - String attachedDatabaseConfigurationName, - String resourceGroupName, + String workspaceName, String kustoPoolName, String attachedDatabaseConfigurationName, String resourceGroupName, AttachedDatabaseConfigurationInner parameters); /** * Creates or updates an attached database configuration. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param attachedDatabaseConfigurationName The name of the attached database configuration. @@ -125,16 +118,12 @@ SyncPoller, AttachedDatabaseConfi */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, AttachedDatabaseConfigurationInner> beginCreateOrUpdate( - String workspaceName, - String kustoPoolName, - String attachedDatabaseConfigurationName, - String resourceGroupName, - AttachedDatabaseConfigurationInner parameters, - Context context); + String workspaceName, String kustoPoolName, String attachedDatabaseConfigurationName, String resourceGroupName, + AttachedDatabaseConfigurationInner parameters, Context context); /** * Creates or updates an attached database configuration. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param attachedDatabaseConfigurationName The name of the attached database configuration. @@ -146,16 +135,13 @@ SyncPoller, AttachedDatabaseConfi * @return class representing an attached database configuration. */ @ServiceMethod(returns = ReturnType.SINGLE) - AttachedDatabaseConfigurationInner createOrUpdate( - String workspaceName, - String kustoPoolName, - String attachedDatabaseConfigurationName, - String resourceGroupName, + AttachedDatabaseConfigurationInner createOrUpdate(String workspaceName, String kustoPoolName, + String attachedDatabaseConfigurationName, String resourceGroupName, AttachedDatabaseConfigurationInner parameters); /** * Creates or updates an attached database configuration. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param attachedDatabaseConfigurationName The name of the attached database configuration. @@ -168,17 +154,13 @@ AttachedDatabaseConfigurationInner createOrUpdate( * @return class representing an attached database configuration. */ @ServiceMethod(returns = ReturnType.SINGLE) - AttachedDatabaseConfigurationInner createOrUpdate( - String workspaceName, - String kustoPoolName, - String attachedDatabaseConfigurationName, - String resourceGroupName, - AttachedDatabaseConfigurationInner parameters, - Context context); + AttachedDatabaseConfigurationInner createOrUpdate(String workspaceName, String kustoPoolName, + String attachedDatabaseConfigurationName, String resourceGroupName, + AttachedDatabaseConfigurationInner parameters, Context context); /** * Deletes the attached database configuration with the given name. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param attachedDatabaseConfigurationName The name of the attached database configuration. @@ -189,12 +171,12 @@ AttachedDatabaseConfigurationInner createOrUpdate( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete( - String workspaceName, String kustoPoolName, String attachedDatabaseConfigurationName, String resourceGroupName); + SyncPoller, Void> beginDelete(String workspaceName, String kustoPoolName, + String attachedDatabaseConfigurationName, String resourceGroupName); /** * Deletes the attached database configuration with the given name. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param attachedDatabaseConfigurationName The name of the attached database configuration. @@ -206,16 +188,12 @@ SyncPoller, Void> beginDelete( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete( - String workspaceName, - String kustoPoolName, - String attachedDatabaseConfigurationName, - String resourceGroupName, - Context context); + SyncPoller, Void> beginDelete(String workspaceName, String kustoPoolName, + String attachedDatabaseConfigurationName, String resourceGroupName, Context context); /** * Deletes the attached database configuration with the given name. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param attachedDatabaseConfigurationName The name of the attached database configuration. @@ -225,12 +203,12 @@ SyncPoller, Void> beginDelete( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete( - String workspaceName, String kustoPoolName, String attachedDatabaseConfigurationName, String resourceGroupName); + void delete(String workspaceName, String kustoPoolName, String attachedDatabaseConfigurationName, + String resourceGroupName); /** * Deletes the attached database configuration with the given name. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param attachedDatabaseConfigurationName The name of the attached database configuration. @@ -241,10 +219,6 @@ void delete( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete( - String workspaceName, - String kustoPoolName, - String attachedDatabaseConfigurationName, - String resourceGroupName, - Context context); + void delete(String workspaceName, String kustoPoolName, String attachedDatabaseConfigurationName, + String resourceGroupName, Context context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolChildResourcesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolChildResourcesClient.java index 15580846fc89..664b3284a903 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolChildResourcesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolChildResourcesClient.java @@ -11,11 +11,13 @@ import com.azure.resourcemanager.synapse.fluent.models.CheckNameResultInner; import com.azure.resourcemanager.synapse.models.DatabaseCheckNameRequest; -/** An instance of this class provides access to all the operations defined in KustoPoolChildResourcesClient. */ +/** + * An instance of this class provides access to all the operations defined in KustoPoolChildResourcesClient. + */ public interface KustoPoolChildResourcesClient { /** * Checks that the Kusto Pool child resource name is valid and is not already in use. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -27,16 +29,12 @@ public interface KustoPoolChildResourcesClient { * @return the result returned from a check name availability request along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response checkNameAvailabilityWithResponse( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - DatabaseCheckNameRequest resourceName, - Context context); + Response checkNameAvailabilityWithResponse(String workspaceName, String kustoPoolName, + String resourceGroupName, DatabaseCheckNameRequest resourceName, Context context); /** * Checks that the Kusto Pool child resource name is valid and is not already in use. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -47,6 +45,6 @@ Response checkNameAvailabilityWithResponse( * @return the result returned from a check name availability request. */ @ServiceMethod(returns = ReturnType.SINGLE) - CheckNameResultInner checkNameAvailability( - String workspaceName, String kustoPoolName, String resourceGroupName, DatabaseCheckNameRequest resourceName); + CheckNameResultInner checkNameAvailability(String workspaceName, String kustoPoolName, String resourceGroupName, + DatabaseCheckNameRequest resourceName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolDataConnectionsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolDataConnectionsClient.java index 36fb878956b9..bebb03b82be2 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolDataConnectionsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolDataConnectionsClient.java @@ -17,11 +17,13 @@ import com.azure.resourcemanager.synapse.fluent.models.DataConnectionValidationListResultInner; import com.azure.resourcemanager.synapse.models.DataConnectionCheckNameRequest; -/** An instance of this class provides access to all the operations defined in KustoPoolDataConnectionsClient. */ +/** + * An instance of this class provides access to all the operations defined in KustoPoolDataConnectionsClient. + */ public interface KustoPoolDataConnectionsClient { /** * Checks that the data connection name is valid and is not already in use. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -34,17 +36,12 @@ public interface KustoPoolDataConnectionsClient { * @return the result returned from a check name availability request along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response checkNameAvailabilityWithResponse( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DataConnectionCheckNameRequest dataConnectionName, - Context context); + Response checkNameAvailabilityWithResponse(String resourceGroupName, String workspaceName, + String kustoPoolName, String databaseName, DataConnectionCheckNameRequest dataConnectionName, Context context); /** * Checks that the data connection name is valid and is not already in use. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -56,16 +53,12 @@ Response checkNameAvailabilityWithResponse( * @return the result returned from a check name availability request. */ @ServiceMethod(returns = ReturnType.SINGLE) - CheckNameResultInner checkNameAvailability( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DataConnectionCheckNameRequest dataConnectionName); + CheckNameResultInner checkNameAvailability(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName, DataConnectionCheckNameRequest dataConnectionName); /** * Checks that the data connection parameters are valid. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -78,16 +71,12 @@ CheckNameResultInner checkNameAvailability( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, DataConnectionValidationListResultInner> - beginDataConnectionValidation( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DataConnectionValidationInner parameters); + beginDataConnectionValidation(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName, DataConnectionValidationInner parameters); /** * Checks that the data connection parameters are valid. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -101,17 +90,12 @@ CheckNameResultInner checkNameAvailability( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, DataConnectionValidationListResultInner> - beginDataConnectionValidation( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DataConnectionValidationInner parameters, - Context context); + beginDataConnectionValidation(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName, DataConnectionValidationInner parameters, Context context); /** * Checks that the data connection parameters are valid. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -123,16 +107,12 @@ CheckNameResultInner checkNameAvailability( * @return the list Kusto data connection validation result. */ @ServiceMethod(returns = ReturnType.SINGLE) - DataConnectionValidationListResultInner dataConnectionValidation( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DataConnectionValidationInner parameters); + DataConnectionValidationListResultInner dataConnectionValidation(String resourceGroupName, String workspaceName, + String kustoPoolName, String databaseName, DataConnectionValidationInner parameters); /** * Checks that the data connection parameters are valid. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -145,17 +125,12 @@ DataConnectionValidationListResultInner dataConnectionValidation( * @return the list Kusto data connection validation result. */ @ServiceMethod(returns = ReturnType.SINGLE) - DataConnectionValidationListResultInner dataConnectionValidation( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DataConnectionValidationInner parameters, - Context context); + DataConnectionValidationListResultInner dataConnectionValidation(String resourceGroupName, String workspaceName, + String kustoPoolName, String databaseName, DataConnectionValidationInner parameters, Context context); /** * Returns the list of data connections of the given Kusto pool database. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -166,12 +141,12 @@ DataConnectionValidationListResultInner dataConnectionValidation( * @return the list Kusto data connections operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByDatabase( - String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName); + PagedIterable listByDatabase(String resourceGroupName, String workspaceName, + String kustoPoolName, String databaseName); /** * Returns the list of data connections of the given Kusto pool database. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -183,12 +158,12 @@ PagedIterable listByDatabase( * @return the list Kusto data connections operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByDatabase( - String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, Context context); + PagedIterable listByDatabase(String resourceGroupName, String workspaceName, + String kustoPoolName, String databaseName, Context context); /** * Returns a data connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -201,17 +176,12 @@ PagedIterable listByDatabase( * @return class representing a data connection along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName, - Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName, String dataConnectionName, Context context); /** * Returns a data connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -223,16 +193,12 @@ Response getWithResponse( * @return class representing a data connection. */ @ServiceMethod(returns = ReturnType.SINGLE) - DataConnectionInner get( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, + DataConnectionInner get(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, String dataConnectionName); /** * Creates or updates a data connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -245,17 +211,13 @@ DataConnectionInner get( * @return the {@link SyncPoller} for polling of class representing a data connection. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, DataConnectionInner> beginCreateOrUpdate( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName, + SyncPoller, DataConnectionInner> beginCreateOrUpdate(String resourceGroupName, + String workspaceName, String kustoPoolName, String databaseName, String dataConnectionName, DataConnectionInner parameters); /** * Creates or updates a data connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -269,18 +231,13 @@ SyncPoller, DataConnectionInner> beginCreateOrUp * @return the {@link SyncPoller} for polling of class representing a data connection. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, DataConnectionInner> beginCreateOrUpdate( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName, - DataConnectionInner parameters, - Context context); + SyncPoller, DataConnectionInner> beginCreateOrUpdate(String resourceGroupName, + String workspaceName, String kustoPoolName, String databaseName, String dataConnectionName, + DataConnectionInner parameters, Context context); /** * Creates or updates a data connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -293,17 +250,12 @@ SyncPoller, DataConnectionInner> beginCreateOrUp * @return class representing a data connection. */ @ServiceMethod(returns = ReturnType.SINGLE) - DataConnectionInner createOrUpdate( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName, - DataConnectionInner parameters); + DataConnectionInner createOrUpdate(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName, String dataConnectionName, DataConnectionInner parameters); /** * Creates or updates a data connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -317,18 +269,12 @@ DataConnectionInner createOrUpdate( * @return class representing a data connection. */ @ServiceMethod(returns = ReturnType.SINGLE) - DataConnectionInner createOrUpdate( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName, - DataConnectionInner parameters, - Context context); + DataConnectionInner createOrUpdate(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName, String dataConnectionName, DataConnectionInner parameters, Context context); /** * Updates a data connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -341,17 +287,13 @@ DataConnectionInner createOrUpdate( * @return the {@link SyncPoller} for polling of class representing a data connection. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, DataConnectionInner> beginUpdate( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName, + SyncPoller, DataConnectionInner> beginUpdate(String resourceGroupName, + String workspaceName, String kustoPoolName, String databaseName, String dataConnectionName, DataConnectionInner parameters); /** * Updates a data connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -365,18 +307,13 @@ SyncPoller, DataConnectionInner> beginUpdate( * @return the {@link SyncPoller} for polling of class representing a data connection. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, DataConnectionInner> beginUpdate( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName, - DataConnectionInner parameters, - Context context); + SyncPoller, DataConnectionInner> beginUpdate(String resourceGroupName, + String workspaceName, String kustoPoolName, String databaseName, String dataConnectionName, + DataConnectionInner parameters, Context context); /** * Updates a data connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -389,17 +326,12 @@ SyncPoller, DataConnectionInner> beginUpdate( * @return class representing a data connection. */ @ServiceMethod(returns = ReturnType.SINGLE) - DataConnectionInner update( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName, - DataConnectionInner parameters); + DataConnectionInner update(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName, String dataConnectionName, DataConnectionInner parameters); /** * Updates a data connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -413,18 +345,12 @@ DataConnectionInner update( * @return class representing a data connection. */ @ServiceMethod(returns = ReturnType.SINGLE) - DataConnectionInner update( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName, - DataConnectionInner parameters, - Context context); + DataConnectionInner update(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName, String dataConnectionName, DataConnectionInner parameters, Context context); /** * Deletes the data connection with the given name. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -436,16 +362,12 @@ DataConnectionInner update( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName); + SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName, String dataConnectionName); /** * Deletes the data connection with the given name. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -458,17 +380,12 @@ SyncPoller, Void> beginDelete( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName, - Context context); + SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName, String dataConnectionName, Context context); /** * Deletes the data connection with the given name. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -479,16 +396,12 @@ SyncPoller, Void> beginDelete( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, + void delete(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, String dataConnectionName); /** * Deletes the data connection with the given name. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -500,11 +413,6 @@ void delete( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName, - Context context); + void delete(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, + String dataConnectionName, Context context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolDatabasePrincipalAssignmentsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolDatabasePrincipalAssignmentsClient.java index 11efba850079..8fc385c2cd45 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolDatabasePrincipalAssignmentsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolDatabasePrincipalAssignmentsClient.java @@ -22,7 +22,7 @@ public interface KustoPoolDatabasePrincipalAssignmentsClient { /** * Checks that the database principal assignment is valid and is not already in use. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -35,17 +35,13 @@ public interface KustoPoolDatabasePrincipalAssignmentsClient { * @return the result returned from a check name availability request along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response checkNameAvailabilityWithResponse( - String workspaceName, - String kustoPoolName, - String databaseName, - String resourceGroupName, - DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName, - Context context); + Response checkNameAvailabilityWithResponse(String workspaceName, String kustoPoolName, + String databaseName, String resourceGroupName, + DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName, Context context); /** * Checks that the database principal assignment is valid and is not already in use. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -57,16 +53,12 @@ Response checkNameAvailabilityWithResponse( * @return the result returned from a check name availability request. */ @ServiceMethod(returns = ReturnType.SINGLE) - CheckNameResultInner checkNameAvailability( - String workspaceName, - String kustoPoolName, - String databaseName, - String resourceGroupName, - DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName); + CheckNameResultInner checkNameAvailability(String workspaceName, String kustoPoolName, String databaseName, + String resourceGroupName, DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName); /** * Lists all Kusto pool database principalAssignments. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -74,16 +66,16 @@ CheckNameResultInner checkNameAvailability( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto database principal assignments operation response as paginated response with {@link - * PagedIterable}. + * @return the list Kusto database principal assignments operation response as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list( - String workspaceName, String kustoPoolName, String databaseName, String resourceGroupName); + PagedIterable list(String workspaceName, String kustoPoolName, + String databaseName, String resourceGroupName); /** * Lists all Kusto pool database principalAssignments. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -92,16 +84,16 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto database principal assignments operation response as paginated response with {@link - * PagedIterable}. + * @return the list Kusto database principal assignments operation response as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list( - String workspaceName, String kustoPoolName, String databaseName, String resourceGroupName, Context context); + PagedIterable list(String workspaceName, String kustoPoolName, + String databaseName, String resourceGroupName, Context context); /** * Gets a Kusto pool database principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -114,17 +106,12 @@ PagedIterable list( * @return a Kusto pool database principalAssignment along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String workspaceName, - String kustoPoolName, - String databaseName, - String principalAssignmentName, - String resourceGroupName, - Context context); + Response getWithResponse(String workspaceName, String kustoPoolName, + String databaseName, String principalAssignmentName, String resourceGroupName, Context context); /** * Gets a Kusto pool database principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -136,16 +123,12 @@ Response getWithResponse( * @return a Kusto pool database principalAssignment. */ @ServiceMethod(returns = ReturnType.SINGLE) - DatabasePrincipalAssignmentInner get( - String workspaceName, - String kustoPoolName, - String databaseName, - String principalAssignmentName, - String resourceGroupName); + DatabasePrincipalAssignmentInner get(String workspaceName, String kustoPoolName, String databaseName, + String principalAssignmentName, String resourceGroupName); /** * Creates a Kusto pool database principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -159,16 +142,12 @@ DatabasePrincipalAssignmentInner get( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, DatabasePrincipalAssignmentInner> beginCreateOrUpdate( - String workspaceName, - String kustoPoolName, - String databaseName, - String principalAssignmentName, - String resourceGroupName, - DatabasePrincipalAssignmentInner parameters); + String workspaceName, String kustoPoolName, String databaseName, String principalAssignmentName, + String resourceGroupName, DatabasePrincipalAssignmentInner parameters); /** * Creates a Kusto pool database principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -183,17 +162,12 @@ SyncPoller, DatabasePrincipalAssign */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, DatabasePrincipalAssignmentInner> beginCreateOrUpdate( - String workspaceName, - String kustoPoolName, - String databaseName, - String principalAssignmentName, - String resourceGroupName, - DatabasePrincipalAssignmentInner parameters, - Context context); + String workspaceName, String kustoPoolName, String databaseName, String principalAssignmentName, + String resourceGroupName, DatabasePrincipalAssignmentInner parameters, Context context); /** * Creates a Kusto pool database principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -206,17 +180,12 @@ SyncPoller, DatabasePrincipalAssign * @return class representing a database principal assignment. */ @ServiceMethod(returns = ReturnType.SINGLE) - DatabasePrincipalAssignmentInner createOrUpdate( - String workspaceName, - String kustoPoolName, - String databaseName, - String principalAssignmentName, - String resourceGroupName, - DatabasePrincipalAssignmentInner parameters); + DatabasePrincipalAssignmentInner createOrUpdate(String workspaceName, String kustoPoolName, String databaseName, + String principalAssignmentName, String resourceGroupName, DatabasePrincipalAssignmentInner parameters); /** * Creates a Kusto pool database principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -230,18 +199,13 @@ DatabasePrincipalAssignmentInner createOrUpdate( * @return class representing a database principal assignment. */ @ServiceMethod(returns = ReturnType.SINGLE) - DatabasePrincipalAssignmentInner createOrUpdate( - String workspaceName, - String kustoPoolName, - String databaseName, - String principalAssignmentName, - String resourceGroupName, - DatabasePrincipalAssignmentInner parameters, + DatabasePrincipalAssignmentInner createOrUpdate(String workspaceName, String kustoPoolName, String databaseName, + String principalAssignmentName, String resourceGroupName, DatabasePrincipalAssignmentInner parameters, Context context); /** * Deletes a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -253,16 +217,12 @@ DatabasePrincipalAssignmentInner createOrUpdate( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete( - String workspaceName, - String kustoPoolName, - String databaseName, - String principalAssignmentName, - String resourceGroupName); + SyncPoller, Void> beginDelete(String workspaceName, String kustoPoolName, String databaseName, + String principalAssignmentName, String resourceGroupName); /** * Deletes a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -275,17 +235,12 @@ SyncPoller, Void> beginDelete( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete( - String workspaceName, - String kustoPoolName, - String databaseName, - String principalAssignmentName, - String resourceGroupName, - Context context); + SyncPoller, Void> beginDelete(String workspaceName, String kustoPoolName, String databaseName, + String principalAssignmentName, String resourceGroupName, Context context); /** * Deletes a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -296,16 +251,12 @@ SyncPoller, Void> beginDelete( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete( - String workspaceName, - String kustoPoolName, - String databaseName, - String principalAssignmentName, + void delete(String workspaceName, String kustoPoolName, String databaseName, String principalAssignmentName, String resourceGroupName); /** * Deletes a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -317,11 +268,6 @@ void delete( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete( - String workspaceName, - String kustoPoolName, - String databaseName, - String principalAssignmentName, - String resourceGroupName, - Context context); + void delete(String workspaceName, String kustoPoolName, String databaseName, String principalAssignmentName, + String resourceGroupName, Context context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolDatabasesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolDatabasesClient.java index e1be9938212a..0b343a1e0344 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolDatabasesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolDatabasesClient.java @@ -13,11 +13,13 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.synapse.fluent.models.DatabaseInner; -/** An instance of this class provides access to all the operations defined in KustoPoolDatabasesClient. */ +/** + * An instance of this class provides access to all the operations defined in KustoPoolDatabasesClient. + */ public interface KustoPoolDatabasesClient { /** * Returns the list of databases of the given Kusto pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -31,7 +33,7 @@ public interface KustoPoolDatabasesClient { /** * Returns the list of databases of the given Kusto pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -42,12 +44,12 @@ public interface KustoPoolDatabasesClient { * @return the list Kusto databases operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByKustoPool( - String resourceGroupName, String workspaceName, String kustoPoolName, Context context); + PagedIterable listByKustoPool(String resourceGroupName, String workspaceName, String kustoPoolName, + Context context); /** * Returns a database. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -59,12 +61,12 @@ PagedIterable listByKustoPool( * @return class representing a Kusto database along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName, Context context); /** * Returns a database. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -79,7 +81,7 @@ Response getWithResponse( /** * Creates or updates a database. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -91,16 +93,12 @@ Response getWithResponse( * @return the {@link SyncPoller} for polling of class representing a Kusto database. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, DatabaseInner> beginCreateOrUpdate( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DatabaseInner parameters); + SyncPoller, DatabaseInner> beginCreateOrUpdate(String resourceGroupName, + String workspaceName, String kustoPoolName, String databaseName, DatabaseInner parameters); /** * Creates or updates a database. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -113,17 +111,12 @@ SyncPoller, DatabaseInner> beginCreateOrUpdate( * @return the {@link SyncPoller} for polling of class representing a Kusto database. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, DatabaseInner> beginCreateOrUpdate( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DatabaseInner parameters, - Context context); + SyncPoller, DatabaseInner> beginCreateOrUpdate(String resourceGroupName, + String workspaceName, String kustoPoolName, String databaseName, DatabaseInner parameters, Context context); /** * Creates or updates a database. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -135,16 +128,12 @@ SyncPoller, DatabaseInner> beginCreateOrUpdate( * @return class representing a Kusto database. */ @ServiceMethod(returns = ReturnType.SINGLE) - DatabaseInner createOrUpdate( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DatabaseInner parameters); + DatabaseInner createOrUpdate(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName, DatabaseInner parameters); /** * Creates or updates a database. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -157,17 +146,12 @@ DatabaseInner createOrUpdate( * @return class representing a Kusto database. */ @ServiceMethod(returns = ReturnType.SINGLE) - DatabaseInner createOrUpdate( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DatabaseInner parameters, - Context context); + DatabaseInner createOrUpdate(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName, DatabaseInner parameters, Context context); /** * Updates a database. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -179,16 +163,12 @@ DatabaseInner createOrUpdate( * @return the {@link SyncPoller} for polling of class representing a Kusto database. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, DatabaseInner> beginUpdate( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DatabaseInner parameters); + SyncPoller, DatabaseInner> beginUpdate(String resourceGroupName, String workspaceName, + String kustoPoolName, String databaseName, DatabaseInner parameters); /** * Updates a database. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -201,17 +181,12 @@ SyncPoller, DatabaseInner> beginUpdate( * @return the {@link SyncPoller} for polling of class representing a Kusto database. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, DatabaseInner> beginUpdate( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DatabaseInner parameters, - Context context); + SyncPoller, DatabaseInner> beginUpdate(String resourceGroupName, String workspaceName, + String kustoPoolName, String databaseName, DatabaseInner parameters, Context context); /** * Updates a database. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -223,16 +198,12 @@ SyncPoller, DatabaseInner> beginUpdate( * @return class representing a Kusto database. */ @ServiceMethod(returns = ReturnType.SINGLE) - DatabaseInner update( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, + DatabaseInner update(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, DatabaseInner parameters); /** * Updates a database. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -245,17 +216,12 @@ DatabaseInner update( * @return class representing a Kusto database. */ @ServiceMethod(returns = ReturnType.SINGLE) - DatabaseInner update( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DatabaseInner parameters, - Context context); + DatabaseInner update(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, + DatabaseInner parameters, Context context); /** * Deletes the database with the given name. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -266,12 +232,12 @@ DatabaseInner update( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete( - String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName); + SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName); /** * Deletes the database with the given name. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -283,12 +249,12 @@ SyncPoller, Void> beginDelete( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete( - String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, Context context); + SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName, Context context); /** * Deletes the database with the given name. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -302,7 +268,7 @@ SyncPoller, Void> beginDelete( /** * Deletes the database with the given name. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -313,6 +279,6 @@ SyncPoller, Void> beginDelete( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete( - String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, Context context); + void delete(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, + Context context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolPrincipalAssignmentsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolPrincipalAssignmentsClient.java index a3c55dcd9188..6e5e5720aaa1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolPrincipalAssignmentsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolPrincipalAssignmentsClient.java @@ -15,11 +15,13 @@ import com.azure.resourcemanager.synapse.fluent.models.ClusterPrincipalAssignmentInner; import com.azure.resourcemanager.synapse.models.ClusterPrincipalAssignmentCheckNameRequest; -/** An instance of this class provides access to all the operations defined in KustoPoolPrincipalAssignmentsClient. */ +/** + * An instance of this class provides access to all the operations defined in KustoPoolPrincipalAssignmentsClient. + */ public interface KustoPoolPrincipalAssignmentsClient { /** * Checks that the principal assignment name is valid and is not already in use. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -31,16 +33,12 @@ public interface KustoPoolPrincipalAssignmentsClient { * @return the result returned from a check name availability request along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response checkNameAvailabilityWithResponse( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - ClusterPrincipalAssignmentCheckNameRequest principalAssignmentName, - Context context); + Response checkNameAvailabilityWithResponse(String workspaceName, String kustoPoolName, + String resourceGroupName, ClusterPrincipalAssignmentCheckNameRequest principalAssignmentName, Context context); /** * Checks that the principal assignment name is valid and is not already in use. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -51,31 +49,28 @@ Response checkNameAvailabilityWithResponse( * @return the result returned from a check name availability request. */ @ServiceMethod(returns = ReturnType.SINGLE) - CheckNameResultInner checkNameAvailability( - String workspaceName, - String kustoPoolName, - String resourceGroupName, + CheckNameResultInner checkNameAvailability(String workspaceName, String kustoPoolName, String resourceGroupName, ClusterPrincipalAssignmentCheckNameRequest principalAssignmentName); /** * Lists all Kusto pool principalAssignments. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto cluster principal assignments operation response as paginated response with {@link - * PagedIterable}. + * @return the list Kusto cluster principal assignments operation response as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list( - String workspaceName, String kustoPoolName, String resourceGroupName); + PagedIterable list(String workspaceName, String kustoPoolName, + String resourceGroupName); /** * Lists all Kusto pool principalAssignments. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -83,16 +78,16 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto cluster principal assignments operation response as paginated response with {@link - * PagedIterable}. + * @return the list Kusto cluster principal assignments operation response as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list( - String workspaceName, String kustoPoolName, String resourceGroupName, Context context); + PagedIterable list(String workspaceName, String kustoPoolName, + String resourceGroupName, Context context); /** * Gets a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -104,16 +99,12 @@ PagedIterable list( * @return a Kusto pool principalAssignment along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String workspaceName, - String kustoPoolName, - String principalAssignmentName, - String resourceGroupName, - Context context); + Response getWithResponse(String workspaceName, String kustoPoolName, + String principalAssignmentName, String resourceGroupName, Context context); /** * Gets a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -124,12 +115,12 @@ Response getWithResponse( * @return a Kusto pool principalAssignment. */ @ServiceMethod(returns = ReturnType.SINGLE) - ClusterPrincipalAssignmentInner get( - String workspaceName, String kustoPoolName, String principalAssignmentName, String resourceGroupName); + ClusterPrincipalAssignmentInner get(String workspaceName, String kustoPoolName, String principalAssignmentName, + String resourceGroupName); /** * Create a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -142,15 +133,12 @@ ClusterPrincipalAssignmentInner get( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ClusterPrincipalAssignmentInner> beginCreateOrUpdate( - String workspaceName, - String kustoPoolName, - String principalAssignmentName, - String resourceGroupName, + String workspaceName, String kustoPoolName, String principalAssignmentName, String resourceGroupName, ClusterPrincipalAssignmentInner parameters); /** * Create a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -164,16 +152,12 @@ SyncPoller, ClusterPrincipalAssignme */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ClusterPrincipalAssignmentInner> beginCreateOrUpdate( - String workspaceName, - String kustoPoolName, - String principalAssignmentName, - String resourceGroupName, - ClusterPrincipalAssignmentInner parameters, - Context context); + String workspaceName, String kustoPoolName, String principalAssignmentName, String resourceGroupName, + ClusterPrincipalAssignmentInner parameters, Context context); /** * Create a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -185,16 +169,12 @@ SyncPoller, ClusterPrincipalAssignme * @return class representing a cluster principal assignment. */ @ServiceMethod(returns = ReturnType.SINGLE) - ClusterPrincipalAssignmentInner createOrUpdate( - String workspaceName, - String kustoPoolName, - String principalAssignmentName, - String resourceGroupName, - ClusterPrincipalAssignmentInner parameters); + ClusterPrincipalAssignmentInner createOrUpdate(String workspaceName, String kustoPoolName, + String principalAssignmentName, String resourceGroupName, ClusterPrincipalAssignmentInner parameters); /** * Create a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -207,17 +187,13 @@ ClusterPrincipalAssignmentInner createOrUpdate( * @return class representing a cluster principal assignment. */ @ServiceMethod(returns = ReturnType.SINGLE) - ClusterPrincipalAssignmentInner createOrUpdate( - String workspaceName, - String kustoPoolName, - String principalAssignmentName, - String resourceGroupName, - ClusterPrincipalAssignmentInner parameters, + ClusterPrincipalAssignmentInner createOrUpdate(String workspaceName, String kustoPoolName, + String principalAssignmentName, String resourceGroupName, ClusterPrincipalAssignmentInner parameters, Context context); /** * Deletes a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -228,12 +204,12 @@ ClusterPrincipalAssignmentInner createOrUpdate( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete( - String workspaceName, String kustoPoolName, String principalAssignmentName, String resourceGroupName); + SyncPoller, Void> beginDelete(String workspaceName, String kustoPoolName, + String principalAssignmentName, String resourceGroupName); /** * Deletes a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -245,16 +221,12 @@ SyncPoller, Void> beginDelete( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete( - String workspaceName, - String kustoPoolName, - String principalAssignmentName, - String resourceGroupName, - Context context); + SyncPoller, Void> beginDelete(String workspaceName, String kustoPoolName, + String principalAssignmentName, String resourceGroupName, Context context); /** * Deletes a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -268,7 +240,7 @@ SyncPoller, Void> beginDelete( /** * Deletes a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -279,10 +251,6 @@ SyncPoller, Void> beginDelete( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete( - String workspaceName, - String kustoPoolName, - String principalAssignmentName, - String resourceGroupName, + void delete(String workspaceName, String kustoPoolName, String principalAssignmentName, String resourceGroupName, Context context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolPrivateLinkResourcesOperationsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolPrivateLinkResourcesOperationsClient.java index 9511921321b7..2efc5f591497 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolPrivateLinkResourcesOperationsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolPrivateLinkResourcesOperationsClient.java @@ -17,23 +17,23 @@ public interface KustoPoolPrivateLinkResourcesOperationsClient { /** * Lists all Kusto pool PrivateLinkResources. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto Private Link Resources operation response as paginated response with {@link - * PagedIterable}. + * @return the list Kusto Private Link Resources operation response as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list( - String resourceGroupName, String workspaceName, String kustoPoolName); + PagedIterable list(String resourceGroupName, String workspaceName, + String kustoPoolName); /** * Lists all Kusto pool PrivateLinkResources. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -41,10 +41,10 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto Private Link Resources operation response as paginated response with {@link - * PagedIterable}. + * @return the list Kusto Private Link Resources operation response as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list( - String resourceGroupName, String workspaceName, String kustoPoolName, Context context); + PagedIterable list(String resourceGroupName, String workspaceName, + String kustoPoolName, Context context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolsClient.java index 57a7c1313b0e..fc35fb3a11b9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolsClient.java @@ -22,11 +22,13 @@ import com.azure.resourcemanager.synapse.models.KustoPoolUpdate; import com.azure.resourcemanager.synapse.models.LanguageExtensionsList; -/** An instance of this class provides access to all the operations defined in KustoPoolsClient. */ +/** + * An instance of this class provides access to all the operations defined in KustoPoolsClient. + */ public interface KustoPoolsClient { /** * Lists eligible SKUs for Kusto Pool resource. - * + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of the SKU descriptions as paginated response with {@link PagedIterable}. @@ -36,7 +38,7 @@ public interface KustoPoolsClient { /** * Lists eligible SKUs for Kusto Pool resource. - * + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -48,7 +50,7 @@ public interface KustoPoolsClient { /** * Checks that the kusto pool name is valid and is not already in use. - * + * * @param location The name of Azure region. * @param kustoPoolName The name of the cluster. * @param context The context to associate with this operation. @@ -58,12 +60,12 @@ public interface KustoPoolsClient { * @return the result returned from a check name availability request along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response checkNameAvailabilityWithResponse( - String location, KustoPoolCheckNameRequest kustoPoolName, Context context); + Response checkNameAvailabilityWithResponse(String location, + KustoPoolCheckNameRequest kustoPoolName, Context context); /** * Checks that the kusto pool name is valid and is not already in use. - * + * * @param location The name of Azure region. * @param kustoPoolName The name of the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -76,9 +78,9 @@ Response checkNameAvailabilityWithResponse( /** * List Kusto pools - * - *

List all Kusto pools. - * + * + * List all Kusto pools. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -88,14 +90,14 @@ Response checkNameAvailabilityWithResponse( * @return the list Kusto pools operation response along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response listByWorkspaceWithResponse( - String resourceGroupName, String workspaceName, Context context); + Response listByWorkspaceWithResponse(String resourceGroupName, String workspaceName, + Context context); /** * List Kusto pools - * - *

List all Kusto pools. - * + * + * List all Kusto pools. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -108,7 +110,7 @@ Response listByWorkspaceWithResponse( /** * Gets a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -119,12 +121,12 @@ Response listByWorkspaceWithResponse( * @return a Kusto pool along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String workspaceName, String kustoPoolName, String resourceGroupName, Context context); + Response getWithResponse(String workspaceName, String kustoPoolName, String resourceGroupName, + Context context); /** * Gets a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -138,7 +140,7 @@ Response getWithResponse( /** * Create or update a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kustoPoolName The name of the Kusto pool. @@ -149,20 +151,20 @@ Response getWithResponse( * @return the {@link SyncPoller} for polling of class representing a Kusto kusto pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, KustoPoolInner> beginCreateOrUpdate( - String workspaceName, String resourceGroupName, String kustoPoolName, KustoPoolInner parameters); + SyncPoller, KustoPoolInner> beginCreateOrUpdate(String workspaceName, + String resourceGroupName, String kustoPoolName, KustoPoolInner parameters); /** * Create or update a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kustoPoolName The name of the Kusto pool. * @param parameters The Kusto pool parameters supplied to the CreateOrUpdate operation. * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. Specify - * the last-seen ETag value to prevent accidentally overwriting concurrent changes. + * the last-seen ETag value to prevent accidentally overwriting concurrent changes. * @param ifNoneMatch Set to '*' to allow a new Kusto Pool to be created, but to prevent updating an existing Kusto - * Pool. Other values will result in a 412 Pre-condition Failed response. + * Pool. Other values will result in a 412 Pre-condition Failed response. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -170,18 +172,13 @@ SyncPoller, KustoPoolInner> beginCreateOrUpdate( * @return the {@link SyncPoller} for polling of class representing a Kusto kusto pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, KustoPoolInner> beginCreateOrUpdate( - String workspaceName, - String resourceGroupName, - String kustoPoolName, - KustoPoolInner parameters, - String ifMatch, - String ifNoneMatch, + SyncPoller, KustoPoolInner> beginCreateOrUpdate(String workspaceName, + String resourceGroupName, String kustoPoolName, KustoPoolInner parameters, String ifMatch, String ifNoneMatch, Context context); /** * Create or update a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kustoPoolName The name of the Kusto pool. @@ -192,20 +189,20 @@ SyncPoller, KustoPoolInner> beginCreateOrUpdate( * @return class representing a Kusto kusto pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - KustoPoolInner createOrUpdate( - String workspaceName, String resourceGroupName, String kustoPoolName, KustoPoolInner parameters); + KustoPoolInner createOrUpdate(String workspaceName, String resourceGroupName, String kustoPoolName, + KustoPoolInner parameters); /** * Create or update a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kustoPoolName The name of the Kusto pool. * @param parameters The Kusto pool parameters supplied to the CreateOrUpdate operation. * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. Specify - * the last-seen ETag value to prevent accidentally overwriting concurrent changes. + * the last-seen ETag value to prevent accidentally overwriting concurrent changes. * @param ifNoneMatch Set to '*' to allow a new Kusto Pool to be created, but to prevent updating an existing Kusto - * Pool. Other values will result in a 412 Pre-condition Failed response. + * Pool. Other values will result in a 412 Pre-condition Failed response. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -213,18 +210,12 @@ KustoPoolInner createOrUpdate( * @return class representing a Kusto kusto pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - KustoPoolInner createOrUpdate( - String workspaceName, - String resourceGroupName, - String kustoPoolName, - KustoPoolInner parameters, - String ifMatch, - String ifNoneMatch, - Context context); + KustoPoolInner createOrUpdate(String workspaceName, String resourceGroupName, String kustoPoolName, + KustoPoolInner parameters, String ifMatch, String ifNoneMatch, Context context); /** * Update a Kusto Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kustoPoolName The name of the Kusto pool. @@ -235,18 +226,18 @@ KustoPoolInner createOrUpdate( * @return the {@link SyncPoller} for polling of class representing a Kusto kusto pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, KustoPoolInner> beginUpdate( - String workspaceName, String resourceGroupName, String kustoPoolName, KustoPoolUpdate parameters); + SyncPoller, KustoPoolInner> beginUpdate(String workspaceName, String resourceGroupName, + String kustoPoolName, KustoPoolUpdate parameters); /** * Update a Kusto Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kustoPoolName The name of the Kusto pool. * @param parameters The Kusto pool parameters supplied to the Update operation. * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. Specify - * the last-seen ETag value to prevent accidentally overwriting concurrent changes. + * the last-seen ETag value to prevent accidentally overwriting concurrent changes. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -254,17 +245,12 @@ SyncPoller, KustoPoolInner> beginUpdate( * @return the {@link SyncPoller} for polling of class representing a Kusto kusto pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, KustoPoolInner> beginUpdate( - String workspaceName, - String resourceGroupName, - String kustoPoolName, - KustoPoolUpdate parameters, - String ifMatch, - Context context); + SyncPoller, KustoPoolInner> beginUpdate(String workspaceName, String resourceGroupName, + String kustoPoolName, KustoPoolUpdate parameters, String ifMatch, Context context); /** * Update a Kusto Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kustoPoolName The name of the Kusto pool. @@ -275,18 +261,18 @@ SyncPoller, KustoPoolInner> beginUpdate( * @return class representing a Kusto kusto pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - KustoPoolInner update( - String workspaceName, String resourceGroupName, String kustoPoolName, KustoPoolUpdate parameters); + KustoPoolInner update(String workspaceName, String resourceGroupName, String kustoPoolName, + KustoPoolUpdate parameters); /** * Update a Kusto Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kustoPoolName The name of the Kusto pool. * @param parameters The Kusto pool parameters supplied to the Update operation. * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. Specify - * the last-seen ETag value to prevent accidentally overwriting concurrent changes. + * the last-seen ETag value to prevent accidentally overwriting concurrent changes. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -294,17 +280,12 @@ KustoPoolInner update( * @return class representing a Kusto kusto pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - KustoPoolInner update( - String workspaceName, - String resourceGroupName, - String kustoPoolName, - KustoPoolUpdate parameters, - String ifMatch, - Context context); + KustoPoolInner update(String workspaceName, String resourceGroupName, String kustoPoolName, + KustoPoolUpdate parameters, String ifMatch, Context context); /** * Deletes a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kustoPoolName The name of the Kusto pool. @@ -314,12 +295,12 @@ KustoPoolInner update( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete( - String workspaceName, String resourceGroupName, String kustoPoolName); + SyncPoller, Void> beginDelete(String workspaceName, String resourceGroupName, + String kustoPoolName); /** * Deletes a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kustoPoolName The name of the Kusto pool. @@ -330,12 +311,12 @@ SyncPoller, Void> beginDelete( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete( - String workspaceName, String resourceGroupName, String kustoPoolName, Context context); + SyncPoller, Void> beginDelete(String workspaceName, String resourceGroupName, String kustoPoolName, + Context context); /** * Deletes a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kustoPoolName The name of the Kusto pool. @@ -348,7 +329,7 @@ SyncPoller, Void> beginDelete( /** * Deletes a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kustoPoolName The name of the Kusto pool. @@ -362,7 +343,7 @@ SyncPoller, Void> beginDelete( /** * Stops a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -376,7 +357,7 @@ SyncPoller, Void> beginDelete( /** * Stops a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -387,12 +368,12 @@ SyncPoller, Void> beginDelete( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginStop( - String workspaceName, String kustoPoolName, String resourceGroupName, Context context); + SyncPoller, Void> beginStop(String workspaceName, String kustoPoolName, String resourceGroupName, + Context context); /** * Stops a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -405,7 +386,7 @@ SyncPoller, Void> beginStop( /** * Stops a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -419,7 +400,7 @@ SyncPoller, Void> beginStop( /** * Starts a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -433,7 +414,7 @@ SyncPoller, Void> beginStop( /** * Starts a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -444,12 +425,12 @@ SyncPoller, Void> beginStop( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginStart( - String workspaceName, String kustoPoolName, String resourceGroupName, Context context); + SyncPoller, Void> beginStart(String workspaceName, String kustoPoolName, String resourceGroupName, + Context context); /** * Starts a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -462,7 +443,7 @@ SyncPoller, Void> beginStart( /** * Starts a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -476,7 +457,7 @@ SyncPoller, Void> beginStart( /** * Returns the SKUs available for the provided resource. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -486,12 +467,12 @@ SyncPoller, Void> beginStart( * @return list of available SKUs for a Kusto Pool as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listSkusByResource( - String workspaceName, String kustoPoolName, String resourceGroupName); + PagedIterable listSkusByResource(String workspaceName, String kustoPoolName, + String resourceGroupName); /** * Returns the SKUs available for the provided resource. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -502,12 +483,12 @@ PagedIterable listSkusByResource( * @return list of available SKUs for a Kusto Pool as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listSkusByResource( - String workspaceName, String kustoPoolName, String resourceGroupName, Context context); + PagedIterable listSkusByResource(String workspaceName, String kustoPoolName, + String resourceGroupName, Context context); /** * Returns a list of language extensions that can run within KQL queries. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -517,12 +498,12 @@ PagedIterable listSkusByResource( * @return the list of language extension objects as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listLanguageExtensions( - String workspaceName, String kustoPoolName, String resourceGroupName); + PagedIterable listLanguageExtensions(String workspaceName, String kustoPoolName, + String resourceGroupName); /** * Returns a list of language extensions that can run within KQL queries. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -533,12 +514,12 @@ PagedIterable listLanguageExtensions( * @return the list of language extension objects as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listLanguageExtensions( - String workspaceName, String kustoPoolName, String resourceGroupName, Context context); + PagedIterable listLanguageExtensions(String workspaceName, String kustoPoolName, + String resourceGroupName, Context context); /** * Add a list of language extensions that can run within KQL queries. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -549,15 +530,12 @@ PagedIterable listLanguageExtensions( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginAddLanguageExtensions( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - LanguageExtensionsList languageExtensionsToAdd); + SyncPoller, Void> beginAddLanguageExtensions(String workspaceName, String kustoPoolName, + String resourceGroupName, LanguageExtensionsList languageExtensionsToAdd); /** * Add a list of language extensions that can run within KQL queries. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -569,16 +547,12 @@ SyncPoller, Void> beginAddLanguageExtensions( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginAddLanguageExtensions( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - LanguageExtensionsList languageExtensionsToAdd, - Context context); + SyncPoller, Void> beginAddLanguageExtensions(String workspaceName, String kustoPoolName, + String resourceGroupName, LanguageExtensionsList languageExtensionsToAdd, Context context); /** * Add a list of language extensions that can run within KQL queries. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -588,15 +562,12 @@ SyncPoller, Void> beginAddLanguageExtensions( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void addLanguageExtensions( - String workspaceName, - String kustoPoolName, - String resourceGroupName, + void addLanguageExtensions(String workspaceName, String kustoPoolName, String resourceGroupName, LanguageExtensionsList languageExtensionsToAdd); /** * Add a list of language extensions that can run within KQL queries. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -607,16 +578,12 @@ void addLanguageExtensions( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void addLanguageExtensions( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - LanguageExtensionsList languageExtensionsToAdd, - Context context); + void addLanguageExtensions(String workspaceName, String kustoPoolName, String resourceGroupName, + LanguageExtensionsList languageExtensionsToAdd, Context context); /** * Remove a list of language extensions that can run within KQL queries. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -627,15 +594,12 @@ void addLanguageExtensions( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginRemoveLanguageExtensions( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - LanguageExtensionsList languageExtensionsToRemove); + SyncPoller, Void> beginRemoveLanguageExtensions(String workspaceName, String kustoPoolName, + String resourceGroupName, LanguageExtensionsList languageExtensionsToRemove); /** * Remove a list of language extensions that can run within KQL queries. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -647,16 +611,12 @@ SyncPoller, Void> beginRemoveLanguageExtensions( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginRemoveLanguageExtensions( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - LanguageExtensionsList languageExtensionsToRemove, - Context context); + SyncPoller, Void> beginRemoveLanguageExtensions(String workspaceName, String kustoPoolName, + String resourceGroupName, LanguageExtensionsList languageExtensionsToRemove, Context context); /** * Remove a list of language extensions that can run within KQL queries. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -666,15 +626,12 @@ SyncPoller, Void> beginRemoveLanguageExtensions( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void removeLanguageExtensions( - String workspaceName, - String kustoPoolName, - String resourceGroupName, + void removeLanguageExtensions(String workspaceName, String kustoPoolName, String resourceGroupName, LanguageExtensionsList languageExtensionsToRemove); /** * Remove a list of language extensions that can run within KQL queries. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -685,16 +642,12 @@ void removeLanguageExtensions( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void removeLanguageExtensions( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - LanguageExtensionsList languageExtensionsToRemove, - Context context); + void removeLanguageExtensions(String workspaceName, String kustoPoolName, String resourceGroupName, + LanguageExtensionsList languageExtensionsToRemove, Context context); /** * Returns a list of databases that are owned by this Kusto Pool and were followed by another Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -704,12 +657,12 @@ void removeLanguageExtensions( * @return the list Kusto database principals operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listFollowerDatabases( - String workspaceName, String kustoPoolName, String resourceGroupName); + PagedIterable listFollowerDatabases(String workspaceName, String kustoPoolName, + String resourceGroupName); /** * Returns a list of databases that are owned by this Kusto Pool and were followed by another Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -720,12 +673,12 @@ PagedIterable listFollowerDatabases( * @return the list Kusto database principals operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listFollowerDatabases( - String workspaceName, String kustoPoolName, String resourceGroupName, Context context); + PagedIterable listFollowerDatabases(String workspaceName, String kustoPoolName, + String resourceGroupName, Context context); /** * Detaches all followers of a database owned by this Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -736,15 +689,12 @@ PagedIterable listFollowerDatabases( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDetachFollowerDatabases( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - FollowerDatabaseDefinitionInner followerDatabaseToRemove); + SyncPoller, Void> beginDetachFollowerDatabases(String workspaceName, String kustoPoolName, + String resourceGroupName, FollowerDatabaseDefinitionInner followerDatabaseToRemove); /** * Detaches all followers of a database owned by this Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -756,16 +706,12 @@ SyncPoller, Void> beginDetachFollowerDatabases( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDetachFollowerDatabases( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - FollowerDatabaseDefinitionInner followerDatabaseToRemove, - Context context); + SyncPoller, Void> beginDetachFollowerDatabases(String workspaceName, String kustoPoolName, + String resourceGroupName, FollowerDatabaseDefinitionInner followerDatabaseToRemove, Context context); /** * Detaches all followers of a database owned by this Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -775,15 +721,12 @@ SyncPoller, Void> beginDetachFollowerDatabases( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void detachFollowerDatabases( - String workspaceName, - String kustoPoolName, - String resourceGroupName, + void detachFollowerDatabases(String workspaceName, String kustoPoolName, String resourceGroupName, FollowerDatabaseDefinitionInner followerDatabaseToRemove); /** * Detaches all followers of a database owned by this Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -794,10 +737,6 @@ void detachFollowerDatabases( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void detachFollowerDatabases( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - FollowerDatabaseDefinitionInner followerDatabaseToRemove, - Context context); + void detachFollowerDatabases(String workspaceName, String kustoPoolName, String resourceGroupName, + FollowerDatabaseDefinitionInner followerDatabaseToRemove, Context context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/LibrariesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/LibrariesClient.java index 3ebe607a8370..1b5d5ea8ba7a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/LibrariesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/LibrariesClient.java @@ -10,13 +10,15 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.synapse.fluent.models.LibraryResourceInner; -/** An instance of this class provides access to all the operations defined in LibrariesClient. */ +/** + * An instance of this class provides access to all the operations defined in LibrariesClient. + */ public interface LibrariesClient { /** * Get library by name. - * - *

Get library by name in a workspace. - * + * + * Get library by name in a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param libraryName Library name. * @param workspaceName The name of the workspace. @@ -27,14 +29,14 @@ public interface LibrariesClient { * @return library by name in a workspace along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String libraryName, String workspaceName, Context context); + Response getWithResponse(String resourceGroupName, String libraryName, String workspaceName, + Context context); /** * Get library by name. - * - *

Get library by name in a workspace. - * + * + * Get library by name in a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param libraryName Library name. * @param workspaceName The name of the workspace. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/LibrariesOperationsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/LibrariesOperationsClient.java index 3af47ac51f4d..0dd65c341d63 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/LibrariesOperationsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/LibrariesOperationsClient.java @@ -10,13 +10,15 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.synapse.fluent.models.LibraryResourceInner; -/** An instance of this class provides access to all the operations defined in LibrariesOperationsClient. */ +/** + * An instance of this class provides access to all the operations defined in LibrariesOperationsClient. + */ public interface LibrariesOperationsClient { /** * List the libraries in a workspace. - * - *

List libraries in a workspace. - * + * + * List libraries in a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -29,9 +31,9 @@ public interface LibrariesOperationsClient { /** * List the libraries in a workspace. - * - *

List libraries in a workspace. - * + * + * List libraries in a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -41,6 +43,6 @@ public interface LibrariesOperationsClient { * @return a list of Library resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByWorkspace( - String resourceGroupName, String workspaceName, Context context); + PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, + Context context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/OperationsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/OperationsClient.java index f4be22c2dd5e..63f9abc5be48 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/OperationsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/OperationsClient.java @@ -11,16 +11,19 @@ import com.azure.resourcemanager.synapse.fluent.models.AvailableRpOperationInner; import com.azure.resourcemanager.synapse.fluent.models.CheckNameAvailabilityResponseInner; import com.azure.resourcemanager.synapse.fluent.models.OperationResourceInner; +import com.azure.resourcemanager.synapse.fluent.models.WorkspaceUsageQuotaResponseInner; import com.azure.resourcemanager.synapse.models.CheckNameAvailabilityRequest; import java.util.List; -/** An instance of this class provides access to all the operations defined in OperationsClient. */ +/** + * An instance of this class provides access to all the operations defined in OperationsClient. + */ public interface OperationsClient { /** * Check name availability - * - *

Check whether a workspace name is available. - * + * + * Check whether a workspace name is available. + * * @param request The check request. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -29,14 +32,14 @@ public interface OperationsClient { * @return check name availability response along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response checkNameAvailabilityWithResponse( - CheckNameAvailabilityRequest request, Context context); + Response checkNameAvailabilityWithResponse(CheckNameAvailabilityRequest request, + Context context); /** * Check name availability - * - *

Check whether a workspace name is available. - * + * + * Check whether a workspace name is available. + * * @param request The check request. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -48,9 +51,9 @@ Response checkNameAvailabilityWithResponse( /** * All operations - * - *

Get all available operations. - * + * + * Get all available operations. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -62,9 +65,9 @@ Response checkNameAvailabilityWithResponse( /** * All operations - * - *

Get all available operations. - * + * + * Get all available operations. + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return all available operations. @@ -74,9 +77,9 @@ Response checkNameAvailabilityWithResponse( /** * Get operation result - * - *

Get the result of an operation. - * + * + * Get the result of an operation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param operationId Operation ID. @@ -87,14 +90,14 @@ Response checkNameAvailabilityWithResponse( * @return the result of an operation along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getLocationHeaderResultWithResponse( - String resourceGroupName, String workspaceName, String operationId, Context context); + Response getLocationHeaderResultWithResponse(String resourceGroupName, String workspaceName, + String operationId, Context context); /** * Get operation result - * - *

Get the result of an operation. - * + * + * Get the result of an operation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param operationId Operation ID. @@ -107,9 +110,9 @@ Response getLocationHeaderResultWithResponse( /** * Get operation status - * - *

Get the status of an operation. - * + * + * Get the status of an operation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param operationId Operation ID. @@ -120,14 +123,14 @@ Response getLocationHeaderResultWithResponse( * @return the status of an operation along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getAzureAsyncHeaderResultWithResponse( - String resourceGroupName, String workspaceName, String operationId, Context context); + Response getAzureAsyncHeaderResultWithResponse(String resourceGroupName, + String workspaceName, String operationId, Context context); /** * Get operation status - * - *

Get the status of an operation. - * + * + * Get the status of an operation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param operationId Operation ID. @@ -137,6 +140,32 @@ Response getAzureAsyncHeaderResultWithResponse( * @return the status of an operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - OperationResourceInner getAzureAsyncHeaderResult( - String resourceGroupName, String workspaceName, String operationId); + OperationResourceInner getAzureAsyncHeaderResult(String resourceGroupName, String workspaceName, + String operationId); + + /** + * Gets the current usage and quota of workspaces in a subscription/region. + * + * @param location The location on which resource usage is queried. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current usage and quota of workspaces in a subscription/region along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWorkspacePerSubscriptionQuotaWithResponse(String location, + Context context); + + /** + * Gets the current usage and quota of workspaces in a subscription/region. + * + * @param location The location on which resource usage is queried. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current usage and quota of workspaces in a subscription/region. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + WorkspaceUsageQuotaResponseInner getWorkspacePerSubscriptionQuota(String location); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateEndpointConnectionsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateEndpointConnectionsClient.java index e65635fbe256..cc6247565e06 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateEndpointConnectionsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateEndpointConnectionsClient.java @@ -14,11 +14,13 @@ import com.azure.resourcemanager.synapse.fluent.models.OperationResourceInner; import com.azure.resourcemanager.synapse.fluent.models.PrivateEndpointConnectionInner; -/** An instance of this class provides access to all the operations defined in PrivateEndpointConnectionsClient. */ +/** + * An instance of this class provides access to all the operations defined in PrivateEndpointConnectionsClient. + */ public interface PrivateEndpointConnectionsClient { /** * Gets a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -29,12 +31,12 @@ public interface PrivateEndpointConnectionsClient { * @return a private endpoint connection along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String workspaceName, String privateEndpointConnectionName, Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + String privateEndpointConnectionName, Context context); /** * Gets a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -44,12 +46,12 @@ Response getWithResponse( * @return a private endpoint connection. */ @ServiceMethod(returns = ReturnType.SINGLE) - PrivateEndpointConnectionInner get( - String resourceGroupName, String workspaceName, String privateEndpointConnectionName); + PrivateEndpointConnectionInner get(String resourceGroupName, String workspaceName, + String privateEndpointConnectionName); /** * Approve or reject a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -61,14 +63,12 @@ PrivateEndpointConnectionInner get( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, PrivateEndpointConnectionInner> beginCreate( - String resourceGroupName, - String workspaceName, - String privateEndpointConnectionName, + String resourceGroupName, String workspaceName, String privateEndpointConnectionName, PrivateEndpointConnectionInner request); /** * Approve or reject a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -81,15 +81,12 @@ SyncPoller, PrivateEndpointConnection */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, PrivateEndpointConnectionInner> beginCreate( - String resourceGroupName, - String workspaceName, - String privateEndpointConnectionName, - PrivateEndpointConnectionInner request, - Context context); + String resourceGroupName, String workspaceName, String privateEndpointConnectionName, + PrivateEndpointConnectionInner request, Context context); /** * Approve or reject a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -100,15 +97,12 @@ SyncPoller, PrivateEndpointConnection * @return a private endpoint connection. */ @ServiceMethod(returns = ReturnType.SINGLE) - PrivateEndpointConnectionInner create( - String resourceGroupName, - String workspaceName, - String privateEndpointConnectionName, - PrivateEndpointConnectionInner request); + PrivateEndpointConnectionInner create(String resourceGroupName, String workspaceName, + String privateEndpointConnectionName, PrivateEndpointConnectionInner request); /** * Approve or reject a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -120,16 +114,12 @@ PrivateEndpointConnectionInner create( * @return a private endpoint connection. */ @ServiceMethod(returns = ReturnType.SINGLE) - PrivateEndpointConnectionInner create( - String resourceGroupName, - String workspaceName, - String privateEndpointConnectionName, - PrivateEndpointConnectionInner request, - Context context); + PrivateEndpointConnectionInner create(String resourceGroupName, String workspaceName, + String privateEndpointConnectionName, PrivateEndpointConnectionInner request, Context context); /** * Delete a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -139,12 +129,12 @@ PrivateEndpointConnectionInner create( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, OperationResourceInner> beginDelete( - String resourceGroupName, String workspaceName, String privateEndpointConnectionName); + SyncPoller, OperationResourceInner> beginDelete(String resourceGroupName, + String workspaceName, String privateEndpointConnectionName); /** * Delete a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -155,12 +145,12 @@ SyncPoller, OperationResourceInner> beginDele * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, OperationResourceInner> beginDelete( - String resourceGroupName, String workspaceName, String privateEndpointConnectionName, Context context); + SyncPoller, OperationResourceInner> beginDelete(String resourceGroupName, + String workspaceName, String privateEndpointConnectionName, Context context); /** * Delete a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -174,7 +164,7 @@ SyncPoller, OperationResourceInner> beginDele /** * Delete a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -185,12 +175,12 @@ SyncPoller, OperationResourceInner> beginDele * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - OperationResourceInner delete( - String resourceGroupName, String workspaceName, String privateEndpointConnectionName, Context context); + OperationResourceInner delete(String resourceGroupName, String workspaceName, String privateEndpointConnectionName, + Context context); /** * Lists private endpoint connection in workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -203,7 +193,7 @@ OperationResourceInner delete( /** * Lists private endpoint connection in workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateEndpointConnectionsPrivateLinkHubsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateEndpointConnectionsPrivateLinkHubsClient.java index 9a0807984d41..45940a9b5139 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateEndpointConnectionsPrivateLinkHubsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateEndpointConnectionsPrivateLinkHubsClient.java @@ -18,7 +18,7 @@ public interface PrivateEndpointConnectionsPrivateLinkHubsClient { /** * Get all PrivateEndpointConnections in the PrivateLinkHub. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -27,12 +27,12 @@ public interface PrivateEndpointConnectionsPrivateLinkHubsClient { * @return all PrivateEndpointConnections in the PrivateLinkHub as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list( - String resourceGroupName, String privateLinkHubName); + PagedIterable list(String resourceGroupName, + String privateLinkHubName); /** * Get all PrivateEndpointConnections in the PrivateLinkHub. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @param context The context to associate with this operation. @@ -42,12 +42,12 @@ PagedIterable list( * @return all PrivateEndpointConnections in the PrivateLinkHub as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list( - String resourceGroupName, String privateLinkHubName, Context context); + PagedIterable list(String resourceGroupName, + String privateLinkHubName, Context context); /** * Get all PrivateEndpointConnection in the PrivateLinkHub by name. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @param privateEndpointConnectionName Name of the privateEndpointConnection. @@ -58,12 +58,12 @@ PagedIterable list( * @return all PrivateEndpointConnection in the PrivateLinkHub by name along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String privateLinkHubName, String privateEndpointConnectionName, Context context); + Response getWithResponse(String resourceGroupName, + String privateLinkHubName, String privateEndpointConnectionName, Context context); /** * Get all PrivateEndpointConnection in the PrivateLinkHub by name. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @param privateEndpointConnectionName Name of the privateEndpointConnection. @@ -73,6 +73,6 @@ Response getWithResponse( * @return all PrivateEndpointConnection in the PrivateLinkHub by name. */ @ServiceMethod(returns = ReturnType.SINGLE) - PrivateEndpointConnectionForPrivateLinkHubInner get( - String resourceGroupName, String privateLinkHubName, String privateEndpointConnectionName); + PrivateEndpointConnectionForPrivateLinkHubInner get(String resourceGroupName, String privateLinkHubName, + String privateEndpointConnectionName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateLinkHubPrivateLinkResourcesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateLinkHubPrivateLinkResourcesClient.java index 946235b201f6..762309fc5877 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateLinkHubPrivateLinkResourcesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateLinkHubPrivateLinkResourcesClient.java @@ -17,9 +17,9 @@ public interface PrivateLinkHubPrivateLinkResourcesClient { /** * Private Link Resources - * - *

Get all private link resources for a private link hub. - * + * + * Get all private link resources for a private link hub. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName The name of the private link hub. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -32,9 +32,9 @@ public interface PrivateLinkHubPrivateLinkResourcesClient { /** * Private Link Resources - * - *

Get all private link resources for a private link hub. - * + * + * Get all private link resources for a private link hub. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName The name of the private link hub. * @param context The context to associate with this operation. @@ -48,9 +48,9 @@ public interface PrivateLinkHubPrivateLinkResourcesClient { /** * Get Private Link Hub Private Link Resource - * - *

Get private link resource in private link hub. - * + * + * Get private link resource in private link hub. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName The name of the private link hub. * @param privateLinkResourceName The name of the private link resource. @@ -61,14 +61,14 @@ public interface PrivateLinkHubPrivateLinkResourcesClient { * @return private link resource in private link hub along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String privateLinkHubName, String privateLinkResourceName, Context context); + Response getWithResponse(String resourceGroupName, String privateLinkHubName, + String privateLinkResourceName, Context context); /** * Get Private Link Hub Private Link Resource - * - *

Get private link resource in private link hub. - * + * + * Get private link resource in private link hub. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName The name of the private link hub. * @param privateLinkResourceName The name of the private link resource. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateLinkHubsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateLinkHubsClient.java index f221270b8c69..ad1d6b71cb6a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateLinkHubsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateLinkHubsClient.java @@ -14,11 +14,13 @@ import com.azure.resourcemanager.synapse.fluent.models.PrivateLinkHubInner; import com.azure.resourcemanager.synapse.models.PrivateLinkHubPatchInfo; -/** An instance of this class provides access to all the operations defined in PrivateLinkHubsClient. */ +/** + * An instance of this class provides access to all the operations defined in PrivateLinkHubsClient. + */ public interface PrivateLinkHubsClient { /** * Returns a list of privateLinkHubs in a resource group. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -30,7 +32,7 @@ public interface PrivateLinkHubsClient { /** * Returns a list of privateLinkHubs in a resource group. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -43,7 +45,7 @@ public interface PrivateLinkHubsClient { /** * Gets a privateLinkHub. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @param context The context to associate with this operation. @@ -53,12 +55,12 @@ public interface PrivateLinkHubsClient { * @return a privateLinkHub along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse( - String resourceGroupName, String privateLinkHubName, Context context); + Response getByResourceGroupWithResponse(String resourceGroupName, String privateLinkHubName, + Context context); /** * Gets a privateLinkHub. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -71,7 +73,7 @@ Response getByResourceGroupWithResponse( /** * Updates a privateLinkHub. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @param privateLinkHubPatchInfo PrivateLinkHub patch request properties. @@ -82,15 +84,12 @@ Response getByResourceGroupWithResponse( * @return a privateLinkHub along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response updateWithResponse( - String resourceGroupName, - String privateLinkHubName, - PrivateLinkHubPatchInfo privateLinkHubPatchInfo, - Context context); + Response updateWithResponse(String resourceGroupName, String privateLinkHubName, + PrivateLinkHubPatchInfo privateLinkHubPatchInfo, Context context); /** * Updates a privateLinkHub. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @param privateLinkHubPatchInfo PrivateLinkHub patch request properties. @@ -100,12 +99,12 @@ Response updateWithResponse( * @return a privateLinkHub. */ @ServiceMethod(returns = ReturnType.SINGLE) - PrivateLinkHubInner update( - String resourceGroupName, String privateLinkHubName, PrivateLinkHubPatchInfo privateLinkHubPatchInfo); + PrivateLinkHubInner update(String resourceGroupName, String privateLinkHubName, + PrivateLinkHubPatchInfo privateLinkHubPatchInfo); /** * Creates or updates a privateLinkHub. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @param privateLinkHubInfo PrivateLinkHub create or update request properties. @@ -116,12 +115,12 @@ PrivateLinkHubInner update( * @return a privateLinkHub along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse( - String resourceGroupName, String privateLinkHubName, PrivateLinkHubInner privateLinkHubInfo, Context context); + Response createOrUpdateWithResponse(String resourceGroupName, String privateLinkHubName, + PrivateLinkHubInner privateLinkHubInfo, Context context); /** * Creates or updates a privateLinkHub. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @param privateLinkHubInfo PrivateLinkHub create or update request properties. @@ -131,12 +130,12 @@ Response createOrUpdateWithResponse( * @return a privateLinkHub. */ @ServiceMethod(returns = ReturnType.SINGLE) - PrivateLinkHubInner createOrUpdate( - String resourceGroupName, String privateLinkHubName, PrivateLinkHubInner privateLinkHubInfo); + PrivateLinkHubInner createOrUpdate(String resourceGroupName, String privateLinkHubName, + PrivateLinkHubInner privateLinkHubInfo); /** * Deletes a privateLinkHub. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -149,7 +148,7 @@ PrivateLinkHubInner createOrUpdate( /** * Deletes a privateLinkHub. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @param context The context to associate with this operation. @@ -159,12 +158,12 @@ PrivateLinkHubInner createOrUpdate( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete( - String resourceGroupName, String privateLinkHubName, Context context); + SyncPoller, Void> beginDelete(String resourceGroupName, String privateLinkHubName, + Context context); /** * Deletes a privateLinkHub. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -176,7 +175,7 @@ SyncPoller, Void> beginDelete( /** * Deletes a privateLinkHub. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @param context The context to associate with this operation. @@ -189,7 +188,7 @@ SyncPoller, Void> beginDelete( /** * Returns a list of privateLinkHubs 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 list of privateLinkHubs as paginated response with {@link PagedIterable}. @@ -199,7 +198,7 @@ SyncPoller, Void> beginDelete( /** * Returns a list of privateLinkHubs 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/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateLinkResourcesOperationsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateLinkResourcesOperationsClient.java index d66de61b3ea6..53365774fb9d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateLinkResourcesOperationsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/PrivateLinkResourcesOperationsClient.java @@ -11,13 +11,15 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.synapse.fluent.models.PrivateLinkResourceInner; -/** An instance of this class provides access to all the operations defined in PrivateLinkResourcesOperationsClient. */ +/** + * An instance of this class provides access to all the operations defined in PrivateLinkResourcesOperationsClient. + */ public interface PrivateLinkResourcesOperationsClient { /** * Private Link Resources - * - *

Get all private link resources for a workspaces. - * + * + * Get all private link resources for a workspaces. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -30,9 +32,9 @@ public interface PrivateLinkResourcesOperationsClient { /** * Private Link Resources - * - *

Get all private link resources for a workspaces. - * + * + * Get all private link resources for a workspaces. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -46,9 +48,9 @@ public interface PrivateLinkResourcesOperationsClient { /** * Get Private Link Resource - * - *

Get private link resource in workspace. - * + * + * Get private link resource in workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateLinkResourceName The name of the private link resource. @@ -59,14 +61,14 @@ public interface PrivateLinkResourcesOperationsClient { * @return private link resource in workspace along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String workspaceName, String privateLinkResourceName, Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + String privateLinkResourceName, Context context); /** * Get Private Link Resource - * - *

Get private link resource in workspace. - * + * + * Get private link resource in workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateLinkResourceName The name of the private link resource. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/RestorableDroppedSqlPoolsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/RestorableDroppedSqlPoolsClient.java index 788835496fe4..35a9fca9b58a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/RestorableDroppedSqlPoolsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/RestorableDroppedSqlPoolsClient.java @@ -11,15 +11,17 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.synapse.fluent.models.RestorableDroppedSqlPoolInner; -/** An instance of this class provides access to all the operations defined in RestorableDroppedSqlPoolsClient. */ +/** + * An instance of this class provides access to all the operations defined in RestorableDroppedSqlPoolsClient. + */ public interface RestorableDroppedSqlPoolsClient { /** * Gets a deleted sql pool that can be restored. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param restorableDroppedSqlPoolId The id of the deleted Sql Pool in the form of - * sqlPoolName,deletionTimeInFileTimeFormat. + * sqlPoolName,deletionTimeInFileTimeFormat. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -27,28 +29,28 @@ public interface RestorableDroppedSqlPoolsClient { * @return a deleted sql pool that can be restored along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String workspaceName, String restorableDroppedSqlPoolId, Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + String restorableDroppedSqlPoolId, Context context); /** * Gets a deleted sql pool that can be restored. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param restorableDroppedSqlPoolId The id of the deleted Sql Pool in the form of - * sqlPoolName,deletionTimeInFileTimeFormat. + * sqlPoolName,deletionTimeInFileTimeFormat. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a deleted sql pool that can be restored. */ @ServiceMethod(returns = ReturnType.SINGLE) - RestorableDroppedSqlPoolInner get( - String resourceGroupName, String workspaceName, String restorableDroppedSqlPoolId); + RestorableDroppedSqlPoolInner get(String resourceGroupName, String workspaceName, + String restorableDroppedSqlPoolId); /** * Gets a list of deleted Sql pools that can be restored. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -61,7 +63,7 @@ RestorableDroppedSqlPoolInner get( /** * Gets a list of deleted Sql pools that can be restored. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -71,6 +73,6 @@ RestorableDroppedSqlPoolInner get( * @return a list of deleted Sql pools that can be restored as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByWorkspace( - String resourceGroupName, String workspaceName, Context context); + PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, + Context context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SparkConfigurationsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SparkConfigurationsClient.java index 1cc2ce298b91..b3444e9ca0b6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SparkConfigurationsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SparkConfigurationsClient.java @@ -10,13 +10,15 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.synapse.fluent.models.SparkConfigurationResourceInner; -/** An instance of this class provides access to all the operations defined in SparkConfigurationsClient. */ +/** + * An instance of this class provides access to all the operations defined in SparkConfigurationsClient. + */ public interface SparkConfigurationsClient { /** * Get SparkConfiguration by name. - * - *

Get SparkConfiguration by name in a workspace. - * + * + * Get SparkConfiguration by name in a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param sparkConfigurationName SparkConfiguration name. * @param workspaceName The name of the workspace. @@ -27,14 +29,14 @@ public interface SparkConfigurationsClient { * @return sparkConfiguration by name in a workspace along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String sparkConfigurationName, String workspaceName, Context context); + Response getWithResponse(String resourceGroupName, String sparkConfigurationName, + String workspaceName, Context context); /** * Get SparkConfiguration by name. - * - *

Get SparkConfiguration by name in a workspace. - * + * + * Get SparkConfiguration by name in a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param sparkConfigurationName SparkConfiguration name. * @param workspaceName The name of the workspace. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SparkConfigurationsOperationsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SparkConfigurationsOperationsClient.java index 1272a647200a..603d47b7b6b0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SparkConfigurationsOperationsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SparkConfigurationsOperationsClient.java @@ -10,13 +10,15 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.synapse.fluent.models.SparkConfigurationResourceInner; -/** An instance of this class provides access to all the operations defined in SparkConfigurationsOperationsClient. */ +/** + * An instance of this class provides access to all the operations defined in SparkConfigurationsOperationsClient. + */ public interface SparkConfigurationsOperationsClient { /** * List the sparkConfigurations in a workspace. - * - *

List sparkConfigurations in a workspace. - * + * + * List sparkConfigurations in a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -29,9 +31,9 @@ public interface SparkConfigurationsOperationsClient { /** * List the sparkConfigurations in a workspace. - * - *

List sparkConfigurations in a workspace. - * + * + * List sparkConfigurations in a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -41,6 +43,6 @@ public interface SparkConfigurationsOperationsClient { * @return a list of SparkConfiguration resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByWorkspace( - String resourceGroupName, String workspaceName, Context context); + PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, + Context context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolBlobAuditingPoliciesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolBlobAuditingPoliciesClient.java index af2e42775ff0..6e851aaa4025 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolBlobAuditingPoliciesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolBlobAuditingPoliciesClient.java @@ -11,13 +11,15 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.synapse.fluent.models.SqlPoolBlobAuditingPolicyInner; -/** An instance of this class provides access to all the operations defined in SqlPoolBlobAuditingPoliciesClient. */ +/** + * An instance of this class provides access to all the operations defined in SqlPoolBlobAuditingPoliciesClient. + */ public interface SqlPoolBlobAuditingPoliciesClient { /** * Get a SQL pool's blob auditing policy - * - *

Get a SQL pool's blob auditing policy. - * + * + * Get a SQL pool's blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -28,14 +30,14 @@ public interface SqlPoolBlobAuditingPoliciesClient { * @return a SQL pool's blob auditing policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context); /** * Get a SQL pool's blob auditing policy - * - *

Get a SQL pool's blob auditing policy. - * + * + * Get a SQL pool's blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -49,9 +51,9 @@ Response getWithResponse( /** * Creates or updates a SQL pool's blob auditing policy - * - *

Creates or updates a SQL pool's blob auditing policy. - * + * + * Creates or updates a SQL pool's blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -63,18 +65,14 @@ Response getWithResponse( * @return a Sql pool blob auditing policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - SqlPoolBlobAuditingPolicyInner parameters, - Context context); + Response createOrUpdateWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, SqlPoolBlobAuditingPolicyInner parameters, Context context); /** * Creates or updates a SQL pool's blob auditing policy - * - *

Creates or updates a SQL pool's blob auditing policy. - * + * + * Creates or updates a SQL pool's blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -85,12 +83,12 @@ Response createOrUpdateWithResponse( * @return a Sql pool blob auditing policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - SqlPoolBlobAuditingPolicyInner createOrUpdate( - String resourceGroupName, String workspaceName, String sqlPoolName, SqlPoolBlobAuditingPolicyInner parameters); + SqlPoolBlobAuditingPolicyInner createOrUpdate(String resourceGroupName, String workspaceName, String sqlPoolName, + SqlPoolBlobAuditingPolicyInner parameters); /** * Lists auditing settings of a Sql pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -100,12 +98,12 @@ SqlPoolBlobAuditingPolicyInner createOrUpdate( * @return a list of Sql pool auditing settings as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listBySqlPool( - String resourceGroupName, String workspaceName, String sqlPoolName); + PagedIterable listBySqlPool(String resourceGroupName, String workspaceName, + String sqlPoolName); /** * Lists auditing settings of a Sql pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -116,6 +114,6 @@ PagedIterable listBySqlPool( * @return a list of Sql pool auditing settings as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listBySqlPool( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + PagedIterable listBySqlPool(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolColumnsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolColumnsClient.java index cbbd9320ff05..2a9a1e192ce1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolColumnsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolColumnsClient.java @@ -10,11 +10,13 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.synapse.fluent.models.SqlPoolColumnInner; -/** An instance of this class provides access to all the operations defined in SqlPoolColumnsClient. */ +/** + * An instance of this class provides access to all the operations defined in SqlPoolColumnsClient. + */ public interface SqlPoolColumnsClient { /** * Get Sql pool column. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -28,18 +30,12 @@ public interface SqlPoolColumnsClient { * @return sql pool column along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName, - Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + String schemaName, String tableName, String columnName, Context context); /** * Get Sql pool column. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -52,11 +48,6 @@ Response getWithResponse( * @return sql pool column. */ @ServiceMethod(returns = ReturnType.SINGLE) - SqlPoolColumnInner get( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName); + SqlPoolColumnInner get(String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, + String tableName, String columnName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolConnectionPoliciesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolConnectionPoliciesClient.java index 28956975502b..bf5456b8b2ce 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolConnectionPoliciesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolConnectionPoliciesClient.java @@ -11,13 +11,15 @@ import com.azure.resourcemanager.synapse.fluent.models.SqlPoolConnectionPolicyInner; import com.azure.resourcemanager.synapse.models.ConnectionPolicyName; -/** An instance of this class provides access to all the operations defined in SqlPoolConnectionPoliciesClient. */ +/** + * An instance of this class provides access to all the operations defined in SqlPoolConnectionPoliciesClient. + */ public interface SqlPoolConnectionPoliciesClient { /** * Get a Sql pool's connection policy, which is used with table auditing - * - *

Get a Sql pool's connection policy, which is used with table auditing. - * + * + * Get a Sql pool's connection policy, which is used with table auditing. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -29,18 +31,14 @@ public interface SqlPoolConnectionPoliciesClient { * @return a Sql pool's connection policy, which is used with table auditing along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - ConnectionPolicyName connectionPolicyName, - Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, ConnectionPolicyName connectionPolicyName, Context context); /** * Get a Sql pool's connection policy, which is used with table auditing - * - *

Get a Sql pool's connection policy, which is used with table auditing. - * + * + * Get a Sql pool's connection policy, which is used with table auditing. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -51,6 +49,6 @@ Response getWithResponse( * @return a Sql pool's connection policy, which is used with table auditing. */ @ServiceMethod(returns = ReturnType.SINGLE) - SqlPoolConnectionPolicyInner get( - String resourceGroupName, String workspaceName, String sqlPoolName, ConnectionPolicyName connectionPolicyName); + SqlPoolConnectionPolicyInner get(String resourceGroupName, String workspaceName, String sqlPoolName, + ConnectionPolicyName connectionPolicyName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolDataWarehouseUserActivitiesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolDataWarehouseUserActivitiesClient.java index f07ae9ee27f8..c28e9b16b463 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolDataWarehouseUserActivitiesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolDataWarehouseUserActivitiesClient.java @@ -17,9 +17,9 @@ public interface SqlPoolDataWarehouseUserActivitiesClient { /** * Get SQL pool user activities - * - *

Gets the user activities of a SQL pool which includes running and suspended queries. - * + * + * Gets the user activities of a SQL pool which includes running and suspended queries. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -28,22 +28,18 @@ public interface SqlPoolDataWarehouseUserActivitiesClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the user activities of a SQL pool which includes running and suspended queries along with {@link - * Response}. + * @return the user activities of a SQL pool which includes running and suspended queries along with + * {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - DataWarehouseUserActivityName dataWarehouseUserActivityName, - Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, DataWarehouseUserActivityName dataWarehouseUserActivityName, Context context); /** * Get SQL pool user activities - * - *

Gets the user activities of a SQL pool which includes running and suspended queries. - * + * + * Gets the user activities of a SQL pool which includes running and suspended queries. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -54,9 +50,6 @@ Response getWithResponse( * @return the user activities of a SQL pool which includes running and suspended queries. */ @ServiceMethod(returns = ReturnType.SINGLE) - DataWarehouseUserActivitiesInner get( - String resourceGroupName, - String workspaceName, - String sqlPoolName, + DataWarehouseUserActivitiesInner get(String resourceGroupName, String workspaceName, String sqlPoolName, DataWarehouseUserActivityName dataWarehouseUserActivityName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolGeoBackupPoliciesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolGeoBackupPoliciesClient.java index 8b88a953d1ef..dcb7e55ec935 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolGeoBackupPoliciesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolGeoBackupPoliciesClient.java @@ -12,13 +12,15 @@ import com.azure.resourcemanager.synapse.fluent.models.GeoBackupPolicyInner; import com.azure.resourcemanager.synapse.models.GeoBackupPolicyName; -/** An instance of this class provides access to all the operations defined in SqlPoolGeoBackupPoliciesClient. */ +/** + * An instance of this class provides access to all the operations defined in SqlPoolGeoBackupPoliciesClient. + */ public interface SqlPoolGeoBackupPoliciesClient { /** * List SQL pool geo backup policies - * - *

Get list of SQL pool geo backup policies. - * + * + * Get list of SQL pool geo backup policies. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -32,9 +34,9 @@ public interface SqlPoolGeoBackupPoliciesClient { /** * List SQL pool geo backup policies - * - *

Get list of SQL pool geo backup policies. - * + * + * Get list of SQL pool geo backup policies. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -45,12 +47,12 @@ public interface SqlPoolGeoBackupPoliciesClient { * @return list of SQL pool geo backup policies as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName, + Context context); /** * Updates a SQL Pool geo backup policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -63,17 +65,12 @@ PagedIterable list( * @return a database geo backup policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - GeoBackupPolicyName geoBackupPolicyName, - GeoBackupPolicyInner parameters, - Context context); + Response createOrUpdateWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, GeoBackupPolicyName geoBackupPolicyName, GeoBackupPolicyInner parameters, Context context); /** * Updates a SQL Pool geo backup policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -85,18 +82,14 @@ Response createOrUpdateWithResponse( * @return a database geo backup policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - GeoBackupPolicyInner createOrUpdate( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - GeoBackupPolicyName geoBackupPolicyName, - GeoBackupPolicyInner parameters); + GeoBackupPolicyInner createOrUpdate(String resourceGroupName, String workspaceName, String sqlPoolName, + GeoBackupPolicyName geoBackupPolicyName, GeoBackupPolicyInner parameters); /** * Get a SQL pool geo backup policy - * - *

Get the specified SQL pool geo backup policy. - * + * + * Get the specified SQL pool geo backup policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -108,18 +101,14 @@ GeoBackupPolicyInner createOrUpdate( * @return the specified SQL pool geo backup policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - GeoBackupPolicyName geoBackupPolicyName, - Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + GeoBackupPolicyName geoBackupPolicyName, Context context); /** * Get a SQL pool geo backup policy - * - *

Get the specified SQL pool geo backup policy. - * + * + * Get the specified SQL pool geo backup policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -130,6 +119,6 @@ Response getWithResponse( * @return the specified SQL pool geo backup policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - GeoBackupPolicyInner get( - String resourceGroupName, String workspaceName, String sqlPoolName, GeoBackupPolicyName geoBackupPolicyName); + GeoBackupPolicyInner get(String resourceGroupName, String workspaceName, String sqlPoolName, + GeoBackupPolicyName geoBackupPolicyName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolMaintenanceWindowOptionsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolMaintenanceWindowOptionsClient.java index d132b9ccb63c..cd5cdebb5bde 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolMaintenanceWindowOptionsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolMaintenanceWindowOptionsClient.java @@ -10,13 +10,15 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.synapse.fluent.models.MaintenanceWindowOptionsInner; -/** An instance of this class provides access to all the operations defined in SqlPoolMaintenanceWindowOptionsClient. */ +/** + * An instance of this class provides access to all the operations defined in SqlPoolMaintenanceWindowOptionsClient. + */ public interface SqlPoolMaintenanceWindowOptionsClient { /** * SQL pool's available maintenance windows. - * - *

Get list of SQL pool's available maintenance windows. - * + * + * Get list of SQL pool's available maintenance windows. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -28,18 +30,14 @@ public interface SqlPoolMaintenanceWindowOptionsClient { * @return list of SQL pool's available maintenance windows along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String maintenanceWindowOptionsName, - Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, String maintenanceWindowOptionsName, Context context); /** * SQL pool's available maintenance windows. - * - *

Get list of SQL pool's available maintenance windows. - * + * + * Get list of SQL pool's available maintenance windows. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -50,6 +48,6 @@ Response getWithResponse( * @return list of SQL pool's available maintenance windows. */ @ServiceMethod(returns = ReturnType.SINGLE) - MaintenanceWindowOptionsInner get( - String resourceGroupName, String workspaceName, String sqlPoolName, String maintenanceWindowOptionsName); + MaintenanceWindowOptionsInner get(String resourceGroupName, String workspaceName, String sqlPoolName, + String maintenanceWindowOptionsName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolMaintenanceWindowsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolMaintenanceWindowsClient.java index 4f529fca9e60..197b0c03d406 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolMaintenanceWindowsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolMaintenanceWindowsClient.java @@ -10,11 +10,13 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.synapse.fluent.models.MaintenanceWindowsInner; -/** An instance of this class provides access to all the operations defined in SqlPoolMaintenanceWindowsClient. */ +/** + * An instance of this class provides access to all the operations defined in SqlPoolMaintenanceWindowsClient. + */ public interface SqlPoolMaintenanceWindowsClient { /** * Get a SQL pool's Maintenance Windows. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -26,16 +28,12 @@ public interface SqlPoolMaintenanceWindowsClient { * @return a SQL pool's Maintenance Windows along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String maintenanceWindowName, - Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, String maintenanceWindowName, Context context); /** * Get a SQL pool's Maintenance Windows. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -46,12 +44,12 @@ Response getWithResponse( * @return a SQL pool's Maintenance Windows. */ @ServiceMethod(returns = ReturnType.SINGLE) - MaintenanceWindowsInner get( - String resourceGroupName, String workspaceName, String sqlPoolName, String maintenanceWindowName); + MaintenanceWindowsInner get(String resourceGroupName, String workspaceName, String sqlPoolName, + String maintenanceWindowName); /** * Creates or updates a Sql pool's maintenance windows settings. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -64,17 +62,12 @@ MaintenanceWindowsInner get( * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String maintenanceWindowName, - MaintenanceWindowsInner parameters, - Context context); + Response createOrUpdateWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + String maintenanceWindowName, MaintenanceWindowsInner parameters, Context context); /** * Creates or updates a Sql pool's maintenance windows settings. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -85,10 +78,6 @@ Response createOrUpdateWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void createOrUpdate( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String maintenanceWindowName, - MaintenanceWindowsInner parameters); + void createOrUpdate(String resourceGroupName, String workspaceName, String sqlPoolName, + String maintenanceWindowName, MaintenanceWindowsInner parameters); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolMetadataSyncConfigsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolMetadataSyncConfigsClient.java index 47add27f717f..276acb66af4b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolMetadataSyncConfigsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolMetadataSyncConfigsClient.java @@ -10,36 +10,42 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.synapse.fluent.models.MetadataSyncConfigInner; -/** An instance of this class provides access to all the operations defined in SqlPoolMetadataSyncConfigsClient. */ +/** + * An instance of this class provides access to all the operations defined in SqlPoolMetadataSyncConfigsClient. + */ public interface SqlPoolMetadataSyncConfigsClient { /** * Get SQL pool metadata sync config - * - *

Get the metadata sync configuration for a SQL pool. - * + * + * Get the metadata sync configuration for a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on + * status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the metadata sync configuration for a SQL pool along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context); /** * Get SQL pool metadata sync config - * - *

Get the metadata sync configuration for a SQL pool. - * + * + * Get the metadata sync configuration for a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on + * status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the metadata sync configuration for a SQL pool. */ @@ -48,9 +54,9 @@ Response getWithResponse( /** * Set SQL pool metadata sync config - * - *

Set the metadata sync configuration for a SQL pool. - * + * + * Set the metadata sync configuration for a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -58,35 +64,32 @@ Response getWithResponse( * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on + * status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return metadata sync configuration along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - MetadataSyncConfigInner metadataSyncConfiguration, - Context context); + Response createWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, MetadataSyncConfigInner metadataSyncConfiguration, Context context); /** * Set SQL pool metadata sync config - * - *

Set the metadata sync configuration for a SQL pool. - * + * + * Set the metadata sync configuration for a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param metadataSyncConfiguration Metadata sync configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on + * status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return metadata sync configuration. */ @ServiceMethod(returns = ReturnType.SINGLE) - MetadataSyncConfigInner create( - String resourceGroupName, - String workspaceName, - String sqlPoolName, + MetadataSyncConfigInner create(String resourceGroupName, String workspaceName, String sqlPoolName, MetadataSyncConfigInner metadataSyncConfiguration); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolOperationResultsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolOperationResultsClient.java index b9f0dd1c6dbe..c289a4173740 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolOperationResultsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolOperationResultsClient.java @@ -11,13 +11,15 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.synapse.fluent.models.SqlPoolInner; -/** An instance of this class provides access to all the operations defined in SqlPoolOperationResultsClient. */ +/** + * An instance of this class provides access to all the operations defined in SqlPoolOperationResultsClient. + */ public interface SqlPoolOperationResultsClient { /** * Get SQL pool operation status - * - *

Get the status of a SQL pool operation. - * + * + * Get the status of a SQL pool operation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -28,14 +30,14 @@ public interface SqlPoolOperationResultsClient { * @return the {@link SyncPoller} for polling of the status of a SQL pool operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SqlPoolInner> beginGetLocationHeaderResult( - String resourceGroupName, String workspaceName, String sqlPoolName, String operationId); + SyncPoller, SqlPoolInner> beginGetLocationHeaderResult(String resourceGroupName, + String workspaceName, String sqlPoolName, String operationId); /** * Get SQL pool operation status - * - *

Get the status of a SQL pool operation. - * + * + * Get the status of a SQL pool operation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -47,14 +49,14 @@ SyncPoller, SqlPoolInner> beginGetLocationHeaderResult( * @return the {@link SyncPoller} for polling of the status of a SQL pool operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SqlPoolInner> beginGetLocationHeaderResult( - String resourceGroupName, String workspaceName, String sqlPoolName, String operationId, Context context); + SyncPoller, SqlPoolInner> beginGetLocationHeaderResult(String resourceGroupName, + String workspaceName, String sqlPoolName, String operationId, Context context); /** * Get SQL pool operation status - * - *

Get the status of a SQL pool operation. - * + * + * Get the status of a SQL pool operation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -65,14 +67,14 @@ SyncPoller, SqlPoolInner> beginGetLocationHeaderResult( * @return the status of a SQL pool operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - SqlPoolInner getLocationHeaderResult( - String resourceGroupName, String workspaceName, String sqlPoolName, String operationId); + SqlPoolInner getLocationHeaderResult(String resourceGroupName, String workspaceName, String sqlPoolName, + String operationId); /** * Get SQL pool operation status - * - *

Get the status of a SQL pool operation. - * + * + * Get the status of a SQL pool operation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -84,6 +86,6 @@ SqlPoolInner getLocationHeaderResult( * @return the status of a SQL pool operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - SqlPoolInner getLocationHeaderResult( - String resourceGroupName, String workspaceName, String sqlPoolName, String operationId, Context context); + SqlPoolInner getLocationHeaderResult(String resourceGroupName, String workspaceName, String sqlPoolName, + String operationId, Context context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolOperationsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolOperationsClient.java index 1078161eb320..dae4ed35eb97 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolOperationsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolOperationsClient.java @@ -10,13 +10,15 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.synapse.fluent.models.SqlPoolOperationInner; -/** An instance of this class provides access to all the operations defined in SqlPoolOperationsClient. */ +/** + * An instance of this class provides access to all the operations defined in SqlPoolOperationsClient. + */ public interface SqlPoolOperationsClient { /** * Gets a list of operations performed on the SQL pool - * - *

Gets a list of operations performed on the SQL pool. - * + * + * Gets a list of operations performed on the SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -30,9 +32,9 @@ public interface SqlPoolOperationsClient { /** * Gets a list of operations performed on the SQL pool - * - *

Gets a list of operations performed on the SQL pool. - * + * + * Gets a list of operations performed on the SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -43,6 +45,6 @@ public interface SqlPoolOperationsClient { * @return a list of operations performed on the SQL pool as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName, + Context context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolRecommendedSensitivityLabelsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolRecommendedSensitivityLabelsClient.java index 63e769e1677d..54e2c8088957 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolRecommendedSensitivityLabelsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolRecommendedSensitivityLabelsClient.java @@ -11,12 +11,13 @@ import com.azure.resourcemanager.synapse.models.RecommendedSensitivityLabelUpdateList; /** - * An instance of this class provides access to all the operations defined in SqlPoolRecommendedSensitivityLabelsClient. + * An instance of this class provides access to all the operations defined in + * SqlPoolRecommendedSensitivityLabelsClient. */ public interface SqlPoolRecommendedSensitivityLabelsClient { /** * Update recommended sensitivity labels states of a given SQL Pool using an operations batch. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -28,16 +29,12 @@ public interface SqlPoolRecommendedSensitivityLabelsClient { * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response updateWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - RecommendedSensitivityLabelUpdateList parameters, - Context context); + Response updateWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + RecommendedSensitivityLabelUpdateList parameters, Context context); /** * Update recommended sensitivity labels states of a given SQL Pool using an operations batch. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -47,9 +44,6 @@ Response updateWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void update( - String resourceGroupName, - String workspaceName, - String sqlPoolName, + void update(String resourceGroupName, String workspaceName, String sqlPoolName, RecommendedSensitivityLabelUpdateList parameters); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolReplicationLinksClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolReplicationLinksClient.java index 0b505420fdd7..8f1de744e77e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolReplicationLinksClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolReplicationLinksClient.java @@ -11,30 +11,32 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.synapse.fluent.models.ReplicationLinkInner; -/** An instance of this class provides access to all the operations defined in SqlPoolReplicationLinksClient. */ +/** + * An instance of this class provides access to all the operations defined in SqlPoolReplicationLinksClient. + */ public interface SqlPoolReplicationLinksClient { /** * Get SQL pool replication links - * - *

Lists a Sql pool's replication links. - * + * + * Lists a Sql pool's replication links. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return represents the response to a List Sql pool replication link request as paginated response with {@link - * PagedIterable}. + * @return represents the response to a List Sql pool replication link request as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName); /** * Get SQL pool replication links - * - *

Lists a Sql pool's replication links. - * + * + * Lists a Sql pool's replication links. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -42,18 +44,18 @@ public interface SqlPoolReplicationLinksClient { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return represents the response to a List Sql pool replication link request as paginated response with {@link - * PagedIterable}. + * @return represents the response to a List Sql pool replication link request as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName, + Context context); /** * Get SQL pool replication link by name - * - *

Get SQL pool replication link by name. - * + * + * Get SQL pool replication link by name. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -65,14 +67,14 @@ PagedIterable list( * @return sQL pool replication link by name along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getByNameWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, String linkId, Context context); + Response getByNameWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, String linkId, Context context); /** * Get SQL pool replication link by name - * - *

Get SQL pool replication link by name. - * + * + * Get SQL pool replication link by name. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolRestorePointsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolRestorePointsClient.java index be2b36bd477c..f0786d587fe8 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolRestorePointsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolRestorePointsClient.java @@ -14,13 +14,15 @@ import com.azure.resourcemanager.synapse.fluent.models.RestorePointInner; import com.azure.resourcemanager.synapse.models.CreateSqlPoolRestorePointDefinition; -/** An instance of this class provides access to all the operations defined in SqlPoolRestorePointsClient. */ +/** + * An instance of this class provides access to all the operations defined in SqlPoolRestorePointsClient. + */ public interface SqlPoolRestorePointsClient { /** * Get SQL pool backup - * - *

Get SQL pool backup information. - * + * + * Get SQL pool backup information. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -34,9 +36,9 @@ public interface SqlPoolRestorePointsClient { /** * Get SQL pool backup - * - *

Get SQL pool backup information. - * + * + * Get SQL pool backup information. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -47,12 +49,12 @@ public interface SqlPoolRestorePointsClient { * @return sQL pool backup information as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName, + Context context); /** * Creates a restore point for a data warehouse. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -63,15 +65,12 @@ PagedIterable list( * @return the {@link SyncPoller} for polling of database restore points. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, RestorePointInner> beginCreate( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - CreateSqlPoolRestorePointDefinition parameters); + SyncPoller, RestorePointInner> beginCreate(String resourceGroupName, + String workspaceName, String sqlPoolName, CreateSqlPoolRestorePointDefinition parameters); /** * Creates a restore point for a data warehouse. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -83,16 +82,12 @@ SyncPoller, RestorePointInner> beginCreate( * @return the {@link SyncPoller} for polling of database restore points. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, RestorePointInner> beginCreate( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - CreateSqlPoolRestorePointDefinition parameters, - Context context); + SyncPoller, RestorePointInner> beginCreate(String resourceGroupName, + String workspaceName, String sqlPoolName, CreateSqlPoolRestorePointDefinition parameters, Context context); /** * Creates a restore point for a data warehouse. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -103,15 +98,12 @@ SyncPoller, RestorePointInner> beginCreate( * @return database restore points. */ @ServiceMethod(returns = ReturnType.SINGLE) - RestorePointInner create( - String resourceGroupName, - String workspaceName, - String sqlPoolName, + RestorePointInner create(String resourceGroupName, String workspaceName, String sqlPoolName, CreateSqlPoolRestorePointDefinition parameters); /** * Creates a restore point for a data warehouse. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -123,16 +115,12 @@ RestorePointInner create( * @return database restore points. */ @ServiceMethod(returns = ReturnType.SINGLE) - RestorePointInner create( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - CreateSqlPoolRestorePointDefinition parameters, - Context context); + RestorePointInner create(String resourceGroupName, String workspaceName, String sqlPoolName, + CreateSqlPoolRestorePointDefinition parameters, Context context); /** * Gets a restore point. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -144,12 +132,12 @@ RestorePointInner create( * @return a restore point along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, String restorePointName, Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + String restorePointName, Context context); /** * Gets a restore point. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -164,7 +152,7 @@ Response getWithResponse( /** * Deletes a restore point. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -176,12 +164,12 @@ Response getWithResponse( * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, String restorePointName, Context context); + Response deleteWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + String restorePointName, Context context); /** * Deletes a restore point. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolSchemasClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolSchemasClient.java index ae5dce02803f..ce9d336f4ea7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolSchemasClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolSchemasClient.java @@ -11,13 +11,15 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.synapse.fluent.models.SqlPoolSchemaInner; -/** An instance of this class provides access to all the operations defined in SqlPoolSchemasClient. */ +/** + * An instance of this class provides access to all the operations defined in SqlPoolSchemasClient. + */ public interface SqlPoolSchemasClient { /** * Gets schemas of a given SQL pool - * - *

Gets schemas of a given SQL pool. - * + * + * Gets schemas of a given SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -31,9 +33,9 @@ public interface SqlPoolSchemasClient { /** * Gets schemas of a given SQL pool - * - *

Gets schemas of a given SQL pool. - * + * + * Gets schemas of a given SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -45,12 +47,12 @@ public interface SqlPoolSchemasClient { * @return schemas of a given SQL pool as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName, String filter, Context context); + PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName, + String filter, Context context); /** * Get Sql Pool schema. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -62,12 +64,12 @@ PagedIterable list( * @return sql Pool schema along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + String schemaName, Context context); /** * Get Sql Pool schema. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolSecurityAlertPoliciesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolSecurityAlertPoliciesClient.java index fe847f20b319..d303e6e4dd12 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolSecurityAlertPoliciesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolSecurityAlertPoliciesClient.java @@ -12,13 +12,15 @@ import com.azure.resourcemanager.synapse.fluent.models.SqlPoolSecurityAlertPolicyInner; import com.azure.resourcemanager.synapse.models.SecurityAlertPolicyName; -/** An instance of this class provides access to all the operations defined in SqlPoolSecurityAlertPoliciesClient. */ +/** + * An instance of this class provides access to all the operations defined in SqlPoolSecurityAlertPoliciesClient. + */ public interface SqlPoolSecurityAlertPoliciesClient { /** * List Sql pool's security alert policies - * - *

Get a list of Sql pool's security alert policies. - * + * + * Get a list of Sql pool's security alert policies. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -28,14 +30,14 @@ public interface SqlPoolSecurityAlertPoliciesClient { * @return a list of Sql pool's security alert policies as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName); + PagedIterable list(String resourceGroupName, String workspaceName, + String sqlPoolName); /** * List Sql pool's security alert policies - * - *

Get a list of Sql pool's security alert policies. - * + * + * Get a list of Sql pool's security alert policies. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -46,14 +48,14 @@ PagedIterable list( * @return a list of Sql pool's security alert policies as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + PagedIterable list(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context); /** * Get a Sql pool's security alert policy - * - *

Get a Sql pool's security alert policy. - * + * + * Get a Sql pool's security alert policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -65,18 +67,14 @@ PagedIterable list( * @return a Sql pool's security alert policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - SecurityAlertPolicyName securityAlertPolicyName, - Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, SecurityAlertPolicyName securityAlertPolicyName, Context context); /** * Get a Sql pool's security alert policy - * - *

Get a Sql pool's security alert policy. - * + * + * Get a Sql pool's security alert policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -87,17 +85,14 @@ Response getWithResponse( * @return a Sql pool's security alert policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - SqlPoolSecurityAlertPolicyInner get( - String resourceGroupName, - String workspaceName, - String sqlPoolName, + SqlPoolSecurityAlertPolicyInner get(String resourceGroupName, String workspaceName, String sqlPoolName, SecurityAlertPolicyName securityAlertPolicyName); /** * Create or update a Sql pool's security alert policy - * - *

Create or update a Sql pool's security alert policy. - * + * + * Create or update a Sql pool's security alert policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -110,19 +105,15 @@ SqlPoolSecurityAlertPolicyInner get( * @return a Sql pool security alert policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - SecurityAlertPolicyName securityAlertPolicyName, - SqlPoolSecurityAlertPolicyInner parameters, + Response createOrUpdateWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, SecurityAlertPolicyName securityAlertPolicyName, SqlPoolSecurityAlertPolicyInner parameters, Context context); /** * Create or update a Sql pool's security alert policy - * - *

Create or update a Sql pool's security alert policy. - * + * + * Create or update a Sql pool's security alert policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -134,10 +125,6 @@ Response createOrUpdateWithResponse( * @return a Sql pool security alert policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - SqlPoolSecurityAlertPolicyInner createOrUpdate( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - SecurityAlertPolicyName securityAlertPolicyName, - SqlPoolSecurityAlertPolicyInner parameters); + SqlPoolSecurityAlertPolicyInner createOrUpdate(String resourceGroupName, String workspaceName, String sqlPoolName, + SecurityAlertPolicyName securityAlertPolicyName, SqlPoolSecurityAlertPolicyInner parameters); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolSensitivityLabelsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolSensitivityLabelsClient.java index 2b6c453ab9d4..6a1f1f9121bf 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolSensitivityLabelsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolSensitivityLabelsClient.java @@ -13,13 +13,15 @@ import com.azure.resourcemanager.synapse.models.SensitivityLabelSource; import com.azure.resourcemanager.synapse.models.SensitivityLabelUpdateList; -/** An instance of this class provides access to all the operations defined in SqlPoolSensitivityLabelsClient. */ +/** + * An instance of this class provides access to all the operations defined in SqlPoolSensitivityLabelsClient. + */ public interface SqlPoolSensitivityLabelsClient { /** * Gets SQL pool sensitivity labels - * - *

Gets SQL pool sensitivity labels. - * + * + * Gets SQL pool sensitivity labels. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -29,14 +31,14 @@ public interface SqlPoolSensitivityLabelsClient { * @return sQL pool sensitivity labels as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listCurrent( - String resourceGroupName, String workspaceName, String sqlPoolName); + PagedIterable listCurrent(String resourceGroupName, String workspaceName, + String sqlPoolName); /** * Gets SQL pool sensitivity labels - * - *

Gets SQL pool sensitivity labels. - * + * + * Gets SQL pool sensitivity labels. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -48,12 +50,12 @@ PagedIterable listCurrent( * @return sQL pool sensitivity labels as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listCurrent( - String resourceGroupName, String workspaceName, String sqlPoolName, String filter, Context context); + PagedIterable listCurrent(String resourceGroupName, String workspaceName, String sqlPoolName, + String filter, Context context); /** * Update sensitivity labels of a given SQL Pool using an operations batch. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -65,16 +67,12 @@ PagedIterable listCurrent( * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response updateWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - SensitivityLabelUpdateList parameters, - Context context); + Response updateWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + SensitivityLabelUpdateList parameters, Context context); /** * Update sensitivity labels of a given SQL Pool using an operations batch. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -84,14 +82,14 @@ Response updateWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void update( - String resourceGroupName, String workspaceName, String sqlPoolName, SensitivityLabelUpdateList parameters); + void update(String resourceGroupName, String workspaceName, String sqlPoolName, + SensitivityLabelUpdateList parameters); /** * Gets sensitivity labels of a given SQL pool - * - *

Gets sensitivity labels of a given SQL pool. - * + * + * Gets sensitivity labels of a given SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -101,14 +99,14 @@ void update( * @return sensitivity labels of a given SQL pool as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listRecommended( - String resourceGroupName, String workspaceName, String sqlPoolName); + PagedIterable listRecommended(String resourceGroupName, String workspaceName, + String sqlPoolName); /** * Gets sensitivity labels of a given SQL pool - * - *

Gets sensitivity labels of a given SQL pool. - * + * + * Gets sensitivity labels of a given SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -122,18 +120,12 @@ PagedIterable listRecommended( * @return sensitivity labels of a given SQL pool as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listRecommended( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - Boolean includeDisabledRecommendations, - String skipToken, - String filter, - Context context); + PagedIterable listRecommended(String resourceGroupName, String workspaceName, + String sqlPoolName, Boolean includeDisabledRecommendations, String skipToken, String filter, Context context); /** * Creates or updates the sensitivity label of a given column in a Sql pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -148,19 +140,13 @@ PagedIterable listRecommended( * @return a sensitivity label along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName, - SensitivityLabelInner parameters, + Response createOrUpdateWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, String schemaName, String tableName, String columnName, SensitivityLabelInner parameters, Context context); /** * Creates or updates the sensitivity label of a given column in a Sql pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -174,18 +160,12 @@ Response createOrUpdateWithResponse( * @return a sensitivity label. */ @ServiceMethod(returns = ReturnType.SINGLE) - SensitivityLabelInner createOrUpdate( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName, - SensitivityLabelInner parameters); + SensitivityLabelInner createOrUpdate(String resourceGroupName, String workspaceName, String sqlPoolName, + String schemaName, String tableName, String columnName, SensitivityLabelInner parameters); /** * Deletes the sensitivity label of a given column in a Sql pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -199,18 +179,12 @@ SensitivityLabelInner createOrUpdate( * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName, - Context context); + Response deleteWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + String schemaName, String tableName, String columnName, Context context); /** * Deletes the sensitivity label of a given column in a Sql pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -222,17 +196,12 @@ Response deleteWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, + void delete(String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName, String columnName); /** * Gets the sensitivity label of a given column. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -247,19 +216,13 @@ void delete( * @return the sensitivity label of a given column along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName, - SensitivityLabelSource sensitivityLabelSource, + Response getWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + String schemaName, String tableName, String columnName, SensitivityLabelSource sensitivityLabelSource, Context context); /** * Gets the sensitivity label of a given column. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -273,18 +236,12 @@ Response getWithResponse( * @return the sensitivity label of a given column. */ @ServiceMethod(returns = ReturnType.SINGLE) - SensitivityLabelInner get( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName, - SensitivityLabelSource sensitivityLabelSource); + SensitivityLabelInner get(String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, + String tableName, String columnName, SensitivityLabelSource sensitivityLabelSource); /** * Enables sensitivity recommendations on a given column (recommendations are enabled by default on all columns). - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -298,18 +255,12 @@ SensitivityLabelInner get( * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response enableRecommendationWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName, - Context context); + Response enableRecommendationWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + String schemaName, String tableName, String columnName, Context context); /** * Enables sensitivity recommendations on a given column (recommendations are enabled by default on all columns). - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -321,17 +272,12 @@ Response enableRecommendationWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void enableRecommendation( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName); + void enableRecommendation(String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, + String tableName, String columnName); /** * Disables sensitivity recommendations on a given column. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -345,18 +291,12 @@ void enableRecommendation( * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response disableRecommendationWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName, - Context context); + Response disableRecommendationWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + String schemaName, String tableName, String columnName, Context context); /** * Disables sensitivity recommendations on a given column. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -368,11 +308,6 @@ Response disableRecommendationWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void disableRecommendation( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName); + void disableRecommendation(String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, + String tableName, String columnName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolTableColumnsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolTableColumnsClient.java index 8d76632b85da..4283268eac82 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolTableColumnsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolTableColumnsClient.java @@ -10,13 +10,15 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.synapse.fluent.models.SqlPoolColumnInner; -/** An instance of this class provides access to all the operations defined in SqlPoolTableColumnsClient. */ +/** + * An instance of this class provides access to all the operations defined in SqlPoolTableColumnsClient. + */ public interface SqlPoolTableColumnsClient { /** * Gets columns in a given table in a SQL pool - * - *

Gets columns in a given table in a SQL pool. - * + * + * Gets columns in a given table in a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -28,14 +30,14 @@ public interface SqlPoolTableColumnsClient { * @return columns in a given table in a SQL pool as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByTableName( - String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName); + PagedIterable listByTableName(String resourceGroupName, String workspaceName, + String sqlPoolName, String schemaName, String tableName); /** * Gets columns in a given table in a SQL pool - * - *

Gets columns in a given table in a SQL pool. - * + * + * Gets columns in a given table in a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -49,12 +51,6 @@ PagedIterable listByTableName( * @return columns in a given table in a SQL pool as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByTableName( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String filter, - Context context); + PagedIterable listByTableName(String resourceGroupName, String workspaceName, + String sqlPoolName, String schemaName, String tableName, String filter, Context context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolTablesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolTablesClient.java index ec08fc8055cd..d0dc752e8b7f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolTablesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolTablesClient.java @@ -11,13 +11,15 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.synapse.fluent.models.SqlPoolTableInner; -/** An instance of this class provides access to all the operations defined in SqlPoolTablesClient. */ +/** + * An instance of this class provides access to all the operations defined in SqlPoolTablesClient. + */ public interface SqlPoolTablesClient { /** * Gets tables of a given schema in a SQL pool - * - *

Gets tables of a given schema in a SQL pool. - * + * + * Gets tables of a given schema in a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -28,14 +30,14 @@ public interface SqlPoolTablesClient { * @return tables of a given schema in a SQL pool as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listBySchema( - String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName); + PagedIterable listBySchema(String resourceGroupName, String workspaceName, String sqlPoolName, + String schemaName); /** * Gets tables of a given schema in a SQL pool - * - *

Gets tables of a given schema in a SQL pool. - * + * + * Gets tables of a given schema in a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -48,17 +50,12 @@ PagedIterable listBySchema( * @return tables of a given schema in a SQL pool as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listBySchema( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String filter, - Context context); + PagedIterable listBySchema(String resourceGroupName, String workspaceName, String sqlPoolName, + String schemaName, String filter, Context context); /** * Get Sql pool table. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -71,17 +68,12 @@ PagedIterable listBySchema( * @return sql pool table along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + String schemaName, String tableName, Context context); /** * Get Sql pool table. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -93,6 +85,6 @@ Response getWithResponse( * @return sql pool table. */ @ServiceMethod(returns = ReturnType.SINGLE) - SqlPoolTableInner get( - String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName); + SqlPoolTableInner get(String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, + String tableName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolTransparentDataEncryptionsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolTransparentDataEncryptionsClient.java index 6b24beb1c73e..51f80aca7276 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolTransparentDataEncryptionsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolTransparentDataEncryptionsClient.java @@ -18,9 +18,9 @@ public interface SqlPoolTransparentDataEncryptionsClient { /** * Get a SQL pool's transparent data encryption configuration - * - *

Get a SQL pool's transparent data encryption configuration. - * + * + * Get a SQL pool's transparent data encryption configuration. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -32,18 +32,14 @@ public interface SqlPoolTransparentDataEncryptionsClient { * @return a SQL pool's transparent data encryption configuration along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - TransparentDataEncryptionName transparentDataEncryptionName, - Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, TransparentDataEncryptionName transparentDataEncryptionName, Context context); /** * Get a SQL pool's transparent data encryption configuration - * - *

Get a SQL pool's transparent data encryption configuration. - * + * + * Get a SQL pool's transparent data encryption configuration. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -54,17 +50,14 @@ Response getWithResponse( * @return a SQL pool's transparent data encryption configuration. */ @ServiceMethod(returns = ReturnType.SINGLE) - TransparentDataEncryptionInner get( - String resourceGroupName, - String workspaceName, - String sqlPoolName, + TransparentDataEncryptionInner get(String resourceGroupName, String workspaceName, String sqlPoolName, TransparentDataEncryptionName transparentDataEncryptionName); /** * Creates or updates a Sql pool's transparent data encryption configuration - * - *

Creates or updates a Sql pool's transparent data encryption configuration. - * + * + * Creates or updates a Sql pool's transparent data encryption configuration. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -77,19 +70,15 @@ TransparentDataEncryptionInner get( * @return represents a Sql pool transparent data encryption configuration along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - TransparentDataEncryptionName transparentDataEncryptionName, - TransparentDataEncryptionInner parameters, - Context context); + Response createOrUpdateWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, TransparentDataEncryptionName transparentDataEncryptionName, + TransparentDataEncryptionInner parameters, Context context); /** * Creates or updates a Sql pool's transparent data encryption configuration - * - *

Creates or updates a Sql pool's transparent data encryption configuration. - * + * + * Creates or updates a Sql pool's transparent data encryption configuration. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -101,36 +90,32 @@ Response createOrUpdateWithResponse( * @return represents a Sql pool transparent data encryption configuration. */ @ServiceMethod(returns = ReturnType.SINGLE) - TransparentDataEncryptionInner createOrUpdate( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - TransparentDataEncryptionName transparentDataEncryptionName, - TransparentDataEncryptionInner parameters); + TransparentDataEncryptionInner createOrUpdate(String resourceGroupName, String workspaceName, String sqlPoolName, + TransparentDataEncryptionName transparentDataEncryptionName, TransparentDataEncryptionInner parameters); /** * SQL pool's transparent data encryption configurations - * - *

Get list of SQL pool's transparent data encryption configurations. - * + * + * Get list of SQL pool's transparent data encryption configurations. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of SQL pool's transparent data encryption configurations as paginated response with {@link - * PagedIterable}. + * @return list of SQL pool's transparent data encryption configurations as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName); + PagedIterable list(String resourceGroupName, String workspaceName, + String sqlPoolName); /** * SQL pool's transparent data encryption configurations - * - *

Get list of SQL pool's transparent data encryption configurations. - * + * + * Get list of SQL pool's transparent data encryption configurations. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -138,10 +123,10 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 SQL pool's transparent data encryption configurations as paginated response with {@link - * PagedIterable}. + * @return list of SQL pool's transparent data encryption configurations as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + PagedIterable list(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolUsagesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolUsagesClient.java index 9df85e777f47..98f69b5bcc08 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolUsagesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolUsagesClient.java @@ -10,13 +10,15 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.synapse.fluent.models.SqlPoolUsageInner; -/** An instance of this class provides access to all the operations defined in SqlPoolUsagesClient. */ +/** + * An instance of this class provides access to all the operations defined in SqlPoolUsagesClient. + */ public interface SqlPoolUsagesClient { /** * Gets SQL pool usages - * - *

Gets SQL pool usages. - * + * + * Gets SQL pool usages. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -30,9 +32,9 @@ public interface SqlPoolUsagesClient { /** * Gets SQL pool usages - * - *

Gets SQL pool usages. - * + * + * Gets SQL pool usages. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -43,6 +45,6 @@ public interface SqlPoolUsagesClient { * @return sQL pool usages as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName, + Context context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolVulnerabilityAssessmentRuleBaselinesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolVulnerabilityAssessmentRuleBaselinesClient.java index 5af2cd7e5aaf..03afa978bb88 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolVulnerabilityAssessmentRuleBaselinesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolVulnerabilityAssessmentRuleBaselinesClient.java @@ -19,14 +19,14 @@ public interface SqlPoolVulnerabilityAssessmentRuleBaselinesClient { /** * Creates or updates a Sql pool's vulnerability assessment rule baseline. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param ruleId The vulnerability assessment rule ID. * @param baselineName The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql - * pool level rule and master for workspace level rule). + * pool level rule and master for workspace level rule). * @param parameters The requested rule baseline resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -35,26 +35,21 @@ public interface SqlPoolVulnerabilityAssessmentRuleBaselinesClient { * @return a Sql pool vulnerability assessment rule baseline along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String ruleId, - VulnerabilityAssessmentPolicyBaselineName baselineName, - SqlPoolVulnerabilityAssessmentRuleBaselineInner parameters, - Context context); + Response createOrUpdateWithResponse(String resourceGroupName, + String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, + String ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName, + SqlPoolVulnerabilityAssessmentRuleBaselineInner parameters, Context context); /** * Creates or updates a Sql pool's vulnerability assessment rule baseline. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param ruleId The vulnerability assessment rule ID. * @param baselineName The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql - * pool level rule and master for workspace level rule). + * pool level rule and master for workspace level rule). * @param parameters The requested rule baseline resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -62,25 +57,21 @@ Response createOrUpdateWithResp * @return a Sql pool vulnerability assessment rule baseline. */ @ServiceMethod(returns = ReturnType.SINGLE) - SqlPoolVulnerabilityAssessmentRuleBaselineInner createOrUpdate( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String ruleId, + SqlPoolVulnerabilityAssessmentRuleBaselineInner createOrUpdate(String resourceGroupName, String workspaceName, + String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName, SqlPoolVulnerabilityAssessmentRuleBaselineInner parameters); /** * Removes the database's vulnerability assessment rule baseline. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param ruleId The vulnerability assessment rule ID. * @param baselineName The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql - * pool level rule and master for workspace level rule). + * pool level rule and master for workspace level rule). * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -88,48 +79,39 @@ SqlPoolVulnerabilityAssessmentRuleBaselineInner createOrUpdate( * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String ruleId, - VulnerabilityAssessmentPolicyBaselineName baselineName, - Context context); + Response deleteWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, + VulnerabilityAssessmentPolicyBaselineName baselineName, Context context); /** * Removes the database's vulnerability assessment rule baseline. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param ruleId The vulnerability assessment rule ID. * @param baselineName The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql - * pool level rule and master for workspace level rule). + * pool level rule and master for workspace level rule). * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String ruleId, + void delete(String resourceGroupName, String workspaceName, String sqlPoolName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName); /** * Gets a SqlPool's vulnerability assessment rule baseline. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param ruleId The vulnerability assessment rule ID. * @param baselineName The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql - * pool level rule and master for server level rule). + * pool level rule and master for server level rule). * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -137,36 +119,27 @@ void delete( * @return a SqlPool's vulnerability assessment rule baseline along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String ruleId, - VulnerabilityAssessmentPolicyBaselineName baselineName, - Context context); + Response getWithResponse(String resourceGroupName, + String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, + String ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName, Context context); /** * Gets a SqlPool's vulnerability assessment rule baseline. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param ruleId The vulnerability assessment rule ID. * @param baselineName The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql - * pool level rule and master for server level rule). + * pool level rule and master for server level rule). * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a SqlPool's vulnerability assessment rule baseline. */ @ServiceMethod(returns = ReturnType.SINGLE) - SqlPoolVulnerabilityAssessmentRuleBaselineInner get( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String ruleId, + SqlPoolVulnerabilityAssessmentRuleBaselineInner get(String resourceGroupName, String workspaceName, + String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolVulnerabilityAssessmentScansClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolVulnerabilityAssessmentScansClient.java index 6bf097095520..956eed0d501e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolVulnerabilityAssessmentScansClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolVulnerabilityAssessmentScansClient.java @@ -16,14 +16,15 @@ import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; /** - * An instance of this class provides access to all the operations defined in SqlPoolVulnerabilityAssessmentScansClient. + * An instance of this class provides access to all the operations defined in + * SqlPoolVulnerabilityAssessmentScansClient. */ public interface SqlPoolVulnerabilityAssessmentScansClient { /** * Lists the vulnerability assessment scans of a SQL pool - * - *

Lists the vulnerability assessment scans of a SQL pool. - * + * + * Lists the vulnerability assessment scans of a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -34,17 +35,14 @@ public interface SqlPoolVulnerabilityAssessmentScansClient { * @return a list of vulnerability assessment scan records as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName); + PagedIterable list(String resourceGroupName, String workspaceName, + String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName); /** * Lists the vulnerability assessment scans of a SQL pool - * - *

Lists the vulnerability assessment scans of a SQL pool. - * + * + * Lists the vulnerability assessment scans of a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -56,16 +54,12 @@ PagedIterable list( * @return a list of vulnerability assessment scan records as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - Context context); + PagedIterable list(String resourceGroupName, String workspaceName, + String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, Context context); /** * Executes a Vulnerability Assessment database scan. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -77,16 +71,12 @@ PagedIterable list( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginInitiateScan( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String scanId); + SyncPoller, Void> beginInitiateScan(String resourceGroupName, String workspaceName, + String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String scanId); /** * Executes a Vulnerability Assessment database scan. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -99,17 +89,12 @@ SyncPoller, Void> beginInitiateScan( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginInitiateScan( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String scanId, - Context context); + SyncPoller, Void> beginInitiateScan(String resourceGroupName, String workspaceName, + String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String scanId, Context context); /** * Executes a Vulnerability Assessment database scan. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -120,16 +105,12 @@ SyncPoller, Void> beginInitiateScan( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void initiateScan( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String scanId); + void initiateScan(String resourceGroupName, String workspaceName, String sqlPoolName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, String scanId); /** * Executes a Vulnerability Assessment database scan. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -141,17 +122,12 @@ void initiateScan( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void initiateScan( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String scanId, - Context context); + void initiateScan(String resourceGroupName, String workspaceName, String sqlPoolName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, String scanId, Context context); /** * Convert an existing scan result to a human readable format. If already exists nothing happens. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -164,17 +140,13 @@ void initiateScan( * @return a Sql pool Vulnerability Assessment scan export resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response exportWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String scanId, - Context context); + Response exportWithResponse(String resourceGroupName, + String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, + String scanId, Context context); /** * Convert an existing scan result to a human readable format. If already exists nothing happens. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -186,16 +158,12 @@ Response exportWithResponse( * @return a Sql pool Vulnerability Assessment scan export resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - SqlPoolVulnerabilityAssessmentScansExportInner export( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String scanId); + SqlPoolVulnerabilityAssessmentScansExportInner export(String resourceGroupName, String workspaceName, + String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String scanId); /** * Gets a vulnerability assessment scan record of a Sql pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -208,17 +176,12 @@ SqlPoolVulnerabilityAssessmentScansExportInner export( * @return a vulnerability assessment scan record of a Sql pool along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String scanId, - Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String scanId, Context context); /** * Gets a vulnerability assessment scan record of a Sql pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -230,10 +193,6 @@ Response getWithResponse( * @return a vulnerability assessment scan record of a Sql pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - VulnerabilityAssessmentScanRecordInner get( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String scanId); + VulnerabilityAssessmentScanRecordInner get(String resourceGroupName, String workspaceName, String sqlPoolName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, String scanId); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolVulnerabilityAssessmentsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolVulnerabilityAssessmentsClient.java index 2693c3dd9ad9..77027903cb9e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolVulnerabilityAssessmentsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolVulnerabilityAssessmentsClient.java @@ -12,13 +12,15 @@ import com.azure.resourcemanager.synapse.fluent.models.SqlPoolVulnerabilityAssessmentInner; import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; -/** An instance of this class provides access to all the operations defined in SqlPoolVulnerabilityAssessmentsClient. */ +/** + * An instance of this class provides access to all the operations defined in SqlPoolVulnerabilityAssessmentsClient. + */ public interface SqlPoolVulnerabilityAssessmentsClient { /** * Lists the vulnerability assessment policies associated with a SQL pool - * - *

Lists the vulnerability assessment policies associated with a SQL pool. - * + * + * Lists the vulnerability assessment policies associated with a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -28,14 +30,14 @@ public interface SqlPoolVulnerabilityAssessmentsClient { * @return a list of the Sql pool's vulnerability assessments as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName); + PagedIterable list(String resourceGroupName, String workspaceName, + String sqlPoolName); /** * Lists the vulnerability assessment policies associated with a SQL pool - * - *

Lists the vulnerability assessment policies associated with a SQL pool. - * + * + * Lists the vulnerability assessment policies associated with a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -46,14 +48,14 @@ PagedIterable list( * @return a list of the Sql pool's vulnerability assessments as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + PagedIterable list(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context); /** * Gets the Sql pool's vulnerability assessment - * - *

Gets the Sql pool's vulnerability assessment. - * + * + * Gets the Sql pool's vulnerability assessment. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -65,18 +67,14 @@ PagedIterable list( * @return the Sql pool's vulnerability assessment along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, Context context); /** * Gets the Sql pool's vulnerability assessment - * - *

Gets the Sql pool's vulnerability assessment. - * + * + * Gets the Sql pool's vulnerability assessment. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -87,17 +85,14 @@ Response getWithResponse( * @return the Sql pool's vulnerability assessment. */ @ServiceMethod(returns = ReturnType.SINGLE) - SqlPoolVulnerabilityAssessmentInner get( - String resourceGroupName, - String workspaceName, - String sqlPoolName, + SqlPoolVulnerabilityAssessmentInner get(String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName); /** * Creates or updates the Sql pool vulnerability assessment - * - *

Creates or updates the Sql pool vulnerability assessment. - * + * + * Creates or updates the Sql pool vulnerability assessment. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -110,19 +105,15 @@ SqlPoolVulnerabilityAssessmentInner get( * @return a Sql pool vulnerability assessment along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - SqlPoolVulnerabilityAssessmentInner parameters, - Context context); + Response createOrUpdateWithResponse(String resourceGroupName, + String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, + SqlPoolVulnerabilityAssessmentInner parameters, Context context); /** * Creates or updates the Sql pool vulnerability assessment - * - *

Creates or updates the Sql pool vulnerability assessment. - * + * + * Creates or updates the Sql pool vulnerability assessment. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -134,18 +125,15 @@ Response createOrUpdateWithResponse( * @return a Sql pool vulnerability assessment. */ @ServiceMethod(returns = ReturnType.SINGLE) - SqlPoolVulnerabilityAssessmentInner createOrUpdate( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, + SqlPoolVulnerabilityAssessmentInner createOrUpdate(String resourceGroupName, String workspaceName, + String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, SqlPoolVulnerabilityAssessmentInner parameters); /** * Removes the database's vulnerability assessment - * - *

Removes the database's vulnerability assessment. - * + * + * Removes the database's vulnerability assessment. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -157,18 +145,14 @@ SqlPoolVulnerabilityAssessmentInner createOrUpdate( * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - Context context); + Response deleteWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, Context context); /** * Removes the database's vulnerability assessment - * - *

Removes the database's vulnerability assessment. - * + * + * Removes the database's vulnerability assessment. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -178,9 +162,6 @@ Response deleteWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete( - String resourceGroupName, - String workspaceName, - String sqlPoolName, + void delete(String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolWorkloadClassifiersClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolWorkloadClassifiersClient.java index 705ee8d0d248..71772ee7138c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolWorkloadClassifiersClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolWorkloadClassifiersClient.java @@ -13,13 +13,15 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.synapse.fluent.models.WorkloadClassifierInner; -/** An instance of this class provides access to all the operations defined in SqlPoolWorkloadClassifiersClient. */ +/** + * An instance of this class provides access to all the operations defined in SqlPoolWorkloadClassifiersClient. + */ public interface SqlPoolWorkloadClassifiersClient { /** * Get workload classifier - * - *

Get a workload classifier of Sql pool's workload group. - * + * + * Get a workload classifier of Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -32,19 +34,14 @@ public interface SqlPoolWorkloadClassifiersClient { * @return a workload classifier of Sql pool's workload group along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, - String workloadClassifierName, - Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, String workloadGroupName, String workloadClassifierName, Context context); /** * Get workload classifier - * - *

Get a workload classifier of Sql pool's workload group. - * + * + * Get a workload classifier of Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -56,18 +53,14 @@ Response getWithResponse( * @return a workload classifier of Sql pool's workload group. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadClassifierInner get( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, - String workloadClassifierName); + WorkloadClassifierInner get(String resourceGroupName, String workspaceName, String sqlPoolName, + String workloadGroupName, String workloadClassifierName); /** * Create Or Update workload classifier - * - *

Create Or Update workload classifier for a Sql pool's workload group. - * + * + * Create Or Update workload classifier for a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -81,18 +74,14 @@ WorkloadClassifierInner get( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, WorkloadClassifierInner> beginCreateOrUpdate( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, - String workloadClassifierName, - WorkloadClassifierInner parameters); + String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, + String workloadClassifierName, WorkloadClassifierInner parameters); /** * Create Or Update workload classifier - * - *

Create Or Update workload classifier for a Sql pool's workload group. - * + * + * Create Or Update workload classifier for a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -107,19 +96,14 @@ SyncPoller, WorkloadClassifierInner> beginCr */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, WorkloadClassifierInner> beginCreateOrUpdate( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, - String workloadClassifierName, - WorkloadClassifierInner parameters, - Context context); + String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, + String workloadClassifierName, WorkloadClassifierInner parameters, Context context); /** * Create Or Update workload classifier - * - *

Create Or Update workload classifier for a Sql pool's workload group. - * + * + * Create Or Update workload classifier for a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -132,19 +116,14 @@ SyncPoller, WorkloadClassifierInner> beginCr * @return workload classifier operations for a data warehouse. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadClassifierInner createOrUpdate( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, - String workloadClassifierName, - WorkloadClassifierInner parameters); + WorkloadClassifierInner createOrUpdate(String resourceGroupName, String workspaceName, String sqlPoolName, + String workloadGroupName, String workloadClassifierName, WorkloadClassifierInner parameters); /** * Create Or Update workload classifier - * - *

Create Or Update workload classifier for a Sql pool's workload group. - * + * + * Create Or Update workload classifier for a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -158,20 +137,14 @@ WorkloadClassifierInner createOrUpdate( * @return workload classifier operations for a data warehouse. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadClassifierInner createOrUpdate( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, - String workloadClassifierName, - WorkloadClassifierInner parameters, - Context context); + WorkloadClassifierInner createOrUpdate(String resourceGroupName, String workspaceName, String sqlPoolName, + String workloadGroupName, String workloadClassifierName, WorkloadClassifierInner parameters, Context context); /** * Remove workload classifier - * - *

Remove workload classifier of a Sql pool's workload group. - * + * + * Remove workload classifier of a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -183,18 +156,14 @@ WorkloadClassifierInner createOrUpdate( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, - String workloadClassifierName); + SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, String sqlPoolName, + String workloadGroupName, String workloadClassifierName); /** * Remove workload classifier - * - *

Remove workload classifier of a Sql pool's workload group. - * + * + * Remove workload classifier of a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -207,19 +176,14 @@ SyncPoller, Void> beginDelete( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, - String workloadClassifierName, - Context context); + SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, String sqlPoolName, + String workloadGroupName, String workloadClassifierName, Context context); /** * Remove workload classifier - * - *

Remove workload classifier of a Sql pool's workload group. - * + * + * Remove workload classifier of a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -230,18 +194,14 @@ SyncPoller, Void> beginDelete( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, + void delete(String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, String workloadClassifierName); /** * Remove workload classifier - * - *

Remove workload classifier of a Sql pool's workload group. - * + * + * Remove workload classifier of a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -253,19 +213,14 @@ void delete( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, - String workloadClassifierName, - Context context); + void delete(String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, + String workloadClassifierName, Context context); /** * Sql pool's workload classifier - * - *

Get list of Sql pool's workload classifier for workload groups. - * + * + * Get list of Sql pool's workload classifier for workload groups. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -273,18 +228,18 @@ void delete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Sql pool's workload classifier for workload groups as paginated response with {@link - * PagedIterable}. + * @return list of Sql pool's workload classifier for workload groups as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName); + PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName, + String workloadGroupName); /** * Sql pool's workload classifier - * - *

Get list of Sql pool's workload classifier for workload groups. - * + * + * Get list of Sql pool's workload classifier for workload groups. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -293,10 +248,10 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 Sql pool's workload classifier for workload groups as paginated response with {@link - * PagedIterable}. + * @return list of Sql pool's workload classifier for workload groups as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, Context context); + PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName, + String workloadGroupName, Context context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolWorkloadGroupsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolWorkloadGroupsClient.java index 99ac647abe7d..c4c4d57e1e02 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolWorkloadGroupsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolWorkloadGroupsClient.java @@ -13,13 +13,15 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.synapse.fluent.models.WorkloadGroupInner; -/** An instance of this class provides access to all the operations defined in SqlPoolWorkloadGroupsClient. */ +/** + * An instance of this class provides access to all the operations defined in SqlPoolWorkloadGroupsClient. + */ public interface SqlPoolWorkloadGroupsClient { /** * Sql pool's workload group - * - *

Get a Sql pool's workload group. - * + * + * Get a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -31,14 +33,14 @@ public interface SqlPoolWorkloadGroupsClient { * @return a Sql pool's workload group along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + String workloadGroupName, Context context); /** * Sql pool's workload group - * - *

Get a Sql pool's workload group. - * + * + * Get a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -49,14 +51,14 @@ Response getWithResponse( * @return a Sql pool's workload group. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadGroupInner get( - String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName); + WorkloadGroupInner get(String resourceGroupName, String workspaceName, String sqlPoolName, + String workloadGroupName); /** * Create Or Update workload group - * - *

Create Or Update a Sql pool's workload group. - * + * + * Create Or Update a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -68,18 +70,14 @@ WorkloadGroupInner get( * @return the {@link SyncPoller} for polling of workload group operations for a sql pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, WorkloadGroupInner> beginCreateOrUpdate( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, - WorkloadGroupInner parameters); + SyncPoller, WorkloadGroupInner> beginCreateOrUpdate(String resourceGroupName, + String workspaceName, String sqlPoolName, String workloadGroupName, WorkloadGroupInner parameters); /** * Create Or Update workload group - * - *

Create Or Update a Sql pool's workload group. - * + * + * Create Or Update a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -92,19 +90,15 @@ SyncPoller, WorkloadGroupInner> beginCreateOrUpda * @return the {@link SyncPoller} for polling of workload group operations for a sql pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, WorkloadGroupInner> beginCreateOrUpdate( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, - WorkloadGroupInner parameters, + SyncPoller, WorkloadGroupInner> beginCreateOrUpdate(String resourceGroupName, + String workspaceName, String sqlPoolName, String workloadGroupName, WorkloadGroupInner parameters, Context context); /** * Create Or Update workload group - * - *

Create Or Update a Sql pool's workload group. - * + * + * Create Or Update a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -116,18 +110,14 @@ SyncPoller, WorkloadGroupInner> beginCreateOrUpda * @return workload group operations for a sql pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadGroupInner createOrUpdate( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, - WorkloadGroupInner parameters); + WorkloadGroupInner createOrUpdate(String resourceGroupName, String workspaceName, String sqlPoolName, + String workloadGroupName, WorkloadGroupInner parameters); /** * Create Or Update workload group - * - *

Create Or Update a Sql pool's workload group. - * + * + * Create Or Update a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -140,19 +130,14 @@ WorkloadGroupInner createOrUpdate( * @return workload group operations for a sql pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkloadGroupInner createOrUpdate( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, - WorkloadGroupInner parameters, - Context context); + WorkloadGroupInner createOrUpdate(String resourceGroupName, String workspaceName, String sqlPoolName, + String workloadGroupName, WorkloadGroupInner parameters, Context context); /** * Remove workload group - * - *

Remove Sql pool's workload group. - * + * + * Remove Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -163,14 +148,14 @@ WorkloadGroupInner createOrUpdate( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete( - String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName); + SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, String sqlPoolName, + String workloadGroupName); /** * Remove workload group - * - *

Remove Sql pool's workload group. - * + * + * Remove Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -182,14 +167,14 @@ SyncPoller, Void> beginDelete( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete( - String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, Context context); + SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, String sqlPoolName, + String workloadGroupName, Context context); /** * Remove workload group - * - *

Remove Sql pool's workload group. - * + * + * Remove Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -203,9 +188,9 @@ SyncPoller, Void> beginDelete( /** * Remove workload group - * - *

Remove Sql pool's workload group. - * + * + * Remove Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -216,14 +201,14 @@ SyncPoller, Void> beginDelete( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete( - String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, Context context); + void delete(String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, + Context context); /** * Sql pool's workload groups - * - *

Get list of Sql pool's workload groups. - * + * + * Get list of Sql pool's workload groups. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -237,9 +222,9 @@ void delete( /** * Sql pool's workload groups - * - *

Get list of Sql pool's workload groups. - * + * + * Get list of Sql pool's workload groups. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -250,6 +235,6 @@ void delete( * @return list of Sql pool's workload groups as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName, + Context context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolsClient.java index b77ac83ebe62..e6325236ca2c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SqlPoolsClient.java @@ -12,16 +12,17 @@ import com.azure.core.util.Context; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.synapse.fluent.models.SqlPoolInner; -import com.azure.resourcemanager.synapse.models.ResourceMoveDefinition; import com.azure.resourcemanager.synapse.models.SqlPoolPatchInfo; -/** An instance of this class provides access to all the operations defined in SqlPoolsClient. */ +/** + * An instance of this class provides access to all the operations defined in SqlPoolsClient. + */ public interface SqlPoolsClient { /** * Get SQL pool - * - *

Get SQL pool properties. - * + * + * Get SQL pool properties. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -32,14 +33,14 @@ public interface SqlPoolsClient { * @return sQL pool properties along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + Context context); /** * Get SQL pool - * - *

Get SQL pool properties. - * + * + * Get SQL pool properties. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -53,9 +54,9 @@ Response getWithResponse( /** * Update SQL pool - * - *

Apply a partial update to a SQL pool. - * + * + * Apply a partial update to a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -66,14 +67,14 @@ Response getWithResponse( * @return the {@link SyncPoller} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SqlPoolInner> beginUpdate( - String resourceGroupName, String workspaceName, String sqlPoolName, SqlPoolPatchInfo sqlPoolInfo); + SyncPoller, SqlPoolInner> beginUpdate(String resourceGroupName, String workspaceName, + String sqlPoolName, SqlPoolPatchInfo sqlPoolInfo); /** * Update SQL pool - * - *

Apply a partial update to a SQL pool. - * + * + * Apply a partial update to a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -85,18 +86,14 @@ SyncPoller, SqlPoolInner> beginUpdate( * @return the {@link SyncPoller} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SqlPoolInner> beginUpdate( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - SqlPoolPatchInfo sqlPoolInfo, - Context context); + SyncPoller, SqlPoolInner> beginUpdate(String resourceGroupName, String workspaceName, + String sqlPoolName, SqlPoolPatchInfo sqlPoolInfo, Context context); /** * Update SQL pool - * - *

Apply a partial update to a SQL pool. - * + * + * Apply a partial update to a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -107,14 +104,14 @@ SyncPoller, SqlPoolInner> beginUpdate( * @return sQL pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - SqlPoolInner update( - String resourceGroupName, String workspaceName, String sqlPoolName, SqlPoolPatchInfo sqlPoolInfo); + SqlPoolInner update(String resourceGroupName, String workspaceName, String sqlPoolName, + SqlPoolPatchInfo sqlPoolInfo); /** * Update SQL pool - * - *

Apply a partial update to a SQL pool. - * + * + * Apply a partial update to a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -126,36 +123,34 @@ SqlPoolInner update( * @return sQL pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - SqlPoolInner update( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - SqlPoolPatchInfo sqlPoolInfo, - Context context); + SqlPoolInner update(String resourceGroupName, String workspaceName, String sqlPoolName, + SqlPoolPatchInfo sqlPoolInfo, Context context); /** * Create SQL pool - * - *

Create a SQL pool. - * + * + * Create a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param sqlPoolInfo The SQL pool to create. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on + * status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SqlPoolInner> beginCreate( - String resourceGroupName, String workspaceName, String sqlPoolName, SqlPoolInner sqlPoolInfo); + SyncPoller, SqlPoolInner> beginCreate(String resourceGroupName, String workspaceName, + String sqlPoolName, SqlPoolInner sqlPoolInfo); /** * Create SQL pool - * - *

Create a SQL pool. - * + * + * Create a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -163,24 +158,28 @@ SyncPoller, SqlPoolInner> beginCreate( * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on + * status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SqlPoolInner> beginCreate( - String resourceGroupName, String workspaceName, String sqlPoolName, SqlPoolInner sqlPoolInfo, Context context); + SyncPoller, SqlPoolInner> beginCreate(String resourceGroupName, String workspaceName, + String sqlPoolName, SqlPoolInner sqlPoolInfo, Context context); /** * Create SQL pool - * - *

Create a SQL pool. - * + * + * Create a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param sqlPoolInfo The SQL pool to create. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on + * status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return sQL pool. */ @@ -189,9 +188,9 @@ SyncPoller, SqlPoolInner> beginCreate( /** * Create SQL pool - * - *

Create a SQL pool. - * + * + * Create a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -199,18 +198,20 @@ SyncPoller, SqlPoolInner> beginCreate( * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on + * status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return sQL pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - SqlPoolInner create( - String resourceGroupName, String workspaceName, String sqlPoolName, SqlPoolInner sqlPoolInfo, Context context); + SqlPoolInner create(String resourceGroupName, String workspaceName, String sqlPoolName, SqlPoolInner sqlPoolInfo, + Context context); /** * Delete SQL pool - * - *

Delete a SQL pool. - * + * + * Delete a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -220,14 +221,14 @@ SqlPoolInner create( * @return the {@link SyncPoller} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SqlPoolInner> beginDelete( - String resourceGroupName, String workspaceName, String sqlPoolName); + SyncPoller, SqlPoolInner> beginDelete(String resourceGroupName, String workspaceName, + String sqlPoolName); /** * Delete SQL pool - * - *

Delete a SQL pool. - * + * + * Delete a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -238,14 +239,14 @@ SyncPoller, SqlPoolInner> beginDelete( * @return the {@link SyncPoller} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SqlPoolInner> beginDelete( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + SyncPoller, SqlPoolInner> beginDelete(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context); /** * Delete SQL pool - * - *

Delete a SQL pool. - * + * + * Delete a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -259,9 +260,9 @@ SyncPoller, SqlPoolInner> beginDelete( /** * Delete SQL pool - * - *

Delete a SQL pool. - * + * + * Delete a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -276,9 +277,9 @@ SyncPoller, SqlPoolInner> beginDelete( /** * List SQL pools - * - *

List all SQL pools. - * + * + * List all SQL pools. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -291,9 +292,9 @@ SyncPoller, SqlPoolInner> beginDelete( /** * List SQL pools - * - *

List all SQL pools. - * + * + * List all SQL pools. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -307,9 +308,9 @@ SyncPoller, SqlPoolInner> beginDelete( /** * Pause SQL pool - * - *

Pause a SQL pool. - * + * + * Pause a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -319,14 +320,14 @@ SyncPoller, SqlPoolInner> beginDelete( * @return the {@link SyncPoller} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SqlPoolInner> beginPause( - String resourceGroupName, String workspaceName, String sqlPoolName); + SyncPoller, SqlPoolInner> beginPause(String resourceGroupName, String workspaceName, + String sqlPoolName); /** * Pause SQL pool - * - *

Pause a SQL pool. - * + * + * Pause a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -337,14 +338,14 @@ SyncPoller, SqlPoolInner> beginPause( * @return the {@link SyncPoller} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SqlPoolInner> beginPause( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + SyncPoller, SqlPoolInner> beginPause(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context); /** * Pause SQL pool - * - *

Pause a SQL pool. - * + * + * Pause a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -358,9 +359,9 @@ SyncPoller, SqlPoolInner> beginPause( /** * Pause SQL pool - * - *

Pause a SQL pool. - * + * + * Pause a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -375,9 +376,9 @@ SyncPoller, SqlPoolInner> beginPause( /** * Resume SQL pool - * - *

Resume a SQL pool. - * + * + * Resume a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -387,14 +388,14 @@ SyncPoller, SqlPoolInner> beginPause( * @return the {@link SyncPoller} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SqlPoolInner> beginResume( - String resourceGroupName, String workspaceName, String sqlPoolName); + SyncPoller, SqlPoolInner> beginResume(String resourceGroupName, String workspaceName, + String sqlPoolName); /** * Resume SQL pool - * - *

Resume a SQL pool. - * + * + * Resume a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -405,14 +406,14 @@ SyncPoller, SqlPoolInner> beginResume( * @return the {@link SyncPoller} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, SqlPoolInner> beginResume( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + SyncPoller, SqlPoolInner> beginResume(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context); /** * Resume SQL pool - * - *

Resume a SQL pool. - * + * + * Resume a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -426,9 +427,9 @@ SyncPoller, SqlPoolInner> beginResume( /** * Resume SQL pool - * - *

Resume a SQL pool. - * + * + * Resume a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -440,43 +441,4 @@ SyncPoller, SqlPoolInner> beginResume( */ @ServiceMethod(returns = ReturnType.SINGLE) SqlPoolInner resume(String resourceGroupName, String workspaceName, String sqlPoolName, Context context); - - /** - * Rename a SQL pool - * - *

Rename a SQL pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param sqlPoolName SQL pool name. - * @param parameters The resource move definition for renaming this Sql pool. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown 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 renameWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - ResourceMoveDefinition parameters, - Context context); - - /** - * Rename a SQL pool - * - *

Rename a SQL pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param sqlPoolName SQL pool name. - * @param parameters The resource move definition for renaming this Sql pool. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.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 rename(String resourceGroupName, String workspaceName, String sqlPoolName, ResourceMoveDefinition parameters); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SynapseManagementClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SynapseManagementClient.java index 63eb0177dc3c..0418a9da8747 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SynapseManagementClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SynapseManagementClient.java @@ -7,312 +7,314 @@ import com.azure.core.http.HttpPipeline; import java.time.Duration; -/** The interface for SynapseManagementClient class. */ +/** + * The interface for SynapseManagementClient class. + */ public interface SynapseManagementClient { /** * Gets The ID of the target subscription. - * + * * @return the subscriptionId value. */ String getSubscriptionId(); /** * Gets server parameter. - * + * * @return the endpoint value. */ String getEndpoint(); /** * Gets The HTTP pipeline to send requests through. - * + * * @return the httpPipeline value. */ HttpPipeline getHttpPipeline(); /** * Gets The default poll interval for long-running operation. - * + * * @return the defaultPollInterval value. */ Duration getDefaultPollInterval(); /** * Gets the AzureADOnlyAuthenticationsClient object to access its operations. - * + * * @return the AzureADOnlyAuthenticationsClient object. */ AzureADOnlyAuthenticationsClient getAzureADOnlyAuthentications(); /** * Gets the OperationsClient object to access its operations. - * + * * @return the OperationsClient object. */ OperationsClient getOperations(); /** * Gets the IpFirewallRulesClient object to access its operations. - * + * * @return the IpFirewallRulesClient object. */ IpFirewallRulesClient getIpFirewallRules(); /** * Gets the KeysClient object to access its operations. - * + * * @return the KeysClient object. */ KeysClient getKeys(); /** * Gets the PrivateEndpointConnectionsClient object to access its operations. - * + * * @return the PrivateEndpointConnectionsClient object. */ PrivateEndpointConnectionsClient getPrivateEndpointConnections(); /** * Gets the PrivateLinkResourcesOperationsClient object to access its operations. - * + * * @return the PrivateLinkResourcesOperationsClient object. */ PrivateLinkResourcesOperationsClient getPrivateLinkResourcesOperations(); /** * Gets the PrivateLinkHubPrivateLinkResourcesClient object to access its operations. - * + * * @return the PrivateLinkHubPrivateLinkResourcesClient object. */ PrivateLinkHubPrivateLinkResourcesClient getPrivateLinkHubPrivateLinkResources(); /** * Gets the PrivateLinkHubsClient object to access its operations. - * + * * @return the PrivateLinkHubsClient object. */ PrivateLinkHubsClient getPrivateLinkHubs(); /** * Gets the PrivateEndpointConnectionsPrivateLinkHubsClient object to access its operations. - * + * * @return the PrivateEndpointConnectionsPrivateLinkHubsClient object. */ PrivateEndpointConnectionsPrivateLinkHubsClient getPrivateEndpointConnectionsPrivateLinkHubs(); /** * Gets the SqlPoolsClient object to access its operations. - * + * * @return the SqlPoolsClient object. */ SqlPoolsClient getSqlPools(); /** * Gets the SqlPoolMetadataSyncConfigsClient object to access its operations. - * + * * @return the SqlPoolMetadataSyncConfigsClient object. */ SqlPoolMetadataSyncConfigsClient getSqlPoolMetadataSyncConfigs(); /** * Gets the SqlPoolOperationResultsClient object to access its operations. - * + * * @return the SqlPoolOperationResultsClient object. */ SqlPoolOperationResultsClient getSqlPoolOperationResults(); /** * Gets the SqlPoolGeoBackupPoliciesClient object to access its operations. - * + * * @return the SqlPoolGeoBackupPoliciesClient object. */ SqlPoolGeoBackupPoliciesClient getSqlPoolGeoBackupPolicies(); /** * Gets the SqlPoolDataWarehouseUserActivitiesClient object to access its operations. - * + * * @return the SqlPoolDataWarehouseUserActivitiesClient object. */ SqlPoolDataWarehouseUserActivitiesClient getSqlPoolDataWarehouseUserActivities(); /** * Gets the SqlPoolRestorePointsClient object to access its operations. - * + * * @return the SqlPoolRestorePointsClient object. */ SqlPoolRestorePointsClient getSqlPoolRestorePoints(); /** * Gets the SqlPoolReplicationLinksClient object to access its operations. - * + * * @return the SqlPoolReplicationLinksClient object. */ SqlPoolReplicationLinksClient getSqlPoolReplicationLinks(); /** * Gets the SqlPoolMaintenanceWindowsClient object to access its operations. - * + * * @return the SqlPoolMaintenanceWindowsClient object. */ SqlPoolMaintenanceWindowsClient getSqlPoolMaintenanceWindows(); /** * Gets the SqlPoolMaintenanceWindowOptionsClient object to access its operations. - * + * * @return the SqlPoolMaintenanceWindowOptionsClient object. */ SqlPoolMaintenanceWindowOptionsClient getSqlPoolMaintenanceWindowOptions(); /** * Gets the SqlPoolTransparentDataEncryptionsClient object to access its operations. - * + * * @return the SqlPoolTransparentDataEncryptionsClient object. */ SqlPoolTransparentDataEncryptionsClient getSqlPoolTransparentDataEncryptions(); /** * Gets the SqlPoolBlobAuditingPoliciesClient object to access its operations. - * + * * @return the SqlPoolBlobAuditingPoliciesClient object. */ SqlPoolBlobAuditingPoliciesClient getSqlPoolBlobAuditingPolicies(); /** * Gets the SqlPoolOperationsClient object to access its operations. - * + * * @return the SqlPoolOperationsClient object. */ SqlPoolOperationsClient getSqlPoolOperations(); /** * Gets the SqlPoolUsagesClient object to access its operations. - * + * * @return the SqlPoolUsagesClient object. */ SqlPoolUsagesClient getSqlPoolUsages(); /** * Gets the SqlPoolSensitivityLabelsClient object to access its operations. - * + * * @return the SqlPoolSensitivityLabelsClient object. */ SqlPoolSensitivityLabelsClient getSqlPoolSensitivityLabels(); /** * Gets the SqlPoolRecommendedSensitivityLabelsClient object to access its operations. - * + * * @return the SqlPoolRecommendedSensitivityLabelsClient object. */ SqlPoolRecommendedSensitivityLabelsClient getSqlPoolRecommendedSensitivityLabels(); /** * Gets the SqlPoolSchemasClient object to access its operations. - * + * * @return the SqlPoolSchemasClient object. */ SqlPoolSchemasClient getSqlPoolSchemas(); /** * Gets the SqlPoolTablesClient object to access its operations. - * + * * @return the SqlPoolTablesClient object. */ SqlPoolTablesClient getSqlPoolTables(); /** * Gets the SqlPoolTableColumnsClient object to access its operations. - * + * * @return the SqlPoolTableColumnsClient object. */ SqlPoolTableColumnsClient getSqlPoolTableColumns(); /** * Gets the SqlPoolConnectionPoliciesClient object to access its operations. - * + * * @return the SqlPoolConnectionPoliciesClient object. */ SqlPoolConnectionPoliciesClient getSqlPoolConnectionPolicies(); /** * Gets the SqlPoolVulnerabilityAssessmentsClient object to access its operations. - * + * * @return the SqlPoolVulnerabilityAssessmentsClient object. */ SqlPoolVulnerabilityAssessmentsClient getSqlPoolVulnerabilityAssessments(); /** * Gets the SqlPoolVulnerabilityAssessmentScansClient object to access its operations. - * + * * @return the SqlPoolVulnerabilityAssessmentScansClient object. */ SqlPoolVulnerabilityAssessmentScansClient getSqlPoolVulnerabilityAssessmentScans(); /** * Gets the SqlPoolSecurityAlertPoliciesClient object to access its operations. - * + * * @return the SqlPoolSecurityAlertPoliciesClient object. */ SqlPoolSecurityAlertPoliciesClient getSqlPoolSecurityAlertPolicies(); /** * Gets the SqlPoolVulnerabilityAssessmentRuleBaselinesClient object to access its operations. - * + * * @return the SqlPoolVulnerabilityAssessmentRuleBaselinesClient object. */ SqlPoolVulnerabilityAssessmentRuleBaselinesClient getSqlPoolVulnerabilityAssessmentRuleBaselines(); /** * Gets the ExtendedSqlPoolBlobAuditingPoliciesClient object to access its operations. - * + * * @return the ExtendedSqlPoolBlobAuditingPoliciesClient object. */ ExtendedSqlPoolBlobAuditingPoliciesClient getExtendedSqlPoolBlobAuditingPolicies(); /** * Gets the DataMaskingPoliciesClient object to access its operations. - * + * * @return the DataMaskingPoliciesClient object. */ DataMaskingPoliciesClient getDataMaskingPolicies(); /** * Gets the DataMaskingRulesClient object to access its operations. - * + * * @return the DataMaskingRulesClient object. */ DataMaskingRulesClient getDataMaskingRules(); /** * Gets the SqlPoolColumnsClient object to access its operations. - * + * * @return the SqlPoolColumnsClient object. */ SqlPoolColumnsClient getSqlPoolColumns(); /** * Gets the SqlPoolWorkloadGroupsClient object to access its operations. - * + * * @return the SqlPoolWorkloadGroupsClient object. */ SqlPoolWorkloadGroupsClient getSqlPoolWorkloadGroups(); /** * Gets the SqlPoolWorkloadClassifiersClient object to access its operations. - * + * * @return the SqlPoolWorkloadClassifiersClient object. */ SqlPoolWorkloadClassifiersClient getSqlPoolWorkloadClassifiers(); /** * Gets the WorkspaceManagedSqlServerBlobAuditingPoliciesClient object to access its operations. - * + * * @return the WorkspaceManagedSqlServerBlobAuditingPoliciesClient object. */ WorkspaceManagedSqlServerBlobAuditingPoliciesClient getWorkspaceManagedSqlServerBlobAuditingPolicies(); /** * Gets the WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClient object to access its operations. - * + * * @return the WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClient object. */ WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClient @@ -320,42 +322,42 @@ public interface SynapseManagementClient { /** * Gets the WorkspaceManagedSqlServerSecurityAlertPoliciesClient object to access its operations. - * + * * @return the WorkspaceManagedSqlServerSecurityAlertPoliciesClient object. */ WorkspaceManagedSqlServerSecurityAlertPoliciesClient getWorkspaceManagedSqlServerSecurityAlertPolicies(); /** * Gets the WorkspaceManagedSqlServerVulnerabilityAssessmentsClient object to access its operations. - * + * * @return the WorkspaceManagedSqlServerVulnerabilityAssessmentsClient object. */ WorkspaceManagedSqlServerVulnerabilityAssessmentsClient getWorkspaceManagedSqlServerVulnerabilityAssessments(); /** * Gets the WorkspaceManagedSqlServerEncryptionProtectorsClient object to access its operations. - * + * * @return the WorkspaceManagedSqlServerEncryptionProtectorsClient object. */ WorkspaceManagedSqlServerEncryptionProtectorsClient getWorkspaceManagedSqlServerEncryptionProtectors(); /** * Gets the WorkspaceManagedSqlServerUsagesClient object to access its operations. - * + * * @return the WorkspaceManagedSqlServerUsagesClient object. */ WorkspaceManagedSqlServerUsagesClient getWorkspaceManagedSqlServerUsages(); /** * Gets the WorkspaceManagedSqlServerRecoverableSqlPoolsClient object to access its operations. - * + * * @return the WorkspaceManagedSqlServerRecoverableSqlPoolsClient object. */ WorkspaceManagedSqlServerRecoverableSqlPoolsClient getWorkspaceManagedSqlServerRecoverableSqlPools(); /** * Gets the WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient object to access its operations. - * + * * @return the WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient object. */ WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient @@ -363,203 +365,203 @@ public interface SynapseManagementClient { /** * Gets the WorkspacesClient object to access its operations. - * + * * @return the WorkspacesClient object. */ WorkspacesClient getWorkspaces(); /** * Gets the WorkspaceAadAdminsClient object to access its operations. - * + * * @return the WorkspaceAadAdminsClient object. */ WorkspaceAadAdminsClient getWorkspaceAadAdmins(); /** * Gets the WorkspaceSqlAadAdminsClient object to access its operations. - * + * * @return the WorkspaceSqlAadAdminsClient object. */ WorkspaceSqlAadAdminsClient getWorkspaceSqlAadAdmins(); /** * Gets the WorkspaceManagedIdentitySqlControlSettingsClient object to access its operations. - * + * * @return the WorkspaceManagedIdentitySqlControlSettingsClient object. */ WorkspaceManagedIdentitySqlControlSettingsClient getWorkspaceManagedIdentitySqlControlSettings(); /** * Gets the RestorableDroppedSqlPoolsClient object to access its operations. - * + * * @return the RestorableDroppedSqlPoolsClient object. */ RestorableDroppedSqlPoolsClient getRestorableDroppedSqlPools(); /** * Gets the BigDataPoolsClient object to access its operations. - * + * * @return the BigDataPoolsClient object. */ BigDataPoolsClient getBigDataPools(); /** * Gets the LibrariesClient object to access its operations. - * + * * @return the LibrariesClient object. */ LibrariesClient getLibraries(); /** * Gets the LibrariesOperationsClient object to access its operations. - * + * * @return the LibrariesOperationsClient object. */ LibrariesOperationsClient getLibrariesOperations(); /** * Gets the IntegrationRuntimesClient object to access its operations. - * + * * @return the IntegrationRuntimesClient object. */ IntegrationRuntimesClient getIntegrationRuntimes(); /** * Gets the IntegrationRuntimeNodeIpAddressOperationsClient object to access its operations. - * + * * @return the IntegrationRuntimeNodeIpAddressOperationsClient object. */ IntegrationRuntimeNodeIpAddressOperationsClient getIntegrationRuntimeNodeIpAddressOperations(); /** * Gets the IntegrationRuntimeObjectMetadatasClient object to access its operations. - * + * * @return the IntegrationRuntimeObjectMetadatasClient object. */ IntegrationRuntimeObjectMetadatasClient getIntegrationRuntimeObjectMetadatas(); /** * Gets the IntegrationRuntimeNodesClient object to access its operations. - * + * * @return the IntegrationRuntimeNodesClient object. */ IntegrationRuntimeNodesClient getIntegrationRuntimeNodes(); /** * Gets the IntegrationRuntimeCredentialsClient object to access its operations. - * + * * @return the IntegrationRuntimeCredentialsClient object. */ IntegrationRuntimeCredentialsClient getIntegrationRuntimeCredentials(); /** * Gets the IntegrationRuntimeConnectionInfosClient object to access its operations. - * + * * @return the IntegrationRuntimeConnectionInfosClient object. */ IntegrationRuntimeConnectionInfosClient getIntegrationRuntimeConnectionInfos(); /** * Gets the IntegrationRuntimeAuthKeysOperationsClient object to access its operations. - * + * * @return the IntegrationRuntimeAuthKeysOperationsClient object. */ IntegrationRuntimeAuthKeysOperationsClient getIntegrationRuntimeAuthKeysOperations(); /** * Gets the IntegrationRuntimeMonitoringDatasClient object to access its operations. - * + * * @return the IntegrationRuntimeMonitoringDatasClient object. */ IntegrationRuntimeMonitoringDatasClient getIntegrationRuntimeMonitoringDatas(); /** * Gets the IntegrationRuntimeStatusOperationsClient object to access its operations. - * + * * @return the IntegrationRuntimeStatusOperationsClient object. */ IntegrationRuntimeStatusOperationsClient getIntegrationRuntimeStatusOperations(); /** * Gets the GetsClient object to access its operations. - * + * * @return the GetsClient object. */ GetsClient getGets(); /** * Gets the SparkConfigurationsClient object to access its operations. - * + * * @return the SparkConfigurationsClient object. */ SparkConfigurationsClient getSparkConfigurations(); /** * Gets the SparkConfigurationsOperationsClient object to access its operations. - * + * * @return the SparkConfigurationsOperationsClient object. */ SparkConfigurationsOperationsClient getSparkConfigurationsOperations(); /** * Gets the KustoOperationsClient object to access its operations. - * + * * @return the KustoOperationsClient object. */ KustoOperationsClient getKustoOperations(); /** * Gets the KustoPoolsClient object to access its operations. - * + * * @return the KustoPoolsClient object. */ KustoPoolsClient getKustoPools(); /** * Gets the KustoPoolChildResourcesClient object to access its operations. - * + * * @return the KustoPoolChildResourcesClient object. */ KustoPoolChildResourcesClient getKustoPoolChildResources(); /** * Gets the KustoPoolAttachedDatabaseConfigurationsClient object to access its operations. - * + * * @return the KustoPoolAttachedDatabaseConfigurationsClient object. */ KustoPoolAttachedDatabaseConfigurationsClient getKustoPoolAttachedDatabaseConfigurations(); /** * Gets the KustoPoolDatabasesClient object to access its operations. - * + * * @return the KustoPoolDatabasesClient object. */ KustoPoolDatabasesClient getKustoPoolDatabases(); /** * Gets the KustoPoolDataConnectionsClient object to access its operations. - * + * * @return the KustoPoolDataConnectionsClient object. */ KustoPoolDataConnectionsClient getKustoPoolDataConnections(); /** * Gets the KustoPoolPrincipalAssignmentsClient object to access its operations. - * + * * @return the KustoPoolPrincipalAssignmentsClient object. */ KustoPoolPrincipalAssignmentsClient getKustoPoolPrincipalAssignments(); /** * Gets the KustoPoolDatabasePrincipalAssignmentsClient object to access its operations. - * + * * @return the KustoPoolDatabasePrincipalAssignmentsClient object. */ KustoPoolDatabasePrincipalAssignmentsClient getKustoPoolDatabasePrincipalAssignments(); /** * Gets the KustoPoolPrivateLinkResourcesOperationsClient object to access its operations. - * + * * @return the KustoPoolPrivateLinkResourcesOperationsClient object. */ KustoPoolPrivateLinkResourcesOperationsClient getKustoPoolPrivateLinkResourcesOperations(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceAadAdminsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceAadAdminsClient.java index 0b71d87ae98f..eec342847a03 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceAadAdminsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceAadAdminsClient.java @@ -12,11 +12,13 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.synapse.fluent.models.WorkspaceAadAdminInfoInner; -/** An instance of this class provides access to all the operations defined in WorkspaceAadAdminsClient. */ +/** + * An instance of this class provides access to all the operations defined in WorkspaceAadAdminsClient. + */ public interface WorkspaceAadAdminsClient { /** * Gets a workspace active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -26,12 +28,12 @@ public interface WorkspaceAadAdminsClient { * @return a workspace active directory admin along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String workspaceName, Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + Context context); /** * Gets a workspace active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -44,7 +46,7 @@ Response getWithResponse( /** * Creates or updates a workspace active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param aadAdminInfo Workspace active directory administrator properties. @@ -54,12 +56,12 @@ Response getWithResponse( * @return the {@link SyncPoller} for polling of workspace active directory administrator. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, WorkspaceAadAdminInfoInner> beginCreateOrUpdate( - String resourceGroupName, String workspaceName, WorkspaceAadAdminInfoInner aadAdminInfo); + SyncPoller, WorkspaceAadAdminInfoInner> + beginCreateOrUpdate(String resourceGroupName, String workspaceName, WorkspaceAadAdminInfoInner aadAdminInfo); /** * Creates or updates a workspace active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param aadAdminInfo Workspace active directory administrator properties. @@ -75,7 +77,7 @@ SyncPoller, WorkspaceAadAdminInfoInner> b /** * Creates or updates a workspace active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param aadAdminInfo Workspace active directory administrator properties. @@ -85,12 +87,12 @@ SyncPoller, WorkspaceAadAdminInfoInner> b * @return workspace active directory administrator. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkspaceAadAdminInfoInner createOrUpdate( - String resourceGroupName, String workspaceName, WorkspaceAadAdminInfoInner aadAdminInfo); + WorkspaceAadAdminInfoInner createOrUpdate(String resourceGroupName, String workspaceName, + WorkspaceAadAdminInfoInner aadAdminInfo); /** * Creates or updates a workspace active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param aadAdminInfo Workspace active directory administrator properties. @@ -101,12 +103,12 @@ WorkspaceAadAdminInfoInner createOrUpdate( * @return workspace active directory administrator. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkspaceAadAdminInfoInner createOrUpdate( - String resourceGroupName, String workspaceName, WorkspaceAadAdminInfoInner aadAdminInfo, Context context); + WorkspaceAadAdminInfoInner createOrUpdate(String resourceGroupName, String workspaceName, + WorkspaceAadAdminInfoInner aadAdminInfo, Context context); /** * Deletes a workspace active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -119,7 +121,7 @@ WorkspaceAadAdminInfoInner createOrUpdate( /** * Deletes a workspace active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -133,7 +135,7 @@ WorkspaceAadAdminInfoInner createOrUpdate( /** * Deletes a workspace active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -145,7 +147,7 @@ WorkspaceAadAdminInfoInner createOrUpdate( /** * Deletes a workspace active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedIdentitySqlControlSettingsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedIdentitySqlControlSettingsClient.java index 19f3098b6639..de8ee456d513 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedIdentitySqlControlSettingsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedIdentitySqlControlSettingsClient.java @@ -19,7 +19,7 @@ public interface WorkspaceManagedIdentitySqlControlSettingsClient { /** * Get Managed Identity Sql Control Settings. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -29,12 +29,12 @@ public interface WorkspaceManagedIdentitySqlControlSettingsClient { * @return managed Identity Sql Control Settings along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String workspaceName, Context context); + Response getWithResponse(String resourceGroupName, + String workspaceName, Context context); /** * Get Managed Identity Sql Control Settings. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -47,7 +47,7 @@ Response getWithResponse( /** * Create or update Managed Identity Sql Control Settings. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param managedIdentitySqlControlSettings Managed Identity Sql Control Settings. @@ -58,14 +58,12 @@ Response getWithResponse( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ManagedIdentitySqlControlSettingsModelInner> - beginCreateOrUpdate( - String resourceGroupName, - String workspaceName, + beginCreateOrUpdate(String resourceGroupName, String workspaceName, ManagedIdentitySqlControlSettingsModelInner managedIdentitySqlControlSettings); /** * Create or update Managed Identity Sql Control Settings. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param managedIdentitySqlControlSettings Managed Identity Sql Control Settings. @@ -77,15 +75,12 @@ Response getWithResponse( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ManagedIdentitySqlControlSettingsModelInner> - beginCreateOrUpdate( - String resourceGroupName, - String workspaceName, - ManagedIdentitySqlControlSettingsModelInner managedIdentitySqlControlSettings, - Context context); + beginCreateOrUpdate(String resourceGroupName, String workspaceName, + ManagedIdentitySqlControlSettingsModelInner managedIdentitySqlControlSettings, Context context); /** * Create or update Managed Identity Sql Control Settings. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param managedIdentitySqlControlSettings Managed Identity Sql Control Settings. @@ -95,14 +90,12 @@ Response getWithResponse( * @return managed Identity Sql Control Settings. */ @ServiceMethod(returns = ReturnType.SINGLE) - ManagedIdentitySqlControlSettingsModelInner createOrUpdate( - String resourceGroupName, - String workspaceName, + ManagedIdentitySqlControlSettingsModelInner createOrUpdate(String resourceGroupName, String workspaceName, ManagedIdentitySqlControlSettingsModelInner managedIdentitySqlControlSettings); /** * Create or update Managed Identity Sql Control Settings. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param managedIdentitySqlControlSettings Managed Identity Sql Control Settings. @@ -113,9 +106,6 @@ ManagedIdentitySqlControlSettingsModelInner createOrUpdate( * @return managed Identity Sql Control Settings. */ @ServiceMethod(returns = ReturnType.SINGLE) - ManagedIdentitySqlControlSettingsModelInner createOrUpdate( - String resourceGroupName, - String workspaceName, - ManagedIdentitySqlControlSettingsModelInner managedIdentitySqlControlSettings, - Context context); + ManagedIdentitySqlControlSettingsModelInner createOrUpdate(String resourceGroupName, String workspaceName, + ManagedIdentitySqlControlSettingsModelInner managedIdentitySqlControlSettings, Context context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerBlobAuditingPoliciesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerBlobAuditingPoliciesClient.java index 301c2e75f140..ce3579ffb5bd 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerBlobAuditingPoliciesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerBlobAuditingPoliciesClient.java @@ -21,9 +21,9 @@ public interface WorkspaceManagedSqlServerBlobAuditingPoliciesClient { /** * Get server's blob auditing policy. - * - *

Get a workspace managed sql server's blob auditing policy. - * + * + * Get a workspace managed sql server's blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. @@ -34,14 +34,14 @@ public interface WorkspaceManagedSqlServerBlobAuditingPoliciesClient { * @return a workspace managed sql server's blob auditing policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName, Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + BlobAuditingPolicyName blobAuditingPolicyName, Context context); /** * Get server's blob auditing policy. - * - *

Get a workspace managed sql server's blob auditing policy. - * + * + * Get a workspace managed sql server's blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. @@ -51,14 +51,14 @@ Response getWithResponse( * @return a workspace managed sql server's blob auditing policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - ServerBlobAuditingPolicyInner get( - String resourceGroupName, String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName); + ServerBlobAuditingPolicyInner get(String resourceGroupName, String workspaceName, + BlobAuditingPolicyName blobAuditingPolicyName); /** * Create or Update server's blob auditing policy. - * - *

Create or Update a workspace managed sql server's blob auditing policy. - * + * + * Create or Update a workspace managed sql server's blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. @@ -70,16 +70,14 @@ ServerBlobAuditingPolicyInner get( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ServerBlobAuditingPolicyInner> beginCreateOrUpdate( - String resourceGroupName, - String workspaceName, - BlobAuditingPolicyName blobAuditingPolicyName, + String resourceGroupName, String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName, ServerBlobAuditingPolicyInner parameters); /** * Create or Update server's blob auditing policy. - * - *

Create or Update a workspace managed sql server's blob auditing policy. - * + * + * Create or Update a workspace managed sql server's blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. @@ -92,17 +90,14 @@ SyncPoller, ServerBlobAuditingPolicyIn */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ServerBlobAuditingPolicyInner> beginCreateOrUpdate( - String resourceGroupName, - String workspaceName, - BlobAuditingPolicyName blobAuditingPolicyName, - ServerBlobAuditingPolicyInner parameters, - Context context); + String resourceGroupName, String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName, + ServerBlobAuditingPolicyInner parameters, Context context); /** * Create or Update server's blob auditing policy. - * - *

Create or Update a workspace managed sql server's blob auditing policy. - * + * + * Create or Update a workspace managed sql server's blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. @@ -113,17 +108,14 @@ SyncPoller, ServerBlobAuditingPolicyIn * @return a server blob auditing policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - ServerBlobAuditingPolicyInner createOrUpdate( - String resourceGroupName, - String workspaceName, - BlobAuditingPolicyName blobAuditingPolicyName, - ServerBlobAuditingPolicyInner parameters); + ServerBlobAuditingPolicyInner createOrUpdate(String resourceGroupName, String workspaceName, + BlobAuditingPolicyName blobAuditingPolicyName, ServerBlobAuditingPolicyInner parameters); /** * Create or Update server's blob auditing policy. - * - *

Create or Update a workspace managed sql server's blob auditing policy. - * + * + * Create or Update a workspace managed sql server's blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. @@ -135,18 +127,14 @@ ServerBlobAuditingPolicyInner createOrUpdate( * @return a server blob auditing policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - ServerBlobAuditingPolicyInner createOrUpdate( - String resourceGroupName, - String workspaceName, - BlobAuditingPolicyName blobAuditingPolicyName, - ServerBlobAuditingPolicyInner parameters, - Context context); + ServerBlobAuditingPolicyInner createOrUpdate(String resourceGroupName, String workspaceName, + BlobAuditingPolicyName blobAuditingPolicyName, ServerBlobAuditingPolicyInner parameters, Context context); /** * List workspace server's blob auditing policies. - * - *

List workspace managed sql server's blob auditing policies. - * + * + * List workspace managed sql server's blob auditing policies. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -159,9 +147,9 @@ ServerBlobAuditingPolicyInner createOrUpdate( /** * List workspace server's blob auditing policies. - * - *

List workspace managed sql server's blob auditing policies. - * + * + * List workspace managed sql server's blob auditing policies. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -171,6 +159,6 @@ ServerBlobAuditingPolicyInner createOrUpdate( * @return a list of server auditing settings as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByWorkspace( - String resourceGroupName, String workspaceName, Context context); + PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, + Context context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient.java index c2a3f78781e7..98c30bda092f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient.java @@ -21,9 +21,9 @@ public interface WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient { /** * Update server's tls settings. - * - *

Update workspace managed sql server's minimal tls settings. - * + * + * Update workspace managed sql server's minimal tls settings. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. @@ -35,16 +35,15 @@ public interface WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient { */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, DedicatedSQLminimalTlsSettingsInner> beginUpdate( - String resourceGroupName, - String workspaceName, + String resourceGroupName, String workspaceName, DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, DedicatedSQLminimalTlsSettingsInner parameters); /** * Update server's tls settings. - * - *

Update workspace managed sql server's minimal tls settings. - * + * + * Update workspace managed sql server's minimal tls settings. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. @@ -57,17 +56,15 @@ SyncPoller, DedicatedSQLminimalT */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, DedicatedSQLminimalTlsSettingsInner> beginUpdate( - String resourceGroupName, - String workspaceName, + String resourceGroupName, String workspaceName, DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, - DedicatedSQLminimalTlsSettingsInner parameters, - Context context); + DedicatedSQLminimalTlsSettingsInner parameters, Context context); /** * Update server's tls settings. - * - *

Update workspace managed sql server's minimal tls settings. - * + * + * Update workspace managed sql server's minimal tls settings. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. @@ -78,17 +75,15 @@ SyncPoller, DedicatedSQLminimalT * @return dedicated Sql Minimal Tls Settings Info. */ @ServiceMethod(returns = ReturnType.SINGLE) - DedicatedSQLminimalTlsSettingsInner update( - String resourceGroupName, - String workspaceName, + DedicatedSQLminimalTlsSettingsInner update(String resourceGroupName, String workspaceName, DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, DedicatedSQLminimalTlsSettingsInner parameters); /** * Update server's tls settings. - * - *

Update workspace managed sql server's minimal tls settings. - * + * + * Update workspace managed sql server's minimal tls settings. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. @@ -100,18 +95,15 @@ DedicatedSQLminimalTlsSettingsInner update( * @return dedicated Sql Minimal Tls Settings Info. */ @ServiceMethod(returns = ReturnType.SINGLE) - DedicatedSQLminimalTlsSettingsInner update( - String resourceGroupName, - String workspaceName, + DedicatedSQLminimalTlsSettingsInner update(String resourceGroupName, String workspaceName, DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, - DedicatedSQLminimalTlsSettingsInner parameters, - Context context); + DedicatedSQLminimalTlsSettingsInner parameters, Context context); /** * Get server's minimal tls settings. - * - *

Get workspace managed sql server's minimal tls settings. - * + * + * Get workspace managed sql server's minimal tls settings. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. @@ -122,14 +114,14 @@ DedicatedSQLminimalTlsSettingsInner update( * @return workspace managed sql server's minimal tls settings along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String workspaceName, String dedicatedSQLminimalTlsSettingsName, Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + String dedicatedSQLminimalTlsSettingsName, Context context); /** * Get server's minimal tls settings. - * - *

Get workspace managed sql server's minimal tls settings. - * + * + * Get workspace managed sql server's minimal tls settings. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. @@ -139,40 +131,40 @@ Response getWithResponse( * @return workspace managed sql server's minimal tls settings. */ @ServiceMethod(returns = ReturnType.SINGLE) - DedicatedSQLminimalTlsSettingsInner get( - String resourceGroupName, String workspaceName, String dedicatedSQLminimalTlsSettingsName); + DedicatedSQLminimalTlsSettingsInner get(String resourceGroupName, String workspaceName, + String dedicatedSQLminimalTlsSettingsName); /** * List workspace server's minimal tls settings. - * - *

List workspace managed sql server's minimal tls settings. - * + * + * List workspace managed sql server's minimal tls settings. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of the server's dedicated sql minimal tls settings as paginated response with {@link - * PagedIterable}. + * @return a list of the server's dedicated sql minimal tls settings as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String workspaceName); /** * List workspace server's minimal tls settings. - * - *

List workspace managed sql server's minimal tls settings. - * + * + * List workspace managed sql server's minimal tls settings. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of the server's dedicated sql minimal tls settings as paginated response with {@link - * PagedIterable}. + * @return a list of the server's dedicated sql minimal tls settings as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list( - String resourceGroupName, String workspaceName, Context context); + PagedIterable list(String resourceGroupName, String workspaceName, + Context context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerEncryptionProtectorsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerEncryptionProtectorsClient.java index 693ffa43566d..69066ebe9616 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerEncryptionProtectorsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerEncryptionProtectorsClient.java @@ -21,9 +21,9 @@ public interface WorkspaceManagedSqlServerEncryptionProtectorsClient { /** * Get workspace server's encryption protector. - * - *

Get workspace managed sql server's encryption protector. - * + * + * Get workspace managed sql server's encryption protector. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param encryptionProtectorName The name of the encryption protector. @@ -34,17 +34,14 @@ public interface WorkspaceManagedSqlServerEncryptionProtectorsClient { * @return workspace managed sql server's encryption protector along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, - String workspaceName, - EncryptionProtectorName encryptionProtectorName, - Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + EncryptionProtectorName encryptionProtectorName, Context context); /** * Get workspace server's encryption protector. - * - *

Get workspace managed sql server's encryption protector. - * + * + * Get workspace managed sql server's encryption protector. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param encryptionProtectorName The name of the encryption protector. @@ -54,14 +51,14 @@ Response getWithResponse( * @return workspace managed sql server's encryption protector. */ @ServiceMethod(returns = ReturnType.SINGLE) - EncryptionProtectorInner get( - String resourceGroupName, String workspaceName, EncryptionProtectorName encryptionProtectorName); + EncryptionProtectorInner get(String resourceGroupName, String workspaceName, + EncryptionProtectorName encryptionProtectorName); /** * Updates workspace server's encryption protector. - * - *

Updates workspace managed sql server's encryption protector. - * + * + * Updates workspace managed sql server's encryption protector. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param encryptionProtectorName The name of the encryption protector. @@ -73,16 +70,14 @@ EncryptionProtectorInner get( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, EncryptionProtectorInner> beginCreateOrUpdate( - String resourceGroupName, - String workspaceName, - EncryptionProtectorName encryptionProtectorName, + String resourceGroupName, String workspaceName, EncryptionProtectorName encryptionProtectorName, EncryptionProtectorInner parameters); /** * Updates workspace server's encryption protector. - * - *

Updates workspace managed sql server's encryption protector. - * + * + * Updates workspace managed sql server's encryption protector. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param encryptionProtectorName The name of the encryption protector. @@ -95,17 +90,14 @@ SyncPoller, EncryptionProtectorInner> begin */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, EncryptionProtectorInner> beginCreateOrUpdate( - String resourceGroupName, - String workspaceName, - EncryptionProtectorName encryptionProtectorName, - EncryptionProtectorInner parameters, - Context context); + String resourceGroupName, String workspaceName, EncryptionProtectorName encryptionProtectorName, + EncryptionProtectorInner parameters, Context context); /** * Updates workspace server's encryption protector. - * - *

Updates workspace managed sql server's encryption protector. - * + * + * Updates workspace managed sql server's encryption protector. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param encryptionProtectorName The name of the encryption protector. @@ -116,17 +108,14 @@ SyncPoller, EncryptionProtectorInner> begin * @return the server encryption protector. */ @ServiceMethod(returns = ReturnType.SINGLE) - EncryptionProtectorInner createOrUpdate( - String resourceGroupName, - String workspaceName, - EncryptionProtectorName encryptionProtectorName, - EncryptionProtectorInner parameters); + EncryptionProtectorInner createOrUpdate(String resourceGroupName, String workspaceName, + EncryptionProtectorName encryptionProtectorName, EncryptionProtectorInner parameters); /** * Updates workspace server's encryption protector. - * - *

Updates workspace managed sql server's encryption protector. - * + * + * Updates workspace managed sql server's encryption protector. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param encryptionProtectorName The name of the encryption protector. @@ -138,51 +127,47 @@ EncryptionProtectorInner createOrUpdate( * @return the server encryption protector. */ @ServiceMethod(returns = ReturnType.SINGLE) - EncryptionProtectorInner createOrUpdate( - String resourceGroupName, - String workspaceName, - EncryptionProtectorName encryptionProtectorName, - EncryptionProtectorInner parameters, - Context context); + EncryptionProtectorInner createOrUpdate(String resourceGroupName, String workspaceName, + EncryptionProtectorName encryptionProtectorName, EncryptionProtectorInner parameters, Context context); /** * Get list of encryption protectors for the server. - * - *

Get list of encryption protectors for workspace managed sql server. - * + * + * Get list of encryption protectors for workspace managed sql server. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 encryption protectors for workspace managed sql server as paginated response with {@link - * PagedIterable}. + * @return list of encryption protectors for workspace managed sql server as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String workspaceName); /** * Get list of encryption protectors for the server. - * - *

Get list of encryption protectors for workspace managed sql server. - * + * + * Get list of encryption protectors for workspace managed sql server. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 encryption protectors for workspace managed sql server as paginated response with {@link - * PagedIterable}. + * @return list of encryption protectors for workspace managed sql server as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String workspaceName, Context context); /** * Revalidates server's existing encryption protector. - * - *

Revalidates workspace managed sql server's existing encryption protector. - * + * + * Revalidates workspace managed sql server's existing encryption protector. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param encryptionProtectorName The name of the encryption protector. @@ -192,14 +177,14 @@ EncryptionProtectorInner createOrUpdate( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginRevalidate( - String resourceGroupName, String workspaceName, EncryptionProtectorName encryptionProtectorName); + SyncPoller, Void> beginRevalidate(String resourceGroupName, String workspaceName, + EncryptionProtectorName encryptionProtectorName); /** * Revalidates server's existing encryption protector. - * - *

Revalidates workspace managed sql server's existing encryption protector. - * + * + * Revalidates workspace managed sql server's existing encryption protector. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param encryptionProtectorName The name of the encryption protector. @@ -210,17 +195,14 @@ SyncPoller, Void> beginRevalidate( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginRevalidate( - String resourceGroupName, - String workspaceName, - EncryptionProtectorName encryptionProtectorName, - Context context); + SyncPoller, Void> beginRevalidate(String resourceGroupName, String workspaceName, + EncryptionProtectorName encryptionProtectorName, Context context); /** * Revalidates server's existing encryption protector. - * - *

Revalidates workspace managed sql server's existing encryption protector. - * + * + * Revalidates workspace managed sql server's existing encryption protector. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param encryptionProtectorName The name of the encryption protector. @@ -233,9 +215,9 @@ SyncPoller, Void> beginRevalidate( /** * Revalidates server's existing encryption protector. - * - *

Revalidates workspace managed sql server's existing encryption protector. - * + * + * Revalidates workspace managed sql server's existing encryption protector. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param encryptionProtectorName The name of the encryption protector. @@ -245,9 +227,6 @@ SyncPoller, Void> beginRevalidate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void revalidate( - String resourceGroupName, - String workspaceName, - EncryptionProtectorName encryptionProtectorName, + void revalidate(String resourceGroupName, String workspaceName, EncryptionProtectorName encryptionProtectorName, Context context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClient.java index dd71d8ac9556..187ea5958bf2 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClient.java @@ -21,9 +21,9 @@ public interface WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClient { /** * Get server's extended blob auditing policy. - * - *

Get a workspace SQL server's extended blob auditing policy. - * + * + * Get a workspace SQL server's extended blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. @@ -34,14 +34,14 @@ public interface WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClient { * @return a workspace SQL server's extended blob auditing policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName, Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + BlobAuditingPolicyName blobAuditingPolicyName, Context context); /** * Get server's extended blob auditing policy. - * - *

Get a workspace SQL server's extended blob auditing policy. - * + * + * Get a workspace SQL server's extended blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. @@ -51,14 +51,14 @@ Response getWithResponse( * @return a workspace SQL server's extended blob auditing policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - ExtendedServerBlobAuditingPolicyInner get( - String resourceGroupName, String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName); + ExtendedServerBlobAuditingPolicyInner get(String resourceGroupName, String workspaceName, + BlobAuditingPolicyName blobAuditingPolicyName); /** * Create or Update server's extended blob auditing policy. - * - *

Create or Update a workspace managed sql server's extended blob auditing policy. - * + * + * Create or Update a workspace managed sql server's extended blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. @@ -70,17 +70,14 @@ ExtendedServerBlobAuditingPolicyInner get( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ExtendedServerBlobAuditingPolicyInner> - beginCreateOrUpdate( - String resourceGroupName, - String workspaceName, - BlobAuditingPolicyName blobAuditingPolicyName, - ExtendedServerBlobAuditingPolicyInner parameters); + beginCreateOrUpdate(String resourceGroupName, String workspaceName, + BlobAuditingPolicyName blobAuditingPolicyName, ExtendedServerBlobAuditingPolicyInner parameters); /** * Create or Update server's extended blob auditing policy. - * - *

Create or Update a workspace managed sql server's extended blob auditing policy. - * + * + * Create or Update a workspace managed sql server's extended blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. @@ -93,18 +90,15 @@ ExtendedServerBlobAuditingPolicyInner get( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ExtendedServerBlobAuditingPolicyInner> - beginCreateOrUpdate( - String resourceGroupName, - String workspaceName, - BlobAuditingPolicyName blobAuditingPolicyName, - ExtendedServerBlobAuditingPolicyInner parameters, + beginCreateOrUpdate(String resourceGroupName, String workspaceName, + BlobAuditingPolicyName blobAuditingPolicyName, ExtendedServerBlobAuditingPolicyInner parameters, Context context); /** * Create or Update server's extended blob auditing policy. - * - *

Create or Update a workspace managed sql server's extended blob auditing policy. - * + * + * Create or Update a workspace managed sql server's extended blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. @@ -115,17 +109,14 @@ ExtendedServerBlobAuditingPolicyInner get( * @return an extended server blob auditing policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - ExtendedServerBlobAuditingPolicyInner createOrUpdate( - String resourceGroupName, - String workspaceName, - BlobAuditingPolicyName blobAuditingPolicyName, - ExtendedServerBlobAuditingPolicyInner parameters); + ExtendedServerBlobAuditingPolicyInner createOrUpdate(String resourceGroupName, String workspaceName, + BlobAuditingPolicyName blobAuditingPolicyName, ExtendedServerBlobAuditingPolicyInner parameters); /** * Create or Update server's extended blob auditing policy. - * - *

Create or Update a workspace managed sql server's extended blob auditing policy. - * + * + * Create or Update a workspace managed sql server's extended blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. @@ -137,18 +128,15 @@ ExtendedServerBlobAuditingPolicyInner createOrUpdate( * @return an extended server blob auditing policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - ExtendedServerBlobAuditingPolicyInner createOrUpdate( - String resourceGroupName, - String workspaceName, - BlobAuditingPolicyName blobAuditingPolicyName, - ExtendedServerBlobAuditingPolicyInner parameters, + ExtendedServerBlobAuditingPolicyInner createOrUpdate(String resourceGroupName, String workspaceName, + BlobAuditingPolicyName blobAuditingPolicyName, ExtendedServerBlobAuditingPolicyInner parameters, Context context); /** * List server's extended blob auditing policies. - * - *

List workspace managed sql server's extended blob auditing policies. - * + * + * List workspace managed sql server's extended blob auditing policies. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -157,14 +145,14 @@ ExtendedServerBlobAuditingPolicyInner createOrUpdate( * @return a list of server extended auditing settings as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByWorkspace( - String resourceGroupName, String workspaceName); + PagedIterable listByWorkspace(String resourceGroupName, + String workspaceName); /** * List server's extended blob auditing policies. - * - *

List workspace managed sql server's extended blob auditing policies. - * + * + * List workspace managed sql server's extended blob auditing policies. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -174,6 +162,6 @@ PagedIterable listByWorkspace( * @return a list of server extended auditing settings as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByWorkspace( - String resourceGroupName, String workspaceName, Context context); + PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, + Context context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerRecoverableSqlPoolsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerRecoverableSqlPoolsClient.java index 7f25994cb015..392a8d35942f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerRecoverableSqlPoolsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerRecoverableSqlPoolsClient.java @@ -18,42 +18,42 @@ public interface WorkspaceManagedSqlServerRecoverableSqlPoolsClient { /** * Get list of recoverable sql pools for the server. - * - *

Get list of recoverable sql pools for workspace managed sql server. - * + * + * Get list of recoverable sql pools for workspace managed sql server. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 recoverable sql pools for workspace managed sql server as paginated response with {@link - * PagedIterable}. + * @return list of recoverable sql pools for workspace managed sql server as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String workspaceName); /** * Get list of recoverable sql pools for the server. - * - *

Get list of recoverable sql pools for workspace managed sql server. - * + * + * Get list of recoverable sql pools for workspace managed sql server. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 recoverable sql pools for workspace managed sql server as paginated response with {@link - * PagedIterable}. + * @return list of recoverable sql pools for workspace managed sql server as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String workspaceName, Context context); /** * Get recoverable sql pools for the server. - * - *

Get recoverable sql pools for workspace managed sql server. - * + * + * Get recoverable sql pools for workspace managed sql server. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName The name of the sql pool. @@ -64,14 +64,14 @@ public interface WorkspaceManagedSqlServerRecoverableSqlPoolsClient { * @return recoverable sql pools for workspace managed sql server along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context); /** * Get recoverable sql pools for the server. - * - *

Get recoverable sql pools for workspace managed sql server. - * + * + * Get recoverable sql pools for workspace managed sql server. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName The name of the sql pool. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerSecurityAlertPoliciesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerSecurityAlertPoliciesClient.java index 5955b8c3b2cf..56bf154212c1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerSecurityAlertPoliciesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerSecurityAlertPoliciesClient.java @@ -21,9 +21,9 @@ public interface WorkspaceManagedSqlServerSecurityAlertPoliciesClient { /** * Get server's security alert policy. - * - *

Get a workspace managed sql server's security alert policy. - * + * + * Get a workspace managed sql server's security alert policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param securityAlertPolicyName The name of the security alert policy. @@ -34,17 +34,14 @@ public interface WorkspaceManagedSqlServerSecurityAlertPoliciesClient { * @return a workspace managed sql server's security alert policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, - String workspaceName, - SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName, - Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName, Context context); /** * Get server's security alert policy. - * - *

Get a workspace managed sql server's security alert policy. - * + * + * Get a workspace managed sql server's security alert policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param securityAlertPolicyName The name of the security alert policy. @@ -54,14 +51,14 @@ Response getWithResponse( * @return a workspace managed sql server's security alert policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - ServerSecurityAlertPolicyInner get( - String resourceGroupName, String workspaceName, SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName); + ServerSecurityAlertPolicyInner get(String resourceGroupName, String workspaceName, + SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName); /** * Create or Update server's threat detection policy. - * - *

Create or Update a workspace managed sql server's threat detection policy. - * + * + * Create or Update a workspace managed sql server's threat detection policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param securityAlertPolicyName The name of the security alert policy. @@ -73,16 +70,14 @@ ServerSecurityAlertPolicyInner get( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ServerSecurityAlertPolicyInner> beginCreateOrUpdate( - String resourceGroupName, - String workspaceName, - SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName, + String resourceGroupName, String workspaceName, SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName, ServerSecurityAlertPolicyInner parameters); /** * Create or Update server's threat detection policy. - * - *

Create or Update a workspace managed sql server's threat detection policy. - * + * + * Create or Update a workspace managed sql server's threat detection policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param securityAlertPolicyName The name of the security alert policy. @@ -95,17 +90,14 @@ SyncPoller, ServerSecurityAlertPolicy */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, ServerSecurityAlertPolicyInner> beginCreateOrUpdate( - String resourceGroupName, - String workspaceName, - SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName, - ServerSecurityAlertPolicyInner parameters, - Context context); + String resourceGroupName, String workspaceName, SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName, + ServerSecurityAlertPolicyInner parameters, Context context); /** * Create or Update server's threat detection policy. - * - *

Create or Update a workspace managed sql server's threat detection policy. - * + * + * Create or Update a workspace managed sql server's threat detection policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param securityAlertPolicyName The name of the security alert policy. @@ -116,17 +108,14 @@ SyncPoller, ServerSecurityAlertPolicy * @return workspace managed Sql server security alert policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - ServerSecurityAlertPolicyInner createOrUpdate( - String resourceGroupName, - String workspaceName, - SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName, - ServerSecurityAlertPolicyInner parameters); + ServerSecurityAlertPolicyInner createOrUpdate(String resourceGroupName, String workspaceName, + SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName, ServerSecurityAlertPolicyInner parameters); /** * Create or Update server's threat detection policy. - * - *

Create or Update a workspace managed sql server's threat detection policy. - * + * + * Create or Update a workspace managed sql server's threat detection policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param securityAlertPolicyName The name of the security alert policy. @@ -138,42 +127,39 @@ ServerSecurityAlertPolicyInner createOrUpdate( * @return workspace managed Sql server security alert policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - ServerSecurityAlertPolicyInner createOrUpdate( - String resourceGroupName, - String workspaceName, - SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName, - ServerSecurityAlertPolicyInner parameters, + ServerSecurityAlertPolicyInner createOrUpdate(String resourceGroupName, String workspaceName, + SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName, ServerSecurityAlertPolicyInner parameters, Context context); /** * Get server's threat detection policies. - * - *

Get workspace managed sql server's threat detection policies. - * + * + * Get workspace managed sql server's threat detection policies. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workspace managed sql server's threat detection policies as paginated response with {@link - * PagedIterable}. + * @return workspace managed sql server's threat detection policies as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String workspaceName); /** * Get server's threat detection policies. - * - *

Get workspace managed sql server's threat detection policies. - * + * + * Get workspace managed sql server's threat detection policies. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workspace managed sql server's threat detection policies as paginated response with {@link - * PagedIterable}. + * @return workspace managed sql server's threat detection policies as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String workspaceName, Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerUsagesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerUsagesClient.java index c32c2d8b828c..a0712e3d92ed 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerUsagesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerUsagesClient.java @@ -10,37 +10,39 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.synapse.fluent.models.ServerUsageInner; -/** An instance of this class provides access to all the operations defined in WorkspaceManagedSqlServerUsagesClient. */ +/** + * An instance of this class provides access to all the operations defined in WorkspaceManagedSqlServerUsagesClient. + */ public interface WorkspaceManagedSqlServerUsagesClient { /** * Get list of usages metric for the server. - * - *

Get list of server usages metric for workspace managed sql server. - * + * + * Get list of server usages metric for workspace managed sql server. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 server usages metric for workspace managed sql server as paginated response with {@link - * PagedIterable}. + * @return list of server usages metric for workspace managed sql server as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String workspaceName); /** * Get list of usages metric for the server. - * - *

Get list of server usages metric for workspace managed sql server. - * + * + * Get list of server usages metric for workspace managed sql server. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 server usages metric for workspace managed sql server as paginated response with {@link - * PagedIterable}. + * @return list of server usages metric for workspace managed sql server as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String workspaceName, Context context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerVulnerabilityAssessmentsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerVulnerabilityAssessmentsClient.java index 0c868255ae31..f3bfc55866df 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerVulnerabilityAssessmentsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceManagedSqlServerVulnerabilityAssessmentsClient.java @@ -19,9 +19,9 @@ public interface WorkspaceManagedSqlServerVulnerabilityAssessmentsClient { /** * Get server's vulnerability assessment. - * - *

Get workspace managed sql server's vulnerability assessment. - * + * + * Get workspace managed sql server's vulnerability assessment. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. @@ -32,17 +32,14 @@ public interface WorkspaceManagedSqlServerVulnerabilityAssessmentsClient { * @return workspace managed sql server's vulnerability assessment along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, - String workspaceName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, Context context); /** * Get server's vulnerability assessment. - * - *

Get workspace managed sql server's vulnerability assessment. - * + * + * Get workspace managed sql server's vulnerability assessment. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. @@ -52,14 +49,14 @@ Response getWithResponse( * @return workspace managed sql server's vulnerability assessment. */ @ServiceMethod(returns = ReturnType.SINGLE) - ServerVulnerabilityAssessmentInner get( - String resourceGroupName, String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName); + ServerVulnerabilityAssessmentInner get(String resourceGroupName, String workspaceName, + VulnerabilityAssessmentName vulnerabilityAssessmentName); /** * Create or Update server's vulnerability assessment. - * - *

Create or Update workspace managed sql server's vulnerability assessment. - * + * + * Create or Update workspace managed sql server's vulnerability assessment. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. @@ -71,18 +68,15 @@ ServerVulnerabilityAssessmentInner get( * @return a server vulnerability assessment along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse( - String resourceGroupName, - String workspaceName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - ServerVulnerabilityAssessmentInner parameters, - Context context); + Response createOrUpdateWithResponse(String resourceGroupName, + String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName, + ServerVulnerabilityAssessmentInner parameters, Context context); /** * Create or Update server's vulnerability assessment. - * - *

Create or Update workspace managed sql server's vulnerability assessment. - * + * + * Create or Update workspace managed sql server's vulnerability assessment. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. @@ -93,17 +87,14 @@ Response createOrUpdateWithResponse( * @return a server vulnerability assessment. */ @ServiceMethod(returns = ReturnType.SINGLE) - ServerVulnerabilityAssessmentInner createOrUpdate( - String resourceGroupName, - String workspaceName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - ServerVulnerabilityAssessmentInner parameters); + ServerVulnerabilityAssessmentInner createOrUpdate(String resourceGroupName, String workspaceName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, ServerVulnerabilityAssessmentInner parameters); /** * Remove server's vulnerability assessment. - * - *

Remove workspace managed sql server's vulnerability assessment. - * + * + * Remove workspace managed sql server's vulnerability assessment. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. @@ -114,17 +105,14 @@ ServerVulnerabilityAssessmentInner createOrUpdate( * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse( - String resourceGroupName, - String workspaceName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - Context context); + Response deleteWithResponse(String resourceGroupName, String workspaceName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, Context context); /** * Remove server's vulnerability assessment. - * - *

Remove workspace managed sql server's vulnerability assessment. - * + * + * Remove workspace managed sql server's vulnerability assessment. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. @@ -133,14 +121,14 @@ Response deleteWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete( - String resourceGroupName, String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName); + void delete(String resourceGroupName, String workspaceName, + VulnerabilityAssessmentName vulnerabilityAssessmentName); /** * Lists the vulnerability assessment policies associated with a server. - * - *

Lists the vulnerability assessment policies associated with a workspace managed sql server. - * + * + * Lists the vulnerability assessment policies associated with a workspace managed sql server. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -153,9 +141,9 @@ void delete( /** * Lists the vulnerability assessment policies associated with a server. - * - *

Lists the vulnerability assessment policies associated with a workspace managed sql server. - * + * + * Lists the vulnerability assessment policies associated with a workspace managed sql server. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -165,6 +153,6 @@ void delete( * @return a list of the server's vulnerability assessments as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list( - String resourceGroupName, String workspaceName, Context context); + PagedIterable list(String resourceGroupName, String workspaceName, + Context context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceSqlAadAdminsClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceSqlAadAdminsClient.java index 21aba341936e..063527a954e6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceSqlAadAdminsClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspaceSqlAadAdminsClient.java @@ -12,11 +12,13 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.synapse.fluent.models.WorkspaceAadAdminInfoInner; -/** An instance of this class provides access to all the operations defined in WorkspaceSqlAadAdminsClient. */ +/** + * An instance of this class provides access to all the operations defined in WorkspaceSqlAadAdminsClient. + */ public interface WorkspaceSqlAadAdminsClient { /** * Gets a workspace SQL active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -26,12 +28,12 @@ public interface WorkspaceSqlAadAdminsClient { * @return a workspace SQL active directory admin along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String workspaceName, Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + Context context); /** * Gets a workspace SQL active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -44,7 +46,7 @@ Response getWithResponse( /** * Creates or updates a workspace SQL active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param aadAdminInfo Workspace active directory administrator properties. @@ -54,12 +56,12 @@ Response getWithResponse( * @return the {@link SyncPoller} for polling of workspace active directory administrator. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, WorkspaceAadAdminInfoInner> beginCreateOrUpdate( - String resourceGroupName, String workspaceName, WorkspaceAadAdminInfoInner aadAdminInfo); + SyncPoller, WorkspaceAadAdminInfoInner> + beginCreateOrUpdate(String resourceGroupName, String workspaceName, WorkspaceAadAdminInfoInner aadAdminInfo); /** * Creates or updates a workspace SQL active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param aadAdminInfo Workspace active directory administrator properties. @@ -75,7 +77,7 @@ SyncPoller, WorkspaceAadAdminInfoInner> b /** * Creates or updates a workspace SQL active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param aadAdminInfo Workspace active directory administrator properties. @@ -85,12 +87,12 @@ SyncPoller, WorkspaceAadAdminInfoInner> b * @return workspace active directory administrator. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkspaceAadAdminInfoInner createOrUpdate( - String resourceGroupName, String workspaceName, WorkspaceAadAdminInfoInner aadAdminInfo); + WorkspaceAadAdminInfoInner createOrUpdate(String resourceGroupName, String workspaceName, + WorkspaceAadAdminInfoInner aadAdminInfo); /** * Creates or updates a workspace SQL active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param aadAdminInfo Workspace active directory administrator properties. @@ -101,12 +103,12 @@ WorkspaceAadAdminInfoInner createOrUpdate( * @return workspace active directory administrator. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkspaceAadAdminInfoInner createOrUpdate( - String resourceGroupName, String workspaceName, WorkspaceAadAdminInfoInner aadAdminInfo, Context context); + WorkspaceAadAdminInfoInner createOrUpdate(String resourceGroupName, String workspaceName, + WorkspaceAadAdminInfoInner aadAdminInfo, Context context); /** * Deletes a workspace SQL active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -119,7 +121,7 @@ WorkspaceAadAdminInfoInner createOrUpdate( /** * Deletes a workspace SQL active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -133,7 +135,7 @@ WorkspaceAadAdminInfoInner createOrUpdate( /** * Deletes a workspace SQL active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -145,7 +147,7 @@ WorkspaceAadAdminInfoInner createOrUpdate( /** * Deletes a workspace SQL active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspacesClient.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspacesClient.java index 1ebdd4c8ce07..339b5de51faa 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspacesClient.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/WorkspacesClient.java @@ -14,11 +14,13 @@ import com.azure.resourcemanager.synapse.fluent.models.WorkspaceInner; import com.azure.resourcemanager.synapse.models.WorkspacePatchInfo; -/** An instance of this class provides access to all the operations defined in WorkspacesClient. */ +/** + * An instance of this class provides access to all the operations defined in WorkspacesClient. + */ public interface WorkspacesClient { /** * Returns a list of workspaces in a resource group. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -30,7 +32,7 @@ public interface WorkspacesClient { /** * Returns a list of workspaces in a resource group. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -43,7 +45,7 @@ public interface WorkspacesClient { /** * Gets a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -53,12 +55,12 @@ public interface WorkspacesClient { * @return a workspace along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse( - String resourceGroupName, String workspaceName, Context context); + Response getByResourceGroupWithResponse(String resourceGroupName, String workspaceName, + Context context); /** * Gets a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -71,7 +73,7 @@ Response getByResourceGroupWithResponse( /** * Updates a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param workspacePatchInfo Workspace patch request properties. @@ -81,12 +83,12 @@ Response getByResourceGroupWithResponse( * @return the {@link SyncPoller} for polling of a workspace. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, WorkspaceInner> beginUpdate( - String resourceGroupName, String workspaceName, WorkspacePatchInfo workspacePatchInfo); + SyncPoller, WorkspaceInner> beginUpdate(String resourceGroupName, String workspaceName, + WorkspacePatchInfo workspacePatchInfo); /** * Updates a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param workspacePatchInfo Workspace patch request properties. @@ -97,12 +99,12 @@ SyncPoller, WorkspaceInner> beginUpdate( * @return the {@link SyncPoller} for polling of a workspace. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, WorkspaceInner> beginUpdate( - String resourceGroupName, String workspaceName, WorkspacePatchInfo workspacePatchInfo, Context context); + SyncPoller, WorkspaceInner> beginUpdate(String resourceGroupName, String workspaceName, + WorkspacePatchInfo workspacePatchInfo, Context context); /** * Updates a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param workspacePatchInfo Workspace patch request properties. @@ -116,7 +118,7 @@ SyncPoller, WorkspaceInner> beginUpdate( /** * Updates a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param workspacePatchInfo Workspace patch request properties. @@ -127,12 +129,12 @@ SyncPoller, WorkspaceInner> beginUpdate( * @return a workspace. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkspaceInner update( - String resourceGroupName, String workspaceName, WorkspacePatchInfo workspacePatchInfo, Context context); + WorkspaceInner update(String resourceGroupName, String workspaceName, WorkspacePatchInfo workspacePatchInfo, + Context context); /** * Creates or updates a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param workspaceInfo Workspace create or update request properties. @@ -142,12 +144,12 @@ WorkspaceInner update( * @return the {@link SyncPoller} for polling of a workspace. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, WorkspaceInner> beginCreateOrUpdate( - String resourceGroupName, String workspaceName, WorkspaceInner workspaceInfo); + SyncPoller, WorkspaceInner> beginCreateOrUpdate(String resourceGroupName, + String workspaceName, WorkspaceInner workspaceInfo); /** * Creates or updates a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param workspaceInfo Workspace create or update request properties. @@ -158,12 +160,12 @@ SyncPoller, WorkspaceInner> beginCreateOrUpdate( * @return the {@link SyncPoller} for polling of a workspace. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, WorkspaceInner> beginCreateOrUpdate( - String resourceGroupName, String workspaceName, WorkspaceInner workspaceInfo, Context context); + SyncPoller, WorkspaceInner> beginCreateOrUpdate(String resourceGroupName, + String workspaceName, WorkspaceInner workspaceInfo, Context context); /** * Creates or updates a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param workspaceInfo Workspace create or update request properties. @@ -177,7 +179,7 @@ SyncPoller, WorkspaceInner> beginCreateOrUpdate( /** * Creates or updates a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param workspaceInfo Workspace create or update request properties. @@ -188,12 +190,12 @@ SyncPoller, WorkspaceInner> beginCreateOrUpdate( * @return a workspace. */ @ServiceMethod(returns = ReturnType.SINGLE) - WorkspaceInner createOrUpdate( - String resourceGroupName, String workspaceName, WorkspaceInner workspaceInfo, Context context); + WorkspaceInner createOrUpdate(String resourceGroupName, String workspaceName, WorkspaceInner workspaceInfo, + Context context); /** * Deletes a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -206,7 +208,7 @@ WorkspaceInner createOrUpdate( /** * Deletes a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -216,12 +218,12 @@ WorkspaceInner createOrUpdate( * @return the {@link SyncPoller} for polling of a workspace. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, WorkspaceInner> beginDelete( - String resourceGroupName, String workspaceName, Context context); + SyncPoller, WorkspaceInner> beginDelete(String resourceGroupName, String workspaceName, + Context context); /** * Deletes a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -234,7 +236,7 @@ SyncPoller, WorkspaceInner> beginDelete( /** * Deletes a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -248,7 +250,7 @@ SyncPoller, WorkspaceInner> beginDelete( /** * Returns a list of workspaces 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 list of workspaces as paginated response with {@link PagedIterable}. @@ -258,7 +260,7 @@ SyncPoller, WorkspaceInner> beginDelete( /** * Returns a list of workspaces 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/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AadAdminProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AadAdminProperties.java index 31643a9b5235..6c5e614bd2b4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AadAdminProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AadAdminProperties.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Workspace active directory administrator properties. */ +/** + * Workspace active directory administrator properties. + */ @Fluent public final class AadAdminProperties { /* @@ -34,13 +36,15 @@ public final class AadAdminProperties { @JsonProperty(value = "sid") private String sid; - /** Creates an instance of AadAdminProperties class. */ + /** + * Creates an instance of AadAdminProperties class. + */ public AadAdminProperties() { } /** * Get the tenantId property: Tenant ID of the workspace active directory administrator. - * + * * @return the tenantId value. */ public String tenantId() { @@ -49,7 +53,7 @@ public String tenantId() { /** * Set the tenantId property: Tenant ID of the workspace active directory administrator. - * + * * @param tenantId the tenantId value to set. * @return the AadAdminProperties object itself. */ @@ -60,7 +64,7 @@ public AadAdminProperties withTenantId(String tenantId) { /** * Get the login property: Login of the workspace active directory administrator. - * + * * @return the login value. */ public String login() { @@ -69,7 +73,7 @@ public String login() { /** * Set the login property: Login of the workspace active directory administrator. - * + * * @param login the login value to set. * @return the AadAdminProperties object itself. */ @@ -80,7 +84,7 @@ public AadAdminProperties withLogin(String login) { /** * Get the administratorType property: Workspace active directory administrator type. - * + * * @return the administratorType value. */ public String administratorType() { @@ -89,7 +93,7 @@ public String administratorType() { /** * Set the administratorType property: Workspace active directory administrator type. - * + * * @param administratorType the administratorType value to set. * @return the AadAdminProperties object itself. */ @@ -100,7 +104,7 @@ public AadAdminProperties withAdministratorType(String administratorType) { /** * Get the sid property: Object ID of the workspace active directory administrator. - * + * * @return the sid value. */ public String sid() { @@ -109,7 +113,7 @@ public String sid() { /** * Set the sid property: Object ID of the workspace active directory administrator. - * + * * @param sid the sid value to set. * @return the AadAdminProperties object itself. */ @@ -120,7 +124,7 @@ public AadAdminProperties withSid(String sid) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AttachedDatabaseConfigurationInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AttachedDatabaseConfigurationInner.java index 4ba9c9bcc041..e6e31a699359 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AttachedDatabaseConfigurationInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AttachedDatabaseConfigurationInner.java @@ -13,7 +13,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Class representing an attached database configuration. */ +/** + * Class representing an attached database configuration. + */ @Fluent public final class AttachedDatabaseConfigurationInner extends ProxyResource { /* @@ -34,13 +36,15 @@ public final class AttachedDatabaseConfigurationInner extends ProxyResource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; - /** Creates an instance of AttachedDatabaseConfigurationInner class. */ + /** + * Creates an instance of AttachedDatabaseConfigurationInner class. + */ public AttachedDatabaseConfigurationInner() { } /** * Get the location property: Resource location. - * + * * @return the location value. */ public String location() { @@ -49,7 +53,7 @@ public String location() { /** * Set the location property: Resource location. - * + * * @param location the location value to set. * @return the AttachedDatabaseConfigurationInner object itself. */ @@ -60,7 +64,7 @@ public AttachedDatabaseConfigurationInner withLocation(String location) { /** * Get the innerProperties property: The properties of the attached database configuration. - * + * * @return the innerProperties value. */ private AttachedDatabaseConfigurationProperties innerProperties() { @@ -69,7 +73,7 @@ private AttachedDatabaseConfigurationProperties innerProperties() { /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ public SystemData systemData() { @@ -78,7 +82,7 @@ public SystemData systemData() { /** * Get the provisioningState property: The provisioned state of the resource. - * + * * @return the provisioningState value. */ public ResourceProvisioningState provisioningState() { @@ -88,7 +92,7 @@ public ResourceProvisioningState provisioningState() { /** * Get the databaseName property: The name of the database which you would like to attach, use * if you want to * follow all current and future databases. - * + * * @return the databaseName value. */ public String databaseName() { @@ -98,7 +102,7 @@ public String databaseName() { /** * Set the databaseName property: The name of the database which you would like to attach, use * if you want to * follow all current and future databases. - * + * * @param databaseName the databaseName value to set. * @return the AttachedDatabaseConfigurationInner object itself. */ @@ -113,7 +117,7 @@ public AttachedDatabaseConfigurationInner withDatabaseName(String databaseName) /** * Get the kustoPoolResourceId property: The resource id of the kusto pool where the databases you would like to * attach reside. - * + * * @return the kustoPoolResourceId value. */ public String kustoPoolResourceId() { @@ -123,7 +127,7 @@ public String kustoPoolResourceId() { /** * Set the kustoPoolResourceId property: The resource id of the kusto pool where the databases you would like to * attach reside. - * + * * @param kustoPoolResourceId the kustoPoolResourceId value to set. * @return the AttachedDatabaseConfigurationInner object itself. */ @@ -138,7 +142,7 @@ public AttachedDatabaseConfigurationInner withKustoPoolResourceId(String kustoPo /** * Get the attachedDatabaseNames property: The list of databases from the clusterResourceId which are currently * attached to the kusto pool. - * + * * @return the attachedDatabaseNames value. */ public List attachedDatabaseNames() { @@ -147,7 +151,7 @@ public List attachedDatabaseNames() { /** * Get the defaultPrincipalsModificationKind property: The default principals modification kind. - * + * * @return the defaultPrincipalsModificationKind value. */ public DefaultPrincipalsModificationKind defaultPrincipalsModificationKind() { @@ -156,12 +160,12 @@ public DefaultPrincipalsModificationKind defaultPrincipalsModificationKind() { /** * Set the defaultPrincipalsModificationKind property: The default principals modification kind. - * + * * @param defaultPrincipalsModificationKind the defaultPrincipalsModificationKind value to set. * @return the AttachedDatabaseConfigurationInner object itself. */ - public AttachedDatabaseConfigurationInner withDefaultPrincipalsModificationKind( - DefaultPrincipalsModificationKind defaultPrincipalsModificationKind) { + public AttachedDatabaseConfigurationInner + withDefaultPrincipalsModificationKind(DefaultPrincipalsModificationKind defaultPrincipalsModificationKind) { if (this.innerProperties() == null) { this.innerProperties = new AttachedDatabaseConfigurationProperties(); } @@ -171,7 +175,7 @@ public AttachedDatabaseConfigurationInner withDefaultPrincipalsModificationKind( /** * Get the tableLevelSharingProperties property: Table level sharing specifications. - * + * * @return the tableLevelSharingProperties value. */ public TableLevelSharingProperties tableLevelSharingProperties() { @@ -180,12 +184,12 @@ public TableLevelSharingProperties tableLevelSharingProperties() { /** * Set the tableLevelSharingProperties property: Table level sharing specifications. - * + * * @param tableLevelSharingProperties the tableLevelSharingProperties value to set. * @return the AttachedDatabaseConfigurationInner object itself. */ - public AttachedDatabaseConfigurationInner withTableLevelSharingProperties( - TableLevelSharingProperties tableLevelSharingProperties) { + public AttachedDatabaseConfigurationInner + withTableLevelSharingProperties(TableLevelSharingProperties tableLevelSharingProperties) { if (this.innerProperties() == null) { this.innerProperties = new AttachedDatabaseConfigurationProperties(); } @@ -195,7 +199,7 @@ public AttachedDatabaseConfigurationInner withTableLevelSharingProperties( /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AttachedDatabaseConfigurationProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AttachedDatabaseConfigurationProperties.java index 27d26a4dd020..5560f1c66f1a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AttachedDatabaseConfigurationProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AttachedDatabaseConfigurationProperties.java @@ -12,7 +12,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Class representing the an attached database configuration properties of kind specific. */ +/** + * Class representing the an attached database configuration properties of kind specific. + */ @Fluent public final class AttachedDatabaseConfigurationProperties { /* @@ -52,13 +54,15 @@ public final class AttachedDatabaseConfigurationProperties { @JsonProperty(value = "tableLevelSharingProperties") private TableLevelSharingProperties tableLevelSharingProperties; - /** Creates an instance of AttachedDatabaseConfigurationProperties class. */ + /** + * Creates an instance of AttachedDatabaseConfigurationProperties class. + */ public AttachedDatabaseConfigurationProperties() { } /** * Get the provisioningState property: The provisioned state of the resource. - * + * * @return the provisioningState value. */ public ResourceProvisioningState provisioningState() { @@ -68,7 +72,7 @@ public ResourceProvisioningState provisioningState() { /** * Get the databaseName property: The name of the database which you would like to attach, use * if you want to * follow all current and future databases. - * + * * @return the databaseName value. */ public String databaseName() { @@ -78,7 +82,7 @@ public String databaseName() { /** * Set the databaseName property: The name of the database which you would like to attach, use * if you want to * follow all current and future databases. - * + * * @param databaseName the databaseName value to set. * @return the AttachedDatabaseConfigurationProperties object itself. */ @@ -90,7 +94,7 @@ public AttachedDatabaseConfigurationProperties withDatabaseName(String databaseN /** * Get the kustoPoolResourceId property: The resource id of the kusto pool where the databases you would like to * attach reside. - * + * * @return the kustoPoolResourceId value. */ public String kustoPoolResourceId() { @@ -100,7 +104,7 @@ public String kustoPoolResourceId() { /** * Set the kustoPoolResourceId property: The resource id of the kusto pool where the databases you would like to * attach reside. - * + * * @param kustoPoolResourceId the kustoPoolResourceId value to set. * @return the AttachedDatabaseConfigurationProperties object itself. */ @@ -112,7 +116,7 @@ public AttachedDatabaseConfigurationProperties withKustoPoolResourceId(String ku /** * Get the attachedDatabaseNames property: The list of databases from the clusterResourceId which are currently * attached to the kusto pool. - * + * * @return the attachedDatabaseNames value. */ public List attachedDatabaseNames() { @@ -121,7 +125,7 @@ public List attachedDatabaseNames() { /** * Get the defaultPrincipalsModificationKind property: The default principals modification kind. - * + * * @return the defaultPrincipalsModificationKind value. */ public DefaultPrincipalsModificationKind defaultPrincipalsModificationKind() { @@ -130,19 +134,19 @@ public DefaultPrincipalsModificationKind defaultPrincipalsModificationKind() { /** * Set the defaultPrincipalsModificationKind property: The default principals modification kind. - * + * * @param defaultPrincipalsModificationKind the defaultPrincipalsModificationKind value to set. * @return the AttachedDatabaseConfigurationProperties object itself. */ - public AttachedDatabaseConfigurationProperties withDefaultPrincipalsModificationKind( - DefaultPrincipalsModificationKind defaultPrincipalsModificationKind) { + public AttachedDatabaseConfigurationProperties + withDefaultPrincipalsModificationKind(DefaultPrincipalsModificationKind defaultPrincipalsModificationKind) { this.defaultPrincipalsModificationKind = defaultPrincipalsModificationKind; return this; } /** * Get the tableLevelSharingProperties property: Table level sharing specifications. - * + * * @return the tableLevelSharingProperties value. */ public TableLevelSharingProperties tableLevelSharingProperties() { @@ -151,41 +155,33 @@ public TableLevelSharingProperties tableLevelSharingProperties() { /** * Set the tableLevelSharingProperties property: Table level sharing specifications. - * + * * @param tableLevelSharingProperties the tableLevelSharingProperties value to set. * @return the AttachedDatabaseConfigurationProperties object itself. */ - public AttachedDatabaseConfigurationProperties withTableLevelSharingProperties( - TableLevelSharingProperties tableLevelSharingProperties) { + public AttachedDatabaseConfigurationProperties + withTableLevelSharingProperties(TableLevelSharingProperties tableLevelSharingProperties) { this.tableLevelSharingProperties = tableLevelSharingProperties; return this; } /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (databaseName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property databaseName in model AttachedDatabaseConfigurationProperties")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property databaseName in model AttachedDatabaseConfigurationProperties")); } if (kustoPoolResourceId() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property kustoPoolResourceId in model" - + " AttachedDatabaseConfigurationProperties")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property kustoPoolResourceId in model AttachedDatabaseConfigurationProperties")); } if (defaultPrincipalsModificationKind() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property defaultPrincipalsModificationKind in model" - + " AttachedDatabaseConfigurationProperties")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property defaultPrincipalsModificationKind in model AttachedDatabaseConfigurationProperties")); } if (tableLevelSharingProperties() != null) { tableLevelSharingProperties().validate(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AvailableRpOperationInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AvailableRpOperationInner.java index d72e4044700c..affb2ab01981 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AvailableRpOperationInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AvailableRpOperationInner.java @@ -9,7 +9,9 @@ import com.azure.resourcemanager.synapse.models.OperationMetaServiceSpecification; import com.fasterxml.jackson.annotation.JsonProperty; -/** An operation that is available in this resource provider. */ +/** + * An operation that is available in this resource provider. + */ @Fluent public final class AvailableRpOperationInner { /* @@ -42,13 +44,15 @@ public final class AvailableRpOperationInner { @JsonProperty(value = "origin") private String origin; - /** Creates an instance of AvailableRpOperationInner class. */ + /** + * Creates an instance of AvailableRpOperationInner class. + */ public AvailableRpOperationInner() { } /** * Get the display property: Display properties of the operation. - * + * * @return the display value. */ public AvailableRpOperationDisplayInfo display() { @@ -57,7 +61,7 @@ public AvailableRpOperationDisplayInfo display() { /** * Set the display property: Display properties of the operation. - * + * * @param display the display value to set. * @return the AvailableRpOperationInner object itself. */ @@ -68,7 +72,7 @@ public AvailableRpOperationInner withDisplay(AvailableRpOperationDisplayInfo dis /** * Get the isDataAction property: Whether this operation is a data action. - * + * * @return the isDataAction value. */ public String isDataAction() { @@ -77,7 +81,7 @@ public String isDataAction() { /** * Set the isDataAction property: Whether this operation is a data action. - * + * * @param isDataAction the isDataAction value to set. * @return the AvailableRpOperationInner object itself. */ @@ -88,7 +92,7 @@ public AvailableRpOperationInner withIsDataAction(String isDataAction) { /** * Get the name property: Operation name. - * + * * @return the name value. */ public String name() { @@ -97,7 +101,7 @@ public String name() { /** * Set the name property: Operation name. - * + * * @param name the name value to set. * @return the AvailableRpOperationInner object itself. */ @@ -108,7 +112,7 @@ public AvailableRpOperationInner withName(String name) { /** * Get the innerProperties property: Operation properties. - * + * * @return the innerProperties value. */ private OperationMetaPropertyInfo innerProperties() { @@ -117,7 +121,7 @@ private OperationMetaPropertyInfo innerProperties() { /** * Get the origin property: Operation origin. - * + * * @return the origin value. */ public String origin() { @@ -126,7 +130,7 @@ public String origin() { /** * Set the origin property: Operation origin. - * + * * @param origin the origin value to set. * @return the AvailableRpOperationInner object itself. */ @@ -137,7 +141,7 @@ public AvailableRpOperationInner withOrigin(String origin) { /** * Get the serviceSpecification property: Operation service specification. - * + * * @return the serviceSpecification value. */ public OperationMetaServiceSpecification serviceSpecification() { @@ -146,7 +150,7 @@ public OperationMetaServiceSpecification serviceSpecification() { /** * Set the serviceSpecification property: Operation service specification. - * + * * @param serviceSpecification the serviceSpecification value to set. * @return the AvailableRpOperationInner object itself. */ @@ -160,7 +164,7 @@ public AvailableRpOperationInner withServiceSpecification(OperationMetaServiceSp /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AzureADOnlyAuthenticationInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AzureADOnlyAuthenticationInner.java index 7055740c5ba5..14a4c415bc97 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AzureADOnlyAuthenticationInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AzureADOnlyAuthenticationInner.java @@ -10,7 +10,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; -/** Azure Active Directory Only Authentication Info. */ +/** + * Azure Active Directory Only Authentication Info. + */ @Fluent public final class AzureADOnlyAuthenticationInner extends ProxyResource { /* @@ -19,13 +21,15 @@ public final class AzureADOnlyAuthenticationInner extends ProxyResource { @JsonProperty(value = "properties") private AzureADOnlyAuthenticationProperties innerProperties; - /** Creates an instance of AzureADOnlyAuthenticationInner class. */ + /** + * Creates an instance of AzureADOnlyAuthenticationInner class. + */ public AzureADOnlyAuthenticationInner() { } /** * Get the innerProperties property: azureADOnlyAuthentication resource properties. - * + * * @return the innerProperties value. */ private AzureADOnlyAuthenticationProperties innerProperties() { @@ -34,7 +38,7 @@ private AzureADOnlyAuthenticationProperties innerProperties() { /** * Get the azureADOnlyAuthentication property: Azure Active Directory only Authentication enabled. - * + * * @return the azureADOnlyAuthentication value. */ public Boolean azureADOnlyAuthentication() { @@ -43,7 +47,7 @@ public Boolean azureADOnlyAuthentication() { /** * Set the azureADOnlyAuthentication property: Azure Active Directory only Authentication enabled. - * + * * @param azureADOnlyAuthentication the azureADOnlyAuthentication value to set. * @return the AzureADOnlyAuthenticationInner object itself. */ @@ -57,7 +61,7 @@ public AzureADOnlyAuthenticationInner withAzureADOnlyAuthentication(Boolean azur /** * Get the state property: property configuration state. - * + * * @return the state value. */ public StateValue state() { @@ -66,7 +70,7 @@ public StateValue state() { /** * Get the creationDate property: property configuration date. - * + * * @return the creationDate value. */ public OffsetDateTime creationDate() { @@ -75,7 +79,7 @@ public OffsetDateTime creationDate() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AzureADOnlyAuthenticationProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AzureADOnlyAuthenticationProperties.java index 9b1acc2dd805..6c917d6ef6ca 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AzureADOnlyAuthenticationProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AzureADOnlyAuthenticationProperties.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; -/** Properties of a active directory only authentication. */ +/** + * Properties of a active directory only authentication. + */ @Fluent public final class AzureADOnlyAuthenticationProperties { /* @@ -30,13 +32,15 @@ public final class AzureADOnlyAuthenticationProperties { @JsonProperty(value = "creationDate", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime creationDate; - /** Creates an instance of AzureADOnlyAuthenticationProperties class. */ + /** + * Creates an instance of AzureADOnlyAuthenticationProperties class. + */ public AzureADOnlyAuthenticationProperties() { } /** * Get the azureADOnlyAuthentication property: Azure Active Directory only Authentication enabled. - * + * * @return the azureADOnlyAuthentication value. */ public boolean azureADOnlyAuthentication() { @@ -45,7 +49,7 @@ public boolean azureADOnlyAuthentication() { /** * Set the azureADOnlyAuthentication property: Azure Active Directory only Authentication enabled. - * + * * @param azureADOnlyAuthentication the azureADOnlyAuthentication value to set. * @return the AzureADOnlyAuthenticationProperties object itself. */ @@ -56,7 +60,7 @@ public AzureADOnlyAuthenticationProperties withAzureADOnlyAuthentication(boolean /** * Get the state property: property configuration state. - * + * * @return the state value. */ public StateValue state() { @@ -65,7 +69,7 @@ public StateValue state() { /** * Get the creationDate property: property configuration date. - * + * * @return the creationDate value. */ public OffsetDateTime creationDate() { @@ -74,7 +78,7 @@ public OffsetDateTime creationDate() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AzureResourceSkuInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AzureResourceSkuInner.java index 3088ada4c84d..2715381ca7ad 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AzureResourceSkuInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/AzureResourceSkuInner.java @@ -9,7 +9,9 @@ import com.azure.resourcemanager.synapse.models.AzureSku; import com.fasterxml.jackson.annotation.JsonProperty; -/** Azure resource SKU definition. */ +/** + * Azure resource SKU definition. + */ @Fluent public final class AzureResourceSkuInner { /* @@ -30,13 +32,15 @@ public final class AzureResourceSkuInner { @JsonProperty(value = "capacity") private AzureCapacity capacity; - /** Creates an instance of AzureResourceSkuInner class. */ + /** + * Creates an instance of AzureResourceSkuInner class. + */ public AzureResourceSkuInner() { } /** * Get the resourceType property: Resource Namespace and Type. - * + * * @return the resourceType value. */ public String resourceType() { @@ -45,7 +49,7 @@ public String resourceType() { /** * Set the resourceType property: Resource Namespace and Type. - * + * * @param resourceType the resourceType value to set. * @return the AzureResourceSkuInner object itself. */ @@ -56,7 +60,7 @@ public AzureResourceSkuInner withResourceType(String resourceType) { /** * Get the sku property: The SKU details. - * + * * @return the sku value. */ public AzureSku sku() { @@ -65,7 +69,7 @@ public AzureSku sku() { /** * Set the sku property: The SKU details. - * + * * @param sku the sku value to set. * @return the AzureResourceSkuInner object itself. */ @@ -76,7 +80,7 @@ public AzureResourceSkuInner withSku(AzureSku sku) { /** * Get the capacity property: The number of instances of the cluster. - * + * * @return the capacity value. */ public AzureCapacity capacity() { @@ -85,7 +89,7 @@ public AzureCapacity capacity() { /** * Set the capacity property: The number of instances of the cluster. - * + * * @param capacity the capacity value to set. * @return the AzureResourceSkuInner object itself. */ @@ -96,7 +100,7 @@ public AzureResourceSkuInner withCapacity(AzureCapacity capacity) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/BigDataPoolResourceInfoInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/BigDataPoolResourceInfoInner.java index 0dbd26c0bf60..8fd466acb0c5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/BigDataPoolResourceInfoInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/BigDataPoolResourceInfoInner.java @@ -20,42 +20,48 @@ /** * Big Data pool - * - *

A Big Data pool. + * + * A Big Data pool. */ @Fluent public final class BigDataPoolResourceInfoInner extends Resource { /* * Spark pool properties - * + * * Big Data pool properties */ @JsonProperty(value = "properties") private BigDataPoolResourceProperties innerProperties; - /** Creates an instance of BigDataPoolResourceInfoInner class. */ + /** + * Creates an instance of BigDataPoolResourceInfoInner class. + */ public BigDataPoolResourceInfoInner() { } /** * Get the innerProperties property: Spark pool properties - * - *

Big Data pool properties. - * + * + * Big Data pool properties. + * * @return the innerProperties value. */ private BigDataPoolResourceProperties innerProperties() { return this.innerProperties; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public BigDataPoolResourceInfoInner withLocation(String location) { super.withLocation(location); return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public BigDataPoolResourceInfoInner withTags(Map tags) { super.withTags(tags); @@ -64,7 +70,7 @@ public BigDataPoolResourceInfoInner withTags(Map tags) { /** * Get the provisioningState property: The state of the Big Data pool. - * + * * @return the provisioningState value. */ public String provisioningState() { @@ -73,7 +79,7 @@ public String provisioningState() { /** * Set the provisioningState property: The state of the Big Data pool. - * + * * @param provisioningState the provisioningState value to set. * @return the BigDataPoolResourceInfoInner object itself. */ @@ -87,9 +93,9 @@ public BigDataPoolResourceInfoInner withProvisioningState(String provisioningSta /** * Get the autoScale property: Spark pool auto-scaling properties - * - *

Auto-scaling properties. - * + * + * Auto-scaling properties. + * * @return the autoScale value. */ public AutoScaleProperties autoScale() { @@ -98,9 +104,9 @@ public AutoScaleProperties autoScale() { /** * Set the autoScale property: Spark pool auto-scaling properties - * - *

Auto-scaling properties. - * + * + * Auto-scaling properties. + * * @param autoScale the autoScale value to set. * @return the BigDataPoolResourceInfoInner object itself. */ @@ -114,7 +120,7 @@ public BigDataPoolResourceInfoInner withAutoScale(AutoScaleProperties autoScale) /** * Get the creationDate property: The time when the Big Data pool was created. - * + * * @return the creationDate value. */ public OffsetDateTime creationDate() { @@ -123,9 +129,9 @@ public OffsetDateTime creationDate() { /** * Get the autoPause property: Spark pool auto-pausing properties - * - *

Auto-pausing properties. - * + * + * Auto-pausing properties. + * * @return the autoPause value. */ public AutoPauseProperties autoPause() { @@ -134,9 +140,9 @@ public AutoPauseProperties autoPause() { /** * Set the autoPause property: Spark pool auto-pausing properties - * - *

Auto-pausing properties. - * + * + * Auto-pausing properties. + * * @param autoPause the autoPause value to set. * @return the BigDataPoolResourceInfoInner object itself. */ @@ -150,7 +156,7 @@ public BigDataPoolResourceInfoInner withAutoPause(AutoPauseProperties autoPause) /** * Get the isComputeIsolationEnabled property: Whether compute isolation is required or not. - * + * * @return the isComputeIsolationEnabled value. */ public Boolean isComputeIsolationEnabled() { @@ -159,7 +165,7 @@ public Boolean isComputeIsolationEnabled() { /** * Set the isComputeIsolationEnabled property: Whether compute isolation is required or not. - * + * * @param isComputeIsolationEnabled the isComputeIsolationEnabled value to set. * @return the BigDataPoolResourceInfoInner object itself. */ @@ -173,9 +179,9 @@ public BigDataPoolResourceInfoInner withIsComputeIsolationEnabled(Boolean isComp /** * Get the isAutotuneEnabled property: Enable Autotune - * - *

Whether autotune is required or not. - * + * + * Whether autotune is required or not. + * * @return the isAutotuneEnabled value. */ public Boolean isAutotuneEnabled() { @@ -184,9 +190,9 @@ public Boolean isAutotuneEnabled() { /** * Set the isAutotuneEnabled property: Enable Autotune - * - *

Whether autotune is required or not. - * + * + * Whether autotune is required or not. + * * @param isAutotuneEnabled the isAutotuneEnabled value to set. * @return the BigDataPoolResourceInfoInner object itself. */ @@ -200,7 +206,7 @@ public BigDataPoolResourceInfoInner withIsAutotuneEnabled(Boolean isAutotuneEnab /** * Get the sessionLevelPackagesEnabled property: Whether session level packages enabled. - * + * * @return the sessionLevelPackagesEnabled value. */ public Boolean sessionLevelPackagesEnabled() { @@ -209,7 +215,7 @@ public Boolean sessionLevelPackagesEnabled() { /** * Set the sessionLevelPackagesEnabled property: Whether session level packages enabled. - * + * * @param sessionLevelPackagesEnabled the sessionLevelPackagesEnabled value to set. * @return the BigDataPoolResourceInfoInner object itself. */ @@ -223,16 +229,30 @@ public BigDataPoolResourceInfoInner withSessionLevelPackagesEnabled(Boolean sess /** * Get the cacheSize property: The cache size. - * + * * @return the cacheSize value. */ public Integer cacheSize() { return this.innerProperties() == null ? null : this.innerProperties().cacheSize(); } + /** + * Set the cacheSize property: The cache size. + * + * @param cacheSize the cacheSize value to set. + * @return the BigDataPoolResourceInfoInner object itself. + */ + public BigDataPoolResourceInfoInner withCacheSize(Integer cacheSize) { + if (this.innerProperties() == null) { + this.innerProperties = new BigDataPoolResourceProperties(); + } + this.innerProperties().withCacheSize(cacheSize); + return this; + } + /** * Get the dynamicExecutorAllocation property: Dynamic Executor Allocation. - * + * * @return the dynamicExecutorAllocation value. */ public DynamicExecutorAllocation dynamicExecutorAllocation() { @@ -241,12 +261,12 @@ public DynamicExecutorAllocation dynamicExecutorAllocation() { /** * Set the dynamicExecutorAllocation property: Dynamic Executor Allocation. - * + * * @param dynamicExecutorAllocation the dynamicExecutorAllocation value to set. * @return the BigDataPoolResourceInfoInner object itself. */ - public BigDataPoolResourceInfoInner withDynamicExecutorAllocation( - DynamicExecutorAllocation dynamicExecutorAllocation) { + public BigDataPoolResourceInfoInner + withDynamicExecutorAllocation(DynamicExecutorAllocation dynamicExecutorAllocation) { if (this.innerProperties() == null) { this.innerProperties = new BigDataPoolResourceProperties(); } @@ -256,7 +276,7 @@ public BigDataPoolResourceInfoInner withDynamicExecutorAllocation( /** * Get the sparkEventsFolder property: The Spark events folder. - * + * * @return the sparkEventsFolder value. */ public String sparkEventsFolder() { @@ -265,7 +285,7 @@ public String sparkEventsFolder() { /** * Set the sparkEventsFolder property: The Spark events folder. - * + * * @param sparkEventsFolder the sparkEventsFolder value to set. * @return the BigDataPoolResourceInfoInner object itself. */ @@ -279,7 +299,7 @@ public BigDataPoolResourceInfoInner withSparkEventsFolder(String sparkEventsFold /** * Get the nodeCount property: The number of nodes in the Big Data pool. - * + * * @return the nodeCount value. */ public Integer nodeCount() { @@ -288,7 +308,7 @@ public Integer nodeCount() { /** * Set the nodeCount property: The number of nodes in the Big Data pool. - * + * * @param nodeCount the nodeCount value to set. * @return the BigDataPoolResourceInfoInner object itself. */ @@ -302,9 +322,9 @@ public BigDataPoolResourceInfoInner withNodeCount(Integer nodeCount) { /** * Get the libraryRequirements property: Spark pool library version requirements - * - *

Library version requirements. - * + * + * Library version requirements. + * * @return the libraryRequirements value. */ public LibraryRequirements libraryRequirements() { @@ -313,9 +333,9 @@ public LibraryRequirements libraryRequirements() { /** * Set the libraryRequirements property: Spark pool library version requirements - * - *

Library version requirements. - * + * + * Library version requirements. + * * @param libraryRequirements the libraryRequirements value to set. * @return the BigDataPoolResourceInfoInner object itself. */ @@ -329,7 +349,7 @@ public BigDataPoolResourceInfoInner withLibraryRequirements(LibraryRequirements /** * Get the customLibraries property: List of custom libraries/packages associated with the spark pool. - * + * * @return the customLibraries value. */ public List customLibraries() { @@ -338,7 +358,7 @@ public List customLibraries() { /** * Set the customLibraries property: List of custom libraries/packages associated with the spark pool. - * + * * @param customLibraries the customLibraries value to set. * @return the BigDataPoolResourceInfoInner object itself. */ @@ -352,9 +372,9 @@ public BigDataPoolResourceInfoInner withCustomLibraries(List custom /** * Get the sparkConfigProperties property: Spark pool Config Properties - * - *

Spark configuration file to specify additional properties. - * + * + * Spark configuration file to specify additional properties. + * * @return the sparkConfigProperties value. */ public SparkConfigProperties sparkConfigProperties() { @@ -363,9 +383,9 @@ public SparkConfigProperties sparkConfigProperties() { /** * Set the sparkConfigProperties property: Spark pool Config Properties - * - *

Spark configuration file to specify additional properties. - * + * + * Spark configuration file to specify additional properties. + * * @param sparkConfigProperties the sparkConfigProperties value to set. * @return the BigDataPoolResourceInfoInner object itself. */ @@ -379,7 +399,7 @@ public BigDataPoolResourceInfoInner withSparkConfigProperties(SparkConfigPropert /** * Get the sparkVersion property: The Apache Spark version. - * + * * @return the sparkVersion value. */ public String sparkVersion() { @@ -388,7 +408,7 @@ public String sparkVersion() { /** * Set the sparkVersion property: The Apache Spark version. - * + * * @param sparkVersion the sparkVersion value to set. * @return the BigDataPoolResourceInfoInner object itself. */ @@ -402,7 +422,7 @@ public BigDataPoolResourceInfoInner withSparkVersion(String sparkVersion) { /** * Get the defaultSparkLogFolder property: The default folder where Spark logs will be written. - * + * * @return the defaultSparkLogFolder value. */ public String defaultSparkLogFolder() { @@ -411,7 +431,7 @@ public String defaultSparkLogFolder() { /** * Set the defaultSparkLogFolder property: The default folder where Spark logs will be written. - * + * * @param defaultSparkLogFolder the defaultSparkLogFolder value to set. * @return the BigDataPoolResourceInfoInner object itself. */ @@ -425,7 +445,7 @@ public BigDataPoolResourceInfoInner withDefaultSparkLogFolder(String defaultSpar /** * Get the nodeSize property: The level of compute power that each node in the Big Data pool has. - * + * * @return the nodeSize value. */ public NodeSize nodeSize() { @@ -434,7 +454,7 @@ public NodeSize nodeSize() { /** * Set the nodeSize property: The level of compute power that each node in the Big Data pool has. - * + * * @param nodeSize the nodeSize value to set. * @return the BigDataPoolResourceInfoInner object itself. */ @@ -448,7 +468,7 @@ public BigDataPoolResourceInfoInner withNodeSize(NodeSize nodeSize) { /** * Get the nodeSizeFamily property: The kind of nodes that the Big Data pool provides. - * + * * @return the nodeSizeFamily value. */ public NodeSizeFamily nodeSizeFamily() { @@ -457,7 +477,7 @@ public NodeSizeFamily nodeSizeFamily() { /** * Set the nodeSizeFamily property: The kind of nodes that the Big Data pool provides. - * + * * @param nodeSizeFamily the nodeSizeFamily value to set. * @return the BigDataPoolResourceInfoInner object itself. */ @@ -471,7 +491,7 @@ public BigDataPoolResourceInfoInner withNodeSizeFamily(NodeSizeFamily nodeSizeFa /** * Get the lastSucceededTimestamp property: The time when the Big Data pool was updated successfully. - * + * * @return the lastSucceededTimestamp value. */ public OffsetDateTime lastSucceededTimestamp() { @@ -480,7 +500,7 @@ public OffsetDateTime lastSucceededTimestamp() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/BigDataPoolResourceProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/BigDataPoolResourceProperties.java index bd1ac2439e50..4147f75e8402 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/BigDataPoolResourceProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/BigDataPoolResourceProperties.java @@ -18,8 +18,8 @@ /** * Spark pool properties - * - *

Properties of a Big Data pool powered by Apache Spark. + * + * Properties of a Big Data pool powered by Apache Spark. */ @Fluent public final class BigDataPoolResourceProperties { @@ -31,7 +31,7 @@ public final class BigDataPoolResourceProperties { /* * Spark pool auto-scaling properties - * + * * Auto-scaling properties */ @JsonProperty(value = "autoScale") @@ -45,7 +45,7 @@ public final class BigDataPoolResourceProperties { /* * Spark pool auto-pausing properties - * + * * Auto-pausing properties */ @JsonProperty(value = "autoPause") @@ -59,7 +59,7 @@ public final class BigDataPoolResourceProperties { /* * Enable Autotune - * + * * Whether autotune is required or not. */ @JsonProperty(value = "isAutotuneEnabled") @@ -74,7 +74,7 @@ public final class BigDataPoolResourceProperties { /* * The cache size */ - @JsonProperty(value = "cacheSize", access = JsonProperty.Access.WRITE_ONLY) + @JsonProperty(value = "cacheSize") private Integer cacheSize; /* @@ -97,7 +97,7 @@ public final class BigDataPoolResourceProperties { /* * Spark pool library version requirements - * + * * Library version requirements */ @JsonProperty(value = "libraryRequirements") @@ -111,7 +111,7 @@ public final class BigDataPoolResourceProperties { /* * Spark pool Config Properties - * + * * Spark configuration file to specify additional properties */ @JsonProperty(value = "sparkConfigProperties") @@ -147,13 +147,15 @@ public final class BigDataPoolResourceProperties { @JsonProperty(value = "lastSucceededTimestamp", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime lastSucceededTimestamp; - /** Creates an instance of BigDataPoolResourceProperties class. */ + /** + * Creates an instance of BigDataPoolResourceProperties class. + */ public BigDataPoolResourceProperties() { } /** * Get the provisioningState property: The state of the Big Data pool. - * + * * @return the provisioningState value. */ public String provisioningState() { @@ -162,7 +164,7 @@ public String provisioningState() { /** * Set the provisioningState property: The state of the Big Data pool. - * + * * @param provisioningState the provisioningState value to set. * @return the BigDataPoolResourceProperties object itself. */ @@ -173,9 +175,9 @@ public BigDataPoolResourceProperties withProvisioningState(String provisioningSt /** * Get the autoScale property: Spark pool auto-scaling properties - * - *

Auto-scaling properties. - * + * + * Auto-scaling properties. + * * @return the autoScale value. */ public AutoScaleProperties autoScale() { @@ -184,9 +186,9 @@ public AutoScaleProperties autoScale() { /** * Set the autoScale property: Spark pool auto-scaling properties - * - *

Auto-scaling properties. - * + * + * Auto-scaling properties. + * * @param autoScale the autoScale value to set. * @return the BigDataPoolResourceProperties object itself. */ @@ -197,7 +199,7 @@ public BigDataPoolResourceProperties withAutoScale(AutoScaleProperties autoScale /** * Get the creationDate property: The time when the Big Data pool was created. - * + * * @return the creationDate value. */ public OffsetDateTime creationDate() { @@ -206,9 +208,9 @@ public OffsetDateTime creationDate() { /** * Get the autoPause property: Spark pool auto-pausing properties - * - *

Auto-pausing properties. - * + * + * Auto-pausing properties. + * * @return the autoPause value. */ public AutoPauseProperties autoPause() { @@ -217,9 +219,9 @@ public AutoPauseProperties autoPause() { /** * Set the autoPause property: Spark pool auto-pausing properties - * - *

Auto-pausing properties. - * + * + * Auto-pausing properties. + * * @param autoPause the autoPause value to set. * @return the BigDataPoolResourceProperties object itself. */ @@ -230,7 +232,7 @@ public BigDataPoolResourceProperties withAutoPause(AutoPauseProperties autoPause /** * Get the isComputeIsolationEnabled property: Whether compute isolation is required or not. - * + * * @return the isComputeIsolationEnabled value. */ public Boolean isComputeIsolationEnabled() { @@ -239,7 +241,7 @@ public Boolean isComputeIsolationEnabled() { /** * Set the isComputeIsolationEnabled property: Whether compute isolation is required or not. - * + * * @param isComputeIsolationEnabled the isComputeIsolationEnabled value to set. * @return the BigDataPoolResourceProperties object itself. */ @@ -250,9 +252,9 @@ public BigDataPoolResourceProperties withIsComputeIsolationEnabled(Boolean isCom /** * Get the isAutotuneEnabled property: Enable Autotune - * - *

Whether autotune is required or not. - * + * + * Whether autotune is required or not. + * * @return the isAutotuneEnabled value. */ public Boolean isAutotuneEnabled() { @@ -261,9 +263,9 @@ public Boolean isAutotuneEnabled() { /** * Set the isAutotuneEnabled property: Enable Autotune - * - *

Whether autotune is required or not. - * + * + * Whether autotune is required or not. + * * @param isAutotuneEnabled the isAutotuneEnabled value to set. * @return the BigDataPoolResourceProperties object itself. */ @@ -274,7 +276,7 @@ public BigDataPoolResourceProperties withIsAutotuneEnabled(Boolean isAutotuneEna /** * Get the sessionLevelPackagesEnabled property: Whether session level packages enabled. - * + * * @return the sessionLevelPackagesEnabled value. */ public Boolean sessionLevelPackagesEnabled() { @@ -283,7 +285,7 @@ public Boolean sessionLevelPackagesEnabled() { /** * Set the sessionLevelPackagesEnabled property: Whether session level packages enabled. - * + * * @param sessionLevelPackagesEnabled the sessionLevelPackagesEnabled value to set. * @return the BigDataPoolResourceProperties object itself. */ @@ -294,16 +296,27 @@ public BigDataPoolResourceProperties withSessionLevelPackagesEnabled(Boolean ses /** * Get the cacheSize property: The cache size. - * + * * @return the cacheSize value. */ public Integer cacheSize() { return this.cacheSize; } + /** + * Set the cacheSize property: The cache size. + * + * @param cacheSize the cacheSize value to set. + * @return the BigDataPoolResourceProperties object itself. + */ + public BigDataPoolResourceProperties withCacheSize(Integer cacheSize) { + this.cacheSize = cacheSize; + return this; + } + /** * Get the dynamicExecutorAllocation property: Dynamic Executor Allocation. - * + * * @return the dynamicExecutorAllocation value. */ public DynamicExecutorAllocation dynamicExecutorAllocation() { @@ -312,19 +325,19 @@ public DynamicExecutorAllocation dynamicExecutorAllocation() { /** * Set the dynamicExecutorAllocation property: Dynamic Executor Allocation. - * + * * @param dynamicExecutorAllocation the dynamicExecutorAllocation value to set. * @return the BigDataPoolResourceProperties object itself. */ - public BigDataPoolResourceProperties withDynamicExecutorAllocation( - DynamicExecutorAllocation dynamicExecutorAllocation) { + public BigDataPoolResourceProperties + withDynamicExecutorAllocation(DynamicExecutorAllocation dynamicExecutorAllocation) { this.dynamicExecutorAllocation = dynamicExecutorAllocation; return this; } /** * Get the sparkEventsFolder property: The Spark events folder. - * + * * @return the sparkEventsFolder value. */ public String sparkEventsFolder() { @@ -333,7 +346,7 @@ public String sparkEventsFolder() { /** * Set the sparkEventsFolder property: The Spark events folder. - * + * * @param sparkEventsFolder the sparkEventsFolder value to set. * @return the BigDataPoolResourceProperties object itself. */ @@ -344,7 +357,7 @@ public BigDataPoolResourceProperties withSparkEventsFolder(String sparkEventsFol /** * Get the nodeCount property: The number of nodes in the Big Data pool. - * + * * @return the nodeCount value. */ public Integer nodeCount() { @@ -353,7 +366,7 @@ public Integer nodeCount() { /** * Set the nodeCount property: The number of nodes in the Big Data pool. - * + * * @param nodeCount the nodeCount value to set. * @return the BigDataPoolResourceProperties object itself. */ @@ -364,9 +377,9 @@ public BigDataPoolResourceProperties withNodeCount(Integer nodeCount) { /** * Get the libraryRequirements property: Spark pool library version requirements - * - *

Library version requirements. - * + * + * Library version requirements. + * * @return the libraryRequirements value. */ public LibraryRequirements libraryRequirements() { @@ -375,9 +388,9 @@ public LibraryRequirements libraryRequirements() { /** * Set the libraryRequirements property: Spark pool library version requirements - * - *

Library version requirements. - * + * + * Library version requirements. + * * @param libraryRequirements the libraryRequirements value to set. * @return the BigDataPoolResourceProperties object itself. */ @@ -388,7 +401,7 @@ public BigDataPoolResourceProperties withLibraryRequirements(LibraryRequirements /** * Get the customLibraries property: List of custom libraries/packages associated with the spark pool. - * + * * @return the customLibraries value. */ public List customLibraries() { @@ -397,7 +410,7 @@ public List customLibraries() { /** * Set the customLibraries property: List of custom libraries/packages associated with the spark pool. - * + * * @param customLibraries the customLibraries value to set. * @return the BigDataPoolResourceProperties object itself. */ @@ -408,9 +421,9 @@ public BigDataPoolResourceProperties withCustomLibraries(List custo /** * Get the sparkConfigProperties property: Spark pool Config Properties - * - *

Spark configuration file to specify additional properties. - * + * + * Spark configuration file to specify additional properties. + * * @return the sparkConfigProperties value. */ public SparkConfigProperties sparkConfigProperties() { @@ -419,9 +432,9 @@ public SparkConfigProperties sparkConfigProperties() { /** * Set the sparkConfigProperties property: Spark pool Config Properties - * - *

Spark configuration file to specify additional properties. - * + * + * Spark configuration file to specify additional properties. + * * @param sparkConfigProperties the sparkConfigProperties value to set. * @return the BigDataPoolResourceProperties object itself. */ @@ -432,7 +445,7 @@ public BigDataPoolResourceProperties withSparkConfigProperties(SparkConfigProper /** * Get the sparkVersion property: The Apache Spark version. - * + * * @return the sparkVersion value. */ public String sparkVersion() { @@ -441,7 +454,7 @@ public String sparkVersion() { /** * Set the sparkVersion property: The Apache Spark version. - * + * * @param sparkVersion the sparkVersion value to set. * @return the BigDataPoolResourceProperties object itself. */ @@ -452,7 +465,7 @@ public BigDataPoolResourceProperties withSparkVersion(String sparkVersion) { /** * Get the defaultSparkLogFolder property: The default folder where Spark logs will be written. - * + * * @return the defaultSparkLogFolder value. */ public String defaultSparkLogFolder() { @@ -461,7 +474,7 @@ public String defaultSparkLogFolder() { /** * Set the defaultSparkLogFolder property: The default folder where Spark logs will be written. - * + * * @param defaultSparkLogFolder the defaultSparkLogFolder value to set. * @return the BigDataPoolResourceProperties object itself. */ @@ -472,7 +485,7 @@ public BigDataPoolResourceProperties withDefaultSparkLogFolder(String defaultSpa /** * Get the nodeSize property: The level of compute power that each node in the Big Data pool has. - * + * * @return the nodeSize value. */ public NodeSize nodeSize() { @@ -481,7 +494,7 @@ public NodeSize nodeSize() { /** * Set the nodeSize property: The level of compute power that each node in the Big Data pool has. - * + * * @param nodeSize the nodeSize value to set. * @return the BigDataPoolResourceProperties object itself. */ @@ -492,7 +505,7 @@ public BigDataPoolResourceProperties withNodeSize(NodeSize nodeSize) { /** * Get the nodeSizeFamily property: The kind of nodes that the Big Data pool provides. - * + * * @return the nodeSizeFamily value. */ public NodeSizeFamily nodeSizeFamily() { @@ -501,7 +514,7 @@ public NodeSizeFamily nodeSizeFamily() { /** * Set the nodeSizeFamily property: The kind of nodes that the Big Data pool provides. - * + * * @param nodeSizeFamily the nodeSizeFamily value to set. * @return the BigDataPoolResourceProperties object itself. */ @@ -512,7 +525,7 @@ public BigDataPoolResourceProperties withNodeSizeFamily(NodeSizeFamily nodeSizeF /** * Get the lastSucceededTimestamp property: The time when the Big Data pool was updated successfully. - * + * * @return the lastSucceededTimestamp value. */ public OffsetDateTime lastSucceededTimestamp() { @@ -521,7 +534,7 @@ public OffsetDateTime lastSucceededTimestamp() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/CheckNameAvailabilityResponseInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/CheckNameAvailabilityResponseInner.java index a73e1432ca37..725e32da6468 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/CheckNameAvailabilityResponseInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/CheckNameAvailabilityResponseInner.java @@ -9,8 +9,8 @@ /** * Check name availability response - * - *

A response saying whether the workspace name is available. + * + * A response saying whether the workspace name is available. */ @Fluent public final class CheckNameAvailabilityResponseInner { @@ -38,13 +38,15 @@ public final class CheckNameAvailabilityResponseInner { @JsonProperty(value = "name") private String name; - /** Creates an instance of CheckNameAvailabilityResponseInner class. */ + /** + * Creates an instance of CheckNameAvailabilityResponseInner class. + */ public CheckNameAvailabilityResponseInner() { } /** * Get the message property: Validation message. - * + * * @return the message value. */ public String message() { @@ -53,7 +55,7 @@ public String message() { /** * Set the message property: Validation message. - * + * * @param message the message value to set. * @return the CheckNameAvailabilityResponseInner object itself. */ @@ -64,7 +66,7 @@ public CheckNameAvailabilityResponseInner withMessage(String message) { /** * Get the available property: Whether the workspace name is available. - * + * * @return the available value. */ public Boolean available() { @@ -73,7 +75,7 @@ public Boolean available() { /** * Set the available property: Whether the workspace name is available. - * + * * @param available the available value to set. * @return the CheckNameAvailabilityResponseInner object itself. */ @@ -84,7 +86,7 @@ public CheckNameAvailabilityResponseInner withAvailable(Boolean available) { /** * Get the reason property: Reason the workspace name is or is not available. - * + * * @return the reason value. */ public String reason() { @@ -93,7 +95,7 @@ public String reason() { /** * Set the reason property: Reason the workspace name is or is not available. - * + * * @param reason the reason value to set. * @return the CheckNameAvailabilityResponseInner object itself. */ @@ -104,7 +106,7 @@ public CheckNameAvailabilityResponseInner withReason(String reason) { /** * Get the name property: Workspace name. - * + * * @return the name value. */ public String name() { @@ -113,7 +115,7 @@ public String name() { /** * Set the name property: Workspace name. - * + * * @param name the name value to set. * @return the CheckNameAvailabilityResponseInner object itself. */ @@ -124,7 +126,7 @@ public CheckNameAvailabilityResponseInner withName(String name) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/CheckNameResultInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/CheckNameResultInner.java index 7f511c8abc1f..e120b7bb3f80 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/CheckNameResultInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/CheckNameResultInner.java @@ -8,7 +8,9 @@ import com.azure.resourcemanager.synapse.models.Reason; import com.fasterxml.jackson.annotation.JsonProperty; -/** The result returned from a check name availability request. */ +/** + * The result returned from a check name availability request. + */ @Fluent public final class CheckNameResultInner { /* @@ -36,13 +38,15 @@ public final class CheckNameResultInner { @JsonProperty(value = "reason") private Reason reason; - /** Creates an instance of CheckNameResultInner class. */ + /** + * Creates an instance of CheckNameResultInner class. + */ public CheckNameResultInner() { } /** * Get the nameAvailable property: Specifies a Boolean value that indicates if the name is available. - * + * * @return the nameAvailable value. */ public Boolean nameAvailable() { @@ -51,7 +55,7 @@ public Boolean nameAvailable() { /** * Set the nameAvailable property: Specifies a Boolean value that indicates if the name is available. - * + * * @param nameAvailable the nameAvailable value to set. * @return the CheckNameResultInner object itself. */ @@ -62,7 +66,7 @@ public CheckNameResultInner withNameAvailable(Boolean nameAvailable) { /** * Get the name property: The name that was checked. - * + * * @return the name value. */ public String name() { @@ -71,7 +75,7 @@ public String name() { /** * Set the name property: The name that was checked. - * + * * @param name the name value to set. * @return the CheckNameResultInner object itself. */ @@ -83,7 +87,7 @@ public CheckNameResultInner withName(String name) { /** * Get the message property: Message indicating an unavailable name due to a conflict, or a description of the * naming rules that are violated. - * + * * @return the message value. */ public String message() { @@ -93,7 +97,7 @@ public String message() { /** * Set the message property: Message indicating an unavailable name due to a conflict, or a description of the * naming rules that are violated. - * + * * @param message the message value to set. * @return the CheckNameResultInner object itself. */ @@ -104,7 +108,7 @@ public CheckNameResultInner withMessage(String message) { /** * Get the reason property: Message providing the reason why the given name is invalid. - * + * * @return the reason value. */ public Reason reason() { @@ -113,7 +117,7 @@ public Reason reason() { /** * Set the reason property: Message providing the reason why the given name is invalid. - * + * * @param reason the reason value to set. * @return the CheckNameResultInner object itself. */ @@ -124,7 +128,7 @@ public CheckNameResultInner withReason(Reason reason) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ClusterPrincipalAssignmentInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ClusterPrincipalAssignmentInner.java index 52ab719205c6..24608b235d53 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ClusterPrincipalAssignmentInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ClusterPrincipalAssignmentInner.java @@ -12,7 +12,9 @@ import com.azure.resourcemanager.synapse.models.ResourceProvisioningState; import com.fasterxml.jackson.annotation.JsonProperty; -/** Class representing a cluster principal assignment. */ +/** + * Class representing a cluster principal assignment. + */ @Fluent public final class ClusterPrincipalAssignmentInner extends ProxyResource { /* @@ -27,13 +29,15 @@ public final class ClusterPrincipalAssignmentInner extends ProxyResource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; - /** Creates an instance of ClusterPrincipalAssignmentInner class. */ + /** + * Creates an instance of ClusterPrincipalAssignmentInner class. + */ public ClusterPrincipalAssignmentInner() { } /** * Get the innerProperties property: The cluster principal. - * + * * @return the innerProperties value. */ private ClusterPrincipalProperties innerProperties() { @@ -42,7 +46,7 @@ private ClusterPrincipalProperties innerProperties() { /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ public SystemData systemData() { @@ -52,7 +56,7 @@ public SystemData systemData() { /** * Get the principalId property: The principal ID assigned to the cluster principal. It can be a user email, * application ID, or security group name. - * + * * @return the principalId value. */ public String principalId() { @@ -62,7 +66,7 @@ public String principalId() { /** * Set the principalId property: The principal ID assigned to the cluster principal. It can be a user email, * application ID, or security group name. - * + * * @param principalId the principalId value to set. * @return the ClusterPrincipalAssignmentInner object itself. */ @@ -76,7 +80,7 @@ public ClusterPrincipalAssignmentInner withPrincipalId(String principalId) { /** * Get the role property: Cluster principal role. - * + * * @return the role value. */ public ClusterPrincipalRole role() { @@ -85,7 +89,7 @@ public ClusterPrincipalRole role() { /** * Set the role property: Cluster principal role. - * + * * @param role the role value to set. * @return the ClusterPrincipalAssignmentInner object itself. */ @@ -99,7 +103,7 @@ public ClusterPrincipalAssignmentInner withRole(ClusterPrincipalRole role) { /** * Get the tenantId property: The tenant id of the principal. - * + * * @return the tenantId value. */ public String tenantId() { @@ -108,7 +112,7 @@ public String tenantId() { /** * Set the tenantId property: The tenant id of the principal. - * + * * @param tenantId the tenantId value to set. * @return the ClusterPrincipalAssignmentInner object itself. */ @@ -122,7 +126,7 @@ public ClusterPrincipalAssignmentInner withTenantId(String tenantId) { /** * Get the principalType property: Principal type. - * + * * @return the principalType value. */ public PrincipalType principalType() { @@ -131,7 +135,7 @@ public PrincipalType principalType() { /** * Set the principalType property: Principal type. - * + * * @param principalType the principalType value to set. * @return the ClusterPrincipalAssignmentInner object itself. */ @@ -145,7 +149,7 @@ public ClusterPrincipalAssignmentInner withPrincipalType(PrincipalType principal /** * Get the tenantName property: The tenant name of the principal. - * + * * @return the tenantName value. */ public String tenantName() { @@ -154,7 +158,7 @@ public String tenantName() { /** * Get the principalName property: The principal name. - * + * * @return the principalName value. */ public String principalName() { @@ -163,7 +167,7 @@ public String principalName() { /** * Get the provisioningState property: The provisioned state of the resource. - * + * * @return the provisioningState value. */ public ResourceProvisioningState provisioningState() { @@ -172,7 +176,7 @@ public ResourceProvisioningState provisioningState() { /** * Get the aadObjectId property: The service principal object id in AAD (Azure active directory). - * + * * @return the aadObjectId value. */ public String aadObjectId() { @@ -181,7 +185,7 @@ public String aadObjectId() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ClusterPrincipalProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ClusterPrincipalProperties.java index e03d360d0502..0b9d66a98162 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ClusterPrincipalProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ClusterPrincipalProperties.java @@ -11,7 +11,9 @@ import com.azure.resourcemanager.synapse.models.ResourceProvisioningState; import com.fasterxml.jackson.annotation.JsonProperty; -/** A class representing cluster principal property. */ +/** + * A class representing cluster principal property. + */ @Fluent public final class ClusterPrincipalProperties { /* @@ -63,14 +65,16 @@ public final class ClusterPrincipalProperties { @JsonProperty(value = "aadObjectId", access = JsonProperty.Access.WRITE_ONLY) private String aadObjectId; - /** Creates an instance of ClusterPrincipalProperties class. */ + /** + * Creates an instance of ClusterPrincipalProperties class. + */ public ClusterPrincipalProperties() { } /** * Get the principalId property: The principal ID assigned to the cluster principal. It can be a user email, * application ID, or security group name. - * + * * @return the principalId value. */ public String principalId() { @@ -80,7 +84,7 @@ public String principalId() { /** * Set the principalId property: The principal ID assigned to the cluster principal. It can be a user email, * application ID, or security group name. - * + * * @param principalId the principalId value to set. * @return the ClusterPrincipalProperties object itself. */ @@ -91,7 +95,7 @@ public ClusterPrincipalProperties withPrincipalId(String principalId) { /** * Get the role property: Cluster principal role. - * + * * @return the role value. */ public ClusterPrincipalRole role() { @@ -100,7 +104,7 @@ public ClusterPrincipalRole role() { /** * Set the role property: Cluster principal role. - * + * * @param role the role value to set. * @return the ClusterPrincipalProperties object itself. */ @@ -111,7 +115,7 @@ public ClusterPrincipalProperties withRole(ClusterPrincipalRole role) { /** * Get the tenantId property: The tenant id of the principal. - * + * * @return the tenantId value. */ public String tenantId() { @@ -120,7 +124,7 @@ public String tenantId() { /** * Set the tenantId property: The tenant id of the principal. - * + * * @param tenantId the tenantId value to set. * @return the ClusterPrincipalProperties object itself. */ @@ -131,7 +135,7 @@ public ClusterPrincipalProperties withTenantId(String tenantId) { /** * Get the principalType property: Principal type. - * + * * @return the principalType value. */ public PrincipalType principalType() { @@ -140,7 +144,7 @@ public PrincipalType principalType() { /** * Set the principalType property: Principal type. - * + * * @param principalType the principalType value to set. * @return the ClusterPrincipalProperties object itself. */ @@ -151,7 +155,7 @@ public ClusterPrincipalProperties withPrincipalType(PrincipalType principalType) /** * Get the tenantName property: The tenant name of the principal. - * + * * @return the tenantName value. */ public String tenantName() { @@ -160,7 +164,7 @@ public String tenantName() { /** * Get the principalName property: The principal name. - * + * * @return the principalName value. */ public String principalName() { @@ -169,7 +173,7 @@ public String principalName() { /** * Get the provisioningState property: The provisioned state of the resource. - * + * * @return the provisioningState value. */ public ResourceProvisioningState provisioningState() { @@ -178,7 +182,7 @@ public ResourceProvisioningState provisioningState() { /** * Get the aadObjectId property: The service principal object id in AAD (Azure active directory). - * + * * @return the aadObjectId value. */ public String aadObjectId() { @@ -187,26 +191,21 @@ public String aadObjectId() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (principalId() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property principalId in model ClusterPrincipalProperties")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property principalId in model ClusterPrincipalProperties")); } if (role() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property role in model ClusterPrincipalProperties")); + throw LOGGER.logExceptionAsError( + new IllegalArgumentException("Missing required property role in model ClusterPrincipalProperties")); } if (principalType() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property principalType in model ClusterPrincipalProperties")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property principalType in model ClusterPrincipalProperties")); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/CmdkeySetupTypeProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/CmdkeySetupTypeProperties.java index c113567a1521..54d0b5d89d62 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/CmdkeySetupTypeProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/CmdkeySetupTypeProperties.java @@ -9,7 +9,9 @@ import com.azure.resourcemanager.synapse.models.SecretBase; import com.fasterxml.jackson.annotation.JsonProperty; -/** Cmdkey command custom setup type properties. */ +/** + * Cmdkey command custom setup type properties. + */ @Fluent public final class CmdkeySetupTypeProperties { /* @@ -30,13 +32,15 @@ public final class CmdkeySetupTypeProperties { @JsonProperty(value = "password", required = true) private SecretBase password; - /** Creates an instance of CmdkeySetupTypeProperties class. */ + /** + * Creates an instance of CmdkeySetupTypeProperties class. + */ public CmdkeySetupTypeProperties() { } /** * Get the targetName property: The server name of data source access. - * + * * @return the targetName value. */ public Object targetName() { @@ -45,7 +49,7 @@ public Object targetName() { /** * Set the targetName property: The server name of data source access. - * + * * @param targetName the targetName value to set. * @return the CmdkeySetupTypeProperties object itself. */ @@ -56,7 +60,7 @@ public CmdkeySetupTypeProperties withTargetName(Object targetName) { /** * Get the username property: The user name of data source access. - * + * * @return the username value. */ public Object username() { @@ -65,7 +69,7 @@ public Object username() { /** * Set the username property: The user name of data source access. - * + * * @param username the username value to set. * @return the CmdkeySetupTypeProperties object itself. */ @@ -76,7 +80,7 @@ public CmdkeySetupTypeProperties withUsername(Object username) { /** * Get the password property: The password of data source access. - * + * * @return the password value. */ public SecretBase password() { @@ -85,7 +89,7 @@ public SecretBase password() { /** * Set the password property: The password of data source access. - * + * * @param password the password value to set. * @return the CmdkeySetupTypeProperties object itself. */ @@ -96,27 +100,21 @@ public CmdkeySetupTypeProperties withPassword(SecretBase password) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (targetName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property targetName in model CmdkeySetupTypeProperties")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property targetName in model CmdkeySetupTypeProperties")); } if (username() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property username in model CmdkeySetupTypeProperties")); + throw LOGGER.logExceptionAsError( + new IllegalArgumentException("Missing required property username in model CmdkeySetupTypeProperties")); } if (password() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property password in model CmdkeySetupTypeProperties")); + throw LOGGER.logExceptionAsError( + new IllegalArgumentException("Missing required property password in model CmdkeySetupTypeProperties")); } else { password().validate(); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataConnectionInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataConnectionInner.java index 4c998d5707aa..4c6c6d87714c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataConnectionInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataConnectionInner.java @@ -15,7 +15,9 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; -/** Class representing a data connection. */ +/** + * Class representing a data connection. + */ @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, @@ -25,8 +27,7 @@ @JsonSubTypes({ @JsonSubTypes.Type(name = "EventHub", value = EventHubDataConnection.class), @JsonSubTypes.Type(name = "IotHub", value = IotHubDataConnection.class), - @JsonSubTypes.Type(name = "EventGrid", value = EventGridDataConnection.class) -}) + @JsonSubTypes.Type(name = "EventGrid", value = EventGridDataConnection.class) }) @Fluent public class DataConnectionInner extends ProxyResource { /* @@ -41,13 +42,15 @@ public class DataConnectionInner extends ProxyResource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; - /** Creates an instance of DataConnectionInner class. */ + /** + * Creates an instance of DataConnectionInner class. + */ public DataConnectionInner() { } /** * Get the location property: Resource location. - * + * * @return the location value. */ public String location() { @@ -56,7 +59,7 @@ public String location() { /** * Set the location property: Resource location. - * + * * @param location the location value to set. * @return the DataConnectionInner object itself. */ @@ -67,7 +70,7 @@ public DataConnectionInner withLocation(String location) { /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ public SystemData systemData() { @@ -76,7 +79,7 @@ public SystemData systemData() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataConnectionValidationInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataConnectionValidationInner.java index 4a3977363aa8..a73ee2ae735e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataConnectionValidationInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataConnectionValidationInner.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Class representing an data connection validation. */ +/** + * Class representing an data connection validation. + */ @Fluent public final class DataConnectionValidationInner { /* @@ -22,13 +24,15 @@ public final class DataConnectionValidationInner { @JsonProperty(value = "properties") private DataConnectionInner properties; - /** Creates an instance of DataConnectionValidationInner class. */ + /** + * Creates an instance of DataConnectionValidationInner class. + */ public DataConnectionValidationInner() { } /** * Get the dataConnectionName property: The name of the data connection. - * + * * @return the dataConnectionName value. */ public String dataConnectionName() { @@ -37,7 +41,7 @@ public String dataConnectionName() { /** * Set the dataConnectionName property: The name of the data connection. - * + * * @param dataConnectionName the dataConnectionName value to set. * @return the DataConnectionValidationInner object itself. */ @@ -48,7 +52,7 @@ public DataConnectionValidationInner withDataConnectionName(String dataConnectio /** * Get the properties property: The data connection properties to validate. - * + * * @return the properties value. */ public DataConnectionInner properties() { @@ -57,7 +61,7 @@ public DataConnectionInner properties() { /** * Set the properties property: The data connection properties to validate. - * + * * @param properties the properties value to set. * @return the DataConnectionValidationInner object itself. */ @@ -68,7 +72,7 @@ public DataConnectionValidationInner withProperties(DataConnectionInner properti /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataConnectionValidationListResultInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataConnectionValidationListResultInner.java index f308424ed1bf..4b166006b5bd 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataConnectionValidationListResultInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/DataConnectionValidationListResultInner.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The list Kusto data connection validation result. */ +/** + * The list Kusto data connection validation result. + */ @Fluent public final class DataConnectionValidationListResultInner { /* @@ -18,13 +20,15 @@ public final class DataConnectionValidationListResultInner { @JsonProperty(value = "value") private List value; - /** Creates an instance of DataConnectionValidationListResultInner class. */ + /** + * Creates an instance of DataConnectionValidationListResultInner class. + */ public DataConnectionValidationListResultInner() { } /** * Get the value property: The list of Kusto data connection validation errors. - * + * * @return the value value. */ public List value() { @@ -33,7 +37,7 @@ public List value() { /** * Set the value property: The list of Kusto data connection validation errors. - * + * * @param value the value value to set. * @return the DataConnectionValidationListResultInner object itself. */ @@ -44,7 +48,7 @@ public DataConnectionValidationListResultInner withValue(List eventSystemProperties() { @@ -190,7 +194,7 @@ public List eventSystemProperties() { /** * Set the eventSystemProperties property: System properties of the event hub. - * + * * @param eventSystemProperties the eventSystemProperties value to set. * @return the EventHubConnectionProperties object itself. */ @@ -201,7 +205,7 @@ public EventHubConnectionProperties withEventSystemProperties(List event /** * Get the compression property: The event hub messages compression type. - * + * * @return the compression value. */ public Compression compression() { @@ -210,7 +214,7 @@ public Compression compression() { /** * Set the compression property: The event hub messages compression type. - * + * * @param compression the compression value to set. * @return the EventHubConnectionProperties object itself. */ @@ -221,7 +225,7 @@ public EventHubConnectionProperties withCompression(Compression compression) { /** * Get the provisioningState property: The provisioned state of the resource. - * + * * @return the provisioningState value. */ public ResourceProvisioningState provisioningState() { @@ -229,9 +233,9 @@ public ResourceProvisioningState provisioningState() { } /** - * Get the managedIdentityResourceId property: The resource ID of a managed identity (system or user assigned) to be - * used to authenticate with event hub. - * + * Get the managedIdentityResourceId property: The resource ID of a managed identity (system or user assigned) to + * be used to authenticate with event hub. + * * @return the managedIdentityResourceId value. */ public String managedIdentityResourceId() { @@ -239,9 +243,9 @@ public String managedIdentityResourceId() { } /** - * Set the managedIdentityResourceId property: The resource ID of a managed identity (system or user assigned) to be - * used to authenticate with event hub. - * + * Set the managedIdentityResourceId property: The resource ID of a managed identity (system or user assigned) to + * be used to authenticate with event hub. + * * @param managedIdentityResourceId the managedIdentityResourceId value to set. * @return the EventHubConnectionProperties object itself. */ @@ -252,21 +256,17 @@ public EventHubConnectionProperties withManagedIdentityResourceId(String managed /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (eventHubResourceId() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property eventHubResourceId in model EventHubConnectionProperties")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property eventHubResourceId in model EventHubConnectionProperties")); } if (consumerGroup() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property consumerGroup in model EventHubConnectionProperties")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property consumerGroup in model EventHubConnectionProperties")); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedServerBlobAuditingPolicyInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedServerBlobAuditingPolicyInner.java index 84253abffea6..d90b687bbcac 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedServerBlobAuditingPolicyInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedServerBlobAuditingPolicyInner.java @@ -11,7 +11,9 @@ import java.util.List; import java.util.UUID; -/** An extended server blob auditing policy. */ +/** + * An extended server blob auditing policy. + */ @Fluent public final class ExtendedServerBlobAuditingPolicyInner extends ProxyResource { /* @@ -20,13 +22,15 @@ public final class ExtendedServerBlobAuditingPolicyInner extends ProxyResource { @JsonProperty(value = "properties") private ExtendedServerBlobAuditingPolicyProperties innerProperties; - /** Creates an instance of ExtendedServerBlobAuditingPolicyInner class. */ + /** + * Creates an instance of ExtendedServerBlobAuditingPolicyInner class. + */ public ExtendedServerBlobAuditingPolicyInner() { } /** * Get the innerProperties property: Resource properties. - * + * * @return the innerProperties value. */ private ExtendedServerBlobAuditingPolicyProperties innerProperties() { @@ -35,7 +39,7 @@ private ExtendedServerBlobAuditingPolicyProperties innerProperties() { /** * Get the predicateExpression property: Specifies condition of where clause when creating an audit. - * + * * @return the predicateExpression value. */ public String predicateExpression() { @@ -44,7 +48,7 @@ public String predicateExpression() { /** * Set the predicateExpression property: Specifies condition of where clause when creating an audit. - * + * * @param predicateExpression the predicateExpression value to set. * @return the ExtendedServerBlobAuditingPolicyInner object itself. */ @@ -59,7 +63,7 @@ public ExtendedServerBlobAuditingPolicyInner withPredicateExpression(String pred /** * Get the state property: Specifies the state of the policy. If state is Enabled, storageEndpoint or * isAzureMonitorTargetEnabled are required. - * + * * @return the state value. */ public BlobAuditingPolicyState state() { @@ -69,7 +73,7 @@ public BlobAuditingPolicyState state() { /** * Set the state property: Specifies the state of the policy. If state is Enabled, storageEndpoint or * isAzureMonitorTargetEnabled are required. - * + * * @param state the state value to set. * @return the ExtendedServerBlobAuditingPolicyInner object itself. */ @@ -85,7 +89,7 @@ public ExtendedServerBlobAuditingPolicyInner withState(BlobAuditingPolicyState s * Get the storageEndpoint property: Specifies the blob storage endpoint (e.g. * https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is * required. - * + * * @return the storageEndpoint value. */ public String storageEndpoint() { @@ -96,7 +100,7 @@ public String storageEndpoint() { * Set the storageEndpoint property: Specifies the blob storage endpoint (e.g. * https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is * required. - * + * * @param storageEndpoint the storageEndpoint value to set. * @return the ExtendedServerBlobAuditingPolicyInner object itself. */ @@ -109,14 +113,16 @@ public ExtendedServerBlobAuditingPolicyInner withStorageEndpoint(String storageE } /** - * Get the storageAccountAccessKey property: Specifies the identifier key of the auditing storage account. If state - * is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server - * system-assigned managed identity to access the storage. Prerequisites for using managed identity authentication: - * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). 2. Grant SQL Server - * identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server - * identity. For more information, see [Auditing to storage using Managed Identity + * Get the storageAccountAccessKey property: Specifies the identifier key of the auditing storage account. + * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL + * server system-assigned managed identity to access the storage. + * Prerequisites for using managed identity authentication: + * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). + * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role + * to the server identity. + * For more information, see [Auditing to storage using Managed Identity * authentication](https://go.microsoft.com/fwlink/?linkid=2114355). - * + * * @return the storageAccountAccessKey value. */ public String storageAccountAccessKey() { @@ -124,14 +130,16 @@ public String storageAccountAccessKey() { } /** - * Set the storageAccountAccessKey property: Specifies the identifier key of the auditing storage account. If state - * is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server - * system-assigned managed identity to access the storage. Prerequisites for using managed identity authentication: - * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). 2. Grant SQL Server - * identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server - * identity. For more information, see [Auditing to storage using Managed Identity + * Set the storageAccountAccessKey property: Specifies the identifier key of the auditing storage account. + * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL + * server system-assigned managed identity to access the storage. + * Prerequisites for using managed identity authentication: + * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). + * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role + * to the server identity. + * For more information, see [Auditing to storage using Managed Identity * authentication](https://go.microsoft.com/fwlink/?linkid=2114355). - * + * * @param storageAccountAccessKey the storageAccountAccessKey value to set. * @return the ExtendedServerBlobAuditingPolicyInner object itself. */ @@ -145,7 +153,7 @@ public ExtendedServerBlobAuditingPolicyInner withStorageAccountAccessKey(String /** * Get the retentionDays property: Specifies the number of days to keep in the audit logs in the storage account. - * + * * @return the retentionDays value. */ public Integer retentionDays() { @@ -154,7 +162,7 @@ public Integer retentionDays() { /** * Set the retentionDays property: Specifies the number of days to keep in the audit logs in the storage account. - * + * * @param retentionDays the retentionDays value to set. * @return the ExtendedServerBlobAuditingPolicyInner object itself. */ @@ -168,47 +176,72 @@ public ExtendedServerBlobAuditingPolicyInner withRetentionDays(Integer retention /** * Get the auditActionsAndGroups property: Specifies the Actions-Groups and Actions to audit. - * - *

The recommended set of action groups to use is the following combination - this will audit all the queries and + * + * The recommended set of action groups to use is the following combination - this will audit all the queries and * stored procedures executed against the database, as well as successful and failed logins: - * - *

BATCH_COMPLETED_GROUP, SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, FAILED_DATABASE_AUTHENTICATION_GROUP. - * - *

This above combination is also the set that is configured by default when enabling auditing from the Azure + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing from the Azure * portal. - * - *

The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. + * + * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. * Using unnecessary groups could lead to very large quantities of audit records): - * - *

APPLICATION_ROLE_CHANGE_PASSWORD_GROUP BACKUP_RESTORE_GROUP DATABASE_LOGOUT_GROUP DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP DATABASE_OBJECT_PERMISSION_CHANGE_GROUP DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP DATABASE_PRINCIPAL_CHANGE_GROUP DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP FAILED_DATABASE_AUTHENTICATION_GROUP SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP USER_CHANGE_PASSWORD_GROUP BATCH_STARTED_GROUP BATCH_COMPLETED_GROUP - * - *

These are groups that cover all sql statements and stored procedures executed against the database, and should + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP + * BATCH_COMPLETED_GROUP + * + * These are groups that cover all sql statements and stored procedures executed against the database, and should * not be used in combination with other groups as this will result in duplicate audit logs. - * - *

For more information, see [Database-Level Audit Action + * + * For more information, see [Database-Level Audit Action * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - *

For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified - * for Server auditing policy). The supported actions to audit are: SELECT UPDATE INSERT DELETE EXECUTE RECEIVE + * + * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for + * Server auditing policy). The supported actions to audit are: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE * REFERENCES - * - *

The general form for defining an action to be audited is: {action} ON {object} BY {principal} - * - *

Note that <object> in the above format can refer to an object like a table, view, or stored procedure, - * or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} - * are used, respectively. - * - *

For example: SELECT on dbo.myTable by public SELECT on DATABASE::myDatabase by public SELECT on - * SCHEMA::mySchema by public - * - *

For more information, see [Database-Level Audit + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note that <object> in the above format can refer to an object like a table, view, or stored procedure, or + * an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are + * used, respectively. + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For more information, see [Database-Level Audit * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions). - * + * * @return the auditActionsAndGroups value. */ public List auditActionsAndGroups() { @@ -217,47 +250,72 @@ public List auditActionsAndGroups() { /** * Set the auditActionsAndGroups property: Specifies the Actions-Groups and Actions to audit. - * - *

The recommended set of action groups to use is the following combination - this will audit all the queries and + * + * The recommended set of action groups to use is the following combination - this will audit all the queries and * stored procedures executed against the database, as well as successful and failed logins: - * - *

BATCH_COMPLETED_GROUP, SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, FAILED_DATABASE_AUTHENTICATION_GROUP. - * - *

This above combination is also the set that is configured by default when enabling auditing from the Azure + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing from the Azure * portal. - * - *

The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. + * + * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. * Using unnecessary groups could lead to very large quantities of audit records): - * - *

APPLICATION_ROLE_CHANGE_PASSWORD_GROUP BACKUP_RESTORE_GROUP DATABASE_LOGOUT_GROUP DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP DATABASE_OBJECT_PERMISSION_CHANGE_GROUP DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP DATABASE_PRINCIPAL_CHANGE_GROUP DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP FAILED_DATABASE_AUTHENTICATION_GROUP SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP USER_CHANGE_PASSWORD_GROUP BATCH_STARTED_GROUP BATCH_COMPLETED_GROUP - * - *

These are groups that cover all sql statements and stored procedures executed against the database, and should + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP + * BATCH_COMPLETED_GROUP + * + * These are groups that cover all sql statements and stored procedures executed against the database, and should * not be used in combination with other groups as this will result in duplicate audit logs. - * - *

For more information, see [Database-Level Audit Action + * + * For more information, see [Database-Level Audit Action * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - *

For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified - * for Server auditing policy). The supported actions to audit are: SELECT UPDATE INSERT DELETE EXECUTE RECEIVE + * + * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for + * Server auditing policy). The supported actions to audit are: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE * REFERENCES - * - *

The general form for defining an action to be audited is: {action} ON {object} BY {principal} - * - *

Note that <object> in the above format can refer to an object like a table, view, or stored procedure, - * or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} - * are used, respectively. - * - *

For example: SELECT on dbo.myTable by public SELECT on DATABASE::myDatabase by public SELECT on - * SCHEMA::mySchema by public - * - *

For more information, see [Database-Level Audit + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note that <object> in the above format can refer to an object like a table, view, or stored procedure, or + * an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are + * used, respectively. + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For more information, see [Database-Level Audit * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions). - * + * * @param auditActionsAndGroups the auditActionsAndGroups value to set. * @return the ExtendedServerBlobAuditingPolicyInner object itself. */ @@ -271,7 +329,7 @@ public ExtendedServerBlobAuditingPolicyInner withAuditActionsAndGroups(ListWhen using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs - * category on the database should be also created. Note that for server level audit you should use the 'master' - * database as {databaseName}. - * - *

Diagnostic Settings URI format: PUT + * Get the isAzureMonitorTargetEnabled property: Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as + * true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs + * category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - *

For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) or - * [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). - * + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * * @return the isAzureMonitorTargetEnabled value. */ public Boolean isAzureMonitorTargetEnabled() { @@ -338,19 +398,21 @@ public Boolean isAzureMonitorTargetEnabled() { } /** - * Set the isAzureMonitorTargetEnabled property: Specifies whether audit events are sent to Azure Monitor. In order - * to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as true. - * - *

When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs - * category on the database should be also created. Note that for server level audit you should use the 'master' - * database as {databaseName}. - * - *

Diagnostic Settings URI format: PUT + * Set the isAzureMonitorTargetEnabled property: Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as + * true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs + * category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - *

For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) or - * [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). - * + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * * @param isAzureMonitorTargetEnabled the isAzureMonitorTargetEnabled value to set. * @return the ExtendedServerBlobAuditingPolicyInner object itself. */ @@ -364,8 +426,9 @@ public ExtendedServerBlobAuditingPolicyInner withIsAzureMonitorTargetEnabled(Boo /** * Get the queueDelayMs property: Specifies the amount of time in milliseconds that can elapse before audit actions - * are forced to be processed. The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. - * + * are forced to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. + * * @return the queueDelayMs value. */ public Integer queueDelayMs() { @@ -374,8 +437,9 @@ public Integer queueDelayMs() { /** * Set the queueDelayMs property: Specifies the amount of time in milliseconds that can elapse before audit actions - * are forced to be processed. The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. - * + * are forced to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. + * * @param queueDelayMs the queueDelayMs value to set. * @return the ExtendedServerBlobAuditingPolicyInner object itself. */ @@ -388,19 +452,21 @@ public ExtendedServerBlobAuditingPolicyInner withQueueDelayMs(Integer queueDelay } /** - * Get the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, devops logs will - * be sent to Azure Monitor. In order to send the events to Azure Monitor, specify 'State' as 'Enabled', - * 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true - * - *

When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs + * Get the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, devops logs + * will be sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' as + * true and 'IsDevopsAuditEnabled' as true + * + * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs * category on the master database should also be created. - * - *

Diagnostic Settings URI format: PUT + * + * Diagnostic Settings URI format: + * PUT * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - *

For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) or - * [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). - * + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * * @return the isDevopsAuditEnabled value. */ public Boolean isDevopsAuditEnabled() { @@ -408,19 +474,21 @@ public Boolean isDevopsAuditEnabled() { } /** - * Set the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, devops logs will - * be sent to Azure Monitor. In order to send the events to Azure Monitor, specify 'State' as 'Enabled', - * 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true - * - *

When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs + * Set the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, devops logs + * will be sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' as + * true and 'IsDevopsAuditEnabled' as true + * + * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs * category on the master database should also be created. - * - *

Diagnostic Settings URI format: PUT + * + * Diagnostic Settings URI format: + * PUT * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - *

For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) or - * [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). - * + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * * @param isDevopsAuditEnabled the isDevopsAuditEnabled value to set. * @return the ExtendedServerBlobAuditingPolicyInner object itself. */ @@ -434,7 +502,7 @@ public ExtendedServerBlobAuditingPolicyInner withIsDevopsAuditEnabled(Boolean is /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedServerBlobAuditingPolicyProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedServerBlobAuditingPolicyProperties.java index 556a3990e730..2910dd81ab67 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedServerBlobAuditingPolicyProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedServerBlobAuditingPolicyProperties.java @@ -11,7 +11,9 @@ import java.util.List; import java.util.UUID; -/** Properties of an extended server blob auditing policy. */ +/** + * Properties of an extended server blob auditing policy. + */ @Fluent public final class ExtendedServerBlobAuditingPolicyProperties { /* @@ -56,20 +58,20 @@ public final class ExtendedServerBlobAuditingPolicyProperties { /* * Specifies the Actions-Groups and Actions to audit. - * + * * The recommended set of action groups to use is the following combination - this will audit all the queries and * stored procedures executed against the database, as well as successful and failed logins: - * + * * BATCH_COMPLETED_GROUP, * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, * FAILED_DATABASE_AUTHENTICATION_GROUP. - * + * * This above combination is also the set that is configured by default when enabling auditing from the Azure * portal. - * + * * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. * Using unnecessary groups could lead to very large quantities of audit records): - * + * * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP * BACKUP_RESTORE_GROUP * DATABASE_LOGOUT_GROUP @@ -90,13 +92,14 @@ public final class ExtendedServerBlobAuditingPolicyProperties { * USER_CHANGE_PASSWORD_GROUP * BATCH_STARTED_GROUP * BATCH_COMPLETED_GROUP - * + * * These are groups that cover all sql statements and stored procedures executed against the database, and should * not be used in combination with other groups as this will result in duplicate audit logs. - * + * * For more information, see [Database-Level Audit Action - * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * + * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action- + * groups-and-actions#database-level-audit-action-groups). + * * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for * Server auditing policy). The supported actions to audit are: * SELECT @@ -106,21 +109,22 @@ public final class ExtendedServerBlobAuditingPolicyProperties { * EXECUTE * RECEIVE * REFERENCES - * + * * The general form for defining an action to be audited is: * {action} ON {object} BY {principal} - * + * * Note that in the above format can refer to an object like a table, view, or stored procedure, or an * entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are * used, respectively. - * + * * For example: * SELECT on dbo.myTable by public * SELECT on DATABASE::myDatabase by public * SELECT on SCHEMA::mySchema by public - * + * * For more information, see [Database-Level Audit - * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) + * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action- + * groups-and-actions#database-level-audit-actions) */ @JsonProperty(value = "auditActionsAndGroups") private List auditActionsAndGroups; @@ -141,18 +145,20 @@ public final class ExtendedServerBlobAuditingPolicyProperties { * Specifies whether audit events are sent to Azure Monitor. * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as * true. - * + * * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs * category on the database should be also created. * Note that for server level audit you should use the 'master' database as {databaseName}. - * + * * Diagnostic Settings URI format: * PUT - * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * + * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft. + * Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}? + * api-version=2017-05-01-preview + * * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) - * + * */ @JsonProperty(value = "isAzureMonitorTargetEnabled") private Boolean isAzureMonitorTargetEnabled; @@ -168,28 +174,32 @@ public final class ExtendedServerBlobAuditingPolicyProperties { * Specifies the state of devops audit. If state is Enabled, devops logs will be sent to Azure Monitor. * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' as * true and 'IsDevopsAuditEnabled' as true - * + * * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs * category on the master database should also be created. - * + * * Diagnostic Settings URI format: * PUT - * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * + * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft. + * Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api- + * version=2017-05-01-preview + * * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) - * + * */ @JsonProperty(value = "isDevopsAuditEnabled") private Boolean isDevopsAuditEnabled; - /** Creates an instance of ExtendedServerBlobAuditingPolicyProperties class. */ + /** + * Creates an instance of ExtendedServerBlobAuditingPolicyProperties class. + */ public ExtendedServerBlobAuditingPolicyProperties() { } /** * Get the predicateExpression property: Specifies condition of where clause when creating an audit. - * + * * @return the predicateExpression value. */ public String predicateExpression() { @@ -198,7 +208,7 @@ public String predicateExpression() { /** * Set the predicateExpression property: Specifies condition of where clause when creating an audit. - * + * * @param predicateExpression the predicateExpression value to set. * @return the ExtendedServerBlobAuditingPolicyProperties object itself. */ @@ -210,7 +220,7 @@ public ExtendedServerBlobAuditingPolicyProperties withPredicateExpression(String /** * Get the state property: Specifies the state of the policy. If state is Enabled, storageEndpoint or * isAzureMonitorTargetEnabled are required. - * + * * @return the state value. */ public BlobAuditingPolicyState state() { @@ -220,7 +230,7 @@ public BlobAuditingPolicyState state() { /** * Set the state property: Specifies the state of the policy. If state is Enabled, storageEndpoint or * isAzureMonitorTargetEnabled are required. - * + * * @param state the state value to set. * @return the ExtendedServerBlobAuditingPolicyProperties object itself. */ @@ -233,7 +243,7 @@ public ExtendedServerBlobAuditingPolicyProperties withState(BlobAuditingPolicySt * Get the storageEndpoint property: Specifies the blob storage endpoint (e.g. * https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is * required. - * + * * @return the storageEndpoint value. */ public String storageEndpoint() { @@ -244,7 +254,7 @@ public String storageEndpoint() { * Set the storageEndpoint property: Specifies the blob storage endpoint (e.g. * https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is * required. - * + * * @param storageEndpoint the storageEndpoint value to set. * @return the ExtendedServerBlobAuditingPolicyProperties object itself. */ @@ -254,14 +264,16 @@ public ExtendedServerBlobAuditingPolicyProperties withStorageEndpoint(String sto } /** - * Get the storageAccountAccessKey property: Specifies the identifier key of the auditing storage account. If state - * is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server - * system-assigned managed identity to access the storage. Prerequisites for using managed identity authentication: - * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). 2. Grant SQL Server - * identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server - * identity. For more information, see [Auditing to storage using Managed Identity + * Get the storageAccountAccessKey property: Specifies the identifier key of the auditing storage account. + * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL + * server system-assigned managed identity to access the storage. + * Prerequisites for using managed identity authentication: + * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). + * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role + * to the server identity. + * For more information, see [Auditing to storage using Managed Identity * authentication](https://go.microsoft.com/fwlink/?linkid=2114355). - * + * * @return the storageAccountAccessKey value. */ public String storageAccountAccessKey() { @@ -269,14 +281,16 @@ public String storageAccountAccessKey() { } /** - * Set the storageAccountAccessKey property: Specifies the identifier key of the auditing storage account. If state - * is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server - * system-assigned managed identity to access the storage. Prerequisites for using managed identity authentication: - * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). 2. Grant SQL Server - * identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server - * identity. For more information, see [Auditing to storage using Managed Identity + * Set the storageAccountAccessKey property: Specifies the identifier key of the auditing storage account. + * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL + * server system-assigned managed identity to access the storage. + * Prerequisites for using managed identity authentication: + * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). + * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role + * to the server identity. + * For more information, see [Auditing to storage using Managed Identity * authentication](https://go.microsoft.com/fwlink/?linkid=2114355). - * + * * @param storageAccountAccessKey the storageAccountAccessKey value to set. * @return the ExtendedServerBlobAuditingPolicyProperties object itself. */ @@ -287,7 +301,7 @@ public ExtendedServerBlobAuditingPolicyProperties withStorageAccountAccessKey(St /** * Get the retentionDays property: Specifies the number of days to keep in the audit logs in the storage account. - * + * * @return the retentionDays value. */ public Integer retentionDays() { @@ -296,7 +310,7 @@ public Integer retentionDays() { /** * Set the retentionDays property: Specifies the number of days to keep in the audit logs in the storage account. - * + * * @param retentionDays the retentionDays value to set. * @return the ExtendedServerBlobAuditingPolicyProperties object itself. */ @@ -307,47 +321,72 @@ public ExtendedServerBlobAuditingPolicyProperties withRetentionDays(Integer rete /** * Get the auditActionsAndGroups property: Specifies the Actions-Groups and Actions to audit. - * - *

The recommended set of action groups to use is the following combination - this will audit all the queries and + * + * The recommended set of action groups to use is the following combination - this will audit all the queries and * stored procedures executed against the database, as well as successful and failed logins: - * - *

BATCH_COMPLETED_GROUP, SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, FAILED_DATABASE_AUTHENTICATION_GROUP. - * - *

This above combination is also the set that is configured by default when enabling auditing from the Azure + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing from the Azure * portal. - * - *

The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. + * + * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. * Using unnecessary groups could lead to very large quantities of audit records): - * - *

APPLICATION_ROLE_CHANGE_PASSWORD_GROUP BACKUP_RESTORE_GROUP DATABASE_LOGOUT_GROUP DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP DATABASE_OBJECT_PERMISSION_CHANGE_GROUP DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP DATABASE_PRINCIPAL_CHANGE_GROUP DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP FAILED_DATABASE_AUTHENTICATION_GROUP SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP USER_CHANGE_PASSWORD_GROUP BATCH_STARTED_GROUP BATCH_COMPLETED_GROUP - * - *

These are groups that cover all sql statements and stored procedures executed against the database, and should + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP + * BATCH_COMPLETED_GROUP + * + * These are groups that cover all sql statements and stored procedures executed against the database, and should * not be used in combination with other groups as this will result in duplicate audit logs. - * - *

For more information, see [Database-Level Audit Action + * + * For more information, see [Database-Level Audit Action * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - *

For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified - * for Server auditing policy). The supported actions to audit are: SELECT UPDATE INSERT DELETE EXECUTE RECEIVE + * + * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for + * Server auditing policy). The supported actions to audit are: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE * REFERENCES - * - *

The general form for defining an action to be audited is: {action} ON {object} BY {principal} - * - *

Note that <object> in the above format can refer to an object like a table, view, or stored procedure, - * or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} - * are used, respectively. - * - *

For example: SELECT on dbo.myTable by public SELECT on DATABASE::myDatabase by public SELECT on - * SCHEMA::mySchema by public - * - *

For more information, see [Database-Level Audit + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note that <object> in the above format can refer to an object like a table, view, or stored procedure, or + * an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are + * used, respectively. + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For more information, see [Database-Level Audit * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions). - * + * * @return the auditActionsAndGroups value. */ public List auditActionsAndGroups() { @@ -356,47 +395,72 @@ public List auditActionsAndGroups() { /** * Set the auditActionsAndGroups property: Specifies the Actions-Groups and Actions to audit. - * - *

The recommended set of action groups to use is the following combination - this will audit all the queries and + * + * The recommended set of action groups to use is the following combination - this will audit all the queries and * stored procedures executed against the database, as well as successful and failed logins: - * - *

BATCH_COMPLETED_GROUP, SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, FAILED_DATABASE_AUTHENTICATION_GROUP. - * - *

This above combination is also the set that is configured by default when enabling auditing from the Azure + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing from the Azure * portal. - * - *

The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. + * + * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. * Using unnecessary groups could lead to very large quantities of audit records): - * - *

APPLICATION_ROLE_CHANGE_PASSWORD_GROUP BACKUP_RESTORE_GROUP DATABASE_LOGOUT_GROUP DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP DATABASE_OBJECT_PERMISSION_CHANGE_GROUP DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP DATABASE_PRINCIPAL_CHANGE_GROUP DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP FAILED_DATABASE_AUTHENTICATION_GROUP SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP USER_CHANGE_PASSWORD_GROUP BATCH_STARTED_GROUP BATCH_COMPLETED_GROUP - * - *

These are groups that cover all sql statements and stored procedures executed against the database, and should + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP + * BATCH_COMPLETED_GROUP + * + * These are groups that cover all sql statements and stored procedures executed against the database, and should * not be used in combination with other groups as this will result in duplicate audit logs. - * - *

For more information, see [Database-Level Audit Action + * + * For more information, see [Database-Level Audit Action * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - *

For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified - * for Server auditing policy). The supported actions to audit are: SELECT UPDATE INSERT DELETE EXECUTE RECEIVE + * + * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for + * Server auditing policy). The supported actions to audit are: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE * REFERENCES - * - *

The general form for defining an action to be audited is: {action} ON {object} BY {principal} - * - *

Note that <object> in the above format can refer to an object like a table, view, or stored procedure, - * or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} - * are used, respectively. - * - *

For example: SELECT on dbo.myTable by public SELECT on DATABASE::myDatabase by public SELECT on - * SCHEMA::mySchema by public - * - *

For more information, see [Database-Level Audit + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note that <object> in the above format can refer to an object like a table, view, or stored procedure, or + * an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are + * used, respectively. + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For more information, see [Database-Level Audit * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions). - * + * * @param auditActionsAndGroups the auditActionsAndGroups value to set. * @return the ExtendedServerBlobAuditingPolicyProperties object itself. */ @@ -407,7 +471,7 @@ public ExtendedServerBlobAuditingPolicyProperties withAuditActionsAndGroups(List /** * Get the storageAccountSubscriptionId property: Specifies the blob storage subscription Id. - * + * * @return the storageAccountSubscriptionId value. */ public UUID storageAccountSubscriptionId() { @@ -416,12 +480,12 @@ public UUID storageAccountSubscriptionId() { /** * Set the storageAccountSubscriptionId property: Specifies the blob storage subscription Id. - * + * * @param storageAccountSubscriptionId the storageAccountSubscriptionId value to set. * @return the ExtendedServerBlobAuditingPolicyProperties object itself. */ - public ExtendedServerBlobAuditingPolicyProperties withStorageAccountSubscriptionId( - UUID storageAccountSubscriptionId) { + public ExtendedServerBlobAuditingPolicyProperties + withStorageAccountSubscriptionId(UUID storageAccountSubscriptionId) { this.storageAccountSubscriptionId = storageAccountSubscriptionId; return this; } @@ -429,7 +493,7 @@ public ExtendedServerBlobAuditingPolicyProperties withStorageAccountSubscription /** * Get the isStorageSecondaryKeyInUse property: Specifies whether storageAccountAccessKey value is the storage's * secondary key. - * + * * @return the isStorageSecondaryKeyInUse value. */ public Boolean isStorageSecondaryKeyInUse() { @@ -439,30 +503,32 @@ public Boolean isStorageSecondaryKeyInUse() { /** * Set the isStorageSecondaryKeyInUse property: Specifies whether storageAccountAccessKey value is the storage's * secondary key. - * + * * @param isStorageSecondaryKeyInUse the isStorageSecondaryKeyInUse value to set. * @return the ExtendedServerBlobAuditingPolicyProperties object itself. */ - public ExtendedServerBlobAuditingPolicyProperties withIsStorageSecondaryKeyInUse( - Boolean isStorageSecondaryKeyInUse) { + public ExtendedServerBlobAuditingPolicyProperties + withIsStorageSecondaryKeyInUse(Boolean isStorageSecondaryKeyInUse) { this.isStorageSecondaryKeyInUse = isStorageSecondaryKeyInUse; return this; } /** - * Get the isAzureMonitorTargetEnabled property: Specifies whether audit events are sent to Azure Monitor. In order - * to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as true. - * - *

When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs - * category on the database should be also created. Note that for server level audit you should use the 'master' - * database as {databaseName}. - * - *

Diagnostic Settings URI format: PUT + * Get the isAzureMonitorTargetEnabled property: Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as + * true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs + * category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - *

For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) or - * [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). - * + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * * @return the isAzureMonitorTargetEnabled value. */ public Boolean isAzureMonitorTargetEnabled() { @@ -470,32 +536,35 @@ public Boolean isAzureMonitorTargetEnabled() { } /** - * Set the isAzureMonitorTargetEnabled property: Specifies whether audit events are sent to Azure Monitor. In order - * to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as true. - * - *

When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs - * category on the database should be also created. Note that for server level audit you should use the 'master' - * database as {databaseName}. - * - *

Diagnostic Settings URI format: PUT + * Set the isAzureMonitorTargetEnabled property: Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as + * true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs + * category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - *

For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) or - * [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). - * + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * * @param isAzureMonitorTargetEnabled the isAzureMonitorTargetEnabled value to set. * @return the ExtendedServerBlobAuditingPolicyProperties object itself. */ - public ExtendedServerBlobAuditingPolicyProperties withIsAzureMonitorTargetEnabled( - Boolean isAzureMonitorTargetEnabled) { + public ExtendedServerBlobAuditingPolicyProperties + withIsAzureMonitorTargetEnabled(Boolean isAzureMonitorTargetEnabled) { this.isAzureMonitorTargetEnabled = isAzureMonitorTargetEnabled; return this; } /** * Get the queueDelayMs property: Specifies the amount of time in milliseconds that can elapse before audit actions - * are forced to be processed. The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. - * + * are forced to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. + * * @return the queueDelayMs value. */ public Integer queueDelayMs() { @@ -504,8 +573,9 @@ public Integer queueDelayMs() { /** * Set the queueDelayMs property: Specifies the amount of time in milliseconds that can elapse before audit actions - * are forced to be processed. The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. - * + * are forced to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. + * * @param queueDelayMs the queueDelayMs value to set. * @return the ExtendedServerBlobAuditingPolicyProperties object itself. */ @@ -515,19 +585,21 @@ public ExtendedServerBlobAuditingPolicyProperties withQueueDelayMs(Integer queue } /** - * Get the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, devops logs will - * be sent to Azure Monitor. In order to send the events to Azure Monitor, specify 'State' as 'Enabled', - * 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true - * - *

When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs + * Get the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, devops logs + * will be sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' as + * true and 'IsDevopsAuditEnabled' as true + * + * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs * category on the master database should also be created. - * - *

Diagnostic Settings URI format: PUT + * + * Diagnostic Settings URI format: + * PUT * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - *

For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) or - * [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). - * + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * * @return the isDevopsAuditEnabled value. */ public Boolean isDevopsAuditEnabled() { @@ -535,19 +607,21 @@ public Boolean isDevopsAuditEnabled() { } /** - * Set the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, devops logs will - * be sent to Azure Monitor. In order to send the events to Azure Monitor, specify 'State' as 'Enabled', - * 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true - * - *

When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs + * Set the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, devops logs + * will be sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' as + * true and 'IsDevopsAuditEnabled' as true + * + * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs * category on the master database should also be created. - * - *

Diagnostic Settings URI format: PUT + * + * Diagnostic Settings URI format: + * PUT * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - *

For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) or - * [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). - * + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * * @param isDevopsAuditEnabled the isDevopsAuditEnabled value to set. * @return the ExtendedServerBlobAuditingPolicyProperties object itself. */ @@ -558,15 +632,13 @@ public ExtendedServerBlobAuditingPolicyProperties withIsDevopsAuditEnabled(Boole /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (state() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property state in model ExtendedServerBlobAuditingPolicyProperties")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property state in model ExtendedServerBlobAuditingPolicyProperties")); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedSqlPoolBlobAuditingPolicyInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedSqlPoolBlobAuditingPolicyInner.java index e75df5da1165..400d3bac612d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedSqlPoolBlobAuditingPolicyInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedSqlPoolBlobAuditingPolicyInner.java @@ -11,7 +11,9 @@ import java.util.List; import java.util.UUID; -/** An extended Sql pool blob auditing policy. */ +/** + * An extended Sql pool blob auditing policy. + */ @Fluent public final class ExtendedSqlPoolBlobAuditingPolicyInner extends ProxyResource { /* @@ -20,13 +22,15 @@ public final class ExtendedSqlPoolBlobAuditingPolicyInner extends ProxyResource @JsonProperty(value = "properties") private ExtendedSqlPoolBlobAuditingPolicyProperties innerProperties; - /** Creates an instance of ExtendedSqlPoolBlobAuditingPolicyInner class. */ + /** + * Creates an instance of ExtendedSqlPoolBlobAuditingPolicyInner class. + */ public ExtendedSqlPoolBlobAuditingPolicyInner() { } /** * Get the innerProperties property: Resource properties. - * + * * @return the innerProperties value. */ private ExtendedSqlPoolBlobAuditingPolicyProperties innerProperties() { @@ -35,7 +39,7 @@ private ExtendedSqlPoolBlobAuditingPolicyProperties innerProperties() { /** * Get the predicateExpression property: Specifies condition of where clause when creating an audit. - * + * * @return the predicateExpression value. */ public String predicateExpression() { @@ -44,7 +48,7 @@ public String predicateExpression() { /** * Set the predicateExpression property: Specifies condition of where clause when creating an audit. - * + * * @param predicateExpression the predicateExpression value to set. * @return the ExtendedSqlPoolBlobAuditingPolicyInner object itself. */ @@ -59,7 +63,7 @@ public ExtendedSqlPoolBlobAuditingPolicyInner withPredicateExpression(String pre /** * Get the state property: Specifies the state of the policy. If state is Enabled, storageEndpoint or * isAzureMonitorTargetEnabled are required. - * + * * @return the state value. */ public BlobAuditingPolicyState state() { @@ -69,7 +73,7 @@ public BlobAuditingPolicyState state() { /** * Set the state property: Specifies the state of the policy. If state is Enabled, storageEndpoint or * isAzureMonitorTargetEnabled are required. - * + * * @param state the state value to set. * @return the ExtendedSqlPoolBlobAuditingPolicyInner object itself. */ @@ -85,7 +89,7 @@ public ExtendedSqlPoolBlobAuditingPolicyInner withState(BlobAuditingPolicyState * Get the storageEndpoint property: Specifies the blob storage endpoint (e.g. * https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is * required. - * + * * @return the storageEndpoint value. */ public String storageEndpoint() { @@ -96,7 +100,7 @@ public String storageEndpoint() { * Set the storageEndpoint property: Specifies the blob storage endpoint (e.g. * https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is * required. - * + * * @param storageEndpoint the storageEndpoint value to set. * @return the ExtendedSqlPoolBlobAuditingPolicyInner object itself. */ @@ -109,14 +113,16 @@ public ExtendedSqlPoolBlobAuditingPolicyInner withStorageEndpoint(String storage } /** - * Get the storageAccountAccessKey property: Specifies the identifier key of the auditing storage account. If state - * is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server - * system-assigned managed identity to access the storage. Prerequisites for using managed identity authentication: - * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). 2. Grant SQL Server - * identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server - * identity. For more information, see [Auditing to storage using Managed Identity + * Get the storageAccountAccessKey property: Specifies the identifier key of the auditing storage account. + * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL + * server system-assigned managed identity to access the storage. + * Prerequisites for using managed identity authentication: + * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). + * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role + * to the server identity. + * For more information, see [Auditing to storage using Managed Identity * authentication](https://go.microsoft.com/fwlink/?linkid=2114355). - * + * * @return the storageAccountAccessKey value. */ public String storageAccountAccessKey() { @@ -124,14 +130,16 @@ public String storageAccountAccessKey() { } /** - * Set the storageAccountAccessKey property: Specifies the identifier key of the auditing storage account. If state - * is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server - * system-assigned managed identity to access the storage. Prerequisites for using managed identity authentication: - * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). 2. Grant SQL Server - * identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server - * identity. For more information, see [Auditing to storage using Managed Identity + * Set the storageAccountAccessKey property: Specifies the identifier key of the auditing storage account. + * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL + * server system-assigned managed identity to access the storage. + * Prerequisites for using managed identity authentication: + * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). + * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role + * to the server identity. + * For more information, see [Auditing to storage using Managed Identity * authentication](https://go.microsoft.com/fwlink/?linkid=2114355). - * + * * @param storageAccountAccessKey the storageAccountAccessKey value to set. * @return the ExtendedSqlPoolBlobAuditingPolicyInner object itself. */ @@ -145,7 +153,7 @@ public ExtendedSqlPoolBlobAuditingPolicyInner withStorageAccountAccessKey(String /** * Get the retentionDays property: Specifies the number of days to keep in the audit logs in the storage account. - * + * * @return the retentionDays value. */ public Integer retentionDays() { @@ -154,7 +162,7 @@ public Integer retentionDays() { /** * Set the retentionDays property: Specifies the number of days to keep in the audit logs in the storage account. - * + * * @param retentionDays the retentionDays value to set. * @return the ExtendedSqlPoolBlobAuditingPolicyInner object itself. */ @@ -168,47 +176,72 @@ public ExtendedSqlPoolBlobAuditingPolicyInner withRetentionDays(Integer retentio /** * Get the auditActionsAndGroups property: Specifies the Actions-Groups and Actions to audit. - * - *

The recommended set of action groups to use is the following combination - this will audit all the queries and + * + * The recommended set of action groups to use is the following combination - this will audit all the queries and * stored procedures executed against the database, as well as successful and failed logins: - * - *

BATCH_COMPLETED_GROUP, SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, FAILED_DATABASE_AUTHENTICATION_GROUP. - * - *

This above combination is also the set that is configured by default when enabling auditing from the Azure + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing from the Azure * portal. - * - *

The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. + * + * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. * Using unnecessary groups could lead to very large quantities of audit records): - * - *

APPLICATION_ROLE_CHANGE_PASSWORD_GROUP BACKUP_RESTORE_GROUP DATABASE_LOGOUT_GROUP DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP DATABASE_OBJECT_PERMISSION_CHANGE_GROUP DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP DATABASE_PRINCIPAL_CHANGE_GROUP DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP FAILED_DATABASE_AUTHENTICATION_GROUP SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP USER_CHANGE_PASSWORD_GROUP BATCH_STARTED_GROUP BATCH_COMPLETED_GROUP - * - *

These are groups that cover all sql statements and stored procedures executed against the database, and should + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP + * BATCH_COMPLETED_GROUP + * + * These are groups that cover all sql statements and stored procedures executed against the database, and should * not be used in combination with other groups as this will result in duplicate audit logs. - * - *

For more information, see [Database-Level Audit Action + * + * For more information, see [Database-Level Audit Action * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - *

For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified - * for Server auditing policy). The supported actions to audit are: SELECT UPDATE INSERT DELETE EXECUTE RECEIVE + * + * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for + * Server auditing policy). The supported actions to audit are: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE * REFERENCES - * - *

The general form for defining an action to be audited is: {action} ON {object} BY {principal} - * - *

Note that <object> in the above format can refer to an object like a table, view, or stored procedure, - * or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} - * are used, respectively. - * - *

For example: SELECT on dbo.myTable by public SELECT on DATABASE::myDatabase by public SELECT on - * SCHEMA::mySchema by public - * - *

For more information, see [Database-Level Audit + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note that <object> in the above format can refer to an object like a table, view, or stored procedure, or + * an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are + * used, respectively. + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For more information, see [Database-Level Audit * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions). - * + * * @return the auditActionsAndGroups value. */ public List auditActionsAndGroups() { @@ -217,47 +250,72 @@ public List auditActionsAndGroups() { /** * Set the auditActionsAndGroups property: Specifies the Actions-Groups and Actions to audit. - * - *

The recommended set of action groups to use is the following combination - this will audit all the queries and + * + * The recommended set of action groups to use is the following combination - this will audit all the queries and * stored procedures executed against the database, as well as successful and failed logins: - * - *

BATCH_COMPLETED_GROUP, SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, FAILED_DATABASE_AUTHENTICATION_GROUP. - * - *

This above combination is also the set that is configured by default when enabling auditing from the Azure + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing from the Azure * portal. - * - *

The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. + * + * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. * Using unnecessary groups could lead to very large quantities of audit records): - * - *

APPLICATION_ROLE_CHANGE_PASSWORD_GROUP BACKUP_RESTORE_GROUP DATABASE_LOGOUT_GROUP DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP DATABASE_OBJECT_PERMISSION_CHANGE_GROUP DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP DATABASE_PRINCIPAL_CHANGE_GROUP DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP FAILED_DATABASE_AUTHENTICATION_GROUP SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP USER_CHANGE_PASSWORD_GROUP BATCH_STARTED_GROUP BATCH_COMPLETED_GROUP - * - *

These are groups that cover all sql statements and stored procedures executed against the database, and should + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP + * BATCH_COMPLETED_GROUP + * + * These are groups that cover all sql statements and stored procedures executed against the database, and should * not be used in combination with other groups as this will result in duplicate audit logs. - * - *

For more information, see [Database-Level Audit Action + * + * For more information, see [Database-Level Audit Action * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - *

For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified - * for Server auditing policy). The supported actions to audit are: SELECT UPDATE INSERT DELETE EXECUTE RECEIVE + * + * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for + * Server auditing policy). The supported actions to audit are: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE * REFERENCES - * - *

The general form for defining an action to be audited is: {action} ON {object} BY {principal} - * - *

Note that <object> in the above format can refer to an object like a table, view, or stored procedure, - * or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} - * are used, respectively. - * - *

For example: SELECT on dbo.myTable by public SELECT on DATABASE::myDatabase by public SELECT on - * SCHEMA::mySchema by public - * - *

For more information, see [Database-Level Audit + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note that <object> in the above format can refer to an object like a table, view, or stored procedure, or + * an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are + * used, respectively. + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For more information, see [Database-Level Audit * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions). - * + * * @param auditActionsAndGroups the auditActionsAndGroups value to set. * @return the ExtendedSqlPoolBlobAuditingPolicyInner object itself. */ @@ -271,7 +329,7 @@ public ExtendedSqlPoolBlobAuditingPolicyInner withAuditActionsAndGroups(ListWhen using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs - * category on the database should be also created. Note that for server level audit you should use the 'master' - * database as {databaseName}. - * - *

Diagnostic Settings URI format: PUT + * Get the isAzureMonitorTargetEnabled property: Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as + * true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs + * category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - *

For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) or - * [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). - * + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * * @return the isAzureMonitorTargetEnabled value. */ public Boolean isAzureMonitorTargetEnabled() { @@ -338,19 +398,21 @@ public Boolean isAzureMonitorTargetEnabled() { } /** - * Set the isAzureMonitorTargetEnabled property: Specifies whether audit events are sent to Azure Monitor. In order - * to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as true. - * - *

When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs - * category on the database should be also created. Note that for server level audit you should use the 'master' - * database as {databaseName}. - * - *

Diagnostic Settings URI format: PUT + * Set the isAzureMonitorTargetEnabled property: Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as + * true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs + * category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - *

For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) or - * [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). - * + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * * @param isAzureMonitorTargetEnabled the isAzureMonitorTargetEnabled value to set. * @return the ExtendedSqlPoolBlobAuditingPolicyInner object itself. */ @@ -364,8 +426,9 @@ public ExtendedSqlPoolBlobAuditingPolicyInner withIsAzureMonitorTargetEnabled(Bo /** * Get the queueDelayMs property: Specifies the amount of time in milliseconds that can elapse before audit actions - * are forced to be processed. The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. - * + * are forced to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. + * * @return the queueDelayMs value. */ public Integer queueDelayMs() { @@ -374,8 +437,9 @@ public Integer queueDelayMs() { /** * Set the queueDelayMs property: Specifies the amount of time in milliseconds that can elapse before audit actions - * are forced to be processed. The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. - * + * are forced to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. + * * @param queueDelayMs the queueDelayMs value to set. * @return the ExtendedSqlPoolBlobAuditingPolicyInner object itself. */ @@ -389,7 +453,7 @@ public ExtendedSqlPoolBlobAuditingPolicyInner withQueueDelayMs(Integer queueDela /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedSqlPoolBlobAuditingPolicyProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedSqlPoolBlobAuditingPolicyProperties.java index 29bea730c262..12f41d33b2ef 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedSqlPoolBlobAuditingPolicyProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ExtendedSqlPoolBlobAuditingPolicyProperties.java @@ -11,7 +11,9 @@ import java.util.List; import java.util.UUID; -/** Properties of an extended Sql pool blob auditing policy. */ +/** + * Properties of an extended Sql pool blob auditing policy. + */ @Fluent public final class ExtendedSqlPoolBlobAuditingPolicyProperties { /* @@ -56,20 +58,20 @@ public final class ExtendedSqlPoolBlobAuditingPolicyProperties { /* * Specifies the Actions-Groups and Actions to audit. - * + * * The recommended set of action groups to use is the following combination - this will audit all the queries and * stored procedures executed against the database, as well as successful and failed logins: - * + * * BATCH_COMPLETED_GROUP, * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, * FAILED_DATABASE_AUTHENTICATION_GROUP. - * + * * This above combination is also the set that is configured by default when enabling auditing from the Azure * portal. - * + * * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. * Using unnecessary groups could lead to very large quantities of audit records): - * + * * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP * BACKUP_RESTORE_GROUP * DATABASE_LOGOUT_GROUP @@ -90,13 +92,14 @@ public final class ExtendedSqlPoolBlobAuditingPolicyProperties { * USER_CHANGE_PASSWORD_GROUP * BATCH_STARTED_GROUP * BATCH_COMPLETED_GROUP - * + * * These are groups that cover all sql statements and stored procedures executed against the database, and should * not be used in combination with other groups as this will result in duplicate audit logs. - * + * * For more information, see [Database-Level Audit Action - * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * + * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action- + * groups-and-actions#database-level-audit-action-groups). + * * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for * Server auditing policy). The supported actions to audit are: * SELECT @@ -106,21 +109,22 @@ public final class ExtendedSqlPoolBlobAuditingPolicyProperties { * EXECUTE * RECEIVE * REFERENCES - * + * * The general form for defining an action to be audited is: * {action} ON {object} BY {principal} - * + * * Note that in the above format can refer to an object like a table, view, or stored procedure, or an * entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are * used, respectively. - * + * * For example: * SELECT on dbo.myTable by public * SELECT on DATABASE::myDatabase by public * SELECT on SCHEMA::mySchema by public - * + * * For more information, see [Database-Level Audit - * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) + * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action- + * groups-and-actions#database-level-audit-actions) */ @JsonProperty(value = "auditActionsAndGroups") private List auditActionsAndGroups; @@ -141,18 +145,20 @@ public final class ExtendedSqlPoolBlobAuditingPolicyProperties { * Specifies whether audit events are sent to Azure Monitor. * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as * true. - * + * * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs * category on the database should be also created. * Note that for server level audit you should use the 'master' database as {databaseName}. - * + * * Diagnostic Settings URI format: * PUT - * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * + * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft. + * Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}? + * api-version=2017-05-01-preview + * * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) - * + * */ @JsonProperty(value = "isAzureMonitorTargetEnabled") private Boolean isAzureMonitorTargetEnabled; @@ -164,13 +170,15 @@ public final class ExtendedSqlPoolBlobAuditingPolicyProperties { @JsonProperty(value = "queueDelayMs") private Integer queueDelayMs; - /** Creates an instance of ExtendedSqlPoolBlobAuditingPolicyProperties class. */ + /** + * Creates an instance of ExtendedSqlPoolBlobAuditingPolicyProperties class. + */ public ExtendedSqlPoolBlobAuditingPolicyProperties() { } /** * Get the predicateExpression property: Specifies condition of where clause when creating an audit. - * + * * @return the predicateExpression value. */ public String predicateExpression() { @@ -179,7 +187,7 @@ public String predicateExpression() { /** * Set the predicateExpression property: Specifies condition of where clause when creating an audit. - * + * * @param predicateExpression the predicateExpression value to set. * @return the ExtendedSqlPoolBlobAuditingPolicyProperties object itself. */ @@ -191,7 +199,7 @@ public ExtendedSqlPoolBlobAuditingPolicyProperties withPredicateExpression(Strin /** * Get the state property: Specifies the state of the policy. If state is Enabled, storageEndpoint or * isAzureMonitorTargetEnabled are required. - * + * * @return the state value. */ public BlobAuditingPolicyState state() { @@ -201,7 +209,7 @@ public BlobAuditingPolicyState state() { /** * Set the state property: Specifies the state of the policy. If state is Enabled, storageEndpoint or * isAzureMonitorTargetEnabled are required. - * + * * @param state the state value to set. * @return the ExtendedSqlPoolBlobAuditingPolicyProperties object itself. */ @@ -214,7 +222,7 @@ public ExtendedSqlPoolBlobAuditingPolicyProperties withState(BlobAuditingPolicyS * Get the storageEndpoint property: Specifies the blob storage endpoint (e.g. * https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is * required. - * + * * @return the storageEndpoint value. */ public String storageEndpoint() { @@ -225,7 +233,7 @@ public String storageEndpoint() { * Set the storageEndpoint property: Specifies the blob storage endpoint (e.g. * https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is * required. - * + * * @param storageEndpoint the storageEndpoint value to set. * @return the ExtendedSqlPoolBlobAuditingPolicyProperties object itself. */ @@ -235,14 +243,16 @@ public ExtendedSqlPoolBlobAuditingPolicyProperties withStorageEndpoint(String st } /** - * Get the storageAccountAccessKey property: Specifies the identifier key of the auditing storage account. If state - * is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server - * system-assigned managed identity to access the storage. Prerequisites for using managed identity authentication: - * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). 2. Grant SQL Server - * identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server - * identity. For more information, see [Auditing to storage using Managed Identity + * Get the storageAccountAccessKey property: Specifies the identifier key of the auditing storage account. + * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL + * server system-assigned managed identity to access the storage. + * Prerequisites for using managed identity authentication: + * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). + * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role + * to the server identity. + * For more information, see [Auditing to storage using Managed Identity * authentication](https://go.microsoft.com/fwlink/?linkid=2114355). - * + * * @return the storageAccountAccessKey value. */ public String storageAccountAccessKey() { @@ -250,14 +260,16 @@ public String storageAccountAccessKey() { } /** - * Set the storageAccountAccessKey property: Specifies the identifier key of the auditing storage account. If state - * is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server - * system-assigned managed identity to access the storage. Prerequisites for using managed identity authentication: - * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). 2. Grant SQL Server - * identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server - * identity. For more information, see [Auditing to storage using Managed Identity + * Set the storageAccountAccessKey property: Specifies the identifier key of the auditing storage account. + * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL + * server system-assigned managed identity to access the storage. + * Prerequisites for using managed identity authentication: + * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). + * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role + * to the server identity. + * For more information, see [Auditing to storage using Managed Identity * authentication](https://go.microsoft.com/fwlink/?linkid=2114355). - * + * * @param storageAccountAccessKey the storageAccountAccessKey value to set. * @return the ExtendedSqlPoolBlobAuditingPolicyProperties object itself. */ @@ -268,7 +280,7 @@ public ExtendedSqlPoolBlobAuditingPolicyProperties withStorageAccountAccessKey(S /** * Get the retentionDays property: Specifies the number of days to keep in the audit logs in the storage account. - * + * * @return the retentionDays value. */ public Integer retentionDays() { @@ -277,7 +289,7 @@ public Integer retentionDays() { /** * Set the retentionDays property: Specifies the number of days to keep in the audit logs in the storage account. - * + * * @param retentionDays the retentionDays value to set. * @return the ExtendedSqlPoolBlobAuditingPolicyProperties object itself. */ @@ -288,47 +300,72 @@ public ExtendedSqlPoolBlobAuditingPolicyProperties withRetentionDays(Integer ret /** * Get the auditActionsAndGroups property: Specifies the Actions-Groups and Actions to audit. - * - *

The recommended set of action groups to use is the following combination - this will audit all the queries and + * + * The recommended set of action groups to use is the following combination - this will audit all the queries and * stored procedures executed against the database, as well as successful and failed logins: - * - *

BATCH_COMPLETED_GROUP, SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, FAILED_DATABASE_AUTHENTICATION_GROUP. - * - *

This above combination is also the set that is configured by default when enabling auditing from the Azure + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing from the Azure * portal. - * - *

The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. + * + * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. * Using unnecessary groups could lead to very large quantities of audit records): - * - *

APPLICATION_ROLE_CHANGE_PASSWORD_GROUP BACKUP_RESTORE_GROUP DATABASE_LOGOUT_GROUP DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP DATABASE_OBJECT_PERMISSION_CHANGE_GROUP DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP DATABASE_PRINCIPAL_CHANGE_GROUP DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP FAILED_DATABASE_AUTHENTICATION_GROUP SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP USER_CHANGE_PASSWORD_GROUP BATCH_STARTED_GROUP BATCH_COMPLETED_GROUP - * - *

These are groups that cover all sql statements and stored procedures executed against the database, and should + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP + * BATCH_COMPLETED_GROUP + * + * These are groups that cover all sql statements and stored procedures executed against the database, and should * not be used in combination with other groups as this will result in duplicate audit logs. - * - *

For more information, see [Database-Level Audit Action + * + * For more information, see [Database-Level Audit Action * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - *

For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified - * for Server auditing policy). The supported actions to audit are: SELECT UPDATE INSERT DELETE EXECUTE RECEIVE + * + * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for + * Server auditing policy). The supported actions to audit are: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE * REFERENCES - * - *

The general form for defining an action to be audited is: {action} ON {object} BY {principal} - * - *

Note that <object> in the above format can refer to an object like a table, view, or stored procedure, - * or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} - * are used, respectively. - * - *

For example: SELECT on dbo.myTable by public SELECT on DATABASE::myDatabase by public SELECT on - * SCHEMA::mySchema by public - * - *

For more information, see [Database-Level Audit + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note that <object> in the above format can refer to an object like a table, view, or stored procedure, or + * an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are + * used, respectively. + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For more information, see [Database-Level Audit * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions). - * + * * @return the auditActionsAndGroups value. */ public List auditActionsAndGroups() { @@ -337,47 +374,72 @@ public List auditActionsAndGroups() { /** * Set the auditActionsAndGroups property: Specifies the Actions-Groups and Actions to audit. - * - *

The recommended set of action groups to use is the following combination - this will audit all the queries and + * + * The recommended set of action groups to use is the following combination - this will audit all the queries and * stored procedures executed against the database, as well as successful and failed logins: - * - *

BATCH_COMPLETED_GROUP, SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, FAILED_DATABASE_AUTHENTICATION_GROUP. - * - *

This above combination is also the set that is configured by default when enabling auditing from the Azure + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing from the Azure * portal. - * - *

The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. + * + * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. * Using unnecessary groups could lead to very large quantities of audit records): - * - *

APPLICATION_ROLE_CHANGE_PASSWORD_GROUP BACKUP_RESTORE_GROUP DATABASE_LOGOUT_GROUP DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP DATABASE_OBJECT_PERMISSION_CHANGE_GROUP DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP DATABASE_PRINCIPAL_CHANGE_GROUP DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP FAILED_DATABASE_AUTHENTICATION_GROUP SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP USER_CHANGE_PASSWORD_GROUP BATCH_STARTED_GROUP BATCH_COMPLETED_GROUP - * - *

These are groups that cover all sql statements and stored procedures executed against the database, and should + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP + * BATCH_COMPLETED_GROUP + * + * These are groups that cover all sql statements and stored procedures executed against the database, and should * not be used in combination with other groups as this will result in duplicate audit logs. - * - *

For more information, see [Database-Level Audit Action + * + * For more information, see [Database-Level Audit Action * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - *

For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified - * for Server auditing policy). The supported actions to audit are: SELECT UPDATE INSERT DELETE EXECUTE RECEIVE + * + * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for + * Server auditing policy). The supported actions to audit are: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE * REFERENCES - * - *

The general form for defining an action to be audited is: {action} ON {object} BY {principal} - * - *

Note that <object> in the above format can refer to an object like a table, view, or stored procedure, - * or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} - * are used, respectively. - * - *

For example: SELECT on dbo.myTable by public SELECT on DATABASE::myDatabase by public SELECT on - * SCHEMA::mySchema by public - * - *

For more information, see [Database-Level Audit + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note that <object> in the above format can refer to an object like a table, view, or stored procedure, or + * an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are + * used, respectively. + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For more information, see [Database-Level Audit * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions). - * + * * @param auditActionsAndGroups the auditActionsAndGroups value to set. * @return the ExtendedSqlPoolBlobAuditingPolicyProperties object itself. */ @@ -388,7 +450,7 @@ public ExtendedSqlPoolBlobAuditingPolicyProperties withAuditActionsAndGroups(Lis /** * Get the storageAccountSubscriptionId property: Specifies the blob storage subscription Id. - * + * * @return the storageAccountSubscriptionId value. */ public UUID storageAccountSubscriptionId() { @@ -397,12 +459,12 @@ public UUID storageAccountSubscriptionId() { /** * Set the storageAccountSubscriptionId property: Specifies the blob storage subscription Id. - * + * * @param storageAccountSubscriptionId the storageAccountSubscriptionId value to set. * @return the ExtendedSqlPoolBlobAuditingPolicyProperties object itself. */ - public ExtendedSqlPoolBlobAuditingPolicyProperties withStorageAccountSubscriptionId( - UUID storageAccountSubscriptionId) { + public ExtendedSqlPoolBlobAuditingPolicyProperties + withStorageAccountSubscriptionId(UUID storageAccountSubscriptionId) { this.storageAccountSubscriptionId = storageAccountSubscriptionId; return this; } @@ -410,7 +472,7 @@ public ExtendedSqlPoolBlobAuditingPolicyProperties withStorageAccountSubscriptio /** * Get the isStorageSecondaryKeyInUse property: Specifies whether storageAccountAccessKey value is the storage's * secondary key. - * + * * @return the isStorageSecondaryKeyInUse value. */ public Boolean isStorageSecondaryKeyInUse() { @@ -420,30 +482,32 @@ public Boolean isStorageSecondaryKeyInUse() { /** * Set the isStorageSecondaryKeyInUse property: Specifies whether storageAccountAccessKey value is the storage's * secondary key. - * + * * @param isStorageSecondaryKeyInUse the isStorageSecondaryKeyInUse value to set. * @return the ExtendedSqlPoolBlobAuditingPolicyProperties object itself. */ - public ExtendedSqlPoolBlobAuditingPolicyProperties withIsStorageSecondaryKeyInUse( - Boolean isStorageSecondaryKeyInUse) { + public ExtendedSqlPoolBlobAuditingPolicyProperties + withIsStorageSecondaryKeyInUse(Boolean isStorageSecondaryKeyInUse) { this.isStorageSecondaryKeyInUse = isStorageSecondaryKeyInUse; return this; } /** - * Get the isAzureMonitorTargetEnabled property: Specifies whether audit events are sent to Azure Monitor. In order - * to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as true. - * - *

When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs - * category on the database should be also created. Note that for server level audit you should use the 'master' - * database as {databaseName}. - * - *

Diagnostic Settings URI format: PUT + * Get the isAzureMonitorTargetEnabled property: Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as + * true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs + * category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - *

For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) or - * [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). - * + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * * @return the isAzureMonitorTargetEnabled value. */ public Boolean isAzureMonitorTargetEnabled() { @@ -451,32 +515,35 @@ public Boolean isAzureMonitorTargetEnabled() { } /** - * Set the isAzureMonitorTargetEnabled property: Specifies whether audit events are sent to Azure Monitor. In order - * to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as true. - * - *

When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs - * category on the database should be also created. Note that for server level audit you should use the 'master' - * database as {databaseName}. - * - *

Diagnostic Settings URI format: PUT + * Set the isAzureMonitorTargetEnabled property: Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as + * true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs + * category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - *

For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) or - * [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). - * + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * * @param isAzureMonitorTargetEnabled the isAzureMonitorTargetEnabled value to set. * @return the ExtendedSqlPoolBlobAuditingPolicyProperties object itself. */ - public ExtendedSqlPoolBlobAuditingPolicyProperties withIsAzureMonitorTargetEnabled( - Boolean isAzureMonitorTargetEnabled) { + public ExtendedSqlPoolBlobAuditingPolicyProperties + withIsAzureMonitorTargetEnabled(Boolean isAzureMonitorTargetEnabled) { this.isAzureMonitorTargetEnabled = isAzureMonitorTargetEnabled; return this; } /** * Get the queueDelayMs property: Specifies the amount of time in milliseconds that can elapse before audit actions - * are forced to be processed. The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. - * + * are forced to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. + * * @return the queueDelayMs value. */ public Integer queueDelayMs() { @@ -485,8 +552,9 @@ public Integer queueDelayMs() { /** * Set the queueDelayMs property: Specifies the amount of time in milliseconds that can elapse before audit actions - * are forced to be processed. The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. - * + * are forced to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. + * * @param queueDelayMs the queueDelayMs value to set. * @return the ExtendedSqlPoolBlobAuditingPolicyProperties object itself. */ @@ -497,15 +565,13 @@ public ExtendedSqlPoolBlobAuditingPolicyProperties withQueueDelayMs(Integer queu /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (state() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property state in model ExtendedSqlPoolBlobAuditingPolicyProperties")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property state in model ExtendedSqlPoolBlobAuditingPolicyProperties")); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/FollowerDatabaseDefinitionInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/FollowerDatabaseDefinitionInner.java index b805b95a586b..5854f038d940 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/FollowerDatabaseDefinitionInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/FollowerDatabaseDefinitionInner.java @@ -8,7 +8,9 @@ import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonProperty; -/** A class representing follower database request. */ +/** + * A class representing follower database request. + */ @Fluent public final class FollowerDatabaseDefinitionInner { /* @@ -29,13 +31,15 @@ public final class FollowerDatabaseDefinitionInner { @JsonProperty(value = "databaseName", access = JsonProperty.Access.WRITE_ONLY) private String databaseName; - /** Creates an instance of FollowerDatabaseDefinitionInner class. */ + /** + * Creates an instance of FollowerDatabaseDefinitionInner class. + */ public FollowerDatabaseDefinitionInner() { } /** * Get the kustoPoolResourceId property: Resource id of the cluster that follows a database owned by this cluster. - * + * * @return the kustoPoolResourceId value. */ public String kustoPoolResourceId() { @@ -44,7 +48,7 @@ public String kustoPoolResourceId() { /** * Set the kustoPoolResourceId property: Resource id of the cluster that follows a database owned by this cluster. - * + * * @param kustoPoolResourceId the kustoPoolResourceId value to set. * @return the FollowerDatabaseDefinitionInner object itself. */ @@ -56,7 +60,7 @@ public FollowerDatabaseDefinitionInner withKustoPoolResourceId(String kustoPoolR /** * Get the attachedDatabaseConfigurationName property: Resource name of the attached database configuration in the * follower cluster. - * + * * @return the attachedDatabaseConfigurationName value. */ public String attachedDatabaseConfigurationName() { @@ -66,20 +70,20 @@ public String attachedDatabaseConfigurationName() { /** * Set the attachedDatabaseConfigurationName property: Resource name of the attached database configuration in the * follower cluster. - * + * * @param attachedDatabaseConfigurationName the attachedDatabaseConfigurationName value to set. * @return the FollowerDatabaseDefinitionInner object itself. */ - public FollowerDatabaseDefinitionInner withAttachedDatabaseConfigurationName( - String attachedDatabaseConfigurationName) { + public FollowerDatabaseDefinitionInner + withAttachedDatabaseConfigurationName(String attachedDatabaseConfigurationName) { this.attachedDatabaseConfigurationName = attachedDatabaseConfigurationName; return this; } /** - * Get the databaseName property: The database name owned by this cluster that was followed. * in case following all - * databases. - * + * Get the databaseName property: The database name owned by this cluster that was followed. * in case following + * all databases. + * * @return the databaseName value. */ public String databaseName() { @@ -88,22 +92,17 @@ public String databaseName() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (kustoPoolResourceId() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property kustoPoolResourceId in model FollowerDatabaseDefinitionInner")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property kustoPoolResourceId in model FollowerDatabaseDefinitionInner")); } if (attachedDatabaseConfigurationName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property attachedDatabaseConfigurationName in model" - + " FollowerDatabaseDefinitionInner")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property attachedDatabaseConfigurationName in model FollowerDatabaseDefinitionInner")); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/GeoBackupPolicyInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/GeoBackupPolicyInner.java index 200388e2c18b..3b4e25f44ad5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/GeoBackupPolicyInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/GeoBackupPolicyInner.java @@ -10,7 +10,9 @@ import com.azure.resourcemanager.synapse.models.GeoBackupPolicyState; import com.fasterxml.jackson.annotation.JsonProperty; -/** A database geo backup policy. */ +/** + * A database geo backup policy. + */ @Fluent public final class GeoBackupPolicyInner extends ProxyResource { /* @@ -20,7 +22,7 @@ public final class GeoBackupPolicyInner extends ProxyResource { private GeoBackupPolicyProperties innerProperties = new GeoBackupPolicyProperties(); /* - * Kind of geo backup policy. This is metadata used for the Azure portal experience. + * Kind of geo backup policy. This is metadata used for the Azure portal experience. */ @JsonProperty(value = "kind", access = JsonProperty.Access.WRITE_ONLY) private String kind; @@ -31,13 +33,15 @@ public final class GeoBackupPolicyInner extends ProxyResource { @JsonProperty(value = "location", access = JsonProperty.Access.WRITE_ONLY) private String location; - /** Creates an instance of GeoBackupPolicyInner class. */ + /** + * Creates an instance of GeoBackupPolicyInner class. + */ public GeoBackupPolicyInner() { } /** * Get the innerProperties property: The properties of the geo backup policy. - * + * * @return the innerProperties value. */ private GeoBackupPolicyProperties innerProperties() { @@ -46,7 +50,7 @@ private GeoBackupPolicyProperties innerProperties() { /** * Get the kind property: Kind of geo backup policy. This is metadata used for the Azure portal experience. - * + * * @return the kind value. */ public String kind() { @@ -55,7 +59,7 @@ public String kind() { /** * Get the location property: Backup policy location. - * + * * @return the location value. */ public String location() { @@ -64,7 +68,7 @@ public String location() { /** * Get the state property: The state of the geo backup policy. - * + * * @return the state value. */ public GeoBackupPolicyState state() { @@ -73,7 +77,7 @@ public GeoBackupPolicyState state() { /** * Set the state property: The state of the geo backup policy. - * + * * @param state the state value to set. * @return the GeoBackupPolicyInner object itself. */ @@ -87,7 +91,7 @@ public GeoBackupPolicyInner withState(GeoBackupPolicyState state) { /** * Get the storageType property: The storage type of the geo backup policy. - * + * * @return the storageType value. */ public String storageType() { @@ -96,15 +100,13 @@ public String storageType() { /** * 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 GeoBackupPolicyInner")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property innerProperties in model GeoBackupPolicyInner")); } else { innerProperties().validate(); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/GeoBackupPolicyProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/GeoBackupPolicyProperties.java index ef03ea9da41c..e9f8ed46718e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/GeoBackupPolicyProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/GeoBackupPolicyProperties.java @@ -9,7 +9,9 @@ import com.azure.resourcemanager.synapse.models.GeoBackupPolicyState; import com.fasterxml.jackson.annotation.JsonProperty; -/** The properties of the geo backup policy. */ +/** + * The properties of the geo backup policy. + */ @Fluent public final class GeoBackupPolicyProperties { /* @@ -24,13 +26,15 @@ public final class GeoBackupPolicyProperties { @JsonProperty(value = "storageType", access = JsonProperty.Access.WRITE_ONLY) private String storageType; - /** Creates an instance of GeoBackupPolicyProperties class. */ + /** + * Creates an instance of GeoBackupPolicyProperties class. + */ public GeoBackupPolicyProperties() { } /** * Get the state property: The state of the geo backup policy. - * + * * @return the state value. */ public GeoBackupPolicyState state() { @@ -39,7 +43,7 @@ public GeoBackupPolicyState state() { /** * Set the state property: The state of the geo backup policy. - * + * * @param state the state value to set. * @return the GeoBackupPolicyProperties object itself. */ @@ -50,7 +54,7 @@ public GeoBackupPolicyProperties withState(GeoBackupPolicyState state) { /** * Get the storageType property: The storage type of the geo backup policy. - * + * * @return the storageType value. */ public String storageType() { @@ -59,14 +63,13 @@ public String storageType() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (state() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property state in model GeoBackupPolicyProperties")); + throw LOGGER.logExceptionAsError( + new IllegalArgumentException("Missing required property state in model GeoBackupPolicyProperties")); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeAuthKeysInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeAuthKeysInner.java index e763959de0b4..c639d288e3ed 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeAuthKeysInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeAuthKeysInner.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** The integration runtime authentication keys. */ +/** + * The integration runtime authentication keys. + */ @Fluent public final class IntegrationRuntimeAuthKeysInner { /* @@ -22,13 +24,15 @@ public final class IntegrationRuntimeAuthKeysInner { @JsonProperty(value = "authKey2") private String authKey2; - /** Creates an instance of IntegrationRuntimeAuthKeysInner class. */ + /** + * Creates an instance of IntegrationRuntimeAuthKeysInner class. + */ public IntegrationRuntimeAuthKeysInner() { } /** * Get the authKey1 property: The primary integration runtime authentication key. - * + * * @return the authKey1 value. */ public String authKey1() { @@ -37,7 +41,7 @@ public String authKey1() { /** * Set the authKey1 property: The primary integration runtime authentication key. - * + * * @param authKey1 the authKey1 value to set. * @return the IntegrationRuntimeAuthKeysInner object itself. */ @@ -48,7 +52,7 @@ public IntegrationRuntimeAuthKeysInner withAuthKey1(String authKey1) { /** * Get the authKey2 property: The secondary integration runtime authentication key. - * + * * @return the authKey2 value. */ public String authKey2() { @@ -57,7 +61,7 @@ public String authKey2() { /** * Set the authKey2 property: The secondary integration runtime authentication key. - * + * * @param authKey2 the authKey2 value to set. * @return the IntegrationRuntimeAuthKeysInner object itself. */ @@ -68,7 +72,7 @@ public IntegrationRuntimeAuthKeysInner withAuthKey2(String authKey2) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeConnectionInfoInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeConnectionInfoInner.java index a008fbb14e27..ce3d6c23fca4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeConnectionInfoInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeConnectionInfoInner.java @@ -12,7 +12,9 @@ import java.util.HashMap; import java.util.Map; -/** Connection information for encrypting the on-premises data source credentials. */ +/** + * Connection information for encrypting the on-premises data source credentials. + */ @Fluent public final class IntegrationRuntimeConnectionInfoInner { /* @@ -54,16 +56,19 @@ public final class IntegrationRuntimeConnectionInfoInner { /* * Connection information for encrypting the on-premises data source credentials. */ - @JsonIgnore private Map additionalProperties; + @JsonIgnore + private Map additionalProperties; - /** Creates an instance of IntegrationRuntimeConnectionInfoInner class. */ + /** + * Creates an instance of IntegrationRuntimeConnectionInfoInner class. + */ public IntegrationRuntimeConnectionInfoInner() { } /** * Get the serviceToken property: The token generated in service. Callers use this token to authenticate to * integration runtime. - * + * * @return the serviceToken value. */ public String serviceToken() { @@ -73,7 +78,7 @@ public String serviceToken() { /** * Get the identityCertThumbprint property: The integration runtime SSL certificate thumbprint. Click-Once * application uses it to do server validation. - * + * * @return the identityCertThumbprint value. */ public String identityCertThumbprint() { @@ -82,7 +87,7 @@ public String identityCertThumbprint() { /** * Get the hostServiceUri property: The on-premises integration runtime host URL. - * + * * @return the hostServiceUri value. */ public String hostServiceUri() { @@ -91,7 +96,7 @@ public String hostServiceUri() { /** * Get the version property: The integration runtime version. - * + * * @return the version value. */ public String version() { @@ -101,7 +106,7 @@ public String version() { /** * Get the publicKey property: The public key for encrypting a credential when transferring the credential to the * integration runtime. - * + * * @return the publicKey value. */ public String publicKey() { @@ -110,7 +115,7 @@ public String publicKey() { /** * Get the isIdentityCertExprired property: Whether the identity certificate is expired. - * + * * @return the isIdentityCertExprired value. */ public Boolean isIdentityCertExprired() { @@ -120,7 +125,7 @@ public Boolean isIdentityCertExprired() { /** * Get the additionalProperties property: Connection information for encrypting the on-premises data source * credentials. - * + * * @return the additionalProperties value. */ @JsonAnyGetter @@ -131,7 +136,7 @@ public Map additionalProperties() { /** * Set the additionalProperties property: Connection information for encrypting the on-premises data source * credentials. - * + * * @param additionalProperties the additionalProperties value to set. * @return the IntegrationRuntimeConnectionInfoInner object itself. */ @@ -150,7 +155,7 @@ void withAdditionalProperties(String key, Object value) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeEnableinteractivequeryInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeEnableinteractivequeryInner.java index 8d4e642376a8..1da6d2f330da 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeEnableinteractivequeryInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeEnableinteractivequeryInner.java @@ -8,11 +8,13 @@ import com.azure.resourcemanager.synapse.models.WorkspaceStatus; import com.fasterxml.jackson.annotation.JsonProperty; -/** Integration Runtime Operation Status Properties. */ +/** + * Integration Runtime Operation Status Properties. + */ @Fluent public final class IntegrationRuntimeEnableinteractivequeryInner { /* - * EnableInteractivequery status of Integrationruntimes. + * EnableInteractivequery status of Integrationruntimes. */ @JsonProperty(value = "status") private WorkspaceStatus status; @@ -35,13 +37,15 @@ public final class IntegrationRuntimeEnableinteractivequeryInner { @JsonProperty(value = "error") private String error; - /** Creates an instance of IntegrationRuntimeEnableinteractivequeryInner class. */ + /** + * Creates an instance of IntegrationRuntimeEnableinteractivequeryInner class. + */ public IntegrationRuntimeEnableinteractivequeryInner() { } /** * Get the status property: EnableInteractivequery status of Integrationruntimes. - * + * * @return the status value. */ public WorkspaceStatus status() { @@ -50,7 +54,7 @@ public WorkspaceStatus status() { /** * Set the status property: EnableInteractivequery status of Integrationruntimes. - * + * * @param status the status value to set. * @return the IntegrationRuntimeEnableinteractivequeryInner object itself. */ @@ -61,7 +65,7 @@ public IntegrationRuntimeEnableinteractivequeryInner withStatus(WorkspaceStatus /** * Get the name property: The operation name. - * + * * @return the name value. */ public String name() { @@ -70,7 +74,7 @@ public String name() { /** * Set the name property: The operation name. - * + * * @param name the name value to set. * @return the IntegrationRuntimeEnableinteractivequeryInner object itself. */ @@ -81,7 +85,7 @@ public IntegrationRuntimeEnableinteractivequeryInner withName(String name) { /** * Get the properties property: The operation properties. - * + * * @return the properties value. */ public Object properties() { @@ -90,7 +94,7 @@ public Object properties() { /** * Set the properties property: The operation properties. - * + * * @param properties the properties value to set. * @return the IntegrationRuntimeEnableinteractivequeryInner object itself. */ @@ -101,7 +105,7 @@ public IntegrationRuntimeEnableinteractivequeryInner withProperties(Object prope /** * Get the error property: The operation error message. - * + * * @return the error value. */ public String error() { @@ -110,7 +114,7 @@ public String error() { /** * Set the error property: The operation error message. - * + * * @param error the error value to set. * @return the IntegrationRuntimeEnableinteractivequeryInner object itself. */ @@ -121,7 +125,7 @@ public IntegrationRuntimeEnableinteractivequeryInner withError(String error) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeMonitoringDataInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeMonitoringDataInner.java index e583de30e4a5..b87f6908c1e3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeMonitoringDataInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeMonitoringDataInner.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Get monitoring data response. */ +/** + * Get monitoring data response. + */ @Fluent public final class IntegrationRuntimeMonitoringDataInner { /* @@ -24,13 +26,15 @@ public final class IntegrationRuntimeMonitoringDataInner { @JsonProperty(value = "nodes") private List nodes; - /** Creates an instance of IntegrationRuntimeMonitoringDataInner class. */ + /** + * Creates an instance of IntegrationRuntimeMonitoringDataInner class. + */ public IntegrationRuntimeMonitoringDataInner() { } /** * Get the name property: Integration runtime name. - * + * * @return the name value. */ public String name() { @@ -39,7 +43,7 @@ public String name() { /** * Set the name property: Integration runtime name. - * + * * @param name the name value to set. * @return the IntegrationRuntimeMonitoringDataInner object itself. */ @@ -50,7 +54,7 @@ public IntegrationRuntimeMonitoringDataInner withName(String name) { /** * Get the nodes property: Integration runtime node monitoring data. - * + * * @return the nodes value. */ public List nodes() { @@ -59,7 +63,7 @@ public List nodes() { /** * Set the nodes property: Integration runtime node monitoring data. - * + * * @param nodes the nodes value to set. * @return the IntegrationRuntimeMonitoringDataInner object itself. */ @@ -70,7 +74,7 @@ public IntegrationRuntimeMonitoringDataInner withNodes(List value; - /** Creates an instance of IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner class. */ + /** + * Creates an instance of IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner class. + */ public IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner() { } /** * Get the value property: The list of outbound network dependency endpoints. - * + * * @return the value value. */ public List value() { @@ -33,19 +37,19 @@ public List value /** * Set the value property: The list of outbound network dependency endpoints. - * + * * @param value the value value to set. * @return the IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner object itself. */ - public IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner withValue( - List value) { + public IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner + withValue(List value) { this.value = value; return this; } /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeResourceInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeResourceInner.java index 3c35ba9fd358..5a7b79c7de43 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeResourceInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeResourceInner.java @@ -10,7 +10,9 @@ import com.azure.resourcemanager.synapse.models.IntegrationRuntime; import com.fasterxml.jackson.annotation.JsonProperty; -/** Integration runtime resource type. */ +/** + * Integration runtime resource type. + */ @Fluent public final class IntegrationRuntimeResourceInner extends EntityResource { /* @@ -19,13 +21,15 @@ public final class IntegrationRuntimeResourceInner extends EntityResource { @JsonProperty(value = "properties", required = true) private IntegrationRuntime properties; - /** Creates an instance of IntegrationRuntimeResourceInner class. */ + /** + * Creates an instance of IntegrationRuntimeResourceInner class. + */ public IntegrationRuntimeResourceInner() { } /** * Get the properties property: Integration runtime properties. - * + * * @return the properties value. */ public IntegrationRuntime properties() { @@ -34,7 +38,7 @@ public IntegrationRuntime properties() { /** * Set the properties property: Integration runtime properties. - * + * * @param properties the properties value to set. * @return the IntegrationRuntimeResourceInner object itself. */ @@ -45,17 +49,15 @@ public IntegrationRuntimeResourceInner withProperties(IntegrationRuntime propert /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ @Override public void validate() { super.validate(); if (properties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property properties in model IntegrationRuntimeResourceInner")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property properties in model IntegrationRuntimeResourceInner")); } else { properties().validate(); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeStatusResponseInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeStatusResponseInner.java index 6af1330027fe..8c3210ba0ef1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeStatusResponseInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeStatusResponseInner.java @@ -9,7 +9,9 @@ import com.azure.resourcemanager.synapse.models.IntegrationRuntimeStatus; import com.fasterxml.jackson.annotation.JsonProperty; -/** Integration runtime status response. */ +/** + * Integration runtime status response. + */ @Fluent public final class IntegrationRuntimeStatusResponseInner { /* @@ -24,13 +26,15 @@ public final class IntegrationRuntimeStatusResponseInner { @JsonProperty(value = "properties", required = true) private IntegrationRuntimeStatus properties; - /** Creates an instance of IntegrationRuntimeStatusResponseInner class. */ + /** + * Creates an instance of IntegrationRuntimeStatusResponseInner class. + */ public IntegrationRuntimeStatusResponseInner() { } /** * Get the name property: The integration runtime name. - * + * * @return the name value. */ public String name() { @@ -39,7 +43,7 @@ public String name() { /** * Get the properties property: Integration runtime properties. - * + * * @return the properties value. */ public IntegrationRuntimeStatus properties() { @@ -48,7 +52,7 @@ public IntegrationRuntimeStatus properties() { /** * Set the properties property: Integration runtime properties. - * + * * @param properties the properties value to set. * @return the IntegrationRuntimeStatusResponseInner object itself. */ @@ -59,15 +63,13 @@ public IntegrationRuntimeStatusResponseInner withProperties(IntegrationRuntimeSt /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (properties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property properties in model IntegrationRuntimeStatusResponseInner")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property properties in model IntegrationRuntimeStatusResponseInner")); } else { properties().validate(); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeStopOperationStatusInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeStopOperationStatusInner.java index 0553f7ba5d67..cc03fab2b604 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeStopOperationStatusInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IntegrationRuntimeStopOperationStatusInner.java @@ -8,7 +8,9 @@ import com.azure.resourcemanager.synapse.models.WorkspaceStatus; import com.fasterxml.jackson.annotation.JsonProperty; -/** Integration Runtime Operation Status Properties. */ +/** + * Integration Runtime Operation Status Properties. + */ @Fluent public final class IntegrationRuntimeStopOperationStatusInner { /* @@ -35,13 +37,15 @@ public final class IntegrationRuntimeStopOperationStatusInner { @JsonProperty(value = "error") private String error; - /** Creates an instance of IntegrationRuntimeStopOperationStatusInner class. */ + /** + * Creates an instance of IntegrationRuntimeStopOperationStatusInner class. + */ public IntegrationRuntimeStopOperationStatusInner() { } /** * Get the status property: status of Start Integrationruntimes. - * + * * @return the status value. */ public WorkspaceStatus status() { @@ -50,7 +54,7 @@ public WorkspaceStatus status() { /** * Set the status property: status of Start Integrationruntimes. - * + * * @param status the status value to set. * @return the IntegrationRuntimeStopOperationStatusInner object itself. */ @@ -61,7 +65,7 @@ public IntegrationRuntimeStopOperationStatusInner withStatus(WorkspaceStatus sta /** * Get the name property: The operation name. - * + * * @return the name value. */ public String name() { @@ -70,7 +74,7 @@ public String name() { /** * Set the name property: The operation name. - * + * * @param name the name value to set. * @return the IntegrationRuntimeStopOperationStatusInner object itself. */ @@ -81,7 +85,7 @@ public IntegrationRuntimeStopOperationStatusInner withName(String name) { /** * Get the properties property: The operation properties. - * + * * @return the properties value. */ public Object properties() { @@ -90,7 +94,7 @@ public Object properties() { /** * Set the properties property: The operation properties. - * + * * @param properties the properties value to set. * @return the IntegrationRuntimeStopOperationStatusInner object itself. */ @@ -101,7 +105,7 @@ public IntegrationRuntimeStopOperationStatusInner withProperties(Object properti /** * Get the error property: The operation error message. - * + * * @return the error value. */ public String error() { @@ -110,7 +114,7 @@ public String error() { /** * Set the error property: The operation error message. - * + * * @param error the error value to set. * @return the IntegrationRuntimeStopOperationStatusInner object itself. */ @@ -121,7 +125,7 @@ public IntegrationRuntimeStopOperationStatusInner withError(String error) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IotHubConnectionProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IotHubConnectionProperties.java index 343cc2bf7a9a..9110c07f8d1f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IotHubConnectionProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IotHubConnectionProperties.java @@ -11,7 +11,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Class representing the Kusto Iot hub connection properties. */ +/** + * Class representing the Kusto Iot hub connection properties. + */ @Fluent public final class IotHubConnectionProperties { /* @@ -62,13 +64,15 @@ public final class IotHubConnectionProperties { @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) private ResourceProvisioningState provisioningState; - /** Creates an instance of IotHubConnectionProperties class. */ + /** + * Creates an instance of IotHubConnectionProperties class. + */ public IotHubConnectionProperties() { } /** * Get the iotHubResourceId property: The resource ID of the Iot hub to be used to create a data connection. - * + * * @return the iotHubResourceId value. */ public String iotHubResourceId() { @@ -77,7 +81,7 @@ public String iotHubResourceId() { /** * Set the iotHubResourceId property: The resource ID of the Iot hub to be used to create a data connection. - * + * * @param iotHubResourceId the iotHubResourceId value to set. * @return the IotHubConnectionProperties object itself. */ @@ -88,7 +92,7 @@ public IotHubConnectionProperties withIotHubResourceId(String iotHubResourceId) /** * Get the consumerGroup property: The iot hub consumer group. - * + * * @return the consumerGroup value. */ public String consumerGroup() { @@ -97,7 +101,7 @@ public String consumerGroup() { /** * Set the consumerGroup property: The iot hub consumer group. - * + * * @param consumerGroup the consumerGroup value to set. * @return the IotHubConnectionProperties object itself. */ @@ -109,7 +113,7 @@ public IotHubConnectionProperties withConsumerGroup(String consumerGroup) { /** * Get the tableName property: The table where the data should be ingested. Optionally the table information can be * added to each message. - * + * * @return the tableName value. */ public String tableName() { @@ -119,7 +123,7 @@ public String tableName() { /** * Set the tableName property: The table where the data should be ingested. Optionally the table information can be * added to each message. - * + * * @param tableName the tableName value to set. * @return the IotHubConnectionProperties object itself. */ @@ -131,7 +135,7 @@ public IotHubConnectionProperties withTableName(String tableName) { /** * Get the mappingRuleName property: The mapping rule to be used to ingest the data. Optionally the mapping * information can be added to each message. - * + * * @return the mappingRuleName value. */ public String mappingRuleName() { @@ -141,7 +145,7 @@ public String mappingRuleName() { /** * Set the mappingRuleName property: The mapping rule to be used to ingest the data. Optionally the mapping * information can be added to each message. - * + * * @param mappingRuleName the mappingRuleName value to set. * @return the IotHubConnectionProperties object itself. */ @@ -153,7 +157,7 @@ public IotHubConnectionProperties withMappingRuleName(String mappingRuleName) { /** * Get the dataFormat property: The data format of the message. Optionally the data format can be added to each * message. - * + * * @return the dataFormat value. */ public IotHubDataFormat dataFormat() { @@ -163,7 +167,7 @@ public IotHubDataFormat dataFormat() { /** * Set the dataFormat property: The data format of the message. Optionally the data format can be added to each * message. - * + * * @param dataFormat the dataFormat value to set. * @return the IotHubConnectionProperties object itself. */ @@ -174,7 +178,7 @@ public IotHubConnectionProperties withDataFormat(IotHubDataFormat dataFormat) { /** * Get the eventSystemProperties property: System properties of the iot hub. - * + * * @return the eventSystemProperties value. */ public List eventSystemProperties() { @@ -183,7 +187,7 @@ public List eventSystemProperties() { /** * Set the eventSystemProperties property: System properties of the iot hub. - * + * * @param eventSystemProperties the eventSystemProperties value to set. * @return the IotHubConnectionProperties object itself. */ @@ -194,7 +198,7 @@ public IotHubConnectionProperties withEventSystemProperties(List eventSy /** * Get the sharedAccessPolicyName property: The name of the share access policy. - * + * * @return the sharedAccessPolicyName value. */ public String sharedAccessPolicyName() { @@ -203,7 +207,7 @@ public String sharedAccessPolicyName() { /** * Set the sharedAccessPolicyName property: The name of the share access policy. - * + * * @param sharedAccessPolicyName the sharedAccessPolicyName value to set. * @return the IotHubConnectionProperties object itself. */ @@ -214,7 +218,7 @@ public IotHubConnectionProperties withSharedAccessPolicyName(String sharedAccess /** * Get the provisioningState property: The provisioned state of the resource. - * + * * @return the provisioningState value. */ public ResourceProvisioningState provisioningState() { @@ -223,27 +227,21 @@ public ResourceProvisioningState provisioningState() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (iotHubResourceId() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property iotHubResourceId in model IotHubConnectionProperties")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property iotHubResourceId in model IotHubConnectionProperties")); } if (consumerGroup() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property consumerGroup in model IotHubConnectionProperties")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property consumerGroup in model IotHubConnectionProperties")); } if (sharedAccessPolicyName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property sharedAccessPolicyName in model IotHubConnectionProperties")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property sharedAccessPolicyName in model IotHubConnectionProperties")); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IpFirewallRuleInfoInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IpFirewallRuleInfoInner.java index 4bb9487d6b0a..223d2ab33630 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IpFirewallRuleInfoInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IpFirewallRuleInfoInner.java @@ -9,7 +9,9 @@ import com.azure.resourcemanager.synapse.models.ProvisioningState; import com.fasterxml.jackson.annotation.JsonProperty; -/** IP firewall rule. */ +/** + * IP firewall rule. + */ @Fluent public final class IpFirewallRuleInfoInner extends ProxyResource { /* @@ -18,13 +20,15 @@ public final class IpFirewallRuleInfoInner extends ProxyResource { @JsonProperty(value = "properties") private IpFirewallRuleProperties innerProperties; - /** Creates an instance of IpFirewallRuleInfoInner class. */ + /** + * Creates an instance of IpFirewallRuleInfoInner class. + */ public IpFirewallRuleInfoInner() { } /** * Get the innerProperties property: IP firewall rule properties. - * + * * @return the innerProperties value. */ private IpFirewallRuleProperties innerProperties() { @@ -32,9 +36,9 @@ private IpFirewallRuleProperties innerProperties() { } /** - * Get the endIpAddress property: The end IP address of the firewall rule. Must be IPv4 format. Must be greater than - * or equal to startIpAddress. - * + * Get the endIpAddress property: The end IP address of the firewall rule. Must be IPv4 format. Must be greater + * than or equal to startIpAddress. + * * @return the endIpAddress value. */ public String endIpAddress() { @@ -42,9 +46,9 @@ public String endIpAddress() { } /** - * Set the endIpAddress property: The end IP address of the firewall rule. Must be IPv4 format. Must be greater than - * or equal to startIpAddress. - * + * Set the endIpAddress property: The end IP address of the firewall rule. Must be IPv4 format. Must be greater + * than or equal to startIpAddress. + * * @param endIpAddress the endIpAddress value to set. * @return the IpFirewallRuleInfoInner object itself. */ @@ -58,7 +62,7 @@ public IpFirewallRuleInfoInner withEndIpAddress(String endIpAddress) { /** * Get the provisioningState property: Resource provisioning state. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -67,7 +71,7 @@ public ProvisioningState provisioningState() { /** * Get the startIpAddress property: The start IP address of the firewall rule. Must be IPv4 format. - * + * * @return the startIpAddress value. */ public String startIpAddress() { @@ -76,7 +80,7 @@ public String startIpAddress() { /** * Set the startIpAddress property: The start IP address of the firewall rule. Must be IPv4 format. - * + * * @param startIpAddress the startIpAddress value to set. * @return the IpFirewallRuleInfoInner object itself. */ @@ -90,7 +94,7 @@ public IpFirewallRuleInfoInner withStartIpAddress(String startIpAddress) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IpFirewallRuleProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IpFirewallRuleProperties.java index 34a1d93937a8..cc2bc92b099d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IpFirewallRuleProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/IpFirewallRuleProperties.java @@ -8,7 +8,9 @@ import com.azure.resourcemanager.synapse.models.ProvisioningState; import com.fasterxml.jackson.annotation.JsonProperty; -/** IP firewall rule properties. */ +/** + * IP firewall rule properties. + */ @Fluent public final class IpFirewallRuleProperties { /* @@ -29,14 +31,16 @@ public final class IpFirewallRuleProperties { @JsonProperty(value = "startIpAddress") private String startIpAddress; - /** Creates an instance of IpFirewallRuleProperties class. */ + /** + * Creates an instance of IpFirewallRuleProperties class. + */ public IpFirewallRuleProperties() { } /** - * Get the endIpAddress property: The end IP address of the firewall rule. Must be IPv4 format. Must be greater than - * or equal to startIpAddress. - * + * Get the endIpAddress property: The end IP address of the firewall rule. Must be IPv4 format. Must be greater + * than or equal to startIpAddress. + * * @return the endIpAddress value. */ public String endIpAddress() { @@ -44,9 +48,9 @@ public String endIpAddress() { } /** - * Set the endIpAddress property: The end IP address of the firewall rule. Must be IPv4 format. Must be greater than - * or equal to startIpAddress. - * + * Set the endIpAddress property: The end IP address of the firewall rule. Must be IPv4 format. Must be greater + * than or equal to startIpAddress. + * * @param endIpAddress the endIpAddress value to set. * @return the IpFirewallRuleProperties object itself. */ @@ -57,7 +61,7 @@ public IpFirewallRuleProperties withEndIpAddress(String endIpAddress) { /** * Get the provisioningState property: Resource provisioning state. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -66,7 +70,7 @@ public ProvisioningState provisioningState() { /** * Get the startIpAddress property: The start IP address of the firewall rule. Must be IPv4 format. - * + * * @return the startIpAddress value. */ public String startIpAddress() { @@ -75,7 +79,7 @@ public String startIpAddress() { /** * Set the startIpAddress property: The start IP address of the firewall rule. Must be IPv4 format. - * + * * @param startIpAddress the startIpAddress value to set. * @return the IpFirewallRuleProperties object itself. */ @@ -86,7 +90,7 @@ public IpFirewallRuleProperties withStartIpAddress(String startIpAddress) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KeyInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KeyInner.java index a6995759e856..cb221ca536b7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KeyInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KeyInner.java @@ -8,7 +8,9 @@ import com.azure.core.management.ProxyResource; import com.fasterxml.jackson.annotation.JsonProperty; -/** A workspace key. */ +/** + * A workspace key. + */ @Fluent public final class KeyInner extends ProxyResource { /* @@ -17,13 +19,15 @@ public final class KeyInner extends ProxyResource { @JsonProperty(value = "properties") private KeyProperties innerProperties; - /** Creates an instance of KeyInner class. */ + /** + * Creates an instance of KeyInner class. + */ public KeyInner() { } /** * Get the innerProperties property: Keys resource properties. - * + * * @return the innerProperties value. */ private KeyProperties innerProperties() { @@ -32,7 +36,7 @@ private KeyProperties innerProperties() { /** * Get the isActiveCmk property: Used to activate the workspace after a customer managed key is provided. - * + * * @return the isActiveCmk value. */ public Boolean isActiveCmk() { @@ -41,7 +45,7 @@ public Boolean isActiveCmk() { /** * Set the isActiveCmk property: Used to activate the workspace after a customer managed key is provided. - * + * * @param isActiveCmk the isActiveCmk value to set. * @return the KeyInner object itself. */ @@ -55,7 +59,7 @@ public KeyInner withIsActiveCmk(Boolean isActiveCmk) { /** * Get the keyVaultUrl property: The Key Vault Url of the workspace key. - * + * * @return the keyVaultUrl value. */ public String keyVaultUrl() { @@ -64,7 +68,7 @@ public String keyVaultUrl() { /** * Set the keyVaultUrl property: The Key Vault Url of the workspace key. - * + * * @param keyVaultUrl the keyVaultUrl value to set. * @return the KeyInner object itself. */ @@ -78,7 +82,7 @@ public KeyInner withKeyVaultUrl(String keyVaultUrl) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KeyProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KeyProperties.java index fb0a6e3f926d..ffc9f07a9b87 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KeyProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KeyProperties.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Key properties. */ +/** + * Key properties. + */ @Fluent public final class KeyProperties { /* @@ -22,13 +24,15 @@ public final class KeyProperties { @JsonProperty(value = "keyVaultUrl") private String keyVaultUrl; - /** Creates an instance of KeyProperties class. */ + /** + * Creates an instance of KeyProperties class. + */ public KeyProperties() { } /** * Get the isActiveCmk property: Used to activate the workspace after a customer managed key is provided. - * + * * @return the isActiveCmk value. */ public Boolean isActiveCmk() { @@ -37,7 +41,7 @@ public Boolean isActiveCmk() { /** * Set the isActiveCmk property: Used to activate the workspace after a customer managed key is provided. - * + * * @param isActiveCmk the isActiveCmk value to set. * @return the KeyProperties object itself. */ @@ -48,7 +52,7 @@ public KeyProperties withIsActiveCmk(Boolean isActiveCmk) { /** * Get the keyVaultUrl property: The Key Vault Url of the workspace key. - * + * * @return the keyVaultUrl value. */ public String keyVaultUrl() { @@ -57,7 +61,7 @@ public String keyVaultUrl() { /** * Set the keyVaultUrl property: The Key Vault Url of the workspace key. - * + * * @param keyVaultUrl the keyVaultUrl value to set. * @return the KeyProperties object itself. */ @@ -68,7 +72,7 @@ public KeyProperties withKeyVaultUrl(String keyVaultUrl) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KustoPoolInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KustoPoolInner.java index 9b856819311f..1fed1a4797fd 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KustoPoolInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KustoPoolInner.java @@ -16,7 +16,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; -/** Class representing a Kusto kusto pool. */ +/** + * Class representing a Kusto kusto pool. + */ @Fluent public final class KustoPoolInner extends Resource { /* @@ -43,13 +45,15 @@ public final class KustoPoolInner extends Resource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; - /** Creates an instance of KustoPoolInner class. */ + /** + * Creates an instance of KustoPoolInner class. + */ public KustoPoolInner() { } /** * Get the sku property: The SKU of the kusto pool. - * + * * @return the sku value. */ public AzureSku sku() { @@ -58,7 +62,7 @@ public AzureSku sku() { /** * Set the sku property: The SKU of the kusto pool. - * + * * @param sku the sku value to set. * @return the KustoPoolInner object itself. */ @@ -69,7 +73,7 @@ public KustoPoolInner withSku(AzureSku sku) { /** * Get the innerProperties property: The kusto pool properties. - * + * * @return the innerProperties value. */ private KustoPoolProperties innerProperties() { @@ -78,7 +82,7 @@ private KustoPoolProperties innerProperties() { /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. - * + * * @return the etag value. */ public String etag() { @@ -87,21 +91,25 @@ public String etag() { /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ public SystemData systemData() { return this.systemData; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public KustoPoolInner withLocation(String location) { super.withLocation(location); return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public KustoPoolInner withTags(Map tags) { super.withTags(tags); @@ -110,7 +118,7 @@ public KustoPoolInner withTags(Map tags) { /** * Get the state property: The state of the resource. - * + * * @return the state value. */ public State state() { @@ -119,7 +127,7 @@ public State state() { /** * Get the provisioningState property: The provisioned state of the resource. - * + * * @return the provisioningState value. */ public ResourceProvisioningState provisioningState() { @@ -128,7 +136,7 @@ public ResourceProvisioningState provisioningState() { /** * Get the uri property: The Kusto Pool URI. - * + * * @return the uri value. */ public String uri() { @@ -137,7 +145,7 @@ public String uri() { /** * Get the dataIngestionUri property: The Kusto Pool data ingestion URI. - * + * * @return the dataIngestionUri value. */ public String dataIngestionUri() { @@ -146,7 +154,7 @@ public String dataIngestionUri() { /** * Get the stateReason property: The reason for the Kusto Pool's current state. - * + * * @return the stateReason value. */ public String stateReason() { @@ -155,7 +163,7 @@ public String stateReason() { /** * Get the optimizedAutoscale property: Optimized auto scale definition. - * + * * @return the optimizedAutoscale value. */ public OptimizedAutoscale optimizedAutoscale() { @@ -164,7 +172,7 @@ public OptimizedAutoscale optimizedAutoscale() { /** * Set the optimizedAutoscale property: Optimized auto scale definition. - * + * * @param optimizedAutoscale the optimizedAutoscale value to set. * @return the KustoPoolInner object itself. */ @@ -178,7 +186,7 @@ public KustoPoolInner withOptimizedAutoscale(OptimizedAutoscale optimizedAutosca /** * Get the enableStreamingIngest property: A boolean value that indicates if the streaming ingest is enabled. - * + * * @return the enableStreamingIngest value. */ public Boolean enableStreamingIngest() { @@ -187,7 +195,7 @@ public Boolean enableStreamingIngest() { /** * Set the enableStreamingIngest property: A boolean value that indicates if the streaming ingest is enabled. - * + * * @param enableStreamingIngest the enableStreamingIngest value to set. * @return the KustoPoolInner object itself. */ @@ -201,7 +209,7 @@ public KustoPoolInner withEnableStreamingIngest(Boolean enableStreamingIngest) { /** * Get the enablePurge property: A boolean value that indicates if the purge operations are enabled. - * + * * @return the enablePurge value. */ public Boolean enablePurge() { @@ -210,7 +218,7 @@ public Boolean enablePurge() { /** * Set the enablePurge property: A boolean value that indicates if the purge operations are enabled. - * + * * @param enablePurge the enablePurge value to set. * @return the KustoPoolInner object itself. */ @@ -224,7 +232,7 @@ public KustoPoolInner withEnablePurge(Boolean enablePurge) { /** * Get the languageExtensions property: List of the Kusto Pool's language extensions. - * + * * @return the languageExtensions value. */ public LanguageExtensionsList languageExtensions() { @@ -233,7 +241,7 @@ public LanguageExtensionsList languageExtensions() { /** * Get the workspaceUid property: The workspace unique identifier. - * + * * @return the workspaceUid value. */ public String workspaceUid() { @@ -242,7 +250,7 @@ public String workspaceUid() { /** * Set the workspaceUid property: The workspace unique identifier. - * + * * @param workspaceUid the workspaceUid value to set. * @return the KustoPoolInner object itself. */ @@ -256,14 +264,13 @@ public KustoPoolInner withWorkspaceUid(String workspaceUid) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (sku() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property sku in model KustoPoolInner")); + throw LOGGER.logExceptionAsError( + new IllegalArgumentException("Missing required property sku in model KustoPoolInner")); } else { sku().validate(); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KustoPoolListResultInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KustoPoolListResultInner.java index da8fc54dd395..de72f6299c98 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KustoPoolListResultInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KustoPoolListResultInner.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The list Kusto pools operation response. */ +/** + * The list Kusto pools operation response. + */ @Fluent public final class KustoPoolListResultInner { /* @@ -17,13 +19,15 @@ public final class KustoPoolListResultInner { @JsonProperty(value = "value") private List value; - /** Creates an instance of KustoPoolListResultInner class. */ + /** + * Creates an instance of KustoPoolListResultInner class. + */ public KustoPoolListResultInner() { } /** * Get the value property: The list of Kusto pools. - * + * * @return the value value. */ public List value() { @@ -32,7 +36,7 @@ public List value() { /** * Set the value property: The list of Kusto pools. - * + * * @param value the value value to set. * @return the KustoPoolListResultInner object itself. */ @@ -43,7 +47,7 @@ public KustoPoolListResultInner withValue(List value) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KustoPoolPrivateLinkResourcesInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KustoPoolPrivateLinkResourcesInner.java index 775a77d37b3d..2e73700f5c59 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KustoPoolPrivateLinkResourcesInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KustoPoolPrivateLinkResourcesInner.java @@ -11,7 +11,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Class representing a Private Link Resources. */ +/** + * Class representing a Private Link Resources. + */ @Immutable public final class KustoPoolPrivateLinkResourcesInner extends ProxyResource { /* @@ -26,13 +28,15 @@ public final class KustoPoolPrivateLinkResourcesInner extends ProxyResource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; - /** Creates an instance of KustoPoolPrivateLinkResourcesInner class. */ + /** + * Creates an instance of KustoPoolPrivateLinkResourcesInner class. + */ public KustoPoolPrivateLinkResourcesInner() { } /** * Get the innerProperties property: The Private Link Resources. - * + * * @return the innerProperties value. */ private PrivateLinkResourcesProperties innerProperties() { @@ -41,7 +45,7 @@ private PrivateLinkResourcesProperties innerProperties() { /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ public SystemData systemData() { @@ -50,7 +54,7 @@ public SystemData systemData() { /** * Get the groupId property: The Private link resources GroupId. - * + * * @return the groupId value. */ public String groupId() { @@ -59,7 +63,7 @@ public String groupId() { /** * Get the requiredMembers property: The private link resource required member names. - * + * * @return the requiredMembers value. */ public List requiredMembers() { @@ -68,7 +72,7 @@ public List requiredMembers() { /** * Get the requiredZoneNames property: The private link resource required zone names. - * + * * @return the requiredZoneNames value. */ public List requiredZoneNames() { @@ -77,7 +81,7 @@ public List requiredZoneNames() { /** * Get the provisioningState property: The provisioned state of the resource. - * + * * @return the provisioningState value. */ public ResourceProvisioningState provisioningState() { @@ -86,7 +90,7 @@ public ResourceProvisioningState provisioningState() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KustoPoolProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KustoPoolProperties.java index 996eb35eeace..5ca883e933d6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KustoPoolProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/KustoPoolProperties.java @@ -11,7 +11,9 @@ import com.azure.resourcemanager.synapse.models.State; import com.fasterxml.jackson.annotation.JsonProperty; -/** Class representing the Kusto pool properties. */ +/** + * Class representing the Kusto pool properties. + */ @Fluent public final class KustoPoolProperties { /* @@ -74,13 +76,15 @@ public final class KustoPoolProperties { @JsonProperty(value = "workspaceUID") private String workspaceUid; - /** Creates an instance of KustoPoolProperties class. */ + /** + * Creates an instance of KustoPoolProperties class. + */ public KustoPoolProperties() { } /** * Get the state property: The state of the resource. - * + * * @return the state value. */ public State state() { @@ -89,7 +93,7 @@ public State state() { /** * Get the provisioningState property: The provisioned state of the resource. - * + * * @return the provisioningState value. */ public ResourceProvisioningState provisioningState() { @@ -98,7 +102,7 @@ public ResourceProvisioningState provisioningState() { /** * Get the uri property: The Kusto Pool URI. - * + * * @return the uri value. */ public String uri() { @@ -107,7 +111,7 @@ public String uri() { /** * Get the dataIngestionUri property: The Kusto Pool data ingestion URI. - * + * * @return the dataIngestionUri value. */ public String dataIngestionUri() { @@ -116,7 +120,7 @@ public String dataIngestionUri() { /** * Get the stateReason property: The reason for the Kusto Pool's current state. - * + * * @return the stateReason value. */ public String stateReason() { @@ -125,7 +129,7 @@ public String stateReason() { /** * Get the optimizedAutoscale property: Optimized auto scale definition. - * + * * @return the optimizedAutoscale value. */ public OptimizedAutoscale optimizedAutoscale() { @@ -134,7 +138,7 @@ public OptimizedAutoscale optimizedAutoscale() { /** * Set the optimizedAutoscale property: Optimized auto scale definition. - * + * * @param optimizedAutoscale the optimizedAutoscale value to set. * @return the KustoPoolProperties object itself. */ @@ -145,7 +149,7 @@ public KustoPoolProperties withOptimizedAutoscale(OptimizedAutoscale optimizedAu /** * Get the enableStreamingIngest property: A boolean value that indicates if the streaming ingest is enabled. - * + * * @return the enableStreamingIngest value. */ public Boolean enableStreamingIngest() { @@ -154,7 +158,7 @@ public Boolean enableStreamingIngest() { /** * Set the enableStreamingIngest property: A boolean value that indicates if the streaming ingest is enabled. - * + * * @param enableStreamingIngest the enableStreamingIngest value to set. * @return the KustoPoolProperties object itself. */ @@ -165,7 +169,7 @@ public KustoPoolProperties withEnableStreamingIngest(Boolean enableStreamingInge /** * Get the enablePurge property: A boolean value that indicates if the purge operations are enabled. - * + * * @return the enablePurge value. */ public Boolean enablePurge() { @@ -174,7 +178,7 @@ public Boolean enablePurge() { /** * Set the enablePurge property: A boolean value that indicates if the purge operations are enabled. - * + * * @param enablePurge the enablePurge value to set. * @return the KustoPoolProperties object itself. */ @@ -185,7 +189,7 @@ public KustoPoolProperties withEnablePurge(Boolean enablePurge) { /** * Get the languageExtensions property: List of the Kusto Pool's language extensions. - * + * * @return the languageExtensions value. */ public LanguageExtensionsList languageExtensions() { @@ -194,7 +198,7 @@ public LanguageExtensionsList languageExtensions() { /** * Get the workspaceUid property: The workspace unique identifier. - * + * * @return the workspaceUid value. */ public String workspaceUid() { @@ -203,7 +207,7 @@ public String workspaceUid() { /** * Set the workspaceUid property: The workspace unique identifier. - * + * * @param workspaceUid the workspaceUid value to set. * @return the KustoPoolProperties object itself. */ @@ -214,7 +218,7 @@ public KustoPoolProperties withWorkspaceUid(String workspaceUid) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/LanguageExtensionInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/LanguageExtensionInner.java index d36507769662..960befc5d501 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/LanguageExtensionInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/LanguageExtensionInner.java @@ -8,7 +8,9 @@ import com.azure.resourcemanager.synapse.models.LanguageExtensionName; import com.fasterxml.jackson.annotation.JsonProperty; -/** The language extension object. */ +/** + * The language extension object. + */ @Fluent public final class LanguageExtensionInner { /* @@ -17,13 +19,15 @@ public final class LanguageExtensionInner { @JsonProperty(value = "languageExtensionName") private LanguageExtensionName languageExtensionName; - /** Creates an instance of LanguageExtensionInner class. */ + /** + * Creates an instance of LanguageExtensionInner class. + */ public LanguageExtensionInner() { } /** * Get the languageExtensionName property: The language extension name. - * + * * @return the languageExtensionName value. */ public LanguageExtensionName languageExtensionName() { @@ -32,7 +36,7 @@ public LanguageExtensionName languageExtensionName() { /** * Set the languageExtensionName property: The language extension name. - * + * * @param languageExtensionName the languageExtensionName value to set. * @return the LanguageExtensionInner object itself. */ @@ -43,7 +47,7 @@ public LanguageExtensionInner withLanguageExtensionName(LanguageExtensionName la /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/LibraryInfo.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/LibraryInfo.java index 656145c96ae2..f59eeae59d70 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/LibraryInfo.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/LibraryInfo.java @@ -10,8 +10,8 @@ /** * Information about a library/package created at the workspace level. - * - *

Library/package information of a Big Data pool powered by Apache Spark. + * + * Library/package information of a Big Data pool powered by Apache Spark. */ @Fluent public final class LibraryInfo { @@ -57,13 +57,15 @@ public final class LibraryInfo { @JsonProperty(value = "creatorId", access = JsonProperty.Access.WRITE_ONLY) private String creatorId; - /** Creates an instance of LibraryInfo class. */ + /** + * Creates an instance of LibraryInfo class. + */ public LibraryInfo() { } /** * Get the name property: Name of the library. - * + * * @return the name value. */ public String name() { @@ -72,7 +74,7 @@ public String name() { /** * Set the name property: Name of the library. - * + * * @param name the name value to set. * @return the LibraryInfo object itself. */ @@ -83,7 +85,7 @@ public LibraryInfo withName(String name) { /** * Get the path property: Storage blob path of library. - * + * * @return the path value. */ public String path() { @@ -92,7 +94,7 @@ public String path() { /** * Set the path property: Storage blob path of library. - * + * * @param path the path value to set. * @return the LibraryInfo object itself. */ @@ -103,7 +105,7 @@ public LibraryInfo withPath(String path) { /** * Get the containerName property: Storage blob container name. - * + * * @return the containerName value. */ public String containerName() { @@ -112,7 +114,7 @@ public String containerName() { /** * Set the containerName property: Storage blob container name. - * + * * @param containerName the containerName value to set. * @return the LibraryInfo object itself. */ @@ -123,7 +125,7 @@ public LibraryInfo withContainerName(String containerName) { /** * Get the uploadedTimestamp property: The last update time of the library. - * + * * @return the uploadedTimestamp value. */ public OffsetDateTime uploadedTimestamp() { @@ -132,7 +134,7 @@ public OffsetDateTime uploadedTimestamp() { /** * Get the type property: Type of the library. - * + * * @return the type value. */ public String type() { @@ -141,7 +143,7 @@ public String type() { /** * Set the type property: Type of the library. - * + * * @param type the type value to set. * @return the LibraryInfo object itself. */ @@ -152,7 +154,7 @@ public LibraryInfo withType(String type) { /** * Get the provisioningStatus property: Provisioning status of the library/package. - * + * * @return the provisioningStatus value. */ public String provisioningStatus() { @@ -161,7 +163,7 @@ public String provisioningStatus() { /** * Get the creatorId property: Creator Id of the library/package. - * + * * @return the creatorId value. */ public String creatorId() { @@ -170,7 +172,7 @@ public String creatorId() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/LibraryResourceInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/LibraryResourceInner.java index ff3f30e1722e..fecebe0afa1e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/LibraryResourceInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/LibraryResourceInner.java @@ -10,26 +10,30 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; -/** Library response details. */ +/** + * Library response details. + */ @Fluent public final class LibraryResourceInner extends EntityResource { /* * Information about a library/package created at the workspace level. - * + * * Library/package properties. */ @JsonProperty(value = "properties", required = true) private LibraryInfo innerProperties = new LibraryInfo(); - /** Creates an instance of LibraryResourceInner class. */ + /** + * Creates an instance of LibraryResourceInner class. + */ public LibraryResourceInner() { } /** * Get the innerProperties property: Information about a library/package created at the workspace level. - * - *

Library/package properties. - * + * + * Library/package properties. + * * @return the innerProperties value. */ private LibraryInfo innerProperties() { @@ -38,7 +42,7 @@ private LibraryInfo innerProperties() { /** * Get the name property: Name of the library. - * + * * @return the name value. */ public String namePropertiesName() { @@ -47,7 +51,7 @@ public String namePropertiesName() { /** * Set the name property: Name of the library. - * + * * @param name the name value to set. * @return the LibraryResourceInner object itself. */ @@ -61,7 +65,7 @@ public LibraryResourceInner withNamePropertiesName(String name) { /** * Get the path property: Storage blob path of library. - * + * * @return the path value. */ public String path() { @@ -70,7 +74,7 @@ public String path() { /** * Set the path property: Storage blob path of library. - * + * * @param path the path value to set. * @return the LibraryResourceInner object itself. */ @@ -84,7 +88,7 @@ public LibraryResourceInner withPath(String path) { /** * Get the containerName property: Storage blob container name. - * + * * @return the containerName value. */ public String containerName() { @@ -93,7 +97,7 @@ public String containerName() { /** * Set the containerName property: Storage blob container name. - * + * * @param containerName the containerName value to set. * @return the LibraryResourceInner object itself. */ @@ -107,7 +111,7 @@ public LibraryResourceInner withContainerName(String containerName) { /** * Get the uploadedTimestamp property: The last update time of the library. - * + * * @return the uploadedTimestamp value. */ public OffsetDateTime uploadedTimestamp() { @@ -116,7 +120,7 @@ public OffsetDateTime uploadedTimestamp() { /** * Get the type property: Type of the library. - * + * * @return the type value. */ public String typePropertiesType() { @@ -125,7 +129,7 @@ public String typePropertiesType() { /** * Set the type property: Type of the library. - * + * * @param type the type value to set. * @return the LibraryResourceInner object itself. */ @@ -139,7 +143,7 @@ public LibraryResourceInner withTypePropertiesType(String type) { /** * Get the provisioningStatus property: Provisioning status of the library/package. - * + * * @return the provisioningStatus value. */ public String provisioningStatus() { @@ -148,7 +152,7 @@ public String provisioningStatus() { /** * Get the creatorId property: Creator Id of the library/package. - * + * * @return the creatorId value. */ public String creatorId() { @@ -157,17 +161,15 @@ public String creatorId() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ @Override public void validate() { super.validate(); if (innerProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerProperties in model LibraryResourceInner")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property innerProperties in model LibraryResourceInner")); } else { innerProperties().validate(); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/LicensedComponentSetupTypeProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/LicensedComponentSetupTypeProperties.java index 478ec441bada..95ad823a98e2 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/LicensedComponentSetupTypeProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/LicensedComponentSetupTypeProperties.java @@ -9,7 +9,9 @@ import com.azure.resourcemanager.synapse.models.SecretBase; import com.fasterxml.jackson.annotation.JsonProperty; -/** Installation of licensed component setup type properties. */ +/** + * Installation of licensed component setup type properties. + */ @Fluent public final class LicensedComponentSetupTypeProperties { /* @@ -24,13 +26,15 @@ public final class LicensedComponentSetupTypeProperties { @JsonProperty(value = "licenseKey") private SecretBase licenseKey; - /** Creates an instance of LicensedComponentSetupTypeProperties class. */ + /** + * Creates an instance of LicensedComponentSetupTypeProperties class. + */ public LicensedComponentSetupTypeProperties() { } /** * Get the componentName property: The name of the 3rd party component. - * + * * @return the componentName value. */ public String componentName() { @@ -39,7 +43,7 @@ public String componentName() { /** * Set the componentName property: The name of the 3rd party component. - * + * * @param componentName the componentName value to set. * @return the LicensedComponentSetupTypeProperties object itself. */ @@ -50,7 +54,7 @@ public LicensedComponentSetupTypeProperties withComponentName(String componentNa /** * Get the licenseKey property: The license key to activate the component. - * + * * @return the licenseKey value. */ public SecretBase licenseKey() { @@ -59,7 +63,7 @@ public SecretBase licenseKey() { /** * Set the licenseKey property: The license key to activate the component. - * + * * @param licenseKey the licenseKey value to set. * @return the LicensedComponentSetupTypeProperties object itself. */ @@ -70,15 +74,13 @@ public LicensedComponentSetupTypeProperties withLicenseKey(SecretBase licenseKey /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (componentName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property componentName in model LicensedComponentSetupTypeProperties")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property componentName in model LicensedComponentSetupTypeProperties")); } if (licenseKey() != null) { licenseKey().validate(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MaintenanceWindowOptionsInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MaintenanceWindowOptionsInner.java index 53a38ce6bc5b..9e8e4d4cdbab 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MaintenanceWindowOptionsInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MaintenanceWindowOptionsInner.java @@ -10,7 +10,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Maintenance window options. */ +/** + * Maintenance window options. + */ @Fluent public final class MaintenanceWindowOptionsInner extends ProxyResource { /* @@ -19,13 +21,15 @@ public final class MaintenanceWindowOptionsInner extends ProxyResource { @JsonProperty(value = "properties") private MaintenanceWindowOptionsProperties innerProperties; - /** Creates an instance of MaintenanceWindowOptionsInner class. */ + /** + * Creates an instance of MaintenanceWindowOptionsInner class. + */ public MaintenanceWindowOptionsInner() { } /** * Get the innerProperties property: Resource properties. - * + * * @return the innerProperties value. */ private MaintenanceWindowOptionsProperties innerProperties() { @@ -34,7 +38,7 @@ private MaintenanceWindowOptionsProperties innerProperties() { /** * Get the isEnabled property: Whether maintenance windows are enabled for the database. - * + * * @return the isEnabled value. */ public Boolean isEnabled() { @@ -43,7 +47,7 @@ public Boolean isEnabled() { /** * Set the isEnabled property: Whether maintenance windows are enabled for the database. - * + * * @param isEnabled the isEnabled value to set. * @return the MaintenanceWindowOptionsInner object itself. */ @@ -58,7 +62,7 @@ public MaintenanceWindowOptionsInner withIsEnabled(Boolean isEnabled) { /** * Get the maintenanceWindowCycles property: Available maintenance cycles e.g. {Saturday, 0, 48*60}, {Wednesday, 0, * 24*60}. - * + * * @return the maintenanceWindowCycles value. */ public List maintenanceWindowCycles() { @@ -68,12 +72,12 @@ public List maintenanceWindowCycles() { /** * Set the maintenanceWindowCycles property: Available maintenance cycles e.g. {Saturday, 0, 48*60}, {Wednesday, 0, * 24*60}. - * + * * @param maintenanceWindowCycles the maintenanceWindowCycles value to set. * @return the MaintenanceWindowOptionsInner object itself. */ - public MaintenanceWindowOptionsInner withMaintenanceWindowCycles( - List maintenanceWindowCycles) { + public MaintenanceWindowOptionsInner + withMaintenanceWindowCycles(List maintenanceWindowCycles) { if (this.innerProperties() == null) { this.innerProperties = new MaintenanceWindowOptionsProperties(); } @@ -83,7 +87,7 @@ public MaintenanceWindowOptionsInner withMaintenanceWindowCycles( /** * Get the minDurationInMinutes property: Minimum duration of maintenance window. - * + * * @return the minDurationInMinutes value. */ public Integer minDurationInMinutes() { @@ -92,7 +96,7 @@ public Integer minDurationInMinutes() { /** * Set the minDurationInMinutes property: Minimum duration of maintenance window. - * + * * @param minDurationInMinutes the minDurationInMinutes value to set. * @return the MaintenanceWindowOptionsInner object itself. */ @@ -106,7 +110,7 @@ public MaintenanceWindowOptionsInner withMinDurationInMinutes(Integer minDuratio /** * Get the defaultDurationInMinutes property: Default duration for maintenance window. - * + * * @return the defaultDurationInMinutes value. */ public Integer defaultDurationInMinutes() { @@ -115,7 +119,7 @@ public Integer defaultDurationInMinutes() { /** * Set the defaultDurationInMinutes property: Default duration for maintenance window. - * + * * @param defaultDurationInMinutes the defaultDurationInMinutes value to set. * @return the MaintenanceWindowOptionsInner object itself. */ @@ -129,7 +133,7 @@ public MaintenanceWindowOptionsInner withDefaultDurationInMinutes(Integer defaul /** * Get the minCycles property: Minimum number of maintenance windows cycles to be set on the database. - * + * * @return the minCycles value. */ public Integer minCycles() { @@ -138,7 +142,7 @@ public Integer minCycles() { /** * Set the minCycles property: Minimum number of maintenance windows cycles to be set on the database. - * + * * @param minCycles the minCycles value to set. * @return the MaintenanceWindowOptionsInner object itself. */ @@ -152,7 +156,7 @@ public MaintenanceWindowOptionsInner withMinCycles(Integer minCycles) { /** * Get the timeGranularityInMinutes property: Time granularity in minutes for maintenance windows. - * + * * @return the timeGranularityInMinutes value. */ public Integer timeGranularityInMinutes() { @@ -161,7 +165,7 @@ public Integer timeGranularityInMinutes() { /** * Set the timeGranularityInMinutes property: Time granularity in minutes for maintenance windows. - * + * * @param timeGranularityInMinutes the timeGranularityInMinutes value to set. * @return the MaintenanceWindowOptionsInner object itself. */ @@ -176,7 +180,7 @@ public MaintenanceWindowOptionsInner withTimeGranularityInMinutes(Integer timeGr /** * Get the allowMultipleMaintenanceWindowsPerCycle property: Whether we allow multiple maintenance windows per * cycle. - * + * * @return the allowMultipleMaintenanceWindowsPerCycle value. */ public Boolean allowMultipleMaintenanceWindowsPerCycle() { @@ -186,12 +190,12 @@ public Boolean allowMultipleMaintenanceWindowsPerCycle() { /** * Set the allowMultipleMaintenanceWindowsPerCycle property: Whether we allow multiple maintenance windows per * cycle. - * + * * @param allowMultipleMaintenanceWindowsPerCycle the allowMultipleMaintenanceWindowsPerCycle value to set. * @return the MaintenanceWindowOptionsInner object itself. */ - public MaintenanceWindowOptionsInner withAllowMultipleMaintenanceWindowsPerCycle( - Boolean allowMultipleMaintenanceWindowsPerCycle) { + public MaintenanceWindowOptionsInner + withAllowMultipleMaintenanceWindowsPerCycle(Boolean allowMultipleMaintenanceWindowsPerCycle) { if (this.innerProperties() == null) { this.innerProperties = new MaintenanceWindowOptionsProperties(); } @@ -201,7 +205,7 @@ public MaintenanceWindowOptionsInner withAllowMultipleMaintenanceWindowsPerCycle /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MaintenanceWindowOptionsProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MaintenanceWindowOptionsProperties.java index 21ac07f250a0..7db24dfc092b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MaintenanceWindowOptionsProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MaintenanceWindowOptionsProperties.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Maintenance window options properties. */ +/** + * Maintenance window options properties. + */ @Fluent public final class MaintenanceWindowOptionsProperties { /* @@ -54,13 +56,15 @@ public final class MaintenanceWindowOptionsProperties { @JsonProperty(value = "allowMultipleMaintenanceWindowsPerCycle") private Boolean allowMultipleMaintenanceWindowsPerCycle; - /** Creates an instance of MaintenanceWindowOptionsProperties class. */ + /** + * Creates an instance of MaintenanceWindowOptionsProperties class. + */ public MaintenanceWindowOptionsProperties() { } /** * Get the isEnabled property: Whether maintenance windows are enabled for the database. - * + * * @return the isEnabled value. */ public Boolean isEnabled() { @@ -69,7 +73,7 @@ public Boolean isEnabled() { /** * Set the isEnabled property: Whether maintenance windows are enabled for the database. - * + * * @param isEnabled the isEnabled value to set. * @return the MaintenanceWindowOptionsProperties object itself. */ @@ -81,7 +85,7 @@ public MaintenanceWindowOptionsProperties withIsEnabled(Boolean isEnabled) { /** * Get the maintenanceWindowCycles property: Available maintenance cycles e.g. {Saturday, 0, 48*60}, {Wednesday, 0, * 24*60}. - * + * * @return the maintenanceWindowCycles value. */ public List maintenanceWindowCycles() { @@ -91,19 +95,19 @@ public List maintenanceWindowCycles() { /** * Set the maintenanceWindowCycles property: Available maintenance cycles e.g. {Saturday, 0, 48*60}, {Wednesday, 0, * 24*60}. - * + * * @param maintenanceWindowCycles the maintenanceWindowCycles value to set. * @return the MaintenanceWindowOptionsProperties object itself. */ - public MaintenanceWindowOptionsProperties withMaintenanceWindowCycles( - List maintenanceWindowCycles) { + public MaintenanceWindowOptionsProperties + withMaintenanceWindowCycles(List maintenanceWindowCycles) { this.maintenanceWindowCycles = maintenanceWindowCycles; return this; } /** * Get the minDurationInMinutes property: Minimum duration of maintenance window. - * + * * @return the minDurationInMinutes value. */ public Integer minDurationInMinutes() { @@ -112,7 +116,7 @@ public Integer minDurationInMinutes() { /** * Set the minDurationInMinutes property: Minimum duration of maintenance window. - * + * * @param minDurationInMinutes the minDurationInMinutes value to set. * @return the MaintenanceWindowOptionsProperties object itself. */ @@ -123,7 +127,7 @@ public MaintenanceWindowOptionsProperties withMinDurationInMinutes(Integer minDu /** * Get the defaultDurationInMinutes property: Default duration for maintenance window. - * + * * @return the defaultDurationInMinutes value. */ public Integer defaultDurationInMinutes() { @@ -132,7 +136,7 @@ public Integer defaultDurationInMinutes() { /** * Set the defaultDurationInMinutes property: Default duration for maintenance window. - * + * * @param defaultDurationInMinutes the defaultDurationInMinutes value to set. * @return the MaintenanceWindowOptionsProperties object itself. */ @@ -143,7 +147,7 @@ public MaintenanceWindowOptionsProperties withDefaultDurationInMinutes(Integer d /** * Get the minCycles property: Minimum number of maintenance windows cycles to be set on the database. - * + * * @return the minCycles value. */ public Integer minCycles() { @@ -152,7 +156,7 @@ public Integer minCycles() { /** * Set the minCycles property: Minimum number of maintenance windows cycles to be set on the database. - * + * * @param minCycles the minCycles value to set. * @return the MaintenanceWindowOptionsProperties object itself. */ @@ -163,7 +167,7 @@ public MaintenanceWindowOptionsProperties withMinCycles(Integer minCycles) { /** * Get the timeGranularityInMinutes property: Time granularity in minutes for maintenance windows. - * + * * @return the timeGranularityInMinutes value. */ public Integer timeGranularityInMinutes() { @@ -172,7 +176,7 @@ public Integer timeGranularityInMinutes() { /** * Set the timeGranularityInMinutes property: Time granularity in minutes for maintenance windows. - * + * * @param timeGranularityInMinutes the timeGranularityInMinutes value to set. * @return the MaintenanceWindowOptionsProperties object itself. */ @@ -184,7 +188,7 @@ public MaintenanceWindowOptionsProperties withTimeGranularityInMinutes(Integer t /** * Get the allowMultipleMaintenanceWindowsPerCycle property: Whether we allow multiple maintenance windows per * cycle. - * + * * @return the allowMultipleMaintenanceWindowsPerCycle value. */ public Boolean allowMultipleMaintenanceWindowsPerCycle() { @@ -194,19 +198,19 @@ public Boolean allowMultipleMaintenanceWindowsPerCycle() { /** * Set the allowMultipleMaintenanceWindowsPerCycle property: Whether we allow multiple maintenance windows per * cycle. - * + * * @param allowMultipleMaintenanceWindowsPerCycle the allowMultipleMaintenanceWindowsPerCycle value to set. * @return the MaintenanceWindowOptionsProperties object itself. */ - public MaintenanceWindowOptionsProperties withAllowMultipleMaintenanceWindowsPerCycle( - Boolean allowMultipleMaintenanceWindowsPerCycle) { + public MaintenanceWindowOptionsProperties + withAllowMultipleMaintenanceWindowsPerCycle(Boolean allowMultipleMaintenanceWindowsPerCycle) { this.allowMultipleMaintenanceWindowsPerCycle = allowMultipleMaintenanceWindowsPerCycle; return this; } /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MaintenanceWindowsInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MaintenanceWindowsInner.java index 9a363dc5ebc4..0cca7e3d79f5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MaintenanceWindowsInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MaintenanceWindowsInner.java @@ -10,7 +10,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Maintenance windows. */ +/** + * Maintenance windows. + */ @Fluent public final class MaintenanceWindowsInner extends ProxyResource { /* @@ -19,13 +21,15 @@ public final class MaintenanceWindowsInner extends ProxyResource { @JsonProperty(value = "properties") private MaintenanceWindowsProperties innerProperties; - /** Creates an instance of MaintenanceWindowsInner class. */ + /** + * Creates an instance of MaintenanceWindowsInner class. + */ public MaintenanceWindowsInner() { } /** * Get the innerProperties property: Resource properties. - * + * * @return the innerProperties value. */ private MaintenanceWindowsProperties innerProperties() { @@ -34,7 +38,7 @@ private MaintenanceWindowsProperties innerProperties() { /** * Get the timeRanges property: The timeRanges property. - * + * * @return the timeRanges value. */ public List timeRanges() { @@ -43,7 +47,7 @@ public List timeRanges() { /** * Set the timeRanges property: The timeRanges property. - * + * * @param timeRanges the timeRanges value to set. * @return the MaintenanceWindowsInner object itself. */ @@ -57,7 +61,7 @@ public MaintenanceWindowsInner withTimeRanges(List t /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MaintenanceWindowsProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MaintenanceWindowsProperties.java index 880118f17ff9..61e7e4ff7075 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MaintenanceWindowsProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MaintenanceWindowsProperties.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Maintenance windows resource properties. */ +/** + * Maintenance windows resource properties. + */ @Fluent public final class MaintenanceWindowsProperties { /* @@ -18,13 +20,15 @@ public final class MaintenanceWindowsProperties { @JsonProperty(value = "timeRanges") private List timeRanges; - /** Creates an instance of MaintenanceWindowsProperties class. */ + /** + * Creates an instance of MaintenanceWindowsProperties class. + */ public MaintenanceWindowsProperties() { } /** * Get the timeRanges property: The timeRanges property. - * + * * @return the timeRanges value. */ public List timeRanges() { @@ -33,7 +37,7 @@ public List timeRanges() { /** * Set the timeRanges property: The timeRanges property. - * + * * @param timeRanges the timeRanges value to set. * @return the MaintenanceWindowsProperties object itself. */ @@ -44,7 +48,7 @@ public MaintenanceWindowsProperties withTimeRanges(ListSql Control Settings for workspace managed identity. + * + * Sql Control Settings for workspace managed identity. */ @Fluent public final class ManagedIdentitySqlControlSettingsModelInner extends ProxyResource { /* * Managed Identity Sql Control Settings - * + * * Sql Control Settings for workspace managed identity */ @JsonProperty(value = "properties") private ManagedIdentitySqlControlSettingsModelProperties innerProperties; - /** Creates an instance of ManagedIdentitySqlControlSettingsModelInner class. */ + /** + * Creates an instance of ManagedIdentitySqlControlSettingsModelInner class. + */ public ManagedIdentitySqlControlSettingsModelInner() { } /** * Get the innerProperties property: Managed Identity Sql Control Settings - * - *

Sql Control Settings for workspace managed identity. - * + * + * Sql Control Settings for workspace managed identity. + * * @return the innerProperties value. */ private ManagedIdentitySqlControlSettingsModelProperties innerProperties() { @@ -41,7 +43,7 @@ private ManagedIdentitySqlControlSettingsModelProperties innerProperties() { /** * Get the grantSqlControlToManagedIdentity property: Grant sql control to managed identity. - * + * * @return the grantSqlControlToManagedIdentity value. */ public ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity @@ -51,13 +53,12 @@ private ManagedIdentitySqlControlSettingsModelProperties innerProperties() { /** * Set the grantSqlControlToManagedIdentity property: Grant sql control to managed identity. - * + * * @param grantSqlControlToManagedIdentity the grantSqlControlToManagedIdentity value to set. * @return the ManagedIdentitySqlControlSettingsModelInner object itself. */ public ManagedIdentitySqlControlSettingsModelInner withGrantSqlControlToManagedIdentity( - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity - grantSqlControlToManagedIdentity) { + ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity grantSqlControlToManagedIdentity) { if (this.innerProperties() == null) { this.innerProperties = new ManagedIdentitySqlControlSettingsModelProperties(); } @@ -67,7 +68,7 @@ public ManagedIdentitySqlControlSettingsModelInner withGrantSqlControlToManagedI /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIdentitySqlControlSettingsModelProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIdentitySqlControlSettingsModelProperties.java index c7778d0b88c9..6c98326f3214 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIdentitySqlControlSettingsModelProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIdentitySqlControlSettingsModelProperties.java @@ -10,8 +10,8 @@ /** * Managed Identity Sql Control Settings - * - *

Sql Control Settings for workspace managed identity. + * + * Sql Control Settings for workspace managed identity. */ @Fluent public final class ManagedIdentitySqlControlSettingsModelProperties { @@ -19,16 +19,17 @@ public final class ManagedIdentitySqlControlSettingsModelProperties { * Grant sql control to managed identity */ @JsonProperty(value = "grantSqlControlToManagedIdentity") - private ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity - grantSqlControlToManagedIdentity; + private ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity grantSqlControlToManagedIdentity; - /** Creates an instance of ManagedIdentitySqlControlSettingsModelProperties class. */ + /** + * Creates an instance of ManagedIdentitySqlControlSettingsModelProperties class. + */ public ManagedIdentitySqlControlSettingsModelProperties() { } /** * Get the grantSqlControlToManagedIdentity property: Grant sql control to managed identity. - * + * * @return the grantSqlControlToManagedIdentity value. */ public ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity @@ -38,20 +39,19 @@ public ManagedIdentitySqlControlSettingsModelProperties() { /** * Set the grantSqlControlToManagedIdentity property: Grant sql control to managed identity. - * + * * @param grantSqlControlToManagedIdentity the grantSqlControlToManagedIdentity value to set. * @return the ManagedIdentitySqlControlSettingsModelProperties object itself. */ public ManagedIdentitySqlControlSettingsModelProperties withGrantSqlControlToManagedIdentity( - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity - grantSqlControlToManagedIdentity) { + ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity grantSqlControlToManagedIdentity) { this.grantSqlControlToManagedIdentity = grantSqlControlToManagedIdentity; return this; } /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIntegrationRuntimeManagedVirtualNetworkReference.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIntegrationRuntimeManagedVirtualNetworkReference.java index cccd41d407d2..cbd749db98eb 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIntegrationRuntimeManagedVirtualNetworkReference.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIntegrationRuntimeManagedVirtualNetworkReference.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Managed integration runtime managed virtual network reference. */ +/** + * Managed integration runtime managed virtual network reference. + */ @Fluent public final class ManagedIntegrationRuntimeManagedVirtualNetworkReference { /* @@ -28,13 +30,15 @@ public final class ManagedIntegrationRuntimeManagedVirtualNetworkReference { @JsonProperty(value = "id") private String id; - /** Creates an instance of ManagedIntegrationRuntimeManagedVirtualNetworkReference class. */ + /** + * Creates an instance of ManagedIntegrationRuntimeManagedVirtualNetworkReference class. + */ public ManagedIntegrationRuntimeManagedVirtualNetworkReference() { } /** * Get the referenceName property: The reference name of the managed virtual network. - * + * * @return the referenceName value. */ public String referenceName() { @@ -43,7 +47,7 @@ public String referenceName() { /** * Set the referenceName property: The reference name of the managed virtual network. - * + * * @param referenceName the referenceName value to set. * @return the ManagedIntegrationRuntimeManagedVirtualNetworkReference object itself. */ @@ -54,7 +58,7 @@ public ManagedIntegrationRuntimeManagedVirtualNetworkReference withReferenceName /** * Get the type property: The type of the managed virtual network. - * + * * @return the type value. */ public String type() { @@ -63,7 +67,7 @@ public String type() { /** * Set the type property: The type of the managed virtual network. - * + * * @param type the type value to set. * @return the ManagedIntegrationRuntimeManagedVirtualNetworkReference object itself. */ @@ -74,7 +78,7 @@ public ManagedIntegrationRuntimeManagedVirtualNetworkReference withType(String t /** * Get the id property: The id of the managed virtual network. - * + * * @return the id value. */ public String id() { @@ -83,7 +87,7 @@ public String id() { /** * Set the id property: The id of the managed virtual network. - * + * * @param id the id value to set. * @return the ManagedIntegrationRuntimeManagedVirtualNetworkReference object itself. */ @@ -94,7 +98,7 @@ public ManagedIntegrationRuntimeManagedVirtualNetworkReference withId(String id) /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIntegrationRuntimeStatusTypeProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIntegrationRuntimeStatusTypeProperties.java index 52a75b415e5c..35d5c1e53d7f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIntegrationRuntimeStatusTypeProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIntegrationRuntimeStatusTypeProperties.java @@ -12,7 +12,9 @@ import java.time.OffsetDateTime; import java.util.List; -/** Managed integration runtime status type properties. */ +/** + * Managed integration runtime status type properties. + */ @Immutable public final class ManagedIntegrationRuntimeStatusTypeProperties { /* @@ -39,13 +41,15 @@ public final class ManagedIntegrationRuntimeStatusTypeProperties { @JsonProperty(value = "lastOperation", access = JsonProperty.Access.WRITE_ONLY) private ManagedIntegrationRuntimeOperationResult lastOperation; - /** Creates an instance of ManagedIntegrationRuntimeStatusTypeProperties class. */ + /** + * Creates an instance of ManagedIntegrationRuntimeStatusTypeProperties class. + */ public ManagedIntegrationRuntimeStatusTypeProperties() { } /** * Get the createTime property: The time at which the integration runtime was created, in ISO8601 format. - * + * * @return the createTime value. */ public OffsetDateTime createTime() { @@ -54,7 +58,7 @@ public OffsetDateTime createTime() { /** * Get the nodes property: The list of nodes for managed integration runtime. - * + * * @return the nodes value. */ public List nodes() { @@ -63,7 +67,7 @@ public List nodes() { /** * Get the otherErrors property: The errors that occurred on this integration runtime. - * + * * @return the otherErrors value. */ public List otherErrors() { @@ -72,7 +76,7 @@ public List otherErrors() { /** * Get the lastOperation property: The last operation result that occurred on this integration runtime. - * + * * @return the lastOperation value. */ public ManagedIntegrationRuntimeOperationResult lastOperation() { @@ -81,7 +85,7 @@ public ManagedIntegrationRuntimeOperationResult lastOperation() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIntegrationRuntimeTypeProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIntegrationRuntimeTypeProperties.java index 348497427489..7d8c63bb5894 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIntegrationRuntimeTypeProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ManagedIntegrationRuntimeTypeProperties.java @@ -9,7 +9,9 @@ import com.azure.resourcemanager.synapse.models.IntegrationRuntimeSsisProperties; import com.fasterxml.jackson.annotation.JsonProperty; -/** Managed integration runtime type properties. */ +/** + * Managed integration runtime type properties. + */ @Fluent public final class ManagedIntegrationRuntimeTypeProperties { /* @@ -24,13 +26,15 @@ public final class ManagedIntegrationRuntimeTypeProperties { @JsonProperty(value = "ssisProperties") private IntegrationRuntimeSsisProperties ssisProperties; - /** Creates an instance of ManagedIntegrationRuntimeTypeProperties class. */ + /** + * Creates an instance of ManagedIntegrationRuntimeTypeProperties class. + */ public ManagedIntegrationRuntimeTypeProperties() { } /** * Get the computeProperties property: The compute resource for managed integration runtime. - * + * * @return the computeProperties value. */ public IntegrationRuntimeComputeProperties computeProperties() { @@ -39,19 +43,19 @@ public IntegrationRuntimeComputeProperties computeProperties() { /** * Set the computeProperties property: The compute resource for managed integration runtime. - * + * * @param computeProperties the computeProperties value to set. * @return the ManagedIntegrationRuntimeTypeProperties object itself. */ - public ManagedIntegrationRuntimeTypeProperties withComputeProperties( - IntegrationRuntimeComputeProperties computeProperties) { + public ManagedIntegrationRuntimeTypeProperties + withComputeProperties(IntegrationRuntimeComputeProperties computeProperties) { this.computeProperties = computeProperties; return this; } /** * Get the ssisProperties property: SSIS properties for managed integration runtime. - * + * * @return the ssisProperties value. */ public IntegrationRuntimeSsisProperties ssisProperties() { @@ -60,7 +64,7 @@ public IntegrationRuntimeSsisProperties ssisProperties() { /** * Set the ssisProperties property: SSIS properties for managed integration runtime. - * + * * @param ssisProperties the ssisProperties value to set. * @return the ManagedIntegrationRuntimeTypeProperties object itself. */ @@ -71,7 +75,7 @@ public ManagedIntegrationRuntimeTypeProperties withSsisProperties(IntegrationRun /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MetadataSyncConfigInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MetadataSyncConfigInner.java index ac3cc7cafc94..41d1d438ba73 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MetadataSyncConfigInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MetadataSyncConfigInner.java @@ -10,8 +10,8 @@ /** * Metadata sync configuration - * - *

Configuration for metadata sync. + * + * Configuration for metadata sync. */ @Fluent public final class MetadataSyncConfigInner extends ProxyResource { @@ -21,13 +21,15 @@ public final class MetadataSyncConfigInner extends ProxyResource { @JsonProperty(value = "properties") private MetadataSyncConfigProperties innerProperties; - /** Creates an instance of MetadataSyncConfigInner class. */ + /** + * Creates an instance of MetadataSyncConfigInner class. + */ public MetadataSyncConfigInner() { } /** * Get the innerProperties property: Metadata Sync Config properties. - * + * * @return the innerProperties value. */ private MetadataSyncConfigProperties innerProperties() { @@ -36,7 +38,7 @@ private MetadataSyncConfigProperties innerProperties() { /** * Get the enabled property: Indicates whether the metadata sync is enabled or disabled. - * + * * @return the enabled value. */ public Boolean enabled() { @@ -45,7 +47,7 @@ public Boolean enabled() { /** * Set the enabled property: Indicates whether the metadata sync is enabled or disabled. - * + * * @param enabled the enabled value to set. * @return the MetadataSyncConfigInner object itself. */ @@ -59,7 +61,7 @@ public MetadataSyncConfigInner withEnabled(Boolean enabled) { /** * Get the syncIntervalInMinutes property: The Sync Interval in minutes. - * + * * @return the syncIntervalInMinutes value. */ public Integer syncIntervalInMinutes() { @@ -68,7 +70,7 @@ public Integer syncIntervalInMinutes() { /** * Set the syncIntervalInMinutes property: The Sync Interval in minutes. - * + * * @param syncIntervalInMinutes the syncIntervalInMinutes value to set. * @return the MetadataSyncConfigInner object itself. */ @@ -82,7 +84,7 @@ public MetadataSyncConfigInner withSyncIntervalInMinutes(Integer syncIntervalInM /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MetadataSyncConfigProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MetadataSyncConfigProperties.java index 543543bec0b6..2c422d56b906 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MetadataSyncConfigProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/MetadataSyncConfigProperties.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Metadata Sync Config properties. */ +/** + * Metadata Sync Config properties. + */ @Fluent public final class MetadataSyncConfigProperties { /* @@ -22,13 +24,15 @@ public final class MetadataSyncConfigProperties { @JsonProperty(value = "syncIntervalInMinutes") private Integer syncIntervalInMinutes; - /** Creates an instance of MetadataSyncConfigProperties class. */ + /** + * Creates an instance of MetadataSyncConfigProperties class. + */ public MetadataSyncConfigProperties() { } /** * Get the enabled property: Indicates whether the metadata sync is enabled or disabled. - * + * * @return the enabled value. */ public Boolean enabled() { @@ -37,7 +41,7 @@ public Boolean enabled() { /** * Set the enabled property: Indicates whether the metadata sync is enabled or disabled. - * + * * @param enabled the enabled value to set. * @return the MetadataSyncConfigProperties object itself. */ @@ -48,7 +52,7 @@ public MetadataSyncConfigProperties withEnabled(Boolean enabled) { /** * Get the syncIntervalInMinutes property: The Sync Interval in minutes. - * + * * @return the syncIntervalInMinutes value. */ public Integer syncIntervalInMinutes() { @@ -57,7 +61,7 @@ public Integer syncIntervalInMinutes() { /** * Set the syncIntervalInMinutes property: The Sync Interval in minutes. - * + * * @param syncIntervalInMinutes the syncIntervalInMinutes value to set. * @return the MetadataSyncConfigProperties object itself. */ @@ -68,7 +72,7 @@ public MetadataSyncConfigProperties withSyncIntervalInMinutes(Integer syncInterv /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/OperationInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/OperationInner.java index 47a564bab4e1..3e76aebdf239 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/OperationInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/OperationInner.java @@ -8,12 +8,14 @@ import com.azure.resourcemanager.synapse.models.OperationDisplay; import com.fasterxml.jackson.annotation.JsonProperty; -/** A REST API operation. */ +/** + * A REST API operation. + */ @Fluent public final class OperationInner { /* * The operation name. - * + * * This is of the format {provider}/{resource}/{operation}. */ @JsonProperty(value = "name") @@ -37,15 +39,17 @@ public final class OperationInner { @JsonProperty(value = "properties") private Object properties; - /** Creates an instance of OperationInner class. */ + /** + * Creates an instance of OperationInner class. + */ public OperationInner() { } /** * Get the name property: The operation name. - * - *

This is of the format {provider}/{resource}/{operation}. - * + * + * This is of the format {provider}/{resource}/{operation}. + * * @return the name value. */ public String name() { @@ -54,9 +58,9 @@ public String name() { /** * Set the name property: The operation name. - * - *

This is of the format {provider}/{resource}/{operation}. - * + * + * This is of the format {provider}/{resource}/{operation}. + * * @param name the name value to set. * @return the OperationInner object itself. */ @@ -67,7 +71,7 @@ public OperationInner withName(String name) { /** * Get the display property: The object that describes the operation. - * + * * @return the display value. */ public OperationDisplay display() { @@ -76,7 +80,7 @@ public OperationDisplay display() { /** * Set the display property: The object that describes the operation. - * + * * @param display the display value to set. * @return the OperationInner object itself. */ @@ -87,7 +91,7 @@ public OperationInner withDisplay(OperationDisplay display) { /** * Get the origin property: The intended executor of the operation. - * + * * @return the origin value. */ public String origin() { @@ -96,7 +100,7 @@ public String origin() { /** * Set the origin property: The intended executor of the operation. - * + * * @param origin the origin value to set. * @return the OperationInner object itself. */ @@ -107,7 +111,7 @@ public OperationInner withOrigin(String origin) { /** * Get the properties property: Properties of the operation. - * + * * @return the properties value. */ public Object properties() { @@ -116,7 +120,7 @@ public Object properties() { /** * Set the properties property: Properties of the operation. - * + * * @param properties the properties value to set. * @return the OperationInner object itself. */ @@ -127,7 +131,7 @@ public OperationInner withProperties(Object properties) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/OperationMetaPropertyInfo.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/OperationMetaPropertyInfo.java index 8fdbbc7bd9e5..cc103852cd44 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/OperationMetaPropertyInfo.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/OperationMetaPropertyInfo.java @@ -8,7 +8,9 @@ import com.azure.resourcemanager.synapse.models.OperationMetaServiceSpecification; import com.fasterxml.jackson.annotation.JsonProperty; -/** What is this?. */ +/** + * What is this?. + */ @Fluent public final class OperationMetaPropertyInfo { /* @@ -17,13 +19,15 @@ public final class OperationMetaPropertyInfo { @JsonProperty(value = "serviceSpecification") private OperationMetaServiceSpecification serviceSpecification; - /** Creates an instance of OperationMetaPropertyInfo class. */ + /** + * Creates an instance of OperationMetaPropertyInfo class. + */ public OperationMetaPropertyInfo() { } /** * Get the serviceSpecification property: Operation service specification. - * + * * @return the serviceSpecification value. */ public OperationMetaServiceSpecification serviceSpecification() { @@ -32,7 +36,7 @@ public OperationMetaServiceSpecification serviceSpecification() { /** * Set the serviceSpecification property: Operation service specification. - * + * * @param serviceSpecification the serviceSpecification value to set. * @return the OperationMetaPropertyInfo object itself. */ @@ -43,7 +47,7 @@ public OperationMetaPropertyInfo withServiceSpecification(OperationMetaServiceSp /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/OperationResourceInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/OperationResourceInner.java index 54e5c5363641..211684c71981 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/OperationResourceInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/OperationResourceInner.java @@ -10,7 +10,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; -/** An operation. */ +/** + * An operation. + */ @Fluent public final class OperationResourceInner { /* @@ -61,13 +63,15 @@ public final class OperationResourceInner { @JsonProperty(value = "percentComplete") private Float percentComplete; - /** Creates an instance of OperationResourceInner class. */ + /** + * Creates an instance of OperationResourceInner class. + */ public OperationResourceInner() { } /** * Get the id property: Operation ID. - * + * * @return the id value. */ public String id() { @@ -76,7 +80,7 @@ public String id() { /** * Set the id property: Operation ID. - * + * * @param id the id value to set. * @return the OperationResourceInner object itself. */ @@ -87,7 +91,7 @@ public OperationResourceInner withId(String id) { /** * Get the name property: Operation name. - * + * * @return the name value. */ public String name() { @@ -96,7 +100,7 @@ public String name() { /** * Set the name property: Operation name. - * + * * @param name the name value to set. * @return the OperationResourceInner object itself. */ @@ -107,7 +111,7 @@ public OperationResourceInner withName(String name) { /** * Get the status property: Operation status. - * + * * @return the status value. */ public OperationStatus status() { @@ -116,7 +120,7 @@ public OperationStatus status() { /** * Set the status property: Operation status. - * + * * @param status the status value to set. * @return the OperationResourceInner object itself. */ @@ -127,7 +131,7 @@ public OperationResourceInner withStatus(OperationStatus status) { /** * Get the properties property: Operation properties. - * + * * @return the properties value. */ public Object properties() { @@ -136,7 +140,7 @@ public Object properties() { /** * Set the properties property: Operation properties. - * + * * @param properties the properties value to set. * @return the OperationResourceInner object itself. */ @@ -147,7 +151,7 @@ public OperationResourceInner withProperties(Object properties) { /** * Get the error property: Errors from the operation. - * + * * @return the error value. */ public ManagementError error() { @@ -156,7 +160,7 @@ public ManagementError error() { /** * Set the error property: Errors from the operation. - * + * * @param error the error value to set. * @return the OperationResourceInner object itself. */ @@ -167,7 +171,7 @@ public OperationResourceInner withError(ManagementError error) { /** * Get the startTime property: Operation start time. - * + * * @return the startTime value. */ public OffsetDateTime startTime() { @@ -176,7 +180,7 @@ public OffsetDateTime startTime() { /** * Set the startTime property: Operation start time. - * + * * @param startTime the startTime value to set. * @return the OperationResourceInner object itself. */ @@ -187,7 +191,7 @@ public OperationResourceInner withStartTime(OffsetDateTime startTime) { /** * Get the endTime property: Operation start time. - * + * * @return the endTime value. */ public OffsetDateTime endTime() { @@ -196,7 +200,7 @@ public OffsetDateTime endTime() { /** * Set the endTime property: Operation start time. - * + * * @param endTime the endTime value to set. * @return the OperationResourceInner object itself. */ @@ -207,7 +211,7 @@ public OperationResourceInner withEndTime(OffsetDateTime endTime) { /** * Get the percentComplete property: Completion percentage of the operation. - * + * * @return the percentComplete value. */ public Float percentComplete() { @@ -216,7 +220,7 @@ public Float percentComplete() { /** * Set the percentComplete property: Completion percentage of the operation. - * + * * @param percentComplete the percentComplete value to set. * @return the OperationResourceInner object itself. */ @@ -227,7 +231,7 @@ public OperationResourceInner withPercentComplete(Float percentComplete) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateEndpointConnectionForPrivateLinkHubInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateEndpointConnectionForPrivateLinkHubInner.java index 5a41ed411671..b4cdd845f129 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateEndpointConnectionForPrivateLinkHubInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateEndpointConnectionForPrivateLinkHubInner.java @@ -8,7 +8,9 @@ import com.azure.resourcemanager.synapse.models.PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated; import com.fasterxml.jackson.annotation.JsonProperty; -/** The PrivateEndpointConnectionForPrivateLinkHub model. */ +/** + * The PrivateEndpointConnectionForPrivateLinkHub model. + */ @Fluent public final class PrivateEndpointConnectionForPrivateLinkHubInner extends PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated { @@ -24,13 +26,15 @@ public final class PrivateEndpointConnectionForPrivateLinkHubInner @JsonProperty(value = "type") private String type; - /** Creates an instance of PrivateEndpointConnectionForPrivateLinkHubInner class. */ + /** + * Creates an instance of PrivateEndpointConnectionForPrivateLinkHubInner class. + */ public PrivateEndpointConnectionForPrivateLinkHubInner() { } /** * Get the name property: The name property. - * + * * @return the name value. */ public String name() { @@ -39,7 +43,7 @@ public String name() { /** * Set the name property: The name property. - * + * * @param name the name value to set. * @return the PrivateEndpointConnectionForPrivateLinkHubInner object itself. */ @@ -50,7 +54,7 @@ public PrivateEndpointConnectionForPrivateLinkHubInner withName(String name) { /** * Get the type property: The type property. - * + * * @return the type value. */ public String type() { @@ -59,7 +63,7 @@ public String type() { /** * Set the type property: The type property. - * + * * @param type the type value to set. * @return the PrivateEndpointConnectionForPrivateLinkHubInner object itself. */ @@ -68,24 +72,28 @@ public PrivateEndpointConnectionForPrivateLinkHubInner withType(String type) { return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public PrivateEndpointConnectionForPrivateLinkHubInner withId(String id) { super.withId(id); return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override - public PrivateEndpointConnectionForPrivateLinkHubInner withProperties( - PrivateEndpointConnectionProperties properties) { + public PrivateEndpointConnectionForPrivateLinkHubInner + withProperties(PrivateEndpointConnectionProperties properties) { super.withProperties(properties); return this; } /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ @Override diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateEndpointConnectionInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateEndpointConnectionInner.java index 3b5c31d8aea5..c0d55417a90e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateEndpointConnectionInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateEndpointConnectionInner.java @@ -10,7 +10,9 @@ import com.azure.resourcemanager.synapse.models.PrivateLinkServiceConnectionState; import com.fasterxml.jackson.annotation.JsonProperty; -/** A private endpoint connection. */ +/** + * A private endpoint connection. + */ @Fluent public final class PrivateEndpointConnectionInner extends ProxyResource { /* @@ -19,13 +21,15 @@ public final class PrivateEndpointConnectionInner extends ProxyResource { @JsonProperty(value = "properties") private PrivateEndpointConnectionProperties innerProperties; - /** Creates an instance of PrivateEndpointConnectionInner class. */ + /** + * Creates an instance of PrivateEndpointConnectionInner class. + */ public PrivateEndpointConnectionInner() { } /** * Get the innerProperties property: Private endpoint connection properties. - * + * * @return the innerProperties value. */ private PrivateEndpointConnectionProperties innerProperties() { @@ -34,7 +38,7 @@ private PrivateEndpointConnectionProperties innerProperties() { /** * Get the privateEndpoint property: The private endpoint which the connection belongs to. - * + * * @return the privateEndpoint value. */ public PrivateEndpoint privateEndpoint() { @@ -43,7 +47,7 @@ public PrivateEndpoint privateEndpoint() { /** * Set the privateEndpoint property: The private endpoint which the connection belongs to. - * + * * @param privateEndpoint the privateEndpoint value to set. * @return the PrivateEndpointConnectionInner object itself. */ @@ -57,7 +61,7 @@ public PrivateEndpointConnectionInner withPrivateEndpoint(PrivateEndpoint privat /** * Get the privateLinkServiceConnectionState property: Connection state of the private endpoint connection. - * + * * @return the privateLinkServiceConnectionState value. */ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() { @@ -66,12 +70,12 @@ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() { /** * Set the privateLinkServiceConnectionState property: Connection state of the private endpoint connection. - * + * * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set. * @return the PrivateEndpointConnectionInner object itself. */ - public PrivateEndpointConnectionInner withPrivateLinkServiceConnectionState( - PrivateLinkServiceConnectionState privateLinkServiceConnectionState) { + public PrivateEndpointConnectionInner + withPrivateLinkServiceConnectionState(PrivateLinkServiceConnectionState privateLinkServiceConnectionState) { if (this.innerProperties() == null) { this.innerProperties = new PrivateEndpointConnectionProperties(); } @@ -81,7 +85,7 @@ public PrivateEndpointConnectionInner withPrivateLinkServiceConnectionState( /** * Get the provisioningState property: Provisioning state of the private endpoint connection. - * + * * @return the provisioningState value. */ public String provisioningState() { @@ -90,7 +94,7 @@ public String provisioningState() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateEndpointConnectionProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateEndpointConnectionProperties.java index 248dc7a08d2b..72b3688e8b76 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateEndpointConnectionProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateEndpointConnectionProperties.java @@ -9,7 +9,9 @@ import com.azure.resourcemanager.synapse.models.PrivateLinkServiceConnectionState; import com.fasterxml.jackson.annotation.JsonProperty; -/** Properties of a private endpoint connection. */ +/** + * Properties of a private endpoint connection. + */ @Fluent public final class PrivateEndpointConnectionProperties { /* @@ -30,13 +32,15 @@ public final class PrivateEndpointConnectionProperties { @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) private String provisioningState; - /** Creates an instance of PrivateEndpointConnectionProperties class. */ + /** + * Creates an instance of PrivateEndpointConnectionProperties class. + */ public PrivateEndpointConnectionProperties() { } /** * Get the privateEndpoint property: The private endpoint which the connection belongs to. - * + * * @return the privateEndpoint value. */ public PrivateEndpoint privateEndpoint() { @@ -45,7 +49,7 @@ public PrivateEndpoint privateEndpoint() { /** * Set the privateEndpoint property: The private endpoint which the connection belongs to. - * + * * @param privateEndpoint the privateEndpoint value to set. * @return the PrivateEndpointConnectionProperties object itself. */ @@ -56,7 +60,7 @@ public PrivateEndpointConnectionProperties withPrivateEndpoint(PrivateEndpoint p /** * Get the privateLinkServiceConnectionState property: Connection state of the private endpoint connection. - * + * * @return the privateLinkServiceConnectionState value. */ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() { @@ -65,19 +69,19 @@ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() { /** * Set the privateLinkServiceConnectionState property: Connection state of the private endpoint connection. - * + * * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set. * @return the PrivateEndpointConnectionProperties object itself. */ - public PrivateEndpointConnectionProperties withPrivateLinkServiceConnectionState( - PrivateLinkServiceConnectionState privateLinkServiceConnectionState) { + public PrivateEndpointConnectionProperties + withPrivateLinkServiceConnectionState(PrivateLinkServiceConnectionState privateLinkServiceConnectionState) { this.privateLinkServiceConnectionState = privateLinkServiceConnectionState; return this; } /** * Get the provisioningState property: Provisioning state of the private endpoint connection. - * + * * @return the provisioningState value. */ public String provisioningState() { @@ -86,7 +90,7 @@ public String provisioningState() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateLinkHubInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateLinkHubInner.java index 99de149dd9d8..e7794fcc1c8d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateLinkHubInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateLinkHubInner.java @@ -11,7 +11,9 @@ import java.util.List; import java.util.Map; -/** A privateLinkHub. */ +/** + * A privateLinkHub. + */ @Fluent public final class PrivateLinkHubInner extends Resource { /* @@ -20,27 +22,33 @@ public final class PrivateLinkHubInner extends Resource { @JsonProperty(value = "properties") private PrivateLinkHubProperties innerProperties; - /** Creates an instance of PrivateLinkHubInner class. */ + /** + * Creates an instance of PrivateLinkHubInner class. + */ public PrivateLinkHubInner() { } /** * Get the innerProperties property: PrivateLinkHub resource properties. - * + * * @return the innerProperties value. */ private PrivateLinkHubProperties innerProperties() { return this.innerProperties; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public PrivateLinkHubInner withLocation(String location) { super.withLocation(location); return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public PrivateLinkHubInner withTags(Map tags) { super.withTags(tags); @@ -49,7 +57,7 @@ public PrivateLinkHubInner withTags(Map tags) { /** * Get the provisioningState property: PrivateLinkHub provisioning state. - * + * * @return the provisioningState value. */ public String provisioningState() { @@ -58,7 +66,7 @@ public String provisioningState() { /** * Set the provisioningState property: PrivateLinkHub provisioning state. - * + * * @param provisioningState the provisioningState value to set. * @return the PrivateLinkHubInner object itself. */ @@ -72,7 +80,7 @@ public PrivateLinkHubInner withProvisioningState(String provisioningState) { /** * Get the privateEndpointConnections property: List of private endpoint connections. - * + * * @return the privateEndpointConnections value. */ public List privateEndpointConnections() { @@ -81,7 +89,7 @@ public List privateEndpointConn /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateLinkHubProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateLinkHubProperties.java index 7ff9c68a069d..b8da7b0af911 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateLinkHubProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateLinkHubProperties.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** PrivateLinkHub properties. */ +/** + * PrivateLinkHub properties. + */ @Fluent public final class PrivateLinkHubProperties { /* @@ -24,13 +26,15 @@ public final class PrivateLinkHubProperties { @JsonProperty(value = "privateEndpointConnections", access = JsonProperty.Access.WRITE_ONLY) private List privateEndpointConnections; - /** Creates an instance of PrivateLinkHubProperties class. */ + /** + * Creates an instance of PrivateLinkHubProperties class. + */ public PrivateLinkHubProperties() { } /** * Get the provisioningState property: PrivateLinkHub provisioning state. - * + * * @return the provisioningState value. */ public String provisioningState() { @@ -39,7 +43,7 @@ public String provisioningState() { /** * Set the provisioningState property: PrivateLinkHub provisioning state. - * + * * @param provisioningState the provisioningState value to set. * @return the PrivateLinkHubProperties object itself. */ @@ -50,7 +54,7 @@ public PrivateLinkHubProperties withProvisioningState(String provisioningState) /** * Get the privateEndpointConnections property: List of private endpoint connections. - * + * * @return the privateEndpointConnections value. */ public List privateEndpointConnections() { @@ -59,7 +63,7 @@ public List privateEndpointConn /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateLinkResourceInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateLinkResourceInner.java index 8ee7a4b269ad..ba2873aafa3f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateLinkResourceInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateLinkResourceInner.java @@ -9,7 +9,9 @@ import com.azure.resourcemanager.synapse.models.PrivateLinkResourceProperties; import com.fasterxml.jackson.annotation.JsonProperty; -/** A private link resource. */ +/** + * A private link resource. + */ @Immutable public final class PrivateLinkResourceInner extends ProxyResource { /* @@ -18,13 +20,15 @@ public final class PrivateLinkResourceInner extends ProxyResource { @JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY) private PrivateLinkResourceProperties properties; - /** Creates an instance of PrivateLinkResourceInner class. */ + /** + * Creates an instance of PrivateLinkResourceInner class. + */ public PrivateLinkResourceInner() { } /** * Get the properties property: The private link resource properties. - * + * * @return the properties value. */ public PrivateLinkResourceProperties properties() { @@ -33,7 +37,7 @@ public PrivateLinkResourceProperties properties() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateLinkResourcesProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateLinkResourcesProperties.java index 15839aa7e811..f9068a6eb043 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateLinkResourcesProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/PrivateLinkResourcesProperties.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Private Link Resources Properties. */ +/** + * Private Link Resources Properties. + */ @Immutable public final class PrivateLinkResourcesProperties { /* @@ -36,13 +38,15 @@ public final class PrivateLinkResourcesProperties { @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) private ResourceProvisioningState provisioningState; - /** Creates an instance of PrivateLinkResourcesProperties class. */ + /** + * Creates an instance of PrivateLinkResourcesProperties class. + */ public PrivateLinkResourcesProperties() { } /** * Get the groupId property: The Private link resources GroupId. - * + * * @return the groupId value. */ public String groupId() { @@ -51,7 +55,7 @@ public String groupId() { /** * Get the requiredMembers property: The private link resource required member names. - * + * * @return the requiredMembers value. */ public List requiredMembers() { @@ -60,7 +64,7 @@ public List requiredMembers() { /** * Get the requiredZoneNames property: The private link resource required zone names. - * + * * @return the requiredZoneNames value. */ public List requiredZoneNames() { @@ -69,7 +73,7 @@ public List requiredZoneNames() { /** * Get the provisioningState property: The provisioned state of the resource. - * + * * @return the provisioningState value. */ public ResourceProvisioningState provisioningState() { @@ -78,7 +82,7 @@ public ResourceProvisioningState provisioningState() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReadOnlyFollowingDatabaseProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReadOnlyFollowingDatabaseProperties.java index 4e175f6647d7..a60bf0f6438a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReadOnlyFollowingDatabaseProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReadOnlyFollowingDatabaseProperties.java @@ -11,7 +11,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.time.Duration; -/** Class representing the Kusto database properties. */ +/** + * Class representing the Kusto database properties. + */ @Fluent public final class ReadOnlyFollowingDatabaseProperties { /* @@ -56,13 +58,15 @@ public final class ReadOnlyFollowingDatabaseProperties { @JsonProperty(value = "principalsModificationKind", access = JsonProperty.Access.WRITE_ONLY) private PrincipalsModificationKind principalsModificationKind; - /** Creates an instance of ReadOnlyFollowingDatabaseProperties class. */ + /** + * Creates an instance of ReadOnlyFollowingDatabaseProperties class. + */ public ReadOnlyFollowingDatabaseProperties() { } /** * Get the provisioningState property: The provisioned state of the resource. - * + * * @return the provisioningState value. */ public ResourceProvisioningState provisioningState() { @@ -72,7 +76,7 @@ public ResourceProvisioningState provisioningState() { /** * Get the softDeletePeriod property: The time the data should be kept before it stops being accessible to queries * in TimeSpan. - * + * * @return the softDeletePeriod value. */ public Duration softDeletePeriod() { @@ -81,7 +85,7 @@ public Duration softDeletePeriod() { /** * Get the hotCachePeriod property: The time the data should be kept in cache for fast queries in TimeSpan. - * + * * @return the hotCachePeriod value. */ public Duration hotCachePeriod() { @@ -90,7 +94,7 @@ public Duration hotCachePeriod() { /** * Set the hotCachePeriod property: The time the data should be kept in cache for fast queries in TimeSpan. - * + * * @param hotCachePeriod the hotCachePeriod value to set. * @return the ReadOnlyFollowingDatabaseProperties object itself. */ @@ -101,7 +105,7 @@ public ReadOnlyFollowingDatabaseProperties withHotCachePeriod(Duration hotCacheP /** * Get the statistics property: The statistics of the database. - * + * * @return the statistics value. */ public DatabaseStatistics statistics() { @@ -110,7 +114,7 @@ public DatabaseStatistics statistics() { /** * Get the leaderClusterResourceId property: The name of the leader cluster. - * + * * @return the leaderClusterResourceId value. */ public String leaderClusterResourceId() { @@ -119,7 +123,7 @@ public String leaderClusterResourceId() { /** * Get the attachedDatabaseConfigurationName property: The name of the attached database configuration cluster. - * + * * @return the attachedDatabaseConfigurationName value. */ public String attachedDatabaseConfigurationName() { @@ -128,7 +132,7 @@ public String attachedDatabaseConfigurationName() { /** * Get the principalsModificationKind property: The principals modification kind of the database. - * + * * @return the principalsModificationKind value. */ public PrincipalsModificationKind principalsModificationKind() { @@ -137,7 +141,7 @@ public PrincipalsModificationKind principalsModificationKind() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReadWriteDatabaseProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReadWriteDatabaseProperties.java index b9b59df26f83..51df67a5eef8 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReadWriteDatabaseProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReadWriteDatabaseProperties.java @@ -10,7 +10,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.time.Duration; -/** Class representing the Kusto database properties. */ +/** + * Class representing the Kusto database properties. + */ @Fluent public final class ReadWriteDatabaseProperties { /* @@ -43,13 +45,15 @@ public final class ReadWriteDatabaseProperties { @JsonProperty(value = "isFollowed", access = JsonProperty.Access.WRITE_ONLY) private Boolean isFollowed; - /** Creates an instance of ReadWriteDatabaseProperties class. */ + /** + * Creates an instance of ReadWriteDatabaseProperties class. + */ public ReadWriteDatabaseProperties() { } /** * Get the provisioningState property: The provisioned state of the resource. - * + * * @return the provisioningState value. */ public ResourceProvisioningState provisioningState() { @@ -59,7 +63,7 @@ public ResourceProvisioningState provisioningState() { /** * Get the softDeletePeriod property: The time the data should be kept before it stops being accessible to queries * in TimeSpan. - * + * * @return the softDeletePeriod value. */ public Duration softDeletePeriod() { @@ -69,7 +73,7 @@ public Duration softDeletePeriod() { /** * Set the softDeletePeriod property: The time the data should be kept before it stops being accessible to queries * in TimeSpan. - * + * * @param softDeletePeriod the softDeletePeriod value to set. * @return the ReadWriteDatabaseProperties object itself. */ @@ -80,7 +84,7 @@ public ReadWriteDatabaseProperties withSoftDeletePeriod(Duration softDeletePerio /** * Get the hotCachePeriod property: The time the data should be kept in cache for fast queries in TimeSpan. - * + * * @return the hotCachePeriod value. */ public Duration hotCachePeriod() { @@ -89,7 +93,7 @@ public Duration hotCachePeriod() { /** * Set the hotCachePeriod property: The time the data should be kept in cache for fast queries in TimeSpan. - * + * * @param hotCachePeriod the hotCachePeriod value to set. * @return the ReadWriteDatabaseProperties object itself. */ @@ -100,7 +104,7 @@ public ReadWriteDatabaseProperties withHotCachePeriod(Duration hotCachePeriod) { /** * Get the statistics property: The statistics of the database. - * + * * @return the statistics value. */ public DatabaseStatistics statistics() { @@ -109,7 +113,7 @@ public DatabaseStatistics statistics() { /** * Get the isFollowed property: Indicates whether the database is followed. - * + * * @return the isFollowed value. */ public Boolean isFollowed() { @@ -118,7 +122,7 @@ public Boolean isFollowed() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RecommendedSensitivityLabelUpdateProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RecommendedSensitivityLabelUpdateProperties.java index 606ba5aec368..4448a8428a6f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RecommendedSensitivityLabelUpdateProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RecommendedSensitivityLabelUpdateProperties.java @@ -9,7 +9,9 @@ import com.azure.resourcemanager.synapse.models.RecommendedSensitivityLabelUpdateKind; import com.fasterxml.jackson.annotation.JsonProperty; -/** Properties of an operation executed on a recommended sensitivity label. */ +/** + * Properties of an operation executed on a recommended sensitivity label. + */ @Fluent public final class RecommendedSensitivityLabelUpdateProperties { /* @@ -36,13 +38,15 @@ public final class RecommendedSensitivityLabelUpdateProperties { @JsonProperty(value = "column", required = true) private String column; - /** Creates an instance of RecommendedSensitivityLabelUpdateProperties class. */ + /** + * Creates an instance of RecommendedSensitivityLabelUpdateProperties class. + */ public RecommendedSensitivityLabelUpdateProperties() { } /** * Get the op property: The op property. - * + * * @return the op value. */ public RecommendedSensitivityLabelUpdateKind op() { @@ -51,7 +55,7 @@ public RecommendedSensitivityLabelUpdateKind op() { /** * Set the op property: The op property. - * + * * @param op the op value to set. * @return the RecommendedSensitivityLabelUpdateProperties object itself. */ @@ -62,7 +66,7 @@ public RecommendedSensitivityLabelUpdateProperties withOp(RecommendedSensitivity /** * Get the schema property: Schema name of the column to update. - * + * * @return the schema value. */ public String schema() { @@ -71,7 +75,7 @@ public String schema() { /** * Set the schema property: Schema name of the column to update. - * + * * @param schema the schema value to set. * @return the RecommendedSensitivityLabelUpdateProperties object itself. */ @@ -82,7 +86,7 @@ public RecommendedSensitivityLabelUpdateProperties withSchema(String schema) { /** * Get the table property: Table name of the column to update. - * + * * @return the table value. */ public String table() { @@ -91,7 +95,7 @@ public String table() { /** * Set the table property: Table name of the column to update. - * + * * @param table the table value to set. * @return the RecommendedSensitivityLabelUpdateProperties object itself. */ @@ -102,7 +106,7 @@ public RecommendedSensitivityLabelUpdateProperties withTable(String table) { /** * Get the column property: Column name to update. - * + * * @return the column value. */ public String column() { @@ -111,7 +115,7 @@ public String column() { /** * Set the column property: Column name to update. - * + * * @param column the column value to set. * @return the RecommendedSensitivityLabelUpdateProperties object itself. */ @@ -122,33 +126,25 @@ public RecommendedSensitivityLabelUpdateProperties withColumn(String column) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (op() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property op in model RecommendedSensitivityLabelUpdateProperties")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property op in model RecommendedSensitivityLabelUpdateProperties")); } if (schema() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property schema in model RecommendedSensitivityLabelUpdateProperties")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property schema in model RecommendedSensitivityLabelUpdateProperties")); } if (table() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property table in model RecommendedSensitivityLabelUpdateProperties")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property table in model RecommendedSensitivityLabelUpdateProperties")); } if (column() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property column in model RecommendedSensitivityLabelUpdateProperties")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property column in model RecommendedSensitivityLabelUpdateProperties")); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RecoverableSqlPoolInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RecoverableSqlPoolInner.java index b8bf0a146777..c3b9ff8eebf9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RecoverableSqlPoolInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RecoverableSqlPoolInner.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; -/** A recoverable sql pool. */ +/** + * A recoverable sql pool. + */ @Immutable public final class RecoverableSqlPoolInner extends ProxyResource { /* @@ -18,13 +20,15 @@ public final class RecoverableSqlPoolInner extends ProxyResource { @JsonProperty(value = "properties") private RecoverableSqlPoolProperties innerProperties; - /** Creates an instance of RecoverableSqlPoolInner class. */ + /** + * Creates an instance of RecoverableSqlPoolInner class. + */ public RecoverableSqlPoolInner() { } /** * Get the innerProperties property: The properties of a recoverable sql pool. - * + * * @return the innerProperties value. */ private RecoverableSqlPoolProperties innerProperties() { @@ -33,7 +37,7 @@ private RecoverableSqlPoolProperties innerProperties() { /** * Get the edition property: The edition of the database. - * + * * @return the edition value. */ public String edition() { @@ -42,7 +46,7 @@ public String edition() { /** * Get the serviceLevelObjective property: The service level objective name of the database. - * + * * @return the serviceLevelObjective value. */ public String serviceLevelObjective() { @@ -51,7 +55,7 @@ public String serviceLevelObjective() { /** * Get the elasticPoolName property: The elastic pool name of the database. - * + * * @return the elasticPoolName value. */ public String elasticPoolName() { @@ -60,7 +64,7 @@ public String elasticPoolName() { /** * Get the lastAvailableBackupDate property: The last available backup date of the database (ISO8601 format). - * + * * @return the lastAvailableBackupDate value. */ public OffsetDateTime lastAvailableBackupDate() { @@ -69,7 +73,7 @@ public OffsetDateTime lastAvailableBackupDate() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RecoverableSqlPoolProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RecoverableSqlPoolProperties.java index c41f1da9dcde..534eadfe9e2a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RecoverableSqlPoolProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RecoverableSqlPoolProperties.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; -/** The properties of a recoverable sql pool. */ +/** + * The properties of a recoverable sql pool. + */ @Immutable public final class RecoverableSqlPoolProperties { /* @@ -35,13 +37,15 @@ public final class RecoverableSqlPoolProperties { @JsonProperty(value = "lastAvailableBackupDate", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime lastAvailableBackupDate; - /** Creates an instance of RecoverableSqlPoolProperties class. */ + /** + * Creates an instance of RecoverableSqlPoolProperties class. + */ public RecoverableSqlPoolProperties() { } /** * Get the edition property: The edition of the database. - * + * * @return the edition value. */ public String edition() { @@ -50,7 +54,7 @@ public String edition() { /** * Get the serviceLevelObjective property: The service level objective name of the database. - * + * * @return the serviceLevelObjective value. */ public String serviceLevelObjective() { @@ -59,7 +63,7 @@ public String serviceLevelObjective() { /** * Get the elasticPoolName property: The elastic pool name of the database. - * + * * @return the elasticPoolName value. */ public String elasticPoolName() { @@ -68,7 +72,7 @@ public String elasticPoolName() { /** * Get the lastAvailableBackupDate property: The last available backup date of the database (ISO8601 format). - * + * * @return the lastAvailableBackupDate value. */ public OffsetDateTime lastAvailableBackupDate() { @@ -77,7 +81,7 @@ public OffsetDateTime lastAvailableBackupDate() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReplaceAllFirewallRulesOperationResponseInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReplaceAllFirewallRulesOperationResponseInner.java index c31092919919..535387e2f023 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReplaceAllFirewallRulesOperationResponseInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReplaceAllFirewallRulesOperationResponseInner.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** An existing operation for replacing the firewall rules. */ +/** + * An existing operation for replacing the firewall rules. + */ @Fluent public final class ReplaceAllFirewallRulesOperationResponseInner { /* @@ -16,13 +18,15 @@ public final class ReplaceAllFirewallRulesOperationResponseInner { @JsonProperty(value = "operationId") private String operationId; - /** Creates an instance of ReplaceAllFirewallRulesOperationResponseInner class. */ + /** + * Creates an instance of ReplaceAllFirewallRulesOperationResponseInner class. + */ public ReplaceAllFirewallRulesOperationResponseInner() { } /** * Get the operationId property: The operation ID. - * + * * @return the operationId value. */ public String operationId() { @@ -31,7 +35,7 @@ public String operationId() { /** * Set the operationId property: The operation ID. - * + * * @param operationId the operationId value to set. * @return the ReplaceAllFirewallRulesOperationResponseInner object itself. */ @@ -42,7 +46,7 @@ public ReplaceAllFirewallRulesOperationResponseInner withOperationId(String oper /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReplicationLinkInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReplicationLinkInner.java index bb1167239be8..dde45d499067 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReplicationLinkInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReplicationLinkInner.java @@ -11,7 +11,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; -/** Represents a Sql pool replication link. */ +/** + * Represents a Sql pool replication link. + */ @Immutable public final class ReplicationLinkInner extends ProxyResource { /* @@ -26,13 +28,15 @@ public final class ReplicationLinkInner extends ProxyResource { @JsonProperty(value = "properties") private ReplicationLinkProperties innerProperties; - /** Creates an instance of ReplicationLinkInner class. */ + /** + * Creates an instance of ReplicationLinkInner class. + */ public ReplicationLinkInner() { } /** * Get the location property: Location of the workspace that contains this firewall rule. - * + * * @return the location value. */ public String location() { @@ -41,7 +45,7 @@ public String location() { /** * Get the innerProperties property: The properties representing the resource. - * + * * @return the innerProperties value. */ private ReplicationLinkProperties innerProperties() { @@ -51,7 +55,7 @@ private ReplicationLinkProperties innerProperties() { /** * Get the isTerminationAllowed property: Legacy value indicating whether termination is allowed. Currently always * returns true. - * + * * @return the isTerminationAllowed value. */ public Boolean isTerminationAllowed() { @@ -60,7 +64,7 @@ public Boolean isTerminationAllowed() { /** * Get the replicationMode property: Replication mode of this replication link. - * + * * @return the replicationMode value. */ public String replicationMode() { @@ -69,7 +73,7 @@ public String replicationMode() { /** * Get the partnerServer property: The name of the workspace hosting the partner Sql pool. - * + * * @return the partnerServer value. */ public String partnerServer() { @@ -78,7 +82,7 @@ public String partnerServer() { /** * Get the partnerDatabase property: The name of the partner Sql pool. - * + * * @return the partnerDatabase value. */ public String partnerDatabase() { @@ -87,7 +91,7 @@ public String partnerDatabase() { /** * Get the partnerLocation property: The Azure Region of the partner Sql pool. - * + * * @return the partnerLocation value. */ public String partnerLocation() { @@ -96,7 +100,7 @@ public String partnerLocation() { /** * Get the role property: The role of the Sql pool in the replication link. - * + * * @return the role value. */ public ReplicationRole role() { @@ -105,7 +109,7 @@ public ReplicationRole role() { /** * Get the partnerRole property: The role of the partner Sql pool in the replication link. - * + * * @return the partnerRole value. */ public ReplicationRole partnerRole() { @@ -114,7 +118,7 @@ public ReplicationRole partnerRole() { /** * Get the startTime property: The start time for the replication link. - * + * * @return the startTime value. */ public OffsetDateTime startTime() { @@ -123,7 +127,7 @@ public OffsetDateTime startTime() { /** * Get the percentComplete property: The percentage of seeding complete for the replication link. - * + * * @return the percentComplete value. */ public Integer percentComplete() { @@ -132,7 +136,7 @@ public Integer percentComplete() { /** * Get the replicationState property: The replication state for the replication link. - * + * * @return the replicationState value. */ public ReplicationState replicationState() { @@ -141,7 +145,7 @@ public ReplicationState replicationState() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReplicationLinkProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReplicationLinkProperties.java index 469c25c36f69..84416d5b94a2 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReplicationLinkProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ReplicationLinkProperties.java @@ -10,11 +10,13 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; -/** Represents the properties of a Sql pool replication link. */ +/** + * Represents the properties of a Sql pool replication link. + */ @Immutable public final class ReplicationLinkProperties { /* - * Legacy value indicating whether termination is allowed. Currently always returns true. + * Legacy value indicating whether termination is allowed. Currently always returns true. */ @JsonProperty(value = "isTerminationAllowed", access = JsonProperty.Access.WRITE_ONLY) private Boolean isTerminationAllowed; @@ -73,14 +75,16 @@ public final class ReplicationLinkProperties { @JsonProperty(value = "replicationState", access = JsonProperty.Access.WRITE_ONLY) private ReplicationState replicationState; - /** Creates an instance of ReplicationLinkProperties class. */ + /** + * Creates an instance of ReplicationLinkProperties class. + */ public ReplicationLinkProperties() { } /** * Get the isTerminationAllowed property: Legacy value indicating whether termination is allowed. Currently always * returns true. - * + * * @return the isTerminationAllowed value. */ public Boolean isTerminationAllowed() { @@ -89,7 +93,7 @@ public Boolean isTerminationAllowed() { /** * Get the replicationMode property: Replication mode of this replication link. - * + * * @return the replicationMode value. */ public String replicationMode() { @@ -98,7 +102,7 @@ public String replicationMode() { /** * Get the partnerServer property: The name of the workspace hosting the partner Sql pool. - * + * * @return the partnerServer value. */ public String partnerServer() { @@ -107,7 +111,7 @@ public String partnerServer() { /** * Get the partnerDatabase property: The name of the partner Sql pool. - * + * * @return the partnerDatabase value. */ public String partnerDatabase() { @@ -116,7 +120,7 @@ public String partnerDatabase() { /** * Get the partnerLocation property: The Azure Region of the partner Sql pool. - * + * * @return the partnerLocation value. */ public String partnerLocation() { @@ -125,7 +129,7 @@ public String partnerLocation() { /** * Get the role property: The role of the Sql pool in the replication link. - * + * * @return the role value. */ public ReplicationRole role() { @@ -134,7 +138,7 @@ public ReplicationRole role() { /** * Get the partnerRole property: The role of the partner Sql pool in the replication link. - * + * * @return the partnerRole value. */ public ReplicationRole partnerRole() { @@ -143,7 +147,7 @@ public ReplicationRole partnerRole() { /** * Get the startTime property: The start time for the replication link. - * + * * @return the startTime value. */ public OffsetDateTime startTime() { @@ -152,7 +156,7 @@ public OffsetDateTime startTime() { /** * Get the percentComplete property: The percentage of seeding complete for the replication link. - * + * * @return the percentComplete value. */ public Integer percentComplete() { @@ -161,7 +165,7 @@ public Integer percentComplete() { /** * Get the replicationState property: The replication state for the replication link. - * + * * @return the replicationState value. */ public ReplicationState replicationState() { @@ -170,7 +174,7 @@ public ReplicationState replicationState() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RestorableDroppedSqlPoolInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RestorableDroppedSqlPoolInner.java index 83d20dc1ad27..629f6d6594cc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RestorableDroppedSqlPoolInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RestorableDroppedSqlPoolInner.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; -/** A restorable dropped Sql pool. */ +/** + * A restorable dropped Sql pool. + */ @Immutable public final class RestorableDroppedSqlPoolInner extends ProxyResource { /* @@ -24,13 +26,15 @@ public final class RestorableDroppedSqlPoolInner extends ProxyResource { @JsonProperty(value = "properties") private RestorableDroppedSqlPoolProperties innerProperties; - /** Creates an instance of RestorableDroppedSqlPoolInner class. */ + /** + * Creates an instance of RestorableDroppedSqlPoolInner class. + */ public RestorableDroppedSqlPoolInner() { } /** * Get the location property: The geo-location where the resource lives. - * + * * @return the location value. */ public String location() { @@ -39,7 +43,7 @@ public String location() { /** * Get the innerProperties property: The properties of a restorable dropped Sql pool. - * + * * @return the innerProperties value. */ private RestorableDroppedSqlPoolProperties innerProperties() { @@ -48,7 +52,7 @@ private RestorableDroppedSqlPoolProperties innerProperties() { /** * Get the databaseName property: The name of the database. - * + * * @return the databaseName value. */ public String databaseName() { @@ -57,7 +61,7 @@ public String databaseName() { /** * Get the edition property: The edition of the database. - * + * * @return the edition value. */ public String edition() { @@ -66,7 +70,7 @@ public String edition() { /** * Get the maxSizeBytes property: The max size in bytes of the database. - * + * * @return the maxSizeBytes value. */ public String maxSizeBytes() { @@ -75,7 +79,7 @@ public String maxSizeBytes() { /** * Get the serviceLevelObjective property: The service level objective name of the database. - * + * * @return the serviceLevelObjective value. */ public String serviceLevelObjective() { @@ -84,7 +88,7 @@ public String serviceLevelObjective() { /** * Get the elasticPoolName property: The elastic pool name of the database. - * + * * @return the elasticPoolName value. */ public String elasticPoolName() { @@ -93,7 +97,7 @@ public String elasticPoolName() { /** * Get the creationDate property: The creation date of the database (ISO8601 format). - * + * * @return the creationDate value. */ public OffsetDateTime creationDate() { @@ -102,7 +106,7 @@ public OffsetDateTime creationDate() { /** * Get the deletionDate property: The deletion date of the database (ISO8601 format). - * + * * @return the deletionDate value. */ public OffsetDateTime deletionDate() { @@ -111,7 +115,7 @@ public OffsetDateTime deletionDate() { /** * Get the earliestRestoreDate property: The earliest restore date of the database (ISO8601 format). - * + * * @return the earliestRestoreDate value. */ public OffsetDateTime earliestRestoreDate() { @@ -120,7 +124,7 @@ public OffsetDateTime earliestRestoreDate() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RestorableDroppedSqlPoolProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RestorableDroppedSqlPoolProperties.java index 54b7d5768720..5e2a59102c22 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RestorableDroppedSqlPoolProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RestorableDroppedSqlPoolProperties.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; -/** The properties of a restorable dropped Sql pool. */ +/** + * The properties of a restorable dropped Sql pool. + */ @Immutable public final class RestorableDroppedSqlPoolProperties { /* @@ -59,13 +61,15 @@ public final class RestorableDroppedSqlPoolProperties { @JsonProperty(value = "earliestRestoreDate", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime earliestRestoreDate; - /** Creates an instance of RestorableDroppedSqlPoolProperties class. */ + /** + * Creates an instance of RestorableDroppedSqlPoolProperties class. + */ public RestorableDroppedSqlPoolProperties() { } /** * Get the databaseName property: The name of the database. - * + * * @return the databaseName value. */ public String databaseName() { @@ -74,7 +78,7 @@ public String databaseName() { /** * Get the edition property: The edition of the database. - * + * * @return the edition value. */ public String edition() { @@ -83,7 +87,7 @@ public String edition() { /** * Get the maxSizeBytes property: The max size in bytes of the database. - * + * * @return the maxSizeBytes value. */ public String maxSizeBytes() { @@ -92,7 +96,7 @@ public String maxSizeBytes() { /** * Get the serviceLevelObjective property: The service level objective name of the database. - * + * * @return the serviceLevelObjective value. */ public String serviceLevelObjective() { @@ -101,7 +105,7 @@ public String serviceLevelObjective() { /** * Get the elasticPoolName property: The elastic pool name of the database. - * + * * @return the elasticPoolName value. */ public String elasticPoolName() { @@ -110,7 +114,7 @@ public String elasticPoolName() { /** * Get the creationDate property: The creation date of the database (ISO8601 format). - * + * * @return the creationDate value. */ public OffsetDateTime creationDate() { @@ -119,7 +123,7 @@ public OffsetDateTime creationDate() { /** * Get the deletionDate property: The deletion date of the database (ISO8601 format). - * + * * @return the deletionDate value. */ public OffsetDateTime deletionDate() { @@ -128,7 +132,7 @@ public OffsetDateTime deletionDate() { /** * Get the earliestRestoreDate property: The earliest restore date of the database (ISO8601 format). - * + * * @return the earliestRestoreDate value. */ public OffsetDateTime earliestRestoreDate() { @@ -137,7 +141,7 @@ public OffsetDateTime earliestRestoreDate() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RestorePointInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RestorePointInner.java index 0cdbd433b59d..d40552cfdfd9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RestorePointInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RestorePointInner.java @@ -10,7 +10,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; -/** Database restore points. */ +/** + * Database restore points. + */ @Immutable public final class RestorePointInner extends ProxyResource { /* @@ -25,13 +27,15 @@ public final class RestorePointInner extends ProxyResource { @JsonProperty(value = "properties") private RestorePointProperties innerProperties; - /** Creates an instance of RestorePointInner class. */ + /** + * Creates an instance of RestorePointInner class. + */ public RestorePointInner() { } /** * Get the location property: Resource location. - * + * * @return the location value. */ public String location() { @@ -40,7 +44,7 @@ public String location() { /** * Get the innerProperties property: Resource properties. - * + * * @return the innerProperties value. */ private RestorePointProperties innerProperties() { @@ -49,7 +53,7 @@ private RestorePointProperties innerProperties() { /** * Get the restorePointType property: The type of restore point. - * + * * @return the restorePointType value. */ public RestorePointType restorePointType() { @@ -58,7 +62,7 @@ public RestorePointType restorePointType() { /** * Get the earliestRestoreDate property: The earliest time to which this database can be restored. - * + * * @return the earliestRestoreDate value. */ public OffsetDateTime earliestRestoreDate() { @@ -67,7 +71,7 @@ public OffsetDateTime earliestRestoreDate() { /** * Get the restorePointCreationDate property: The time the backup was taken. - * + * * @return the restorePointCreationDate value. */ public OffsetDateTime restorePointCreationDate() { @@ -76,7 +80,7 @@ public OffsetDateTime restorePointCreationDate() { /** * Get the restorePointLabel property: The label of restore point for backup request by user. - * + * * @return the restorePointLabel value. */ public String restorePointLabel() { @@ -85,7 +89,7 @@ public String restorePointLabel() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RestorePointProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RestorePointProperties.java index 3d947ccee65e..e3488805b9c4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RestorePointProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/RestorePointProperties.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; -/** Properties of a database restore point. */ +/** + * Properties of a database restore point. + */ @Immutable public final class RestorePointProperties { /* @@ -36,13 +38,15 @@ public final class RestorePointProperties { @JsonProperty(value = "restorePointLabel", access = JsonProperty.Access.WRITE_ONLY) private String restorePointLabel; - /** Creates an instance of RestorePointProperties class. */ + /** + * Creates an instance of RestorePointProperties class. + */ public RestorePointProperties() { } /** * Get the restorePointType property: The type of restore point. - * + * * @return the restorePointType value. */ public RestorePointType restorePointType() { @@ -51,7 +55,7 @@ public RestorePointType restorePointType() { /** * Get the earliestRestoreDate property: The earliest time to which this database can be restored. - * + * * @return the earliestRestoreDate value. */ public OffsetDateTime earliestRestoreDate() { @@ -60,7 +64,7 @@ public OffsetDateTime earliestRestoreDate() { /** * Get the restorePointCreationDate property: The time the backup was taken. - * + * * @return the restorePointCreationDate value. */ public OffsetDateTime restorePointCreationDate() { @@ -69,7 +73,7 @@ public OffsetDateTime restorePointCreationDate() { /** * Get the restorePointLabel property: The label of restore point for backup request by user. - * + * * @return the restorePointLabel value. */ public String restorePointLabel() { @@ -78,7 +82,7 @@ public String restorePointLabel() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SecurityAlertPolicyProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SecurityAlertPolicyProperties.java index e1f06bd19348..12ac9d159d87 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SecurityAlertPolicyProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SecurityAlertPolicyProperties.java @@ -11,7 +11,9 @@ import java.time.OffsetDateTime; import java.util.List; -/** Properties of a security alert policy. */ +/** + * Properties of a security alert policy. + */ @Fluent public final class SecurityAlertPolicyProperties { /* @@ -65,14 +67,16 @@ public final class SecurityAlertPolicyProperties { @JsonProperty(value = "creationTime", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime creationTime; - /** Creates an instance of SecurityAlertPolicyProperties class. */ + /** + * Creates an instance of SecurityAlertPolicyProperties class. + */ public SecurityAlertPolicyProperties() { } /** * Get the state property: Specifies the state of the policy, whether it is enabled or disabled or a policy has not * been applied yet on the specific Sql pool. - * + * * @return the state value. */ public SecurityAlertPolicyState state() { @@ -82,7 +86,7 @@ public SecurityAlertPolicyState state() { /** * Set the state property: Specifies the state of the policy, whether it is enabled or disabled or a policy has not * been applied yet on the specific Sql pool. - * + * * @param state the state value to set. * @return the SecurityAlertPolicyProperties object itself. */ @@ -94,7 +98,7 @@ public SecurityAlertPolicyProperties withState(SecurityAlertPolicyState state) { /** * Get the disabledAlerts property: Specifies an array of alerts that are disabled. Allowed values are: * Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action. - * + * * @return the disabledAlerts value. */ public List disabledAlerts() { @@ -104,7 +108,7 @@ public List disabledAlerts() { /** * Set the disabledAlerts property: Specifies an array of alerts that are disabled. Allowed values are: * Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action. - * + * * @param disabledAlerts the disabledAlerts value to set. * @return the SecurityAlertPolicyProperties object itself. */ @@ -115,7 +119,7 @@ public SecurityAlertPolicyProperties withDisabledAlerts(List disabledAle /** * Get the emailAddresses property: Specifies an array of e-mail addresses to which the alert is sent. - * + * * @return the emailAddresses value. */ public List emailAddresses() { @@ -124,7 +128,7 @@ public List emailAddresses() { /** * Set the emailAddresses property: Specifies an array of e-mail addresses to which the alert is sent. - * + * * @param emailAddresses the emailAddresses value to set. * @return the SecurityAlertPolicyProperties object itself. */ @@ -135,7 +139,7 @@ public SecurityAlertPolicyProperties withEmailAddresses(List emailAddres /** * Get the emailAccountAdmins property: Specifies that the alert is sent to the account administrators. - * + * * @return the emailAccountAdmins value. */ public Boolean emailAccountAdmins() { @@ -144,7 +148,7 @@ public Boolean emailAccountAdmins() { /** * Set the emailAccountAdmins property: Specifies that the alert is sent to the account administrators. - * + * * @param emailAccountAdmins the emailAccountAdmins value to set. * @return the SecurityAlertPolicyProperties object itself. */ @@ -156,7 +160,7 @@ public SecurityAlertPolicyProperties withEmailAccountAdmins(Boolean emailAccount /** * Get the storageEndpoint property: Specifies the blob storage endpoint (e.g. * https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. - * + * * @return the storageEndpoint value. */ public String storageEndpoint() { @@ -166,7 +170,7 @@ public String storageEndpoint() { /** * Set the storageEndpoint property: Specifies the blob storage endpoint (e.g. * https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. - * + * * @param storageEndpoint the storageEndpoint value to set. * @return the SecurityAlertPolicyProperties object itself. */ @@ -178,7 +182,7 @@ public SecurityAlertPolicyProperties withStorageEndpoint(String storageEndpoint) /** * Get the storageAccountAccessKey property: Specifies the identifier key of the Threat Detection audit storage * account. - * + * * @return the storageAccountAccessKey value. */ public String storageAccountAccessKey() { @@ -188,7 +192,7 @@ public String storageAccountAccessKey() { /** * Set the storageAccountAccessKey property: Specifies the identifier key of the Threat Detection audit storage * account. - * + * * @param storageAccountAccessKey the storageAccountAccessKey value to set. * @return the SecurityAlertPolicyProperties object itself. */ @@ -199,7 +203,7 @@ public SecurityAlertPolicyProperties withStorageAccountAccessKey(String storageA /** * Get the retentionDays property: Specifies the number of days to keep in the Threat Detection audit logs. - * + * * @return the retentionDays value. */ public Integer retentionDays() { @@ -208,7 +212,7 @@ public Integer retentionDays() { /** * Set the retentionDays property: Specifies the number of days to keep in the Threat Detection audit logs. - * + * * @param retentionDays the retentionDays value to set. * @return the SecurityAlertPolicyProperties object itself. */ @@ -219,7 +223,7 @@ public SecurityAlertPolicyProperties withRetentionDays(Integer retentionDays) { /** * Get the creationTime property: Specifies the UTC creation time of the policy. - * + * * @return the creationTime value. */ public OffsetDateTime creationTime() { @@ -228,15 +232,13 @@ public OffsetDateTime creationTime() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (state() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property state in model SecurityAlertPolicyProperties")); + throw LOGGER.logExceptionAsError( + new IllegalArgumentException("Missing required property state in model SecurityAlertPolicyProperties")); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SelfHostedIntegrationRuntimeNodeInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SelfHostedIntegrationRuntimeNodeInner.java index a60ddbbcd957..d4d53cc8257c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SelfHostedIntegrationRuntimeNodeInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SelfHostedIntegrationRuntimeNodeInner.java @@ -16,7 +16,9 @@ import java.util.HashMap; import java.util.Map; -/** Properties of Self-hosted integration runtime node. */ +/** + * Properties of Self-hosted integration runtime node. + */ @Fluent public final class SelfHostedIntegrationRuntimeNodeInner { /* @@ -131,15 +133,18 @@ public final class SelfHostedIntegrationRuntimeNodeInner { /* * Properties of Self-hosted integration runtime node. */ - @JsonIgnore private Map additionalProperties; + @JsonIgnore + private Map additionalProperties; - /** Creates an instance of SelfHostedIntegrationRuntimeNodeInner class. */ + /** + * Creates an instance of SelfHostedIntegrationRuntimeNodeInner class. + */ public SelfHostedIntegrationRuntimeNodeInner() { } /** * Get the nodeName property: Name of the integration runtime node. - * + * * @return the nodeName value. */ public String nodeName() { @@ -148,7 +153,7 @@ public String nodeName() { /** * Get the machineName property: Machine name of the integration runtime node. - * + * * @return the machineName value. */ public String machineName() { @@ -157,7 +162,7 @@ public String machineName() { /** * Get the hostServiceUri property: URI for the host machine of the integration runtime. - * + * * @return the hostServiceUri value. */ public String hostServiceUri() { @@ -166,7 +171,7 @@ public String hostServiceUri() { /** * Get the status property: Status of the integration runtime node. - * + * * @return the status value. */ public SelfHostedIntegrationRuntimeNodeStatus status() { @@ -175,7 +180,7 @@ public SelfHostedIntegrationRuntimeNodeStatus status() { /** * Get the capabilities property: The integration runtime capabilities dictionary. - * + * * @return the capabilities value. */ public Map capabilities() { @@ -184,7 +189,7 @@ public Map capabilities() { /** * Get the versionStatus property: Status of the integration runtime node version. - * + * * @return the versionStatus value. */ public String versionStatus() { @@ -193,7 +198,7 @@ public String versionStatus() { /** * Get the version property: Version of the integration runtime node. - * + * * @return the version value. */ public String version() { @@ -202,7 +207,7 @@ public String version() { /** * Get the registerTime property: The time at which the integration runtime node was registered in ISO8601 format. - * + * * @return the registerTime value. */ public OffsetDateTime registerTime() { @@ -212,7 +217,7 @@ public OffsetDateTime registerTime() { /** * Get the lastConnectTime property: The most recent time at which the integration runtime was connected in ISO8601 * format. - * + * * @return the lastConnectTime value. */ public OffsetDateTime lastConnectTime() { @@ -221,7 +226,7 @@ public OffsetDateTime lastConnectTime() { /** * Get the expiryTime property: The time at which the integration runtime will expire in ISO8601 format. - * + * * @return the expiryTime value. */ public OffsetDateTime expiryTime() { @@ -230,7 +235,7 @@ public OffsetDateTime expiryTime() { /** * Get the lastStartTime property: The time the node last started up. - * + * * @return the lastStartTime value. */ public OffsetDateTime lastStartTime() { @@ -239,7 +244,7 @@ public OffsetDateTime lastStartTime() { /** * Get the lastStopTime property: The integration runtime node last stop time. - * + * * @return the lastStopTime value. */ public OffsetDateTime lastStopTime() { @@ -248,7 +253,7 @@ public OffsetDateTime lastStopTime() { /** * Get the lastUpdateResult property: The result of the last integration runtime node update. - * + * * @return the lastUpdateResult value. */ public IntegrationRuntimeUpdateResult lastUpdateResult() { @@ -257,7 +262,7 @@ public IntegrationRuntimeUpdateResult lastUpdateResult() { /** * Get the lastStartUpdateTime property: The last time for the integration runtime node update start. - * + * * @return the lastStartUpdateTime value. */ public OffsetDateTime lastStartUpdateTime() { @@ -266,7 +271,7 @@ public OffsetDateTime lastStartUpdateTime() { /** * Get the lastEndUpdateTime property: The last time for the integration runtime node update end. - * + * * @return the lastEndUpdateTime value. */ public OffsetDateTime lastEndUpdateTime() { @@ -274,9 +279,9 @@ public OffsetDateTime lastEndUpdateTime() { } /** - * Get the isActiveDispatcher property: Indicates whether this node is the active dispatcher for integration runtime - * requests. - * + * Get the isActiveDispatcher property: Indicates whether this node is the active dispatcher for integration + * runtime requests. + * * @return the isActiveDispatcher value. */ public Boolean isActiveDispatcher() { @@ -285,7 +290,7 @@ public Boolean isActiveDispatcher() { /** * Get the concurrentJobsLimit property: Maximum concurrent jobs on the integration runtime node. - * + * * @return the concurrentJobsLimit value. */ public Integer concurrentJobsLimit() { @@ -294,7 +299,7 @@ public Integer concurrentJobsLimit() { /** * Get the maxConcurrentJobs property: The maximum concurrent jobs in this integration runtime. - * + * * @return the maxConcurrentJobs value. */ public Integer maxConcurrentJobs() { @@ -303,7 +308,7 @@ public Integer maxConcurrentJobs() { /** * Get the additionalProperties property: Properties of Self-hosted integration runtime node. - * + * * @return the additionalProperties value. */ @JsonAnyGetter @@ -313,7 +318,7 @@ public Map additionalProperties() { /** * Set the additionalProperties property: Properties of Self-hosted integration runtime node. - * + * * @param additionalProperties the additionalProperties value to set. * @return the SelfHostedIntegrationRuntimeNodeInner object itself. */ @@ -332,7 +337,7 @@ void withAdditionalProperties(String key, Object value) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SelfHostedIntegrationRuntimeStatusTypeProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SelfHostedIntegrationRuntimeStatusTypeProperties.java index 38fad0ca36df..82a7a9929f4a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SelfHostedIntegrationRuntimeStatusTypeProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SelfHostedIntegrationRuntimeStatusTypeProperties.java @@ -14,7 +14,9 @@ import java.util.List; import java.util.Map; -/** Self-hosted integration runtime status type properties. */ +/** + * Self-hosted integration runtime status type properties. + */ @Fluent public final class SelfHostedIntegrationRuntimeStatusTypeProperties { /* @@ -145,13 +147,15 @@ public final class SelfHostedIntegrationRuntimeStatusTypeProperties { @JsonProperty(value = "targetFramework", access = JsonProperty.Access.WRITE_ONLY) private Integer targetFramework; - /** Creates an instance of SelfHostedIntegrationRuntimeStatusTypeProperties class. */ + /** + * Creates an instance of SelfHostedIntegrationRuntimeStatusTypeProperties class. + */ public SelfHostedIntegrationRuntimeStatusTypeProperties() { } /** * Get the createTime property: The time at which the integration runtime was created, in ISO8601 format. - * + * * @return the createTime value. */ public OffsetDateTime createTime() { @@ -160,7 +164,7 @@ public OffsetDateTime createTime() { /** * Get the taskQueueId property: The task queue id of the integration runtime. - * + * * @return the taskQueueId value. */ public String taskQueueId() { @@ -169,7 +173,7 @@ public String taskQueueId() { /** * Get the nodeCommunicationChannelEncryptionMode property: The node communication Channel encryption mode. - * + * * @return the nodeCommunicationChannelEncryptionMode value. */ public String nodeCommunicationChannelEncryptionMode() { @@ -179,7 +183,7 @@ public String nodeCommunicationChannelEncryptionMode() { /** * Get the internalChannelEncryption property: It is used to set the encryption mode for node-node communication * channel (when more than 2 self-hosted integration runtime nodes exist). - * + * * @return the internalChannelEncryption value. */ public IntegrationRuntimeInternalChannelEncryptionMode internalChannelEncryption() { @@ -188,7 +192,7 @@ public IntegrationRuntimeInternalChannelEncryptionMode internalChannelEncryption /** * Get the version property: Version of the integration runtime. - * + * * @return the version value. */ public String version() { @@ -197,7 +201,7 @@ public String version() { /** * Get the nodes property: The list of nodes for this integration runtime. - * + * * @return the nodes value. */ public List nodes() { @@ -206,12 +210,12 @@ public List nodes() { /** * Set the nodes property: The list of nodes for this integration runtime. - * + * * @param nodes the nodes value to set. * @return the SelfHostedIntegrationRuntimeStatusTypeProperties object itself. */ - public SelfHostedIntegrationRuntimeStatusTypeProperties withNodes( - List nodes) { + public SelfHostedIntegrationRuntimeStatusTypeProperties + withNodes(List nodes) { this.nodes = nodes; return this; } @@ -219,7 +223,7 @@ public SelfHostedIntegrationRuntimeStatusTypeProperties withNodes( /** * Get the scheduledUpdateDate property: The date at which the integration runtime will be scheduled to update, in * ISO8601 format. - * + * * @return the scheduledUpdateDate value. */ public OffsetDateTime scheduledUpdateDate() { @@ -229,7 +233,7 @@ public OffsetDateTime scheduledUpdateDate() { /** * Get the updateDelayOffset property: The time in the date scheduled by service to update the integration runtime, * e.g., PT03H is 3 hours. - * + * * @return the updateDelayOffset value. */ public String updateDelayOffset() { @@ -238,7 +242,7 @@ public String updateDelayOffset() { /** * Get the localTimeZoneOffset property: The local time zone offset in hours. - * + * * @return the localTimeZoneOffset value. */ public String localTimeZoneOffset() { @@ -247,7 +251,7 @@ public String localTimeZoneOffset() { /** * Get the capabilities property: Object with additional information about integration runtime capabilities. - * + * * @return the capabilities value. */ public Map capabilities() { @@ -256,7 +260,7 @@ public Map capabilities() { /** * Get the serviceUrls property: The URLs for the services used in integration runtime backend service. - * + * * @return the serviceUrls value. */ public List serviceUrls() { @@ -265,7 +269,7 @@ public List serviceUrls() { /** * Get the autoUpdate property: Whether Self-hosted integration runtime auto update has been turned on. - * + * * @return the autoUpdate value. */ public IntegrationRuntimeAutoUpdate autoUpdate() { @@ -274,7 +278,7 @@ public IntegrationRuntimeAutoUpdate autoUpdate() { /** * Get the versionStatus property: Status of the integration runtime version. - * + * * @return the versionStatus value. */ public String versionStatus() { @@ -284,7 +288,7 @@ public String versionStatus() { /** * Get the links property: The list of linked integration runtimes that are created to share with this integration * runtime. - * + * * @return the links value. */ public List links() { @@ -294,7 +298,7 @@ public List links() { /** * Set the links property: The list of linked integration runtimes that are created to share with this integration * runtime. - * + * * @param links the links value to set. * @return the SelfHostedIntegrationRuntimeStatusTypeProperties object itself. */ @@ -305,7 +309,7 @@ public SelfHostedIntegrationRuntimeStatusTypeProperties withLinks(List newerVersions() { @@ -361,7 +365,7 @@ public List newerVersions() { /** * Set the newerVersions property: The newer versions on download center. - * + * * @param newerVersions the newerVersions value to set. * @return the SelfHostedIntegrationRuntimeStatusTypeProperties object itself. */ @@ -372,7 +376,7 @@ public SelfHostedIntegrationRuntimeStatusTypeProperties withNewerVersions(ListThe recommended set of action groups to use is the following combination - this will audit all the queries and + * + * The recommended set of action groups to use is the following combination - this will audit all the queries and * stored procedures executed against the database, as well as successful and failed logins: - * - *

BATCH_COMPLETED_GROUP, SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, FAILED_DATABASE_AUTHENTICATION_GROUP. - * - *

This above combination is also the set that is configured by default when enabling auditing from the Azure + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing from the Azure * portal. - * - *

The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. + * + * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. * Using unnecessary groups could lead to very large quantities of audit records): - * - *

APPLICATION_ROLE_CHANGE_PASSWORD_GROUP BACKUP_RESTORE_GROUP DATABASE_LOGOUT_GROUP DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP DATABASE_OBJECT_PERMISSION_CHANGE_GROUP DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP DATABASE_PRINCIPAL_CHANGE_GROUP DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP FAILED_DATABASE_AUTHENTICATION_GROUP SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP USER_CHANGE_PASSWORD_GROUP BATCH_STARTED_GROUP BATCH_COMPLETED_GROUP - * - *

These are groups that cover all sql statements and stored procedures executed against the database, and should + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP + * BATCH_COMPLETED_GROUP + * + * These are groups that cover all sql statements and stored procedures executed against the database, and should * not be used in combination with other groups as this will result in duplicate audit logs. - * - *

For more information, see [Database-Level Audit Action + * + * For more information, see [Database-Level Audit Action * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - *

For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified - * for Server auditing policy). The supported actions to audit are: SELECT UPDATE INSERT DELETE EXECUTE RECEIVE + * + * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for + * Server auditing policy). The supported actions to audit are: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE * REFERENCES - * - *

The general form for defining an action to be audited is: {action} ON {object} BY {principal} - * - *

Note that <object> in the above format can refer to an object like a table, view, or stored procedure, - * or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} - * are used, respectively. - * - *

For example: SELECT on dbo.myTable by public SELECT on DATABASE::myDatabase by public SELECT on - * SCHEMA::mySchema by public - * - *

For more information, see [Database-Level Audit + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note that <object> in the above format can refer to an object like a table, view, or stored procedure, or + * an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are + * used, respectively. + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For more information, see [Database-Level Audit * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions). - * + * * @return the auditActionsAndGroups value. */ public List auditActionsAndGroups() { @@ -194,47 +227,72 @@ public List auditActionsAndGroups() { /** * Set the auditActionsAndGroups property: Specifies the Actions-Groups and Actions to audit. - * - *

The recommended set of action groups to use is the following combination - this will audit all the queries and + * + * The recommended set of action groups to use is the following combination - this will audit all the queries and * stored procedures executed against the database, as well as successful and failed logins: - * - *

BATCH_COMPLETED_GROUP, SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, FAILED_DATABASE_AUTHENTICATION_GROUP. - * - *

This above combination is also the set that is configured by default when enabling auditing from the Azure + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing from the Azure * portal. - * - *

The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. + * + * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. * Using unnecessary groups could lead to very large quantities of audit records): - * - *

APPLICATION_ROLE_CHANGE_PASSWORD_GROUP BACKUP_RESTORE_GROUP DATABASE_LOGOUT_GROUP DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP DATABASE_OBJECT_PERMISSION_CHANGE_GROUP DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP DATABASE_PRINCIPAL_CHANGE_GROUP DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP FAILED_DATABASE_AUTHENTICATION_GROUP SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP USER_CHANGE_PASSWORD_GROUP BATCH_STARTED_GROUP BATCH_COMPLETED_GROUP - * - *

These are groups that cover all sql statements and stored procedures executed against the database, and should + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP + * BATCH_COMPLETED_GROUP + * + * These are groups that cover all sql statements and stored procedures executed against the database, and should * not be used in combination with other groups as this will result in duplicate audit logs. - * - *

For more information, see [Database-Level Audit Action + * + * For more information, see [Database-Level Audit Action * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - *

For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified - * for Server auditing policy). The supported actions to audit are: SELECT UPDATE INSERT DELETE EXECUTE RECEIVE + * + * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for + * Server auditing policy). The supported actions to audit are: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE * REFERENCES - * - *

The general form for defining an action to be audited is: {action} ON {object} BY {principal} - * - *

Note that <object> in the above format can refer to an object like a table, view, or stored procedure, - * or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} - * are used, respectively. - * - *

For example: SELECT on dbo.myTable by public SELECT on DATABASE::myDatabase by public SELECT on - * SCHEMA::mySchema by public - * - *

For more information, see [Database-Level Audit + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note that <object> in the above format can refer to an object like a table, view, or stored procedure, or + * an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are + * used, respectively. + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For more information, see [Database-Level Audit * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions). - * + * * @param auditActionsAndGroups the auditActionsAndGroups value to set. * @return the ServerBlobAuditingPolicyInner object itself. */ @@ -248,7 +306,7 @@ public ServerBlobAuditingPolicyInner withAuditActionsAndGroups(List audi /** * Get the storageAccountSubscriptionId property: Specifies the blob storage subscription Id. - * + * * @return the storageAccountSubscriptionId value. */ public UUID storageAccountSubscriptionId() { @@ -257,7 +315,7 @@ public UUID storageAccountSubscriptionId() { /** * Set the storageAccountSubscriptionId property: Specifies the blob storage subscription Id. - * + * * @param storageAccountSubscriptionId the storageAccountSubscriptionId value to set. * @return the ServerBlobAuditingPolicyInner object itself. */ @@ -272,7 +330,7 @@ public ServerBlobAuditingPolicyInner withStorageAccountSubscriptionId(UUID stora /** * Get the isStorageSecondaryKeyInUse property: Specifies whether storageAccountAccessKey value is the storage's * secondary key. - * + * * @return the isStorageSecondaryKeyInUse value. */ public Boolean isStorageSecondaryKeyInUse() { @@ -282,7 +340,7 @@ public Boolean isStorageSecondaryKeyInUse() { /** * Set the isStorageSecondaryKeyInUse property: Specifies whether storageAccountAccessKey value is the storage's * secondary key. - * + * * @param isStorageSecondaryKeyInUse the isStorageSecondaryKeyInUse value to set. * @return the ServerBlobAuditingPolicyInner object itself. */ @@ -295,19 +353,21 @@ public ServerBlobAuditingPolicyInner withIsStorageSecondaryKeyInUse(Boolean isSt } /** - * Get the isAzureMonitorTargetEnabled property: Specifies whether audit events are sent to Azure Monitor. In order - * to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as true. - * - *

When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs - * category on the database should be also created. Note that for server level audit you should use the 'master' - * database as {databaseName}. - * - *

Diagnostic Settings URI format: PUT + * Get the isAzureMonitorTargetEnabled property: Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as + * true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs + * category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - *

For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) or - * [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). - * + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * * @return the isAzureMonitorTargetEnabled value. */ public Boolean isAzureMonitorTargetEnabled() { @@ -315,19 +375,21 @@ public Boolean isAzureMonitorTargetEnabled() { } /** - * Set the isAzureMonitorTargetEnabled property: Specifies whether audit events are sent to Azure Monitor. In order - * to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as true. - * - *

When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs - * category on the database should be also created. Note that for server level audit you should use the 'master' - * database as {databaseName}. - * - *

Diagnostic Settings URI format: PUT + * Set the isAzureMonitorTargetEnabled property: Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as + * true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs + * category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - *

For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) or - * [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). - * + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * * @param isAzureMonitorTargetEnabled the isAzureMonitorTargetEnabled value to set. * @return the ServerBlobAuditingPolicyInner object itself. */ @@ -341,8 +403,9 @@ public ServerBlobAuditingPolicyInner withIsAzureMonitorTargetEnabled(Boolean isA /** * Get the queueDelayMs property: Specifies the amount of time in milliseconds that can elapse before audit actions - * are forced to be processed. The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. - * + * are forced to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. + * * @return the queueDelayMs value. */ public Integer queueDelayMs() { @@ -351,8 +414,9 @@ public Integer queueDelayMs() { /** * Set the queueDelayMs property: Specifies the amount of time in milliseconds that can elapse before audit actions - * are forced to be processed. The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. - * + * are forced to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. + * * @param queueDelayMs the queueDelayMs value to set. * @return the ServerBlobAuditingPolicyInner object itself. */ @@ -365,19 +429,21 @@ public ServerBlobAuditingPolicyInner withQueueDelayMs(Integer queueDelayMs) { } /** - * Get the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, devops logs will - * be sent to Azure Monitor. In order to send the events to Azure Monitor, specify 'State' as 'Enabled', - * 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true - * - *

When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs + * Get the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, devops logs + * will be sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' as + * true and 'IsDevopsAuditEnabled' as true + * + * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs * category on the master database should also be created. - * - *

Diagnostic Settings URI format: PUT + * + * Diagnostic Settings URI format: + * PUT * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - *

For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) or - * [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). - * + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * * @return the isDevopsAuditEnabled value. */ public Boolean isDevopsAuditEnabled() { @@ -385,19 +451,21 @@ public Boolean isDevopsAuditEnabled() { } /** - * Set the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, devops logs will - * be sent to Azure Monitor. In order to send the events to Azure Monitor, specify 'State' as 'Enabled', - * 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true - * - *

When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs + * Set the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, devops logs + * will be sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' as + * true and 'IsDevopsAuditEnabled' as true + * + * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs * category on the master database should also be created. - * - *

Diagnostic Settings URI format: PUT + * + * Diagnostic Settings URI format: + * PUT * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - *

For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) or - * [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). - * + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * * @param isDevopsAuditEnabled the isDevopsAuditEnabled value to set. * @return the ServerBlobAuditingPolicyInner object itself. */ @@ -411,7 +479,7 @@ public ServerBlobAuditingPolicyInner withIsDevopsAuditEnabled(Boolean isDevopsAu /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerBlobAuditingPolicyProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerBlobAuditingPolicyProperties.java index 67cfb6ab8e10..f14c647ecac0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerBlobAuditingPolicyProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerBlobAuditingPolicyProperties.java @@ -11,7 +11,9 @@ import java.util.List; import java.util.UUID; -/** Properties of a server blob auditing policy. */ +/** + * Properties of a server blob auditing policy. + */ @Fluent public final class ServerBlobAuditingPolicyProperties { /* @@ -50,20 +52,20 @@ public final class ServerBlobAuditingPolicyProperties { /* * Specifies the Actions-Groups and Actions to audit. - * + * * The recommended set of action groups to use is the following combination - this will audit all the queries and * stored procedures executed against the database, as well as successful and failed logins: - * + * * BATCH_COMPLETED_GROUP, * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, * FAILED_DATABASE_AUTHENTICATION_GROUP. - * + * * This above combination is also the set that is configured by default when enabling auditing from the Azure * portal. - * + * * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. * Using unnecessary groups could lead to very large quantities of audit records): - * + * * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP * BACKUP_RESTORE_GROUP * DATABASE_LOGOUT_GROUP @@ -84,13 +86,14 @@ public final class ServerBlobAuditingPolicyProperties { * USER_CHANGE_PASSWORD_GROUP * BATCH_STARTED_GROUP * BATCH_COMPLETED_GROUP - * + * * These are groups that cover all sql statements and stored procedures executed against the database, and should * not be used in combination with other groups as this will result in duplicate audit logs. - * + * * For more information, see [Database-Level Audit Action - * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * + * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action- + * groups-and-actions#database-level-audit-action-groups). + * * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for * Server auditing policy). The supported actions to audit are: * SELECT @@ -100,21 +103,22 @@ public final class ServerBlobAuditingPolicyProperties { * EXECUTE * RECEIVE * REFERENCES - * + * * The general form for defining an action to be audited is: * {action} ON {object} BY {principal} - * + * * Note that in the above format can refer to an object like a table, view, or stored procedure, or an * entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are * used, respectively. - * + * * For example: * SELECT on dbo.myTable by public * SELECT on DATABASE::myDatabase by public * SELECT on SCHEMA::mySchema by public - * + * * For more information, see [Database-Level Audit - * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) + * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action- + * groups-and-actions#database-level-audit-actions) */ @JsonProperty(value = "auditActionsAndGroups") private List auditActionsAndGroups; @@ -135,18 +139,20 @@ public final class ServerBlobAuditingPolicyProperties { * Specifies whether audit events are sent to Azure Monitor. * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as * true. - * + * * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs * category on the database should be also created. * Note that for server level audit you should use the 'master' database as {databaseName}. - * + * * Diagnostic Settings URI format: * PUT - * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * + * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft. + * Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}? + * api-version=2017-05-01-preview + * * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) - * + * */ @JsonProperty(value = "isAzureMonitorTargetEnabled") private Boolean isAzureMonitorTargetEnabled; @@ -162,29 +168,33 @@ public final class ServerBlobAuditingPolicyProperties { * Specifies the state of devops audit. If state is Enabled, devops logs will be sent to Azure Monitor. * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' as * true and 'IsDevopsAuditEnabled' as true - * + * * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs * category on the master database should also be created. - * + * * Diagnostic Settings URI format: * PUT - * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * + * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft. + * Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api- + * version=2017-05-01-preview + * * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) - * + * */ @JsonProperty(value = "isDevopsAuditEnabled") private Boolean isDevopsAuditEnabled; - /** Creates an instance of ServerBlobAuditingPolicyProperties class. */ + /** + * Creates an instance of ServerBlobAuditingPolicyProperties class. + */ public ServerBlobAuditingPolicyProperties() { } /** * Get the state property: Specifies the state of the policy. If state is Enabled, storageEndpoint or * isAzureMonitorTargetEnabled are required. - * + * * @return the state value. */ public BlobAuditingPolicyState state() { @@ -194,7 +204,7 @@ public BlobAuditingPolicyState state() { /** * Set the state property: Specifies the state of the policy. If state is Enabled, storageEndpoint or * isAzureMonitorTargetEnabled are required. - * + * * @param state the state value to set. * @return the ServerBlobAuditingPolicyProperties object itself. */ @@ -207,7 +217,7 @@ public ServerBlobAuditingPolicyProperties withState(BlobAuditingPolicyState stat * Get the storageEndpoint property: Specifies the blob storage endpoint (e.g. * https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is * required. - * + * * @return the storageEndpoint value. */ public String storageEndpoint() { @@ -218,7 +228,7 @@ public String storageEndpoint() { * Set the storageEndpoint property: Specifies the blob storage endpoint (e.g. * https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is * required. - * + * * @param storageEndpoint the storageEndpoint value to set. * @return the ServerBlobAuditingPolicyProperties object itself. */ @@ -228,14 +238,16 @@ public ServerBlobAuditingPolicyProperties withStorageEndpoint(String storageEndp } /** - * Get the storageAccountAccessKey property: Specifies the identifier key of the auditing storage account. If state - * is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server - * system-assigned managed identity to access the storage. Prerequisites for using managed identity authentication: - * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). 2. Grant SQL Server - * identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server - * identity. For more information, see [Auditing to storage using Managed Identity + * Get the storageAccountAccessKey property: Specifies the identifier key of the auditing storage account. + * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL + * server system-assigned managed identity to access the storage. + * Prerequisites for using managed identity authentication: + * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). + * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role + * to the server identity. + * For more information, see [Auditing to storage using Managed Identity * authentication](https://go.microsoft.com/fwlink/?linkid=2114355). - * + * * @return the storageAccountAccessKey value. */ public String storageAccountAccessKey() { @@ -243,14 +255,16 @@ public String storageAccountAccessKey() { } /** - * Set the storageAccountAccessKey property: Specifies the identifier key of the auditing storage account. If state - * is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server - * system-assigned managed identity to access the storage. Prerequisites for using managed identity authentication: - * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). 2. Grant SQL Server - * identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server - * identity. For more information, see [Auditing to storage using Managed Identity + * Set the storageAccountAccessKey property: Specifies the identifier key of the auditing storage account. + * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL + * server system-assigned managed identity to access the storage. + * Prerequisites for using managed identity authentication: + * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). + * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role + * to the server identity. + * For more information, see [Auditing to storage using Managed Identity * authentication](https://go.microsoft.com/fwlink/?linkid=2114355). - * + * * @param storageAccountAccessKey the storageAccountAccessKey value to set. * @return the ServerBlobAuditingPolicyProperties object itself. */ @@ -261,7 +275,7 @@ public ServerBlobAuditingPolicyProperties withStorageAccountAccessKey(String sto /** * Get the retentionDays property: Specifies the number of days to keep in the audit logs in the storage account. - * + * * @return the retentionDays value. */ public Integer retentionDays() { @@ -270,7 +284,7 @@ public Integer retentionDays() { /** * Set the retentionDays property: Specifies the number of days to keep in the audit logs in the storage account. - * + * * @param retentionDays the retentionDays value to set. * @return the ServerBlobAuditingPolicyProperties object itself. */ @@ -281,47 +295,72 @@ public ServerBlobAuditingPolicyProperties withRetentionDays(Integer retentionDay /** * Get the auditActionsAndGroups property: Specifies the Actions-Groups and Actions to audit. - * - *

The recommended set of action groups to use is the following combination - this will audit all the queries and + * + * The recommended set of action groups to use is the following combination - this will audit all the queries and * stored procedures executed against the database, as well as successful and failed logins: - * - *

BATCH_COMPLETED_GROUP, SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, FAILED_DATABASE_AUTHENTICATION_GROUP. - * - *

This above combination is also the set that is configured by default when enabling auditing from the Azure + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing from the Azure * portal. - * - *

The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. + * + * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. * Using unnecessary groups could lead to very large quantities of audit records): - * - *

APPLICATION_ROLE_CHANGE_PASSWORD_GROUP BACKUP_RESTORE_GROUP DATABASE_LOGOUT_GROUP DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP DATABASE_OBJECT_PERMISSION_CHANGE_GROUP DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP DATABASE_PRINCIPAL_CHANGE_GROUP DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP FAILED_DATABASE_AUTHENTICATION_GROUP SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP USER_CHANGE_PASSWORD_GROUP BATCH_STARTED_GROUP BATCH_COMPLETED_GROUP - * - *

These are groups that cover all sql statements and stored procedures executed against the database, and should + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP + * BATCH_COMPLETED_GROUP + * + * These are groups that cover all sql statements and stored procedures executed against the database, and should * not be used in combination with other groups as this will result in duplicate audit logs. - * - *

For more information, see [Database-Level Audit Action + * + * For more information, see [Database-Level Audit Action * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - *

For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified - * for Server auditing policy). The supported actions to audit are: SELECT UPDATE INSERT DELETE EXECUTE RECEIVE + * + * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for + * Server auditing policy). The supported actions to audit are: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE * REFERENCES - * - *

The general form for defining an action to be audited is: {action} ON {object} BY {principal} - * - *

Note that <object> in the above format can refer to an object like a table, view, or stored procedure, - * or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} - * are used, respectively. - * - *

For example: SELECT on dbo.myTable by public SELECT on DATABASE::myDatabase by public SELECT on - * SCHEMA::mySchema by public - * - *

For more information, see [Database-Level Audit + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note that <object> in the above format can refer to an object like a table, view, or stored procedure, or + * an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are + * used, respectively. + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For more information, see [Database-Level Audit * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions). - * + * * @return the auditActionsAndGroups value. */ public List auditActionsAndGroups() { @@ -330,47 +369,72 @@ public List auditActionsAndGroups() { /** * Set the auditActionsAndGroups property: Specifies the Actions-Groups and Actions to audit. - * - *

The recommended set of action groups to use is the following combination - this will audit all the queries and + * + * The recommended set of action groups to use is the following combination - this will audit all the queries and * stored procedures executed against the database, as well as successful and failed logins: - * - *

BATCH_COMPLETED_GROUP, SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, FAILED_DATABASE_AUTHENTICATION_GROUP. - * - *

This above combination is also the set that is configured by default when enabling auditing from the Azure + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing from the Azure * portal. - * - *

The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. + * + * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. * Using unnecessary groups could lead to very large quantities of audit records): - * - *

APPLICATION_ROLE_CHANGE_PASSWORD_GROUP BACKUP_RESTORE_GROUP DATABASE_LOGOUT_GROUP DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP DATABASE_OBJECT_PERMISSION_CHANGE_GROUP DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP DATABASE_PRINCIPAL_CHANGE_GROUP DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP FAILED_DATABASE_AUTHENTICATION_GROUP SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP USER_CHANGE_PASSWORD_GROUP BATCH_STARTED_GROUP BATCH_COMPLETED_GROUP - * - *

These are groups that cover all sql statements and stored procedures executed against the database, and should + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP + * BATCH_COMPLETED_GROUP + * + * These are groups that cover all sql statements and stored procedures executed against the database, and should * not be used in combination with other groups as this will result in duplicate audit logs. - * - *

For more information, see [Database-Level Audit Action + * + * For more information, see [Database-Level Audit Action * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - *

For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified - * for Server auditing policy). The supported actions to audit are: SELECT UPDATE INSERT DELETE EXECUTE RECEIVE + * + * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for + * Server auditing policy). The supported actions to audit are: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE * REFERENCES - * - *

The general form for defining an action to be audited is: {action} ON {object} BY {principal} - * - *

Note that <object> in the above format can refer to an object like a table, view, or stored procedure, - * or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} - * are used, respectively. - * - *

For example: SELECT on dbo.myTable by public SELECT on DATABASE::myDatabase by public SELECT on - * SCHEMA::mySchema by public - * - *

For more information, see [Database-Level Audit + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note that <object> in the above format can refer to an object like a table, view, or stored procedure, or + * an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are + * used, respectively. + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For more information, see [Database-Level Audit * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions). - * + * * @param auditActionsAndGroups the auditActionsAndGroups value to set. * @return the ServerBlobAuditingPolicyProperties object itself. */ @@ -381,7 +445,7 @@ public ServerBlobAuditingPolicyProperties withAuditActionsAndGroups(List /** * Get the storageAccountSubscriptionId property: Specifies the blob storage subscription Id. - * + * * @return the storageAccountSubscriptionId value. */ public UUID storageAccountSubscriptionId() { @@ -390,7 +454,7 @@ public UUID storageAccountSubscriptionId() { /** * Set the storageAccountSubscriptionId property: Specifies the blob storage subscription Id. - * + * * @param storageAccountSubscriptionId the storageAccountSubscriptionId value to set. * @return the ServerBlobAuditingPolicyProperties object itself. */ @@ -402,7 +466,7 @@ public ServerBlobAuditingPolicyProperties withStorageAccountSubscriptionId(UUID /** * Get the isStorageSecondaryKeyInUse property: Specifies whether storageAccountAccessKey value is the storage's * secondary key. - * + * * @return the isStorageSecondaryKeyInUse value. */ public Boolean isStorageSecondaryKeyInUse() { @@ -412,7 +476,7 @@ public Boolean isStorageSecondaryKeyInUse() { /** * Set the isStorageSecondaryKeyInUse property: Specifies whether storageAccountAccessKey value is the storage's * secondary key. - * + * * @param isStorageSecondaryKeyInUse the isStorageSecondaryKeyInUse value to set. * @return the ServerBlobAuditingPolicyProperties object itself. */ @@ -422,19 +486,21 @@ public ServerBlobAuditingPolicyProperties withIsStorageSecondaryKeyInUse(Boolean } /** - * Get the isAzureMonitorTargetEnabled property: Specifies whether audit events are sent to Azure Monitor. In order - * to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as true. - * - *

When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs - * category on the database should be also created. Note that for server level audit you should use the 'master' - * database as {databaseName}. - * - *

Diagnostic Settings URI format: PUT + * Get the isAzureMonitorTargetEnabled property: Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as + * true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs + * category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - *

For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) or - * [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). - * + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * * @return the isAzureMonitorTargetEnabled value. */ public Boolean isAzureMonitorTargetEnabled() { @@ -442,19 +508,21 @@ public Boolean isAzureMonitorTargetEnabled() { } /** - * Set the isAzureMonitorTargetEnabled property: Specifies whether audit events are sent to Azure Monitor. In order - * to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as true. - * - *

When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs - * category on the database should be also created. Note that for server level audit you should use the 'master' - * database as {databaseName}. - * - *

Diagnostic Settings URI format: PUT + * Set the isAzureMonitorTargetEnabled property: Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as + * true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs + * category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - *

For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) or - * [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). - * + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * * @param isAzureMonitorTargetEnabled the isAzureMonitorTargetEnabled value to set. * @return the ServerBlobAuditingPolicyProperties object itself. */ @@ -465,8 +533,9 @@ public ServerBlobAuditingPolicyProperties withIsAzureMonitorTargetEnabled(Boolea /** * Get the queueDelayMs property: Specifies the amount of time in milliseconds that can elapse before audit actions - * are forced to be processed. The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. - * + * are forced to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. + * * @return the queueDelayMs value. */ public Integer queueDelayMs() { @@ -475,8 +544,9 @@ public Integer queueDelayMs() { /** * Set the queueDelayMs property: Specifies the amount of time in milliseconds that can elapse before audit actions - * are forced to be processed. The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. - * + * are forced to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. + * * @param queueDelayMs the queueDelayMs value to set. * @return the ServerBlobAuditingPolicyProperties object itself. */ @@ -486,19 +556,21 @@ public ServerBlobAuditingPolicyProperties withQueueDelayMs(Integer queueDelayMs) } /** - * Get the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, devops logs will - * be sent to Azure Monitor. In order to send the events to Azure Monitor, specify 'State' as 'Enabled', - * 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true - * - *

When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs + * Get the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, devops logs + * will be sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' as + * true and 'IsDevopsAuditEnabled' as true + * + * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs * category on the master database should also be created. - * - *

Diagnostic Settings URI format: PUT + * + * Diagnostic Settings URI format: + * PUT * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - *

For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) or - * [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). - * + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * * @return the isDevopsAuditEnabled value. */ public Boolean isDevopsAuditEnabled() { @@ -506,19 +578,21 @@ public Boolean isDevopsAuditEnabled() { } /** - * Set the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, devops logs will - * be sent to Azure Monitor. In order to send the events to Azure Monitor, specify 'State' as 'Enabled', - * 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true - * - *

When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs + * Set the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, devops logs + * will be sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' as + * true and 'IsDevopsAuditEnabled' as true + * + * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs * category on the master database should also be created. - * - *

Diagnostic Settings URI format: PUT + * + * Diagnostic Settings URI format: + * PUT * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - *

For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) or - * [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). - * + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * * @param isDevopsAuditEnabled the isDevopsAuditEnabled value to set. * @return the ServerBlobAuditingPolicyProperties object itself. */ @@ -529,15 +603,13 @@ public ServerBlobAuditingPolicyProperties withIsDevopsAuditEnabled(Boolean isDev /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (state() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property state in model ServerBlobAuditingPolicyProperties")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property state in model ServerBlobAuditingPolicyProperties")); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerSecurityAlertPolicyInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerSecurityAlertPolicyInner.java index e7866b2f54a8..e35ddf490646 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerSecurityAlertPolicyInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerSecurityAlertPolicyInner.java @@ -11,7 +11,9 @@ import java.time.OffsetDateTime; import java.util.List; -/** Workspace managed Sql server security alert policy. */ +/** + * Workspace managed Sql server security alert policy. + */ @Fluent public final class ServerSecurityAlertPolicyInner extends ProxyResource { /* @@ -20,13 +22,15 @@ public final class ServerSecurityAlertPolicyInner extends ProxyResource { @JsonProperty(value = "properties") private ServerSecurityAlertPolicyProperties innerProperties; - /** Creates an instance of ServerSecurityAlertPolicyInner class. */ + /** + * Creates an instance of ServerSecurityAlertPolicyInner class. + */ public ServerSecurityAlertPolicyInner() { } /** * Get the innerProperties property: Resource properties. - * + * * @return the innerProperties value. */ private ServerSecurityAlertPolicyProperties innerProperties() { @@ -36,7 +40,7 @@ private ServerSecurityAlertPolicyProperties innerProperties() { /** * Get the state property: Specifies the state of the policy, whether it is enabled or disabled or a policy has not * been applied yet on the specific server. - * + * * @return the state value. */ public SecurityAlertPolicyState state() { @@ -46,7 +50,7 @@ public SecurityAlertPolicyState state() { /** * Set the state property: Specifies the state of the policy, whether it is enabled or disabled or a policy has not * been applied yet on the specific server. - * + * * @param state the state value to set. * @return the ServerSecurityAlertPolicyInner object itself. */ @@ -61,7 +65,7 @@ public ServerSecurityAlertPolicyInner withState(SecurityAlertPolicyState state) /** * Get the disabledAlerts property: Specifies an array of alerts that are disabled. Allowed values are: * Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action. - * + * * @return the disabledAlerts value. */ public List disabledAlerts() { @@ -71,7 +75,7 @@ public List disabledAlerts() { /** * Set the disabledAlerts property: Specifies an array of alerts that are disabled. Allowed values are: * Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action. - * + * * @param disabledAlerts the disabledAlerts value to set. * @return the ServerSecurityAlertPolicyInner object itself. */ @@ -85,7 +89,7 @@ public ServerSecurityAlertPolicyInner withDisabledAlerts(List disabledAl /** * Get the emailAddresses property: Specifies an array of e-mail addresses to which the alert is sent. - * + * * @return the emailAddresses value. */ public List emailAddresses() { @@ -94,7 +98,7 @@ public List emailAddresses() { /** * Set the emailAddresses property: Specifies an array of e-mail addresses to which the alert is sent. - * + * * @param emailAddresses the emailAddresses value to set. * @return the ServerSecurityAlertPolicyInner object itself. */ @@ -108,7 +112,7 @@ public ServerSecurityAlertPolicyInner withEmailAddresses(List emailAddre /** * Get the emailAccountAdmins property: Specifies that the alert is sent to the account administrators. - * + * * @return the emailAccountAdmins value. */ public Boolean emailAccountAdmins() { @@ -117,7 +121,7 @@ public Boolean emailAccountAdmins() { /** * Set the emailAccountAdmins property: Specifies that the alert is sent to the account administrators. - * + * * @param emailAccountAdmins the emailAccountAdmins value to set. * @return the ServerSecurityAlertPolicyInner object itself. */ @@ -132,7 +136,7 @@ public ServerSecurityAlertPolicyInner withEmailAccountAdmins(Boolean emailAccoun /** * Get the storageEndpoint property: Specifies the blob storage endpoint (e.g. * https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. - * + * * @return the storageEndpoint value. */ public String storageEndpoint() { @@ -142,7 +146,7 @@ public String storageEndpoint() { /** * Set the storageEndpoint property: Specifies the blob storage endpoint (e.g. * https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. - * + * * @param storageEndpoint the storageEndpoint value to set. * @return the ServerSecurityAlertPolicyInner object itself. */ @@ -157,7 +161,7 @@ public ServerSecurityAlertPolicyInner withStorageEndpoint(String storageEndpoint /** * Get the storageAccountAccessKey property: Specifies the identifier key of the Threat Detection audit storage * account. - * + * * @return the storageAccountAccessKey value. */ public String storageAccountAccessKey() { @@ -167,7 +171,7 @@ public String storageAccountAccessKey() { /** * Set the storageAccountAccessKey property: Specifies the identifier key of the Threat Detection audit storage * account. - * + * * @param storageAccountAccessKey the storageAccountAccessKey value to set. * @return the ServerSecurityAlertPolicyInner object itself. */ @@ -181,7 +185,7 @@ public ServerSecurityAlertPolicyInner withStorageAccountAccessKey(String storage /** * Get the retentionDays property: Specifies the number of days to keep in the Threat Detection audit logs. - * + * * @return the retentionDays value. */ public Integer retentionDays() { @@ -190,7 +194,7 @@ public Integer retentionDays() { /** * Set the retentionDays property: Specifies the number of days to keep in the Threat Detection audit logs. - * + * * @param retentionDays the retentionDays value to set. * @return the ServerSecurityAlertPolicyInner object itself. */ @@ -204,7 +208,7 @@ public ServerSecurityAlertPolicyInner withRetentionDays(Integer retentionDays) { /** * Get the creationTime property: Specifies the UTC creation time of the policy. - * + * * @return the creationTime value. */ public OffsetDateTime creationTime() { @@ -213,7 +217,7 @@ public OffsetDateTime creationTime() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerSecurityAlertPolicyProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerSecurityAlertPolicyProperties.java index b09d73fa6b1d..ac951d3e5339 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerSecurityAlertPolicyProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerSecurityAlertPolicyProperties.java @@ -11,7 +11,9 @@ import java.time.OffsetDateTime; import java.util.List; -/** Properties of a security alert policy. */ +/** + * Properties of a security alert policy. + */ @Fluent public final class ServerSecurityAlertPolicyProperties { /* @@ -65,14 +67,16 @@ public final class ServerSecurityAlertPolicyProperties { @JsonProperty(value = "creationTime", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime creationTime; - /** Creates an instance of ServerSecurityAlertPolicyProperties class. */ + /** + * Creates an instance of ServerSecurityAlertPolicyProperties class. + */ public ServerSecurityAlertPolicyProperties() { } /** * Get the state property: Specifies the state of the policy, whether it is enabled or disabled or a policy has not * been applied yet on the specific server. - * + * * @return the state value. */ public SecurityAlertPolicyState state() { @@ -82,7 +86,7 @@ public SecurityAlertPolicyState state() { /** * Set the state property: Specifies the state of the policy, whether it is enabled or disabled or a policy has not * been applied yet on the specific server. - * + * * @param state the state value to set. * @return the ServerSecurityAlertPolicyProperties object itself. */ @@ -94,7 +98,7 @@ public ServerSecurityAlertPolicyProperties withState(SecurityAlertPolicyState st /** * Get the disabledAlerts property: Specifies an array of alerts that are disabled. Allowed values are: * Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action. - * + * * @return the disabledAlerts value. */ public List disabledAlerts() { @@ -104,7 +108,7 @@ public List disabledAlerts() { /** * Set the disabledAlerts property: Specifies an array of alerts that are disabled. Allowed values are: * Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action. - * + * * @param disabledAlerts the disabledAlerts value to set. * @return the ServerSecurityAlertPolicyProperties object itself. */ @@ -115,7 +119,7 @@ public ServerSecurityAlertPolicyProperties withDisabledAlerts(List disab /** * Get the emailAddresses property: Specifies an array of e-mail addresses to which the alert is sent. - * + * * @return the emailAddresses value. */ public List emailAddresses() { @@ -124,7 +128,7 @@ public List emailAddresses() { /** * Set the emailAddresses property: Specifies an array of e-mail addresses to which the alert is sent. - * + * * @param emailAddresses the emailAddresses value to set. * @return the ServerSecurityAlertPolicyProperties object itself. */ @@ -135,7 +139,7 @@ public ServerSecurityAlertPolicyProperties withEmailAddresses(List email /** * Get the emailAccountAdmins property: Specifies that the alert is sent to the account administrators. - * + * * @return the emailAccountAdmins value. */ public Boolean emailAccountAdmins() { @@ -144,7 +148,7 @@ public Boolean emailAccountAdmins() { /** * Set the emailAccountAdmins property: Specifies that the alert is sent to the account administrators. - * + * * @param emailAccountAdmins the emailAccountAdmins value to set. * @return the ServerSecurityAlertPolicyProperties object itself. */ @@ -156,7 +160,7 @@ public ServerSecurityAlertPolicyProperties withEmailAccountAdmins(Boolean emailA /** * Get the storageEndpoint property: Specifies the blob storage endpoint (e.g. * https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. - * + * * @return the storageEndpoint value. */ public String storageEndpoint() { @@ -166,7 +170,7 @@ public String storageEndpoint() { /** * Set the storageEndpoint property: Specifies the blob storage endpoint (e.g. * https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. - * + * * @param storageEndpoint the storageEndpoint value to set. * @return the ServerSecurityAlertPolicyProperties object itself. */ @@ -178,7 +182,7 @@ public ServerSecurityAlertPolicyProperties withStorageEndpoint(String storageEnd /** * Get the storageAccountAccessKey property: Specifies the identifier key of the Threat Detection audit storage * account. - * + * * @return the storageAccountAccessKey value. */ public String storageAccountAccessKey() { @@ -188,7 +192,7 @@ public String storageAccountAccessKey() { /** * Set the storageAccountAccessKey property: Specifies the identifier key of the Threat Detection audit storage * account. - * + * * @param storageAccountAccessKey the storageAccountAccessKey value to set. * @return the ServerSecurityAlertPolicyProperties object itself. */ @@ -199,7 +203,7 @@ public ServerSecurityAlertPolicyProperties withStorageAccountAccessKey(String st /** * Get the retentionDays property: Specifies the number of days to keep in the Threat Detection audit logs. - * + * * @return the retentionDays value. */ public Integer retentionDays() { @@ -208,7 +212,7 @@ public Integer retentionDays() { /** * Set the retentionDays property: Specifies the number of days to keep in the Threat Detection audit logs. - * + * * @param retentionDays the retentionDays value to set. * @return the ServerSecurityAlertPolicyProperties object itself. */ @@ -219,7 +223,7 @@ public ServerSecurityAlertPolicyProperties withRetentionDays(Integer retentionDa /** * Get the creationTime property: Specifies the UTC creation time of the policy. - * + * * @return the creationTime value. */ public OffsetDateTime creationTime() { @@ -228,15 +232,13 @@ public OffsetDateTime creationTime() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (state() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property state in model ServerSecurityAlertPolicyProperties")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property state in model ServerSecurityAlertPolicyProperties")); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerUsageInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerUsageInner.java index f836a498d7a5..7b8e17be7bab 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerUsageInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerUsageInner.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; -/** Represents server metrics. */ +/** + * Represents server metrics. + */ @Immutable public final class ServerUsageInner { /* @@ -53,13 +55,15 @@ public final class ServerUsageInner { @JsonProperty(value = "nextResetTime", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime nextResetTime; - /** Creates an instance of ServerUsageInner class. */ + /** + * Creates an instance of ServerUsageInner class. + */ public ServerUsageInner() { } /** * Get the name property: Name of the server usage metric. - * + * * @return the name value. */ public String name() { @@ -68,7 +72,7 @@ public String name() { /** * Get the resourceName property: The name of the resource. - * + * * @return the resourceName value. */ public String resourceName() { @@ -77,7 +81,7 @@ public String resourceName() { /** * Get the displayName property: The metric display name. - * + * * @return the displayName value. */ public String displayName() { @@ -86,7 +90,7 @@ public String displayName() { /** * Get the currentValue property: The current value of the metric. - * + * * @return the currentValue value. */ public Double currentValue() { @@ -95,7 +99,7 @@ public Double currentValue() { /** * Get the limit property: The current limit of the metric. - * + * * @return the limit value. */ public Double limit() { @@ -104,7 +108,7 @@ public Double limit() { /** * Get the unit property: The units of the metric. - * + * * @return the unit value. */ public String unit() { @@ -113,7 +117,7 @@ public String unit() { /** * Get the nextResetTime property: The next reset time for the metric (ISO8601 format). - * + * * @return the nextResetTime value. */ public OffsetDateTime nextResetTime() { @@ -122,7 +126,7 @@ public OffsetDateTime nextResetTime() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerVulnerabilityAssessmentInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerVulnerabilityAssessmentInner.java index d4e453a869a7..1e66cff55ee2 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerVulnerabilityAssessmentInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerVulnerabilityAssessmentInner.java @@ -6,10 +6,12 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; -import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated; +import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentRecurringScansProperties; import com.fasterxml.jackson.annotation.JsonProperty; -/** A server vulnerability assessment. */ +/** + * A server vulnerability assessment. + */ @Fluent public final class ServerVulnerabilityAssessmentInner extends ProxyResource { /* @@ -18,13 +20,15 @@ public final class ServerVulnerabilityAssessmentInner extends ProxyResource { @JsonProperty(value = "properties") private ServerVulnerabilityAssessmentProperties innerProperties; - /** Creates an instance of ServerVulnerabilityAssessmentInner class. */ + /** + * Creates an instance of ServerVulnerabilityAssessmentInner class. + */ public ServerVulnerabilityAssessmentInner() { } /** * Get the innerProperties property: Resource properties. - * + * * @return the innerProperties value. */ private ServerVulnerabilityAssessmentProperties innerProperties() { @@ -34,7 +38,7 @@ private ServerVulnerabilityAssessmentProperties innerProperties() { /** * Get the storageContainerPath property: A blob storage container path to hold the scan results (e.g. * https://myStorage.blob.core.windows.net/VaScans/). - * + * * @return the storageContainerPath value. */ public String storageContainerPath() { @@ -44,7 +48,7 @@ public String storageContainerPath() { /** * Set the storageContainerPath property: A blob storage container path to hold the scan results (e.g. * https://myStorage.blob.core.windows.net/VaScans/). - * + * * @param storageContainerPath the storageContainerPath value to set. * @return the ServerVulnerabilityAssessmentInner object itself. */ @@ -60,7 +64,7 @@ public ServerVulnerabilityAssessmentInner withStorageContainerPath(String storag * Get the storageContainerSasKey property: A shared access signature (SAS Key) that has read and write access to * the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, * StorageContainerSasKey is required. - * + * * @return the storageContainerSasKey value. */ public String storageContainerSasKey() { @@ -71,7 +75,7 @@ public String storageContainerSasKey() { * Set the storageContainerSasKey property: A shared access signature (SAS Key) that has read and write access to * the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, * StorageContainerSasKey is required. - * + * * @param storageContainerSasKey the storageContainerSasKey value to set. * @return the ServerVulnerabilityAssessmentInner object itself. */ @@ -86,7 +90,7 @@ public ServerVulnerabilityAssessmentInner withStorageContainerSasKey(String stor /** * Get the storageAccountAccessKey property: Specifies the identifier key of the storage account for vulnerability * assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. - * + * * @return the storageAccountAccessKey value. */ public String storageAccountAccessKey() { @@ -96,7 +100,7 @@ public String storageAccountAccessKey() { /** * Set the storageAccountAccessKey property: Specifies the identifier key of the storage account for vulnerability * assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. - * + * * @param storageAccountAccessKey the storageAccountAccessKey value to set. * @return the ServerVulnerabilityAssessmentInner object itself. */ @@ -110,21 +114,21 @@ public ServerVulnerabilityAssessmentInner withStorageAccountAccessKey(String sto /** * Get the recurringScans property: The recurring scans settings. - * + * * @return the recurringScans value. */ - public VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated recurringScans() { + public VulnerabilityAssessmentRecurringScansProperties recurringScans() { return this.innerProperties() == null ? null : this.innerProperties().recurringScans(); } /** * Set the recurringScans property: The recurring scans settings. - * + * * @param recurringScans the recurringScans value to set. * @return the ServerVulnerabilityAssessmentInner object itself. */ - public ServerVulnerabilityAssessmentInner withRecurringScans( - VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated recurringScans) { + public ServerVulnerabilityAssessmentInner + withRecurringScans(VulnerabilityAssessmentRecurringScansProperties recurringScans) { if (this.innerProperties() == null) { this.innerProperties = new ServerVulnerabilityAssessmentProperties(); } @@ -134,7 +138,7 @@ public ServerVulnerabilityAssessmentInner withRecurringScans( /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerVulnerabilityAssessmentProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerVulnerabilityAssessmentProperties.java index d7a1cd269980..c76197cabc0b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerVulnerabilityAssessmentProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/ServerVulnerabilityAssessmentProperties.java @@ -6,10 +6,12 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated; +import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentRecurringScansProperties; import com.fasterxml.jackson.annotation.JsonProperty; -/** Properties of a server Vulnerability Assessment. */ +/** + * Properties of a server Vulnerability Assessment. + */ @Fluent public final class ServerVulnerabilityAssessmentProperties { /* @@ -37,16 +39,18 @@ public final class ServerVulnerabilityAssessmentProperties { * The recurring scans settings */ @JsonProperty(value = "recurringScans") - private VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated recurringScans; + private VulnerabilityAssessmentRecurringScansProperties recurringScans; - /** Creates an instance of ServerVulnerabilityAssessmentProperties class. */ + /** + * Creates an instance of ServerVulnerabilityAssessmentProperties class. + */ public ServerVulnerabilityAssessmentProperties() { } /** * Get the storageContainerPath property: A blob storage container path to hold the scan results (e.g. * https://myStorage.blob.core.windows.net/VaScans/). - * + * * @return the storageContainerPath value. */ public String storageContainerPath() { @@ -56,7 +60,7 @@ public String storageContainerPath() { /** * Set the storageContainerPath property: A blob storage container path to hold the scan results (e.g. * https://myStorage.blob.core.windows.net/VaScans/). - * + * * @param storageContainerPath the storageContainerPath value to set. * @return the ServerVulnerabilityAssessmentProperties object itself. */ @@ -69,7 +73,7 @@ public ServerVulnerabilityAssessmentProperties withStorageContainerPath(String s * Get the storageContainerSasKey property: A shared access signature (SAS Key) that has read and write access to * the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, * StorageContainerSasKey is required. - * + * * @return the storageContainerSasKey value. */ public String storageContainerSasKey() { @@ -80,7 +84,7 @@ public String storageContainerSasKey() { * Set the storageContainerSasKey property: A shared access signature (SAS Key) that has read and write access to * the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, * StorageContainerSasKey is required. - * + * * @param storageContainerSasKey the storageContainerSasKey value to set. * @return the ServerVulnerabilityAssessmentProperties object itself. */ @@ -92,7 +96,7 @@ public ServerVulnerabilityAssessmentProperties withStorageContainerSasKey(String /** * Get the storageAccountAccessKey property: Specifies the identifier key of the storage account for vulnerability * assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. - * + * * @return the storageAccountAccessKey value. */ public String storageAccountAccessKey() { @@ -102,7 +106,7 @@ public String storageAccountAccessKey() { /** * Set the storageAccountAccessKey property: Specifies the identifier key of the storage account for vulnerability * assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. - * + * * @param storageAccountAccessKey the storageAccountAccessKey value to set. * @return the ServerVulnerabilityAssessmentProperties object itself. */ @@ -113,37 +117,34 @@ public ServerVulnerabilityAssessmentProperties withStorageAccountAccessKey(Strin /** * Get the recurringScans property: The recurring scans settings. - * + * * @return the recurringScans value. */ - public VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated recurringScans() { + public VulnerabilityAssessmentRecurringScansProperties recurringScans() { return this.recurringScans; } /** * Set the recurringScans property: The recurring scans settings. - * + * * @param recurringScans the recurringScans value to set. * @return the ServerVulnerabilityAssessmentProperties object itself. */ - public ServerVulnerabilityAssessmentProperties withRecurringScans( - VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated recurringScans) { + public ServerVulnerabilityAssessmentProperties + withRecurringScans(VulnerabilityAssessmentRecurringScansProperties recurringScans) { this.recurringScans = recurringScans; return this; } /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (storageContainerPath() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property storageContainerPath in model" - + " ServerVulnerabilityAssessmentProperties")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property storageContainerPath in model ServerVulnerabilityAssessmentProperties")); } if (recurringScans() != null) { recurringScans().validate(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SkuDescriptionInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SkuDescriptionInner.java index ba8cc3123417..df6aee727176 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SkuDescriptionInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SkuDescriptionInner.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The Kusto SKU description of given resource type. */ +/** + * The Kusto SKU description of given resource type. + */ @Immutable public final class SkuDescriptionInner { /* @@ -48,13 +50,15 @@ public final class SkuDescriptionInner { @JsonProperty(value = "restrictions", access = JsonProperty.Access.WRITE_ONLY) private List restrictions; - /** Creates an instance of SkuDescriptionInner class. */ + /** + * Creates an instance of SkuDescriptionInner class. + */ public SkuDescriptionInner() { } /** * Get the resourceType property: The resource type. - * + * * @return the resourceType value. */ public String resourceType() { @@ -63,7 +67,7 @@ public String resourceType() { /** * Get the name property: The name of the SKU. - * + * * @return the name value. */ public String name() { @@ -72,7 +76,7 @@ public String name() { /** * Get the size property: The size of the SKU. - * + * * @return the size value. */ public String size() { @@ -81,7 +85,7 @@ public String size() { /** * Get the locations property: The set of locations that the SKU is available. - * + * * @return the locations value. */ public List locations() { @@ -90,7 +94,7 @@ public List locations() { /** * Get the locationInfo property: Locations and zones. - * + * * @return the locationInfo value. */ public List locationInfo() { @@ -99,7 +103,7 @@ public List locationInfo() { /** * Get the restrictions property: The restrictions because of which SKU cannot be used. - * + * * @return the restrictions value. */ public List restrictions() { @@ -108,7 +112,7 @@ public List restrictions() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SparkConfigurationInfo.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SparkConfigurationInfo.java index f0b0634b9991..0674145c0314 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SparkConfigurationInfo.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SparkConfigurationInfo.java @@ -14,8 +14,8 @@ /** * Information about a SparkConfiguration created at the workspace level. - * - *

SparkConfiguration Artifact information. + * + * SparkConfiguration Artifact information. */ @Fluent public final class SparkConfigurationInfo { @@ -63,13 +63,15 @@ public final class SparkConfigurationInfo { @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map configMergeRule; - /** Creates an instance of SparkConfigurationInfo class. */ + /** + * Creates an instance of SparkConfigurationInfo class. + */ public SparkConfigurationInfo() { } /** * Get the description property: Description about the SparkConfiguration. - * + * * @return the description value. */ public String description() { @@ -78,7 +80,7 @@ public String description() { /** * Set the description property: Description about the SparkConfiguration. - * + * * @param description the description value to set. * @return the SparkConfigurationInfo object itself. */ @@ -89,7 +91,7 @@ public SparkConfigurationInfo withDescription(String description) { /** * Get the configs property: SparkConfiguration configs. - * + * * @return the configs value. */ public Map configs() { @@ -98,7 +100,7 @@ public Map configs() { /** * Set the configs property: SparkConfiguration configs. - * + * * @param configs the configs value to set. * @return the SparkConfigurationInfo object itself. */ @@ -109,7 +111,7 @@ public SparkConfigurationInfo withConfigs(Map configs) { /** * Get the annotations property: Annotations for SparkConfiguration. - * + * * @return the annotations value. */ public List annotations() { @@ -118,7 +120,7 @@ public List annotations() { /** * Set the annotations property: Annotations for SparkConfiguration. - * + * * @param annotations the annotations value to set. * @return the SparkConfigurationInfo object itself. */ @@ -129,7 +131,7 @@ public SparkConfigurationInfo withAnnotations(List annotations) { /** * Get the notes property: additional Notes. - * + * * @return the notes value. */ public String notes() { @@ -138,7 +140,7 @@ public String notes() { /** * Set the notes property: additional Notes. - * + * * @param notes the notes value to set. * @return the SparkConfigurationInfo object itself. */ @@ -149,7 +151,7 @@ public SparkConfigurationInfo withNotes(String notes) { /** * Get the createdBy property: The identity that created the resource. - * + * * @return the createdBy value. */ public String createdBy() { @@ -158,7 +160,7 @@ public String createdBy() { /** * Set the createdBy property: The identity that created the resource. - * + * * @param createdBy the createdBy value to set. * @return the SparkConfigurationInfo object itself. */ @@ -169,7 +171,7 @@ public SparkConfigurationInfo withCreatedBy(String createdBy) { /** * Get the created property: The timestamp of resource creation. - * + * * @return the created value. */ public OffsetDateTime created() { @@ -178,7 +180,7 @@ public OffsetDateTime created() { /** * Set the created property: The timestamp of resource creation. - * + * * @param created the created value to set. * @return the SparkConfigurationInfo object itself. */ @@ -189,7 +191,7 @@ public SparkConfigurationInfo withCreated(OffsetDateTime created) { /** * Get the configMergeRule property: SparkConfiguration merge configs. - * + * * @return the configMergeRule value. */ public Map configMergeRule() { @@ -198,7 +200,7 @@ public Map configMergeRule() { /** * Set the configMergeRule property: SparkConfiguration merge configs. - * + * * @param configMergeRule the configMergeRule value to set. * @return the SparkConfigurationInfo object itself. */ @@ -209,14 +211,13 @@ public SparkConfigurationInfo withConfigMergeRule(Map configMerg /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (configs() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property configs in model SparkConfigurationInfo")); + throw LOGGER.logExceptionAsError( + new IllegalArgumentException("Missing required property configs in model SparkConfigurationInfo")); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SparkConfigurationResourceInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SparkConfigurationResourceInner.java index e92e3c1b8a6d..2cbdc624c746 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SparkConfigurationResourceInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SparkConfigurationResourceInner.java @@ -12,26 +12,30 @@ import java.util.List; import java.util.Map; -/** SparkConfiguration response details. */ +/** + * SparkConfiguration response details. + */ @Fluent public final class SparkConfigurationResourceInner extends EntityResource { /* * Information about a SparkConfiguration created at the workspace level. - * + * * SparkConfiguration properties. */ @JsonProperty(value = "properties", required = true) private SparkConfigurationInfo innerProperties = new SparkConfigurationInfo(); - /** Creates an instance of SparkConfigurationResourceInner class. */ + /** + * Creates an instance of SparkConfigurationResourceInner class. + */ public SparkConfigurationResourceInner() { } /** * Get the innerProperties property: Information about a SparkConfiguration created at the workspace level. - * - *

SparkConfiguration properties. - * + * + * SparkConfiguration properties. + * * @return the innerProperties value. */ private SparkConfigurationInfo innerProperties() { @@ -40,7 +44,7 @@ private SparkConfigurationInfo innerProperties() { /** * Get the description property: Description about the SparkConfiguration. - * + * * @return the description value. */ public String description() { @@ -49,7 +53,7 @@ public String description() { /** * Set the description property: Description about the SparkConfiguration. - * + * * @param description the description value to set. * @return the SparkConfigurationResourceInner object itself. */ @@ -63,7 +67,7 @@ public SparkConfigurationResourceInner withDescription(String description) { /** * Get the configs property: SparkConfiguration configs. - * + * * @return the configs value. */ public Map configs() { @@ -72,7 +76,7 @@ public Map configs() { /** * Set the configs property: SparkConfiguration configs. - * + * * @param configs the configs value to set. * @return the SparkConfigurationResourceInner object itself. */ @@ -86,7 +90,7 @@ public SparkConfigurationResourceInner withConfigs(Map configs) /** * Get the annotations property: Annotations for SparkConfiguration. - * + * * @return the annotations value. */ public List annotations() { @@ -95,7 +99,7 @@ public List annotations() { /** * Set the annotations property: Annotations for SparkConfiguration. - * + * * @param annotations the annotations value to set. * @return the SparkConfigurationResourceInner object itself. */ @@ -109,7 +113,7 @@ public SparkConfigurationResourceInner withAnnotations(List annotations) /** * Get the notes property: additional Notes. - * + * * @return the notes value. */ public String notes() { @@ -118,7 +122,7 @@ public String notes() { /** * Set the notes property: additional Notes. - * + * * @param notes the notes value to set. * @return the SparkConfigurationResourceInner object itself. */ @@ -132,7 +136,7 @@ public SparkConfigurationResourceInner withNotes(String notes) { /** * Get the createdBy property: The identity that created the resource. - * + * * @return the createdBy value. */ public String createdBy() { @@ -141,7 +145,7 @@ public String createdBy() { /** * Set the createdBy property: The identity that created the resource. - * + * * @param createdBy the createdBy value to set. * @return the SparkConfigurationResourceInner object itself. */ @@ -155,7 +159,7 @@ public SparkConfigurationResourceInner withCreatedBy(String createdBy) { /** * Get the created property: The timestamp of resource creation. - * + * * @return the created value. */ public OffsetDateTime created() { @@ -164,7 +168,7 @@ public OffsetDateTime created() { /** * Set the created property: The timestamp of resource creation. - * + * * @param created the created value to set. * @return the SparkConfigurationResourceInner object itself. */ @@ -178,7 +182,7 @@ public SparkConfigurationResourceInner withCreated(OffsetDateTime created) { /** * Get the configMergeRule property: SparkConfiguration merge configs. - * + * * @return the configMergeRule value. */ public Map configMergeRule() { @@ -187,7 +191,7 @@ public Map configMergeRule() { /** * Set the configMergeRule property: SparkConfiguration merge configs. - * + * * @param configMergeRule the configMergeRule value to set. * @return the SparkConfigurationResourceInner object itself. */ @@ -201,17 +205,15 @@ public SparkConfigurationResourceInner withConfigMergeRule(Map c /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ @Override public void validate() { super.validate(); if (innerProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerProperties in model SparkConfigurationResourceInner")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property innerProperties in model SparkConfigurationResourceInner")); } else { innerProperties().validate(); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolBlobAuditingPolicyInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolBlobAuditingPolicyInner.java index 7da0dd72782c..85c954936b0f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolBlobAuditingPolicyInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolBlobAuditingPolicyInner.java @@ -11,7 +11,9 @@ import java.util.List; import java.util.UUID; -/** A Sql pool blob auditing policy. */ +/** + * A Sql pool blob auditing policy. + */ @Fluent public final class SqlPoolBlobAuditingPolicyInner extends ProxyResource { /* @@ -26,13 +28,15 @@ public final class SqlPoolBlobAuditingPolicyInner extends ProxyResource { @JsonProperty(value = "properties") private SqlPoolBlobAuditingPolicyProperties innerProperties; - /** Creates an instance of SqlPoolBlobAuditingPolicyInner class. */ + /** + * Creates an instance of SqlPoolBlobAuditingPolicyInner class. + */ public SqlPoolBlobAuditingPolicyInner() { } /** * Get the kind property: Resource kind. - * + * * @return the kind value. */ public String kind() { @@ -41,7 +45,7 @@ public String kind() { /** * Get the innerProperties property: Resource properties. - * + * * @return the innerProperties value. */ private SqlPoolBlobAuditingPolicyProperties innerProperties() { @@ -51,7 +55,7 @@ private SqlPoolBlobAuditingPolicyProperties innerProperties() { /** * Get the state property: Specifies the state of the policy. If state is Enabled, storageEndpoint or * isAzureMonitorTargetEnabled are required. - * + * * @return the state value. */ public BlobAuditingPolicyState state() { @@ -61,7 +65,7 @@ public BlobAuditingPolicyState state() { /** * Set the state property: Specifies the state of the policy. If state is Enabled, storageEndpoint or * isAzureMonitorTargetEnabled are required. - * + * * @param state the state value to set. * @return the SqlPoolBlobAuditingPolicyInner object itself. */ @@ -76,7 +80,7 @@ public SqlPoolBlobAuditingPolicyInner withState(BlobAuditingPolicyState state) { /** * Get the storageEndpoint property: Specifies the blob storage endpoint (e.g. * https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint is required. - * + * * @return the storageEndpoint value. */ public String storageEndpoint() { @@ -86,7 +90,7 @@ public String storageEndpoint() { /** * Set the storageEndpoint property: Specifies the blob storage endpoint (e.g. * https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint is required. - * + * * @param storageEndpoint the storageEndpoint value to set. * @return the SqlPoolBlobAuditingPolicyInner object itself. */ @@ -101,7 +105,7 @@ public SqlPoolBlobAuditingPolicyInner withStorageEndpoint(String storageEndpoint /** * Get the storageAccountAccessKey property: Specifies the identifier key of the auditing storage account. If state * is Enabled and storageEndpoint is specified, storageAccountAccessKey is required. - * + * * @return the storageAccountAccessKey value. */ public String storageAccountAccessKey() { @@ -111,7 +115,7 @@ public String storageAccountAccessKey() { /** * Set the storageAccountAccessKey property: Specifies the identifier key of the auditing storage account. If state * is Enabled and storageEndpoint is specified, storageAccountAccessKey is required. - * + * * @param storageAccountAccessKey the storageAccountAccessKey value to set. * @return the SqlPoolBlobAuditingPolicyInner object itself. */ @@ -125,7 +129,7 @@ public SqlPoolBlobAuditingPolicyInner withStorageAccountAccessKey(String storage /** * Get the retentionDays property: Specifies the number of days to keep in the audit logs in the storage account. - * + * * @return the retentionDays value. */ public Integer retentionDays() { @@ -134,7 +138,7 @@ public Integer retentionDays() { /** * Set the retentionDays property: Specifies the number of days to keep in the audit logs in the storage account. - * + * * @param retentionDays the retentionDays value to set. * @return the SqlPoolBlobAuditingPolicyInner object itself. */ @@ -148,47 +152,72 @@ public SqlPoolBlobAuditingPolicyInner withRetentionDays(Integer retentionDays) { /** * Get the auditActionsAndGroups property: Specifies the Actions-Groups and Actions to audit. - * - *

The recommended set of action groups to use is the following combination - this will audit all the queries and + * + * The recommended set of action groups to use is the following combination - this will audit all the queries and * stored procedures executed against the database, as well as successful and failed logins: - * - *

BATCH_COMPLETED_GROUP, SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, FAILED_DATABASE_AUTHENTICATION_GROUP. - * - *

This above combination is also the set that is configured by default when enabling auditing from the Azure + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing from the Azure * portal. - * - *

The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. + * + * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. * Using unnecessary groups could lead to very large quantities of audit records): - * - *

APPLICATION_ROLE_CHANGE_PASSWORD_GROUP BACKUP_RESTORE_GROUP DATABASE_LOGOUT_GROUP DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP DATABASE_OBJECT_PERMISSION_CHANGE_GROUP DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP DATABASE_PRINCIPAL_CHANGE_GROUP DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP FAILED_DATABASE_AUTHENTICATION_GROUP SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP USER_CHANGE_PASSWORD_GROUP BATCH_STARTED_GROUP BATCH_COMPLETED_GROUP - * - *

These are groups that cover all sql statements and stored procedures executed against the database, and should + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP + * BATCH_COMPLETED_GROUP + * + * These are groups that cover all sql statements and stored procedures executed against the database, and should * not be used in combination with other groups as this will result in duplicate audit logs. - * - *

For more information, see [Database-Level Audit Action + * + * For more information, see [Database-Level Audit Action * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - *

For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified - * for Server auditing policy). The supported actions to audit are: SELECT UPDATE INSERT DELETE EXECUTE RECEIVE + * + * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for + * Server auditing policy). The supported actions to audit are: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE * REFERENCES - * - *

The general form for defining an action to be audited is: {action} ON {object} BY {principal} - * - *

Note that <object> in the above format can refer to an object like a table, view, or stored procedure, - * or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} - * are used, respectively. - * - *

For example: SELECT on dbo.myTable by public SELECT on DATABASE::myDatabase by public SELECT on - * SCHEMA::mySchema by public - * - *

For more information, see [Database-Level Audit + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note that <object> in the above format can refer to an object like a table, view, or stored procedure, or + * an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are + * used, respectively. + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For more information, see [Database-Level Audit * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions). - * + * * @return the auditActionsAndGroups value. */ public List auditActionsAndGroups() { @@ -197,47 +226,72 @@ public List auditActionsAndGroups() { /** * Set the auditActionsAndGroups property: Specifies the Actions-Groups and Actions to audit. - * - *

The recommended set of action groups to use is the following combination - this will audit all the queries and + * + * The recommended set of action groups to use is the following combination - this will audit all the queries and * stored procedures executed against the database, as well as successful and failed logins: - * - *

BATCH_COMPLETED_GROUP, SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, FAILED_DATABASE_AUTHENTICATION_GROUP. - * - *

This above combination is also the set that is configured by default when enabling auditing from the Azure + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing from the Azure * portal. - * - *

The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. + * + * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. * Using unnecessary groups could lead to very large quantities of audit records): - * - *

APPLICATION_ROLE_CHANGE_PASSWORD_GROUP BACKUP_RESTORE_GROUP DATABASE_LOGOUT_GROUP DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP DATABASE_OBJECT_PERMISSION_CHANGE_GROUP DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP DATABASE_PRINCIPAL_CHANGE_GROUP DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP FAILED_DATABASE_AUTHENTICATION_GROUP SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP USER_CHANGE_PASSWORD_GROUP BATCH_STARTED_GROUP BATCH_COMPLETED_GROUP - * - *

These are groups that cover all sql statements and stored procedures executed against the database, and should + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP + * BATCH_COMPLETED_GROUP + * + * These are groups that cover all sql statements and stored procedures executed against the database, and should * not be used in combination with other groups as this will result in duplicate audit logs. - * - *

For more information, see [Database-Level Audit Action + * + * For more information, see [Database-Level Audit Action * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - *

For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified - * for Server auditing policy). The supported actions to audit are: SELECT UPDATE INSERT DELETE EXECUTE RECEIVE + * + * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for + * Server auditing policy). The supported actions to audit are: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE * REFERENCES - * - *

The general form for defining an action to be audited is: {action} ON {object} BY {principal} - * - *

Note that <object> in the above format can refer to an object like a table, view, or stored procedure, - * or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} - * are used, respectively. - * - *

For example: SELECT on dbo.myTable by public SELECT on DATABASE::myDatabase by public SELECT on - * SCHEMA::mySchema by public - * - *

For more information, see [Database-Level Audit + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note that <object> in the above format can refer to an object like a table, view, or stored procedure, or + * an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are + * used, respectively. + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For more information, see [Database-Level Audit * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions). - * + * * @param auditActionsAndGroups the auditActionsAndGroups value to set. * @return the SqlPoolBlobAuditingPolicyInner object itself. */ @@ -251,7 +305,7 @@ public SqlPoolBlobAuditingPolicyInner withAuditActionsAndGroups(List aud /** * Get the storageAccountSubscriptionId property: Specifies the blob storage subscription Id. - * + * * @return the storageAccountSubscriptionId value. */ public UUID storageAccountSubscriptionId() { @@ -260,7 +314,7 @@ public UUID storageAccountSubscriptionId() { /** * Set the storageAccountSubscriptionId property: Specifies the blob storage subscription Id. - * + * * @param storageAccountSubscriptionId the storageAccountSubscriptionId value to set. * @return the SqlPoolBlobAuditingPolicyInner object itself. */ @@ -275,7 +329,7 @@ public SqlPoolBlobAuditingPolicyInner withStorageAccountSubscriptionId(UUID stor /** * Get the isStorageSecondaryKeyInUse property: Specifies whether storageAccountAccessKey value is the storage's * secondary key. - * + * * @return the isStorageSecondaryKeyInUse value. */ public Boolean isStorageSecondaryKeyInUse() { @@ -285,7 +339,7 @@ public Boolean isStorageSecondaryKeyInUse() { /** * Set the isStorageSecondaryKeyInUse property: Specifies whether storageAccountAccessKey value is the storage's * secondary key. - * + * * @param isStorageSecondaryKeyInUse the isStorageSecondaryKeyInUse value to set. * @return the SqlPoolBlobAuditingPolicyInner object itself. */ @@ -298,19 +352,21 @@ public SqlPoolBlobAuditingPolicyInner withIsStorageSecondaryKeyInUse(Boolean isS } /** - * Get the isAzureMonitorTargetEnabled property: Specifies whether audit events are sent to Azure Monitor. In order - * to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as true. - * - *

When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs - * category on the database should be also created. Note that for server level audit you should use the 'master' - * database as {databaseName}. - * - *

Diagnostic Settings URI format: PUT + * Get the isAzureMonitorTargetEnabled property: Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as + * true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs + * category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - *

For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) or - * [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). - * + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * * @return the isAzureMonitorTargetEnabled value. */ public Boolean isAzureMonitorTargetEnabled() { @@ -318,19 +374,21 @@ public Boolean isAzureMonitorTargetEnabled() { } /** - * Set the isAzureMonitorTargetEnabled property: Specifies whether audit events are sent to Azure Monitor. In order - * to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as true. - * - *

When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs - * category on the database should be also created. Note that for server level audit you should use the 'master' - * database as {databaseName}. - * - *

Diagnostic Settings URI format: PUT + * Set the isAzureMonitorTargetEnabled property: Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as + * true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs + * category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - *

For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) or - * [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). - * + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * * @param isAzureMonitorTargetEnabled the isAzureMonitorTargetEnabled value to set. * @return the SqlPoolBlobAuditingPolicyInner object itself. */ @@ -344,7 +402,7 @@ public SqlPoolBlobAuditingPolicyInner withIsAzureMonitorTargetEnabled(Boolean is /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolBlobAuditingPolicyProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolBlobAuditingPolicyProperties.java index 90873dee3878..eb987dbceef9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolBlobAuditingPolicyProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolBlobAuditingPolicyProperties.java @@ -11,7 +11,9 @@ import java.util.List; import java.util.UUID; -/** Properties of a Sql pool blob auditing policy. */ +/** + * Properties of a Sql pool blob auditing policy. + */ @Fluent public final class SqlPoolBlobAuditingPolicyProperties { /* @@ -43,20 +45,20 @@ public final class SqlPoolBlobAuditingPolicyProperties { /* * Specifies the Actions-Groups and Actions to audit. - * + * * The recommended set of action groups to use is the following combination - this will audit all the queries and * stored procedures executed against the database, as well as successful and failed logins: - * + * * BATCH_COMPLETED_GROUP, * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, * FAILED_DATABASE_AUTHENTICATION_GROUP. - * + * * This above combination is also the set that is configured by default when enabling auditing from the Azure * portal. - * + * * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. * Using unnecessary groups could lead to very large quantities of audit records): - * + * * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP * BACKUP_RESTORE_GROUP * DATABASE_LOGOUT_GROUP @@ -77,13 +79,14 @@ public final class SqlPoolBlobAuditingPolicyProperties { * USER_CHANGE_PASSWORD_GROUP * BATCH_STARTED_GROUP * BATCH_COMPLETED_GROUP - * + * * These are groups that cover all sql statements and stored procedures executed against the database, and should * not be used in combination with other groups as this will result in duplicate audit logs. - * + * * For more information, see [Database-Level Audit Action - * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * + * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action- + * groups-and-actions#database-level-audit-action-groups). + * * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for * Server auditing policy). The supported actions to audit are: * SELECT @@ -93,21 +96,22 @@ public final class SqlPoolBlobAuditingPolicyProperties { * EXECUTE * RECEIVE * REFERENCES - * + * * The general form for defining an action to be audited is: * {action} ON {object} BY {principal} - * + * * Note that in the above format can refer to an object like a table, view, or stored procedure, or an * entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are * used, respectively. - * + * * For example: * SELECT on dbo.myTable by public * SELECT on DATABASE::myDatabase by public * SELECT on SCHEMA::mySchema by public - * + * * For more information, see [Database-Level Audit - * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) + * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action- + * groups-and-actions#database-level-audit-actions) */ @JsonProperty(value = "auditActionsAndGroups") private List auditActionsAndGroups; @@ -128,30 +132,34 @@ public final class SqlPoolBlobAuditingPolicyProperties { * Specifies whether audit events are sent to Azure Monitor. * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as * true. - * + * * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs * category on the database should be also created. * Note that for server level audit you should use the 'master' database as {databaseName}. - * + * * Diagnostic Settings URI format: * PUT - * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * + * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft. + * Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}? + * api-version=2017-05-01-preview + * * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) - * + * */ @JsonProperty(value = "isAzureMonitorTargetEnabled") private Boolean isAzureMonitorTargetEnabled; - /** Creates an instance of SqlPoolBlobAuditingPolicyProperties class. */ + /** + * Creates an instance of SqlPoolBlobAuditingPolicyProperties class. + */ public SqlPoolBlobAuditingPolicyProperties() { } /** * Get the state property: Specifies the state of the policy. If state is Enabled, storageEndpoint or * isAzureMonitorTargetEnabled are required. - * + * * @return the state value. */ public BlobAuditingPolicyState state() { @@ -161,7 +169,7 @@ public BlobAuditingPolicyState state() { /** * Set the state property: Specifies the state of the policy. If state is Enabled, storageEndpoint or * isAzureMonitorTargetEnabled are required. - * + * * @param state the state value to set. * @return the SqlPoolBlobAuditingPolicyProperties object itself. */ @@ -173,7 +181,7 @@ public SqlPoolBlobAuditingPolicyProperties withState(BlobAuditingPolicyState sta /** * Get the storageEndpoint property: Specifies the blob storage endpoint (e.g. * https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint is required. - * + * * @return the storageEndpoint value. */ public String storageEndpoint() { @@ -183,7 +191,7 @@ public String storageEndpoint() { /** * Set the storageEndpoint property: Specifies the blob storage endpoint (e.g. * https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint is required. - * + * * @param storageEndpoint the storageEndpoint value to set. * @return the SqlPoolBlobAuditingPolicyProperties object itself. */ @@ -195,7 +203,7 @@ public SqlPoolBlobAuditingPolicyProperties withStorageEndpoint(String storageEnd /** * Get the storageAccountAccessKey property: Specifies the identifier key of the auditing storage account. If state * is Enabled and storageEndpoint is specified, storageAccountAccessKey is required. - * + * * @return the storageAccountAccessKey value. */ public String storageAccountAccessKey() { @@ -205,7 +213,7 @@ public String storageAccountAccessKey() { /** * Set the storageAccountAccessKey property: Specifies the identifier key of the auditing storage account. If state * is Enabled and storageEndpoint is specified, storageAccountAccessKey is required. - * + * * @param storageAccountAccessKey the storageAccountAccessKey value to set. * @return the SqlPoolBlobAuditingPolicyProperties object itself. */ @@ -216,7 +224,7 @@ public SqlPoolBlobAuditingPolicyProperties withStorageAccountAccessKey(String st /** * Get the retentionDays property: Specifies the number of days to keep in the audit logs in the storage account. - * + * * @return the retentionDays value. */ public Integer retentionDays() { @@ -225,7 +233,7 @@ public Integer retentionDays() { /** * Set the retentionDays property: Specifies the number of days to keep in the audit logs in the storage account. - * + * * @param retentionDays the retentionDays value to set. * @return the SqlPoolBlobAuditingPolicyProperties object itself. */ @@ -236,47 +244,72 @@ public SqlPoolBlobAuditingPolicyProperties withRetentionDays(Integer retentionDa /** * Get the auditActionsAndGroups property: Specifies the Actions-Groups and Actions to audit. - * - *

The recommended set of action groups to use is the following combination - this will audit all the queries and + * + * The recommended set of action groups to use is the following combination - this will audit all the queries and * stored procedures executed against the database, as well as successful and failed logins: - * - *

BATCH_COMPLETED_GROUP, SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, FAILED_DATABASE_AUTHENTICATION_GROUP. - * - *

This above combination is also the set that is configured by default when enabling auditing from the Azure + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing from the Azure * portal. - * - *

The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. + * + * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. * Using unnecessary groups could lead to very large quantities of audit records): - * - *

APPLICATION_ROLE_CHANGE_PASSWORD_GROUP BACKUP_RESTORE_GROUP DATABASE_LOGOUT_GROUP DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP DATABASE_OBJECT_PERMISSION_CHANGE_GROUP DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP DATABASE_PRINCIPAL_CHANGE_GROUP DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP FAILED_DATABASE_AUTHENTICATION_GROUP SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP USER_CHANGE_PASSWORD_GROUP BATCH_STARTED_GROUP BATCH_COMPLETED_GROUP - * - *

These are groups that cover all sql statements and stored procedures executed against the database, and should + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP + * BATCH_COMPLETED_GROUP + * + * These are groups that cover all sql statements and stored procedures executed against the database, and should * not be used in combination with other groups as this will result in duplicate audit logs. - * - *

For more information, see [Database-Level Audit Action + * + * For more information, see [Database-Level Audit Action * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - *

For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified - * for Server auditing policy). The supported actions to audit are: SELECT UPDATE INSERT DELETE EXECUTE RECEIVE + * + * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for + * Server auditing policy). The supported actions to audit are: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE * REFERENCES - * - *

The general form for defining an action to be audited is: {action} ON {object} BY {principal} - * - *

Note that <object> in the above format can refer to an object like a table, view, or stored procedure, - * or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} - * are used, respectively. - * - *

For example: SELECT on dbo.myTable by public SELECT on DATABASE::myDatabase by public SELECT on - * SCHEMA::mySchema by public - * - *

For more information, see [Database-Level Audit + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note that <object> in the above format can refer to an object like a table, view, or stored procedure, or + * an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are + * used, respectively. + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For more information, see [Database-Level Audit * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions). - * + * * @return the auditActionsAndGroups value. */ public List auditActionsAndGroups() { @@ -285,47 +318,72 @@ public List auditActionsAndGroups() { /** * Set the auditActionsAndGroups property: Specifies the Actions-Groups and Actions to audit. - * - *

The recommended set of action groups to use is the following combination - this will audit all the queries and + * + * The recommended set of action groups to use is the following combination - this will audit all the queries and * stored procedures executed against the database, as well as successful and failed logins: - * - *

BATCH_COMPLETED_GROUP, SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, FAILED_DATABASE_AUTHENTICATION_GROUP. - * - *

This above combination is also the set that is configured by default when enabling auditing from the Azure + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing from the Azure * portal. - * - *

The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. + * + * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. * Using unnecessary groups could lead to very large quantities of audit records): - * - *

APPLICATION_ROLE_CHANGE_PASSWORD_GROUP BACKUP_RESTORE_GROUP DATABASE_LOGOUT_GROUP DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP DATABASE_OBJECT_PERMISSION_CHANGE_GROUP DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP DATABASE_PRINCIPAL_CHANGE_GROUP DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP FAILED_DATABASE_AUTHENTICATION_GROUP SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP USER_CHANGE_PASSWORD_GROUP BATCH_STARTED_GROUP BATCH_COMPLETED_GROUP - * - *

These are groups that cover all sql statements and stored procedures executed against the database, and should + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP + * BATCH_COMPLETED_GROUP + * + * These are groups that cover all sql statements and stored procedures executed against the database, and should * not be used in combination with other groups as this will result in duplicate audit logs. - * - *

For more information, see [Database-Level Audit Action + * + * For more information, see [Database-Level Audit Action * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - *

For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified - * for Server auditing policy). The supported actions to audit are: SELECT UPDATE INSERT DELETE EXECUTE RECEIVE + * + * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for + * Server auditing policy). The supported actions to audit are: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE * REFERENCES - * - *

The general form for defining an action to be audited is: {action} ON {object} BY {principal} - * - *

Note that <object> in the above format can refer to an object like a table, view, or stored procedure, - * or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} - * are used, respectively. - * - *

For example: SELECT on dbo.myTable by public SELECT on DATABASE::myDatabase by public SELECT on - * SCHEMA::mySchema by public - * - *

For more information, see [Database-Level Audit + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note that <object> in the above format can refer to an object like a table, view, or stored procedure, or + * an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are + * used, respectively. + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For more information, see [Database-Level Audit * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions). - * + * * @param auditActionsAndGroups the auditActionsAndGroups value to set. * @return the SqlPoolBlobAuditingPolicyProperties object itself. */ @@ -336,7 +394,7 @@ public SqlPoolBlobAuditingPolicyProperties withAuditActionsAndGroups(ListWhen using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs - * category on the database should be also created. Note that for server level audit you should use the 'master' - * database as {databaseName}. - * - *

Diagnostic Settings URI format: PUT + * Get the isAzureMonitorTargetEnabled property: Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as + * true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs + * category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - *

For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) or - * [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). - * + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * * @return the isAzureMonitorTargetEnabled value. */ public Boolean isAzureMonitorTargetEnabled() { @@ -397,19 +457,21 @@ public Boolean isAzureMonitorTargetEnabled() { } /** - * Set the isAzureMonitorTargetEnabled property: Specifies whether audit events are sent to Azure Monitor. In order - * to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as true. - * - *

When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs - * category on the database should be also created. Note that for server level audit you should use the 'master' - * database as {databaseName}. - * - *

Diagnostic Settings URI format: PUT + * Set the isAzureMonitorTargetEnabled property: Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as + * true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs + * category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - *

For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) or - * [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). - * + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * * @param isAzureMonitorTargetEnabled the isAzureMonitorTargetEnabled value to set. * @return the SqlPoolBlobAuditingPolicyProperties object itself. */ @@ -420,15 +482,13 @@ public SqlPoolBlobAuditingPolicyProperties withIsAzureMonitorTargetEnabled(Boole /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (state() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property state in model SqlPoolBlobAuditingPolicyProperties")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property state in model SqlPoolBlobAuditingPolicyProperties")); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolColumnInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolColumnInner.java index d577113a1a8f..7e6c1d62537d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolColumnInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolColumnInner.java @@ -9,7 +9,9 @@ import com.azure.resourcemanager.synapse.models.ColumnDataType; import com.fasterxml.jackson.annotation.JsonProperty; -/** A Sql pool column resource. */ +/** + * A Sql pool column resource. + */ @Fluent public final class SqlPoolColumnInner extends ProxyResource { /* @@ -18,13 +20,15 @@ public final class SqlPoolColumnInner extends ProxyResource { @JsonProperty(value = "properties") private SqlPoolColumnProperties innerProperties; - /** Creates an instance of SqlPoolColumnInner class. */ + /** + * Creates an instance of SqlPoolColumnInner class. + */ public SqlPoolColumnInner() { } /** * Get the innerProperties property: Resource properties. - * + * * @return the innerProperties value. */ private SqlPoolColumnProperties innerProperties() { @@ -33,7 +37,7 @@ private SqlPoolColumnProperties innerProperties() { /** * Get the columnType property: The column data type. - * + * * @return the columnType value. */ public ColumnDataType columnType() { @@ -42,7 +46,7 @@ public ColumnDataType columnType() { /** * Set the columnType property: The column data type. - * + * * @param columnType the columnType value to set. * @return the SqlPoolColumnInner object itself. */ @@ -56,7 +60,7 @@ public SqlPoolColumnInner withColumnType(ColumnDataType columnType) { /** * Get the isComputed property: Indicates whether column value is computed or not. - * + * * @return the isComputed value. */ public Boolean isComputed() { @@ -65,7 +69,7 @@ public Boolean isComputed() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolColumnProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolColumnProperties.java index ff22fa079063..c17260dbf627 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolColumnProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolColumnProperties.java @@ -8,7 +8,9 @@ import com.azure.resourcemanager.synapse.models.ColumnDataType; import com.fasterxml.jackson.annotation.JsonProperty; -/** Sql pool column properties. */ +/** + * Sql pool column properties. + */ @Fluent public final class SqlPoolColumnProperties { /* @@ -23,13 +25,15 @@ public final class SqlPoolColumnProperties { @JsonProperty(value = "isComputed", access = JsonProperty.Access.WRITE_ONLY) private Boolean isComputed; - /** Creates an instance of SqlPoolColumnProperties class. */ + /** + * Creates an instance of SqlPoolColumnProperties class. + */ public SqlPoolColumnProperties() { } /** * Get the columnType property: The column data type. - * + * * @return the columnType value. */ public ColumnDataType columnType() { @@ -38,7 +42,7 @@ public ColumnDataType columnType() { /** * Set the columnType property: The column data type. - * + * * @param columnType the columnType value to set. * @return the SqlPoolColumnProperties object itself. */ @@ -49,7 +53,7 @@ public SqlPoolColumnProperties withColumnType(ColumnDataType columnType) { /** * Get the isComputed property: Indicates whether column value is computed or not. - * + * * @return the isComputed value. */ public Boolean isComputed() { @@ -58,7 +62,7 @@ public Boolean isComputed() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolConnectionPolicyInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolConnectionPolicyInner.java index 969f92c1319c..af8e86888461 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolConnectionPolicyInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolConnectionPolicyInner.java @@ -8,7 +8,9 @@ import com.azure.core.management.ProxyResource; import com.fasterxml.jackson.annotation.JsonProperty; -/** A Sql pool connection policy. */ +/** + * A Sql pool connection policy. + */ @Fluent public final class SqlPoolConnectionPolicyInner extends ProxyResource { /* @@ -29,13 +31,15 @@ public final class SqlPoolConnectionPolicyInner extends ProxyResource { @JsonProperty(value = "properties") private SqlPoolConnectionPolicyProperties innerProperties; - /** Creates an instance of SqlPoolConnectionPolicyInner class. */ + /** + * Creates an instance of SqlPoolConnectionPolicyInner class. + */ public SqlPoolConnectionPolicyInner() { } /** * Get the kind property: Resource kind. - * + * * @return the kind value. */ public String kind() { @@ -44,7 +48,7 @@ public String kind() { /** * Get the location property: Resource location. - * + * * @return the location value. */ public String location() { @@ -53,7 +57,7 @@ public String location() { /** * Get the innerProperties property: Resource properties. - * + * * @return the innerProperties value. */ private SqlPoolConnectionPolicyProperties innerProperties() { @@ -62,7 +66,7 @@ private SqlPoolConnectionPolicyProperties innerProperties() { /** * Get the securityEnabledAccess property: The state of security access. - * + * * @return the securityEnabledAccess value. */ public String securityEnabledAccess() { @@ -71,7 +75,7 @@ public String securityEnabledAccess() { /** * Set the securityEnabledAccess property: The state of security access. - * + * * @param securityEnabledAccess the securityEnabledAccess value to set. * @return the SqlPoolConnectionPolicyInner object itself. */ @@ -85,7 +89,7 @@ public SqlPoolConnectionPolicyInner withSecurityEnabledAccess(String securityEna /** * Get the proxyDnsName property: The fully qualified host name of the auditing proxy. - * + * * @return the proxyDnsName value. */ public String proxyDnsName() { @@ -94,7 +98,7 @@ public String proxyDnsName() { /** * Set the proxyDnsName property: The fully qualified host name of the auditing proxy. - * + * * @param proxyDnsName the proxyDnsName value to set. * @return the SqlPoolConnectionPolicyInner object itself. */ @@ -108,7 +112,7 @@ public SqlPoolConnectionPolicyInner withProxyDnsName(String proxyDnsName) { /** * Get the proxyPort property: The port number of the auditing proxy. - * + * * @return the proxyPort value. */ public String proxyPort() { @@ -117,7 +121,7 @@ public String proxyPort() { /** * Set the proxyPort property: The port number of the auditing proxy. - * + * * @param proxyPort the proxyPort value to set. * @return the SqlPoolConnectionPolicyInner object itself. */ @@ -131,7 +135,7 @@ public SqlPoolConnectionPolicyInner withProxyPort(String proxyPort) { /** * Get the visibility property: The visibility of the auditing proxy. - * + * * @return the visibility value. */ public String visibility() { @@ -140,7 +144,7 @@ public String visibility() { /** * Set the visibility property: The visibility of the auditing proxy. - * + * * @param visibility the visibility value to set. * @return the SqlPoolConnectionPolicyInner object itself. */ @@ -154,7 +158,7 @@ public SqlPoolConnectionPolicyInner withVisibility(String visibility) { /** * Get the useServerDefault property: Whether server default is enabled or disabled. - * + * * @return the useServerDefault value. */ public String useServerDefault() { @@ -163,7 +167,7 @@ public String useServerDefault() { /** * Set the useServerDefault property: Whether server default is enabled or disabled. - * + * * @param useServerDefault the useServerDefault value to set. * @return the SqlPoolConnectionPolicyInner object itself. */ @@ -177,7 +181,7 @@ public SqlPoolConnectionPolicyInner withUseServerDefault(String useServerDefault /** * Get the redirectionState property: The state of proxy redirection. - * + * * @return the redirectionState value. */ public String redirectionState() { @@ -186,7 +190,7 @@ public String redirectionState() { /** * Set the redirectionState property: The state of proxy redirection. - * + * * @param redirectionState the redirectionState value to set. * @return the SqlPoolConnectionPolicyInner object itself. */ @@ -200,7 +204,7 @@ public SqlPoolConnectionPolicyInner withRedirectionState(String redirectionState /** * Get the state property: The connection policy state. - * + * * @return the state value. */ public String state() { @@ -209,7 +213,7 @@ public String state() { /** * Set the state property: The connection policy state. - * + * * @param state the state value to set. * @return the SqlPoolConnectionPolicyInner object itself. */ @@ -223,7 +227,7 @@ public SqlPoolConnectionPolicyInner withState(String state) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolConnectionPolicyProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolConnectionPolicyProperties.java index 8b6cb40e5960..eb7bdab17fd0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolConnectionPolicyProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolConnectionPolicyProperties.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Properties of a Sql pool connection policy. */ +/** + * Properties of a Sql pool connection policy. + */ @Fluent public final class SqlPoolConnectionPolicyProperties { /* @@ -52,13 +54,15 @@ public final class SqlPoolConnectionPolicyProperties { @JsonProperty(value = "state") private String state; - /** Creates an instance of SqlPoolConnectionPolicyProperties class. */ + /** + * Creates an instance of SqlPoolConnectionPolicyProperties class. + */ public SqlPoolConnectionPolicyProperties() { } /** * Get the securityEnabledAccess property: The state of security access. - * + * * @return the securityEnabledAccess value. */ public String securityEnabledAccess() { @@ -67,7 +71,7 @@ public String securityEnabledAccess() { /** * Set the securityEnabledAccess property: The state of security access. - * + * * @param securityEnabledAccess the securityEnabledAccess value to set. * @return the SqlPoolConnectionPolicyProperties object itself. */ @@ -78,7 +82,7 @@ public SqlPoolConnectionPolicyProperties withSecurityEnabledAccess(String securi /** * Get the proxyDnsName property: The fully qualified host name of the auditing proxy. - * + * * @return the proxyDnsName value. */ public String proxyDnsName() { @@ -87,7 +91,7 @@ public String proxyDnsName() { /** * Set the proxyDnsName property: The fully qualified host name of the auditing proxy. - * + * * @param proxyDnsName the proxyDnsName value to set. * @return the SqlPoolConnectionPolicyProperties object itself. */ @@ -98,7 +102,7 @@ public SqlPoolConnectionPolicyProperties withProxyDnsName(String proxyDnsName) { /** * Get the proxyPort property: The port number of the auditing proxy. - * + * * @return the proxyPort value. */ public String proxyPort() { @@ -107,7 +111,7 @@ public String proxyPort() { /** * Set the proxyPort property: The port number of the auditing proxy. - * + * * @param proxyPort the proxyPort value to set. * @return the SqlPoolConnectionPolicyProperties object itself. */ @@ -118,7 +122,7 @@ public SqlPoolConnectionPolicyProperties withProxyPort(String proxyPort) { /** * Get the visibility property: The visibility of the auditing proxy. - * + * * @return the visibility value. */ public String visibility() { @@ -127,7 +131,7 @@ public String visibility() { /** * Set the visibility property: The visibility of the auditing proxy. - * + * * @param visibility the visibility value to set. * @return the SqlPoolConnectionPolicyProperties object itself. */ @@ -138,7 +142,7 @@ public SqlPoolConnectionPolicyProperties withVisibility(String visibility) { /** * Get the useServerDefault property: Whether server default is enabled or disabled. - * + * * @return the useServerDefault value. */ public String useServerDefault() { @@ -147,7 +151,7 @@ public String useServerDefault() { /** * Set the useServerDefault property: Whether server default is enabled or disabled. - * + * * @param useServerDefault the useServerDefault value to set. * @return the SqlPoolConnectionPolicyProperties object itself. */ @@ -158,7 +162,7 @@ public SqlPoolConnectionPolicyProperties withUseServerDefault(String useServerDe /** * Get the redirectionState property: The state of proxy redirection. - * + * * @return the redirectionState value. */ public String redirectionState() { @@ -167,7 +171,7 @@ public String redirectionState() { /** * Set the redirectionState property: The state of proxy redirection. - * + * * @param redirectionState the redirectionState value to set. * @return the SqlPoolConnectionPolicyProperties object itself. */ @@ -178,7 +182,7 @@ public SqlPoolConnectionPolicyProperties withRedirectionState(String redirection /** * Get the state property: The connection policy state. - * + * * @return the state value. */ public String state() { @@ -187,7 +191,7 @@ public String state() { /** * Set the state property: The connection policy state. - * + * * @param state the state value to set. * @return the SqlPoolConnectionPolicyProperties object itself. */ @@ -198,7 +202,7 @@ public SqlPoolConnectionPolicyProperties withState(String state) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolInner.java index 4fe4c164f34e..11319a9231b4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolInner.java @@ -15,14 +15,14 @@ /** * SQL pool - * - *

A SQL Analytics pool. + * + * A SQL Analytics pool. */ @Fluent public final class SqlPoolInner extends Resource { /* * Sku - * + * * SQL pool SKU */ @JsonProperty(value = "sku") @@ -34,15 +34,17 @@ public final class SqlPoolInner extends Resource { @JsonProperty(value = "properties") private SqlPoolResourceProperties innerProperties; - /** Creates an instance of SqlPoolInner class. */ + /** + * Creates an instance of SqlPoolInner class. + */ public SqlPoolInner() { } /** * Get the sku property: Sku - * - *

SQL pool SKU. - * + * + * SQL pool SKU. + * * @return the sku value. */ public Sku sku() { @@ -51,9 +53,9 @@ public Sku sku() { /** * Set the sku property: Sku - * - *

SQL pool SKU. - * + * + * SQL pool SKU. + * * @param sku the sku value to set. * @return the SqlPoolInner object itself. */ @@ -64,21 +66,25 @@ public SqlPoolInner withSku(Sku sku) { /** * Get the innerProperties property: SQL pool properties. - * + * * @return the innerProperties value. */ private SqlPoolResourceProperties innerProperties() { return this.innerProperties; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public SqlPoolInner withLocation(String location) { super.withLocation(location); return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public SqlPoolInner withTags(Map tags) { super.withTags(tags); @@ -87,7 +93,7 @@ public SqlPoolInner withTags(Map tags) { /** * Get the maxSizeBytes property: Maximum size in bytes. - * + * * @return the maxSizeBytes value. */ public Long maxSizeBytes() { @@ -96,7 +102,7 @@ public Long maxSizeBytes() { /** * Set the maxSizeBytes property: Maximum size in bytes. - * + * * @param maxSizeBytes the maxSizeBytes value to set. * @return the SqlPoolInner object itself. */ @@ -110,7 +116,7 @@ public SqlPoolInner withMaxSizeBytes(Long maxSizeBytes) { /** * Get the collation property: Collation mode. - * + * * @return the collation value. */ public String collation() { @@ -119,7 +125,7 @@ public String collation() { /** * Set the collation property: Collation mode. - * + * * @param collation the collation value to set. * @return the SqlPoolInner object itself. */ @@ -133,7 +139,7 @@ public SqlPoolInner withCollation(String collation) { /** * Get the sourceDatabaseId property: Source database to create from. - * + * * @return the sourceDatabaseId value. */ public String sourceDatabaseId() { @@ -142,7 +148,7 @@ public String sourceDatabaseId() { /** * Set the sourceDatabaseId property: Source database to create from. - * + * * @param sourceDatabaseId the sourceDatabaseId value to set. * @return the SqlPoolInner object itself. */ @@ -156,7 +162,7 @@ public SqlPoolInner withSourceDatabaseId(String sourceDatabaseId) { /** * Get the recoverableDatabaseId property: Backup database to restore from. - * + * * @return the recoverableDatabaseId value. */ public String recoverableDatabaseId() { @@ -165,7 +171,7 @@ public String recoverableDatabaseId() { /** * Set the recoverableDatabaseId property: Backup database to restore from. - * + * * @param recoverableDatabaseId the recoverableDatabaseId value to set. * @return the SqlPoolInner object itself. */ @@ -179,7 +185,7 @@ public SqlPoolInner withRecoverableDatabaseId(String recoverableDatabaseId) { /** * Get the provisioningState property: Resource state. - * + * * @return the provisioningState value. */ public String provisioningState() { @@ -188,7 +194,7 @@ public String provisioningState() { /** * Set the provisioningState property: Resource state. - * + * * @param provisioningState the provisioningState value to set. * @return the SqlPoolInner object itself. */ @@ -202,7 +208,7 @@ public SqlPoolInner withProvisioningState(String provisioningState) { /** * Get the status property: Resource status. - * + * * @return the status value. */ public String status() { @@ -211,7 +217,7 @@ public String status() { /** * Get the restorePointInTime property: Snapshot time to restore. - * + * * @return the restorePointInTime value. */ public OffsetDateTime restorePointInTime() { @@ -220,7 +226,7 @@ public OffsetDateTime restorePointInTime() { /** * Set the restorePointInTime property: Snapshot time to restore. - * + * * @param restorePointInTime the restorePointInTime value to set. * @return the SqlPoolInner object itself. */ @@ -234,19 +240,19 @@ public SqlPoolInner withRestorePointInTime(OffsetDateTime restorePointInTime) { /** * Get the createMode property: Specifies the mode of sql pool creation. - * - *

Default: regular sql pool creation. - * - *

PointInTimeRestore: Creates a sql pool by restoring a point in time backup of an existing sql pool. + * + * Default: regular sql pool creation. + * + * PointInTimeRestore: Creates a sql pool by restoring a point in time backup of an existing sql pool. * sourceDatabaseId must be specified as the resource ID of the existing sql pool, and restorePointInTime must be * specified. - * - *

Recovery: Creates a sql pool by a geo-replicated backup. sourceDatabaseId must be specified as the + * + * Recovery: Creates a sql pool by a geo-replicated backup. sourceDatabaseId must be specified as the * recoverableDatabaseId to restore. - * - *

Restore: Creates a sql pool by restoring a backup of a deleted sql pool. SourceDatabaseId should be the sql + * + * Restore: Creates a sql pool by restoring a backup of a deleted sql pool. SourceDatabaseId should be the sql * pool's original resource ID. SourceDatabaseId and sourceDatabaseDeletionDate must be specified. - * + * * @return the createMode value. */ public CreateMode createMode() { @@ -255,19 +261,19 @@ public CreateMode createMode() { /** * Set the createMode property: Specifies the mode of sql pool creation. - * - *

Default: regular sql pool creation. - * - *

PointInTimeRestore: Creates a sql pool by restoring a point in time backup of an existing sql pool. + * + * Default: regular sql pool creation. + * + * PointInTimeRestore: Creates a sql pool by restoring a point in time backup of an existing sql pool. * sourceDatabaseId must be specified as the resource ID of the existing sql pool, and restorePointInTime must be * specified. - * - *

Recovery: Creates a sql pool by a geo-replicated backup. sourceDatabaseId must be specified as the + * + * Recovery: Creates a sql pool by a geo-replicated backup. sourceDatabaseId must be specified as the * recoverableDatabaseId to restore. - * - *

Restore: Creates a sql pool by restoring a backup of a deleted sql pool. SourceDatabaseId should be the sql + * + * Restore: Creates a sql pool by restoring a backup of a deleted sql pool. SourceDatabaseId should be the sql * pool's original resource ID. SourceDatabaseId and sourceDatabaseDeletionDate must be specified. - * + * * @param createMode the createMode value to set. * @return the SqlPoolInner object itself. */ @@ -281,7 +287,7 @@ public SqlPoolInner withCreateMode(CreateMode createMode) { /** * Get the creationDate property: Date the SQL pool was created. - * + * * @return the creationDate value. */ public OffsetDateTime creationDate() { @@ -290,7 +296,7 @@ public OffsetDateTime creationDate() { /** * Get the storageAccountType property: The storage account type used to store backups for this sql pool. - * + * * @return the storageAccountType value. */ public StorageAccountType storageAccountType() { @@ -299,7 +305,7 @@ public StorageAccountType storageAccountType() { /** * Set the storageAccountType property: The storage account type used to store backups for this sql pool. - * + * * @param storageAccountType the storageAccountType value to set. * @return the SqlPoolInner object itself. */ @@ -313,7 +319,7 @@ public SqlPoolInner withStorageAccountType(StorageAccountType storageAccountType /** * Get the sourceDatabaseDeletionDate property: Specifies the time that the sql pool was deleted. - * + * * @return the sourceDatabaseDeletionDate value. */ public OffsetDateTime sourceDatabaseDeletionDate() { @@ -322,7 +328,7 @@ public OffsetDateTime sourceDatabaseDeletionDate() { /** * Set the sourceDatabaseDeletionDate property: Specifies the time that the sql pool was deleted. - * + * * @param sourceDatabaseDeletionDate the sourceDatabaseDeletionDate value to set. * @return the SqlPoolInner object itself. */ @@ -336,7 +342,7 @@ public SqlPoolInner withSourceDatabaseDeletionDate(OffsetDateTime sourceDatabase /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolOperationInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolOperationInner.java index bcb19b761ba7..ec308b6f0cae 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolOperationInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolOperationInner.java @@ -10,7 +10,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; -/** A Sql pool operation. */ +/** + * A Sql pool operation. + */ @Immutable public final class SqlPoolOperationInner extends ProxyResource { /* @@ -19,13 +21,15 @@ public final class SqlPoolOperationInner extends ProxyResource { @JsonProperty(value = "properties") private SqlPoolOperationProperties innerProperties; - /** Creates an instance of SqlPoolOperationInner class. */ + /** + * Creates an instance of SqlPoolOperationInner class. + */ public SqlPoolOperationInner() { } /** * Get the innerProperties property: Resource properties. - * + * * @return the innerProperties value. */ private SqlPoolOperationProperties innerProperties() { @@ -34,7 +38,7 @@ private SqlPoolOperationProperties innerProperties() { /** * Get the databaseName property: The name of the Sql pool the operation is being performed on. - * + * * @return the databaseName value. */ public String databaseName() { @@ -43,7 +47,7 @@ public String databaseName() { /** * Get the operation property: The name of operation. - * + * * @return the operation value. */ public String operation() { @@ -52,7 +56,7 @@ public String operation() { /** * Get the operationFriendlyName property: The friendly name of operation. - * + * * @return the operationFriendlyName value. */ public String operationFriendlyName() { @@ -61,7 +65,7 @@ public String operationFriendlyName() { /** * Get the percentComplete property: The percentage of the operation completed. - * + * * @return the percentComplete value. */ public Integer percentComplete() { @@ -70,7 +74,7 @@ public Integer percentComplete() { /** * Get the serverName property: The name of the server. - * + * * @return the serverName value. */ public String serverName() { @@ -79,7 +83,7 @@ public String serverName() { /** * Get the startTime property: The operation start time. - * + * * @return the startTime value. */ public OffsetDateTime startTime() { @@ -88,7 +92,7 @@ public OffsetDateTime startTime() { /** * Get the state property: The operation state. - * + * * @return the state value. */ public ManagementOperationState state() { @@ -97,7 +101,7 @@ public ManagementOperationState state() { /** * Get the errorCode property: The operation error code. - * + * * @return the errorCode value. */ public Integer errorCode() { @@ -106,7 +110,7 @@ public Integer errorCode() { /** * Get the errorDescription property: The operation error description. - * + * * @return the errorDescription value. */ public String errorDescription() { @@ -115,7 +119,7 @@ public String errorDescription() { /** * Get the errorSeverity property: The operation error severity. - * + * * @return the errorSeverity value. */ public Integer errorSeverity() { @@ -124,7 +128,7 @@ public Integer errorSeverity() { /** * Get the isUserError property: Whether or not the error is a user error. - * + * * @return the isUserError value. */ public Boolean isUserError() { @@ -133,7 +137,7 @@ public Boolean isUserError() { /** * Get the estimatedCompletionTime property: The estimated completion time of the operation. - * + * * @return the estimatedCompletionTime value. */ public OffsetDateTime estimatedCompletionTime() { @@ -142,7 +146,7 @@ public OffsetDateTime estimatedCompletionTime() { /** * Get the description property: The operation description. - * + * * @return the description value. */ public String description() { @@ -151,7 +155,7 @@ public String description() { /** * Get the isCancellable property: Whether the operation can be cancelled. - * + * * @return the isCancellable value. */ public Boolean isCancellable() { @@ -160,7 +164,7 @@ public Boolean isCancellable() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolOperationProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolOperationProperties.java index aa49082b22a0..d596a3be4393 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolOperationProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolOperationProperties.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; -/** The properties of a Sql pool operation. */ +/** + * The properties of a Sql pool operation. + */ @Immutable public final class SqlPoolOperationProperties { /* @@ -96,13 +98,15 @@ public final class SqlPoolOperationProperties { @JsonProperty(value = "isCancellable", access = JsonProperty.Access.WRITE_ONLY) private Boolean isCancellable; - /** Creates an instance of SqlPoolOperationProperties class. */ + /** + * Creates an instance of SqlPoolOperationProperties class. + */ public SqlPoolOperationProperties() { } /** * Get the databaseName property: The name of the Sql pool the operation is being performed on. - * + * * @return the databaseName value. */ public String databaseName() { @@ -111,7 +115,7 @@ public String databaseName() { /** * Get the operation property: The name of operation. - * + * * @return the operation value. */ public String operation() { @@ -120,7 +124,7 @@ public String operation() { /** * Get the operationFriendlyName property: The friendly name of operation. - * + * * @return the operationFriendlyName value. */ public String operationFriendlyName() { @@ -129,7 +133,7 @@ public String operationFriendlyName() { /** * Get the percentComplete property: The percentage of the operation completed. - * + * * @return the percentComplete value. */ public Integer percentComplete() { @@ -138,7 +142,7 @@ public Integer percentComplete() { /** * Get the serverName property: The name of the server. - * + * * @return the serverName value. */ public String serverName() { @@ -147,7 +151,7 @@ public String serverName() { /** * Get the startTime property: The operation start time. - * + * * @return the startTime value. */ public OffsetDateTime startTime() { @@ -156,7 +160,7 @@ public OffsetDateTime startTime() { /** * Get the state property: The operation state. - * + * * @return the state value. */ public ManagementOperationState state() { @@ -165,7 +169,7 @@ public ManagementOperationState state() { /** * Get the errorCode property: The operation error code. - * + * * @return the errorCode value. */ public Integer errorCode() { @@ -174,7 +178,7 @@ public Integer errorCode() { /** * Get the errorDescription property: The operation error description. - * + * * @return the errorDescription value. */ public String errorDescription() { @@ -183,7 +187,7 @@ public String errorDescription() { /** * Get the errorSeverity property: The operation error severity. - * + * * @return the errorSeverity value. */ public Integer errorSeverity() { @@ -192,7 +196,7 @@ public Integer errorSeverity() { /** * Get the isUserError property: Whether or not the error is a user error. - * + * * @return the isUserError value. */ public Boolean isUserError() { @@ -201,7 +205,7 @@ public Boolean isUserError() { /** * Get the estimatedCompletionTime property: The estimated completion time of the operation. - * + * * @return the estimatedCompletionTime value. */ public OffsetDateTime estimatedCompletionTime() { @@ -210,7 +214,7 @@ public OffsetDateTime estimatedCompletionTime() { /** * Get the description property: The operation description. - * + * * @return the description value. */ public String description() { @@ -219,7 +223,7 @@ public String description() { /** * Get the isCancellable property: Whether the operation can be cancelled. - * + * * @return the isCancellable value. */ public Boolean isCancellable() { @@ -228,7 +232,7 @@ public Boolean isCancellable() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolResourceProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolResourceProperties.java index 883a6ffa0fe0..7e2d432db31c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolResourceProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolResourceProperties.java @@ -12,8 +12,8 @@ /** * SQL pool properties - * - *

Properties of a SQL Analytics pool. + * + * Properties of a SQL Analytics pool. */ @Fluent public final class SqlPoolResourceProperties { @@ -61,17 +61,17 @@ public final class SqlPoolResourceProperties { /* * Specifies the mode of sql pool creation. - * + * * Default: regular sql pool creation. - * + * * PointInTimeRestore: Creates a sql pool by restoring a point in time backup of an existing sql pool. * sourceDatabaseId must be specified as the resource ID of the existing sql pool, and restorePointInTime must be * specified. - * - * Recovery: Creates a sql pool by a geo-replicated backup. sourceDatabaseId must be specified as the + * + * Recovery: Creates a sql pool by a geo-replicated backup. sourceDatabaseId must be specified as the * recoverableDatabaseId to restore. - * - * Restore: Creates a sql pool by restoring a backup of a deleted sql pool. SourceDatabaseId should be the sql + * + * Restore: Creates a sql pool by restoring a backup of a deleted sql pool. SourceDatabaseId should be the sql * pool's original resource ID. SourceDatabaseId and sourceDatabaseDeletionDate must be specified. */ @JsonProperty(value = "createMode") @@ -95,13 +95,15 @@ public final class SqlPoolResourceProperties { @JsonProperty(value = "sourceDatabaseDeletionDate") private OffsetDateTime sourceDatabaseDeletionDate; - /** Creates an instance of SqlPoolResourceProperties class. */ + /** + * Creates an instance of SqlPoolResourceProperties class. + */ public SqlPoolResourceProperties() { } /** * Get the maxSizeBytes property: Maximum size in bytes. - * + * * @return the maxSizeBytes value. */ public Long maxSizeBytes() { @@ -110,7 +112,7 @@ public Long maxSizeBytes() { /** * Set the maxSizeBytes property: Maximum size in bytes. - * + * * @param maxSizeBytes the maxSizeBytes value to set. * @return the SqlPoolResourceProperties object itself. */ @@ -121,7 +123,7 @@ public SqlPoolResourceProperties withMaxSizeBytes(Long maxSizeBytes) { /** * Get the collation property: Collation mode. - * + * * @return the collation value. */ public String collation() { @@ -130,7 +132,7 @@ public String collation() { /** * Set the collation property: Collation mode. - * + * * @param collation the collation value to set. * @return the SqlPoolResourceProperties object itself. */ @@ -141,7 +143,7 @@ public SqlPoolResourceProperties withCollation(String collation) { /** * Get the sourceDatabaseId property: Source database to create from. - * + * * @return the sourceDatabaseId value. */ public String sourceDatabaseId() { @@ -150,7 +152,7 @@ public String sourceDatabaseId() { /** * Set the sourceDatabaseId property: Source database to create from. - * + * * @param sourceDatabaseId the sourceDatabaseId value to set. * @return the SqlPoolResourceProperties object itself. */ @@ -161,7 +163,7 @@ public SqlPoolResourceProperties withSourceDatabaseId(String sourceDatabaseId) { /** * Get the recoverableDatabaseId property: Backup database to restore from. - * + * * @return the recoverableDatabaseId value. */ public String recoverableDatabaseId() { @@ -170,7 +172,7 @@ public String recoverableDatabaseId() { /** * Set the recoverableDatabaseId property: Backup database to restore from. - * + * * @param recoverableDatabaseId the recoverableDatabaseId value to set. * @return the SqlPoolResourceProperties object itself. */ @@ -181,7 +183,7 @@ public SqlPoolResourceProperties withRecoverableDatabaseId(String recoverableDat /** * Get the provisioningState property: Resource state. - * + * * @return the provisioningState value. */ public String provisioningState() { @@ -190,7 +192,7 @@ public String provisioningState() { /** * Set the provisioningState property: Resource state. - * + * * @param provisioningState the provisioningState value to set. * @return the SqlPoolResourceProperties object itself. */ @@ -201,7 +203,7 @@ public SqlPoolResourceProperties withProvisioningState(String provisioningState) /** * Get the status property: Resource status. - * + * * @return the status value. */ public String status() { @@ -210,7 +212,7 @@ public String status() { /** * Get the restorePointInTime property: Snapshot time to restore. - * + * * @return the restorePointInTime value. */ public OffsetDateTime restorePointInTime() { @@ -219,7 +221,7 @@ public OffsetDateTime restorePointInTime() { /** * Set the restorePointInTime property: Snapshot time to restore. - * + * * @param restorePointInTime the restorePointInTime value to set. * @return the SqlPoolResourceProperties object itself. */ @@ -230,19 +232,19 @@ public SqlPoolResourceProperties withRestorePointInTime(OffsetDateTime restorePo /** * Get the createMode property: Specifies the mode of sql pool creation. - * - *

Default: regular sql pool creation. - * - *

PointInTimeRestore: Creates a sql pool by restoring a point in time backup of an existing sql pool. + * + * Default: regular sql pool creation. + * + * PointInTimeRestore: Creates a sql pool by restoring a point in time backup of an existing sql pool. * sourceDatabaseId must be specified as the resource ID of the existing sql pool, and restorePointInTime must be * specified. - * - *

Recovery: Creates a sql pool by a geo-replicated backup. sourceDatabaseId must be specified as the + * + * Recovery: Creates a sql pool by a geo-replicated backup. sourceDatabaseId must be specified as the * recoverableDatabaseId to restore. - * - *

Restore: Creates a sql pool by restoring a backup of a deleted sql pool. SourceDatabaseId should be the sql + * + * Restore: Creates a sql pool by restoring a backup of a deleted sql pool. SourceDatabaseId should be the sql * pool's original resource ID. SourceDatabaseId and sourceDatabaseDeletionDate must be specified. - * + * * @return the createMode value. */ public CreateMode createMode() { @@ -251,19 +253,19 @@ public CreateMode createMode() { /** * Set the createMode property: Specifies the mode of sql pool creation. - * - *

Default: regular sql pool creation. - * - *

PointInTimeRestore: Creates a sql pool by restoring a point in time backup of an existing sql pool. + * + * Default: regular sql pool creation. + * + * PointInTimeRestore: Creates a sql pool by restoring a point in time backup of an existing sql pool. * sourceDatabaseId must be specified as the resource ID of the existing sql pool, and restorePointInTime must be * specified. - * - *

Recovery: Creates a sql pool by a geo-replicated backup. sourceDatabaseId must be specified as the + * + * Recovery: Creates a sql pool by a geo-replicated backup. sourceDatabaseId must be specified as the * recoverableDatabaseId to restore. - * - *

Restore: Creates a sql pool by restoring a backup of a deleted sql pool. SourceDatabaseId should be the sql + * + * Restore: Creates a sql pool by restoring a backup of a deleted sql pool. SourceDatabaseId should be the sql * pool's original resource ID. SourceDatabaseId and sourceDatabaseDeletionDate must be specified. - * + * * @param createMode the createMode value to set. * @return the SqlPoolResourceProperties object itself. */ @@ -274,7 +276,7 @@ public SqlPoolResourceProperties withCreateMode(CreateMode createMode) { /** * Get the creationDate property: Date the SQL pool was created. - * + * * @return the creationDate value. */ public OffsetDateTime creationDate() { @@ -283,7 +285,7 @@ public OffsetDateTime creationDate() { /** * Get the storageAccountType property: The storage account type used to store backups for this sql pool. - * + * * @return the storageAccountType value. */ public StorageAccountType storageAccountType() { @@ -292,7 +294,7 @@ public StorageAccountType storageAccountType() { /** * Set the storageAccountType property: The storage account type used to store backups for this sql pool. - * + * * @param storageAccountType the storageAccountType value to set. * @return the SqlPoolResourceProperties object itself. */ @@ -303,7 +305,7 @@ public SqlPoolResourceProperties withStorageAccountType(StorageAccountType stora /** * Get the sourceDatabaseDeletionDate property: Specifies the time that the sql pool was deleted. - * + * * @return the sourceDatabaseDeletionDate value. */ public OffsetDateTime sourceDatabaseDeletionDate() { @@ -312,7 +314,7 @@ public OffsetDateTime sourceDatabaseDeletionDate() { /** * Set the sourceDatabaseDeletionDate property: Specifies the time that the sql pool was deleted. - * + * * @param sourceDatabaseDeletionDate the sourceDatabaseDeletionDate value to set. * @return the SqlPoolResourceProperties object itself. */ @@ -323,7 +325,7 @@ public SqlPoolResourceProperties withSourceDatabaseDeletionDate(OffsetDateTime s /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolSchemaInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolSchemaInner.java index 2a3e5df6c5b7..be71478db730 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolSchemaInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolSchemaInner.java @@ -7,16 +7,20 @@ import com.azure.core.annotation.Immutable; import com.azure.core.management.ProxyResource; -/** A Sql pool schema resource. */ +/** + * A Sql pool schema resource. + */ @Immutable public final class SqlPoolSchemaInner extends ProxyResource { - /** Creates an instance of SqlPoolSchemaInner class. */ + /** + * Creates an instance of SqlPoolSchemaInner class. + */ public SqlPoolSchemaInner() { } /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolSecurityAlertPolicyInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolSecurityAlertPolicyInner.java index e7809a201887..c74150d410d1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolSecurityAlertPolicyInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolSecurityAlertPolicyInner.java @@ -11,7 +11,9 @@ import java.time.OffsetDateTime; import java.util.List; -/** A Sql pool security alert policy. */ +/** + * A Sql pool security alert policy. + */ @Fluent public final class SqlPoolSecurityAlertPolicyInner extends ProxyResource { /* @@ -20,13 +22,15 @@ public final class SqlPoolSecurityAlertPolicyInner extends ProxyResource { @JsonProperty(value = "properties") private SecurityAlertPolicyProperties innerProperties; - /** Creates an instance of SqlPoolSecurityAlertPolicyInner class. */ + /** + * Creates an instance of SqlPoolSecurityAlertPolicyInner class. + */ public SqlPoolSecurityAlertPolicyInner() { } /** * Get the innerProperties property: Resource properties. - * + * * @return the innerProperties value. */ private SecurityAlertPolicyProperties innerProperties() { @@ -36,7 +40,7 @@ private SecurityAlertPolicyProperties innerProperties() { /** * Get the state property: Specifies the state of the policy, whether it is enabled or disabled or a policy has not * been applied yet on the specific Sql pool. - * + * * @return the state value. */ public SecurityAlertPolicyState state() { @@ -46,7 +50,7 @@ public SecurityAlertPolicyState state() { /** * Set the state property: Specifies the state of the policy, whether it is enabled or disabled or a policy has not * been applied yet on the specific Sql pool. - * + * * @param state the state value to set. * @return the SqlPoolSecurityAlertPolicyInner object itself. */ @@ -61,7 +65,7 @@ public SqlPoolSecurityAlertPolicyInner withState(SecurityAlertPolicyState state) /** * Get the disabledAlerts property: Specifies an array of alerts that are disabled. Allowed values are: * Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action. - * + * * @return the disabledAlerts value. */ public List disabledAlerts() { @@ -71,7 +75,7 @@ public List disabledAlerts() { /** * Set the disabledAlerts property: Specifies an array of alerts that are disabled. Allowed values are: * Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action. - * + * * @param disabledAlerts the disabledAlerts value to set. * @return the SqlPoolSecurityAlertPolicyInner object itself. */ @@ -85,7 +89,7 @@ public SqlPoolSecurityAlertPolicyInner withDisabledAlerts(List disabledA /** * Get the emailAddresses property: Specifies an array of e-mail addresses to which the alert is sent. - * + * * @return the emailAddresses value. */ public List emailAddresses() { @@ -94,7 +98,7 @@ public List emailAddresses() { /** * Set the emailAddresses property: Specifies an array of e-mail addresses to which the alert is sent. - * + * * @param emailAddresses the emailAddresses value to set. * @return the SqlPoolSecurityAlertPolicyInner object itself. */ @@ -108,7 +112,7 @@ public SqlPoolSecurityAlertPolicyInner withEmailAddresses(List emailAddr /** * Get the emailAccountAdmins property: Specifies that the alert is sent to the account administrators. - * + * * @return the emailAccountAdmins value. */ public Boolean emailAccountAdmins() { @@ -117,7 +121,7 @@ public Boolean emailAccountAdmins() { /** * Set the emailAccountAdmins property: Specifies that the alert is sent to the account administrators. - * + * * @param emailAccountAdmins the emailAccountAdmins value to set. * @return the SqlPoolSecurityAlertPolicyInner object itself. */ @@ -132,7 +136,7 @@ public SqlPoolSecurityAlertPolicyInner withEmailAccountAdmins(Boolean emailAccou /** * Get the storageEndpoint property: Specifies the blob storage endpoint (e.g. * https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. - * + * * @return the storageEndpoint value. */ public String storageEndpoint() { @@ -142,7 +146,7 @@ public String storageEndpoint() { /** * Set the storageEndpoint property: Specifies the blob storage endpoint (e.g. * https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. - * + * * @param storageEndpoint the storageEndpoint value to set. * @return the SqlPoolSecurityAlertPolicyInner object itself. */ @@ -157,7 +161,7 @@ public SqlPoolSecurityAlertPolicyInner withStorageEndpoint(String storageEndpoin /** * Get the storageAccountAccessKey property: Specifies the identifier key of the Threat Detection audit storage * account. - * + * * @return the storageAccountAccessKey value. */ public String storageAccountAccessKey() { @@ -167,7 +171,7 @@ public String storageAccountAccessKey() { /** * Set the storageAccountAccessKey property: Specifies the identifier key of the Threat Detection audit storage * account. - * + * * @param storageAccountAccessKey the storageAccountAccessKey value to set. * @return the SqlPoolSecurityAlertPolicyInner object itself. */ @@ -181,7 +185,7 @@ public SqlPoolSecurityAlertPolicyInner withStorageAccountAccessKey(String storag /** * Get the retentionDays property: Specifies the number of days to keep in the Threat Detection audit logs. - * + * * @return the retentionDays value. */ public Integer retentionDays() { @@ -190,7 +194,7 @@ public Integer retentionDays() { /** * Set the retentionDays property: Specifies the number of days to keep in the Threat Detection audit logs. - * + * * @param retentionDays the retentionDays value to set. * @return the SqlPoolSecurityAlertPolicyInner object itself. */ @@ -204,7 +208,7 @@ public SqlPoolSecurityAlertPolicyInner withRetentionDays(Integer retentionDays) /** * Get the creationTime property: Specifies the UTC creation time of the policy. - * + * * @return the creationTime value. */ public OffsetDateTime creationTime() { @@ -213,7 +217,7 @@ public OffsetDateTime creationTime() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolTableInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolTableInner.java index e4d0d9965f56..cca510107bcd 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolTableInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolTableInner.java @@ -7,16 +7,20 @@ import com.azure.core.annotation.Immutable; import com.azure.core.management.ProxyResource; -/** A Sql pool table resource. */ +/** + * A Sql pool table resource. + */ @Immutable public final class SqlPoolTableInner extends ProxyResource { - /** Creates an instance of SqlPoolTableInner class. */ + /** + * Creates an instance of SqlPoolTableInner class. + */ public SqlPoolTableInner() { } /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolUsageInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolUsageInner.java index 7d944ebfa2d7..cb5082d4b130 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolUsageInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolUsageInner.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; -/** The Sql pool usages. */ +/** + * The Sql pool usages. + */ @Immutable public final class SqlPoolUsageInner { /* @@ -53,13 +55,15 @@ public final class SqlPoolUsageInner { @JsonProperty(value = "nextResetTime", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime nextResetTime; - /** Creates an instance of SqlPoolUsageInner class. */ + /** + * Creates an instance of SqlPoolUsageInner class. + */ public SqlPoolUsageInner() { } /** * Get the name property: The name of the usage metric. - * + * * @return the name value. */ public String name() { @@ -68,7 +72,7 @@ public String name() { /** * Get the resourceName property: The name of the resource. - * + * * @return the resourceName value. */ public String resourceName() { @@ -77,7 +81,7 @@ public String resourceName() { /** * Get the displayName property: The usage metric display name. - * + * * @return the displayName value. */ public String displayName() { @@ -86,7 +90,7 @@ public String displayName() { /** * Get the currentValue property: The current value of the usage metric. - * + * * @return the currentValue value. */ public Double currentValue() { @@ -95,7 +99,7 @@ public Double currentValue() { /** * Get the limit property: The current limit of the usage metric. - * + * * @return the limit value. */ public Double limit() { @@ -104,7 +108,7 @@ public Double limit() { /** * Get the unit property: The units of the usage metric. - * + * * @return the unit value. */ public String unit() { @@ -113,7 +117,7 @@ public String unit() { /** * Get the nextResetTime property: The next reset time for the usage metric (ISO8601 format). - * + * * @return the nextResetTime value. */ public OffsetDateTime nextResetTime() { @@ -122,7 +126,7 @@ public OffsetDateTime nextResetTime() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentInner.java index 680af3885df5..3f11c32798b8 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentInner.java @@ -9,7 +9,9 @@ import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentRecurringScansProperties; import com.fasterxml.jackson.annotation.JsonProperty; -/** A Sql pool vulnerability assessment. */ +/** + * A Sql pool vulnerability assessment. + */ @Fluent public final class SqlPoolVulnerabilityAssessmentInner extends ProxyResource { /* @@ -18,13 +20,15 @@ public final class SqlPoolVulnerabilityAssessmentInner extends ProxyResource { @JsonProperty(value = "properties") private SqlPoolVulnerabilityAssessmentProperties innerProperties; - /** Creates an instance of SqlPoolVulnerabilityAssessmentInner class. */ + /** + * Creates an instance of SqlPoolVulnerabilityAssessmentInner class. + */ public SqlPoolVulnerabilityAssessmentInner() { } /** * Get the innerProperties property: Resource properties. - * + * * @return the innerProperties value. */ private SqlPoolVulnerabilityAssessmentProperties innerProperties() { @@ -33,9 +37,9 @@ private SqlPoolVulnerabilityAssessmentProperties innerProperties() { /** * Get the storageContainerPath property: A blob storage container path to hold the scan results (e.g. - * https://myStorage.blob.core.windows.net/VaScans/). It is required if server level vulnerability assessment policy - * doesn't set. - * + * https://myStorage.blob.core.windows.net/VaScans/). It is required if server level vulnerability assessment + * policy doesn't set. + * * @return the storageContainerPath value. */ public String storageContainerPath() { @@ -44,9 +48,9 @@ public String storageContainerPath() { /** * Set the storageContainerPath property: A blob storage container path to hold the scan results (e.g. - * https://myStorage.blob.core.windows.net/VaScans/). It is required if server level vulnerability assessment policy - * doesn't set. - * + * https://myStorage.blob.core.windows.net/VaScans/). It is required if server level vulnerability assessment + * policy doesn't set. + * * @param storageContainerPath the storageContainerPath value to set. * @return the SqlPoolVulnerabilityAssessmentInner object itself. */ @@ -62,7 +66,7 @@ public SqlPoolVulnerabilityAssessmentInner withStorageContainerPath(String stora * Get the storageContainerSasKey property: A shared access signature (SAS Key) that has write access to the blob * container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, * StorageContainerSasKey is required. - * + * * @return the storageContainerSasKey value. */ public String storageContainerSasKey() { @@ -73,7 +77,7 @@ public String storageContainerSasKey() { * Set the storageContainerSasKey property: A shared access signature (SAS Key) that has write access to the blob * container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, * StorageContainerSasKey is required. - * + * * @param storageContainerSasKey the storageContainerSasKey value to set. * @return the SqlPoolVulnerabilityAssessmentInner object itself. */ @@ -88,7 +92,7 @@ public SqlPoolVulnerabilityAssessmentInner withStorageContainerSasKey(String sto /** * Get the storageAccountAccessKey property: Specifies the identifier key of the storage account for vulnerability * assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. - * + * * @return the storageAccountAccessKey value. */ public String storageAccountAccessKey() { @@ -98,7 +102,7 @@ public String storageAccountAccessKey() { /** * Set the storageAccountAccessKey property: Specifies the identifier key of the storage account for vulnerability * assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. - * + * * @param storageAccountAccessKey the storageAccountAccessKey value to set. * @return the SqlPoolVulnerabilityAssessmentInner object itself. */ @@ -112,7 +116,7 @@ public SqlPoolVulnerabilityAssessmentInner withStorageAccountAccessKey(String st /** * Get the recurringScans property: The recurring scans settings. - * + * * @return the recurringScans value. */ public VulnerabilityAssessmentRecurringScansProperties recurringScans() { @@ -121,12 +125,12 @@ public VulnerabilityAssessmentRecurringScansProperties recurringScans() { /** * Set the recurringScans property: The recurring scans settings. - * + * * @param recurringScans the recurringScans value to set. * @return the SqlPoolVulnerabilityAssessmentInner object itself. */ - public SqlPoolVulnerabilityAssessmentInner withRecurringScans( - VulnerabilityAssessmentRecurringScansProperties recurringScans) { + public SqlPoolVulnerabilityAssessmentInner + withRecurringScans(VulnerabilityAssessmentRecurringScansProperties recurringScans) { if (this.innerProperties() == null) { this.innerProperties = new SqlPoolVulnerabilityAssessmentProperties(); } @@ -136,7 +140,7 @@ public SqlPoolVulnerabilityAssessmentInner withRecurringScans( /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentProperties.java index ca0650c7d69f..7fa7fc013136 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentProperties.java @@ -8,7 +8,9 @@ import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentRecurringScansProperties; import com.fasterxml.jackson.annotation.JsonProperty; -/** Properties of a Sql pool Vulnerability Assessment. */ +/** + * Properties of a Sql pool Vulnerability Assessment. + */ @Fluent public final class SqlPoolVulnerabilityAssessmentProperties { /* @@ -39,15 +41,17 @@ public final class SqlPoolVulnerabilityAssessmentProperties { @JsonProperty(value = "recurringScans") private VulnerabilityAssessmentRecurringScansProperties recurringScans; - /** Creates an instance of SqlPoolVulnerabilityAssessmentProperties class. */ + /** + * Creates an instance of SqlPoolVulnerabilityAssessmentProperties class. + */ public SqlPoolVulnerabilityAssessmentProperties() { } /** * Get the storageContainerPath property: A blob storage container path to hold the scan results (e.g. - * https://myStorage.blob.core.windows.net/VaScans/). It is required if server level vulnerability assessment policy - * doesn't set. - * + * https://myStorage.blob.core.windows.net/VaScans/). It is required if server level vulnerability assessment + * policy doesn't set. + * * @return the storageContainerPath value. */ public String storageContainerPath() { @@ -56,9 +60,9 @@ public String storageContainerPath() { /** * Set the storageContainerPath property: A blob storage container path to hold the scan results (e.g. - * https://myStorage.blob.core.windows.net/VaScans/). It is required if server level vulnerability assessment policy - * doesn't set. - * + * https://myStorage.blob.core.windows.net/VaScans/). It is required if server level vulnerability assessment + * policy doesn't set. + * * @param storageContainerPath the storageContainerPath value to set. * @return the SqlPoolVulnerabilityAssessmentProperties object itself. */ @@ -71,7 +75,7 @@ public SqlPoolVulnerabilityAssessmentProperties withStorageContainerPath(String * Get the storageContainerSasKey property: A shared access signature (SAS Key) that has write access to the blob * container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, * StorageContainerSasKey is required. - * + * * @return the storageContainerSasKey value. */ public String storageContainerSasKey() { @@ -82,7 +86,7 @@ public String storageContainerSasKey() { * Set the storageContainerSasKey property: A shared access signature (SAS Key) that has write access to the blob * container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, * StorageContainerSasKey is required. - * + * * @param storageContainerSasKey the storageContainerSasKey value to set. * @return the SqlPoolVulnerabilityAssessmentProperties object itself. */ @@ -94,7 +98,7 @@ public SqlPoolVulnerabilityAssessmentProperties withStorageContainerSasKey(Strin /** * Get the storageAccountAccessKey property: Specifies the identifier key of the storage account for vulnerability * assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. - * + * * @return the storageAccountAccessKey value. */ public String storageAccountAccessKey() { @@ -104,7 +108,7 @@ public String storageAccountAccessKey() { /** * Set the storageAccountAccessKey property: Specifies the identifier key of the storage account for vulnerability * assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. - * + * * @param storageAccountAccessKey the storageAccountAccessKey value to set. * @return the SqlPoolVulnerabilityAssessmentProperties object itself. */ @@ -115,7 +119,7 @@ public SqlPoolVulnerabilityAssessmentProperties withStorageAccountAccessKey(Stri /** * Get the recurringScans property: The recurring scans settings. - * + * * @return the recurringScans value. */ public VulnerabilityAssessmentRecurringScansProperties recurringScans() { @@ -124,19 +128,19 @@ public VulnerabilityAssessmentRecurringScansProperties recurringScans() { /** * Set the recurringScans property: The recurring scans settings. - * + * * @param recurringScans the recurringScans value to set. * @return the SqlPoolVulnerabilityAssessmentProperties object itself. */ - public SqlPoolVulnerabilityAssessmentProperties withRecurringScans( - VulnerabilityAssessmentRecurringScansProperties recurringScans) { + public SqlPoolVulnerabilityAssessmentProperties + withRecurringScans(VulnerabilityAssessmentRecurringScansProperties recurringScans) { this.recurringScans = recurringScans; return this; } /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentRuleBaselineInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentRuleBaselineInner.java index 46f34eb897ae..d07564bee221 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentRuleBaselineInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentRuleBaselineInner.java @@ -10,7 +10,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** A Sql pool vulnerability assessment rule baseline. */ +/** + * A Sql pool vulnerability assessment rule baseline. + */ @Fluent public final class SqlPoolVulnerabilityAssessmentRuleBaselineInner extends ProxyResource { /* @@ -19,13 +21,15 @@ public final class SqlPoolVulnerabilityAssessmentRuleBaselineInner extends Proxy @JsonProperty(value = "properties") private SqlPoolVulnerabilityAssessmentRuleBaselineProperties innerProperties; - /** Creates an instance of SqlPoolVulnerabilityAssessmentRuleBaselineInner class. */ + /** + * Creates an instance of SqlPoolVulnerabilityAssessmentRuleBaselineInner class. + */ public SqlPoolVulnerabilityAssessmentRuleBaselineInner() { } /** * Get the innerProperties property: Resource properties. - * + * * @return the innerProperties value. */ private SqlPoolVulnerabilityAssessmentRuleBaselineProperties innerProperties() { @@ -34,7 +38,7 @@ private SqlPoolVulnerabilityAssessmentRuleBaselineProperties innerProperties() { /** * Get the baselineResults property: The rule baseline result. - * + * * @return the baselineResults value. */ public List baselineResults() { @@ -43,12 +47,12 @@ public List baselineResults() { /** * Set the baselineResults property: The rule baseline result. - * + * * @param baselineResults the baselineResults value to set. * @return the SqlPoolVulnerabilityAssessmentRuleBaselineInner object itself. */ - public SqlPoolVulnerabilityAssessmentRuleBaselineInner withBaselineResults( - List baselineResults) { + public SqlPoolVulnerabilityAssessmentRuleBaselineInner + withBaselineResults(List baselineResults) { if (this.innerProperties() == null) { this.innerProperties = new SqlPoolVulnerabilityAssessmentRuleBaselineProperties(); } @@ -58,7 +62,7 @@ public SqlPoolVulnerabilityAssessmentRuleBaselineInner withBaselineResults( /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentRuleBaselineProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentRuleBaselineProperties.java index 698e08215c1e..2c5f7eb4f7da 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentRuleBaselineProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentRuleBaselineProperties.java @@ -10,7 +10,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Properties of a Sql pool vulnerability assessment rule baseline. */ +/** + * Properties of a Sql pool vulnerability assessment rule baseline. + */ @Fluent public final class SqlPoolVulnerabilityAssessmentRuleBaselineProperties { /* @@ -19,13 +21,15 @@ public final class SqlPoolVulnerabilityAssessmentRuleBaselineProperties { @JsonProperty(value = "baselineResults", required = true) private List baselineResults; - /** Creates an instance of SqlPoolVulnerabilityAssessmentRuleBaselineProperties class. */ + /** + * Creates an instance of SqlPoolVulnerabilityAssessmentRuleBaselineProperties class. + */ public SqlPoolVulnerabilityAssessmentRuleBaselineProperties() { } /** * Get the baselineResults property: The rule baseline result. - * + * * @return the baselineResults value. */ public List baselineResults() { @@ -34,33 +38,30 @@ public List baselineResults() { /** * Set the baselineResults property: The rule baseline result. - * + * * @param baselineResults the baselineResults value to set. * @return the SqlPoolVulnerabilityAssessmentRuleBaselineProperties object itself. */ - public SqlPoolVulnerabilityAssessmentRuleBaselineProperties withBaselineResults( - List baselineResults) { + public SqlPoolVulnerabilityAssessmentRuleBaselineProperties + withBaselineResults(List baselineResults) { this.baselineResults = baselineResults; return this; } /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (baselineResults() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property baselineResults in model" - + " SqlPoolVulnerabilityAssessmentRuleBaselineProperties")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property baselineResults in model SqlPoolVulnerabilityAssessmentRuleBaselineProperties")); } else { baselineResults().forEach(e -> e.validate()); } } - private static final ClientLogger LOGGER = - new ClientLogger(SqlPoolVulnerabilityAssessmentRuleBaselineProperties.class); + private static final ClientLogger LOGGER + = new ClientLogger(SqlPoolVulnerabilityAssessmentRuleBaselineProperties.class); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentScanExportProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentScanExportProperties.java index 22711e565177..feba1fded894 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentScanExportProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentScanExportProperties.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Immutable; import com.fasterxml.jackson.annotation.JsonProperty; -/** Properties of the export operation's result. */ +/** + * Properties of the export operation's result. + */ @Immutable public final class SqlPoolVulnerabilityAssessmentScanExportProperties { /* @@ -17,14 +19,16 @@ public final class SqlPoolVulnerabilityAssessmentScanExportProperties { @JsonProperty(value = "exportedReportLocation", access = JsonProperty.Access.WRITE_ONLY) private String exportedReportLocation; - /** Creates an instance of SqlPoolVulnerabilityAssessmentScanExportProperties class. */ + /** + * Creates an instance of SqlPoolVulnerabilityAssessmentScanExportProperties class. + */ public SqlPoolVulnerabilityAssessmentScanExportProperties() { } /** * Get the exportedReportLocation property: Location of the exported report (e.g. * https://myStorage.blob.core.windows.net/VaScans/scans/serverName/databaseName/scan_scanId.xlsx). - * + * * @return the exportedReportLocation value. */ public String exportedReportLocation() { @@ -33,7 +37,7 @@ public String exportedReportLocation() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentScansExportInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentScansExportInner.java index efcbb3da4d1b..3874612d4d9a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentScansExportInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SqlPoolVulnerabilityAssessmentScansExportInner.java @@ -8,7 +8,9 @@ import com.azure.core.management.ProxyResource; import com.fasterxml.jackson.annotation.JsonProperty; -/** A Sql pool Vulnerability Assessment scan export resource. */ +/** + * A Sql pool Vulnerability Assessment scan export resource. + */ @Immutable public final class SqlPoolVulnerabilityAssessmentScansExportInner extends ProxyResource { /* @@ -17,13 +19,15 @@ public final class SqlPoolVulnerabilityAssessmentScansExportInner extends ProxyR @JsonProperty(value = "properties") private SqlPoolVulnerabilityAssessmentScanExportProperties innerProperties; - /** Creates an instance of SqlPoolVulnerabilityAssessmentScansExportInner class. */ + /** + * Creates an instance of SqlPoolVulnerabilityAssessmentScansExportInner class. + */ public SqlPoolVulnerabilityAssessmentScansExportInner() { } /** * Get the innerProperties property: Resource properties. - * + * * @return the innerProperties value. */ private SqlPoolVulnerabilityAssessmentScanExportProperties innerProperties() { @@ -33,7 +37,7 @@ private SqlPoolVulnerabilityAssessmentScanExportProperties innerProperties() { /** * Get the exportedReportLocation property: Location of the exported report (e.g. * https://myStorage.blob.core.windows.net/VaScans/scans/serverName/databaseName/scan_scanId.xlsx). - * + * * @return the exportedReportLocation value. */ public String exportedReportLocation() { @@ -42,7 +46,7 @@ public String exportedReportLocation() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SsisObjectMetadataListResponseInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SsisObjectMetadataListResponseInner.java index 91ced1142645..1c6a6af64212 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SsisObjectMetadataListResponseInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SsisObjectMetadataListResponseInner.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** A list of SSIS object metadata. */ +/** + * A list of SSIS object metadata. + */ @Fluent public final class SsisObjectMetadataListResponseInner { /* @@ -24,13 +26,15 @@ public final class SsisObjectMetadataListResponseInner { @JsonProperty(value = "nextLink") private String nextLink; - /** Creates an instance of SsisObjectMetadataListResponseInner class. */ + /** + * Creates an instance of SsisObjectMetadataListResponseInner class. + */ public SsisObjectMetadataListResponseInner() { } /** * Get the value property: List of SSIS object metadata. - * + * * @return the value value. */ public List value() { @@ -39,7 +43,7 @@ public List value() { /** * Set the value property: List of SSIS object metadata. - * + * * @param value the value value to set. * @return the SsisObjectMetadataListResponseInner object itself. */ @@ -50,7 +54,7 @@ public SsisObjectMetadataListResponseInner withValue(List va /** * Get the nextLink property: The link to the next page of results, if any remaining results exist. - * + * * @return the nextLink value. */ public String nextLink() { @@ -59,7 +63,7 @@ public String nextLink() { /** * Set the nextLink property: The link to the next page of results, if any remaining results exist. - * + * * @param nextLink the nextLink value to set. * @return the SsisObjectMetadataListResponseInner object itself. */ @@ -70,7 +74,7 @@ public SsisObjectMetadataListResponseInner withNextLink(String nextLink) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SsisObjectMetadataStatusResponseInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SsisObjectMetadataStatusResponseInner.java index 3f5ca79cb789..0bf74c8e7e78 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SsisObjectMetadataStatusResponseInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/SsisObjectMetadataStatusResponseInner.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** The status of the operation. */ +/** + * The status of the operation. + */ @Fluent public final class SsisObjectMetadataStatusResponseInner { /* @@ -34,13 +36,15 @@ public final class SsisObjectMetadataStatusResponseInner { @JsonProperty(value = "error") private String error; - /** Creates an instance of SsisObjectMetadataStatusResponseInner class. */ + /** + * Creates an instance of SsisObjectMetadataStatusResponseInner class. + */ public SsisObjectMetadataStatusResponseInner() { } /** * Get the status property: The status of the operation. - * + * * @return the status value. */ public String status() { @@ -49,7 +53,7 @@ public String status() { /** * Set the status property: The status of the operation. - * + * * @param status the status value to set. * @return the SsisObjectMetadataStatusResponseInner object itself. */ @@ -60,7 +64,7 @@ public SsisObjectMetadataStatusResponseInner withStatus(String status) { /** * Get the name property: The operation name. - * + * * @return the name value. */ public String name() { @@ -69,7 +73,7 @@ public String name() { /** * Set the name property: The operation name. - * + * * @param name the name value to set. * @return the SsisObjectMetadataStatusResponseInner object itself. */ @@ -80,7 +84,7 @@ public SsisObjectMetadataStatusResponseInner withName(String name) { /** * Get the properties property: The operation properties. - * + * * @return the properties value. */ public String properties() { @@ -89,7 +93,7 @@ public String properties() { /** * Set the properties property: The operation properties. - * + * * @param properties the properties value to set. * @return the SsisObjectMetadataStatusResponseInner object itself. */ @@ -100,7 +104,7 @@ public SsisObjectMetadataStatusResponseInner withProperties(String properties) { /** * Get the error property: The operation error message. - * + * * @return the error value. */ public String error() { @@ -109,7 +113,7 @@ public String error() { /** * Set the error property: The operation error message. - * + * * @param error the error value to set. * @return the SsisObjectMetadataStatusResponseInner object itself. */ @@ -120,7 +124,7 @@ public SsisObjectMetadataStatusResponseInner withError(String error) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/TransparentDataEncryptionInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/TransparentDataEncryptionInner.java index 6eafe56c2b83..4a8f92e9060e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/TransparentDataEncryptionInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/TransparentDataEncryptionInner.java @@ -9,7 +9,9 @@ import com.azure.resourcemanager.synapse.models.TransparentDataEncryptionStatus; import com.fasterxml.jackson.annotation.JsonProperty; -/** Represents a Sql pool transparent data encryption configuration. */ +/** + * Represents a Sql pool transparent data encryption configuration. + */ @Fluent public final class TransparentDataEncryptionInner extends ProxyResource { /* @@ -24,13 +26,15 @@ public final class TransparentDataEncryptionInner extends ProxyResource { @JsonProperty(value = "properties") private TransparentDataEncryptionProperties innerProperties; - /** Creates an instance of TransparentDataEncryptionInner class. */ + /** + * Creates an instance of TransparentDataEncryptionInner class. + */ public TransparentDataEncryptionInner() { } /** * Get the location property: Resource location. - * + * * @return the location value. */ public String location() { @@ -39,7 +43,7 @@ public String location() { /** * Get the innerProperties property: Represents the properties of the resource. - * + * * @return the innerProperties value. */ private TransparentDataEncryptionProperties innerProperties() { @@ -48,7 +52,7 @@ private TransparentDataEncryptionProperties innerProperties() { /** * Get the status property: The status of the database transparent data encryption. - * + * * @return the status value. */ public TransparentDataEncryptionStatus status() { @@ -57,7 +61,7 @@ public TransparentDataEncryptionStatus status() { /** * Set the status property: The status of the database transparent data encryption. - * + * * @param status the status value to set. * @return the TransparentDataEncryptionInner object itself. */ @@ -71,7 +75,7 @@ public TransparentDataEncryptionInner withStatus(TransparentDataEncryptionStatus /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/TransparentDataEncryptionProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/TransparentDataEncryptionProperties.java index 7fb06f52943e..6152b5fff3d6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/TransparentDataEncryptionProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/TransparentDataEncryptionProperties.java @@ -8,7 +8,9 @@ import com.azure.resourcemanager.synapse.models.TransparentDataEncryptionStatus; import com.fasterxml.jackson.annotation.JsonProperty; -/** Represents the properties of a database transparent data encryption. */ +/** + * Represents the properties of a database transparent data encryption. + */ @Fluent public final class TransparentDataEncryptionProperties { /* @@ -17,13 +19,15 @@ public final class TransparentDataEncryptionProperties { @JsonProperty(value = "status") private TransparentDataEncryptionStatus status; - /** Creates an instance of TransparentDataEncryptionProperties class. */ + /** + * Creates an instance of TransparentDataEncryptionProperties class. + */ public TransparentDataEncryptionProperties() { } /** * Get the status property: The status of the database transparent data encryption. - * + * * @return the status value. */ public TransparentDataEncryptionStatus status() { @@ -32,7 +36,7 @@ public TransparentDataEncryptionStatus status() { /** * Set the status property: The status of the database transparent data encryption. - * + * * @param status the status value to set. * @return the TransparentDataEncryptionProperties object itself. */ @@ -43,7 +47,7 @@ public TransparentDataEncryptionProperties withStatus(TransparentDataEncryptionS /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/VulnerabilityAssessmentScanRecordInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/VulnerabilityAssessmentScanRecordInner.java index ecfb208a863f..a703c9e523b3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/VulnerabilityAssessmentScanRecordInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/VulnerabilityAssessmentScanRecordInner.java @@ -13,7 +13,9 @@ import java.time.OffsetDateTime; import java.util.List; -/** A vulnerability assessment scan record. */ +/** + * A vulnerability assessment scan record. + */ @Immutable public final class VulnerabilityAssessmentScanRecordInner extends ProxyResource { /* @@ -22,13 +24,15 @@ public final class VulnerabilityAssessmentScanRecordInner extends ProxyResource @JsonProperty(value = "properties") private VulnerabilityAssessmentScanRecordProperties innerProperties; - /** Creates an instance of VulnerabilityAssessmentScanRecordInner class. */ + /** + * Creates an instance of VulnerabilityAssessmentScanRecordInner class. + */ public VulnerabilityAssessmentScanRecordInner() { } /** * Get the innerProperties property: Resource properties. - * + * * @return the innerProperties value. */ private VulnerabilityAssessmentScanRecordProperties innerProperties() { @@ -37,7 +41,7 @@ private VulnerabilityAssessmentScanRecordProperties innerProperties() { /** * Get the scanId property: The scan ID. - * + * * @return the scanId value. */ public String scanId() { @@ -46,7 +50,7 @@ public String scanId() { /** * Get the triggerType property: The scan trigger type. - * + * * @return the triggerType value. */ public VulnerabilityAssessmentScanTriggerType triggerType() { @@ -55,7 +59,7 @@ public VulnerabilityAssessmentScanTriggerType triggerType() { /** * Get the state property: The scan status. - * + * * @return the state value. */ public VulnerabilityAssessmentScanState state() { @@ -64,7 +68,7 @@ public VulnerabilityAssessmentScanState state() { /** * Get the startTime property: The scan start time (UTC). - * + * * @return the startTime value. */ public OffsetDateTime startTime() { @@ -73,7 +77,7 @@ public OffsetDateTime startTime() { /** * Get the endTime property: The scan end time (UTC). - * + * * @return the endTime value. */ public OffsetDateTime endTime() { @@ -82,7 +86,7 @@ public OffsetDateTime endTime() { /** * Get the errors property: The scan errors. - * + * * @return the errors value. */ public List errors() { @@ -91,7 +95,7 @@ public List errors() { /** * Get the storageContainerPath property: The scan results storage container path. - * + * * @return the storageContainerPath value. */ public String storageContainerPath() { @@ -100,7 +104,7 @@ public String storageContainerPath() { /** * Get the numberOfFailedSecurityChecks property: The number of failed security checks. - * + * * @return the numberOfFailedSecurityChecks value. */ public Integer numberOfFailedSecurityChecks() { @@ -109,7 +113,7 @@ public Integer numberOfFailedSecurityChecks() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/VulnerabilityAssessmentScanRecordProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/VulnerabilityAssessmentScanRecordProperties.java index 300b2feaa266..76d363d268d1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/VulnerabilityAssessmentScanRecordProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/VulnerabilityAssessmentScanRecordProperties.java @@ -12,7 +12,9 @@ import java.time.OffsetDateTime; import java.util.List; -/** Properties of a vulnerability assessment scan record. */ +/** + * Properties of a vulnerability assessment scan record. + */ @Immutable public final class VulnerabilityAssessmentScanRecordProperties { /* @@ -63,13 +65,15 @@ public final class VulnerabilityAssessmentScanRecordProperties { @JsonProperty(value = "numberOfFailedSecurityChecks", access = JsonProperty.Access.WRITE_ONLY) private Integer numberOfFailedSecurityChecks; - /** Creates an instance of VulnerabilityAssessmentScanRecordProperties class. */ + /** + * Creates an instance of VulnerabilityAssessmentScanRecordProperties class. + */ public VulnerabilityAssessmentScanRecordProperties() { } /** * Get the scanId property: The scan ID. - * + * * @return the scanId value. */ public String scanId() { @@ -78,7 +82,7 @@ public String scanId() { /** * Get the triggerType property: The scan trigger type. - * + * * @return the triggerType value. */ public VulnerabilityAssessmentScanTriggerType triggerType() { @@ -87,7 +91,7 @@ public VulnerabilityAssessmentScanTriggerType triggerType() { /** * Get the state property: The scan status. - * + * * @return the state value. */ public VulnerabilityAssessmentScanState state() { @@ -96,7 +100,7 @@ public VulnerabilityAssessmentScanState state() { /** * Get the startTime property: The scan start time (UTC). - * + * * @return the startTime value. */ public OffsetDateTime startTime() { @@ -105,7 +109,7 @@ public OffsetDateTime startTime() { /** * Get the endTime property: The scan end time (UTC). - * + * * @return the endTime value. */ public OffsetDateTime endTime() { @@ -114,7 +118,7 @@ public OffsetDateTime endTime() { /** * Get the errors property: The scan errors. - * + * * @return the errors value. */ public List errors() { @@ -123,7 +127,7 @@ public List errors() { /** * Get the storageContainerPath property: The scan results storage container path. - * + * * @return the storageContainerPath value. */ public String storageContainerPath() { @@ -132,7 +136,7 @@ public String storageContainerPath() { /** * Get the numberOfFailedSecurityChecks property: The number of failed security checks. - * + * * @return the numberOfFailedSecurityChecks value. */ public Integer numberOfFailedSecurityChecks() { @@ -141,7 +145,7 @@ public Integer numberOfFailedSecurityChecks() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkloadClassifierInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkloadClassifierInner.java index f0c3315c640b..8fe33af7b3a4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkloadClassifierInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkloadClassifierInner.java @@ -8,7 +8,9 @@ import com.azure.core.management.ProxyResource; import com.fasterxml.jackson.annotation.JsonProperty; -/** Workload classifier operations for a data warehouse. */ +/** + * Workload classifier operations for a data warehouse. + */ @Fluent public final class WorkloadClassifierInner extends ProxyResource { /* @@ -17,13 +19,15 @@ public final class WorkloadClassifierInner extends ProxyResource { @JsonProperty(value = "properties") private WorkloadClassifierProperties innerProperties; - /** Creates an instance of WorkloadClassifierInner class. */ + /** + * Creates an instance of WorkloadClassifierInner class. + */ public WorkloadClassifierInner() { } /** * Get the innerProperties property: Resource properties. - * + * * @return the innerProperties value. */ private WorkloadClassifierProperties innerProperties() { @@ -32,7 +36,7 @@ private WorkloadClassifierProperties innerProperties() { /** * Get the memberName property: The workload classifier member name. - * + * * @return the memberName value. */ public String memberName() { @@ -41,7 +45,7 @@ public String memberName() { /** * Set the memberName property: The workload classifier member name. - * + * * @param memberName the memberName value to set. * @return the WorkloadClassifierInner object itself. */ @@ -55,7 +59,7 @@ public WorkloadClassifierInner withMemberName(String memberName) { /** * Get the label property: The workload classifier label. - * + * * @return the label value. */ public String label() { @@ -64,7 +68,7 @@ public String label() { /** * Set the label property: The workload classifier label. - * + * * @param label the label value to set. * @return the WorkloadClassifierInner object itself. */ @@ -78,7 +82,7 @@ public WorkloadClassifierInner withLabel(String label) { /** * Get the context property: The workload classifier context. - * + * * @return the context value. */ public String context() { @@ -87,7 +91,7 @@ public String context() { /** * Set the context property: The workload classifier context. - * + * * @param context the context value to set. * @return the WorkloadClassifierInner object itself. */ @@ -101,7 +105,7 @@ public WorkloadClassifierInner withContext(String context) { /** * Get the startTime property: The workload classifier start time for classification. - * + * * @return the startTime value. */ public String startTime() { @@ -110,7 +114,7 @@ public String startTime() { /** * Set the startTime property: The workload classifier start time for classification. - * + * * @param startTime the startTime value to set. * @return the WorkloadClassifierInner object itself. */ @@ -124,7 +128,7 @@ public WorkloadClassifierInner withStartTime(String startTime) { /** * Get the endTime property: The workload classifier end time for classification. - * + * * @return the endTime value. */ public String endTime() { @@ -133,7 +137,7 @@ public String endTime() { /** * Set the endTime property: The workload classifier end time for classification. - * + * * @param endTime the endTime value to set. * @return the WorkloadClassifierInner object itself. */ @@ -147,7 +151,7 @@ public WorkloadClassifierInner withEndTime(String endTime) { /** * Get the importance property: The workload classifier importance. - * + * * @return the importance value. */ public String importance() { @@ -156,7 +160,7 @@ public String importance() { /** * Set the importance property: The workload classifier importance. - * + * * @param importance the importance value to set. * @return the WorkloadClassifierInner object itself. */ @@ -170,7 +174,7 @@ public WorkloadClassifierInner withImportance(String importance) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkloadClassifierProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkloadClassifierProperties.java index 6e7ef4b45691..07f93acc7757 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkloadClassifierProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkloadClassifierProperties.java @@ -8,7 +8,9 @@ import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonProperty; -/** Workload classifier definition. For more information look at sys.workload_management_workload_classifiers (DMV). */ +/** + * Workload classifier definition. For more information look at sys.workload_management_workload_classifiers (DMV). + */ @Fluent public final class WorkloadClassifierProperties { /* @@ -47,13 +49,15 @@ public final class WorkloadClassifierProperties { @JsonProperty(value = "importance") private String importance; - /** Creates an instance of WorkloadClassifierProperties class. */ + /** + * Creates an instance of WorkloadClassifierProperties class. + */ public WorkloadClassifierProperties() { } /** * Get the memberName property: The workload classifier member name. - * + * * @return the memberName value. */ public String memberName() { @@ -62,7 +66,7 @@ public String memberName() { /** * Set the memberName property: The workload classifier member name. - * + * * @param memberName the memberName value to set. * @return the WorkloadClassifierProperties object itself. */ @@ -73,7 +77,7 @@ public WorkloadClassifierProperties withMemberName(String memberName) { /** * Get the label property: The workload classifier label. - * + * * @return the label value. */ public String label() { @@ -82,7 +86,7 @@ public String label() { /** * Set the label property: The workload classifier label. - * + * * @param label the label value to set. * @return the WorkloadClassifierProperties object itself. */ @@ -93,7 +97,7 @@ public WorkloadClassifierProperties withLabel(String label) { /** * Get the context property: The workload classifier context. - * + * * @return the context value. */ public String context() { @@ -102,7 +106,7 @@ public String context() { /** * Set the context property: The workload classifier context. - * + * * @param context the context value to set. * @return the WorkloadClassifierProperties object itself. */ @@ -113,7 +117,7 @@ public WorkloadClassifierProperties withContext(String context) { /** * Get the startTime property: The workload classifier start time for classification. - * + * * @return the startTime value. */ public String startTime() { @@ -122,7 +126,7 @@ public String startTime() { /** * Set the startTime property: The workload classifier start time for classification. - * + * * @param startTime the startTime value to set. * @return the WorkloadClassifierProperties object itself. */ @@ -133,7 +137,7 @@ public WorkloadClassifierProperties withStartTime(String startTime) { /** * Get the endTime property: The workload classifier end time for classification. - * + * * @return the endTime value. */ public String endTime() { @@ -142,7 +146,7 @@ public String endTime() { /** * Set the endTime property: The workload classifier end time for classification. - * + * * @param endTime the endTime value to set. * @return the WorkloadClassifierProperties object itself. */ @@ -153,7 +157,7 @@ public WorkloadClassifierProperties withEndTime(String endTime) { /** * Get the importance property: The workload classifier importance. - * + * * @return the importance value. */ public String importance() { @@ -162,7 +166,7 @@ public String importance() { /** * Set the importance property: The workload classifier importance. - * + * * @param importance the importance value to set. * @return the WorkloadClassifierProperties object itself. */ @@ -173,15 +177,13 @@ public WorkloadClassifierProperties withImportance(String importance) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (memberName() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property memberName in model WorkloadClassifierProperties")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property memberName in model WorkloadClassifierProperties")); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkloadGroupInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkloadGroupInner.java index 0cbcbfbb2c26..77e727e00e96 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkloadGroupInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkloadGroupInner.java @@ -8,7 +8,9 @@ import com.azure.core.management.ProxyResource; import com.fasterxml.jackson.annotation.JsonProperty; -/** Workload group operations for a sql pool. */ +/** + * Workload group operations for a sql pool. + */ @Fluent public final class WorkloadGroupInner extends ProxyResource { /* @@ -17,13 +19,15 @@ public final class WorkloadGroupInner extends ProxyResource { @JsonProperty(value = "properties") private WorkloadGroupProperties innerProperties; - /** Creates an instance of WorkloadGroupInner class. */ + /** + * Creates an instance of WorkloadGroupInner class. + */ public WorkloadGroupInner() { } /** * Get the innerProperties property: Resource properties. - * + * * @return the innerProperties value. */ private WorkloadGroupProperties innerProperties() { @@ -32,7 +36,7 @@ private WorkloadGroupProperties innerProperties() { /** * Get the minResourcePercent property: The workload group minimum percentage resource. - * + * * @return the minResourcePercent value. */ public Integer minResourcePercent() { @@ -41,7 +45,7 @@ public Integer minResourcePercent() { /** * Set the minResourcePercent property: The workload group minimum percentage resource. - * + * * @param minResourcePercent the minResourcePercent value to set. * @return the WorkloadGroupInner object itself. */ @@ -55,7 +59,7 @@ public WorkloadGroupInner withMinResourcePercent(Integer minResourcePercent) { /** * Get the maxResourcePercent property: The workload group cap percentage resource. - * + * * @return the maxResourcePercent value. */ public Integer maxResourcePercent() { @@ -64,7 +68,7 @@ public Integer maxResourcePercent() { /** * Set the maxResourcePercent property: The workload group cap percentage resource. - * + * * @param maxResourcePercent the maxResourcePercent value to set. * @return the WorkloadGroupInner object itself. */ @@ -78,7 +82,7 @@ public WorkloadGroupInner withMaxResourcePercent(Integer maxResourcePercent) { /** * Get the minResourcePercentPerRequest property: The workload group request minimum grant percentage. - * + * * @return the minResourcePercentPerRequest value. */ public Double minResourcePercentPerRequest() { @@ -87,7 +91,7 @@ public Double minResourcePercentPerRequest() { /** * Set the minResourcePercentPerRequest property: The workload group request minimum grant percentage. - * + * * @param minResourcePercentPerRequest the minResourcePercentPerRequest value to set. * @return the WorkloadGroupInner object itself. */ @@ -101,7 +105,7 @@ public WorkloadGroupInner withMinResourcePercentPerRequest(Double minResourcePer /** * Get the maxResourcePercentPerRequest property: The workload group request maximum grant percentage. - * + * * @return the maxResourcePercentPerRequest value. */ public Double maxResourcePercentPerRequest() { @@ -110,7 +114,7 @@ public Double maxResourcePercentPerRequest() { /** * Set the maxResourcePercentPerRequest property: The workload group request maximum grant percentage. - * + * * @param maxResourcePercentPerRequest the maxResourcePercentPerRequest value to set. * @return the WorkloadGroupInner object itself. */ @@ -124,7 +128,7 @@ public WorkloadGroupInner withMaxResourcePercentPerRequest(Double maxResourcePer /** * Get the importance property: The workload group importance level. - * + * * @return the importance value. */ public String importance() { @@ -133,7 +137,7 @@ public String importance() { /** * Set the importance property: The workload group importance level. - * + * * @param importance the importance value to set. * @return the WorkloadGroupInner object itself. */ @@ -147,7 +151,7 @@ public WorkloadGroupInner withImportance(String importance) { /** * Get the queryExecutionTimeout property: The workload group query execution timeout. - * + * * @return the queryExecutionTimeout value. */ public Integer queryExecutionTimeout() { @@ -156,7 +160,7 @@ public Integer queryExecutionTimeout() { /** * Set the queryExecutionTimeout property: The workload group query execution timeout. - * + * * @param queryExecutionTimeout the queryExecutionTimeout value to set. * @return the WorkloadGroupInner object itself. */ @@ -170,7 +174,7 @@ public WorkloadGroupInner withQueryExecutionTimeout(Integer queryExecutionTimeou /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkloadGroupProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkloadGroupProperties.java index df0773e696d5..b0457a98345c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkloadGroupProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkloadGroupProperties.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Workload group definition. For more information look at sys.workload_management_workload_groups (DMV). */ +/** + * Workload group definition. For more information look at sys.workload_management_workload_groups (DMV). + */ @Fluent public final class WorkloadGroupProperties { /* @@ -46,13 +48,15 @@ public final class WorkloadGroupProperties { @JsonProperty(value = "queryExecutionTimeout") private Integer queryExecutionTimeout; - /** Creates an instance of WorkloadGroupProperties class. */ + /** + * Creates an instance of WorkloadGroupProperties class. + */ public WorkloadGroupProperties() { } /** * Get the minResourcePercent property: The workload group minimum percentage resource. - * + * * @return the minResourcePercent value. */ public int minResourcePercent() { @@ -61,7 +65,7 @@ public int minResourcePercent() { /** * Set the minResourcePercent property: The workload group minimum percentage resource. - * + * * @param minResourcePercent the minResourcePercent value to set. * @return the WorkloadGroupProperties object itself. */ @@ -72,7 +76,7 @@ public WorkloadGroupProperties withMinResourcePercent(int minResourcePercent) { /** * Get the maxResourcePercent property: The workload group cap percentage resource. - * + * * @return the maxResourcePercent value. */ public int maxResourcePercent() { @@ -81,7 +85,7 @@ public int maxResourcePercent() { /** * Set the maxResourcePercent property: The workload group cap percentage resource. - * + * * @param maxResourcePercent the maxResourcePercent value to set. * @return the WorkloadGroupProperties object itself. */ @@ -92,7 +96,7 @@ public WorkloadGroupProperties withMaxResourcePercent(int maxResourcePercent) { /** * Get the minResourcePercentPerRequest property: The workload group request minimum grant percentage. - * + * * @return the minResourcePercentPerRequest value. */ public double minResourcePercentPerRequest() { @@ -101,7 +105,7 @@ public double minResourcePercentPerRequest() { /** * Set the minResourcePercentPerRequest property: The workload group request minimum grant percentage. - * + * * @param minResourcePercentPerRequest the minResourcePercentPerRequest value to set. * @return the WorkloadGroupProperties object itself. */ @@ -112,7 +116,7 @@ public WorkloadGroupProperties withMinResourcePercentPerRequest(double minResour /** * Get the maxResourcePercentPerRequest property: The workload group request maximum grant percentage. - * + * * @return the maxResourcePercentPerRequest value. */ public Double maxResourcePercentPerRequest() { @@ -121,7 +125,7 @@ public Double maxResourcePercentPerRequest() { /** * Set the maxResourcePercentPerRequest property: The workload group request maximum grant percentage. - * + * * @param maxResourcePercentPerRequest the maxResourcePercentPerRequest value to set. * @return the WorkloadGroupProperties object itself. */ @@ -132,7 +136,7 @@ public WorkloadGroupProperties withMaxResourcePercentPerRequest(Double maxResour /** * Get the importance property: The workload group importance level. - * + * * @return the importance value. */ public String importance() { @@ -141,7 +145,7 @@ public String importance() { /** * Set the importance property: The workload group importance level. - * + * * @param importance the importance value to set. * @return the WorkloadGroupProperties object itself. */ @@ -152,7 +156,7 @@ public WorkloadGroupProperties withImportance(String importance) { /** * Get the queryExecutionTimeout property: The workload group query execution timeout. - * + * * @return the queryExecutionTimeout value. */ public Integer queryExecutionTimeout() { @@ -161,7 +165,7 @@ public Integer queryExecutionTimeout() { /** * Set the queryExecutionTimeout property: The workload group query execution timeout. - * + * * @param queryExecutionTimeout the queryExecutionTimeout value to set. * @return the WorkloadGroupProperties object itself. */ @@ -172,7 +176,7 @@ public WorkloadGroupProperties withQueryExecutionTimeout(Integer queryExecutionT /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspaceAadAdminInfoInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspaceAadAdminInfoInner.java index ccf5a7d71588..d9fa3ab212f0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspaceAadAdminInfoInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspaceAadAdminInfoInner.java @@ -8,7 +8,9 @@ import com.azure.core.management.ProxyResource; import com.fasterxml.jackson.annotation.JsonProperty; -/** Workspace active directory administrator. */ +/** + * Workspace active directory administrator. + */ @Fluent public final class WorkspaceAadAdminInfoInner extends ProxyResource { /* @@ -17,13 +19,15 @@ public final class WorkspaceAadAdminInfoInner extends ProxyResource { @JsonProperty(value = "properties") private AadAdminProperties innerProperties; - /** Creates an instance of WorkspaceAadAdminInfoInner class. */ + /** + * Creates an instance of WorkspaceAadAdminInfoInner class. + */ public WorkspaceAadAdminInfoInner() { } /** * Get the innerProperties property: Workspace active directory administrator properties. - * + * * @return the innerProperties value. */ private AadAdminProperties innerProperties() { @@ -32,7 +36,7 @@ private AadAdminProperties innerProperties() { /** * Get the tenantId property: Tenant ID of the workspace active directory administrator. - * + * * @return the tenantId value. */ public String tenantId() { @@ -41,7 +45,7 @@ public String tenantId() { /** * Set the tenantId property: Tenant ID of the workspace active directory administrator. - * + * * @param tenantId the tenantId value to set. * @return the WorkspaceAadAdminInfoInner object itself. */ @@ -55,7 +59,7 @@ public WorkspaceAadAdminInfoInner withTenantId(String tenantId) { /** * Get the login property: Login of the workspace active directory administrator. - * + * * @return the login value. */ public String login() { @@ -64,7 +68,7 @@ public String login() { /** * Set the login property: Login of the workspace active directory administrator. - * + * * @param login the login value to set. * @return the WorkspaceAadAdminInfoInner object itself. */ @@ -78,7 +82,7 @@ public WorkspaceAadAdminInfoInner withLogin(String login) { /** * Get the administratorType property: Workspace active directory administrator type. - * + * * @return the administratorType value. */ public String administratorType() { @@ -87,7 +91,7 @@ public String administratorType() { /** * Set the administratorType property: Workspace active directory administrator type. - * + * * @param administratorType the administratorType value to set. * @return the WorkspaceAadAdminInfoInner object itself. */ @@ -101,7 +105,7 @@ public WorkspaceAadAdminInfoInner withAdministratorType(String administratorType /** * Get the sid property: Object ID of the workspace active directory administrator. - * + * * @return the sid value. */ public String sid() { @@ -110,7 +114,7 @@ public String sid() { /** * Set the sid property: Object ID of the workspace active directory administrator. - * + * * @param sid the sid value to set. * @return the WorkspaceAadAdminInfoInner object itself. */ @@ -124,7 +128,7 @@ public WorkspaceAadAdminInfoInner withSid(String sid) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspaceInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspaceInner.java index 91c453228994..387f84ee51a1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspaceInner.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspaceInner.java @@ -20,7 +20,9 @@ import java.util.Map; import java.util.UUID; -/** A workspace. */ +/** + * A workspace. + */ @Fluent public final class WorkspaceInner extends Resource { /* @@ -35,13 +37,15 @@ public final class WorkspaceInner extends Resource { @JsonProperty(value = "identity") private ManagedIdentity identity; - /** Creates an instance of WorkspaceInner class. */ + /** + * Creates an instance of WorkspaceInner class. + */ public WorkspaceInner() { } /** * Get the innerProperties property: Workspace resource properties. - * + * * @return the innerProperties value. */ private WorkspaceProperties innerProperties() { @@ -50,7 +54,7 @@ private WorkspaceProperties innerProperties() { /** * Get the identity property: Identity of the workspace. - * + * * @return the identity value. */ public ManagedIdentity identity() { @@ -59,7 +63,7 @@ public ManagedIdentity identity() { /** * Set the identity property: Identity of the workspace. - * + * * @param identity the identity value to set. * @return the WorkspaceInner object itself. */ @@ -68,14 +72,18 @@ public WorkspaceInner withIdentity(ManagedIdentity identity) { return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public WorkspaceInner withLocation(String location) { super.withLocation(location); return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public WorkspaceInner withTags(Map tags) { super.withTags(tags); @@ -84,7 +92,7 @@ public WorkspaceInner withTags(Map tags) { /** * Get the defaultDataLakeStorage property: Workspace default data lake storage account details. - * + * * @return the defaultDataLakeStorage value. */ public DataLakeStorageAccountDetails defaultDataLakeStorage() { @@ -93,7 +101,7 @@ public DataLakeStorageAccountDetails defaultDataLakeStorage() { /** * Set the defaultDataLakeStorage property: Workspace default data lake storage account details. - * + * * @param defaultDataLakeStorage the defaultDataLakeStorage value to set. * @return the WorkspaceInner object itself. */ @@ -107,7 +115,7 @@ public WorkspaceInner withDefaultDataLakeStorage(DataLakeStorageAccountDetails d /** * Get the sqlAdministratorLoginPassword property: SQL administrator login password. - * + * * @return the sqlAdministratorLoginPassword value. */ public String sqlAdministratorLoginPassword() { @@ -116,7 +124,7 @@ public String sqlAdministratorLoginPassword() { /** * Set the sqlAdministratorLoginPassword property: SQL administrator login password. - * + * * @param sqlAdministratorLoginPassword the sqlAdministratorLoginPassword value to set. * @return the WorkspaceInner object itself. */ @@ -131,9 +139,9 @@ public WorkspaceInner withSqlAdministratorLoginPassword(String sqlAdministratorL /** * Get the managedResourceGroupName property: Workspace managed resource group. The resource group name uniquely * identifies the resource group within the user subscriptionId. The resource group name must be no longer than 90 - * characters long, and must be alphanumeric characters (Char.IsLetterOrDigit()) and '-', '_', '(', ')' and'.'. Note - * that the name cannot end with '.'. - * + * characters long, and must be alphanumeric characters (Char.IsLetterOrDigit()) and '-', '_', '(', ')' and'.'. + * Note that the name cannot end with '.'. + * * @return the managedResourceGroupName value. */ public String managedResourceGroupName() { @@ -143,9 +151,9 @@ public String managedResourceGroupName() { /** * Set the managedResourceGroupName property: Workspace managed resource group. The resource group name uniquely * identifies the resource group within the user subscriptionId. The resource group name must be no longer than 90 - * characters long, and must be alphanumeric characters (Char.IsLetterOrDigit()) and '-', '_', '(', ')' and'.'. Note - * that the name cannot end with '.'. - * + * characters long, and must be alphanumeric characters (Char.IsLetterOrDigit()) and '-', '_', '(', ')' and'.'. + * Note that the name cannot end with '.'. + * * @param managedResourceGroupName the managedResourceGroupName value to set. * @return the WorkspaceInner object itself. */ @@ -159,7 +167,7 @@ public WorkspaceInner withManagedResourceGroupName(String managedResourceGroupNa /** * Get the provisioningState property: Resource provisioning state. - * + * * @return the provisioningState value. */ public String provisioningState() { @@ -168,7 +176,7 @@ public String provisioningState() { /** * Get the sqlAdministratorLogin property: Login for workspace SQL active directory administrator. - * + * * @return the sqlAdministratorLogin value. */ public String sqlAdministratorLogin() { @@ -177,7 +185,7 @@ public String sqlAdministratorLogin() { /** * Set the sqlAdministratorLogin property: Login for workspace SQL active directory administrator. - * + * * @param sqlAdministratorLogin the sqlAdministratorLogin value to set. * @return the WorkspaceInner object itself. */ @@ -191,7 +199,7 @@ public WorkspaceInner withSqlAdministratorLogin(String sqlAdministratorLogin) { /** * Get the virtualNetworkProfile property: Virtual Network profile. - * + * * @return the virtualNetworkProfile value. */ public VirtualNetworkProfile virtualNetworkProfile() { @@ -200,7 +208,7 @@ public VirtualNetworkProfile virtualNetworkProfile() { /** * Set the virtualNetworkProfile property: Virtual Network profile. - * + * * @param virtualNetworkProfile the virtualNetworkProfile value to set. * @return the WorkspaceInner object itself. */ @@ -214,7 +222,7 @@ public WorkspaceInner withVirtualNetworkProfile(VirtualNetworkProfile virtualNet /** * Get the connectivityEndpoints property: Connectivity endpoints. - * + * * @return the connectivityEndpoints value. */ public Map connectivityEndpoints() { @@ -222,9 +230,9 @@ public Map connectivityEndpoints() { } /** - * Get the managedVirtualNetwork property: Setting this to 'default' will ensure that all compute for this workspace - * is in a virtual network managed on behalf of the user. - * + * Get the managedVirtualNetwork property: Setting this to 'default' will ensure that all compute for this + * workspace is in a virtual network managed on behalf of the user. + * * @return the managedVirtualNetwork value. */ public String managedVirtualNetwork() { @@ -232,9 +240,9 @@ public String managedVirtualNetwork() { } /** - * Set the managedVirtualNetwork property: Setting this to 'default' will ensure that all compute for this workspace - * is in a virtual network managed on behalf of the user. - * + * Set the managedVirtualNetwork property: Setting this to 'default' will ensure that all compute for this + * workspace is in a virtual network managed on behalf of the user. + * * @param managedVirtualNetwork the managedVirtualNetwork value to set. * @return the WorkspaceInner object itself. */ @@ -248,7 +256,7 @@ public WorkspaceInner withManagedVirtualNetwork(String managedVirtualNetwork) { /** * Get the privateEndpointConnections property: Private endpoint connections to the workspace. - * + * * @return the privateEndpointConnections value. */ public List privateEndpointConnections() { @@ -257,12 +265,12 @@ public List privateEndpointConnections() { /** * Set the privateEndpointConnections property: Private endpoint connections to the workspace. - * + * * @param privateEndpointConnections the privateEndpointConnections value to set. * @return the WorkspaceInner object itself. */ - public WorkspaceInner withPrivateEndpointConnections( - List privateEndpointConnections) { + public WorkspaceInner + withPrivateEndpointConnections(List privateEndpointConnections) { if (this.innerProperties() == null) { this.innerProperties = new WorkspaceProperties(); } @@ -272,7 +280,7 @@ public WorkspaceInner withPrivateEndpointConnections( /** * Get the encryption property: The encryption details of the workspace. - * + * * @return the encryption value. */ public EncryptionDetails encryption() { @@ -281,7 +289,7 @@ public EncryptionDetails encryption() { /** * Set the encryption property: The encryption details of the workspace. - * + * * @param encryption the encryption value to set. * @return the WorkspaceInner object itself. */ @@ -295,7 +303,7 @@ public WorkspaceInner withEncryption(EncryptionDetails encryption) { /** * Get the workspaceUid property: The workspace unique identifier. - * + * * @return the workspaceUid value. */ public UUID workspaceUid() { @@ -304,7 +312,7 @@ public UUID workspaceUid() { /** * Get the extraProperties property: Workspace level configs and feature flags. - * + * * @return the extraProperties value. */ public Object extraProperties() { @@ -313,7 +321,7 @@ public Object extraProperties() { /** * Get the managedVirtualNetworkSettings property: Managed Virtual Network Settings. - * + * * @return the managedVirtualNetworkSettings value. */ public ManagedVirtualNetworkSettings managedVirtualNetworkSettings() { @@ -322,12 +330,12 @@ public ManagedVirtualNetworkSettings managedVirtualNetworkSettings() { /** * Set the managedVirtualNetworkSettings property: Managed Virtual Network Settings. - * + * * @param managedVirtualNetworkSettings the managedVirtualNetworkSettings value to set. * @return the WorkspaceInner object itself. */ - public WorkspaceInner withManagedVirtualNetworkSettings( - ManagedVirtualNetworkSettings managedVirtualNetworkSettings) { + public WorkspaceInner + withManagedVirtualNetworkSettings(ManagedVirtualNetworkSettings managedVirtualNetworkSettings) { if (this.innerProperties() == null) { this.innerProperties = new WorkspaceProperties(); } @@ -337,7 +345,7 @@ public WorkspaceInner withManagedVirtualNetworkSettings( /** * Get the workspaceRepositoryConfiguration property: Git integration settings. - * + * * @return the workspaceRepositoryConfiguration value. */ public WorkspaceRepositoryConfiguration workspaceRepositoryConfiguration() { @@ -346,12 +354,12 @@ public WorkspaceRepositoryConfiguration workspaceRepositoryConfiguration() { /** * Set the workspaceRepositoryConfiguration property: Git integration settings. - * + * * @param workspaceRepositoryConfiguration the workspaceRepositoryConfiguration value to set. * @return the WorkspaceInner object itself. */ - public WorkspaceInner withWorkspaceRepositoryConfiguration( - WorkspaceRepositoryConfiguration workspaceRepositoryConfiguration) { + public WorkspaceInner + withWorkspaceRepositoryConfiguration(WorkspaceRepositoryConfiguration workspaceRepositoryConfiguration) { if (this.innerProperties() == null) { this.innerProperties = new WorkspaceProperties(); } @@ -361,7 +369,7 @@ public WorkspaceInner withWorkspaceRepositoryConfiguration( /** * Get the purviewConfiguration property: Purview Configuration. - * + * * @return the purviewConfiguration value. */ public PurviewConfiguration purviewConfiguration() { @@ -370,7 +378,7 @@ public PurviewConfiguration purviewConfiguration() { /** * Set the purviewConfiguration property: Purview Configuration. - * + * * @param purviewConfiguration the purviewConfiguration value to set. * @return the WorkspaceInner object itself. */ @@ -384,7 +392,7 @@ public WorkspaceInner withPurviewConfiguration(PurviewConfiguration purviewConfi /** * Get the adlaResourceId property: The ADLA resource ID. - * + * * @return the adlaResourceId value. */ public String adlaResourceId() { @@ -393,7 +401,7 @@ public String adlaResourceId() { /** * Get the publicNetworkAccess property: Enable or Disable public network access to workspace. - * + * * @return the publicNetworkAccess value. */ public WorkspacePublicNetworkAccess publicNetworkAccess() { @@ -402,7 +410,7 @@ public WorkspacePublicNetworkAccess publicNetworkAccess() { /** * Set the publicNetworkAccess property: Enable or Disable public network access to workspace. - * + * * @param publicNetworkAccess the publicNetworkAccess value to set. * @return the WorkspaceInner object itself. */ @@ -416,7 +424,7 @@ public WorkspaceInner withPublicNetworkAccess(WorkspacePublicNetworkAccess publi /** * Get the cspWorkspaceAdminProperties property: Initial workspace AAD admin properties for a CSP subscription. - * + * * @return the cspWorkspaceAdminProperties value. */ public CspWorkspaceAdminProperties cspWorkspaceAdminProperties() { @@ -425,7 +433,7 @@ public CspWorkspaceAdminProperties cspWorkspaceAdminProperties() { /** * Set the cspWorkspaceAdminProperties property: Initial workspace AAD admin properties for a CSP subscription. - * + * * @param cspWorkspaceAdminProperties the cspWorkspaceAdminProperties value to set. * @return the WorkspaceInner object itself. */ @@ -439,7 +447,7 @@ public WorkspaceInner withCspWorkspaceAdminProperties(CspWorkspaceAdminPropertie /** * Get the settings property: Workspace settings. - * + * * @return the settings value. */ public Map settings() { @@ -449,7 +457,7 @@ public Map settings() { /** * Get the azureADOnlyAuthentication property: Enable or Disable AzureADOnlyAuthentication on All Workspace * subresource. - * + * * @return the azureADOnlyAuthentication value. */ public Boolean azureADOnlyAuthentication() { @@ -459,7 +467,7 @@ public Boolean azureADOnlyAuthentication() { /** * Set the azureADOnlyAuthentication property: Enable or Disable AzureADOnlyAuthentication on All Workspace * subresource. - * + * * @param azureADOnlyAuthentication the azureADOnlyAuthentication value to set. * @return the WorkspaceInner object itself. */ @@ -473,7 +481,7 @@ public WorkspaceInner withAzureADOnlyAuthentication(Boolean azureADOnlyAuthentic /** * Get the trustedServiceBypassEnabled property: Is trustedServiceBypassEnabled for the workspace. - * + * * @return the trustedServiceBypassEnabled value. */ public Boolean trustedServiceBypassEnabled() { @@ -482,7 +490,7 @@ public Boolean trustedServiceBypassEnabled() { /** * Set the trustedServiceBypassEnabled property: Is trustedServiceBypassEnabled for the workspace. - * + * * @param trustedServiceBypassEnabled the trustedServiceBypassEnabled value to set. * @return the WorkspaceInner object itself. */ @@ -496,7 +504,7 @@ public WorkspaceInner withTrustedServiceBypassEnabled(Boolean trustedServiceBypa /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspacePatchProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspacePatchProperties.java index dc891d8f46d5..4947d22942df 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspacePatchProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspacePatchProperties.java @@ -12,7 +12,9 @@ import com.azure.resourcemanager.synapse.models.WorkspaceRepositoryConfiguration; import com.fasterxml.jackson.annotation.JsonProperty; -/** Workspace patch properties. */ +/** + * Workspace patch properties. + */ @Fluent public final class WorkspacePatchProperties { /* @@ -57,13 +59,15 @@ public final class WorkspacePatchProperties { @JsonProperty(value = "publicNetworkAccess") private WorkspacePublicNetworkAccess publicNetworkAccess; - /** Creates an instance of WorkspacePatchProperties class. */ + /** + * Creates an instance of WorkspacePatchProperties class. + */ public WorkspacePatchProperties() { } /** * Get the sqlAdministratorLoginPassword property: SQL administrator login password. - * + * * @return the sqlAdministratorLoginPassword value. */ public String sqlAdministratorLoginPassword() { @@ -72,7 +76,7 @@ public String sqlAdministratorLoginPassword() { /** * Set the sqlAdministratorLoginPassword property: SQL administrator login password. - * + * * @param sqlAdministratorLoginPassword the sqlAdministratorLoginPassword value to set. * @return the WorkspacePatchProperties object itself. */ @@ -83,7 +87,7 @@ public WorkspacePatchProperties withSqlAdministratorLoginPassword(String sqlAdmi /** * Get the managedVirtualNetworkSettings property: Managed Virtual Network Settings. - * + * * @return the managedVirtualNetworkSettings value. */ public ManagedVirtualNetworkSettings managedVirtualNetworkSettings() { @@ -92,19 +96,19 @@ public ManagedVirtualNetworkSettings managedVirtualNetworkSettings() { /** * Set the managedVirtualNetworkSettings property: Managed Virtual Network Settings. - * + * * @param managedVirtualNetworkSettings the managedVirtualNetworkSettings value to set. * @return the WorkspacePatchProperties object itself. */ - public WorkspacePatchProperties withManagedVirtualNetworkSettings( - ManagedVirtualNetworkSettings managedVirtualNetworkSettings) { + public WorkspacePatchProperties + withManagedVirtualNetworkSettings(ManagedVirtualNetworkSettings managedVirtualNetworkSettings) { this.managedVirtualNetworkSettings = managedVirtualNetworkSettings; return this; } /** * Get the workspaceRepositoryConfiguration property: Git integration settings. - * + * * @return the workspaceRepositoryConfiguration value. */ public WorkspaceRepositoryConfiguration workspaceRepositoryConfiguration() { @@ -113,19 +117,19 @@ public WorkspaceRepositoryConfiguration workspaceRepositoryConfiguration() { /** * Set the workspaceRepositoryConfiguration property: Git integration settings. - * + * * @param workspaceRepositoryConfiguration the workspaceRepositoryConfiguration value to set. * @return the WorkspacePatchProperties object itself. */ - public WorkspacePatchProperties withWorkspaceRepositoryConfiguration( - WorkspaceRepositoryConfiguration workspaceRepositoryConfiguration) { + public WorkspacePatchProperties + withWorkspaceRepositoryConfiguration(WorkspaceRepositoryConfiguration workspaceRepositoryConfiguration) { this.workspaceRepositoryConfiguration = workspaceRepositoryConfiguration; return this; } /** * Get the purviewConfiguration property: Purview Configuration. - * + * * @return the purviewConfiguration value. */ public PurviewConfiguration purviewConfiguration() { @@ -134,7 +138,7 @@ public PurviewConfiguration purviewConfiguration() { /** * Set the purviewConfiguration property: Purview Configuration. - * + * * @param purviewConfiguration the purviewConfiguration value to set. * @return the WorkspacePatchProperties object itself. */ @@ -145,7 +149,7 @@ public WorkspacePatchProperties withPurviewConfiguration(PurviewConfiguration pu /** * Get the provisioningState property: Resource provisioning state. - * + * * @return the provisioningState value. */ public String provisioningState() { @@ -154,7 +158,7 @@ public String provisioningState() { /** * Get the encryption property: The encryption details of the workspace. - * + * * @return the encryption value. */ public EncryptionDetails encryption() { @@ -163,7 +167,7 @@ public EncryptionDetails encryption() { /** * Set the encryption property: The encryption details of the workspace. - * + * * @param encryption the encryption value to set. * @return the WorkspacePatchProperties object itself. */ @@ -174,7 +178,7 @@ public WorkspacePatchProperties withEncryption(EncryptionDetails encryption) { /** * Get the publicNetworkAccess property: Enable or Disable public network access to workspace. - * + * * @return the publicNetworkAccess value. */ public WorkspacePublicNetworkAccess publicNetworkAccess() { @@ -183,7 +187,7 @@ public WorkspacePublicNetworkAccess publicNetworkAccess() { /** * Set the publicNetworkAccess property: Enable or Disable public network access to workspace. - * + * * @param publicNetworkAccess the publicNetworkAccess value to set. * @return the WorkspacePatchProperties object itself. */ @@ -194,7 +198,7 @@ public WorkspacePatchProperties withPublicNetworkAccess(WorkspacePublicNetworkAc /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspaceProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspaceProperties.java index e6ba6214625e..7b8e5c1d8785 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspaceProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspaceProperties.java @@ -19,7 +19,9 @@ import java.util.Map; import java.util.UUID; -/** Workspace properties. */ +/** + * Workspace properties. + */ @Fluent public final class WorkspaceProperties { /* @@ -153,13 +155,15 @@ public final class WorkspaceProperties { @JsonProperty(value = "trustedServiceBypassEnabled") private Boolean trustedServiceBypassEnabled; - /** Creates an instance of WorkspaceProperties class. */ + /** + * Creates an instance of WorkspaceProperties class. + */ public WorkspaceProperties() { } /** * Get the defaultDataLakeStorage property: Workspace default data lake storage account details. - * + * * @return the defaultDataLakeStorage value. */ public DataLakeStorageAccountDetails defaultDataLakeStorage() { @@ -168,7 +172,7 @@ public DataLakeStorageAccountDetails defaultDataLakeStorage() { /** * Set the defaultDataLakeStorage property: Workspace default data lake storage account details. - * + * * @param defaultDataLakeStorage the defaultDataLakeStorage value to set. * @return the WorkspaceProperties object itself. */ @@ -179,7 +183,7 @@ public WorkspaceProperties withDefaultDataLakeStorage(DataLakeStorageAccountDeta /** * Get the sqlAdministratorLoginPassword property: SQL administrator login password. - * + * * @return the sqlAdministratorLoginPassword value. */ public String sqlAdministratorLoginPassword() { @@ -188,7 +192,7 @@ public String sqlAdministratorLoginPassword() { /** * Set the sqlAdministratorLoginPassword property: SQL administrator login password. - * + * * @param sqlAdministratorLoginPassword the sqlAdministratorLoginPassword value to set. * @return the WorkspaceProperties object itself. */ @@ -200,9 +204,9 @@ public WorkspaceProperties withSqlAdministratorLoginPassword(String sqlAdministr /** * Get the managedResourceGroupName property: Workspace managed resource group. The resource group name uniquely * identifies the resource group within the user subscriptionId. The resource group name must be no longer than 90 - * characters long, and must be alphanumeric characters (Char.IsLetterOrDigit()) and '-', '_', '(', ')' and'.'. Note - * that the name cannot end with '.'. - * + * characters long, and must be alphanumeric characters (Char.IsLetterOrDigit()) and '-', '_', '(', ')' and'.'. + * Note that the name cannot end with '.'. + * * @return the managedResourceGroupName value. */ public String managedResourceGroupName() { @@ -212,9 +216,9 @@ public String managedResourceGroupName() { /** * Set the managedResourceGroupName property: Workspace managed resource group. The resource group name uniquely * identifies the resource group within the user subscriptionId. The resource group name must be no longer than 90 - * characters long, and must be alphanumeric characters (Char.IsLetterOrDigit()) and '-', '_', '(', ')' and'.'. Note - * that the name cannot end with '.'. - * + * characters long, and must be alphanumeric characters (Char.IsLetterOrDigit()) and '-', '_', '(', ')' and'.'. + * Note that the name cannot end with '.'. + * * @param managedResourceGroupName the managedResourceGroupName value to set. * @return the WorkspaceProperties object itself. */ @@ -225,7 +229,7 @@ public WorkspaceProperties withManagedResourceGroupName(String managedResourceGr /** * Get the provisioningState property: Resource provisioning state. - * + * * @return the provisioningState value. */ public String provisioningState() { @@ -234,7 +238,7 @@ public String provisioningState() { /** * Get the sqlAdministratorLogin property: Login for workspace SQL active directory administrator. - * + * * @return the sqlAdministratorLogin value. */ public String sqlAdministratorLogin() { @@ -243,7 +247,7 @@ public String sqlAdministratorLogin() { /** * Set the sqlAdministratorLogin property: Login for workspace SQL active directory administrator. - * + * * @param sqlAdministratorLogin the sqlAdministratorLogin value to set. * @return the WorkspaceProperties object itself. */ @@ -254,7 +258,7 @@ public WorkspaceProperties withSqlAdministratorLogin(String sqlAdministratorLogi /** * Get the virtualNetworkProfile property: Virtual Network profile. - * + * * @return the virtualNetworkProfile value. */ public VirtualNetworkProfile virtualNetworkProfile() { @@ -263,7 +267,7 @@ public VirtualNetworkProfile virtualNetworkProfile() { /** * Set the virtualNetworkProfile property: Virtual Network profile. - * + * * @param virtualNetworkProfile the virtualNetworkProfile value to set. * @return the WorkspaceProperties object itself. */ @@ -274,7 +278,7 @@ public WorkspaceProperties withVirtualNetworkProfile(VirtualNetworkProfile virtu /** * Get the connectivityEndpoints property: Connectivity endpoints. - * + * * @return the connectivityEndpoints value. */ public Map connectivityEndpoints() { @@ -282,9 +286,9 @@ public Map connectivityEndpoints() { } /** - * Get the managedVirtualNetwork property: Setting this to 'default' will ensure that all compute for this workspace - * is in a virtual network managed on behalf of the user. - * + * Get the managedVirtualNetwork property: Setting this to 'default' will ensure that all compute for this + * workspace is in a virtual network managed on behalf of the user. + * * @return the managedVirtualNetwork value. */ public String managedVirtualNetwork() { @@ -292,9 +296,9 @@ public String managedVirtualNetwork() { } /** - * Set the managedVirtualNetwork property: Setting this to 'default' will ensure that all compute for this workspace - * is in a virtual network managed on behalf of the user. - * + * Set the managedVirtualNetwork property: Setting this to 'default' will ensure that all compute for this + * workspace is in a virtual network managed on behalf of the user. + * * @param managedVirtualNetwork the managedVirtualNetwork value to set. * @return the WorkspaceProperties object itself. */ @@ -305,7 +309,7 @@ public WorkspaceProperties withManagedVirtualNetwork(String managedVirtualNetwor /** * Get the privateEndpointConnections property: Private endpoint connections to the workspace. - * + * * @return the privateEndpointConnections value. */ public List privateEndpointConnections() { @@ -314,19 +318,19 @@ public List privateEndpointConnections() { /** * Set the privateEndpointConnections property: Private endpoint connections to the workspace. - * + * * @param privateEndpointConnections the privateEndpointConnections value to set. * @return the WorkspaceProperties object itself. */ - public WorkspaceProperties withPrivateEndpointConnections( - List privateEndpointConnections) { + public WorkspaceProperties + withPrivateEndpointConnections(List privateEndpointConnections) { this.privateEndpointConnections = privateEndpointConnections; return this; } /** * Get the encryption property: The encryption details of the workspace. - * + * * @return the encryption value. */ public EncryptionDetails encryption() { @@ -335,7 +339,7 @@ public EncryptionDetails encryption() { /** * Set the encryption property: The encryption details of the workspace. - * + * * @param encryption the encryption value to set. * @return the WorkspaceProperties object itself. */ @@ -346,7 +350,7 @@ public WorkspaceProperties withEncryption(EncryptionDetails encryption) { /** * Get the workspaceUid property: The workspace unique identifier. - * + * * @return the workspaceUid value. */ public UUID workspaceUid() { @@ -355,7 +359,7 @@ public UUID workspaceUid() { /** * Get the extraProperties property: Workspace level configs and feature flags. - * + * * @return the extraProperties value. */ public Object extraProperties() { @@ -364,7 +368,7 @@ public Object extraProperties() { /** * Get the managedVirtualNetworkSettings property: Managed Virtual Network Settings. - * + * * @return the managedVirtualNetworkSettings value. */ public ManagedVirtualNetworkSettings managedVirtualNetworkSettings() { @@ -373,19 +377,19 @@ public ManagedVirtualNetworkSettings managedVirtualNetworkSettings() { /** * Set the managedVirtualNetworkSettings property: Managed Virtual Network Settings. - * + * * @param managedVirtualNetworkSettings the managedVirtualNetworkSettings value to set. * @return the WorkspaceProperties object itself. */ - public WorkspaceProperties withManagedVirtualNetworkSettings( - ManagedVirtualNetworkSettings managedVirtualNetworkSettings) { + public WorkspaceProperties + withManagedVirtualNetworkSettings(ManagedVirtualNetworkSettings managedVirtualNetworkSettings) { this.managedVirtualNetworkSettings = managedVirtualNetworkSettings; return this; } /** * Get the workspaceRepositoryConfiguration property: Git integration settings. - * + * * @return the workspaceRepositoryConfiguration value. */ public WorkspaceRepositoryConfiguration workspaceRepositoryConfiguration() { @@ -394,19 +398,19 @@ public WorkspaceRepositoryConfiguration workspaceRepositoryConfiguration() { /** * Set the workspaceRepositoryConfiguration property: Git integration settings. - * + * * @param workspaceRepositoryConfiguration the workspaceRepositoryConfiguration value to set. * @return the WorkspaceProperties object itself. */ - public WorkspaceProperties withWorkspaceRepositoryConfiguration( - WorkspaceRepositoryConfiguration workspaceRepositoryConfiguration) { + public WorkspaceProperties + withWorkspaceRepositoryConfiguration(WorkspaceRepositoryConfiguration workspaceRepositoryConfiguration) { this.workspaceRepositoryConfiguration = workspaceRepositoryConfiguration; return this; } /** * Get the purviewConfiguration property: Purview Configuration. - * + * * @return the purviewConfiguration value. */ public PurviewConfiguration purviewConfiguration() { @@ -415,7 +419,7 @@ public PurviewConfiguration purviewConfiguration() { /** * Set the purviewConfiguration property: Purview Configuration. - * + * * @param purviewConfiguration the purviewConfiguration value to set. * @return the WorkspaceProperties object itself. */ @@ -426,7 +430,7 @@ public WorkspaceProperties withPurviewConfiguration(PurviewConfiguration purview /** * Get the adlaResourceId property: The ADLA resource ID. - * + * * @return the adlaResourceId value. */ public String adlaResourceId() { @@ -435,7 +439,7 @@ public String adlaResourceId() { /** * Get the publicNetworkAccess property: Enable or Disable public network access to workspace. - * + * * @return the publicNetworkAccess value. */ public WorkspacePublicNetworkAccess publicNetworkAccess() { @@ -444,7 +448,7 @@ public WorkspacePublicNetworkAccess publicNetworkAccess() { /** * Set the publicNetworkAccess property: Enable or Disable public network access to workspace. - * + * * @param publicNetworkAccess the publicNetworkAccess value to set. * @return the WorkspaceProperties object itself. */ @@ -455,7 +459,7 @@ public WorkspaceProperties withPublicNetworkAccess(WorkspacePublicNetworkAccess /** * Get the cspWorkspaceAdminProperties property: Initial workspace AAD admin properties for a CSP subscription. - * + * * @return the cspWorkspaceAdminProperties value. */ public CspWorkspaceAdminProperties cspWorkspaceAdminProperties() { @@ -464,19 +468,19 @@ public CspWorkspaceAdminProperties cspWorkspaceAdminProperties() { /** * Set the cspWorkspaceAdminProperties property: Initial workspace AAD admin properties for a CSP subscription. - * + * * @param cspWorkspaceAdminProperties the cspWorkspaceAdminProperties value to set. * @return the WorkspaceProperties object itself. */ - public WorkspaceProperties withCspWorkspaceAdminProperties( - CspWorkspaceAdminProperties cspWorkspaceAdminProperties) { + public WorkspaceProperties + withCspWorkspaceAdminProperties(CspWorkspaceAdminProperties cspWorkspaceAdminProperties) { this.cspWorkspaceAdminProperties = cspWorkspaceAdminProperties; return this; } /** * Get the settings property: Workspace settings. - * + * * @return the settings value. */ public Map settings() { @@ -486,7 +490,7 @@ public Map settings() { /** * Get the azureADOnlyAuthentication property: Enable or Disable AzureADOnlyAuthentication on All Workspace * subresource. - * + * * @return the azureADOnlyAuthentication value. */ public Boolean azureADOnlyAuthentication() { @@ -496,7 +500,7 @@ public Boolean azureADOnlyAuthentication() { /** * Set the azureADOnlyAuthentication property: Enable or Disable AzureADOnlyAuthentication on All Workspace * subresource. - * + * * @param azureADOnlyAuthentication the azureADOnlyAuthentication value to set. * @return the WorkspaceProperties object itself. */ @@ -507,7 +511,7 @@ public WorkspaceProperties withAzureADOnlyAuthentication(Boolean azureADOnlyAuth /** * Get the trustedServiceBypassEnabled property: Is trustedServiceBypassEnabled for the workspace. - * + * * @return the trustedServiceBypassEnabled value. */ public Boolean trustedServiceBypassEnabled() { @@ -516,7 +520,7 @@ public Boolean trustedServiceBypassEnabled() { /** * Set the trustedServiceBypassEnabled property: Is trustedServiceBypassEnabled for the workspace. - * + * * @param trustedServiceBypassEnabled the trustedServiceBypassEnabled value to set. * @return the WorkspaceProperties object itself. */ @@ -527,7 +531,7 @@ public WorkspaceProperties withTrustedServiceBypassEnabled(Boolean trustedServic /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspaceUsageQuotaResponseInner.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspaceUsageQuotaResponseInner.java new file mode 100644 index 000000000000..e673652633a3 --- /dev/null +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/WorkspaceUsageQuotaResponseInner.java @@ -0,0 +1,88 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.synapse.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Workspaces per subscription usage and limit. + */ +@Immutable +public final class WorkspaceUsageQuotaResponseInner { + /* + * User-readable name of the metric. + */ + @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) + private String name; + + /* + * Current value of the metric. + */ + @JsonProperty(value = "currentValue", access = JsonProperty.Access.WRITE_ONLY) + private Double currentValue; + + /* + * Boundary value of the metric. + */ + @JsonProperty(value = "limit", access = JsonProperty.Access.WRITE_ONLY) + private Double limit; + + /* + * Unit of the metric. + */ + @JsonProperty(value = "unit", access = JsonProperty.Access.WRITE_ONLY) + private String unit; + + /** + * Creates an instance of WorkspaceUsageQuotaResponseInner class. + */ + public WorkspaceUsageQuotaResponseInner() { + } + + /** + * Get the name property: User-readable name of the metric. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Get the currentValue property: Current value of the metric. + * + * @return the currentValue value. + */ + public Double currentValue() { + return this.currentValue; + } + + /** + * Get the limit property: Boundary value of the metric. + * + * @return the limit value. + */ + public Double limit() { + return this.limit; + } + + /** + * Get the unit property: Unit of the metric. + * + * @return the unit value. + */ + public String unit() { + return this.unit; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/package-info.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/package-info.java index 218b393333eb..aa7d51a06808 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/package-info.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/models/package-info.java @@ -2,5 +2,8 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -/** Package containing the inner data models for SynapseManagementClient. Azure Synapse Analytics Management Client. */ +/** + * Package containing the inner data models for SynapseManagementClient. + * Azure Synapse Analytics Management Client. + */ package com.azure.resourcemanager.synapse.fluent.models; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/package-info.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/package-info.java index 6983c5a62cb5..6919d2c61989 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/package-info.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/package-info.java @@ -2,5 +2,8 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -/** Package containing the service clients for SynapseManagementClient. Azure Synapse Analytics Management Client. */ +/** + * Package containing the service clients for SynapseManagementClient. + * Azure Synapse Analytics Management Client. + */ package com.azure.resourcemanager.synapse.fluent; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AttachedDatabaseConfigurationImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AttachedDatabaseConfigurationImpl.java index 62776a8a523c..ff39c3e91787 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AttachedDatabaseConfigurationImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AttachedDatabaseConfigurationImpl.java @@ -15,10 +15,8 @@ import java.util.Collections; import java.util.List; -public final class AttachedDatabaseConfigurationImpl - implements AttachedDatabaseConfiguration, - AttachedDatabaseConfiguration.Definition, - AttachedDatabaseConfiguration.Update { +public final class AttachedDatabaseConfigurationImpl implements AttachedDatabaseConfiguration, + AttachedDatabaseConfiguration.Definition, AttachedDatabaseConfiguration.Update { private AttachedDatabaseConfigurationInner innerObject; private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; @@ -100,8 +98,8 @@ private com.azure.resourcemanager.synapse.SynapseManager manager() { private String resourceGroupName; - public AttachedDatabaseConfigurationImpl withExistingKustoPool( - String workspaceName, String kustoPoolName, String resourceGroupName) { + public AttachedDatabaseConfigurationImpl withExistingKustoPool(String workspaceName, String kustoPoolName, + String resourceGroupName) { this.workspaceName = workspaceName; this.kustoPoolName = kustoPoolName; this.resourceGroupName = resourceGroupName; @@ -109,32 +107,16 @@ public AttachedDatabaseConfigurationImpl withExistingKustoPool( } public AttachedDatabaseConfiguration create() { - this.innerObject = - serviceManager - .serviceClient() - .getKustoPoolAttachedDatabaseConfigurations() - .createOrUpdate( - workspaceName, - kustoPoolName, - attachedDatabaseConfigurationName, - resourceGroupName, - this.innerModel(), - Context.NONE); + this.innerObject + = serviceManager.serviceClient().getKustoPoolAttachedDatabaseConfigurations().createOrUpdate(workspaceName, + kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, this.innerModel(), Context.NONE); return this; } public AttachedDatabaseConfiguration create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getKustoPoolAttachedDatabaseConfigurations() - .createOrUpdate( - workspaceName, - kustoPoolName, - attachedDatabaseConfigurationName, - resourceGroupName, - this.innerModel(), - context); + this.innerObject + = serviceManager.serviceClient().getKustoPoolAttachedDatabaseConfigurations().createOrUpdate(workspaceName, + kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, this.innerModel(), context); return this; } @@ -149,66 +131,41 @@ public AttachedDatabaseConfigurationImpl update() { } public AttachedDatabaseConfiguration apply() { - this.innerObject = - serviceManager - .serviceClient() - .getKustoPoolAttachedDatabaseConfigurations() - .createOrUpdate( - workspaceName, - kustoPoolName, - attachedDatabaseConfigurationName, - resourceGroupName, - this.innerModel(), - Context.NONE); + this.innerObject + = serviceManager.serviceClient().getKustoPoolAttachedDatabaseConfigurations().createOrUpdate(workspaceName, + kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, this.innerModel(), Context.NONE); return this; } public AttachedDatabaseConfiguration apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getKustoPoolAttachedDatabaseConfigurations() - .createOrUpdate( - workspaceName, - kustoPoolName, - attachedDatabaseConfigurationName, - resourceGroupName, - this.innerModel(), - context); + this.innerObject + = serviceManager.serviceClient().getKustoPoolAttachedDatabaseConfigurations().createOrUpdate(workspaceName, + kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, this.innerModel(), context); return this; } - AttachedDatabaseConfigurationImpl( - AttachedDatabaseConfigurationInner innerObject, + AttachedDatabaseConfigurationImpl(AttachedDatabaseConfigurationInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.workspaceName = Utils.getValueFromIdByName(innerObject.id(), "workspaces"); - this.kustoPoolName = Utils.getValueFromIdByName(innerObject.id(), "kustoPools"); - this.attachedDatabaseConfigurationName = - Utils.getValueFromIdByName(innerObject.id(), "attachedDatabaseConfigurations"); - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.workspaceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workspaces"); + this.kustoPoolName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "kustoPools"); + this.attachedDatabaseConfigurationName + = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "attachedDatabaseConfigurations"); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); } public AttachedDatabaseConfiguration refresh() { - this.innerObject = - serviceManager - .serviceClient() - .getKustoPoolAttachedDatabaseConfigurations() - .getWithResponse( - workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, Context.NONE) - .getValue(); + this.innerObject + = serviceManager.serviceClient().getKustoPoolAttachedDatabaseConfigurations().getWithResponse(workspaceName, + kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, Context.NONE).getValue(); return this; } public AttachedDatabaseConfiguration refresh(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getKustoPoolAttachedDatabaseConfigurations() - .getWithResponse( - workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, context) - .getValue(); + this.innerObject + = serviceManager.serviceClient().getKustoPoolAttachedDatabaseConfigurations().getWithResponse(workspaceName, + kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, context).getValue(); return this; } @@ -232,14 +189,14 @@ public AttachedDatabaseConfigurationImpl withKustoPoolResourceId(String kustoPoo return this; } - public AttachedDatabaseConfigurationImpl withDefaultPrincipalsModificationKind( - DefaultPrincipalsModificationKind defaultPrincipalsModificationKind) { + public AttachedDatabaseConfigurationImpl + withDefaultPrincipalsModificationKind(DefaultPrincipalsModificationKind defaultPrincipalsModificationKind) { this.innerModel().withDefaultPrincipalsModificationKind(defaultPrincipalsModificationKind); return this; } - public AttachedDatabaseConfigurationImpl withTableLevelSharingProperties( - TableLevelSharingProperties tableLevelSharingProperties) { + public AttachedDatabaseConfigurationImpl + withTableLevelSharingProperties(TableLevelSharingProperties tableLevelSharingProperties) { this.innerModel().withTableLevelSharingProperties(tableLevelSharingProperties); return this; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AvailableRpOperationImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AvailableRpOperationImpl.java index 6ef65475a86c..31939f766f79 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AvailableRpOperationImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AvailableRpOperationImpl.java @@ -14,8 +14,8 @@ public final class AvailableRpOperationImpl implements AvailableRpOperation { private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - AvailableRpOperationImpl( - AvailableRpOperationInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + AvailableRpOperationImpl(AvailableRpOperationInner innerObject, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AzureADOnlyAuthenticationImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AzureADOnlyAuthenticationImpl.java index 808daa8c5548..c345c6b93061 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AzureADOnlyAuthenticationImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AzureADOnlyAuthenticationImpl.java @@ -17,8 +17,8 @@ public final class AzureADOnlyAuthenticationImpl private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - AzureADOnlyAuthenticationImpl( - AzureADOnlyAuthenticationInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + AzureADOnlyAuthenticationImpl(AzureADOnlyAuthenticationInner innerObject, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; } @@ -68,48 +68,33 @@ public AzureADOnlyAuthenticationImpl withExistingWorkspace(String resourceGroupN } public AzureADOnlyAuthentication create() { - this.innerObject = - serviceManager - .serviceClient() - .getAzureADOnlyAuthentications() - .create( - resourceGroupName, workspaceName, azureADOnlyAuthenticationName, this.innerModel(), Context.NONE); + this.innerObject = serviceManager.serviceClient().getAzureADOnlyAuthentications().create(resourceGroupName, + workspaceName, azureADOnlyAuthenticationName, this.innerModel(), Context.NONE); return this; } public AzureADOnlyAuthentication create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getAzureADOnlyAuthentications() - .create(resourceGroupName, workspaceName, azureADOnlyAuthenticationName, this.innerModel(), context); + this.innerObject = serviceManager.serviceClient().getAzureADOnlyAuthentications().create(resourceGroupName, + workspaceName, azureADOnlyAuthenticationName, this.innerModel(), context); return this; } - AzureADOnlyAuthenticationImpl( - AzureADOnlyAuthenticationName name, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + AzureADOnlyAuthenticationImpl(AzureADOnlyAuthenticationName name, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = new AzureADOnlyAuthenticationInner(); this.serviceManager = serviceManager; this.azureADOnlyAuthenticationName = name; } public AzureADOnlyAuthentication refresh() { - this.innerObject = - serviceManager - .serviceClient() - .getAzureADOnlyAuthentications() - .getWithResponse(resourceGroupName, workspaceName, azureADOnlyAuthenticationName, Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getAzureADOnlyAuthentications() + .getWithResponse(resourceGroupName, workspaceName, azureADOnlyAuthenticationName, Context.NONE).getValue(); return this; } public AzureADOnlyAuthentication refresh(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getAzureADOnlyAuthentications() - .getWithResponse(resourceGroupName, workspaceName, azureADOnlyAuthenticationName, context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getAzureADOnlyAuthentications() + .getWithResponse(resourceGroupName, workspaceName, azureADOnlyAuthenticationName, context).getValue(); return this; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AzureADOnlyAuthenticationsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AzureADOnlyAuthenticationsClientImpl.java index cdd74bb71024..a3a537cf86d7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AzureADOnlyAuthenticationsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AzureADOnlyAuthenticationsClientImpl.java @@ -38,24 +38,28 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in AzureADOnlyAuthenticationsClient. */ +/** + * An instance of this class provides access to all the operations defined in AzureADOnlyAuthenticationsClient. + */ public final class AzureADOnlyAuthenticationsClientImpl implements AzureADOnlyAuthenticationsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final AzureADOnlyAuthenticationsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of AzureADOnlyAuthenticationsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ AzureADOnlyAuthenticationsClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy - .create( - AzureADOnlyAuthenticationsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service = RestProxy.create(AzureADOnlyAuthenticationsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } @@ -66,70 +70,50 @@ public final class AzureADOnlyAuthenticationsClientImpl implements AzureADOnlyAu @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface AzureADOnlyAuthenticationsService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/azureADOnlyAuthentications/{azureADOnlyAuthenticationName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/azureADOnlyAuthentications/{azureADOnlyAuthenticationName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono> get(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("azureADOnlyAuthenticationName") AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/azureADOnlyAuthentications/{azureADOnlyAuthenticationName}") - @ExpectedResponses({200, 201, 202}) + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/azureADOnlyAuthentications/{azureADOnlyAuthenticationName}") + @ExpectedResponses({ 200, 201, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> create( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono>> create(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("azureADOnlyAuthenticationName") AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, @BodyParam("application/json") AzureADOnlyAuthenticationInner azureADOnlyAuthenticationInfo, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/azureADOnlyAuthentications") - @ExpectedResponses({200}) + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/azureADOnlyAuthentications") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) + Mono> list(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** * Get Azure Active Directory only authentication property - * - *

Gets a Azure Active Directory only authentication property. - * + * + * Gets a Azure Active Directory only authentication property. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param azureADOnlyAuthenticationName name of the property. @@ -137,22 +121,18 @@ Mono> listNext( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Azure Active Directory only authentication property along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, AzureADOnlyAuthenticationName azureADOnlyAuthenticationName) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, AzureADOnlyAuthenticationName azureADOnlyAuthenticationName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -162,34 +142,22 @@ private Mono> getWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (azureADOnlyAuthenticationName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter azureADOnlyAuthenticationName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter azureADOnlyAuthenticationName is required and cannot be null.")); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - azureADOnlyAuthenticationName, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, azureADOnlyAuthenticationName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get Azure Active Directory only authentication property - * - *

Gets a Azure Active Directory only authentication property. - * + * + * Gets a Azure Active Directory only authentication property. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param azureADOnlyAuthenticationName name of the property. @@ -198,25 +166,18 @@ private Mono> getWithResponseAsync( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Azure Active Directory only authentication property along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, - String workspaceName, - AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, - Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -226,31 +187,21 @@ private Mono> getWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (azureADOnlyAuthenticationName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter azureADOnlyAuthenticationName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter azureADOnlyAuthenticationName is required and cannot be null.")); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - azureADOnlyAuthenticationName, - accept, - context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, azureADOnlyAuthenticationName, accept, context); } /** * Get Azure Active Directory only authentication property - * - *

Gets a Azure Active Directory only authentication property. - * + * + * Gets a Azure Active Directory only authentication property. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param azureADOnlyAuthenticationName name of the property. @@ -260,17 +211,17 @@ private Mono> getWithResponseAsync( * @return a Azure Active Directory only authentication property on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String workspaceName, AzureADOnlyAuthenticationName azureADOnlyAuthenticationName) { + private Mono getAsync(String resourceGroupName, String workspaceName, + AzureADOnlyAuthenticationName azureADOnlyAuthenticationName) { return getWithResponseAsync(resourceGroupName, workspaceName, azureADOnlyAuthenticationName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Get Azure Active Directory only authentication property - * - *

Gets a Azure Active Directory only authentication property. - * + * + * Gets a Azure Active Directory only authentication property. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param azureADOnlyAuthenticationName name of the property. @@ -281,19 +232,16 @@ private Mono getAsync( * @return a Azure Active Directory only authentication property along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, - Context context) { + public Response getWithResponse(String resourceGroupName, String workspaceName, + AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, Context context) { return getWithResponseAsync(resourceGroupName, workspaceName, azureADOnlyAuthenticationName, context).block(); } /** * Get Azure Active Directory only authentication property - * - *

Gets a Azure Active Directory only authentication property. - * + * + * Gets a Azure Active Directory only authentication property. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param azureADOnlyAuthenticationName name of the property. @@ -303,17 +251,17 @@ public Response getWithResponse( * @return a Azure Active Directory only authentication property. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AzureADOnlyAuthenticationInner get( - String resourceGroupName, String workspaceName, AzureADOnlyAuthenticationName azureADOnlyAuthenticationName) { + public AzureADOnlyAuthenticationInner get(String resourceGroupName, String workspaceName, + AzureADOnlyAuthenticationName azureADOnlyAuthenticationName) { return getWithResponse(resourceGroupName, workspaceName, azureADOnlyAuthenticationName, Context.NONE) .getValue(); } /** * Create or Update Azure Active Directory only authentication property - * - *

Create or Update a Azure Active Directory only authentication property for the workspaces. - * + * + * Create or Update a Azure Active Directory only authentication property for the workspaces. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param azureADOnlyAuthenticationName name of the property. @@ -322,25 +270,19 @@ public AzureADOnlyAuthenticationInner get( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return azure Active Directory Only Authentication Info along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createWithResponseAsync( - String resourceGroupName, - String workspaceName, + private Mono>> createWithResponseAsync(String resourceGroupName, String workspaceName, AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, AzureADOnlyAuthenticationInner azureADOnlyAuthenticationInfo) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -350,43 +292,29 @@ private Mono>> createWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (azureADOnlyAuthenticationName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter azureADOnlyAuthenticationName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter azureADOnlyAuthenticationName is required and cannot be null.")); } if (azureADOnlyAuthenticationInfo == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter azureADOnlyAuthenticationInfo is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter azureADOnlyAuthenticationInfo is required and cannot be null.")); } else { azureADOnlyAuthenticationInfo.validate(); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .create( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - azureADOnlyAuthenticationName, - azureADOnlyAuthenticationInfo, - accept, - context)) + .withContext(context -> service.create(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, azureADOnlyAuthenticationName, + azureADOnlyAuthenticationInfo, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Create or Update Azure Active Directory only authentication property - * - *

Create or Update a Azure Active Directory only authentication property for the workspaces. - * + * + * Create or Update a Azure Active Directory only authentication property for the workspaces. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param azureADOnlyAuthenticationName name of the property. @@ -396,26 +324,19 @@ private Mono>> createWithResponseAsync( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return azure Active Directory Only Authentication Info along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createWithResponseAsync( - String resourceGroupName, - String workspaceName, + private Mono>> createWithResponseAsync(String resourceGroupName, String workspaceName, AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, - AzureADOnlyAuthenticationInner azureADOnlyAuthenticationInfo, - Context context) { + AzureADOnlyAuthenticationInner azureADOnlyAuthenticationInfo, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -425,40 +346,27 @@ private Mono>> createWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (azureADOnlyAuthenticationName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter azureADOnlyAuthenticationName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter azureADOnlyAuthenticationName is required and cannot be null.")); } if (azureADOnlyAuthenticationInfo == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter azureADOnlyAuthenticationInfo is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter azureADOnlyAuthenticationInfo is required and cannot be null.")); } else { azureADOnlyAuthenticationInfo.validate(); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .create( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - azureADOnlyAuthenticationName, - azureADOnlyAuthenticationInfo, - accept, - context); + return service.create(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, azureADOnlyAuthenticationName, azureADOnlyAuthenticationInfo, accept, context); } /** * Create or Update Azure Active Directory only authentication property - * - *

Create or Update a Azure Active Directory only authentication property for the workspaces. - * + * + * Create or Update a Azure Active Directory only authentication property for the workspaces. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param azureADOnlyAuthenticationName name of the property. @@ -470,28 +378,20 @@ private Mono>> createWithResponseAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, AzureADOnlyAuthenticationInner> beginCreateAsync( - String resourceGroupName, - String workspaceName, - AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, + String resourceGroupName, String workspaceName, AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, AzureADOnlyAuthenticationInner azureADOnlyAuthenticationInfo) { - Mono>> mono = - createWithResponseAsync( - resourceGroupName, workspaceName, azureADOnlyAuthenticationName, azureADOnlyAuthenticationInfo); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - AzureADOnlyAuthenticationInner.class, - AzureADOnlyAuthenticationInner.class, - this.client.getContext()); + Mono>> mono = createWithResponseAsync(resourceGroupName, workspaceName, + azureADOnlyAuthenticationName, azureADOnlyAuthenticationInfo); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), AzureADOnlyAuthenticationInner.class, AzureADOnlyAuthenticationInner.class, + this.client.getContext()); } /** * Create or Update Azure Active Directory only authentication property - * - *

Create or Update a Azure Active Directory only authentication property for the workspaces. - * + * + * Create or Update a Azure Active Directory only authentication property for the workspaces. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param azureADOnlyAuthenticationName name of the property. @@ -504,34 +404,21 @@ private PollerFlux, AzureADOnlyAuthen */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, AzureADOnlyAuthenticationInner> beginCreateAsync( - String resourceGroupName, - String workspaceName, - AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, - AzureADOnlyAuthenticationInner azureADOnlyAuthenticationInfo, - Context context) { + String resourceGroupName, String workspaceName, AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, + AzureADOnlyAuthenticationInner azureADOnlyAuthenticationInfo, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - createWithResponseAsync( - resourceGroupName, - workspaceName, - azureADOnlyAuthenticationName, - azureADOnlyAuthenticationInfo, - context); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - AzureADOnlyAuthenticationInner.class, - AzureADOnlyAuthenticationInner.class, - context); + Mono>> mono = createWithResponseAsync(resourceGroupName, workspaceName, + azureADOnlyAuthenticationName, azureADOnlyAuthenticationInfo, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), AzureADOnlyAuthenticationInner.class, AzureADOnlyAuthenticationInner.class, + context); } /** * Create or Update Azure Active Directory only authentication property - * - *

Create or Update a Azure Active Directory only authentication property for the workspaces. - * + * + * Create or Update a Azure Active Directory only authentication property for the workspaces. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param azureADOnlyAuthenticationName name of the property. @@ -543,21 +430,17 @@ private PollerFlux, AzureADOnlyAuthen */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, AzureADOnlyAuthenticationInner> beginCreate( - String resourceGroupName, - String workspaceName, - AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, + String resourceGroupName, String workspaceName, AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, AzureADOnlyAuthenticationInner azureADOnlyAuthenticationInfo) { - return this - .beginCreateAsync( - resourceGroupName, workspaceName, azureADOnlyAuthenticationName, azureADOnlyAuthenticationInfo) - .getSyncPoller(); + return this.beginCreateAsync(resourceGroupName, workspaceName, azureADOnlyAuthenticationName, + azureADOnlyAuthenticationInfo).getSyncPoller(); } /** * Create or Update Azure Active Directory only authentication property - * - *

Create or Update a Azure Active Directory only authentication property for the workspaces. - * + * + * Create or Update a Azure Active Directory only authentication property for the workspaces. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param azureADOnlyAuthenticationName name of the property. @@ -570,22 +453,17 @@ public SyncPoller, AzureADOnlyAuthent */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, AzureADOnlyAuthenticationInner> beginCreate( - String resourceGroupName, - String workspaceName, - AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, - AzureADOnlyAuthenticationInner azureADOnlyAuthenticationInfo, - Context context) { - return this - .beginCreateAsync( - resourceGroupName, workspaceName, azureADOnlyAuthenticationName, azureADOnlyAuthenticationInfo, context) - .getSyncPoller(); + String resourceGroupName, String workspaceName, AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, + AzureADOnlyAuthenticationInner azureADOnlyAuthenticationInfo, Context context) { + return this.beginCreateAsync(resourceGroupName, workspaceName, azureADOnlyAuthenticationName, + azureADOnlyAuthenticationInfo, context).getSyncPoller(); } /** * Create or Update Azure Active Directory only authentication property - * - *

Create or Update a Azure Active Directory only authentication property for the workspaces. - * + * + * Create or Update a Azure Active Directory only authentication property for the workspaces. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param azureADOnlyAuthenticationName name of the property. @@ -596,22 +474,18 @@ public SyncPoller, AzureADOnlyAuthent * @return azure Active Directory Only Authentication Info on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync( - String resourceGroupName, - String workspaceName, + private Mono createAsync(String resourceGroupName, String workspaceName, AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, AzureADOnlyAuthenticationInner azureADOnlyAuthenticationInfo) { - return beginCreateAsync( - resourceGroupName, workspaceName, azureADOnlyAuthenticationName, azureADOnlyAuthenticationInfo) - .last() - .flatMap(this.client::getLroFinalResultOrError); + return beginCreateAsync(resourceGroupName, workspaceName, azureADOnlyAuthenticationName, + azureADOnlyAuthenticationInfo).last().flatMap(this.client::getLroFinalResultOrError); } /** * Create or Update Azure Active Directory only authentication property - * - *

Create or Update a Azure Active Directory only authentication property for the workspaces. - * + * + * Create or Update a Azure Active Directory only authentication property for the workspaces. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param azureADOnlyAuthenticationName name of the property. @@ -623,23 +497,18 @@ private Mono createAsync( * @return azure Active Directory Only Authentication Info on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync( - String resourceGroupName, - String workspaceName, + private Mono createAsync(String resourceGroupName, String workspaceName, AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, - AzureADOnlyAuthenticationInner azureADOnlyAuthenticationInfo, - Context context) { - return beginCreateAsync( - resourceGroupName, workspaceName, azureADOnlyAuthenticationName, azureADOnlyAuthenticationInfo, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + AzureADOnlyAuthenticationInner azureADOnlyAuthenticationInfo, Context context) { + return beginCreateAsync(resourceGroupName, workspaceName, azureADOnlyAuthenticationName, + azureADOnlyAuthenticationInfo, context).last().flatMap(this.client::getLroFinalResultOrError); } /** * Create or Update Azure Active Directory only authentication property - * - *

Create or Update a Azure Active Directory only authentication property for the workspaces. - * + * + * Create or Update a Azure Active Directory only authentication property for the workspaces. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param azureADOnlyAuthenticationName name of the property. @@ -650,21 +519,18 @@ private Mono createAsync( * @return azure Active Directory Only Authentication Info. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AzureADOnlyAuthenticationInner create( - String resourceGroupName, - String workspaceName, + public AzureADOnlyAuthenticationInner create(String resourceGroupName, String workspaceName, AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, AzureADOnlyAuthenticationInner azureADOnlyAuthenticationInfo) { - return createAsync( - resourceGroupName, workspaceName, azureADOnlyAuthenticationName, azureADOnlyAuthenticationInfo) - .block(); + return createAsync(resourceGroupName, workspaceName, azureADOnlyAuthenticationName, + azureADOnlyAuthenticationInfo).block(); } /** * Create or Update Azure Active Directory only authentication property - * - *

Create or Update a Azure Active Directory only authentication property for the workspaces. - * + * + * Create or Update a Azure Active Directory only authentication property for the workspaces. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param azureADOnlyAuthenticationName name of the property. @@ -676,44 +542,36 @@ public AzureADOnlyAuthenticationInner create( * @return azure Active Directory Only Authentication Info. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AzureADOnlyAuthenticationInner create( - String resourceGroupName, - String workspaceName, + public AzureADOnlyAuthenticationInner create(String resourceGroupName, String workspaceName, AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, - AzureADOnlyAuthenticationInner azureADOnlyAuthenticationInfo, - Context context) { - return createAsync( - resourceGroupName, workspaceName, azureADOnlyAuthenticationName, azureADOnlyAuthenticationInfo, context) - .block(); + AzureADOnlyAuthenticationInner azureADOnlyAuthenticationInfo, Context context) { + return createAsync(resourceGroupName, workspaceName, azureADOnlyAuthenticationName, + azureADOnlyAuthenticationInfo, context).block(); } /** * Gets a list of Azure Active Directory only authentication property - * - *

Gets a list of Azure Active Directory only authentication property for a workspace. - * + * + * Gets a list of Azure Active Directory only authentication property for a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Azure Active Directory only authentication property for a workspace along with {@link - * PagedResponse} on successful completion of {@link Mono}. + * @return a list of Azure Active Directory only authentication property for a workspace along with + * {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String workspaceName) { + private Mono> listSinglePageAsync(String resourceGroupName, + String workspaceName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -725,57 +583,37 @@ private Mono> listSinglePageAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets a list of Azure Active Directory only authentication property - * - *

Gets a list of Azure Active Directory only authentication property for a workspace. - * + * + * Gets a list of Azure Active Directory only authentication property for a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Azure Active Directory only authentication property for a workspace along with {@link - * PagedResponse} on successful completion of {@link Mono}. + * @return a list of Azure Active Directory only authentication property for a workspace along with + * {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String workspaceName, Context context) { + private Mono> listSinglePageAsync(String resourceGroupName, + String workspaceName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -788,49 +626,36 @@ private Mono> listSinglePageAsync( final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * Gets a list of Azure Active Directory only authentication property - * - *

Gets a list of Azure Active Directory only authentication property for a workspace. - * + * + * Gets a list of Azure Active Directory only authentication property for a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of Azure Active Directory only authentication property for a workspace as paginated response with - * {@link PagedFlux}. + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String workspaceName) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, workspaceName), nextLink -> listNextSinglePageAsync(nextLink)); + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName), + nextLink -> listNextSinglePageAsync(nextLink)); } /** * Gets a list of Azure Active Directory only authentication property - * - *

Gets a list of Azure Active Directory only authentication property for a workspace. - * + * + * Gets a list of Azure Active Directory only authentication property for a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -838,28 +663,27 @@ private PagedFlux listAsync(String resourceGroup * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of Azure Active Directory only authentication property for a workspace as paginated response with - * {@link PagedFlux}. + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( - String resourceGroupName, String workspaceName, Context context) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, workspaceName, context), + private PagedFlux listAsync(String resourceGroupName, String workspaceName, + Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } /** * Gets a list of Azure Active Directory only authentication property - * - *

Gets a list of Azure Active Directory only authentication property for a workspace. - * + * + * Gets a list of Azure Active Directory only authentication property for a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of Azure Active Directory only authentication property for a workspace as paginated response with - * {@link PagedIterable}. + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String workspaceName) { @@ -868,9 +692,9 @@ public PagedIterable list(String resourceGroupNa /** * Gets a list of Azure Active Directory only authentication property - * - *

Gets a list of Azure Active Directory only authentication property for a workspace. - * + * + * Gets a list of Azure Active Directory only authentication property for a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -878,24 +702,25 @@ public PagedIterable list(String resourceGroupNa * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of Azure Active Directory only authentication property for a workspace as paginated response with - * {@link PagedIterable}. + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list( - String resourceGroupName, String workspaceName, Context context) { + public PagedIterable list(String resourceGroupName, String workspaceName, + Context context) { return new PagedIterable<>(listAsync(resourceGroupName, workspaceName, context)); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of active directory only authentications along with {@link PagedResponse} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -903,62 +728,43 @@ private Mono> listNextSinglePageAs return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of active directory only authentications along with {@link PagedResponse} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync( - String nextLink, Context context) { + private Mono> listNextSinglePageAsync(String nextLink, + Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AzureADOnlyAuthenticationsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AzureADOnlyAuthenticationsImpl.java index 453976b86284..627be0f67abe 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AzureADOnlyAuthenticationsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AzureADOnlyAuthenticationsImpl.java @@ -22,36 +22,28 @@ public final class AzureADOnlyAuthenticationsImpl implements AzureADOnlyAuthenti private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public AzureADOnlyAuthenticationsImpl( - AzureADOnlyAuthenticationsClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + public AzureADOnlyAuthenticationsImpl(AzureADOnlyAuthenticationsClient innerClient, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, - Context context) { - Response inner = - this - .serviceClient() - .getWithResponse(resourceGroupName, workspaceName, azureADOnlyAuthenticationName, context); + public Response getWithResponse(String resourceGroupName, String workspaceName, + AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, Context context) { + Response inner = this.serviceClient().getWithResponse(resourceGroupName, + workspaceName, azureADOnlyAuthenticationName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new AzureADOnlyAuthenticationImpl(inner.getValue(), this.manager())); } else { return null; } } - public AzureADOnlyAuthentication get( - String resourceGroupName, String workspaceName, AzureADOnlyAuthenticationName azureADOnlyAuthenticationName) { - AzureADOnlyAuthenticationInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, azureADOnlyAuthenticationName); + public AzureADOnlyAuthentication get(String resourceGroupName, String workspaceName, + AzureADOnlyAuthenticationName azureADOnlyAuthenticationName) { + AzureADOnlyAuthenticationInner inner + = this.serviceClient().get(resourceGroupName, workspaceName, azureADOnlyAuthenticationName); if (inner != null) { return new AzureADOnlyAuthenticationImpl(inner, this.manager()); } else { @@ -60,79 +52,60 @@ public AzureADOnlyAuthentication get( } public PagedIterable list(String resourceGroupName, String workspaceName) { - PagedIterable inner = - this.serviceClient().list(resourceGroupName, workspaceName); - return Utils.mapPage(inner, inner1 -> new AzureADOnlyAuthenticationImpl(inner1, this.manager())); + PagedIterable inner + = this.serviceClient().list(resourceGroupName, workspaceName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new AzureADOnlyAuthenticationImpl(inner1, this.manager())); } - public PagedIterable list( - String resourceGroupName, String workspaceName, Context context) { - PagedIterable inner = - this.serviceClient().list(resourceGroupName, workspaceName, context); - return Utils.mapPage(inner, inner1 -> new AzureADOnlyAuthenticationImpl(inner1, this.manager())); + public PagedIterable list(String resourceGroupName, String workspaceName, + Context context) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, workspaceName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new AzureADOnlyAuthenticationImpl(inner1, this.manager())); } public AzureADOnlyAuthentication getById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String azureADOnlyAuthenticationNameLocal = Utils.getValueFromIdByName(id, "azureADOnlyAuthentications"); + String azureADOnlyAuthenticationNameLocal + = ResourceManagerUtils.getValueFromIdByName(id, "azureADOnlyAuthentications"); if (azureADOnlyAuthenticationNameLocal == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'azureADOnlyAuthentications'.", - id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String + .format("The resource ID '%s' is not valid. Missing path segment 'azureADOnlyAuthentications'.", id))); } - AzureADOnlyAuthenticationName azureADOnlyAuthenticationName = - AzureADOnlyAuthenticationName.fromString(azureADOnlyAuthenticationNameLocal); - return this - .getWithResponse(resourceGroupName, workspaceName, azureADOnlyAuthenticationName, Context.NONE) + AzureADOnlyAuthenticationName azureADOnlyAuthenticationName + = AzureADOnlyAuthenticationName.fromString(azureADOnlyAuthenticationNameLocal); + return this.getWithResponse(resourceGroupName, workspaceName, azureADOnlyAuthenticationName, Context.NONE) .getValue(); } public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String azureADOnlyAuthenticationNameLocal = Utils.getValueFromIdByName(id, "azureADOnlyAuthentications"); + String azureADOnlyAuthenticationNameLocal + = ResourceManagerUtils.getValueFromIdByName(id, "azureADOnlyAuthentications"); if (azureADOnlyAuthenticationNameLocal == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'azureADOnlyAuthentications'.", - id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String + .format("The resource ID '%s' is not valid. Missing path segment 'azureADOnlyAuthentications'.", id))); } - AzureADOnlyAuthenticationName azureADOnlyAuthenticationName = - AzureADOnlyAuthenticationName.fromString(azureADOnlyAuthenticationNameLocal); + AzureADOnlyAuthenticationName azureADOnlyAuthenticationName + = AzureADOnlyAuthenticationName.fromString(azureADOnlyAuthenticationNameLocal); return this.getWithResponse(resourceGroupName, workspaceName, azureADOnlyAuthenticationName, context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AzureResourceSkuImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AzureResourceSkuImpl.java index 56696e2a775e..890e1f73b66c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AzureResourceSkuImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AzureResourceSkuImpl.java @@ -14,8 +14,8 @@ public final class AzureResourceSkuImpl implements AzureResourceSku { private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - AzureResourceSkuImpl( - AzureResourceSkuInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + AzureResourceSkuImpl(AzureResourceSkuInner innerObject, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/BigDataPoolResourceInfoImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/BigDataPoolResourceInfoImpl.java index d7d1f434599c..3144f157a345 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/BigDataPoolResourceInfoImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/BigDataPoolResourceInfoImpl.java @@ -171,22 +171,14 @@ public BigDataPoolResourceInfoImpl withExistingWorkspace(String resourceGroupNam } public BigDataPoolResourceInfo create() { - this.innerObject = - serviceManager - .serviceClient() - .getBigDataPools() - .createOrUpdate( - resourceGroupName, workspaceName, bigDataPoolName, this.innerModel(), createForce, Context.NONE); + this.innerObject = serviceManager.serviceClient().getBigDataPools().createOrUpdate(resourceGroupName, + workspaceName, bigDataPoolName, this.innerModel(), createForce, Context.NONE); return this; } public BigDataPoolResourceInfo create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getBigDataPools() - .createOrUpdate( - resourceGroupName, workspaceName, bigDataPoolName, this.innerModel(), createForce, context); + this.innerObject = serviceManager.serviceClient().getBigDataPools().createOrUpdate(resourceGroupName, + workspaceName, bigDataPoolName, this.innerModel(), createForce, context); return this; } @@ -203,53 +195,36 @@ public BigDataPoolResourceInfoImpl update() { } public BigDataPoolResourceInfo apply() { - this.innerObject = - serviceManager - .serviceClient() - .getBigDataPools() - .updateWithResponse( - resourceGroupName, workspaceName, bigDataPoolName, updateBigDataPoolPatchInfo, Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getBigDataPools().updateWithResponse(resourceGroupName, + workspaceName, bigDataPoolName, updateBigDataPoolPatchInfo, Context.NONE).getValue(); return this; } public BigDataPoolResourceInfo apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getBigDataPools() - .updateWithResponse( - resourceGroupName, workspaceName, bigDataPoolName, updateBigDataPoolPatchInfo, context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getBigDataPools() + .updateWithResponse(resourceGroupName, workspaceName, bigDataPoolName, updateBigDataPoolPatchInfo, context) + .getValue(); return this; } - BigDataPoolResourceInfoImpl( - BigDataPoolResourceInfoInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + BigDataPoolResourceInfoImpl(BigDataPoolResourceInfoInner innerObject, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.workspaceName = Utils.getValueFromIdByName(innerObject.id(), "workspaces"); - this.bigDataPoolName = Utils.getValueFromIdByName(innerObject.id(), "bigDataPools"); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.workspaceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workspaces"); + this.bigDataPoolName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "bigDataPools"); } public BigDataPoolResourceInfo refresh() { - this.innerObject = - serviceManager - .serviceClient() - .getBigDataPools() - .getWithResponse(resourceGroupName, workspaceName, bigDataPoolName, Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getBigDataPools() + .getWithResponse(resourceGroupName, workspaceName, bigDataPoolName, Context.NONE).getValue(); return this; } public BigDataPoolResourceInfo refresh(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getBigDataPools() - .getWithResponse(resourceGroupName, workspaceName, bigDataPoolName, context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getBigDataPools() + .getWithResponse(resourceGroupName, workspaceName, bigDataPoolName, context).getValue(); return this; } @@ -303,8 +278,13 @@ public BigDataPoolResourceInfoImpl withSessionLevelPackagesEnabled(Boolean sessi return this; } - public BigDataPoolResourceInfoImpl withDynamicExecutorAllocation( - DynamicExecutorAllocation dynamicExecutorAllocation) { + public BigDataPoolResourceInfoImpl withCacheSize(Integer cacheSize) { + this.innerModel().withCacheSize(cacheSize); + return this; + } + + public BigDataPoolResourceInfoImpl + withDynamicExecutorAllocation(DynamicExecutorAllocation dynamicExecutorAllocation) { this.innerModel().withDynamicExecutorAllocation(dynamicExecutorAllocation); return this; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/BigDataPoolsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/BigDataPoolsClientImpl.java index 77e7e0dbb870..fed0d5f8a0f2 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/BigDataPoolsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/BigDataPoolsClientImpl.java @@ -40,22 +40,28 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in BigDataPoolsClient. */ +/** + * An instance of this class provides access to all the operations defined in BigDataPoolsClient. + */ public final class BigDataPoolsClientImpl implements BigDataPoolsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final BigDataPoolsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of BigDataPoolsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ BigDataPoolsClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy.create(BigDataPoolsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service + = RestProxy.create(BigDataPoolsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } @@ -66,104 +72,71 @@ public final class BigDataPoolsClientImpl implements BigDataPoolsClient { @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface BigDataPoolsService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/bigDataPools/{bigDataPoolName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("bigDataPoolName") String bigDataPoolName, - @HeaderParam("Accept") String accept, + Mono> get(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("bigDataPoolName") String bigDataPoolName, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Patch( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/bigDataPools/{bigDataPoolName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> update( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono> update(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("bigDataPoolName") String bigDataPoolName, @BodyParam("application/json") BigDataPoolPatchInfo bigDataPoolPatchInfo, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/bigDataPools/{bigDataPoolName}") - @ExpectedResponses({200, 202}) + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("bigDataPoolName") String bigDataPoolName, - @QueryParam("force") Boolean force, + Mono>> createOrUpdate(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("bigDataPoolName") String bigDataPoolName, @QueryParam("force") Boolean force, @BodyParam("application/json") BigDataPoolResourceInfoInner bigDataPoolInfo, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/bigDataPools/{bigDataPoolName}") - @ExpectedResponses({200, 202, 204}) + @Headers({ "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}") + @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("bigDataPoolName") String bigDataPoolName, - @HeaderParam("Accept") String accept, + Mono>> delete(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("bigDataPoolName") String bigDataPoolName, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/bigDataPools") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/bigDataPools") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByWorkspace( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @HeaderParam("Accept") String accept, - Context context); + Mono> listByWorkspace(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByWorkspaceNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** * Get Big Data pool - * - *

Get a Big Data pool. - * + * + * Get a Big Data pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. @@ -173,19 +146,15 @@ Mono> listByWorkspaceNext( * @return a Big Data pool along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, String bigDataPoolName) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, String bigDataPoolName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -201,26 +170,16 @@ private Mono> getWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - bigDataPoolName, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, bigDataPoolName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get Big Data pool - * - *

Get a Big Data pool. - * + * + * Get a Big Data pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. @@ -231,19 +190,15 @@ private Mono> getWithResponseAsync( * @return a Big Data pool along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, String bigDataPoolName, Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, String bigDataPoolName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -259,23 +214,15 @@ private Mono> getWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - bigDataPoolName, - accept, - context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, bigDataPoolName, accept, context); } /** * Get Big Data pool - * - *

Get a Big Data pool. - * + * + * Get a Big Data pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. @@ -285,17 +232,17 @@ private Mono> getWithResponseAsync( * @return a Big Data pool on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String workspaceName, String bigDataPoolName) { + private Mono getAsync(String resourceGroupName, String workspaceName, + String bigDataPoolName) { return getWithResponseAsync(resourceGroupName, workspaceName, bigDataPoolName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Get Big Data pool - * - *

Get a Big Data pool. - * + * + * Get a Big Data pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. @@ -306,16 +253,16 @@ private Mono getAsync( * @return a Big Data pool along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String workspaceName, String bigDataPoolName, Context context) { + public Response getWithResponse(String resourceGroupName, String workspaceName, + String bigDataPoolName, Context context) { return getWithResponseAsync(resourceGroupName, workspaceName, bigDataPoolName, context).block(); } /** * Get Big Data pool - * - *

Get a Big Data pool. - * + * + * Get a Big Data pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. @@ -331,9 +278,9 @@ public BigDataPoolResourceInfoInner get(String resourceGroupName, String workspa /** * Update a Big Data pool. - * - *

Patch a Big Data pool. - * + * + * Patch a Big Data pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. @@ -344,22 +291,15 @@ public BigDataPoolResourceInfoInner get(String resourceGroupName, String workspa * @return big Data pool along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateWithResponseAsync( - String resourceGroupName, - String workspaceName, - String bigDataPoolName, - BigDataPoolPatchInfo bigDataPoolPatchInfo) { + private Mono> updateWithResponseAsync(String resourceGroupName, + String workspaceName, String bigDataPoolName, BigDataPoolPatchInfo bigDataPoolPatchInfo) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -382,26 +322,16 @@ private Mono> updateWithResponseAsync( final String accept = "application/json"; return FluxUtil .withContext( - context -> - service - .update( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - bigDataPoolName, - bigDataPoolPatchInfo, - accept, - context)) + context -> service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, bigDataPoolName, bigDataPoolPatchInfo, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Update a Big Data pool. - * - *

Patch a Big Data pool. - * + * + * Patch a Big Data pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. @@ -413,23 +343,15 @@ private Mono> updateWithResponseAsync( * @return big Data pool along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateWithResponseAsync( - String resourceGroupName, - String workspaceName, - String bigDataPoolName, - BigDataPoolPatchInfo bigDataPoolPatchInfo, - Context context) { + private Mono> updateWithResponseAsync(String resourceGroupName, + String workspaceName, String bigDataPoolName, BigDataPoolPatchInfo bigDataPoolPatchInfo, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -451,24 +373,15 @@ private Mono> updateWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .update( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - bigDataPoolName, - bigDataPoolPatchInfo, - accept, - context); + return service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, bigDataPoolName, bigDataPoolPatchInfo, accept, context); } /** * Update a Big Data pool. - * - *

Patch a Big Data pool. - * + * + * Patch a Big Data pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. @@ -479,20 +392,17 @@ private Mono> updateWithResponseAsync( * @return big Data pool on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync( - String resourceGroupName, - String workspaceName, - String bigDataPoolName, - BigDataPoolPatchInfo bigDataPoolPatchInfo) { + private Mono updateAsync(String resourceGroupName, String workspaceName, + String bigDataPoolName, BigDataPoolPatchInfo bigDataPoolPatchInfo) { return updateWithResponseAsync(resourceGroupName, workspaceName, bigDataPoolName, bigDataPoolPatchInfo) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Update a Big Data pool. - * - *

Patch a Big Data pool. - * + * + * Patch a Big Data pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. @@ -504,21 +414,17 @@ private Mono updateAsync( * @return big Data pool along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateWithResponse( - String resourceGroupName, - String workspaceName, - String bigDataPoolName, - BigDataPoolPatchInfo bigDataPoolPatchInfo, - Context context) { + public Response updateWithResponse(String resourceGroupName, String workspaceName, + String bigDataPoolName, BigDataPoolPatchInfo bigDataPoolPatchInfo, Context context) { return updateWithResponseAsync(resourceGroupName, workspaceName, bigDataPoolName, bigDataPoolPatchInfo, context) .block(); } /** * Update a Big Data pool. - * - *

Patch a Big Data pool. - * + * + * Patch a Big Data pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. @@ -529,10 +435,7 @@ public Response updateWithResponse( * @return big Data pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - public BigDataPoolResourceInfoInner update( - String resourceGroupName, - String workspaceName, - String bigDataPoolName, + public BigDataPoolResourceInfoInner update(String resourceGroupName, String workspaceName, String bigDataPoolName, BigDataPoolPatchInfo bigDataPoolPatchInfo) { return updateWithResponse(resourceGroupName, workspaceName, bigDataPoolName, bigDataPoolPatchInfo, Context.NONE) .getValue(); @@ -540,9 +443,9 @@ public BigDataPoolResourceInfoInner update( /** * Create a Big Data pool. - * - *

Create a new Big Data pool. - * + * + * Create a new Big Data pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. @@ -554,23 +457,15 @@ public BigDataPoolResourceInfoInner update( * @return big Data pool along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String resourceGroupName, - String workspaceName, - String bigDataPoolName, - BigDataPoolResourceInfoInner bigDataPoolInfo, - Boolean force) { + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String workspaceName, String bigDataPoolName, BigDataPoolResourceInfoInner bigDataPoolInfo, Boolean force) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -592,28 +487,17 @@ private Mono>> createOrUpdateWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - bigDataPoolName, - force, - bigDataPoolInfo, - accept, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, bigDataPoolName, force, + bigDataPoolInfo, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Create a Big Data pool. - * - *

Create a new Big Data pool. - * + * + * Create a new Big Data pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. @@ -626,24 +510,16 @@ private Mono>> createOrUpdateWithResponseAsync( * @return big Data pool along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String resourceGroupName, - String workspaceName, - String bigDataPoolName, - BigDataPoolResourceInfoInner bigDataPoolInfo, - Boolean force, + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String workspaceName, String bigDataPoolName, BigDataPoolResourceInfoInner bigDataPoolInfo, Boolean force, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -665,25 +541,15 @@ private Mono>> createOrUpdateWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - bigDataPoolName, - force, - bigDataPoolInfo, - accept, - context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, bigDataPoolName, force, bigDataPoolInfo, accept, context); } /** * Create a Big Data pool. - * - *

Create a new Big Data pool. - * + * + * Create a new Big Data pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. @@ -696,28 +562,20 @@ private Mono>> createOrUpdateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, BigDataPoolResourceInfoInner> beginCreateOrUpdateAsync( - String resourceGroupName, - String workspaceName, - String bigDataPoolName, - BigDataPoolResourceInfoInner bigDataPoolInfo, - Boolean force) { - Mono>> mono = - createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, bigDataPoolName, bigDataPoolInfo, force); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - BigDataPoolResourceInfoInner.class, - BigDataPoolResourceInfoInner.class, - this.client.getContext()); + String resourceGroupName, String workspaceName, String bigDataPoolName, + BigDataPoolResourceInfoInner bigDataPoolInfo, Boolean force) { + Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, + bigDataPoolName, bigDataPoolInfo, force); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), BigDataPoolResourceInfoInner.class, BigDataPoolResourceInfoInner.class, + this.client.getContext()); } /** * Create a Big Data pool. - * - *

Create a new Big Data pool. - * + * + * Create a new Big Data pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. @@ -729,28 +587,21 @@ private PollerFlux, BigDataPoolResource */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, BigDataPoolResourceInfoInner> beginCreateOrUpdateAsync( - String resourceGroupName, - String workspaceName, - String bigDataPoolName, + String resourceGroupName, String workspaceName, String bigDataPoolName, BigDataPoolResourceInfoInner bigDataPoolInfo) { final Boolean force = null; - Mono>> mono = - createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, bigDataPoolName, bigDataPoolInfo, force); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - BigDataPoolResourceInfoInner.class, - BigDataPoolResourceInfoInner.class, - this.client.getContext()); + Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, + bigDataPoolName, bigDataPoolInfo, force); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), BigDataPoolResourceInfoInner.class, BigDataPoolResourceInfoInner.class, + this.client.getContext()); } /** * Create a Big Data pool. - * - *

Create a new Big Data pool. - * + * + * Create a new Big Data pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. @@ -764,31 +615,21 @@ private PollerFlux, BigDataPoolResource */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, BigDataPoolResourceInfoInner> beginCreateOrUpdateAsync( - String resourceGroupName, - String workspaceName, - String bigDataPoolName, - BigDataPoolResourceInfoInner bigDataPoolInfo, - Boolean force, - Context context) { + String resourceGroupName, String workspaceName, String bigDataPoolName, + BigDataPoolResourceInfoInner bigDataPoolInfo, Boolean force, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - createOrUpdateWithResponseAsync( - resourceGroupName, workspaceName, bigDataPoolName, bigDataPoolInfo, force, context); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - BigDataPoolResourceInfoInner.class, - BigDataPoolResourceInfoInner.class, - context); + Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, + bigDataPoolName, bigDataPoolInfo, force, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), BigDataPoolResourceInfoInner.class, BigDataPoolResourceInfoInner.class, + context); } /** * Create a Big Data pool. - * - *

Create a new Big Data pool. - * + * + * Create a new Big Data pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. @@ -800,21 +641,18 @@ private PollerFlux, BigDataPoolResource */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, BigDataPoolResourceInfoInner> beginCreateOrUpdate( - String resourceGroupName, - String workspaceName, - String bigDataPoolName, + String resourceGroupName, String workspaceName, String bigDataPoolName, BigDataPoolResourceInfoInner bigDataPoolInfo) { final Boolean force = null; - return this - .beginCreateOrUpdateAsync(resourceGroupName, workspaceName, bigDataPoolName, bigDataPoolInfo, force) + return this.beginCreateOrUpdateAsync(resourceGroupName, workspaceName, bigDataPoolName, bigDataPoolInfo, force) .getSyncPoller(); } /** * Create a Big Data pool. - * - *

Create a new Big Data pool. - * + * + * Create a new Big Data pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. @@ -828,23 +666,17 @@ public SyncPoller, BigDataPoolResourceI */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, BigDataPoolResourceInfoInner> beginCreateOrUpdate( - String resourceGroupName, - String workspaceName, - String bigDataPoolName, - BigDataPoolResourceInfoInner bigDataPoolInfo, - Boolean force, - Context context) { - return this - .beginCreateOrUpdateAsync( - resourceGroupName, workspaceName, bigDataPoolName, bigDataPoolInfo, force, context) - .getSyncPoller(); + String resourceGroupName, String workspaceName, String bigDataPoolName, + BigDataPoolResourceInfoInner bigDataPoolInfo, Boolean force, Context context) { + return this.beginCreateOrUpdateAsync(resourceGroupName, workspaceName, bigDataPoolName, bigDataPoolInfo, force, + context).getSyncPoller(); } /** * Create a Big Data pool. - * - *

Create a new Big Data pool. - * + * + * Create a new Big Data pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. @@ -856,22 +688,17 @@ public SyncPoller, BigDataPoolResourceI * @return big Data pool on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, - String workspaceName, - String bigDataPoolName, - BigDataPoolResourceInfoInner bigDataPoolInfo, - Boolean force) { + private Mono createOrUpdateAsync(String resourceGroupName, String workspaceName, + String bigDataPoolName, BigDataPoolResourceInfoInner bigDataPoolInfo, Boolean force) { return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, bigDataPoolName, bigDataPoolInfo, force) - .last() - .flatMap(this.client::getLroFinalResultOrError); + .last().flatMap(this.client::getLroFinalResultOrError); } /** * Create a Big Data pool. - * - *

Create a new Big Data pool. - * + * + * Create a new Big Data pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. @@ -882,22 +709,18 @@ private Mono createOrUpdateAsync( * @return big Data pool on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, - String workspaceName, - String bigDataPoolName, - BigDataPoolResourceInfoInner bigDataPoolInfo) { + private Mono createOrUpdateAsync(String resourceGroupName, String workspaceName, + String bigDataPoolName, BigDataPoolResourceInfoInner bigDataPoolInfo) { final Boolean force = null; return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, bigDataPoolName, bigDataPoolInfo, force) - .last() - .flatMap(this.client::getLroFinalResultOrError); + .last().flatMap(this.client::getLroFinalResultOrError); } /** * Create a Big Data pool. - * - *

Create a new Big Data pool. - * + * + * Create a new Big Data pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. @@ -910,24 +733,17 @@ private Mono createOrUpdateAsync( * @return big Data pool on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, - String workspaceName, - String bigDataPoolName, - BigDataPoolResourceInfoInner bigDataPoolInfo, - Boolean force, - Context context) { - return beginCreateOrUpdateAsync( - resourceGroupName, workspaceName, bigDataPoolName, bigDataPoolInfo, force, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono createOrUpdateAsync(String resourceGroupName, String workspaceName, + String bigDataPoolName, BigDataPoolResourceInfoInner bigDataPoolInfo, Boolean force, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, bigDataPoolName, bigDataPoolInfo, force, + context).last().flatMap(this.client::getLroFinalResultOrError); } /** * Create a Big Data pool. - * - *

Create a new Big Data pool. - * + * + * Create a new Big Data pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. @@ -938,20 +754,17 @@ private Mono createOrUpdateAsync( * @return big Data pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - public BigDataPoolResourceInfoInner createOrUpdate( - String resourceGroupName, - String workspaceName, - String bigDataPoolName, - BigDataPoolResourceInfoInner bigDataPoolInfo) { + public BigDataPoolResourceInfoInner createOrUpdate(String resourceGroupName, String workspaceName, + String bigDataPoolName, BigDataPoolResourceInfoInner bigDataPoolInfo) { final Boolean force = null; return createOrUpdateAsync(resourceGroupName, workspaceName, bigDataPoolName, bigDataPoolInfo, force).block(); } /** * Create a Big Data pool. - * - *

Create a new Big Data pool. - * + * + * Create a new Big Data pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. @@ -964,22 +777,17 @@ public BigDataPoolResourceInfoInner createOrUpdate( * @return big Data pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - public BigDataPoolResourceInfoInner createOrUpdate( - String resourceGroupName, - String workspaceName, - String bigDataPoolName, - BigDataPoolResourceInfoInner bigDataPoolInfo, - Boolean force, - Context context) { + public BigDataPoolResourceInfoInner createOrUpdate(String resourceGroupName, String workspaceName, + String bigDataPoolName, BigDataPoolResourceInfoInner bigDataPoolInfo, Boolean force, Context context) { return createOrUpdateAsync(resourceGroupName, workspaceName, bigDataPoolName, bigDataPoolInfo, force, context) .block(); } /** * Delete a Big Data pool. - * - *

Delete a Big Data pool from the workspace. - * + * + * Delete a Big Data pool from the workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. @@ -989,19 +797,15 @@ public BigDataPoolResourceInfoInner createOrUpdate( * @return big Data pool along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync( - String resourceGroupName, String workspaceName, String bigDataPoolName) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String workspaceName, + String bigDataPoolName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1017,26 +821,16 @@ private Mono>> deleteWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .delete( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - bigDataPoolName, - accept, - context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, bigDataPoolName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Delete a Big Data pool. - * - *

Delete a Big Data pool from the workspace. - * + * + * Delete a Big Data pool from the workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. @@ -1047,19 +841,15 @@ private Mono>> deleteWithResponseAsync( * @return big Data pool along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync( - String resourceGroupName, String workspaceName, String bigDataPoolName, Context context) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String workspaceName, + String bigDataPoolName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1075,23 +865,15 @@ private Mono>> deleteWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .delete( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - bigDataPoolName, - accept, - context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, bigDataPoolName, accept, context); } /** * Delete a Big Data pool. - * - *

Delete a Big Data pool from the workspace. - * + * + * Delete a Big Data pool from the workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. @@ -1101,25 +883,20 @@ private Mono>> deleteWithResponseAsync( * @return the {@link PollerFlux} for polling of big Data pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, BigDataPoolResourceInfoInner> beginDeleteAsync( - String resourceGroupName, String workspaceName, String bigDataPoolName) { - Mono>> mono = - deleteWithResponseAsync(resourceGroupName, workspaceName, bigDataPoolName); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - BigDataPoolResourceInfoInner.class, - BigDataPoolResourceInfoInner.class, - this.client.getContext()); + private PollerFlux, BigDataPoolResourceInfoInner> + beginDeleteAsync(String resourceGroupName, String workspaceName, String bigDataPoolName) { + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, workspaceName, bigDataPoolName); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), BigDataPoolResourceInfoInner.class, BigDataPoolResourceInfoInner.class, + this.client.getContext()); } /** * Delete a Big Data pool. - * - *

Delete a Big Data pool from the workspace. - * + * + * Delete a Big Data pool from the workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. @@ -1130,26 +907,21 @@ private PollerFlux, BigDataPoolResource * @return the {@link PollerFlux} for polling of big Data pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, BigDataPoolResourceInfoInner> beginDeleteAsync( - String resourceGroupName, String workspaceName, String bigDataPoolName, Context context) { + private PollerFlux, BigDataPoolResourceInfoInner> + beginDeleteAsync(String resourceGroupName, String workspaceName, String bigDataPoolName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - deleteWithResponseAsync(resourceGroupName, workspaceName, bigDataPoolName, context); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - BigDataPoolResourceInfoInner.class, - BigDataPoolResourceInfoInner.class, - context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, workspaceName, bigDataPoolName, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), BigDataPoolResourceInfoInner.class, BigDataPoolResourceInfoInner.class, + context); } /** * Delete a Big Data pool. - * - *

Delete a Big Data pool from the workspace. - * + * + * Delete a Big Data pool from the workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. @@ -1159,16 +931,16 @@ private PollerFlux, BigDataPoolResource * @return the {@link SyncPoller} for polling of big Data pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, BigDataPoolResourceInfoInner> beginDelete( - String resourceGroupName, String workspaceName, String bigDataPoolName) { + public SyncPoller, BigDataPoolResourceInfoInner> + beginDelete(String resourceGroupName, String workspaceName, String bigDataPoolName) { return this.beginDeleteAsync(resourceGroupName, workspaceName, bigDataPoolName).getSyncPoller(); } /** * Delete a Big Data pool. - * - *

Delete a Big Data pool from the workspace. - * + * + * Delete a Big Data pool from the workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. @@ -1179,16 +951,16 @@ public SyncPoller, BigDataPoolResourceI * @return the {@link SyncPoller} for polling of big Data pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, BigDataPoolResourceInfoInner> beginDelete( - String resourceGroupName, String workspaceName, String bigDataPoolName, Context context) { + public SyncPoller, BigDataPoolResourceInfoInner> + beginDelete(String resourceGroupName, String workspaceName, String bigDataPoolName, Context context) { return this.beginDeleteAsync(resourceGroupName, workspaceName, bigDataPoolName, context).getSyncPoller(); } /** * Delete a Big Data pool. - * - *

Delete a Big Data pool from the workspace. - * + * + * Delete a Big Data pool from the workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. @@ -1198,18 +970,17 @@ public SyncPoller, BigDataPoolResourceI * @return big Data pool on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync( - String resourceGroupName, String workspaceName, String bigDataPoolName) { - return beginDeleteAsync(resourceGroupName, workspaceName, bigDataPoolName) - .last() + private Mono deleteAsync(String resourceGroupName, String workspaceName, + String bigDataPoolName) { + return beginDeleteAsync(resourceGroupName, workspaceName, bigDataPoolName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete a Big Data pool. - * - *

Delete a Big Data pool from the workspace. - * + * + * Delete a Big Data pool from the workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. @@ -1220,18 +991,17 @@ private Mono deleteAsync( * @return big Data pool on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync( - String resourceGroupName, String workspaceName, String bigDataPoolName, Context context) { - return beginDeleteAsync(resourceGroupName, workspaceName, bigDataPoolName, context) - .last() + private Mono deleteAsync(String resourceGroupName, String workspaceName, + String bigDataPoolName, Context context) { + return beginDeleteAsync(resourceGroupName, workspaceName, bigDataPoolName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete a Big Data pool. - * - *

Delete a Big Data pool from the workspace. - * + * + * Delete a Big Data pool from the workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. @@ -1247,9 +1017,9 @@ public BigDataPoolResourceInfoInner delete(String resourceGroupName, String work /** * Delete a Big Data pool. - * - *

Delete a Big Data pool from the workspace. - * + * + * Delete a Big Data pool from the workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. @@ -1260,16 +1030,16 @@ public BigDataPoolResourceInfoInner delete(String resourceGroupName, String work * @return big Data pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - public BigDataPoolResourceInfoInner delete( - String resourceGroupName, String workspaceName, String bigDataPoolName, Context context) { + public BigDataPoolResourceInfoInner delete(String resourceGroupName, String workspaceName, String bigDataPoolName, + Context context) { return deleteAsync(resourceGroupName, workspaceName, bigDataPoolName, context).block(); } /** * List the Big Data pools in a workspace. - * - *

List Big Data pools in a workspace. - * + * + * List Big Data pools in a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1278,19 +1048,15 @@ public BigDataPoolResourceInfoInner delete( * @return collection of Big Data pools along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByWorkspaceSinglePageAsync( - String resourceGroupName, String workspaceName) { + private Mono> listByWorkspaceSinglePageAsync(String resourceGroupName, + String workspaceName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1302,34 +1068,18 @@ private Mono> listByWorkspaceSingleP final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .listByWorkspace( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .withContext(context -> service.listByWorkspace(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * List the Big Data pools in a workspace. - * - *

List Big Data pools in a workspace. - * + * + * List Big Data pools in a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -1339,19 +1089,15 @@ private Mono> listByWorkspaceSingleP * @return collection of Big Data pools along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByWorkspaceSinglePageAsync( - String resourceGroupName, String workspaceName, Context context) { + private Mono> listByWorkspaceSinglePageAsync(String resourceGroupName, + String workspaceName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1364,30 +1110,17 @@ private Mono> listByWorkspaceSingleP final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByWorkspace( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + .listByWorkspace(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * List the Big Data pools in a workspace. - * - *

List Big Data pools in a workspace. - * + * + * List Big Data pools in a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1396,18 +1129,17 @@ private Mono> listByWorkspaceSingleP * @return collection of Big Data pools as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByWorkspaceAsync( - String resourceGroupName, String workspaceName) { - return new PagedFlux<>( - () -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName), + private PagedFlux listByWorkspaceAsync(String resourceGroupName, + String workspaceName) { + return new PagedFlux<>(() -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName), nextLink -> listByWorkspaceNextSinglePageAsync(nextLink)); } /** * List the Big Data pools in a workspace. - * - *

List Big Data pools in a workspace. - * + * + * List Big Data pools in a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -1417,18 +1149,17 @@ private PagedFlux listByWorkspaceAsync( * @return collection of Big Data pools as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByWorkspaceAsync( - String resourceGroupName, String workspaceName, Context context) { - return new PagedFlux<>( - () -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName, context), + private PagedFlux listByWorkspaceAsync(String resourceGroupName, String workspaceName, + Context context) { + return new PagedFlux<>(() -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName, context), nextLink -> listByWorkspaceNextSinglePageAsync(nextLink, context)); } /** * List the Big Data pools in a workspace. - * - *

List Big Data pools in a workspace. - * + * + * List Big Data pools in a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1443,9 +1174,9 @@ public PagedIterable listByWorkspace(String resour /** * List the Big Data pools in a workspace. - * - *

List Big Data pools in a workspace. - * + * + * List Big Data pools in a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -1455,16 +1186,17 @@ public PagedIterable listByWorkspace(String resour * @return collection of Big Data pools as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByWorkspace( - String resourceGroupName, String workspaceName, Context context) { + public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, + Context context) { return new PagedIterable<>(listByWorkspaceAsync(resourceGroupName, workspaceName, context)); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1476,31 +1208,23 @@ private Mono> listByWorkspaceNextSin return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByWorkspaceNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1508,29 +1232,19 @@ private Mono> listByWorkspaceNextSin * @return collection of Big Data pools along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByWorkspaceNextSinglePageAsync( - String nextLink, Context context) { + private Mono> listByWorkspaceNextSinglePageAsync(String nextLink, + Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listByWorkspaceNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listByWorkspaceNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/BigDataPoolsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/BigDataPoolsImpl.java index 0acbf58da733..0a5cd36da002 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/BigDataPoolsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/BigDataPoolsImpl.java @@ -21,21 +21,18 @@ public final class BigDataPoolsImpl implements BigDataPools { private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public BigDataPoolsImpl( - BigDataPoolsClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + public BigDataPoolsImpl(BigDataPoolsClient innerClient, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public Response getWithResponse( - String resourceGroupName, String workspaceName, String bigDataPoolName, Context context) { - Response inner = - this.serviceClient().getWithResponse(resourceGroupName, workspaceName, bigDataPoolName, context); + public Response getWithResponse(String resourceGroupName, String workspaceName, + String bigDataPoolName, Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, workspaceName, bigDataPoolName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new BigDataPoolResourceInfoImpl(inner.getValue(), this.manager())); } else { return null; @@ -43,8 +40,8 @@ public Response getWithResponse( } public BigDataPoolResourceInfo get(String resourceGroupName, String workspaceName, String bigDataPoolName) { - BigDataPoolResourceInfoInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, bigDataPoolName); + BigDataPoolResourceInfoInner inner + = this.serviceClient().get(resourceGroupName, workspaceName, bigDataPoolName); if (inner != null) { return new BigDataPoolResourceInfoImpl(inner, this.manager()); } else { @@ -53,8 +50,8 @@ public BigDataPoolResourceInfo get(String resourceGroupName, String workspaceNam } public BigDataPoolResourceInfo delete(String resourceGroupName, String workspaceName, String bigDataPoolName) { - BigDataPoolResourceInfoInner inner = - this.serviceClient().delete(resourceGroupName, workspaceName, bigDataPoolName); + BigDataPoolResourceInfoInner inner + = this.serviceClient().delete(resourceGroupName, workspaceName, bigDataPoolName); if (inner != null) { return new BigDataPoolResourceInfoImpl(inner, this.manager()); } else { @@ -62,10 +59,10 @@ public BigDataPoolResourceInfo delete(String resourceGroupName, String workspace } } - public BigDataPoolResourceInfo delete( - String resourceGroupName, String workspaceName, String bigDataPoolName, Context context) { - BigDataPoolResourceInfoInner inner = - this.serviceClient().delete(resourceGroupName, workspaceName, bigDataPoolName, context); + public BigDataPoolResourceInfo delete(String resourceGroupName, String workspaceName, String bigDataPoolName, + Context context) { + BigDataPoolResourceInfoInner inner + = this.serviceClient().delete(resourceGroupName, workspaceName, bigDataPoolName, context); if (inner != null) { return new BigDataPoolResourceInfoImpl(inner, this.manager()); } else { @@ -74,118 +71,90 @@ public BigDataPoolResourceInfo delete( } public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName) { - PagedIterable inner = - this.serviceClient().listByWorkspace(resourceGroupName, workspaceName); - return Utils.mapPage(inner, inner1 -> new BigDataPoolResourceInfoImpl(inner1, this.manager())); + PagedIterable inner + = this.serviceClient().listByWorkspace(resourceGroupName, workspaceName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new BigDataPoolResourceInfoImpl(inner1, this.manager())); } - public PagedIterable listByWorkspace( - String resourceGroupName, String workspaceName, Context context) { - PagedIterable inner = - this.serviceClient().listByWorkspace(resourceGroupName, workspaceName, context); - return Utils.mapPage(inner, inner1 -> new BigDataPoolResourceInfoImpl(inner1, this.manager())); + public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, + Context context) { + PagedIterable inner + = this.serviceClient().listByWorkspace(resourceGroupName, workspaceName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new BigDataPoolResourceInfoImpl(inner1, this.manager())); } public BigDataPoolResourceInfo getById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String bigDataPoolName = Utils.getValueFromIdByName(id, "bigDataPools"); + String bigDataPoolName = ResourceManagerUtils.getValueFromIdByName(id, "bigDataPools"); if (bigDataPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'bigDataPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'bigDataPools'.", id))); } return this.getWithResponse(resourceGroupName, workspaceName, bigDataPoolName, Context.NONE).getValue(); } public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String bigDataPoolName = Utils.getValueFromIdByName(id, "bigDataPools"); + String bigDataPoolName = ResourceManagerUtils.getValueFromIdByName(id, "bigDataPools"); if (bigDataPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'bigDataPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'bigDataPools'.", id))); } return this.getWithResponse(resourceGroupName, workspaceName, bigDataPoolName, context); } public BigDataPoolResourceInfo deleteById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String bigDataPoolName = Utils.getValueFromIdByName(id, "bigDataPools"); + String bigDataPoolName = ResourceManagerUtils.getValueFromIdByName(id, "bigDataPools"); if (bigDataPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'bigDataPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'bigDataPools'.", id))); } return this.delete(resourceGroupName, workspaceName, bigDataPoolName, Context.NONE); } public BigDataPoolResourceInfo deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String bigDataPoolName = Utils.getValueFromIdByName(id, "bigDataPools"); + String bigDataPoolName = ResourceManagerUtils.getValueFromIdByName(id, "bigDataPools"); if (bigDataPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'bigDataPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'bigDataPools'.", id))); } return this.delete(resourceGroupName, workspaceName, bigDataPoolName, context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/CheckNameAvailabilityResponseImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/CheckNameAvailabilityResponseImpl.java index 50856bb21073..ee87c796cab2 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/CheckNameAvailabilityResponseImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/CheckNameAvailabilityResponseImpl.java @@ -12,8 +12,7 @@ public final class CheckNameAvailabilityResponseImpl implements CheckNameAvailab private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - CheckNameAvailabilityResponseImpl( - CheckNameAvailabilityResponseInner innerObject, + CheckNameAvailabilityResponseImpl(CheckNameAvailabilityResponseInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/CheckNameResultImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/CheckNameResultImpl.java index a9164620a626..6d8275cbe09c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/CheckNameResultImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/CheckNameResultImpl.java @@ -13,8 +13,8 @@ public final class CheckNameResultImpl implements CheckNameResult { private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - CheckNameResultImpl( - CheckNameResultInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + CheckNameResultImpl(CheckNameResultInner innerObject, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ClusterPrincipalAssignmentImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ClusterPrincipalAssignmentImpl.java index a3ae1a7dd529..2bfbc006f703 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ClusterPrincipalAssignmentImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ClusterPrincipalAssignmentImpl.java @@ -86,8 +86,8 @@ private com.azure.resourcemanager.synapse.SynapseManager manager() { private String resourceGroupName; - public ClusterPrincipalAssignmentImpl withExistingKustoPool( - String workspaceName, String kustoPoolName, String resourceGroupName) { + public ClusterPrincipalAssignmentImpl withExistingKustoPool(String workspaceName, String kustoPoolName, + String resourceGroupName) { this.workspaceName = workspaceName; this.kustoPoolName = kustoPoolName; this.resourceGroupName = resourceGroupName; @@ -95,32 +95,14 @@ public ClusterPrincipalAssignmentImpl withExistingKustoPool( } public ClusterPrincipalAssignment create() { - this.innerObject = - serviceManager - .serviceClient() - .getKustoPoolPrincipalAssignments() - .createOrUpdate( - workspaceName, - kustoPoolName, - principalAssignmentName, - resourceGroupName, - this.innerModel(), - Context.NONE); + this.innerObject = serviceManager.serviceClient().getKustoPoolPrincipalAssignments().createOrUpdate( + workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, this.innerModel(), Context.NONE); return this; } public ClusterPrincipalAssignment create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getKustoPoolPrincipalAssignments() - .createOrUpdate( - workspaceName, - kustoPoolName, - principalAssignmentName, - resourceGroupName, - this.innerModel(), - context); + this.innerObject = serviceManager.serviceClient().getKustoPoolPrincipalAssignments().createOrUpdate( + workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, this.innerModel(), context); return this; } @@ -135,62 +117,39 @@ public ClusterPrincipalAssignmentImpl update() { } public ClusterPrincipalAssignment apply() { - this.innerObject = - serviceManager - .serviceClient() - .getKustoPoolPrincipalAssignments() - .createOrUpdate( - workspaceName, - kustoPoolName, - principalAssignmentName, - resourceGroupName, - this.innerModel(), - Context.NONE); + this.innerObject = serviceManager.serviceClient().getKustoPoolPrincipalAssignments().createOrUpdate( + workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, this.innerModel(), Context.NONE); return this; } public ClusterPrincipalAssignment apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getKustoPoolPrincipalAssignments() - .createOrUpdate( - workspaceName, - kustoPoolName, - principalAssignmentName, - resourceGroupName, - this.innerModel(), - context); + this.innerObject = serviceManager.serviceClient().getKustoPoolPrincipalAssignments().createOrUpdate( + workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, this.innerModel(), context); return this; } - ClusterPrincipalAssignmentImpl( - ClusterPrincipalAssignmentInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + ClusterPrincipalAssignmentImpl(ClusterPrincipalAssignmentInner innerObject, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.workspaceName = Utils.getValueFromIdByName(innerObject.id(), "workspaces"); - this.kustoPoolName = Utils.getValueFromIdByName(innerObject.id(), "kustoPools"); - this.principalAssignmentName = Utils.getValueFromIdByName(innerObject.id(), "principalAssignments"); - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.workspaceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workspaces"); + this.kustoPoolName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "kustoPools"); + this.principalAssignmentName + = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "principalAssignments"); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); } public ClusterPrincipalAssignment refresh() { - this.innerObject = - serviceManager - .serviceClient() - .getKustoPoolPrincipalAssignments() - .getWithResponse(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getKustoPoolPrincipalAssignments() + .getWithResponse(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, Context.NONE) + .getValue(); return this; } public ClusterPrincipalAssignment refresh(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getKustoPoolPrincipalAssignments() - .getWithResponse(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getKustoPoolPrincipalAssignments() + .getWithResponse(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, context) + .getValue(); return this; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataConnectionImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataConnectionImpl.java index ed86f2f9a6c3..982e232d30f9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataConnectionImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataConnectionImpl.java @@ -13,8 +13,8 @@ public final class DataConnectionImpl implements DataConnection { private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - DataConnectionImpl( - DataConnectionInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + DataConnectionImpl(DataConnectionInner innerObject, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataConnectionValidationImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataConnectionValidationImpl.java index 3d797eb90db7..5833579af4c5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataConnectionValidationImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataConnectionValidationImpl.java @@ -14,8 +14,8 @@ public final class DataConnectionValidationImpl implements DataConnectionValidat private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - DataConnectionValidationImpl( - DataConnectionValidationInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + DataConnectionValidationImpl(DataConnectionValidationInner innerObject, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataConnectionValidationListResultImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataConnectionValidationListResultImpl.java index deea9e0b5322..c7e5282acb0a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataConnectionValidationListResultImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataConnectionValidationListResultImpl.java @@ -15,8 +15,7 @@ public final class DataConnectionValidationListResultImpl implements DataConnect private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - DataConnectionValidationListResultImpl( - DataConnectionValidationListResultInner innerObject, + DataConnectionValidationListResultImpl(DataConnectionValidationListResultInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingPoliciesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingPoliciesClientImpl.java index a0ed2ea6e773..9865c10e9ab6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingPoliciesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingPoliciesClientImpl.java @@ -27,22 +27,28 @@ import com.azure.resourcemanager.synapse.fluent.models.DataMaskingPolicyInner; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in DataMaskingPoliciesClient. */ +/** + * An instance of this class provides access to all the operations defined in DataMaskingPoliciesClient. + */ public final class DataMaskingPoliciesClientImpl implements DataMaskingPoliciesClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final DataMaskingPoliciesService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of DataMaskingPoliciesClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ DataMaskingPoliciesClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy.create(DataMaskingPoliciesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service = RestProxy.create(DataMaskingPoliciesService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } @@ -53,45 +59,33 @@ public final class DataMaskingPoliciesClientImpl implements DataMaskingPoliciesC @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface DataMaskingPoliciesService { - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/dataMaskingPolicies/{dataMaskingPolicyName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/dataMaskingPolicies/{dataMaskingPolicyName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono> createOrUpdate(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("sqlPoolName") String sqlPoolName, @PathParam("dataMaskingPolicyName") String dataMaskingPolicyName, - @BodyParam("application/json") DataMaskingPolicyInner parameters, - @HeaderParam("Accept") String accept, + @BodyParam("application/json") DataMaskingPolicyInner parameters, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/dataMaskingPolicies/{dataMaskingPolicyName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/dataMaskingPolicies/{dataMaskingPolicyName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono> get(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("sqlPoolName") String sqlPoolName, - @PathParam("dataMaskingPolicyName") String dataMaskingPolicyName, - @HeaderParam("Accept") String accept, + @PathParam("dataMaskingPolicyName") String dataMaskingPolicyName, @HeaderParam("Accept") String accept, Context context); } /** * Creates or updates a Sql pool data masking policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -102,19 +96,15 @@ Mono> get( * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, DataMaskingPolicyInner parameters) { + private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, DataMaskingPolicyInner parameters) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -135,26 +125,15 @@ private Mono> createOrUpdateWithResponseAsync( final String dataMaskingPolicyName = "Default"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - dataMaskingPolicyName, - parameters, - accept, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, dataMaskingPolicyName, + parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates a Sql pool data masking policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -166,23 +145,15 @@ private Mono> createOrUpdateWithResponseAsync( * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - DataMaskingPolicyInner parameters, - Context context) { + private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, DataMaskingPolicyInner parameters, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -203,23 +174,13 @@ private Mono> createOrUpdateWithResponseAsync( final String dataMaskingPolicyName = "Default"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - dataMaskingPolicyName, - parameters, - accept, - context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, dataMaskingPolicyName, parameters, accept, context); } /** * Creates or updates a Sql pool data masking policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -230,15 +191,15 @@ private Mono> createOrUpdateWithResponseAsync( * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, DataMaskingPolicyInner parameters) { + private Mono createOrUpdateAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, DataMaskingPolicyInner parameters) { return createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, parameters) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Creates or updates a Sql pool data masking policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -250,19 +211,15 @@ private Mono createOrUpdateAsync( * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - DataMaskingPolicyInner parameters, - Context context) { + public Response createOrUpdateWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, DataMaskingPolicyInner parameters, Context context) { return createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, parameters, context) .block(); } /** * Creates or updates a Sql pool data masking policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -273,15 +230,15 @@ public Response createOrUpdateWithResponse( * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DataMaskingPolicyInner createOrUpdate( - String resourceGroupName, String workspaceName, String sqlPoolName, DataMaskingPolicyInner parameters) { + public DataMaskingPolicyInner createOrUpdate(String resourceGroupName, String workspaceName, String sqlPoolName, + DataMaskingPolicyInner parameters) { return createOrUpdateWithResponse(resourceGroupName, workspaceName, sqlPoolName, parameters, Context.NONE) .getValue(); } /** * Gets a Sql pool data masking policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -291,19 +248,15 @@ public DataMaskingPolicyInner createOrUpdate( * @return a Sql pool data masking policy along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, String sqlPoolName) { + private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -319,25 +272,14 @@ private Mono> getWithResponseAsync( final String dataMaskingPolicyName = "Default"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - dataMaskingPolicyName, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, dataMaskingPolicyName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets a Sql pool data masking policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -348,19 +290,15 @@ private Mono> getWithResponseAsync( * @return a Sql pool data masking policy along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -376,22 +314,13 @@ private Mono> getWithResponseAsync( final String dataMaskingPolicyName = "Default"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - dataMaskingPolicyName, - accept, - context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, dataMaskingPolicyName, accept, context); } /** * Gets a Sql pool data masking policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -408,7 +337,7 @@ private Mono getAsync(String resourceGroupName, String w /** * Gets a Sql pool data masking policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -419,14 +348,14 @@ private Mono getAsync(String resourceGroupName, String w * @return a Sql pool data masking policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + public Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, context).block(); } /** * Gets a Sql pool data masking policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingPoliciesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingPoliciesImpl.java index d9a8b8ac9299..8d64213796fc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingPoliciesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingPoliciesImpl.java @@ -20,21 +20,18 @@ public final class DataMaskingPoliciesImpl implements DataMaskingPolicies { private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public DataMaskingPoliciesImpl( - DataMaskingPoliciesClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + public DataMaskingPoliciesImpl(DataMaskingPoliciesClient innerClient, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { - Response inner = - this.serviceClient().getWithResponse(resourceGroupName, workspaceName, sqlPoolName, context); + public Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, workspaceName, sqlPoolName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new DataMaskingPolicyImpl(inner.getValue(), this.manager())); } else { return null; @@ -51,53 +48,39 @@ public DataMaskingPolicy get(String resourceGroupName, String workspaceName, Str } public DataMaskingPolicy getById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); + String sqlPoolName = ResourceManagerUtils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } return this.getWithResponse(resourceGroupName, workspaceName, sqlPoolName, Context.NONE).getValue(); } public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); + String sqlPoolName = ResourceManagerUtils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } return this.getWithResponse(resourceGroupName, workspaceName, sqlPoolName, context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingPolicyImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingPolicyImpl.java index df45b4ce6b16..9c99abf0a029 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingPolicyImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingPolicyImpl.java @@ -82,8 +82,8 @@ private com.azure.resourcemanager.synapse.SynapseManager manager() { private String sqlPoolName; - public DataMaskingPolicyImpl withExistingSqlPool( - String resourceGroupName, String workspaceName, String sqlPoolName) { + public DataMaskingPolicyImpl withExistingSqlPool(String resourceGroupName, String workspaceName, + String sqlPoolName) { this.resourceGroupName = resourceGroupName; this.workspaceName = workspaceName; this.sqlPoolName = sqlPoolName; @@ -91,23 +91,16 @@ public DataMaskingPolicyImpl withExistingSqlPool( } public DataMaskingPolicy create() { - this.innerObject = - serviceManager - .serviceClient() - .getDataMaskingPolicies() - .createOrUpdateWithResponse( - resourceGroupName, workspaceName, sqlPoolName, this.innerModel(), Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getDataMaskingPolicies() + .createOrUpdateWithResponse(resourceGroupName, workspaceName, sqlPoolName, this.innerModel(), Context.NONE) + .getValue(); return this; } public DataMaskingPolicy create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getDataMaskingPolicies() - .createOrUpdateWithResponse(resourceGroupName, workspaceName, sqlPoolName, this.innerModel(), context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getDataMaskingPolicies() + .createOrUpdateWithResponse(resourceGroupName, workspaceName, sqlPoolName, this.innerModel(), context) + .getValue(); return this; } @@ -121,52 +114,37 @@ public DataMaskingPolicyImpl update() { } public DataMaskingPolicy apply() { - this.innerObject = - serviceManager - .serviceClient() - .getDataMaskingPolicies() - .createOrUpdateWithResponse( - resourceGroupName, workspaceName, sqlPoolName, this.innerModel(), Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getDataMaskingPolicies() + .createOrUpdateWithResponse(resourceGroupName, workspaceName, sqlPoolName, this.innerModel(), Context.NONE) + .getValue(); return this; } public DataMaskingPolicy apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getDataMaskingPolicies() - .createOrUpdateWithResponse(resourceGroupName, workspaceName, sqlPoolName, this.innerModel(), context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getDataMaskingPolicies() + .createOrUpdateWithResponse(resourceGroupName, workspaceName, sqlPoolName, this.innerModel(), context) + .getValue(); return this; } - DataMaskingPolicyImpl( - DataMaskingPolicyInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + DataMaskingPolicyImpl(DataMaskingPolicyInner innerObject, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.workspaceName = Utils.getValueFromIdByName(innerObject.id(), "workspaces"); - this.sqlPoolName = Utils.getValueFromIdByName(innerObject.id(), "sqlPools"); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.workspaceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workspaces"); + this.sqlPoolName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "sqlPools"); } public DataMaskingPolicy refresh() { - this.innerObject = - serviceManager - .serviceClient() - .getDataMaskingPolicies() - .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getDataMaskingPolicies() + .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, Context.NONE).getValue(); return this; } public DataMaskingPolicy refresh(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getDataMaskingPolicies() - .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getDataMaskingPolicies() + .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, context).getValue(); return this; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingRuleImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingRuleImpl.java index 547ab045b869..8d220c411ea3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingRuleImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingRuleImpl.java @@ -120,24 +120,16 @@ public DataMaskingRuleImpl withExistingSqlPool(String resourceGroupName, String } public DataMaskingRule create() { - this.innerObject = - serviceManager - .serviceClient() - .getDataMaskingRules() - .createOrUpdateWithResponse( - resourceGroupName, workspaceName, sqlPoolName, dataMaskingRuleName, this.innerModel(), Context.NONE) - .getValue(); + this.innerObject + = serviceManager.serviceClient().getDataMaskingRules().createOrUpdateWithResponse(resourceGroupName, + workspaceName, sqlPoolName, dataMaskingRuleName, this.innerModel(), Context.NONE).getValue(); return this; } public DataMaskingRule create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getDataMaskingRules() - .createOrUpdateWithResponse( - resourceGroupName, workspaceName, sqlPoolName, dataMaskingRuleName, this.innerModel(), context) - .getValue(); + this.innerObject + = serviceManager.serviceClient().getDataMaskingRules().createOrUpdateWithResponse(resourceGroupName, + workspaceName, sqlPoolName, dataMaskingRuleName, this.innerModel(), context).getValue(); return this; } @@ -152,54 +144,39 @@ public DataMaskingRuleImpl update() { } public DataMaskingRule apply() { - this.innerObject = - serviceManager - .serviceClient() - .getDataMaskingRules() - .createOrUpdateWithResponse( - resourceGroupName, workspaceName, sqlPoolName, dataMaskingRuleName, this.innerModel(), Context.NONE) - .getValue(); + this.innerObject + = serviceManager.serviceClient().getDataMaskingRules().createOrUpdateWithResponse(resourceGroupName, + workspaceName, sqlPoolName, dataMaskingRuleName, this.innerModel(), Context.NONE).getValue(); return this; } public DataMaskingRule apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getDataMaskingRules() - .createOrUpdateWithResponse( - resourceGroupName, workspaceName, sqlPoolName, dataMaskingRuleName, this.innerModel(), context) - .getValue(); + this.innerObject + = serviceManager.serviceClient().getDataMaskingRules().createOrUpdateWithResponse(resourceGroupName, + workspaceName, sqlPoolName, dataMaskingRuleName, this.innerModel(), context).getValue(); return this; } - DataMaskingRuleImpl( - DataMaskingRuleInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + DataMaskingRuleImpl(DataMaskingRuleInner innerObject, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.workspaceName = Utils.getValueFromIdByName(innerObject.id(), "workspaces"); - this.sqlPoolName = Utils.getValueFromIdByName(innerObject.id(), "sqlPools"); - this.dataMaskingRuleName = Utils.getValueFromIdByName(innerObject.id(), "rules"); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.workspaceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workspaces"); + this.sqlPoolName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "sqlPools"); + this.dataMaskingRuleName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "rules"); } public DataMaskingRule refresh() { - this.innerObject = - serviceManager - .serviceClient() - .getDataMaskingRules() - .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, dataMaskingRuleName, Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getDataMaskingRules() + .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, dataMaskingRuleName, Context.NONE) + .getValue(); return this; } public DataMaskingRule refresh(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getDataMaskingRules() - .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, dataMaskingRuleName, context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getDataMaskingRules() + .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, dataMaskingRuleName, context).getValue(); return this; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingRulesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingRulesClientImpl.java index 5d32f6f6640e..7acf29b63da3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingRulesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingRulesClientImpl.java @@ -32,22 +32,28 @@ import com.azure.resourcemanager.synapse.models.DataMaskingRuleListResult; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in DataMaskingRulesClient. */ +/** + * An instance of this class provides access to all the operations defined in DataMaskingRulesClient. + */ public final class DataMaskingRulesClientImpl implements DataMaskingRulesClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final DataMaskingRulesService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of DataMaskingRulesClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ DataMaskingRulesClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy.create(DataMaskingRulesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service + = RestProxy.create(DataMaskingRulesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } @@ -58,66 +64,46 @@ public final class DataMaskingRulesClientImpl implements DataMaskingRulesClient @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface DataMaskingRulesService { - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/dataMaskingPolicies/{dataMaskingPolicyName}/rules" - + "/{dataMaskingRuleName}") - @ExpectedResponses({200, 201}) + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/dataMaskingPolicies/{dataMaskingPolicyName}/rules/{dataMaskingRuleName}") + @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono> createOrUpdate(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("sqlPoolName") String sqlPoolName, @PathParam("dataMaskingPolicyName") String dataMaskingPolicyName, @PathParam("dataMaskingRuleName") String dataMaskingRuleName, - @BodyParam("application/json") DataMaskingRuleInner parameters, - @HeaderParam("Accept") String accept, + @BodyParam("application/json") DataMaskingRuleInner parameters, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/dataMaskingPolicies/{dataMaskingPolicyName}/rules" - + "/{dataMaskingRuleName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/dataMaskingPolicies/{dataMaskingPolicyName}/rules/{dataMaskingRuleName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono> get(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("sqlPoolName") String sqlPoolName, @PathParam("dataMaskingPolicyName") String dataMaskingPolicyName, - @PathParam("dataMaskingRuleName") String dataMaskingRuleName, - @HeaderParam("Accept") String accept, + @PathParam("dataMaskingRuleName") String dataMaskingRuleName, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/dataMaskingPolicies/{dataMaskingPolicyName}/rules") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/dataMaskingPolicies/{dataMaskingPolicyName}/rules") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listBySqlPool( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono> listBySqlPool(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("sqlPoolName") String sqlPoolName, - @PathParam("dataMaskingPolicyName") String dataMaskingPolicyName, - @HeaderParam("Accept") String accept, + @PathParam("dataMaskingPolicyName") String dataMaskingPolicyName, @HeaderParam("Accept") String accept, Context context); } /** * Creates or updates a Sql pool data masking rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -126,27 +112,19 @@ Mono> listBySqlPool( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return represents a Sql pool data masking rule along with {@link Response} on successful completion of {@link - * Mono}. + * @return represents a Sql pool data masking rule along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String dataMaskingRuleName, - DataMaskingRuleInner parameters) { + private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, String dataMaskingRuleName, DataMaskingRuleInner parameters) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -171,27 +149,15 @@ private Mono> createOrUpdateWithResponseAsync( final String dataMaskingPolicyName = "Default"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - dataMaskingPolicyName, - dataMaskingRuleName, - parameters, - accept, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, dataMaskingPolicyName, + dataMaskingRuleName, parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates a Sql pool data masking rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -201,28 +167,20 @@ private Mono> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return represents a Sql pool data masking rule along with {@link Response} on successful completion of {@link - * Mono}. + * @return represents a Sql pool data masking rule along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String dataMaskingRuleName, - DataMaskingRuleInner parameters, + private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, String dataMaskingRuleName, DataMaskingRuleInner parameters, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -247,24 +205,14 @@ private Mono> createOrUpdateWithResponseAsync( final String dataMaskingPolicyName = "Default"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - dataMaskingPolicyName, - dataMaskingRuleName, - parameters, - accept, - context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, dataMaskingPolicyName, dataMaskingRuleName, parameters, + accept, context); } /** * Creates or updates a Sql pool data masking rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -276,20 +224,15 @@ private Mono> createOrUpdateWithResponseAsync( * @return represents a Sql pool data masking rule on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String dataMaskingRuleName, - DataMaskingRuleInner parameters) { - return createOrUpdateWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, dataMaskingRuleName, parameters) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + private Mono createOrUpdateAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String dataMaskingRuleName, DataMaskingRuleInner parameters) { + return createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, dataMaskingRuleName, + parameters).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Creates or updates a Sql pool data masking rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -302,21 +245,15 @@ private Mono createOrUpdateAsync( * @return represents a Sql pool data masking rule along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String dataMaskingRuleName, - DataMaskingRuleInner parameters, - Context context) { - return createOrUpdateWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, dataMaskingRuleName, parameters, context) - .block(); + public Response createOrUpdateWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, String dataMaskingRuleName, DataMaskingRuleInner parameters, Context context) { + return createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, dataMaskingRuleName, + parameters, context).block(); } /** * Creates or updates a Sql pool data masking rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -328,20 +265,15 @@ public Response createOrUpdateWithResponse( * @return represents a Sql pool data masking rule. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DataMaskingRuleInner createOrUpdate( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String dataMaskingRuleName, - DataMaskingRuleInner parameters) { - return createOrUpdateWithResponse( - resourceGroupName, workspaceName, sqlPoolName, dataMaskingRuleName, parameters, Context.NONE) - .getValue(); + public DataMaskingRuleInner createOrUpdate(String resourceGroupName, String workspaceName, String sqlPoolName, + String dataMaskingRuleName, DataMaskingRuleInner parameters) { + return createOrUpdateWithResponse(resourceGroupName, workspaceName, sqlPoolName, dataMaskingRuleName, + parameters, Context.NONE).getValue(); } /** * Gets the specific Sql pool data masking rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -349,23 +281,19 @@ public DataMaskingRuleInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specific Sql pool data masking rule along with {@link Response} on successful completion of {@link - * Mono}. + * @return the specific Sql pool data masking rule along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, String dataMaskingRuleName) { + private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String dataMaskingRuleName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -385,26 +313,15 @@ private Mono> getWithResponseAsync( final String dataMaskingPolicyName = "Default"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - dataMaskingPolicyName, - dataMaskingRuleName, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, dataMaskingPolicyName, dataMaskingRuleName, accept, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the specific Sql pool data masking rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -413,27 +330,19 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specific Sql pool data masking rule along with {@link Response} on successful completion of {@link - * Mono}. + * @return the specific Sql pool data masking rule along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String dataMaskingRuleName, - Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String dataMaskingRuleName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -453,23 +362,13 @@ private Mono> getWithResponseAsync( final String dataMaskingPolicyName = "Default"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - dataMaskingPolicyName, - dataMaskingRuleName, - accept, - context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, dataMaskingPolicyName, dataMaskingRuleName, accept, context); } /** * Gets the specific Sql pool data masking rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -480,15 +379,15 @@ private Mono> getWithResponseAsync( * @return the specific Sql pool data masking rule on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, String dataMaskingRuleName) { + private Mono getAsync(String resourceGroupName, String workspaceName, String sqlPoolName, + String dataMaskingRuleName) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, dataMaskingRuleName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Gets the specific Sql pool data masking rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -500,19 +399,15 @@ private Mono getAsync( * @return the specific Sql pool data masking rule along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String dataMaskingRuleName, - Context context) { + public Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, String dataMaskingRuleName, Context context) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, dataMaskingRuleName, context) .block(); } /** * Gets the specific Sql pool data masking rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -523,38 +418,34 @@ public Response getWithResponse( * @return the specific Sql pool data masking rule. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DataMaskingRuleInner get( - String resourceGroupName, String workspaceName, String sqlPoolName, String dataMaskingRuleName) { + public DataMaskingRuleInner get(String resourceGroupName, String workspaceName, String sqlPoolName, + String dataMaskingRuleName) { return getWithResponse(resourceGroupName, workspaceName, sqlPoolName, dataMaskingRuleName, Context.NONE) .getValue(); } /** * Gets a list of Sql pool data masking rules. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Sql pool data masking rules along with {@link PagedResponse} on successful completion of {@link - * Mono}. + * @return a list of Sql pool data masking rules along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listBySqlPoolSinglePageAsync( - String resourceGroupName, String workspaceName, String sqlPoolName) { + private Mono> listBySqlPoolSinglePageAsync(String resourceGroupName, + String workspaceName, String sqlPoolName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -571,28 +462,16 @@ private Mono> listBySqlPoolSinglePageAsync( final String accept = "application/json"; return FluxUtil .withContext( - context -> - service - .listBySqlPool( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - dataMaskingPolicyName, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)) + context -> service.listBySqlPool(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, dataMaskingPolicyName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets a list of Sql pool data masking rules. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -600,23 +479,19 @@ private Mono> listBySqlPoolSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Sql pool data masking rules along with {@link PagedResponse} on successful completion of {@link - * Mono}. + * @return a list of Sql pool data masking rules along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listBySqlPoolSinglePageAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + private Mono> listBySqlPoolSinglePageAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -633,25 +508,15 @@ private Mono> listBySqlPoolSinglePageAsync( final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listBySqlPool( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - dataMaskingPolicyName, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)); + .listBySqlPool(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, dataMaskingPolicyName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), null, null)); } /** * Gets a list of Sql pool data masking rules. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -661,14 +526,14 @@ private Mono> listBySqlPoolSinglePageAsync( * @return a list of Sql pool data masking rules as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listBySqlPoolAsync( - String resourceGroupName, String workspaceName, String sqlPoolName) { + private PagedFlux listBySqlPoolAsync(String resourceGroupName, String workspaceName, + String sqlPoolName) { return new PagedFlux<>(() -> listBySqlPoolSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName)); } /** * Gets a list of Sql pool data masking rules. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -679,15 +544,15 @@ private PagedFlux listBySqlPoolAsync( * @return a list of Sql pool data masking rules as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listBySqlPoolAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + private PagedFlux listBySqlPoolAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context) { return new PagedFlux<>( () -> listBySqlPoolSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName, context)); } /** * Gets a list of Sql pool data masking rules. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -697,14 +562,14 @@ private PagedFlux listBySqlPoolAsync( * @return a list of Sql pool data masking rules as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listBySqlPool( - String resourceGroupName, String workspaceName, String sqlPoolName) { + public PagedIterable listBySqlPool(String resourceGroupName, String workspaceName, + String sqlPoolName) { return new PagedIterable<>(listBySqlPoolAsync(resourceGroupName, workspaceName, sqlPoolName)); } /** * Gets a list of Sql pool data masking rules. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -715,8 +580,8 @@ public PagedIterable listBySqlPool( * @return a list of Sql pool data masking rules as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listBySqlPool( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + public PagedIterable listBySqlPool(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context) { return new PagedIterable<>(listBySqlPoolAsync(resourceGroupName, workspaceName, sqlPoolName, context)); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingRulesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingRulesImpl.java index 522dc0702dc2..3c95336dada0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingRulesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingRulesImpl.java @@ -21,37 +21,28 @@ public final class DataMaskingRulesImpl implements DataMaskingRules { private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public DataMaskingRulesImpl( - DataMaskingRulesClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + public DataMaskingRulesImpl(DataMaskingRulesClient innerClient, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String dataMaskingRuleName, - Context context) { - Response inner = - this - .serviceClient() - .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, dataMaskingRuleName, context); + public Response getWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + String dataMaskingRuleName, Context context) { + Response inner = this.serviceClient().getWithResponse(resourceGroupName, workspaceName, + sqlPoolName, dataMaskingRuleName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new DataMaskingRuleImpl(inner.getValue(), this.manager())); } else { return null; } } - public DataMaskingRule get( - String resourceGroupName, String workspaceName, String sqlPoolName, String dataMaskingRuleName) { - DataMaskingRuleInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, dataMaskingRuleName); + public DataMaskingRule get(String resourceGroupName, String workspaceName, String sqlPoolName, + String dataMaskingRuleName) { + DataMaskingRuleInner inner + = this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, dataMaskingRuleName); if (inner != null) { return new DataMaskingRuleImpl(inner, this.manager()); } else { @@ -59,84 +50,65 @@ public DataMaskingRule get( } } - public PagedIterable listBySqlPool( - String resourceGroupName, String workspaceName, String sqlPoolName) { - PagedIterable inner = - this.serviceClient().listBySqlPool(resourceGroupName, workspaceName, sqlPoolName); - return Utils.mapPage(inner, inner1 -> new DataMaskingRuleImpl(inner1, this.manager())); + public PagedIterable listBySqlPool(String resourceGroupName, String workspaceName, + String sqlPoolName) { + PagedIterable inner + = this.serviceClient().listBySqlPool(resourceGroupName, workspaceName, sqlPoolName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new DataMaskingRuleImpl(inner1, this.manager())); } - public PagedIterable listBySqlPool( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { - PagedIterable inner = - this.serviceClient().listBySqlPool(resourceGroupName, workspaceName, sqlPoolName, context); - return Utils.mapPage(inner, inner1 -> new DataMaskingRuleImpl(inner1, this.manager())); + public PagedIterable listBySqlPool(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context) { + PagedIterable inner + = this.serviceClient().listBySqlPool(resourceGroupName, workspaceName, sqlPoolName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new DataMaskingRuleImpl(inner1, this.manager())); } public DataMaskingRule getById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); + String sqlPoolName = ResourceManagerUtils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } - String dataMaskingRuleName = Utils.getValueFromIdByName(id, "rules"); + String dataMaskingRuleName = ResourceManagerUtils.getValueFromIdByName(id, "rules"); if (dataMaskingRuleName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'rules'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'rules'.", id))); } - return this - .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, dataMaskingRuleName, Context.NONE) + return this.getWithResponse(resourceGroupName, workspaceName, sqlPoolName, dataMaskingRuleName, Context.NONE) .getValue(); } public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); + String sqlPoolName = ResourceManagerUtils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } - String dataMaskingRuleName = Utils.getValueFromIdByName(id, "rules"); + String dataMaskingRuleName = ResourceManagerUtils.getValueFromIdByName(id, "rules"); if (dataMaskingRuleName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'rules'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'rules'.", id))); } return this.getWithResponse(resourceGroupName, workspaceName, sqlPoolName, dataMaskingRuleName, context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataWarehouseUserActivitiesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataWarehouseUserActivitiesImpl.java index 40cf8f073d22..6004fa6de2e0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataWarehouseUserActivitiesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataWarehouseUserActivitiesImpl.java @@ -12,8 +12,8 @@ public final class DataWarehouseUserActivitiesImpl implements DataWarehouseUserA private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - DataWarehouseUserActivitiesImpl( - DataWarehouseUserActivitiesInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + DataWarehouseUserActivitiesImpl(DataWarehouseUserActivitiesInner innerObject, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DatabasePrincipalAssignmentImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DatabasePrincipalAssignmentImpl.java index 380f08d98a4c..29d244863b14 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DatabasePrincipalAssignmentImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DatabasePrincipalAssignmentImpl.java @@ -88,8 +88,8 @@ private com.azure.resourcemanager.synapse.SynapseManager manager() { private String resourceGroupName; - public DatabasePrincipalAssignmentImpl withExistingDatabase( - String workspaceName, String kustoPoolName, String databaseName, String resourceGroupName) { + public DatabasePrincipalAssignmentImpl withExistingDatabase(String workspaceName, String kustoPoolName, + String databaseName, String resourceGroupName) { this.workspaceName = workspaceName; this.kustoPoolName = kustoPoolName; this.databaseName = databaseName; @@ -98,34 +98,16 @@ public DatabasePrincipalAssignmentImpl withExistingDatabase( } public DatabasePrincipalAssignment create() { - this.innerObject = - serviceManager - .serviceClient() - .getKustoPoolDatabasePrincipalAssignments() - .createOrUpdate( - workspaceName, - kustoPoolName, - databaseName, - principalAssignmentName, - resourceGroupName, - this.innerModel(), - Context.NONE); + this.innerObject = serviceManager.serviceClient().getKustoPoolDatabasePrincipalAssignments().createOrUpdate( + workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, this.innerModel(), + Context.NONE); return this; } public DatabasePrincipalAssignment create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getKustoPoolDatabasePrincipalAssignments() - .createOrUpdate( - workspaceName, - kustoPoolName, - databaseName, - principalAssignmentName, - resourceGroupName, - this.innerModel(), - context); + this.innerObject + = serviceManager.serviceClient().getKustoPoolDatabasePrincipalAssignments().createOrUpdate(workspaceName, + kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, this.innerModel(), context); return this; } @@ -140,72 +122,42 @@ public DatabasePrincipalAssignmentImpl update() { } public DatabasePrincipalAssignment apply() { - this.innerObject = - serviceManager - .serviceClient() - .getKustoPoolDatabasePrincipalAssignments() - .createOrUpdate( - workspaceName, - kustoPoolName, - databaseName, - principalAssignmentName, - resourceGroupName, - this.innerModel(), - Context.NONE); + this.innerObject = serviceManager.serviceClient().getKustoPoolDatabasePrincipalAssignments().createOrUpdate( + workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, this.innerModel(), + Context.NONE); return this; } public DatabasePrincipalAssignment apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getKustoPoolDatabasePrincipalAssignments() - .createOrUpdate( - workspaceName, - kustoPoolName, - databaseName, - principalAssignmentName, - resourceGroupName, - this.innerModel(), - context); + this.innerObject + = serviceManager.serviceClient().getKustoPoolDatabasePrincipalAssignments().createOrUpdate(workspaceName, + kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, this.innerModel(), context); return this; } - DatabasePrincipalAssignmentImpl( - DatabasePrincipalAssignmentInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + DatabasePrincipalAssignmentImpl(DatabasePrincipalAssignmentInner innerObject, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.workspaceName = Utils.getValueFromIdByName(innerObject.id(), "workspaces"); - this.kustoPoolName = Utils.getValueFromIdByName(innerObject.id(), "kustoPools"); - this.databaseName = Utils.getValueFromIdByName(innerObject.id(), "databases"); - this.principalAssignmentName = Utils.getValueFromIdByName(innerObject.id(), "principalAssignments"); - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.workspaceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workspaces"); + this.kustoPoolName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "kustoPools"); + this.databaseName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "databases"); + this.principalAssignmentName + = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "principalAssignments"); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); } public DatabasePrincipalAssignment refresh() { - this.innerObject = - serviceManager - .serviceClient() - .getKustoPoolDatabasePrincipalAssignments() - .getWithResponse( - workspaceName, - kustoPoolName, - databaseName, - principalAssignmentName, - resourceGroupName, - Context.NONE) - .getValue(); + this.innerObject + = serviceManager.serviceClient().getKustoPoolDatabasePrincipalAssignments().getWithResponse(workspaceName, + kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, Context.NONE).getValue(); return this; } public DatabasePrincipalAssignment refresh(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getKustoPoolDatabasePrincipalAssignments() - .getWithResponse( - workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, context) - .getValue(); + this.innerObject + = serviceManager.serviceClient().getKustoPoolDatabasePrincipalAssignments().getWithResponse(workspaceName, + kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, context).getValue(); return this; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DedicatedSQLminimalTlsSettingsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DedicatedSQLminimalTlsSettingsImpl.java index af49d65b0e07..c8ede9999b83 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DedicatedSQLminimalTlsSettingsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DedicatedSQLminimalTlsSettingsImpl.java @@ -12,8 +12,7 @@ public final class DedicatedSQLminimalTlsSettingsImpl implements DedicatedSQLmin private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - DedicatedSQLminimalTlsSettingsImpl( - DedicatedSQLminimalTlsSettingsInner innerObject, + DedicatedSQLminimalTlsSettingsImpl(DedicatedSQLminimalTlsSettingsInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/EncryptionProtectorImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/EncryptionProtectorImpl.java index 5d7b80b0d7e5..fab1afd56437 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/EncryptionProtectorImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/EncryptionProtectorImpl.java @@ -90,26 +90,19 @@ public EncryptionProtectorImpl withExistingWorkspace(String resourceGroupName, S } public EncryptionProtector create() { - this.innerObject = - serviceManager - .serviceClient() - .getWorkspaceManagedSqlServerEncryptionProtectors() - .createOrUpdate( - resourceGroupName, workspaceName, encryptionProtectorName, this.innerModel(), Context.NONE); + this.innerObject = serviceManager.serviceClient().getWorkspaceManagedSqlServerEncryptionProtectors() + .createOrUpdate(resourceGroupName, workspaceName, encryptionProtectorName, this.innerModel(), Context.NONE); return this; } public EncryptionProtector create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getWorkspaceManagedSqlServerEncryptionProtectors() - .createOrUpdate(resourceGroupName, workspaceName, encryptionProtectorName, this.innerModel(), context); + this.innerObject = serviceManager.serviceClient().getWorkspaceManagedSqlServerEncryptionProtectors() + .createOrUpdate(resourceGroupName, workspaceName, encryptionProtectorName, this.innerModel(), context); return this; } - EncryptionProtectorImpl( - EncryptionProtectorName name, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + EncryptionProtectorImpl(EncryptionProtectorName name, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = new EncryptionProtectorInner(); this.serviceManager = serviceManager; this.encryptionProtectorName = name; @@ -120,64 +113,47 @@ public EncryptionProtectorImpl update() { } public EncryptionProtector apply() { - this.innerObject = - serviceManager - .serviceClient() - .getWorkspaceManagedSqlServerEncryptionProtectors() - .createOrUpdate( - resourceGroupName, workspaceName, encryptionProtectorName, this.innerModel(), Context.NONE); + this.innerObject = serviceManager.serviceClient().getWorkspaceManagedSqlServerEncryptionProtectors() + .createOrUpdate(resourceGroupName, workspaceName, encryptionProtectorName, this.innerModel(), Context.NONE); return this; } public EncryptionProtector apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getWorkspaceManagedSqlServerEncryptionProtectors() - .createOrUpdate(resourceGroupName, workspaceName, encryptionProtectorName, this.innerModel(), context); + this.innerObject = serviceManager.serviceClient().getWorkspaceManagedSqlServerEncryptionProtectors() + .createOrUpdate(resourceGroupName, workspaceName, encryptionProtectorName, this.innerModel(), context); return this; } - EncryptionProtectorImpl( - EncryptionProtectorInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + EncryptionProtectorImpl(EncryptionProtectorInner innerObject, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.workspaceName = Utils.getValueFromIdByName(innerObject.id(), "workspaces"); - this.encryptionProtectorName = - EncryptionProtectorName.fromString(Utils.getValueFromIdByName(innerObject.id(), "encryptionProtector")); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.workspaceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workspaces"); + this.encryptionProtectorName = EncryptionProtectorName + .fromString(ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "encryptionProtector")); } public EncryptionProtector refresh() { - this.innerObject = - serviceManager - .serviceClient() - .getWorkspaceManagedSqlServerEncryptionProtectors() - .getWithResponse(resourceGroupName, workspaceName, encryptionProtectorName, Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getWorkspaceManagedSqlServerEncryptionProtectors() + .getWithResponse(resourceGroupName, workspaceName, encryptionProtectorName, Context.NONE).getValue(); return this; } public EncryptionProtector refresh(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getWorkspaceManagedSqlServerEncryptionProtectors() - .getWithResponse(resourceGroupName, workspaceName, encryptionProtectorName, context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getWorkspaceManagedSqlServerEncryptionProtectors() + .getWithResponse(resourceGroupName, workspaceName, encryptionProtectorName, context).getValue(); return this; } public void revalidate() { - serviceManager - .workspaceManagedSqlServerEncryptionProtectors() - .revalidate(resourceGroupName, workspaceName, encryptionProtectorName); + serviceManager.workspaceManagedSqlServerEncryptionProtectors().revalidate(resourceGroupName, workspaceName, + encryptionProtectorName); } public void revalidate(Context context) { - serviceManager - .workspaceManagedSqlServerEncryptionProtectors() - .revalidate(resourceGroupName, workspaceName, encryptionProtectorName, context); + serviceManager.workspaceManagedSqlServerEncryptionProtectors().revalidate(resourceGroupName, workspaceName, + encryptionProtectorName, context); } public EncryptionProtectorImpl withServerKeyName(String serverKeyName) { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ExtendedServerBlobAuditingPolicyImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ExtendedServerBlobAuditingPolicyImpl.java index 8785f26c41f5..01dddb96dbd3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ExtendedServerBlobAuditingPolicyImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ExtendedServerBlobAuditingPolicyImpl.java @@ -13,10 +13,8 @@ import java.util.List; import java.util.UUID; -public final class ExtendedServerBlobAuditingPolicyImpl - implements ExtendedServerBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy.Definition, - ExtendedServerBlobAuditingPolicy.Update { +public final class ExtendedServerBlobAuditingPolicyImpl implements ExtendedServerBlobAuditingPolicy, + ExtendedServerBlobAuditingPolicy.Definition, ExtendedServerBlobAuditingPolicy.Update { private ExtendedServerBlobAuditingPolicyInner innerObject; private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; @@ -107,26 +105,19 @@ public ExtendedServerBlobAuditingPolicyImpl withExistingWorkspace(String resourc } public ExtendedServerBlobAuditingPolicy create() { - this.innerObject = - serviceManager - .serviceClient() - .getWorkspaceManagedSqlServerExtendedBlobAuditingPolicies() - .createOrUpdate( - resourceGroupName, workspaceName, blobAuditingPolicyName, this.innerModel(), Context.NONE); + this.innerObject = serviceManager.serviceClient().getWorkspaceManagedSqlServerExtendedBlobAuditingPolicies() + .createOrUpdate(resourceGroupName, workspaceName, blobAuditingPolicyName, this.innerModel(), Context.NONE); return this; } public ExtendedServerBlobAuditingPolicy create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getWorkspaceManagedSqlServerExtendedBlobAuditingPolicies() - .createOrUpdate(resourceGroupName, workspaceName, blobAuditingPolicyName, this.innerModel(), context); + this.innerObject = serviceManager.serviceClient().getWorkspaceManagedSqlServerExtendedBlobAuditingPolicies() + .createOrUpdate(resourceGroupName, workspaceName, blobAuditingPolicyName, this.innerModel(), context); return this; } - ExtendedServerBlobAuditingPolicyImpl( - BlobAuditingPolicyName name, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + ExtendedServerBlobAuditingPolicyImpl(BlobAuditingPolicyName name, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = new ExtendedServerBlobAuditingPolicyInner(); this.serviceManager = serviceManager; this.blobAuditingPolicyName = name; @@ -137,52 +128,36 @@ public ExtendedServerBlobAuditingPolicyImpl update() { } public ExtendedServerBlobAuditingPolicy apply() { - this.innerObject = - serviceManager - .serviceClient() - .getWorkspaceManagedSqlServerExtendedBlobAuditingPolicies() - .createOrUpdate( - resourceGroupName, workspaceName, blobAuditingPolicyName, this.innerModel(), Context.NONE); + this.innerObject = serviceManager.serviceClient().getWorkspaceManagedSqlServerExtendedBlobAuditingPolicies() + .createOrUpdate(resourceGroupName, workspaceName, blobAuditingPolicyName, this.innerModel(), Context.NONE); return this; } public ExtendedServerBlobAuditingPolicy apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getWorkspaceManagedSqlServerExtendedBlobAuditingPolicies() - .createOrUpdate(resourceGroupName, workspaceName, blobAuditingPolicyName, this.innerModel(), context); + this.innerObject = serviceManager.serviceClient().getWorkspaceManagedSqlServerExtendedBlobAuditingPolicies() + .createOrUpdate(resourceGroupName, workspaceName, blobAuditingPolicyName, this.innerModel(), context); return this; } - ExtendedServerBlobAuditingPolicyImpl( - ExtendedServerBlobAuditingPolicyInner innerObject, + ExtendedServerBlobAuditingPolicyImpl(ExtendedServerBlobAuditingPolicyInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.workspaceName = Utils.getValueFromIdByName(innerObject.id(), "workspaces"); - this.blobAuditingPolicyName = - BlobAuditingPolicyName.fromString(Utils.getValueFromIdByName(innerObject.id(), "extendedAuditingSettings")); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.workspaceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workspaces"); + this.blobAuditingPolicyName = BlobAuditingPolicyName + .fromString(ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "extendedAuditingSettings")); } public ExtendedServerBlobAuditingPolicy refresh() { - this.innerObject = - serviceManager - .serviceClient() - .getWorkspaceManagedSqlServerExtendedBlobAuditingPolicies() - .getWithResponse(resourceGroupName, workspaceName, blobAuditingPolicyName, Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getWorkspaceManagedSqlServerExtendedBlobAuditingPolicies() + .getWithResponse(resourceGroupName, workspaceName, blobAuditingPolicyName, Context.NONE).getValue(); return this; } public ExtendedServerBlobAuditingPolicy refresh(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getWorkspaceManagedSqlServerExtendedBlobAuditingPolicies() - .getWithResponse(resourceGroupName, workspaceName, blobAuditingPolicyName, context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getWorkspaceManagedSqlServerExtendedBlobAuditingPolicies() + .getWithResponse(resourceGroupName, workspaceName, blobAuditingPolicyName, context).getValue(); return this; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ExtendedSqlPoolBlobAuditingPoliciesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ExtendedSqlPoolBlobAuditingPoliciesClientImpl.java index ed877469f845..6eef18d96a56 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ExtendedSqlPoolBlobAuditingPoliciesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ExtendedSqlPoolBlobAuditingPoliciesClientImpl.java @@ -33,102 +33,82 @@ import reactor.core.publisher.Mono; /** - * An instance of this class provides access to all the operations defined in ExtendedSqlPoolBlobAuditingPoliciesClient. + * An instance of this class provides access to all the operations defined in + * ExtendedSqlPoolBlobAuditingPoliciesClient. */ public final class ExtendedSqlPoolBlobAuditingPoliciesClientImpl implements ExtendedSqlPoolBlobAuditingPoliciesClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final ExtendedSqlPoolBlobAuditingPoliciesService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of ExtendedSqlPoolBlobAuditingPoliciesClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ ExtendedSqlPoolBlobAuditingPoliciesClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy - .create( - ExtendedSqlPoolBlobAuditingPoliciesService.class, - client.getHttpPipeline(), - client.getSerializerAdapter()); + this.service = RestProxy.create(ExtendedSqlPoolBlobAuditingPoliciesService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for SynapseManagementClientExtendedSqlPoolBlobAuditingPolicies to be used - * by the proxy service to perform REST calls. + * The interface defining all the services for SynapseManagementClientExtendedSqlPoolBlobAuditingPolicies to be + * used by the proxy service to perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface ExtendedSqlPoolBlobAuditingPoliciesService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/extendedAuditingSettings/{blobAuditingPolicyName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/extendedAuditingSettings/{blobAuditingPolicyName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono> get(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("sqlPoolName") String sqlPoolName, - @PathParam("blobAuditingPolicyName") String blobAuditingPolicyName, - @HeaderParam("Accept") String accept, + @PathParam("blobAuditingPolicyName") String blobAuditingPolicyName, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/extendedAuditingSettings/{blobAuditingPolicyName}") - @ExpectedResponses({200, 201}) + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/extendedAuditingSettings/{blobAuditingPolicyName}") + @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono> createOrUpdate(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("sqlPoolName") String sqlPoolName, @PathParam("blobAuditingPolicyName") String blobAuditingPolicyName, @BodyParam("application/json") ExtendedSqlPoolBlobAuditingPolicyInner parameters, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/extendedAuditingSettings") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/extendedAuditingSettings") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listBySqlPool( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("sqlPoolName") String sqlPoolName, - @HeaderParam("Accept") String accept, - Context context); + Mono> listBySqlPool(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("sqlPoolName") String sqlPoolName, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listBySqlPoolNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** * Gets an extended Sql pool's blob auditing policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -136,22 +116,18 @@ Mono> listBySqlPoolNext( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an extended Sql pool's blob auditing policy along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, String sqlPoolName) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, String sqlPoolName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -167,25 +143,14 @@ private Mono> getWithResponseAs final String blobAuditingPolicyName = "default"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - blobAuditingPolicyName, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, blobAuditingPolicyName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets an extended Sql pool's blob auditing policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -194,22 +159,18 @@ private Mono> getWithResponseAs * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an extended Sql pool's blob auditing policy along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -225,22 +186,13 @@ private Mono> getWithResponseAs final String blobAuditingPolicyName = "default"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - blobAuditingPolicyName, - accept, - context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, blobAuditingPolicyName, accept, context); } /** * Gets an extended Sql pool's blob auditing policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -250,15 +202,15 @@ private Mono> getWithResponseAs * @return an extended Sql pool's blob auditing policy on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String workspaceName, String sqlPoolName) { + private Mono getAsync(String resourceGroupName, String workspaceName, + String sqlPoolName) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Gets an extended Sql pool's blob auditing policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -269,14 +221,14 @@ private Mono getAsync( * @return an extended Sql pool's blob auditing policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + public Response getWithResponse(String resourceGroupName, + String workspaceName, String sqlPoolName, Context context) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, context).block(); } /** * Gets an extended Sql pool's blob auditing policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -286,14 +238,14 @@ public Response getWithResponse( * @return an extended Sql pool's blob auditing policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ExtendedSqlPoolBlobAuditingPolicyInner get( - String resourceGroupName, String workspaceName, String sqlPoolName) { + public ExtendedSqlPoolBlobAuditingPolicyInner get(String resourceGroupName, String workspaceName, + String sqlPoolName) { return getWithResponse(resourceGroupName, workspaceName, sqlPoolName, Context.NONE).getValue(); } /** * Creates or updates an extended Sql pool's blob auditing policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -301,26 +253,20 @@ public ExtendedSqlPoolBlobAuditingPolicyInner get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an extended Sql pool blob auditing policy along with {@link Response} on successful completion of {@link - * Mono}. + * @return an extended Sql pool blob auditing policy along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, + String resourceGroupName, String workspaceName, String sqlPoolName, ExtendedSqlPoolBlobAuditingPolicyInner parameters) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -341,26 +287,15 @@ private Mono> createOrUpdateWit final String blobAuditingPolicyName = "default"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - blobAuditingPolicyName, - parameters, - accept, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, blobAuditingPolicyName, + parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates an extended Sql pool's blob auditing policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -369,27 +304,20 @@ private Mono> createOrUpdateWit * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an extended Sql pool blob auditing policy along with {@link Response} on successful completion of {@link - * Mono}. + * @return an extended Sql pool blob auditing policy along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - ExtendedSqlPoolBlobAuditingPolicyInner parameters, - Context context) { + String resourceGroupName, String workspaceName, String sqlPoolName, + ExtendedSqlPoolBlobAuditingPolicyInner parameters, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -410,23 +338,13 @@ private Mono> createOrUpdateWit final String blobAuditingPolicyName = "default"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - blobAuditingPolicyName, - parameters, - accept, - context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, blobAuditingPolicyName, parameters, accept, context); } /** * Creates or updates an extended Sql pool's blob auditing policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -437,18 +355,15 @@ private Mono> createOrUpdateWit * @return an extended Sql pool blob auditing policy on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - ExtendedSqlPoolBlobAuditingPolicyInner parameters) { + private Mono createOrUpdateAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, ExtendedSqlPoolBlobAuditingPolicyInner parameters) { return createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, parameters) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Creates or updates an extended Sql pool's blob auditing policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -460,19 +375,15 @@ private Mono createOrUpdateAsync( * @return an extended Sql pool blob auditing policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - ExtendedSqlPoolBlobAuditingPolicyInner parameters, - Context context) { + public Response createOrUpdateWithResponse(String resourceGroupName, + String workspaceName, String sqlPoolName, ExtendedSqlPoolBlobAuditingPolicyInner parameters, Context context) { return createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, parameters, context) .block(); } /** * Creates or updates an extended Sql pool's blob auditing policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -483,18 +394,15 @@ public Response createOrUpdateWithRespon * @return an extended Sql pool blob auditing policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ExtendedSqlPoolBlobAuditingPolicyInner createOrUpdate( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - ExtendedSqlPoolBlobAuditingPolicyInner parameters) { + public ExtendedSqlPoolBlobAuditingPolicyInner createOrUpdate(String resourceGroupName, String workspaceName, + String sqlPoolName, ExtendedSqlPoolBlobAuditingPolicyInner parameters) { return createOrUpdateWithResponse(resourceGroupName, workspaceName, sqlPoolName, parameters, Context.NONE) .getValue(); } /** * Lists extended auditing settings of a Sql pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -502,22 +410,18 @@ public ExtendedSqlPoolBlobAuditingPolicyInner createOrUpdate( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of sql pool extended auditing settings along with {@link PagedResponse} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listBySqlPoolSinglePageAsync( - String resourceGroupName, String workspaceName, String sqlPoolName) { + private Mono> + listBySqlPoolSinglePageAsync(String resourceGroupName, String workspaceName, String sqlPoolName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -532,33 +436,16 @@ private Mono> listBySqlPoo final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .listBySqlPool( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .withContext(context -> service.listBySqlPool(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Lists extended auditing settings of a Sql pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -567,22 +454,18 @@ private Mono> listBySqlPoo * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of sql pool extended auditing settings along with {@link PagedResponse} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listBySqlPoolSinglePageAsync( String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -598,29 +481,15 @@ private Mono> listBySqlPoo final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listBySqlPool( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + .listBySqlPool(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * Lists extended auditing settings of a Sql pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -630,16 +499,15 @@ private Mono> listBySqlPoo * @return a list of sql pool extended auditing settings as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listBySqlPoolAsync( - String resourceGroupName, String workspaceName, String sqlPoolName) { - return new PagedFlux<>( - () -> listBySqlPoolSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName), + private PagedFlux listBySqlPoolAsync(String resourceGroupName, + String workspaceName, String sqlPoolName) { + return new PagedFlux<>(() -> listBySqlPoolSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName), nextLink -> listBySqlPoolNextSinglePageAsync(nextLink)); } /** * Lists extended auditing settings of a Sql pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -650,8 +518,8 @@ private PagedFlux listBySqlPoolAsync( * @return a list of sql pool extended auditing settings as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listBySqlPoolAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + private PagedFlux listBySqlPoolAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, Context context) { return new PagedFlux<>( () -> listBySqlPoolSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName, context), nextLink -> listBySqlPoolNextSinglePageAsync(nextLink, context)); @@ -659,7 +527,7 @@ private PagedFlux listBySqlPoolAsync( /** * Lists extended auditing settings of a Sql pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -669,14 +537,14 @@ private PagedFlux listBySqlPoolAsync( * @return a list of sql pool extended auditing settings as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listBySqlPool( - String resourceGroupName, String workspaceName, String sqlPoolName) { + public PagedIterable listBySqlPool(String resourceGroupName, + String workspaceName, String sqlPoolName) { return new PagedIterable<>(listBySqlPoolAsync(resourceGroupName, workspaceName, sqlPoolName)); } /** * Lists extended auditing settings of a Sql pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -687,85 +555,68 @@ public PagedIterable listBySqlPool( * @return a list of sql pool extended auditing settings as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listBySqlPool( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + public PagedIterable listBySqlPool(String resourceGroupName, + String workspaceName, String sqlPoolName, Context context) { return new PagedIterable<>(listBySqlPoolAsync(resourceGroupName, workspaceName, sqlPoolName, context)); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of sql pool extended auditing settings along with {@link PagedResponse} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listBySqlPoolNextSinglePageAsync( - String nextLink) { + private Mono> + listBySqlPoolNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil .withContext(context -> service.listBySqlPoolNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of sql pool extended auditing settings along with {@link PagedResponse} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listBySqlPoolNextSinglePageAsync( - String nextLink, Context context) { + private Mono> + listBySqlPoolNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listBySqlPoolNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listBySqlPoolNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ExtendedSqlPoolBlobAuditingPoliciesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ExtendedSqlPoolBlobAuditingPoliciesImpl.java index 90792540bb6b..7b2400ea3486 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ExtendedSqlPoolBlobAuditingPoliciesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ExtendedSqlPoolBlobAuditingPoliciesImpl.java @@ -21,22 +21,18 @@ public final class ExtendedSqlPoolBlobAuditingPoliciesImpl implements ExtendedSq private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public ExtendedSqlPoolBlobAuditingPoliciesImpl( - ExtendedSqlPoolBlobAuditingPoliciesClient innerClient, + public ExtendedSqlPoolBlobAuditingPoliciesImpl(ExtendedSqlPoolBlobAuditingPoliciesClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { - Response inner = - this.serviceClient().getWithResponse(resourceGroupName, workspaceName, sqlPoolName, context); + public Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, workspaceName, sqlPoolName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new ExtendedSqlPoolBlobAuditingPolicyImpl(inner.getValue(), this.manager())); } else { return null; @@ -44,8 +40,8 @@ public Response getWithResponse( } public ExtendedSqlPoolBlobAuditingPolicy get(String resourceGroupName, String workspaceName, String sqlPoolName) { - ExtendedSqlPoolBlobAuditingPolicyInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName); + ExtendedSqlPoolBlobAuditingPolicyInner inner + = this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName); if (inner != null) { return new ExtendedSqlPoolBlobAuditingPolicyImpl(inner, this.manager()); } else { @@ -53,68 +49,56 @@ public ExtendedSqlPoolBlobAuditingPolicy get(String resourceGroupName, String wo } } - public PagedIterable listBySqlPool( - String resourceGroupName, String workspaceName, String sqlPoolName) { - PagedIterable inner = - this.serviceClient().listBySqlPool(resourceGroupName, workspaceName, sqlPoolName); - return Utils.mapPage(inner, inner1 -> new ExtendedSqlPoolBlobAuditingPolicyImpl(inner1, this.manager())); + public PagedIterable listBySqlPool(String resourceGroupName, + String workspaceName, String sqlPoolName) { + PagedIterable inner + = this.serviceClient().listBySqlPool(resourceGroupName, workspaceName, sqlPoolName); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new ExtendedSqlPoolBlobAuditingPolicyImpl(inner1, this.manager())); } - public PagedIterable listBySqlPool( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { - PagedIterable inner = - this.serviceClient().listBySqlPool(resourceGroupName, workspaceName, sqlPoolName, context); - return Utils.mapPage(inner, inner1 -> new ExtendedSqlPoolBlobAuditingPolicyImpl(inner1, this.manager())); + public PagedIterable listBySqlPool(String resourceGroupName, + String workspaceName, String sqlPoolName, Context context) { + PagedIterable inner + = this.serviceClient().listBySqlPool(resourceGroupName, workspaceName, sqlPoolName, context); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new ExtendedSqlPoolBlobAuditingPolicyImpl(inner1, this.manager())); } public ExtendedSqlPoolBlobAuditingPolicy getById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); + String sqlPoolName = ResourceManagerUtils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } return this.getWithResponse(resourceGroupName, workspaceName, sqlPoolName, Context.NONE).getValue(); } public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); + String sqlPoolName = ResourceManagerUtils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } return this.getWithResponse(resourceGroupName, workspaceName, sqlPoolName, context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ExtendedSqlPoolBlobAuditingPolicyImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ExtendedSqlPoolBlobAuditingPolicyImpl.java index 65bdc881064d..c7e9babecf67 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ExtendedSqlPoolBlobAuditingPolicyImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ExtendedSqlPoolBlobAuditingPolicyImpl.java @@ -12,10 +12,8 @@ import java.util.List; import java.util.UUID; -public final class ExtendedSqlPoolBlobAuditingPolicyImpl - implements ExtendedSqlPoolBlobAuditingPolicy, - ExtendedSqlPoolBlobAuditingPolicy.Definition, - ExtendedSqlPoolBlobAuditingPolicy.Update { +public final class ExtendedSqlPoolBlobAuditingPolicyImpl implements ExtendedSqlPoolBlobAuditingPolicy, + ExtendedSqlPoolBlobAuditingPolicy.Definition, ExtendedSqlPoolBlobAuditingPolicy.Update { private ExtendedSqlPoolBlobAuditingPolicyInner innerObject; private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; @@ -95,8 +93,8 @@ private com.azure.resourcemanager.synapse.SynapseManager manager() { private String sqlPoolName; - public ExtendedSqlPoolBlobAuditingPolicyImpl withExistingSqlPool( - String resourceGroupName, String workspaceName, String sqlPoolName) { + public ExtendedSqlPoolBlobAuditingPolicyImpl withExistingSqlPool(String resourceGroupName, String workspaceName, + String sqlPoolName) { this.resourceGroupName = resourceGroupName; this.workspaceName = workspaceName; this.sqlPoolName = sqlPoolName; @@ -104,23 +102,16 @@ public ExtendedSqlPoolBlobAuditingPolicyImpl withExistingSqlPool( } public ExtendedSqlPoolBlobAuditingPolicy create() { - this.innerObject = - serviceManager - .serviceClient() - .getExtendedSqlPoolBlobAuditingPolicies() - .createOrUpdateWithResponse( - resourceGroupName, workspaceName, sqlPoolName, this.innerModel(), Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getExtendedSqlPoolBlobAuditingPolicies() + .createOrUpdateWithResponse(resourceGroupName, workspaceName, sqlPoolName, this.innerModel(), Context.NONE) + .getValue(); return this; } public ExtendedSqlPoolBlobAuditingPolicy create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getExtendedSqlPoolBlobAuditingPolicies() - .createOrUpdateWithResponse(resourceGroupName, workspaceName, sqlPoolName, this.innerModel(), context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getExtendedSqlPoolBlobAuditingPolicies() + .createOrUpdateWithResponse(resourceGroupName, workspaceName, sqlPoolName, this.innerModel(), context) + .getValue(); return this; } @@ -134,53 +125,37 @@ public ExtendedSqlPoolBlobAuditingPolicyImpl update() { } public ExtendedSqlPoolBlobAuditingPolicy apply() { - this.innerObject = - serviceManager - .serviceClient() - .getExtendedSqlPoolBlobAuditingPolicies() - .createOrUpdateWithResponse( - resourceGroupName, workspaceName, sqlPoolName, this.innerModel(), Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getExtendedSqlPoolBlobAuditingPolicies() + .createOrUpdateWithResponse(resourceGroupName, workspaceName, sqlPoolName, this.innerModel(), Context.NONE) + .getValue(); return this; } public ExtendedSqlPoolBlobAuditingPolicy apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getExtendedSqlPoolBlobAuditingPolicies() - .createOrUpdateWithResponse(resourceGroupName, workspaceName, sqlPoolName, this.innerModel(), context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getExtendedSqlPoolBlobAuditingPolicies() + .createOrUpdateWithResponse(resourceGroupName, workspaceName, sqlPoolName, this.innerModel(), context) + .getValue(); return this; } - ExtendedSqlPoolBlobAuditingPolicyImpl( - ExtendedSqlPoolBlobAuditingPolicyInner innerObject, + ExtendedSqlPoolBlobAuditingPolicyImpl(ExtendedSqlPoolBlobAuditingPolicyInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.workspaceName = Utils.getValueFromIdByName(innerObject.id(), "workspaces"); - this.sqlPoolName = Utils.getValueFromIdByName(innerObject.id(), "sqlPools"); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.workspaceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workspaces"); + this.sqlPoolName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "sqlPools"); } public ExtendedSqlPoolBlobAuditingPolicy refresh() { - this.innerObject = - serviceManager - .serviceClient() - .getExtendedSqlPoolBlobAuditingPolicies() - .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getExtendedSqlPoolBlobAuditingPolicies() + .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, Context.NONE).getValue(); return this; } public ExtendedSqlPoolBlobAuditingPolicy refresh(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getExtendedSqlPoolBlobAuditingPolicies() - .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getExtendedSqlPoolBlobAuditingPolicies() + .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, context).getValue(); return this; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/FollowerDatabaseDefinitionImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/FollowerDatabaseDefinitionImpl.java index 95d5f62a6bde..23a35fd4ffb7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/FollowerDatabaseDefinitionImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/FollowerDatabaseDefinitionImpl.java @@ -12,8 +12,8 @@ public final class FollowerDatabaseDefinitionImpl implements FollowerDatabaseDef private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - FollowerDatabaseDefinitionImpl( - FollowerDatabaseDefinitionInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + FollowerDatabaseDefinitionImpl(FollowerDatabaseDefinitionInner innerObject, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/GeoBackupPolicyImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/GeoBackupPolicyImpl.java index e9cba1337336..437b1520a83a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/GeoBackupPolicyImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/GeoBackupPolicyImpl.java @@ -80,24 +80,16 @@ public GeoBackupPolicyImpl withExistingSqlPool(String resourceGroupName, String } public GeoBackupPolicy create() { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolGeoBackupPolicies() - .createOrUpdateWithResponse( - resourceGroupName, workspaceName, sqlPoolName, geoBackupPolicyName, this.innerModel(), Context.NONE) - .getValue(); + this.innerObject + = serviceManager.serviceClient().getSqlPoolGeoBackupPolicies().createOrUpdateWithResponse(resourceGroupName, + workspaceName, sqlPoolName, geoBackupPolicyName, this.innerModel(), Context.NONE).getValue(); return this; } public GeoBackupPolicy create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolGeoBackupPolicies() - .createOrUpdateWithResponse( - resourceGroupName, workspaceName, sqlPoolName, geoBackupPolicyName, this.innerModel(), context) - .getValue(); + this.innerObject + = serviceManager.serviceClient().getSqlPoolGeoBackupPolicies().createOrUpdateWithResponse(resourceGroupName, + workspaceName, sqlPoolName, geoBackupPolicyName, this.innerModel(), context).getValue(); return this; } @@ -112,55 +104,40 @@ public GeoBackupPolicyImpl update() { } public GeoBackupPolicy apply() { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolGeoBackupPolicies() - .createOrUpdateWithResponse( - resourceGroupName, workspaceName, sqlPoolName, geoBackupPolicyName, this.innerModel(), Context.NONE) - .getValue(); + this.innerObject + = serviceManager.serviceClient().getSqlPoolGeoBackupPolicies().createOrUpdateWithResponse(resourceGroupName, + workspaceName, sqlPoolName, geoBackupPolicyName, this.innerModel(), Context.NONE).getValue(); return this; } public GeoBackupPolicy apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolGeoBackupPolicies() - .createOrUpdateWithResponse( - resourceGroupName, workspaceName, sqlPoolName, geoBackupPolicyName, this.innerModel(), context) - .getValue(); + this.innerObject + = serviceManager.serviceClient().getSqlPoolGeoBackupPolicies().createOrUpdateWithResponse(resourceGroupName, + workspaceName, sqlPoolName, geoBackupPolicyName, this.innerModel(), context).getValue(); return this; } - GeoBackupPolicyImpl( - GeoBackupPolicyInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + GeoBackupPolicyImpl(GeoBackupPolicyInner innerObject, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.workspaceName = Utils.getValueFromIdByName(innerObject.id(), "workspaces"); - this.sqlPoolName = Utils.getValueFromIdByName(innerObject.id(), "sqlPools"); - this.geoBackupPolicyName = - GeoBackupPolicyName.fromString(Utils.getValueFromIdByName(innerObject.id(), "geoBackupPolicies")); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.workspaceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workspaces"); + this.sqlPoolName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "sqlPools"); + this.geoBackupPolicyName = GeoBackupPolicyName + .fromString(ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "geoBackupPolicies")); } public GeoBackupPolicy refresh() { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolGeoBackupPolicies() - .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, geoBackupPolicyName, Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getSqlPoolGeoBackupPolicies() + .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, geoBackupPolicyName, Context.NONE) + .getValue(); return this; } public GeoBackupPolicy refresh(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolGeoBackupPolicies() - .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, geoBackupPolicyName, context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getSqlPoolGeoBackupPolicies() + .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, geoBackupPolicyName, context).getValue(); return this; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/GetsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/GetsClientImpl.java index 01ea1828001a..24fb23fc2866 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/GetsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/GetsClientImpl.java @@ -27,17 +27,23 @@ import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeStopOperationStatusInner; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in GetsClient. */ +/** + * An instance of this class provides access to all the operations defined in GetsClient. + */ public final class GetsClientImpl implements GetsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final GetsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of GetsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ GetsClientImpl(SynapseManagementClientImpl client) { @@ -52,66 +58,48 @@ public final class GetsClientImpl implements GetsClient { @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface GetsService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/start/operationstatuses" - + "/{integrationRuntimeOperationId}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/start/operationstatuses/{integrationRuntimeOperationId}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> integrationRuntimeStart( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, + @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("integrationRuntimeName") String integrationRuntimeName, @PathParam("integrationRuntimeOperationId") String integrationRuntimeOperationId, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/stop/operationstatuses" - + "/{integrationRuntimeOperationId}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/stop/operationstatuses/{integrationRuntimeOperationId}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> integrationRuntimeStop( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, + @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("integrationRuntimeName") String integrationRuntimeName, @PathParam("integrationRuntimeOperationId") String integrationRuntimeOperationId, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/enableinteractivequery" - + "/operationstatuses/{integrationRuntimeOperationId}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/enableinteractivequery/operationstatuses/{integrationRuntimeOperationId}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> integrationRuntimeEnableInteractivequery( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, + @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("integrationRuntimeName") String integrationRuntimeName, @PathParam("integrationRuntimeOperationId") String integrationRuntimeOperationId, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); } /** * Get integration runtime start operation status - * - *

Get an integration runtime start operation status. - * + * + * Get an integration runtime start operation status. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -120,25 +108,19 @@ Mono> integrationRuntime * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an integration runtime start operation status along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> integrationRuntimeStartWithResponseAsync( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, + String resourceGroupName, String workspaceName, String integrationRuntimeName, String integrationRuntimeOperationId) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -148,40 +130,27 @@ private Mono> integrationRuntim return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } if (integrationRuntimeOperationId == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter integrationRuntimeOperationId is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter integrationRuntimeOperationId is required and cannot be null.")); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .integrationRuntimeStart( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - integrationRuntimeName, - integrationRuntimeOperationId, - accept, - context)) + .withContext(context -> service.integrationRuntimeStart(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, + integrationRuntimeOperationId, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get integration runtime start operation status - * - *

Get an integration runtime start operation status. - * + * + * Get an integration runtime start operation status. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -191,26 +160,19 @@ private Mono> integrationRuntim * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an integration runtime start operation status along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> integrationRuntimeStartWithResponseAsync( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String integrationRuntimeOperationId, - Context context) { + String resourceGroupName, String workspaceName, String integrationRuntimeName, + String integrationRuntimeOperationId, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -220,37 +182,25 @@ private Mono> integrationRuntim return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } if (integrationRuntimeOperationId == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter integrationRuntimeOperationId is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter integrationRuntimeOperationId is required and cannot be null.")); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .integrationRuntimeStart( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - integrationRuntimeName, - integrationRuntimeOperationId, - accept, - context); + return service.integrationRuntimeStart(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, integrationRuntimeName, integrationRuntimeOperationId, accept, context); } /** * Get integration runtime start operation status - * - *

Get an integration runtime start operation status. - * + * + * Get an integration runtime start operation status. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -261,21 +211,17 @@ private Mono> integrationRuntim * @return an integration runtime start operation status on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono integrationRuntimeStartAsync( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String integrationRuntimeOperationId) { - return integrationRuntimeStartWithResponseAsync( - resourceGroupName, workspaceName, integrationRuntimeName, integrationRuntimeOperationId) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + private Mono integrationRuntimeStartAsync(String resourceGroupName, + String workspaceName, String integrationRuntimeName, String integrationRuntimeOperationId) { + return integrationRuntimeStartWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, + integrationRuntimeOperationId).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Get integration runtime start operation status - * - *

Get an integration runtime start operation status. - * + * + * Get an integration runtime start operation status. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -288,21 +234,17 @@ private Mono integrationRuntimeStartAsyn */ @ServiceMethod(returns = ReturnType.SINGLE) public Response integrationRuntimeStartWithResponse( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String integrationRuntimeOperationId, - Context context) { - return integrationRuntimeStartWithResponseAsync( - resourceGroupName, workspaceName, integrationRuntimeName, integrationRuntimeOperationId, context) - .block(); + String resourceGroupName, String workspaceName, String integrationRuntimeName, + String integrationRuntimeOperationId, Context context) { + return integrationRuntimeStartWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, + integrationRuntimeOperationId, context).block(); } /** * Get integration runtime start operation status - * - *

Get an integration runtime start operation status. - * + * + * Get an integration runtime start operation status. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -313,21 +255,17 @@ public Response integrationRuntimeStartW * @return an integration runtime start operation status. */ @ServiceMethod(returns = ReturnType.SINGLE) - public IntegrationRuntimeOperationStatusInner integrationRuntimeStart( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String integrationRuntimeOperationId) { - return integrationRuntimeStartWithResponse( - resourceGroupName, workspaceName, integrationRuntimeName, integrationRuntimeOperationId, Context.NONE) - .getValue(); + public IntegrationRuntimeOperationStatusInner integrationRuntimeStart(String resourceGroupName, + String workspaceName, String integrationRuntimeName, String integrationRuntimeOperationId) { + return integrationRuntimeStartWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, + integrationRuntimeOperationId, Context.NONE).getValue(); } /** * Get integration runtime stop operation status - * - *

Get an integration runtime stop operation status. - * + * + * Get an integration runtime stop operation status. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -336,25 +274,19 @@ public IntegrationRuntimeOperationStatusInner integrationRuntimeStart( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an integration runtime stop operation status along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> integrationRuntimeStopWithResponseAsync( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, + String resourceGroupName, String workspaceName, String integrationRuntimeName, String integrationRuntimeOperationId) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -364,40 +296,27 @@ private Mono> integrationRu return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } if (integrationRuntimeOperationId == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter integrationRuntimeOperationId is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter integrationRuntimeOperationId is required and cannot be null.")); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .integrationRuntimeStop( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - integrationRuntimeName, - integrationRuntimeOperationId, - accept, - context)) + .withContext(context -> service.integrationRuntimeStop(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, + integrationRuntimeOperationId, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get integration runtime stop operation status - * - *

Get an integration runtime stop operation status. - * + * + * Get an integration runtime stop operation status. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -407,26 +326,19 @@ private Mono> integrationRu * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an integration runtime stop operation status along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> integrationRuntimeStopWithResponseAsync( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String integrationRuntimeOperationId, - Context context) { + String resourceGroupName, String workspaceName, String integrationRuntimeName, + String integrationRuntimeOperationId, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -436,37 +348,25 @@ private Mono> integrationRu return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } if (integrationRuntimeOperationId == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter integrationRuntimeOperationId is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter integrationRuntimeOperationId is required and cannot be null.")); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .integrationRuntimeStop( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - integrationRuntimeName, - integrationRuntimeOperationId, - accept, - context); + return service.integrationRuntimeStop(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, integrationRuntimeName, integrationRuntimeOperationId, accept, context); } /** * Get integration runtime stop operation status - * - *

Get an integration runtime stop operation status. - * + * + * Get an integration runtime stop operation status. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -477,21 +377,17 @@ private Mono> integrationRu * @return an integration runtime stop operation status on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono integrationRuntimeStopAsync( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String integrationRuntimeOperationId) { - return integrationRuntimeStopWithResponseAsync( - resourceGroupName, workspaceName, integrationRuntimeName, integrationRuntimeOperationId) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + private Mono integrationRuntimeStopAsync(String resourceGroupName, + String workspaceName, String integrationRuntimeName, String integrationRuntimeOperationId) { + return integrationRuntimeStopWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, + integrationRuntimeOperationId).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Get integration runtime stop operation status - * - *

Get an integration runtime stop operation status. - * + * + * Get an integration runtime stop operation status. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -504,21 +400,17 @@ private Mono integrationRuntimeStopA */ @ServiceMethod(returns = ReturnType.SINGLE) public Response integrationRuntimeStopWithResponse( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String integrationRuntimeOperationId, - Context context) { - return integrationRuntimeStopWithResponseAsync( - resourceGroupName, workspaceName, integrationRuntimeName, integrationRuntimeOperationId, context) - .block(); + String resourceGroupName, String workspaceName, String integrationRuntimeName, + String integrationRuntimeOperationId, Context context) { + return integrationRuntimeStopWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, + integrationRuntimeOperationId, context).block(); } /** * Get integration runtime stop operation status - * - *

Get an integration runtime stop operation status. - * + * + * Get an integration runtime stop operation status. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -529,21 +421,17 @@ public Response integrationRuntimeSt * @return an integration runtime stop operation status. */ @ServiceMethod(returns = ReturnType.SINGLE) - public IntegrationRuntimeStopOperationStatusInner integrationRuntimeStop( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String integrationRuntimeOperationId) { - return integrationRuntimeStopWithResponse( - resourceGroupName, workspaceName, integrationRuntimeName, integrationRuntimeOperationId, Context.NONE) - .getValue(); + public IntegrationRuntimeStopOperationStatusInner integrationRuntimeStop(String resourceGroupName, + String workspaceName, String integrationRuntimeName, String integrationRuntimeOperationId) { + return integrationRuntimeStopWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, + integrationRuntimeOperationId, Context.NONE).getValue(); } /** * Get integration runtime enable interactivequery operation status - * - *

Get an integration runtime enable interactivequery operation status. - * + * + * Get an integration runtime enable interactivequery operation status. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -552,26 +440,19 @@ public IntegrationRuntimeStopOperationStatusInner integrationRuntimeStop( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an integration runtime enable interactivequery operation status along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> - integrationRuntimeEnableInteractivequeryWithResponseAsync( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String integrationRuntimeOperationId) { + integrationRuntimeEnableInteractivequeryWithResponseAsync(String resourceGroupName, String workspaceName, + String integrationRuntimeName, String integrationRuntimeOperationId) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -581,40 +462,27 @@ public IntegrationRuntimeStopOperationStatusInner integrationRuntimeStop( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } if (integrationRuntimeOperationId == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter integrationRuntimeOperationId is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter integrationRuntimeOperationId is required and cannot be null.")); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .integrationRuntimeEnableInteractivequery( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - integrationRuntimeName, - integrationRuntimeOperationId, - accept, - context)) + .withContext(context -> service.integrationRuntimeEnableInteractivequery(this.client.getEndpoint(), + apiVersion, this.client.getSubscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, + integrationRuntimeOperationId, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get integration runtime enable interactivequery operation status - * - *

Get an integration runtime enable interactivequery operation status. - * + * + * Get an integration runtime enable interactivequery operation status. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -624,27 +492,19 @@ public IntegrationRuntimeStopOperationStatusInner integrationRuntimeStop( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an integration runtime enable interactivequery operation status along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> - integrationRuntimeEnableInteractivequeryWithResponseAsync( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String integrationRuntimeOperationId, - Context context) { + integrationRuntimeEnableInteractivequeryWithResponseAsync(String resourceGroupName, String workspaceName, + String integrationRuntimeName, String integrationRuntimeOperationId, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -654,37 +514,26 @@ public IntegrationRuntimeStopOperationStatusInner integrationRuntimeStop( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } if (integrationRuntimeOperationId == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter integrationRuntimeOperationId is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter integrationRuntimeOperationId is required and cannot be null.")); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .integrationRuntimeEnableInteractivequery( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - integrationRuntimeName, - integrationRuntimeOperationId, - accept, - context); + return service.integrationRuntimeEnableInteractivequery(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, + integrationRuntimeOperationId, accept, context); } /** * Get integration runtime enable interactivequery operation status - * - *

Get an integration runtime enable interactivequery operation status. - * + * + * Get an integration runtime enable interactivequery operation status. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -696,20 +545,17 @@ public IntegrationRuntimeStopOperationStatusInner integrationRuntimeStop( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono integrationRuntimeEnableInteractivequeryAsync( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, + String resourceGroupName, String workspaceName, String integrationRuntimeName, String integrationRuntimeOperationId) { - return integrationRuntimeEnableInteractivequeryWithResponseAsync( - resourceGroupName, workspaceName, integrationRuntimeName, integrationRuntimeOperationId) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + return integrationRuntimeEnableInteractivequeryWithResponseAsync(resourceGroupName, workspaceName, + integrationRuntimeName, integrationRuntimeOperationId).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Get integration runtime enable interactivequery operation status - * - *

Get an integration runtime enable interactivequery operation status. - * + * + * Get an integration runtime enable interactivequery operation status. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -722,21 +568,17 @@ private Mono integrationRuntimeEn */ @ServiceMethod(returns = ReturnType.SINGLE) public Response integrationRuntimeEnableInteractivequeryWithResponse( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String integrationRuntimeOperationId, - Context context) { - return integrationRuntimeEnableInteractivequeryWithResponseAsync( - resourceGroupName, workspaceName, integrationRuntimeName, integrationRuntimeOperationId, context) - .block(); + String resourceGroupName, String workspaceName, String integrationRuntimeName, + String integrationRuntimeOperationId, Context context) { + return integrationRuntimeEnableInteractivequeryWithResponseAsync(resourceGroupName, workspaceName, + integrationRuntimeName, integrationRuntimeOperationId, context).block(); } /** * Get integration runtime enable interactivequery operation status - * - *

Get an integration runtime enable interactivequery operation status. - * + * + * Get an integration runtime enable interactivequery operation status. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -748,12 +590,9 @@ public Response integrationRuntim */ @ServiceMethod(returns = ReturnType.SINGLE) public IntegrationRuntimeEnableinteractivequeryInner integrationRuntimeEnableInteractivequery( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, + String resourceGroupName, String workspaceName, String integrationRuntimeName, String integrationRuntimeOperationId) { - return integrationRuntimeEnableInteractivequeryWithResponse( - resourceGroupName, workspaceName, integrationRuntimeName, integrationRuntimeOperationId, Context.NONE) - .getValue(); + return integrationRuntimeEnableInteractivequeryWithResponse(resourceGroupName, workspaceName, + integrationRuntimeName, integrationRuntimeOperationId, Context.NONE).getValue(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/GetsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/GetsImpl.java index 715fd876303d..0c09c5bd3c7b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/GetsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/GetsImpl.java @@ -29,38 +29,23 @@ public GetsImpl(GetsClient innerClient, com.azure.resourcemanager.synapse.Synaps this.serviceManager = serviceManager; } - public Response integrationRuntimeStartWithResponse( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String integrationRuntimeOperationId, - Context context) { - Response inner = - this - .serviceClient() - .integrationRuntimeStartWithResponse( - resourceGroupName, workspaceName, integrationRuntimeName, integrationRuntimeOperationId, context); + public Response integrationRuntimeStartWithResponse(String resourceGroupName, + String workspaceName, String integrationRuntimeName, String integrationRuntimeOperationId, Context context) { + Response inner + = this.serviceClient().integrationRuntimeStartWithResponse(resourceGroupName, workspaceName, + integrationRuntimeName, integrationRuntimeOperationId, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new IntegrationRuntimeOperationStatusImpl(inner.getValue(), this.manager())); } else { return null; } } - public IntegrationRuntimeOperationStatus integrationRuntimeStart( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String integrationRuntimeOperationId) { - IntegrationRuntimeOperationStatusInner inner = - this - .serviceClient() - .integrationRuntimeStart( - resourceGroupName, workspaceName, integrationRuntimeName, integrationRuntimeOperationId); + public IntegrationRuntimeOperationStatus integrationRuntimeStart(String resourceGroupName, String workspaceName, + String integrationRuntimeName, String integrationRuntimeOperationId) { + IntegrationRuntimeOperationStatusInner inner = this.serviceClient().integrationRuntimeStart(resourceGroupName, + workspaceName, integrationRuntimeName, integrationRuntimeOperationId); if (inner != null) { return new IntegrationRuntimeOperationStatusImpl(inner, this.manager()); } else { @@ -68,38 +53,23 @@ public IntegrationRuntimeOperationStatus integrationRuntimeStart( } } - public Response integrationRuntimeStopWithResponse( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String integrationRuntimeOperationId, - Context context) { - Response inner = - this - .serviceClient() - .integrationRuntimeStopWithResponse( - resourceGroupName, workspaceName, integrationRuntimeName, integrationRuntimeOperationId, context); + public Response integrationRuntimeStopWithResponse(String resourceGroupName, + String workspaceName, String integrationRuntimeName, String integrationRuntimeOperationId, Context context) { + Response inner + = this.serviceClient().integrationRuntimeStopWithResponse(resourceGroupName, workspaceName, + integrationRuntimeName, integrationRuntimeOperationId, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new IntegrationRuntimeStopOperationStatusImpl(inner.getValue(), this.manager())); } else { return null; } } - public IntegrationRuntimeStopOperationStatus integrationRuntimeStop( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String integrationRuntimeOperationId) { - IntegrationRuntimeStopOperationStatusInner inner = - this - .serviceClient() - .integrationRuntimeStop( - resourceGroupName, workspaceName, integrationRuntimeName, integrationRuntimeOperationId); + public IntegrationRuntimeStopOperationStatus integrationRuntimeStop(String resourceGroupName, String workspaceName, + String integrationRuntimeName, String integrationRuntimeOperationId) { + IntegrationRuntimeStopOperationStatusInner inner = this.serviceClient().integrationRuntimeStop( + resourceGroupName, workspaceName, integrationRuntimeName, integrationRuntimeOperationId); if (inner != null) { return new IntegrationRuntimeStopOperationStatusImpl(inner, this.manager()); } else { @@ -108,37 +78,24 @@ public IntegrationRuntimeStopOperationStatus integrationRuntimeStop( } public Response integrationRuntimeEnableInteractivequeryWithResponse( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String integrationRuntimeOperationId, - Context context) { - Response inner = - this - .serviceClient() - .integrationRuntimeEnableInteractivequeryWithResponse( - resourceGroupName, workspaceName, integrationRuntimeName, integrationRuntimeOperationId, context); + String resourceGroupName, String workspaceName, String integrationRuntimeName, + String integrationRuntimeOperationId, Context context) { + Response inner + = this.serviceClient().integrationRuntimeEnableInteractivequeryWithResponse(resourceGroupName, + workspaceName, integrationRuntimeName, integrationRuntimeOperationId, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new IntegrationRuntimeEnableinteractivequeryImpl(inner.getValue(), this.manager())); } else { return null; } } - public IntegrationRuntimeEnableinteractivequery integrationRuntimeEnableInteractivequery( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String integrationRuntimeOperationId) { - IntegrationRuntimeEnableinteractivequeryInner inner = - this - .serviceClient() - .integrationRuntimeEnableInteractivequery( - resourceGroupName, workspaceName, integrationRuntimeName, integrationRuntimeOperationId); + public IntegrationRuntimeEnableinteractivequery integrationRuntimeEnableInteractivequery(String resourceGroupName, + String workspaceName, String integrationRuntimeName, String integrationRuntimeOperationId) { + IntegrationRuntimeEnableinteractivequeryInner inner + = this.serviceClient().integrationRuntimeEnableInteractivequery(resourceGroupName, workspaceName, + integrationRuntimeName, integrationRuntimeOperationId); if (inner != null) { return new IntegrationRuntimeEnableinteractivequeryImpl(inner, this.manager()); } else { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeAuthKeysImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeAuthKeysImpl.java index 7dfd1ebceafb..6576a2ab8c8b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeAuthKeysImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeAuthKeysImpl.java @@ -12,8 +12,8 @@ public final class IntegrationRuntimeAuthKeysImpl implements IntegrationRuntimeA private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - IntegrationRuntimeAuthKeysImpl( - IntegrationRuntimeAuthKeysInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + IntegrationRuntimeAuthKeysImpl(IntegrationRuntimeAuthKeysInner innerObject, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeAuthKeysOperationsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeAuthKeysOperationsClientImpl.java index 2f29c5cd969d..c0090d2eb355 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeAuthKeysOperationsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeAuthKeysOperationsClientImpl.java @@ -33,24 +33,24 @@ */ public final class IntegrationRuntimeAuthKeysOperationsClientImpl implements IntegrationRuntimeAuthKeysOperationsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final IntegrationRuntimeAuthKeysOperationsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of IntegrationRuntimeAuthKeysOperationsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ IntegrationRuntimeAuthKeysOperationsClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy - .create( - IntegrationRuntimeAuthKeysOperationsService.class, - client.getHttpPipeline(), - client.getSerializerAdapter()); + this.service = RestProxy.create(IntegrationRuntimeAuthKeysOperationsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } @@ -61,45 +61,33 @@ public final class IntegrationRuntimeAuthKeysOperationsClientImpl @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface IntegrationRuntimeAuthKeysOperationsService { - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/regenerateAuthKey") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/regenerateAuthKey") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> regenerate( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono> regenerate(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("integrationRuntimeName") String integrationRuntimeName, @BodyParam("application/json") IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/listAuthKeys") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/listAuthKeys") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @HeaderParam("Accept") String accept, + Mono> list(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("integrationRuntimeName") String integrationRuntimeName, @HeaderParam("Accept") String accept, Context context); } /** * Regenerate integration runtime authentication key - * - *

Regenerate the authentication key for an integration runtime. - * + * + * Regenerate the authentication key for an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -108,25 +96,19 @@ Mono> list( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the integration runtime authentication keys along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> regenerateWithResponseAsync( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, + private Mono> regenerateWithResponseAsync(String resourceGroupName, + String workspaceName, String integrationRuntimeName, IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -136,14 +118,12 @@ private Mono> regenerateWithResponseAs return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } if (regenerateKeyParameters == null) { - return Mono - .error( - new IllegalArgumentException("Parameter regenerateKeyParameters is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter regenerateKeyParameters is required and cannot be null.")); } else { regenerateKeyParameters.validate(); } @@ -151,26 +131,16 @@ private Mono> regenerateWithResponseAs final String accept = "application/json"; return FluxUtil .withContext( - context -> - service - .regenerate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - integrationRuntimeName, - regenerateKeyParameters, - accept, - context)) + context -> service.regenerate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, integrationRuntimeName, regenerateKeyParameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Regenerate integration runtime authentication key - * - *

Regenerate the authentication key for an integration runtime. - * + * + * Regenerate the authentication key for an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -180,26 +150,19 @@ private Mono> regenerateWithResponseAs * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the integration runtime authentication keys along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> regenerateWithResponseAsync( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters, - Context context) { + private Mono> regenerateWithResponseAsync(String resourceGroupName, + String workspaceName, String integrationRuntimeName, + IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -209,38 +172,27 @@ private Mono> regenerateWithResponseAs return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } if (regenerateKeyParameters == null) { - return Mono - .error( - new IllegalArgumentException("Parameter regenerateKeyParameters is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter regenerateKeyParameters is required and cannot be null.")); } else { regenerateKeyParameters.validate(); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .regenerate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - integrationRuntimeName, - regenerateKeyParameters, - accept, - context); + return service.regenerate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, integrationRuntimeName, regenerateKeyParameters, accept, context); } /** * Regenerate integration runtime authentication key - * - *

Regenerate the authentication key for an integration runtime. - * + * + * Regenerate the authentication key for an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -251,21 +203,17 @@ private Mono> regenerateWithResponseAs * @return the integration runtime authentication keys on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono regenerateAsync( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters) { - return regenerateWithResponseAsync( - resourceGroupName, workspaceName, integrationRuntimeName, regenerateKeyParameters) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + private Mono regenerateAsync(String resourceGroupName, String workspaceName, + String integrationRuntimeName, IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters) { + return regenerateWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, + regenerateKeyParameters).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Regenerate integration runtime authentication key - * - *

Regenerate the authentication key for an integration runtime. - * + * + * Regenerate the authentication key for an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -277,22 +225,18 @@ private Mono regenerateAsync( * @return the integration runtime authentication keys along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response regenerateWithResponse( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters, - Context context) { - return regenerateWithResponseAsync( - resourceGroupName, workspaceName, integrationRuntimeName, regenerateKeyParameters, context) - .block(); + public Response regenerateWithResponse(String resourceGroupName, + String workspaceName, String integrationRuntimeName, + IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters, Context context) { + return regenerateWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, + regenerateKeyParameters, context).block(); } /** * Regenerate integration runtime authentication key - * - *

Regenerate the authentication key for an integration runtime. - * + * + * Regenerate the authentication key for an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -303,21 +247,17 @@ public Response regenerateWithResponse( * @return the integration runtime authentication keys. */ @ServiceMethod(returns = ReturnType.SINGLE) - public IntegrationRuntimeAuthKeysInner regenerate( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters) { - return regenerateWithResponse( - resourceGroupName, workspaceName, integrationRuntimeName, regenerateKeyParameters, Context.NONE) - .getValue(); + public IntegrationRuntimeAuthKeysInner regenerate(String resourceGroupName, String workspaceName, + String integrationRuntimeName, IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters) { + return regenerateWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, regenerateKeyParameters, + Context.NONE).getValue(); } /** * List integration runtime authentication keys - * - *

List authentication keys in an integration runtime. - * + * + * List authentication keys in an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -325,22 +265,18 @@ public IntegrationRuntimeAuthKeysInner regenerate( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the integration runtime authentication keys along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listWithResponseAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { + private Mono> listWithResponseAsync(String resourceGroupName, + String workspaceName, String integrationRuntimeName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -350,33 +286,22 @@ private Mono> listWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - integrationRuntimeName, - accept, - context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, integrationRuntimeName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * List integration runtime authentication keys - * - *

List authentication keys in an integration runtime. - * + * + * List authentication keys in an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -385,22 +310,18 @@ private Mono> listWithResponseAsync( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the integration runtime authentication keys along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listWithResponseAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { + private Mono> listWithResponseAsync(String resourceGroupName, + String workspaceName, String integrationRuntimeName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -410,30 +331,21 @@ private Mono> listWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - integrationRuntimeName, - accept, - context); + return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, integrationRuntimeName, accept, context); } /** * List integration runtime authentication keys - * - *

List authentication keys in an integration runtime. - * + * + * List authentication keys in an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -443,17 +355,17 @@ private Mono> listWithResponseAsync( * @return the integration runtime authentication keys on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono listAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { + private Mono listAsync(String resourceGroupName, String workspaceName, + String integrationRuntimeName) { return listWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * List integration runtime authentication keys - * - *

List authentication keys in an integration runtime. - * + * + * List authentication keys in an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -464,16 +376,16 @@ private Mono listAsync( * @return the integration runtime authentication keys along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response listWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { + public Response listWithResponse(String resourceGroupName, String workspaceName, + String integrationRuntimeName, Context context) { return listWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, context).block(); } /** * List integration runtime authentication keys - * - *

List authentication keys in an integration runtime. - * + * + * List authentication keys in an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -483,8 +395,8 @@ public Response listWithResponse( * @return the integration runtime authentication keys. */ @ServiceMethod(returns = ReturnType.SINGLE) - public IntegrationRuntimeAuthKeysInner list( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { + public IntegrationRuntimeAuthKeysInner list(String resourceGroupName, String workspaceName, + String integrationRuntimeName) { return listWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, Context.NONE).getValue(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeAuthKeysOperationsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeAuthKeysOperationsImpl.java index d162ceb7a07e..681f8b0a27fc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeAuthKeysOperationsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeAuthKeysOperationsImpl.java @@ -21,44 +21,29 @@ public final class IntegrationRuntimeAuthKeysOperationsImpl implements Integrati private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public IntegrationRuntimeAuthKeysOperationsImpl( - IntegrationRuntimeAuthKeysOperationsClient innerClient, + public IntegrationRuntimeAuthKeysOperationsImpl(IntegrationRuntimeAuthKeysOperationsClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public Response regenerateWithResponse( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters, + public Response regenerateWithResponse(String resourceGroupName, String workspaceName, + String integrationRuntimeName, IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters, Context context) { - Response inner = - this - .serviceClient() - .regenerateWithResponse( - resourceGroupName, workspaceName, integrationRuntimeName, regenerateKeyParameters, context); + Response inner = this.serviceClient().regenerateWithResponse(resourceGroupName, + workspaceName, integrationRuntimeName, regenerateKeyParameters, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new IntegrationRuntimeAuthKeysImpl(inner.getValue(), this.manager())); } else { return null; } } - public IntegrationRuntimeAuthKeys regenerate( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters) { - IntegrationRuntimeAuthKeysInner inner = - this - .serviceClient() - .regenerate(resourceGroupName, workspaceName, integrationRuntimeName, regenerateKeyParameters); + public IntegrationRuntimeAuthKeys regenerate(String resourceGroupName, String workspaceName, + String integrationRuntimeName, IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters) { + IntegrationRuntimeAuthKeysInner inner = this.serviceClient().regenerate(resourceGroupName, workspaceName, + integrationRuntimeName, regenerateKeyParameters); if (inner != null) { return new IntegrationRuntimeAuthKeysImpl(inner, this.manager()); } else { @@ -66,25 +51,22 @@ public IntegrationRuntimeAuthKeys regenerate( } } - public Response listWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { - Response inner = - this.serviceClient().listWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, context); + public Response listWithResponse(String resourceGroupName, String workspaceName, + String integrationRuntimeName, Context context) { + Response inner + = this.serviceClient().listWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new IntegrationRuntimeAuthKeysImpl(inner.getValue(), this.manager())); } else { return null; } } - public IntegrationRuntimeAuthKeys list( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { - IntegrationRuntimeAuthKeysInner inner = - this.serviceClient().list(resourceGroupName, workspaceName, integrationRuntimeName); + public IntegrationRuntimeAuthKeys list(String resourceGroupName, String workspaceName, + String integrationRuntimeName) { + IntegrationRuntimeAuthKeysInner inner + = this.serviceClient().list(resourceGroupName, workspaceName, integrationRuntimeName); if (inner != null) { return new IntegrationRuntimeAuthKeysImpl(inner, this.manager()); } else { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeConnectionInfoImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeConnectionInfoImpl.java index e3c2a30ecce1..eb08a7a57f49 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeConnectionInfoImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeConnectionInfoImpl.java @@ -14,8 +14,7 @@ public final class IntegrationRuntimeConnectionInfoImpl implements IntegrationRu private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - IntegrationRuntimeConnectionInfoImpl( - IntegrationRuntimeConnectionInfoInner innerObject, + IntegrationRuntimeConnectionInfoImpl(IntegrationRuntimeConnectionInfoInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeConnectionInfosClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeConnectionInfosClientImpl.java index 999b405d251c..fa28f579abd0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeConnectionInfosClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeConnectionInfosClientImpl.java @@ -29,24 +29,24 @@ * An instance of this class provides access to all the operations defined in IntegrationRuntimeConnectionInfosClient. */ public final class IntegrationRuntimeConnectionInfosClientImpl implements IntegrationRuntimeConnectionInfosClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final IntegrationRuntimeConnectionInfosService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of IntegrationRuntimeConnectionInfosClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ IntegrationRuntimeConnectionInfosClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy - .create( - IntegrationRuntimeConnectionInfosService.class, - client.getHttpPipeline(), - client.getSerializerAdapter()); + this.service = RestProxy.create(IntegrationRuntimeConnectionInfosService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } @@ -57,51 +57,41 @@ public final class IntegrationRuntimeConnectionInfosClientImpl implements Integr @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface IntegrationRuntimeConnectionInfosService { - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/getConnectionInfo") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/getConnectionInfo") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @HeaderParam("Accept") String accept, + Mono> get(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("integrationRuntimeName") String integrationRuntimeName, @HeaderParam("Accept") String accept, Context context); } /** * Get integration runtime connection info - * - *

Get connection info for an integration runtime. - * + * + * Get connection info for an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return connection info for an integration runtime along with {@link Response} on successful completion of {@link - * Mono}. + * @return connection info for an integration runtime along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, String integrationRuntimeName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -111,33 +101,22 @@ private Mono> getWithResponseAsy return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - integrationRuntimeName, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, integrationRuntimeName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get integration runtime connection info - * - *

Get connection info for an integration runtime. - * + * + * Get connection info for an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -145,23 +124,19 @@ private Mono> getWithResponseAsy * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return connection info for an integration runtime along with {@link Response} on successful completion of {@link - * Mono}. + * @return connection info for an integration runtime along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, String integrationRuntimeName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -171,30 +146,21 @@ private Mono> getWithResponseAsy return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - integrationRuntimeName, - accept, - context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, integrationRuntimeName, accept, context); } /** * Get integration runtime connection info - * - *

Get connection info for an integration runtime. - * + * + * Get connection info for an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -204,17 +170,17 @@ private Mono> getWithResponseAsy * @return connection info for an integration runtime on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { + private Mono getAsync(String resourceGroupName, String workspaceName, + String integrationRuntimeName) { return getWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Get integration runtime connection info - * - *

Get connection info for an integration runtime. - * + * + * Get connection info for an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -225,16 +191,16 @@ private Mono getAsync( * @return connection info for an integration runtime along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { + public Response getWithResponse(String resourceGroupName, + String workspaceName, String integrationRuntimeName, Context context) { return getWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, context).block(); } /** * Get integration runtime connection info - * - *

Get connection info for an integration runtime. - * + * + * Get connection info for an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -244,8 +210,8 @@ public Response getWithResponse( * @return connection info for an integration runtime. */ @ServiceMethod(returns = ReturnType.SINGLE) - public IntegrationRuntimeConnectionInfoInner get( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { + public IntegrationRuntimeConnectionInfoInner get(String resourceGroupName, String workspaceName, + String integrationRuntimeName) { return getWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, Context.NONE).getValue(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeConnectionInfosImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeConnectionInfosImpl.java index 4d37a901ca5a..bd6d76b3ed62 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeConnectionInfosImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeConnectionInfosImpl.java @@ -20,32 +20,28 @@ public final class IntegrationRuntimeConnectionInfosImpl implements IntegrationR private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public IntegrationRuntimeConnectionInfosImpl( - IntegrationRuntimeConnectionInfosClient innerClient, + public IntegrationRuntimeConnectionInfosImpl(IntegrationRuntimeConnectionInfosClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public Response getWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { - Response inner = - this.serviceClient().getWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, context); + public Response getWithResponse(String resourceGroupName, String workspaceName, + String integrationRuntimeName, Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new IntegrationRuntimeConnectionInfoImpl(inner.getValue(), this.manager())); } else { return null; } } - public IntegrationRuntimeConnectionInfo get( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { - IntegrationRuntimeConnectionInfoInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, integrationRuntimeName); + public IntegrationRuntimeConnectionInfo get(String resourceGroupName, String workspaceName, + String integrationRuntimeName) { + IntegrationRuntimeConnectionInfoInner inner + = this.serviceClient().get(resourceGroupName, workspaceName, integrationRuntimeName); if (inner != null) { return new IntegrationRuntimeConnectionInfoImpl(inner, this.manager()); } else { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeCredentialsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeCredentialsClientImpl.java index f1be61d7b214..c592c7d45c0a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeCredentialsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeCredentialsClientImpl.java @@ -24,26 +24,28 @@ import com.azure.resourcemanager.synapse.fluent.IntegrationRuntimeCredentialsClient; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in IntegrationRuntimeCredentialsClient. */ +/** + * An instance of this class provides access to all the operations defined in IntegrationRuntimeCredentialsClient. + */ public final class IntegrationRuntimeCredentialsClientImpl implements IntegrationRuntimeCredentialsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final IntegrationRuntimeCredentialsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of IntegrationRuntimeCredentialsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ IntegrationRuntimeCredentialsClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy - .create( - IntegrationRuntimeCredentialsService.class, - client.getHttpPipeline(), - client.getSerializerAdapter()); + this.service = RestProxy.create(IntegrationRuntimeCredentialsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } @@ -54,31 +56,25 @@ public final class IntegrationRuntimeCredentialsClientImpl implements Integratio @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface IntegrationRuntimeCredentialsService { - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/syncCredentials") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/syncCredentials") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> sync( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, + Mono> sync(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @HeaderParam("Accept") String accept, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("integrationRuntimeName") String integrationRuntimeName, @HeaderParam("Accept") String accept, Context context); } /** * Sync integration runtime credentials - * - *

Force the integration runtime to synchronize credentials across integration runtime nodes, and this will - * override the credentials across all worker nodes with those available on the dispatcher node. If you already have - * the latest credential backup file, you should manually import it (preferred) on any self-hosted integration - * runtime node than using this API directly. - * + * + * Force the integration runtime to synchronize credentials across integration runtime nodes, and this will override + * the credentials across all worker nodes with those available on the dispatcher node. If you already have the + * latest credential backup file, you should manually import it (preferred) on any self-hosted integration runtime + * node than using this API directly. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -88,19 +84,15 @@ Mono> sync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> syncWithResponseAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { + private Mono> syncWithResponseAsync(String resourceGroupName, String workspaceName, + String integrationRuntimeName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -110,36 +102,25 @@ private Mono> syncWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .sync( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - integrationRuntimeName, - accept, - context)) + .withContext(context -> service.sync(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, integrationRuntimeName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Sync integration runtime credentials - * - *

Force the integration runtime to synchronize credentials across integration runtime nodes, and this will - * override the credentials across all worker nodes with those available on the dispatcher node. If you already have - * the latest credential backup file, you should manually import it (preferred) on any self-hosted integration - * runtime node than using this API directly. - * + * + * Force the integration runtime to synchronize credentials across integration runtime nodes, and this will override + * the credentials across all worker nodes with those available on the dispatcher node. If you already have the + * latest credential backup file, you should manually import it (preferred) on any self-hosted integration runtime + * node than using this API directly. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -150,19 +131,15 @@ private Mono> syncWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> syncWithResponseAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { + private Mono> syncWithResponseAsync(String resourceGroupName, String workspaceName, + String integrationRuntimeName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -172,33 +149,24 @@ private Mono> syncWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .sync( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - integrationRuntimeName, - accept, - context); + return service.sync(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, integrationRuntimeName, accept, context); } /** * Sync integration runtime credentials - * - *

Force the integration runtime to synchronize credentials across integration runtime nodes, and this will - * override the credentials across all worker nodes with those available on the dispatcher node. If you already have - * the latest credential backup file, you should manually import it (preferred) on any self-hosted integration - * runtime node than using this API directly. - * + * + * Force the integration runtime to synchronize credentials across integration runtime nodes, and this will override + * the credentials across all worker nodes with those available on the dispatcher node. If you already have the + * latest credential backup file, you should manually import it (preferred) on any self-hosted integration runtime + * node than using this API directly. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -215,12 +183,12 @@ private Mono syncAsync(String resourceGroupName, String workspaceName, Str /** * Sync integration runtime credentials - * - *

Force the integration runtime to synchronize credentials across integration runtime nodes, and this will - * override the credentials across all worker nodes with those available on the dispatcher node. If you already have - * the latest credential backup file, you should manually import it (preferred) on any self-hosted integration - * runtime node than using this API directly. - * + * + * Force the integration runtime to synchronize credentials across integration runtime nodes, and this will override + * the credentials across all worker nodes with those available on the dispatcher node. If you already have the + * latest credential backup file, you should manually import it (preferred) on any self-hosted integration runtime + * node than using this API directly. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -231,19 +199,19 @@ private Mono syncAsync(String resourceGroupName, String workspaceName, Str * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response syncWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { + public Response syncWithResponse(String resourceGroupName, String workspaceName, + String integrationRuntimeName, Context context) { return syncWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, context).block(); } /** * Sync integration runtime credentials - * - *

Force the integration runtime to synchronize credentials across integration runtime nodes, and this will - * override the credentials across all worker nodes with those available on the dispatcher node. If you already have - * the latest credential backup file, you should manually import it (preferred) on any self-hosted integration - * runtime node than using this API directly. - * + * + * Force the integration runtime to synchronize credentials across integration runtime nodes, and this will override + * the credentials across all worker nodes with those available on the dispatcher node. If you already have the + * latest credential backup file, you should manually import it (preferred) on any self-hosted integration runtime + * node than using this API directly. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeCredentialsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeCredentialsImpl.java index 04d52f74ab66..2c1d6b5e7e87 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeCredentialsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeCredentialsImpl.java @@ -17,15 +17,14 @@ public final class IntegrationRuntimeCredentialsImpl implements IntegrationRunti private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public IntegrationRuntimeCredentialsImpl( - IntegrationRuntimeCredentialsClient innerClient, + public IntegrationRuntimeCredentialsImpl(IntegrationRuntimeCredentialsClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public Response syncWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { + public Response syncWithResponse(String resourceGroupName, String workspaceName, + String integrationRuntimeName, Context context) { return this.serviceClient().syncWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeEnableinteractivequeryImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeEnableinteractivequeryImpl.java index 560570b727c3..f06794e116b9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeEnableinteractivequeryImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeEnableinteractivequeryImpl.java @@ -13,8 +13,7 @@ public final class IntegrationRuntimeEnableinteractivequeryImpl implements Integ private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - IntegrationRuntimeEnableinteractivequeryImpl( - IntegrationRuntimeEnableinteractivequeryInner innerObject, + IntegrationRuntimeEnableinteractivequeryImpl(IntegrationRuntimeEnableinteractivequeryInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeMonitoringDataImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeMonitoringDataImpl.java index c25a3bb8b7c9..0bb5958fb221 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeMonitoringDataImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeMonitoringDataImpl.java @@ -15,8 +15,7 @@ public final class IntegrationRuntimeMonitoringDataImpl implements IntegrationRu private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - IntegrationRuntimeMonitoringDataImpl( - IntegrationRuntimeMonitoringDataInner innerObject, + IntegrationRuntimeMonitoringDataImpl(IntegrationRuntimeMonitoringDataInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeMonitoringDatasClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeMonitoringDatasClientImpl.java index 6533a3f6539c..f735117dcdb8 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeMonitoringDatasClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeMonitoringDatasClientImpl.java @@ -29,24 +29,24 @@ * An instance of this class provides access to all the operations defined in IntegrationRuntimeMonitoringDatasClient. */ public final class IntegrationRuntimeMonitoringDatasClientImpl implements IntegrationRuntimeMonitoringDatasClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final IntegrationRuntimeMonitoringDatasService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of IntegrationRuntimeMonitoringDatasClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ IntegrationRuntimeMonitoringDatasClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy - .create( - IntegrationRuntimeMonitoringDatasService.class, - client.getHttpPipeline(), - client.getSerializerAdapter()); + this.service = RestProxy.create(IntegrationRuntimeMonitoringDatasService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } @@ -57,51 +57,41 @@ public final class IntegrationRuntimeMonitoringDatasClientImpl implements Integr @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface IntegrationRuntimeMonitoringDatasService { - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/monitoringData") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/monitoringData") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @HeaderParam("Accept") String accept, + Mono> list(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("integrationRuntimeName") String integrationRuntimeName, @HeaderParam("Accept") String accept, Context context); } /** * Get integration runtime monitoring data - * - *

Get monitoring data for an integration runtime. - * + * + * Get monitoring data for an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return monitoring data for an integration runtime along with {@link Response} on successful completion of {@link - * Mono}. + * @return monitoring data for an integration runtime along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listWithResponseAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { + private Mono> listWithResponseAsync(String resourceGroupName, + String workspaceName, String integrationRuntimeName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -111,33 +101,22 @@ private Mono> listWithResponseAs return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - integrationRuntimeName, - accept, - context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, integrationRuntimeName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get integration runtime monitoring data - * - *

Get monitoring data for an integration runtime. - * + * + * Get monitoring data for an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -145,23 +124,19 @@ private Mono> listWithResponseAs * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return monitoring data for an integration runtime along with {@link Response} on successful completion of {@link - * Mono}. + * @return monitoring data for an integration runtime along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listWithResponseAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { + private Mono> listWithResponseAsync(String resourceGroupName, + String workspaceName, String integrationRuntimeName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -171,30 +146,21 @@ private Mono> listWithResponseAs return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - integrationRuntimeName, - accept, - context); + return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, integrationRuntimeName, accept, context); } /** * Get integration runtime monitoring data - * - *

Get monitoring data for an integration runtime. - * + * + * Get monitoring data for an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -204,17 +170,17 @@ private Mono> listWithResponseAs * @return monitoring data for an integration runtime on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono listAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { + private Mono listAsync(String resourceGroupName, String workspaceName, + String integrationRuntimeName) { return listWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Get integration runtime monitoring data - * - *

Get monitoring data for an integration runtime. - * + * + * Get monitoring data for an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -225,16 +191,16 @@ private Mono listAsync( * @return monitoring data for an integration runtime along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response listWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { + public Response listWithResponse(String resourceGroupName, + String workspaceName, String integrationRuntimeName, Context context) { return listWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, context).block(); } /** * Get integration runtime monitoring data - * - *

Get monitoring data for an integration runtime. - * + * + * Get monitoring data for an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -244,8 +210,8 @@ public Response listWithResponse( * @return monitoring data for an integration runtime. */ @ServiceMethod(returns = ReturnType.SINGLE) - public IntegrationRuntimeMonitoringDataInner list( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { + public IntegrationRuntimeMonitoringDataInner list(String resourceGroupName, String workspaceName, + String integrationRuntimeName) { return listWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, Context.NONE).getValue(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeMonitoringDatasImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeMonitoringDatasImpl.java index ee09a205c05a..9aa3f51ac2ad 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeMonitoringDatasImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeMonitoringDatasImpl.java @@ -20,32 +20,28 @@ public final class IntegrationRuntimeMonitoringDatasImpl implements IntegrationR private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public IntegrationRuntimeMonitoringDatasImpl( - IntegrationRuntimeMonitoringDatasClient innerClient, + public IntegrationRuntimeMonitoringDatasImpl(IntegrationRuntimeMonitoringDatasClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public Response listWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { - Response inner = - this.serviceClient().listWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, context); + public Response listWithResponse(String resourceGroupName, String workspaceName, + String integrationRuntimeName, Context context) { + Response inner + = this.serviceClient().listWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new IntegrationRuntimeMonitoringDataImpl(inner.getValue(), this.manager())); } else { return null; } } - public IntegrationRuntimeMonitoringData list( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { - IntegrationRuntimeMonitoringDataInner inner = - this.serviceClient().list(resourceGroupName, workspaceName, integrationRuntimeName); + public IntegrationRuntimeMonitoringData list(String resourceGroupName, String workspaceName, + String integrationRuntimeName) { + IntegrationRuntimeMonitoringDataInner inner + = this.serviceClient().list(resourceGroupName, workspaceName, integrationRuntimeName); if (inner != null) { return new IntegrationRuntimeMonitoringDataImpl(inner, this.manager()); } else { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodeIpAddressImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodeIpAddressImpl.java index e8c8d5c3e533..a104be463dc4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodeIpAddressImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodeIpAddressImpl.java @@ -12,8 +12,7 @@ public final class IntegrationRuntimeNodeIpAddressImpl implements IntegrationRun private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - IntegrationRuntimeNodeIpAddressImpl( - IntegrationRuntimeNodeIpAddressInner innerObject, + IntegrationRuntimeNodeIpAddressImpl(IntegrationRuntimeNodeIpAddressInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodeIpAddressOperationsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodeIpAddressOperationsClientImpl.java index 794e017b0821..e38e7c5579ce 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodeIpAddressOperationsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodeIpAddressOperationsClientImpl.java @@ -31,24 +31,24 @@ */ public final class IntegrationRuntimeNodeIpAddressOperationsClientImpl implements IntegrationRuntimeNodeIpAddressOperationsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final IntegrationRuntimeNodeIpAddressOperationsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of IntegrationRuntimeNodeIpAddressOperationsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ IntegrationRuntimeNodeIpAddressOperationsClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy - .create( - IntegrationRuntimeNodeIpAddressOperationsService.class, - client.getHttpPipeline(), - client.getSerializerAdapter()); + this.service = RestProxy.create(IntegrationRuntimeNodeIpAddressOperationsService.class, + client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } @@ -59,29 +59,22 @@ public final class IntegrationRuntimeNodeIpAddressOperationsClientImpl @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface IntegrationRuntimeNodeIpAddressOperationsService { - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}/ipAddress") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}/ipAddress") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @PathParam("nodeName") String nodeName, - @HeaderParam("Accept") String accept, - Context context); + Mono> get(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("integrationRuntimeName") String integrationRuntimeName, @PathParam("nodeName") String nodeName, + @HeaderParam("Accept") String accept, Context context); } /** * Get integration runtime node IP address - * - *

Get the IP address of an integration runtime node. - * + * + * Get the IP address of an integration runtime node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -90,22 +83,18 @@ Mono> get( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the IP address of an integration runtime node along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName, String nodeName) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, String integrationRuntimeName, String nodeName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -115,9 +104,8 @@ private Mono> getWithResponseAsyn return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } if (nodeName == null) { return Mono.error(new IllegalArgumentException("Parameter nodeName is required and cannot be null.")); @@ -125,27 +113,16 @@ private Mono> getWithResponseAsyn final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - integrationRuntimeName, - nodeName, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, integrationRuntimeName, nodeName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get integration runtime node IP address - * - *

Get the IP address of an integration runtime node. - * + * + * Get the IP address of an integration runtime node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -155,26 +132,18 @@ private Mono> getWithResponseAsyn * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the IP address of an integration runtime node along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String nodeName, - Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, String integrationRuntimeName, String nodeName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -184,9 +153,8 @@ private Mono> getWithResponseAsyn return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } if (nodeName == null) { return Mono.error(new IllegalArgumentException("Parameter nodeName is required and cannot be null.")); @@ -194,24 +162,15 @@ private Mono> getWithResponseAsyn final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - integrationRuntimeName, - nodeName, - accept, - context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, integrationRuntimeName, nodeName, accept, context); } /** * Get integration runtime node IP address - * - *

Get the IP address of an integration runtime node. - * + * + * Get the IP address of an integration runtime node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -222,17 +181,17 @@ private Mono> getWithResponseAsyn * @return the IP address of an integration runtime node on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName, String nodeName) { + private Mono getAsync(String resourceGroupName, String workspaceName, + String integrationRuntimeName, String nodeName) { return getWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, nodeName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Get integration runtime node IP address - * - *

Get the IP address of an integration runtime node. - * + * + * Get the IP address of an integration runtime node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -244,21 +203,17 @@ private Mono getAsync( * @return the IP address of an integration runtime node along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String nodeName, - Context context) { + public Response getWithResponse(String resourceGroupName, + String workspaceName, String integrationRuntimeName, String nodeName, Context context) { return getWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, nodeName, context) .block(); } /** * Get integration runtime node IP address - * - *

Get the IP address of an integration runtime node. - * + * + * Get the IP address of an integration runtime node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -269,8 +224,8 @@ public Response getWithResponse( * @return the IP address of an integration runtime node. */ @ServiceMethod(returns = ReturnType.SINGLE) - public IntegrationRuntimeNodeIpAddressInner get( - String resourceGroupName, String workspaceName, String integrationRuntimeName, String nodeName) { + public IntegrationRuntimeNodeIpAddressInner get(String resourceGroupName, String workspaceName, + String integrationRuntimeName, String nodeName) { return getWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, nodeName, Context.NONE) .getValue(); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodeIpAddressOperationsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodeIpAddressOperationsImpl.java index b5157283a88f..db0c1fde4b8f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodeIpAddressOperationsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodeIpAddressOperationsImpl.java @@ -20,38 +20,28 @@ public final class IntegrationRuntimeNodeIpAddressOperationsImpl implements Inte private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public IntegrationRuntimeNodeIpAddressOperationsImpl( - IntegrationRuntimeNodeIpAddressOperationsClient innerClient, + public IntegrationRuntimeNodeIpAddressOperationsImpl(IntegrationRuntimeNodeIpAddressOperationsClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String nodeName, - Context context) { - Response inner = - this - .serviceClient() - .getWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, nodeName, context); + public Response getWithResponse(String resourceGroupName, String workspaceName, + String integrationRuntimeName, String nodeName, Context context) { + Response inner = this.serviceClient().getWithResponse(resourceGroupName, + workspaceName, integrationRuntimeName, nodeName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new IntegrationRuntimeNodeIpAddressImpl(inner.getValue(), this.manager())); } else { return null; } } - public IntegrationRuntimeNodeIpAddress get( - String resourceGroupName, String workspaceName, String integrationRuntimeName, String nodeName) { - IntegrationRuntimeNodeIpAddressInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, integrationRuntimeName, nodeName); + public IntegrationRuntimeNodeIpAddress get(String resourceGroupName, String workspaceName, + String integrationRuntimeName, String nodeName) { + IntegrationRuntimeNodeIpAddressInner inner + = this.serviceClient().get(resourceGroupName, workspaceName, integrationRuntimeName, nodeName); if (inner != null) { return new IntegrationRuntimeNodeIpAddressImpl(inner, this.manager()); } else { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodesClientImpl.java index 240c6720a63b..62b0501bd585 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodesClientImpl.java @@ -29,23 +29,28 @@ import com.azure.resourcemanager.synapse.models.UpdateIntegrationRuntimeNodeRequest; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in IntegrationRuntimeNodesClient. */ +/** + * An instance of this class provides access to all the operations defined in IntegrationRuntimeNodesClient. + */ public final class IntegrationRuntimeNodesClientImpl implements IntegrationRuntimeNodesClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final IntegrationRuntimeNodesService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of IntegrationRuntimeNodesClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ IntegrationRuntimeNodesClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy - .create(IntegrationRuntimeNodesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service = RestProxy.create(IntegrationRuntimeNodesService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } @@ -56,64 +61,43 @@ public final class IntegrationRuntimeNodesClientImpl implements IntegrationRunti @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface IntegrationRuntimeNodesService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @PathParam("nodeName") String nodeName, - @HeaderParam("Accept") String accept, - Context context); + Mono> get(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("integrationRuntimeName") String integrationRuntimeName, @PathParam("nodeName") String nodeName, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Patch( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> update( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @PathParam("nodeName") String nodeName, + Mono> update(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("integrationRuntimeName") String integrationRuntimeName, @PathParam("nodeName") String nodeName, @BodyParam("application/json") UpdateIntegrationRuntimeNodeRequest updateIntegrationRuntimeNodeRequest, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}") - @ExpectedResponses({200, 204}) + @Headers({ "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}") + @ExpectedResponses({ 200, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> delete( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, + Mono> delete(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @PathParam("nodeName") String nodeName, - @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("integrationRuntimeName") String integrationRuntimeName, @PathParam("nodeName") String nodeName, + @HeaderParam("Accept") String accept, Context context); } /** * Get integration runtime node - * - *

Get an integration runtime node. - * + * + * Get an integration runtime node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -124,19 +108,15 @@ Mono> delete( * @return an integration runtime node along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName, String nodeName) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, String integrationRuntimeName, String nodeName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -146,9 +126,8 @@ private Mono> getWithResponseAsy return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } if (nodeName == null) { return Mono.error(new IllegalArgumentException("Parameter nodeName is required and cannot be null.")); @@ -156,27 +135,16 @@ private Mono> getWithResponseAsy final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - integrationRuntimeName, - nodeName, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, integrationRuntimeName, nodeName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get integration runtime node - * - *

Get an integration runtime node. - * + * + * Get an integration runtime node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -188,23 +156,15 @@ private Mono> getWithResponseAsy * @return an integration runtime node along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String nodeName, - Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, String integrationRuntimeName, String nodeName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -214,9 +174,8 @@ private Mono> getWithResponseAsy return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } if (nodeName == null) { return Mono.error(new IllegalArgumentException("Parameter nodeName is required and cannot be null.")); @@ -224,24 +183,15 @@ private Mono> getWithResponseAsy final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - integrationRuntimeName, - nodeName, - accept, - context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, integrationRuntimeName, nodeName, accept, context); } /** * Get integration runtime node - * - *

Get an integration runtime node. - * + * + * Get an integration runtime node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -252,17 +202,17 @@ private Mono> getWithResponseAsy * @return an integration runtime node on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName, String nodeName) { + private Mono getAsync(String resourceGroupName, String workspaceName, + String integrationRuntimeName, String nodeName) { return getWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, nodeName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Get integration runtime node - * - *

Get an integration runtime node. - * + * + * Get an integration runtime node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -274,21 +224,17 @@ private Mono getAsync( * @return an integration runtime node along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String nodeName, - Context context) { + public Response getWithResponse(String resourceGroupName, + String workspaceName, String integrationRuntimeName, String nodeName, Context context) { return getWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, nodeName, context) .block(); } /** * Get integration runtime node - * - *

Get an integration runtime node. - * + * + * Get an integration runtime node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -299,17 +245,17 @@ public Response getWithResponse( * @return an integration runtime node. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SelfHostedIntegrationRuntimeNodeInner get( - String resourceGroupName, String workspaceName, String integrationRuntimeName, String nodeName) { + public SelfHostedIntegrationRuntimeNodeInner get(String resourceGroupName, String workspaceName, + String integrationRuntimeName, String nodeName) { return getWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, nodeName, Context.NONE) .getValue(); } /** * Create integration runtime node - * - *

Create an integration runtime node. - * + * + * Create an integration runtime node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -319,26 +265,19 @@ public SelfHostedIntegrationRuntimeNodeInner get( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return properties of Self-hosted integration runtime node along with {@link Response} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateWithResponseAsync( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String nodeName, + private Mono> updateWithResponseAsync(String resourceGroupName, + String workspaceName, String integrationRuntimeName, String nodeName, UpdateIntegrationRuntimeNodeRequest updateIntegrationRuntimeNodeRequest) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -348,46 +287,32 @@ private Mono> updateWithResponse return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } if (nodeName == null) { return Mono.error(new IllegalArgumentException("Parameter nodeName is required and cannot be null.")); } if (updateIntegrationRuntimeNodeRequest == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter updateIntegrationRuntimeNodeRequest is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter updateIntegrationRuntimeNodeRequest is required and cannot be null.")); } else { updateIntegrationRuntimeNodeRequest.validate(); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .update( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - integrationRuntimeName, - nodeName, - updateIntegrationRuntimeNodeRequest, - accept, - context)) + .withContext(context -> service.update(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, nodeName, + updateIntegrationRuntimeNodeRequest, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Create integration runtime node - * - *

Create an integration runtime node. - * + * + * Create an integration runtime node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -398,27 +323,19 @@ private Mono> updateWithResponse * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return properties of Self-hosted integration runtime node along with {@link Response} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateWithResponseAsync( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String nodeName, - UpdateIntegrationRuntimeNodeRequest updateIntegrationRuntimeNodeRequest, - Context context) { + private Mono> updateWithResponseAsync(String resourceGroupName, + String workspaceName, String integrationRuntimeName, String nodeName, + UpdateIntegrationRuntimeNodeRequest updateIntegrationRuntimeNodeRequest, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -428,43 +345,30 @@ private Mono> updateWithResponse return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } if (nodeName == null) { return Mono.error(new IllegalArgumentException("Parameter nodeName is required and cannot be null.")); } if (updateIntegrationRuntimeNodeRequest == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter updateIntegrationRuntimeNodeRequest is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter updateIntegrationRuntimeNodeRequest is required and cannot be null.")); } else { updateIntegrationRuntimeNodeRequest.validate(); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .update( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - integrationRuntimeName, - nodeName, - updateIntegrationRuntimeNodeRequest, - accept, - context); + return service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, integrationRuntimeName, nodeName, updateIntegrationRuntimeNodeRequest, accept, context); } /** * Create integration runtime node - * - *

Create an integration runtime node. - * + * + * Create an integration runtime node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -476,22 +380,18 @@ private Mono> updateWithResponse * @return properties of Self-hosted integration runtime node on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String nodeName, + private Mono updateAsync(String resourceGroupName, String workspaceName, + String integrationRuntimeName, String nodeName, UpdateIntegrationRuntimeNodeRequest updateIntegrationRuntimeNodeRequest) { - return updateWithResponseAsync( - resourceGroupName, workspaceName, integrationRuntimeName, nodeName, updateIntegrationRuntimeNodeRequest) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + return updateWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, nodeName, + updateIntegrationRuntimeNodeRequest).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Create integration runtime node - * - *

Create an integration runtime node. - * + * + * Create an integration runtime node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -504,28 +404,18 @@ private Mono updateAsync( * @return properties of Self-hosted integration runtime node along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateWithResponse( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String nodeName, - UpdateIntegrationRuntimeNodeRequest updateIntegrationRuntimeNodeRequest, - Context context) { - return updateWithResponseAsync( - resourceGroupName, - workspaceName, - integrationRuntimeName, - nodeName, - updateIntegrationRuntimeNodeRequest, - context) - .block(); + public Response updateWithResponse(String resourceGroupName, + String workspaceName, String integrationRuntimeName, String nodeName, + UpdateIntegrationRuntimeNodeRequest updateIntegrationRuntimeNodeRequest, Context context) { + return updateWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, nodeName, + updateIntegrationRuntimeNodeRequest, context).block(); } /** * Create integration runtime node - * - *

Create an integration runtime node. - * + * + * Create an integration runtime node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -537,27 +427,18 @@ public Response updateWithResponse( * @return properties of Self-hosted integration runtime node. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SelfHostedIntegrationRuntimeNodeInner update( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String nodeName, + public SelfHostedIntegrationRuntimeNodeInner update(String resourceGroupName, String workspaceName, + String integrationRuntimeName, String nodeName, UpdateIntegrationRuntimeNodeRequest updateIntegrationRuntimeNodeRequest) { - return updateWithResponse( - resourceGroupName, - workspaceName, - integrationRuntimeName, - nodeName, - updateIntegrationRuntimeNodeRequest, - Context.NONE) - .getValue(); + return updateWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, nodeName, + updateIntegrationRuntimeNodeRequest, Context.NONE).getValue(); } /** * Delete integration runtime node - * - *

Delete an integration runtime node. - * + * + * Delete an integration runtime node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -568,19 +449,15 @@ public SelfHostedIntegrationRuntimeNodeInner update( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName, String nodeName) { + private Mono> deleteWithResponseAsync(String resourceGroupName, String workspaceName, + String integrationRuntimeName, String nodeName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -590,9 +467,8 @@ private Mono> deleteWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } if (nodeName == null) { return Mono.error(new IllegalArgumentException("Parameter nodeName is required and cannot be null.")); @@ -601,26 +477,16 @@ private Mono> deleteWithResponseAsync( final String accept = "application/json"; return FluxUtil .withContext( - context -> - service - .delete( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - integrationRuntimeName, - nodeName, - accept, - context)) + context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, integrationRuntimeName, nodeName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Delete integration runtime node - * - *

Delete an integration runtime node. - * + * + * Delete an integration runtime node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -632,23 +498,15 @@ private Mono> deleteWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String nodeName, - Context context) { + private Mono> deleteWithResponseAsync(String resourceGroupName, String workspaceName, + String integrationRuntimeName, String nodeName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -658,9 +516,8 @@ private Mono> deleteWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } if (nodeName == null) { return Mono.error(new IllegalArgumentException("Parameter nodeName is required and cannot be null.")); @@ -668,24 +525,15 @@ private Mono> deleteWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .delete( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - integrationRuntimeName, - nodeName, - accept, - context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, integrationRuntimeName, nodeName, accept, context); } /** * Delete integration runtime node - * - *

Delete an integration runtime node. - * + * + * Delete an integration runtime node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -696,17 +544,17 @@ private Mono> deleteWithResponseAsync( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName, String nodeName) { + private Mono deleteAsync(String resourceGroupName, String workspaceName, String integrationRuntimeName, + String nodeName) { return deleteWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, nodeName) .flatMap(ignored -> Mono.empty()); } /** * Delete integration runtime node - * - *

Delete an integration runtime node. - * + * + * Delete an integration runtime node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -718,21 +566,17 @@ private Mono deleteAsync( * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String nodeName, - Context context) { + public Response deleteWithResponse(String resourceGroupName, String workspaceName, + String integrationRuntimeName, String nodeName, Context context) { return deleteWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, nodeName, context) .block(); } /** * Delete integration runtime node - * - *

Delete an integration runtime node. - * + * + * Delete an integration runtime node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodesImpl.java index f4303002a6af..d1ae5e8bf605 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeNodesImpl.java @@ -21,37 +21,28 @@ public final class IntegrationRuntimeNodesImpl implements IntegrationRuntimeNode private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public IntegrationRuntimeNodesImpl( - IntegrationRuntimeNodesClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + public IntegrationRuntimeNodesImpl(IntegrationRuntimeNodesClient innerClient, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String nodeName, - Context context) { - Response inner = - this - .serviceClient() - .getWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, nodeName, context); + public Response getWithResponse(String resourceGroupName, String workspaceName, + String integrationRuntimeName, String nodeName, Context context) { + Response inner = this.serviceClient().getWithResponse(resourceGroupName, + workspaceName, integrationRuntimeName, nodeName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new SelfHostedIntegrationRuntimeNodeImpl(inner.getValue(), this.manager())); } else { return null; } } - public SelfHostedIntegrationRuntimeNode get( - String resourceGroupName, String workspaceName, String integrationRuntimeName, String nodeName) { - SelfHostedIntegrationRuntimeNodeInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, integrationRuntimeName, nodeName); + public SelfHostedIntegrationRuntimeNode get(String resourceGroupName, String workspaceName, + String integrationRuntimeName, String nodeName) { + SelfHostedIntegrationRuntimeNodeInner inner + = this.serviceClient().get(resourceGroupName, workspaceName, integrationRuntimeName, nodeName); if (inner != null) { return new SelfHostedIntegrationRuntimeNodeImpl(inner, this.manager()); } else { @@ -59,49 +50,25 @@ public SelfHostedIntegrationRuntimeNode get( } } - public Response updateWithResponse( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String nodeName, - UpdateIntegrationRuntimeNodeRequest updateIntegrationRuntimeNodeRequest, - Context context) { - Response inner = - this - .serviceClient() - .updateWithResponse( - resourceGroupName, - workspaceName, - integrationRuntimeName, - nodeName, - updateIntegrationRuntimeNodeRequest, - context); + public Response updateWithResponse(String resourceGroupName, String workspaceName, + String integrationRuntimeName, String nodeName, + UpdateIntegrationRuntimeNodeRequest updateIntegrationRuntimeNodeRequest, Context context) { + Response inner + = this.serviceClient().updateWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, + nodeName, updateIntegrationRuntimeNodeRequest, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new SelfHostedIntegrationRuntimeNodeImpl(inner.getValue(), this.manager())); } else { return null; } } - public SelfHostedIntegrationRuntimeNode update( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String nodeName, + public SelfHostedIntegrationRuntimeNode update(String resourceGroupName, String workspaceName, + String integrationRuntimeName, String nodeName, UpdateIntegrationRuntimeNodeRequest updateIntegrationRuntimeNodeRequest) { - SelfHostedIntegrationRuntimeNodeInner inner = - this - .serviceClient() - .update( - resourceGroupName, - workspaceName, - integrationRuntimeName, - nodeName, - updateIntegrationRuntimeNodeRequest); + SelfHostedIntegrationRuntimeNodeInner inner = this.serviceClient().update(resourceGroupName, workspaceName, + integrationRuntimeName, nodeName, updateIntegrationRuntimeNodeRequest); if (inner != null) { return new SelfHostedIntegrationRuntimeNodeImpl(inner, this.manager()); } else { @@ -109,15 +76,10 @@ public SelfHostedIntegrationRuntimeNode update( } } - public Response deleteWithResponse( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String nodeName, - Context context) { - return this - .serviceClient() - .deleteWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, nodeName, context); + public Response deleteWithResponse(String resourceGroupName, String workspaceName, + String integrationRuntimeName, String nodeName, Context context) { + return this.serviceClient().deleteWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, + nodeName, context); } public void delete(String resourceGroupName, String workspaceName, String integrationRuntimeName, String nodeName) { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeObjectMetadatasClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeObjectMetadatasClientImpl.java index 4b4c4e3fe58e..a1347e9b03d3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeObjectMetadatasClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeObjectMetadatasClientImpl.java @@ -37,24 +37,24 @@ * An instance of this class provides access to all the operations defined in IntegrationRuntimeObjectMetadatasClient. */ public final class IntegrationRuntimeObjectMetadatasClientImpl implements IntegrationRuntimeObjectMetadatasClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final IntegrationRuntimeObjectMetadatasService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of IntegrationRuntimeObjectMetadatasClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ IntegrationRuntimeObjectMetadatasClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy - .create( - IntegrationRuntimeObjectMetadatasService.class, - client.getHttpPipeline(), - client.getSerializerAdapter()); + this.service = RestProxy.create(IntegrationRuntimeObjectMetadatasService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } @@ -65,45 +65,33 @@ public final class IntegrationRuntimeObjectMetadatasClientImpl implements Integr @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface IntegrationRuntimeObjectMetadatasService { - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/getObjectMetadata") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/getObjectMetadata") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono> list(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("integrationRuntimeName") String integrationRuntimeName, @BodyParam("application/json") GetSsisObjectMetadataRequest getMetadataRequest, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/refreshObjectMetadata") - @ExpectedResponses({200, 202}) + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/refreshObjectMetadata") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> refresh( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @HeaderParam("Accept") String accept, + Mono>> refresh(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("integrationRuntimeName") String integrationRuntimeName, @HeaderParam("Accept") String accept, Context context); } /** * Get integration runtime object metadata - * - *

Get object metadata from an integration runtime. - * + * + * Get object metadata from an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -112,25 +100,18 @@ Mono>> refresh( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return object metadata from an integration runtime along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listWithResponseAsync( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - GetSsisObjectMetadataRequest getMetadataRequest) { + private Mono> listWithResponseAsync(String resourceGroupName, + String workspaceName, String integrationRuntimeName, GetSsisObjectMetadataRequest getMetadataRequest) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -140,9 +121,8 @@ private Mono> listWithResponseAsyn return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } if (getMetadataRequest != null) { getMetadataRequest.validate(); @@ -150,27 +130,16 @@ private Mono> listWithResponseAsyn final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - integrationRuntimeName, - getMetadataRequest, - accept, - context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, integrationRuntimeName, getMetadataRequest, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get integration runtime object metadata - * - *

Get object metadata from an integration runtime. - * + * + * Get object metadata from an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -180,26 +149,19 @@ private Mono> listWithResponseAsyn * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return object metadata from an integration runtime along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listWithResponseAsync( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - GetSsisObjectMetadataRequest getMetadataRequest, + private Mono> listWithResponseAsync(String resourceGroupName, + String workspaceName, String integrationRuntimeName, GetSsisObjectMetadataRequest getMetadataRequest, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -209,9 +171,8 @@ private Mono> listWithResponseAsyn return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } if (getMetadataRequest != null) { getMetadataRequest.validate(); @@ -219,24 +180,15 @@ private Mono> listWithResponseAsyn final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - integrationRuntimeName, - getMetadataRequest, - accept, - context); + return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, integrationRuntimeName, getMetadataRequest, accept, context); } /** * Get integration runtime object metadata - * - *

Get object metadata from an integration runtime. - * + * + * Get object metadata from an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -246,8 +198,8 @@ private Mono> listWithResponseAsyn * @return object metadata from an integration runtime on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono listAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { + private Mono listAsync(String resourceGroupName, String workspaceName, + String integrationRuntimeName) { final GetSsisObjectMetadataRequest getMetadataRequest = null; return listWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, getMetadataRequest) .flatMap(res -> Mono.justOrEmpty(res.getValue())); @@ -255,9 +207,9 @@ private Mono listAsync( /** * Get integration runtime object metadata - * - *

Get object metadata from an integration runtime. - * + * + * Get object metadata from an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -269,22 +221,18 @@ private Mono listAsync( * @return object metadata from an integration runtime along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response listWithResponse( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - GetSsisObjectMetadataRequest getMetadataRequest, + public Response listWithResponse(String resourceGroupName, + String workspaceName, String integrationRuntimeName, GetSsisObjectMetadataRequest getMetadataRequest, Context context) { - return listWithResponseAsync( - resourceGroupName, workspaceName, integrationRuntimeName, getMetadataRequest, context) - .block(); + return listWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, getMetadataRequest, + context).block(); } /** * Get integration runtime object metadata - * - *

Get object metadata from an integration runtime. - * + * + * Get object metadata from an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -294,19 +242,18 @@ public Response listWithResponse( * @return object metadata from an integration runtime. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SsisObjectMetadataListResponseInner list( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { + public SsisObjectMetadataListResponseInner list(String resourceGroupName, String workspaceName, + String integrationRuntimeName) { final GetSsisObjectMetadataRequest getMetadataRequest = null; - return listWithResponse( - resourceGroupName, workspaceName, integrationRuntimeName, getMetadataRequest, Context.NONE) - .getValue(); + return listWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, getMetadataRequest, + Context.NONE).getValue(); } /** * Refresh integration runtime object metadata - * - *

Refresh the object metadata in an integration runtime. - * + * + * Refresh the object metadata in an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -316,19 +263,15 @@ public SsisObjectMetadataListResponseInner list( * @return the status of the operation along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> refreshWithResponseAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { + private Mono>> refreshWithResponseAsync(String resourceGroupName, String workspaceName, + String integrationRuntimeName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -338,33 +281,23 @@ private Mono>> refreshWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil .withContext( - context -> - service - .refresh( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - integrationRuntimeName, - accept, - context)) + context -> service.refresh(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, integrationRuntimeName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Refresh integration runtime object metadata - * - *

Refresh the object metadata in an integration runtime. - * + * + * Refresh the object metadata in an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -375,19 +308,15 @@ private Mono>> refreshWithResponseAsync( * @return the status of the operation along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> refreshWithResponseAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { + private Mono>> refreshWithResponseAsync(String resourceGroupName, String workspaceName, + String integrationRuntimeName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -397,30 +326,21 @@ private Mono>> refreshWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .refresh( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - integrationRuntimeName, - accept, - context); + return service.refresh(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, integrationRuntimeName, accept, context); } /** * Refresh integration runtime object metadata - * - *

Refresh the object metadata in an integration runtime. - * + * + * Refresh the object metadata in an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -432,23 +352,18 @@ private Mono>> refreshWithResponseAsync( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SsisObjectMetadataStatusResponseInner> beginRefreshAsync(String resourceGroupName, String workspaceName, String integrationRuntimeName) { - Mono>> mono = - refreshWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - SsisObjectMetadataStatusResponseInner.class, - SsisObjectMetadataStatusResponseInner.class, - this.client.getContext()); + Mono>> mono + = refreshWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName); + return this.client.getLroResult( + mono, this.client.getHttpPipeline(), SsisObjectMetadataStatusResponseInner.class, + SsisObjectMetadataStatusResponseInner.class, this.client.getContext()); } /** * Refresh integration runtime object metadata - * - *

Refresh the object metadata in an integration runtime. - * + * + * Refresh the object metadata in an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -460,26 +375,21 @@ private Mono>> refreshWithResponseAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SsisObjectMetadataStatusResponseInner> - beginRefreshAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { + beginRefreshAsync(String resourceGroupName, String workspaceName, String integrationRuntimeName, + Context context) { context = this.client.mergeContext(context); - Mono>> mono = - refreshWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, context); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - SsisObjectMetadataStatusResponseInner.class, - SsisObjectMetadataStatusResponseInner.class, - context); + Mono>> mono + = refreshWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, context); + return this.client.getLroResult( + mono, this.client.getHttpPipeline(), SsisObjectMetadataStatusResponseInner.class, + SsisObjectMetadataStatusResponseInner.class, context); } /** * Refresh integration runtime object metadata - * - *

Refresh the object metadata in an integration runtime. - * + * + * Refresh the object metadata in an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -496,9 +406,9 @@ private Mono>> refreshWithResponseAsync( /** * Refresh integration runtime object metadata - * - *

Refresh the object metadata in an integration runtime. - * + * + * Refresh the object metadata in an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -511,16 +421,15 @@ private Mono>> refreshWithResponseAsync( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SsisObjectMetadataStatusResponseInner> beginRefresh(String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { - return this - .beginRefreshAsync(resourceGroupName, workspaceName, integrationRuntimeName, context) + return this.beginRefreshAsync(resourceGroupName, workspaceName, integrationRuntimeName, context) .getSyncPoller(); } /** * Refresh integration runtime object metadata - * - *

Refresh the object metadata in an integration runtime. - * + * + * Refresh the object metadata in an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -530,18 +439,17 @@ private Mono>> refreshWithResponseAsync( * @return the status of the operation on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono refreshAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { - return beginRefreshAsync(resourceGroupName, workspaceName, integrationRuntimeName) - .last() + private Mono refreshAsync(String resourceGroupName, String workspaceName, + String integrationRuntimeName) { + return beginRefreshAsync(resourceGroupName, workspaceName, integrationRuntimeName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Refresh integration runtime object metadata - * - *

Refresh the object metadata in an integration runtime. - * + * + * Refresh the object metadata in an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -552,18 +460,17 @@ private Mono refreshAsync( * @return the status of the operation on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono refreshAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { - return beginRefreshAsync(resourceGroupName, workspaceName, integrationRuntimeName, context) - .last() + private Mono refreshAsync(String resourceGroupName, String workspaceName, + String integrationRuntimeName, Context context) { + return beginRefreshAsync(resourceGroupName, workspaceName, integrationRuntimeName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Refresh integration runtime object metadata - * - *

Refresh the object metadata in an integration runtime. - * + * + * Refresh the object metadata in an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -573,16 +480,16 @@ private Mono refreshAsync( * @return the status of the operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SsisObjectMetadataStatusResponseInner refresh( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { + public SsisObjectMetadataStatusResponseInner refresh(String resourceGroupName, String workspaceName, + String integrationRuntimeName) { return refreshAsync(resourceGroupName, workspaceName, integrationRuntimeName).block(); } /** * Refresh integration runtime object metadata - * - *

Refresh the object metadata in an integration runtime. - * + * + * Refresh the object metadata in an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -593,8 +500,8 @@ public SsisObjectMetadataStatusResponseInner refresh( * @return the status of the operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SsisObjectMetadataStatusResponseInner refresh( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { + public SsisObjectMetadataStatusResponseInner refresh(String resourceGroupName, String workspaceName, + String integrationRuntimeName, Context context) { return refreshAsync(resourceGroupName, workspaceName, integrationRuntimeName, context).block(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeObjectMetadatasImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeObjectMetadatasImpl.java index 52433da8aabd..86ab02d1db5a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeObjectMetadatasImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeObjectMetadatasImpl.java @@ -23,39 +23,28 @@ public final class IntegrationRuntimeObjectMetadatasImpl implements IntegrationR private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public IntegrationRuntimeObjectMetadatasImpl( - IntegrationRuntimeObjectMetadatasClient innerClient, + public IntegrationRuntimeObjectMetadatasImpl(IntegrationRuntimeObjectMetadatasClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public Response listWithResponse( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - GetSsisObjectMetadataRequest getMetadataRequest, - Context context) { - Response inner = - this - .serviceClient() - .listWithResponse( - resourceGroupName, workspaceName, integrationRuntimeName, getMetadataRequest, context); + public Response listWithResponse(String resourceGroupName, String workspaceName, + String integrationRuntimeName, GetSsisObjectMetadataRequest getMetadataRequest, Context context) { + Response inner = this.serviceClient().listWithResponse(resourceGroupName, + workspaceName, integrationRuntimeName, getMetadataRequest, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new SsisObjectMetadataListResponseImpl(inner.getValue(), this.manager())); } else { return null; } } - public SsisObjectMetadataListResponse list( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { - SsisObjectMetadataListResponseInner inner = - this.serviceClient().list(resourceGroupName, workspaceName, integrationRuntimeName); + public SsisObjectMetadataListResponse list(String resourceGroupName, String workspaceName, + String integrationRuntimeName) { + SsisObjectMetadataListResponseInner inner + = this.serviceClient().list(resourceGroupName, workspaceName, integrationRuntimeName); if (inner != null) { return new SsisObjectMetadataListResponseImpl(inner, this.manager()); } else { @@ -63,10 +52,10 @@ public SsisObjectMetadataListResponse list( } } - public SsisObjectMetadataStatusResponse refresh( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { - SsisObjectMetadataStatusResponseInner inner = - this.serviceClient().refresh(resourceGroupName, workspaceName, integrationRuntimeName); + public SsisObjectMetadataStatusResponse refresh(String resourceGroupName, String workspaceName, + String integrationRuntimeName) { + SsisObjectMetadataStatusResponseInner inner + = this.serviceClient().refresh(resourceGroupName, workspaceName, integrationRuntimeName); if (inner != null) { return new SsisObjectMetadataStatusResponseImpl(inner, this.manager()); } else { @@ -74,10 +63,10 @@ public SsisObjectMetadataStatusResponse refresh( } } - public SsisObjectMetadataStatusResponse refresh( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { - SsisObjectMetadataStatusResponseInner inner = - this.serviceClient().refresh(resourceGroupName, workspaceName, integrationRuntimeName, context); + public SsisObjectMetadataStatusResponse refresh(String resourceGroupName, String workspaceName, + String integrationRuntimeName, Context context) { + SsisObjectMetadataStatusResponseInner inner + = this.serviceClient().refresh(resourceGroupName, workspaceName, integrationRuntimeName, context); if (inner != null) { return new SsisObjectMetadataStatusResponseImpl(inner, this.manager()); } else { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeOperationStatusImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeOperationStatusImpl.java index f932461df1c5..32492ce784f0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeOperationStatusImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeOperationStatusImpl.java @@ -13,8 +13,7 @@ public final class IntegrationRuntimeOperationStatusImpl implements IntegrationR private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - IntegrationRuntimeOperationStatusImpl( - IntegrationRuntimeOperationStatusInner innerObject, + IntegrationRuntimeOperationStatusImpl(IntegrationRuntimeOperationStatusInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeResourceImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeResourceImpl.java index ebbbbcac9a12..76fd4a84f1b2 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeResourceImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeResourceImpl.java @@ -68,32 +68,14 @@ public IntegrationRuntimeResourceImpl withExistingWorkspace(String resourceGroup } public IntegrationRuntimeResource create() { - this.innerObject = - serviceManager - .serviceClient() - .getIntegrationRuntimes() - .create( - resourceGroupName, - workspaceName, - integrationRuntimeName, - this.innerModel(), - createIfMatch, - Context.NONE); + this.innerObject = serviceManager.serviceClient().getIntegrationRuntimes().create(resourceGroupName, + workspaceName, integrationRuntimeName, this.innerModel(), createIfMatch, Context.NONE); return this; } public IntegrationRuntimeResource create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getIntegrationRuntimes() - .create( - resourceGroupName, - workspaceName, - integrationRuntimeName, - this.innerModel(), - createIfMatch, - context); + this.innerObject = serviceManager.serviceClient().getIntegrationRuntimes().create(resourceGroupName, + workspaceName, integrationRuntimeName, this.innerModel(), createIfMatch, context); return this; } @@ -110,71 +92,46 @@ public IntegrationRuntimeResourceImpl update() { } public IntegrationRuntimeResource apply() { - this.innerObject = - serviceManager - .serviceClient() - .getIntegrationRuntimes() - .updateWithResponse( - resourceGroupName, - workspaceName, - integrationRuntimeName, - updateUpdateIntegrationRuntimeRequest, - Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getIntegrationRuntimes().updateWithResponse(resourceGroupName, + workspaceName, integrationRuntimeName, updateUpdateIntegrationRuntimeRequest, Context.NONE).getValue(); return this; } public IntegrationRuntimeResource apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getIntegrationRuntimes() - .updateWithResponse( - resourceGroupName, - workspaceName, - integrationRuntimeName, - updateUpdateIntegrationRuntimeRequest, - context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getIntegrationRuntimes().updateWithResponse(resourceGroupName, + workspaceName, integrationRuntimeName, updateUpdateIntegrationRuntimeRequest, context).getValue(); return this; } - IntegrationRuntimeResourceImpl( - IntegrationRuntimeResourceInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + IntegrationRuntimeResourceImpl(IntegrationRuntimeResourceInner innerObject, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.workspaceName = Utils.getValueFromIdByName(innerObject.id(), "workspaces"); - this.integrationRuntimeName = Utils.getValueFromIdByName(innerObject.id(), "integrationRuntimes"); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.workspaceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workspaces"); + this.integrationRuntimeName + = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "integrationRuntimes"); } public IntegrationRuntimeResource refresh() { String localIfNoneMatch = null; - this.innerObject = - serviceManager - .serviceClient() - .getIntegrationRuntimes() - .getWithResponse( - resourceGroupName, workspaceName, integrationRuntimeName, localIfNoneMatch, Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getIntegrationRuntimes() + .getWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, localIfNoneMatch, Context.NONE) + .getValue(); return this; } public IntegrationRuntimeResource refresh(Context context) { String localIfNoneMatch = null; - this.innerObject = - serviceManager - .serviceClient() - .getIntegrationRuntimes() - .getWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, localIfNoneMatch, context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getIntegrationRuntimes() + .getWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, localIfNoneMatch, context) + .getValue(); return this; } public Response upgradeWithResponse(Context context) { - return serviceManager - .integrationRuntimes() - .upgradeWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, context); + return serviceManager.integrationRuntimes().upgradeWithResponse(resourceGroupName, workspaceName, + integrationRuntimeName, context); } public void upgrade() { @@ -186,9 +143,8 @@ public IntegrationRuntimeStatusResponse start() { } public IntegrationRuntimeStatusResponse start(Context context) { - return serviceManager - .integrationRuntimes() - .start(resourceGroupName, workspaceName, integrationRuntimeName, context); + return serviceManager.integrationRuntimes().start(resourceGroupName, workspaceName, integrationRuntimeName, + context); } public void stop() { @@ -200,27 +156,23 @@ public void stop(Context context) { } public void enableInteractiveQuery() { - serviceManager - .integrationRuntimes() - .enableInteractiveQuery(resourceGroupName, workspaceName, integrationRuntimeName); + serviceManager.integrationRuntimes().enableInteractiveQuery(resourceGroupName, workspaceName, + integrationRuntimeName); } public void enableInteractiveQuery(Context context) { - serviceManager - .integrationRuntimes() - .enableInteractiveQuery(resourceGroupName, workspaceName, integrationRuntimeName, context); + serviceManager.integrationRuntimes().enableInteractiveQuery(resourceGroupName, workspaceName, + integrationRuntimeName, context); } public void disableInteractiveQuery() { - serviceManager - .integrationRuntimes() - .disableInteractiveQuery(resourceGroupName, workspaceName, integrationRuntimeName); + serviceManager.integrationRuntimes().disableInteractiveQuery(resourceGroupName, workspaceName, + integrationRuntimeName); } public void disableInteractiveQuery(Context context) { - serviceManager - .integrationRuntimes() - .disableInteractiveQuery(resourceGroupName, workspaceName, integrationRuntimeName, context); + serviceManager.integrationRuntimes().disableInteractiveQuery(resourceGroupName, workspaceName, + integrationRuntimeName, context); } public IntegrationRuntimeResourceImpl withProperties(IntegrationRuntime properties) { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeStatusOperationsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeStatusOperationsClientImpl.java index 3cb1cf57e7b7..3e29bce149d1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeStatusOperationsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeStatusOperationsClientImpl.java @@ -29,24 +29,24 @@ * An instance of this class provides access to all the operations defined in IntegrationRuntimeStatusOperationsClient. */ public final class IntegrationRuntimeStatusOperationsClientImpl implements IntegrationRuntimeStatusOperationsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final IntegrationRuntimeStatusOperationsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of IntegrationRuntimeStatusOperationsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ IntegrationRuntimeStatusOperationsClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy - .create( - IntegrationRuntimeStatusOperationsService.class, - client.getHttpPipeline(), - client.getSerializerAdapter()); + this.service = RestProxy.create(IntegrationRuntimeStatusOperationsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } @@ -57,28 +57,22 @@ public final class IntegrationRuntimeStatusOperationsClientImpl implements Integ @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface IntegrationRuntimeStatusOperationsService { - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/getStatus") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/getStatus") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @HeaderParam("Accept") String accept, + Mono> get(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("integrationRuntimeName") String integrationRuntimeName, @HeaderParam("Accept") String accept, Context context); } /** * Get integration runtime status - * - *

Get the integration runtime status. - * + * + * Get the integration runtime status. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -88,19 +82,15 @@ Mono> get( * @return the integration runtime status along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, String integrationRuntimeName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -110,33 +100,22 @@ private Mono> getWithResponseAsy return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - integrationRuntimeName, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, integrationRuntimeName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get integration runtime status - * - *

Get the integration runtime status. - * + * + * Get the integration runtime status. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -147,19 +126,15 @@ private Mono> getWithResponseAsy * @return the integration runtime status along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, String integrationRuntimeName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -169,30 +144,21 @@ private Mono> getWithResponseAsy return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - integrationRuntimeName, - accept, - context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, integrationRuntimeName, accept, context); } /** * Get integration runtime status - * - *

Get the integration runtime status. - * + * + * Get the integration runtime status. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -202,17 +168,17 @@ private Mono> getWithResponseAsy * @return the integration runtime status on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { + private Mono getAsync(String resourceGroupName, String workspaceName, + String integrationRuntimeName) { return getWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Get integration runtime status - * - *

Get the integration runtime status. - * + * + * Get the integration runtime status. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -223,16 +189,16 @@ private Mono getAsync( * @return the integration runtime status along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { + public Response getWithResponse(String resourceGroupName, + String workspaceName, String integrationRuntimeName, Context context) { return getWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, context).block(); } /** * Get integration runtime status - * - *

Get the integration runtime status. - * + * + * Get the integration runtime status. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -242,8 +208,8 @@ public Response getWithResponse( * @return the integration runtime status. */ @ServiceMethod(returns = ReturnType.SINGLE) - public IntegrationRuntimeStatusResponseInner get( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { + public IntegrationRuntimeStatusResponseInner get(String resourceGroupName, String workspaceName, + String integrationRuntimeName) { return getWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, Context.NONE).getValue(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeStatusOperationsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeStatusOperationsImpl.java index be1f24796705..493ac09cc813 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeStatusOperationsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeStatusOperationsImpl.java @@ -20,32 +20,28 @@ public final class IntegrationRuntimeStatusOperationsImpl implements Integration private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public IntegrationRuntimeStatusOperationsImpl( - IntegrationRuntimeStatusOperationsClient innerClient, + public IntegrationRuntimeStatusOperationsImpl(IntegrationRuntimeStatusOperationsClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public Response getWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { - Response inner = - this.serviceClient().getWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, context); + public Response getWithResponse(String resourceGroupName, String workspaceName, + String integrationRuntimeName, Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new IntegrationRuntimeStatusResponseImpl(inner.getValue(), this.manager())); } else { return null; } } - public IntegrationRuntimeStatusResponse get( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { - IntegrationRuntimeStatusResponseInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, integrationRuntimeName); + public IntegrationRuntimeStatusResponse get(String resourceGroupName, String workspaceName, + String integrationRuntimeName) { + IntegrationRuntimeStatusResponseInner inner + = this.serviceClient().get(resourceGroupName, workspaceName, integrationRuntimeName); if (inner != null) { return new IntegrationRuntimeStatusResponseImpl(inner, this.manager()); } else { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeStatusResponseImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeStatusResponseImpl.java index f9eb8243867f..a6be28c511f2 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeStatusResponseImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeStatusResponseImpl.java @@ -13,8 +13,7 @@ public final class IntegrationRuntimeStatusResponseImpl implements IntegrationRu private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - IntegrationRuntimeStatusResponseImpl( - IntegrationRuntimeStatusResponseInner innerObject, + IntegrationRuntimeStatusResponseImpl(IntegrationRuntimeStatusResponseInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeStopOperationStatusImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeStopOperationStatusImpl.java index 6d524ccdbea7..8016688157f8 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeStopOperationStatusImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimeStopOperationStatusImpl.java @@ -13,8 +13,7 @@ public final class IntegrationRuntimeStopOperationStatusImpl implements Integrat private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - IntegrationRuntimeStopOperationStatusImpl( - IntegrationRuntimeStopOperationStatusInner innerObject, + IntegrationRuntimeStopOperationStatusImpl(IntegrationRuntimeStopOperationStatusInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimesClientImpl.java index 81957835d4c9..2ae048cae5b7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimesClientImpl.java @@ -43,22 +43,28 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in IntegrationRuntimesClient. */ +/** + * An instance of this class provides access to all the operations defined in IntegrationRuntimesClient. + */ public final class IntegrationRuntimesClientImpl implements IntegrationRuntimesClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final IntegrationRuntimesService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of IntegrationRuntimesClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ IntegrationRuntimesClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy.create(IntegrationRuntimesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service = RestProxy.create(IntegrationRuntimesService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } @@ -69,202 +75,133 @@ public final class IntegrationRuntimesClientImpl implements IntegrationRuntimesC @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface IntegrationRuntimesService { - @Headers({"Content-Type: application/json"}) - @Patch( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/integrationRuntimes/{integrationRuntimeName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> update( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono> update(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("integrationRuntimeName") String integrationRuntimeName, @BodyParam("application/json") UpdateIntegrationRuntimeRequest updateIntegrationRuntimeRequest, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/integrationRuntimes/{integrationRuntimeName}") - @ExpectedResponses({200, 304}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}") + @ExpectedResponses({ 200, 304 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono> get(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("integrationRuntimeName") String integrationRuntimeName, - @HeaderParam("If-None-Match") String ifNoneMatch, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("If-None-Match") String ifNoneMatch, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/integrationRuntimes/{integrationRuntimeName}") - @ExpectedResponses({200, 202}) + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> create( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @HeaderParam("If-Match") String ifMatch, + Mono>> create(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("integrationRuntimeName") String integrationRuntimeName, @HeaderParam("If-Match") String ifMatch, @BodyParam("application/json") IntegrationRuntimeResourceInner integrationRuntime, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/integrationRuntimes/{integrationRuntimeName}") - @ExpectedResponses({200, 202, 204}) + @Headers({ "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}") + @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @HeaderParam("Accept") String accept, + Mono>> delete(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("integrationRuntimeName") String integrationRuntimeName, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/upgrade") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/upgrade") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> upgrade( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, + Mono> upgrade(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @HeaderParam("Accept") String accept, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("integrationRuntimeName") String integrationRuntimeName, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/integrationRuntimes") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByWorkspace( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/start") - @ExpectedResponses({200, 202}) + Mono> listByWorkspace(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/start") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> start( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @HeaderParam("Accept") String accept, + Mono>> start(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("integrationRuntimeName") String integrationRuntimeName, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/stop") - @ExpectedResponses({200, 202}) + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/stop") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> stop( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @HeaderParam("Accept") String accept, + Mono>> stop(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("integrationRuntimeName") String integrationRuntimeName, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/outboundNetworkDependenciesEndpoints") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/outboundNetworkDependenciesEndpoints") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> - listOutboundNetworkDependenciesEndpoints( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + listOutboundNetworkDependenciesEndpoints(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("integrationRuntimeName") String integrationRuntimeName, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/enableInteractiveQuery") - @ExpectedResponses({200, 202}) + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/enableInteractiveQuery") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> enableInteractiveQuery( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @HeaderParam("Accept") String accept, + Mono>> enableInteractiveQuery(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("integrationRuntimeName") String integrationRuntimeName, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/disableInteractiveQuery") - @ExpectedResponses({200, 202}) + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/disableInteractiveQuery") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> disableInteractiveQuery( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("integrationRuntimeName") String integrationRuntimeName, - @HeaderParam("Accept") String accept, + Mono>> disableInteractiveQuery(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("integrationRuntimeName") String integrationRuntimeName, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByWorkspaceNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** * Update integration runtime - * - *

Update an integration runtime. - * + * + * Update an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -275,22 +212,16 @@ Mono> listByWorkspaceNext( * @return integration runtime resource type along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateWithResponseAsync( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, + private Mono> updateWithResponseAsync(String resourceGroupName, + String workspaceName, String integrationRuntimeName, UpdateIntegrationRuntimeRequest updateIntegrationRuntimeRequest) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -300,42 +231,29 @@ private Mono> updateWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } if (updateIntegrationRuntimeRequest == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter updateIntegrationRuntimeRequest is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter updateIntegrationRuntimeRequest is required and cannot be null.")); } else { updateIntegrationRuntimeRequest.validate(); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .update( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - integrationRuntimeName, - updateIntegrationRuntimeRequest, - accept, - context)) + .withContext(context -> service.update(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, + updateIntegrationRuntimeRequest, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Update integration runtime - * - *

Update an integration runtime. - * + * + * Update an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -347,23 +265,16 @@ private Mono> updateWithResponseAsync( * @return integration runtime resource type along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateWithResponseAsync( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - UpdateIntegrationRuntimeRequest updateIntegrationRuntimeRequest, - Context context) { + private Mono> updateWithResponseAsync(String resourceGroupName, + String workspaceName, String integrationRuntimeName, + UpdateIntegrationRuntimeRequest updateIntegrationRuntimeRequest, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -373,39 +284,27 @@ private Mono> updateWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } if (updateIntegrationRuntimeRequest == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter updateIntegrationRuntimeRequest is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter updateIntegrationRuntimeRequest is required and cannot be null.")); } else { updateIntegrationRuntimeRequest.validate(); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .update( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - integrationRuntimeName, - updateIntegrationRuntimeRequest, - accept, - context); + return service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, integrationRuntimeName, updateIntegrationRuntimeRequest, accept, context); } /** * Update integration runtime - * - *

Update an integration runtime. - * + * + * Update an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -416,21 +315,17 @@ private Mono> updateWithResponseAsync( * @return integration runtime resource type on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - UpdateIntegrationRuntimeRequest updateIntegrationRuntimeRequest) { - return updateWithResponseAsync( - resourceGroupName, workspaceName, integrationRuntimeName, updateIntegrationRuntimeRequest) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + private Mono updateAsync(String resourceGroupName, String workspaceName, + String integrationRuntimeName, UpdateIntegrationRuntimeRequest updateIntegrationRuntimeRequest) { + return updateWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, + updateIntegrationRuntimeRequest).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Update integration runtime - * - *

Update an integration runtime. - * + * + * Update an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -442,22 +337,18 @@ private Mono updateAsync( * @return integration runtime resource type along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateWithResponse( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - UpdateIntegrationRuntimeRequest updateIntegrationRuntimeRequest, + public Response updateWithResponse(String resourceGroupName, String workspaceName, + String integrationRuntimeName, UpdateIntegrationRuntimeRequest updateIntegrationRuntimeRequest, Context context) { - return updateWithResponseAsync( - resourceGroupName, workspaceName, integrationRuntimeName, updateIntegrationRuntimeRequest, context) - .block(); + return updateWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, + updateIntegrationRuntimeRequest, context).block(); } /** * Update integration runtime - * - *

Update an integration runtime. - * + * + * Update an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -468,45 +359,37 @@ public Response updateWithResponse( * @return integration runtime resource type. */ @ServiceMethod(returns = ReturnType.SINGLE) - public IntegrationRuntimeResourceInner update( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - UpdateIntegrationRuntimeRequest updateIntegrationRuntimeRequest) { - return updateWithResponse( - resourceGroupName, workspaceName, integrationRuntimeName, updateIntegrationRuntimeRequest, Context.NONE) - .getValue(); + public IntegrationRuntimeResourceInner update(String resourceGroupName, String workspaceName, + String integrationRuntimeName, UpdateIntegrationRuntimeRequest updateIntegrationRuntimeRequest) { + return updateWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, + updateIntegrationRuntimeRequest, Context.NONE).getValue(); } /** * Get integration runtime - * - *

Get an integration runtime. - * + * + * Get an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. * @param ifNoneMatch ETag of the integration runtime entity. Should only be specified for get. If the ETag matches - * the existing entity tag, or if * was provided, then no content will be returned. + * the existing entity tag, or if * was provided, then no content will be returned. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an integration runtime along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName, String ifNoneMatch) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, String integrationRuntimeName, String ifNoneMatch) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -516,39 +399,27 @@ private Mono> getWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - integrationRuntimeName, - ifNoneMatch, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, integrationRuntimeName, ifNoneMatch, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get integration runtime - * - *

Get an integration runtime. - * + * + * Get an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. * @param ifNoneMatch ETag of the integration runtime entity. Should only be specified for get. If the ETag matches - * the existing entity tag, or if * was provided, then no content will be returned. + * the existing entity tag, or if * was provided, then no content will be returned. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -556,23 +427,15 @@ private Mono> getWithResponseAsync( * @return an integration runtime along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String ifNoneMatch, - Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, String integrationRuntimeName, String ifNoneMatch, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -582,31 +445,21 @@ private Mono> getWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - integrationRuntimeName, - ifNoneMatch, - accept, - context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, integrationRuntimeName, ifNoneMatch, accept, context); } /** * Get integration runtime - * - *

Get an integration runtime. - * + * + * Get an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -616,8 +469,8 @@ private Mono> getWithResponseAsync( * @return an integration runtime on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { + private Mono getAsync(String resourceGroupName, String workspaceName, + String integrationRuntimeName) { final String ifNoneMatch = null; return getWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, ifNoneMatch) .flatMap(res -> Mono.justOrEmpty(res.getValue())); @@ -625,14 +478,14 @@ private Mono getAsync( /** * Get integration runtime - * - *

Get an integration runtime. - * + * + * Get an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. * @param ifNoneMatch ETag of the integration runtime entity. Should only be specified for get. If the ETag matches - * the existing entity tag, or if * was provided, then no content will be returned. + * the existing entity tag, or if * was provided, then no content will be returned. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -640,21 +493,17 @@ private Mono getAsync( * @return an integration runtime along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String ifNoneMatch, - Context context) { + public Response getWithResponse(String resourceGroupName, String workspaceName, + String integrationRuntimeName, String ifNoneMatch, Context context) { return getWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, ifNoneMatch, context) .block(); } /** * Get integration runtime - * - *

Get an integration runtime. - * + * + * Get an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -664,8 +513,8 @@ public Response getWithResponse( * @return an integration runtime. */ @ServiceMethod(returns = ReturnType.SINGLE) - public IntegrationRuntimeResourceInner get( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { + public IntegrationRuntimeResourceInner get(String resourceGroupName, String workspaceName, + String integrationRuntimeName) { final String ifNoneMatch = null; return getWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, ifNoneMatch, Context.NONE) .getValue(); @@ -673,38 +522,30 @@ public IntegrationRuntimeResourceInner get( /** * Create integration runtime - * - *

Create an integration runtime. - * + * + * Create an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. * @param integrationRuntime Integration runtime resource definition. * @param ifMatch ETag of the integration runtime entity. Should only be specified for update, for which it should - * match existing entity or can be * for unconditional update. + * match existing entity or can be * for unconditional update. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return integration runtime resource type along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createWithResponseAsync( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - IntegrationRuntimeResourceInner integrationRuntime, - String ifMatch) { + private Mono>> createWithResponseAsync(String resourceGroupName, String workspaceName, + String integrationRuntimeName, IntegrationRuntimeResourceInner integrationRuntime, String ifMatch) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -714,9 +555,8 @@ private Mono>> createWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } if (integrationRuntime == null) { return Mono @@ -727,34 +567,23 @@ private Mono>> createWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .create( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - integrationRuntimeName, - ifMatch, - integrationRuntime, - accept, - context)) + .withContext(context -> service.create(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, ifMatch, + integrationRuntime, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Create integration runtime - * - *

Create an integration runtime. - * + * + * Create an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. * @param integrationRuntime Integration runtime resource definition. * @param ifMatch ETag of the integration runtime entity. Should only be specified for update, for which it should - * match existing entity or can be * for unconditional update. + * match existing entity or can be * for unconditional update. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -762,24 +591,16 @@ private Mono>> createWithResponseAsync( * @return integration runtime resource type along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createWithResponseAsync( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - IntegrationRuntimeResourceInner integrationRuntime, - String ifMatch, + private Mono>> createWithResponseAsync(String resourceGroupName, String workspaceName, + String integrationRuntimeName, IntegrationRuntimeResourceInner integrationRuntime, String ifMatch, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -789,9 +610,8 @@ private Mono>> createWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } if (integrationRuntime == null) { return Mono @@ -802,31 +622,21 @@ private Mono>> createWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .create( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - integrationRuntimeName, - ifMatch, - integrationRuntime, - accept, - context); + return service.create(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, integrationRuntimeName, ifMatch, integrationRuntime, accept, context); } /** * Create integration runtime - * - *

Create an integration runtime. - * + * + * Create an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. * @param integrationRuntime Integration runtime resource definition. * @param ifMatch ETag of the integration runtime entity. Should only be specified for update, for which it should - * match existing entity or can be * for unconditional update. + * match existing entity or can be * for unconditional update. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -834,29 +644,20 @@ private Mono>> createWithResponseAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, IntegrationRuntimeResourceInner> beginCreateAsync( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - IntegrationRuntimeResourceInner integrationRuntime, - String ifMatch) { - Mono>> mono = - createWithResponseAsync( - resourceGroupName, workspaceName, integrationRuntimeName, integrationRuntime, ifMatch); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - IntegrationRuntimeResourceInner.class, - IntegrationRuntimeResourceInner.class, - this.client.getContext()); + String resourceGroupName, String workspaceName, String integrationRuntimeName, + IntegrationRuntimeResourceInner integrationRuntime, String ifMatch) { + Mono>> mono = createWithResponseAsync(resourceGroupName, workspaceName, + integrationRuntimeName, integrationRuntime, ifMatch); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), IntegrationRuntimeResourceInner.class, IntegrationRuntimeResourceInner.class, + this.client.getContext()); } /** * Create integration runtime - * - *

Create an integration runtime. - * + * + * Create an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -868,35 +669,27 @@ private PollerFlux, IntegrationRunti */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, IntegrationRuntimeResourceInner> beginCreateAsync( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, + String resourceGroupName, String workspaceName, String integrationRuntimeName, IntegrationRuntimeResourceInner integrationRuntime) { final String ifMatch = null; - Mono>> mono = - createWithResponseAsync( - resourceGroupName, workspaceName, integrationRuntimeName, integrationRuntime, ifMatch); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - IntegrationRuntimeResourceInner.class, - IntegrationRuntimeResourceInner.class, - this.client.getContext()); + Mono>> mono = createWithResponseAsync(resourceGroupName, workspaceName, + integrationRuntimeName, integrationRuntime, ifMatch); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), IntegrationRuntimeResourceInner.class, IntegrationRuntimeResourceInner.class, + this.client.getContext()); } /** * Create integration runtime - * - *

Create an integration runtime. - * + * + * Create an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. * @param integrationRuntime Integration runtime resource definition. * @param ifMatch ETag of the integration runtime entity. Should only be specified for update, for which it should - * match existing entity or can be * for unconditional update. + * match existing entity or can be * for unconditional update. * @param context The 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,31 +698,21 @@ private PollerFlux, IntegrationRunti */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, IntegrationRuntimeResourceInner> beginCreateAsync( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - IntegrationRuntimeResourceInner integrationRuntime, - String ifMatch, - Context context) { + String resourceGroupName, String workspaceName, String integrationRuntimeName, + IntegrationRuntimeResourceInner integrationRuntime, String ifMatch, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - createWithResponseAsync( - resourceGroupName, workspaceName, integrationRuntimeName, integrationRuntime, ifMatch, context); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - IntegrationRuntimeResourceInner.class, - IntegrationRuntimeResourceInner.class, - context); + Mono>> mono = createWithResponseAsync(resourceGroupName, workspaceName, + integrationRuntimeName, integrationRuntime, ifMatch, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), IntegrationRuntimeResourceInner.class, IntegrationRuntimeResourceInner.class, + context); } /** * Create integration runtime - * - *

Create an integration runtime. - * + * + * Create an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -941,9 +724,7 @@ private PollerFlux, IntegrationRunti */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, IntegrationRuntimeResourceInner> beginCreate( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, + String resourceGroupName, String workspaceName, String integrationRuntimeName, IntegrationRuntimeResourceInner integrationRuntime) { final String ifMatch = null; return this @@ -953,15 +734,15 @@ public SyncPoller, IntegrationRuntim /** * Create integration runtime - * - *

Create an integration runtime. - * + * + * Create an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. * @param integrationRuntime Integration runtime resource definition. * @param ifMatch ETag of the integration runtime entity. Should only be specified for update, for which it should - * match existing entity or can be * for unconditional update. + * match existing entity or can be * for unconditional update. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -970,51 +751,40 @@ public SyncPoller, IntegrationRuntim */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, IntegrationRuntimeResourceInner> beginCreate( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - IntegrationRuntimeResourceInner integrationRuntime, - String ifMatch, - Context context) { - return this - .beginCreateAsync( - resourceGroupName, workspaceName, integrationRuntimeName, integrationRuntime, ifMatch, context) - .getSyncPoller(); + String resourceGroupName, String workspaceName, String integrationRuntimeName, + IntegrationRuntimeResourceInner integrationRuntime, String ifMatch, Context context) { + return this.beginCreateAsync(resourceGroupName, workspaceName, integrationRuntimeName, integrationRuntime, + ifMatch, context).getSyncPoller(); } /** * Create integration runtime - * - *

Create an integration runtime. - * + * + * Create an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. * @param integrationRuntime Integration runtime resource definition. * @param ifMatch ETag of the integration runtime entity. Should only be specified for update, for which it should - * match existing entity or can be * for unconditional update. + * match existing entity or can be * for unconditional update. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return integration runtime resource type on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - IntegrationRuntimeResourceInner integrationRuntime, - String ifMatch) { + private Mono createAsync(String resourceGroupName, String workspaceName, + String integrationRuntimeName, IntegrationRuntimeResourceInner integrationRuntime, String ifMatch) { return beginCreateAsync(resourceGroupName, workspaceName, integrationRuntimeName, integrationRuntime, ifMatch) - .last() - .flatMap(this.client::getLroFinalResultOrError); + .last().flatMap(this.client::getLroFinalResultOrError); } /** * Create integration runtime - * - *

Create an integration runtime. - * + * + * Create an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -1025,28 +795,24 @@ private Mono createAsync( * @return integration runtime resource type on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - IntegrationRuntimeResourceInner integrationRuntime) { + private Mono createAsync(String resourceGroupName, String workspaceName, + String integrationRuntimeName, IntegrationRuntimeResourceInner integrationRuntime) { final String ifMatch = null; return beginCreateAsync(resourceGroupName, workspaceName, integrationRuntimeName, integrationRuntime, ifMatch) - .last() - .flatMap(this.client::getLroFinalResultOrError); + .last().flatMap(this.client::getLroFinalResultOrError); } /** * Create integration runtime - * - *

Create an integration runtime. - * + * + * Create an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. * @param integrationRuntime Integration runtime resource definition. * @param ifMatch ETag of the integration runtime entity. Should only be specified for update, for which it should - * match existing entity or can be * for unconditional update. + * match existing entity or can be * for unconditional update. * @param context The 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,24 +820,18 @@ private Mono createAsync( * @return integration runtime resource type on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - IntegrationRuntimeResourceInner integrationRuntime, - String ifMatch, + private Mono createAsync(String resourceGroupName, String workspaceName, + String integrationRuntimeName, IntegrationRuntimeResourceInner integrationRuntime, String ifMatch, Context context) { - return beginCreateAsync( - resourceGroupName, workspaceName, integrationRuntimeName, integrationRuntime, ifMatch, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + return beginCreateAsync(resourceGroupName, workspaceName, integrationRuntimeName, integrationRuntime, ifMatch, + context).last().flatMap(this.client::getLroFinalResultOrError); } /** * Create integration runtime - * - *

Create an integration runtime. - * + * + * Create an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -1082,11 +842,8 @@ private Mono createAsync( * @return integration runtime resource type. */ @ServiceMethod(returns = ReturnType.SINGLE) - public IntegrationRuntimeResourceInner create( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - IntegrationRuntimeResourceInner integrationRuntime) { + public IntegrationRuntimeResourceInner create(String resourceGroupName, String workspaceName, + String integrationRuntimeName, IntegrationRuntimeResourceInner integrationRuntime) { final String ifMatch = null; return createAsync(resourceGroupName, workspaceName, integrationRuntimeName, integrationRuntime, ifMatch) .block(); @@ -1094,15 +851,15 @@ public IntegrationRuntimeResourceInner create( /** * Create integration runtime - * - *

Create an integration runtime. - * + * + * Create an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. * @param integrationRuntime Integration runtime resource definition. * @param ifMatch ETag of the integration runtime entity. Should only be specified for update, for which it should - * match existing entity or can be * for unconditional update. + * match existing entity or can be * for unconditional update. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1110,23 +867,18 @@ public IntegrationRuntimeResourceInner create( * @return integration runtime resource type. */ @ServiceMethod(returns = ReturnType.SINGLE) - public IntegrationRuntimeResourceInner create( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - IntegrationRuntimeResourceInner integrationRuntime, - String ifMatch, + public IntegrationRuntimeResourceInner create(String resourceGroupName, String workspaceName, + String integrationRuntimeName, IntegrationRuntimeResourceInner integrationRuntime, String ifMatch, Context context) { - return createAsync( - resourceGroupName, workspaceName, integrationRuntimeName, integrationRuntime, ifMatch, context) - .block(); + return createAsync(resourceGroupName, workspaceName, integrationRuntimeName, integrationRuntime, ifMatch, + context).block(); } /** * Delete integration runtime - * - *

Delete an integration runtime. - * + * + * Delete an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -1136,19 +888,15 @@ public IntegrationRuntimeResourceInner create( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String workspaceName, + String integrationRuntimeName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1158,33 +906,23 @@ private Mono>> deleteWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil .withContext( - context -> - service - .delete( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - integrationRuntimeName, - accept, - context)) + context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, integrationRuntimeName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Delete integration runtime - * - *

Delete an integration runtime. - * + * + * Delete an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -1195,19 +933,15 @@ private Mono>> deleteWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String workspaceName, + String integrationRuntimeName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1217,30 +951,21 @@ private Mono>> deleteWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .delete( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - integrationRuntimeName, - accept, - context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, integrationRuntimeName, accept, context); } /** * Delete integration runtime - * - *

Delete an integration runtime. - * + * + * Delete an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -1250,21 +975,19 @@ private Mono>> deleteWithResponseAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { - Mono>> mono = - deleteWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String workspaceName, + String integrationRuntimeName) { + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Delete integration runtime - * - *

Delete an integration runtime. - * + * + * Delete an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -1275,21 +998,20 @@ private PollerFlux, Void> beginDeleteAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String workspaceName, + String integrationRuntimeName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - deleteWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * Delete integration runtime - * - *

Delete an integration runtime. - * + * + * Delete an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -1299,16 +1021,16 @@ private PollerFlux, Void> beginDeleteAsync( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { + public SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, + String integrationRuntimeName) { return this.beginDeleteAsync(resourceGroupName, workspaceName, integrationRuntimeName).getSyncPoller(); } /** * Delete integration runtime - * - *

Delete an integration runtime. - * + * + * Delete an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -1319,16 +1041,16 @@ public SyncPoller, Void> beginDelete( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { + public SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, + String integrationRuntimeName, Context context) { return this.beginDeleteAsync(resourceGroupName, workspaceName, integrationRuntimeName, context).getSyncPoller(); } /** * Delete integration runtime - * - *

Delete an integration runtime. - * + * + * Delete an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -1339,16 +1061,15 @@ public SyncPoller, Void> beginDelete( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String workspaceName, String integrationRuntimeName) { - return beginDeleteAsync(resourceGroupName, workspaceName, integrationRuntimeName) - .last() + return beginDeleteAsync(resourceGroupName, workspaceName, integrationRuntimeName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete integration runtime - * - *

Delete an integration runtime. - * + * + * Delete an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -1359,18 +1080,17 @@ private Mono deleteAsync(String resourceGroupName, String workspaceName, S * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { - return beginDeleteAsync(resourceGroupName, workspaceName, integrationRuntimeName, context) - .last() + private Mono deleteAsync(String resourceGroupName, String workspaceName, String integrationRuntimeName, + Context context) { + return beginDeleteAsync(resourceGroupName, workspaceName, integrationRuntimeName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete integration runtime - * - *

Delete an integration runtime. - * + * + * Delete an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -1385,9 +1105,9 @@ public void delete(String resourceGroupName, String workspaceName, String integr /** * Delete integration runtime - * - *

Delete an integration runtime. - * + * + * Delete an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -1403,9 +1123,9 @@ public void delete(String resourceGroupName, String workspaceName, String integr /** * Upgrade integration runtime - * - *

Upgrade an integration runtime. - * + * + * Upgrade an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -1415,19 +1135,15 @@ public void delete(String resourceGroupName, String workspaceName, String integr * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> upgradeWithResponseAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { + private Mono> upgradeWithResponseAsync(String resourceGroupName, String workspaceName, + String integrationRuntimeName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1437,33 +1153,23 @@ private Mono> upgradeWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil .withContext( - context -> - service - .upgrade( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - integrationRuntimeName, - accept, - context)) + context -> service.upgrade(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, integrationRuntimeName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Upgrade integration runtime - * - *

Upgrade an integration runtime. - * + * + * Upgrade an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -1474,19 +1180,15 @@ private Mono> upgradeWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> upgradeWithResponseAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { + private Mono> upgradeWithResponseAsync(String resourceGroupName, String workspaceName, + String integrationRuntimeName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1496,30 +1198,21 @@ private Mono> upgradeWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .upgrade( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - integrationRuntimeName, - accept, - context); + return service.upgrade(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, integrationRuntimeName, accept, context); } /** * Upgrade integration runtime - * - *

Upgrade an integration runtime. - * + * + * Upgrade an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -1536,9 +1229,9 @@ private Mono upgradeAsync(String resourceGroupName, String workspaceName, /** * Upgrade integration runtime - * - *

Upgrade an integration runtime. - * + * + * Upgrade an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -1549,16 +1242,16 @@ private Mono upgradeAsync(String resourceGroupName, String workspaceName, * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response upgradeWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { + public Response upgradeWithResponse(String resourceGroupName, String workspaceName, + String integrationRuntimeName, Context context) { return upgradeWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, context).block(); } /** * Upgrade integration runtime - * - *

Upgrade an integration runtime. - * + * + * Upgrade an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -1573,31 +1266,27 @@ public void upgrade(String resourceGroupName, String workspaceName, String integ /** * List integration runtimes - * - *

List all integration runtimes. - * + * + * List all integration runtimes. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of integration runtime resources along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByWorkspaceSinglePageAsync( - String resourceGroupName, String workspaceName) { + private Mono> + listByWorkspaceSinglePageAsync(String resourceGroupName, String workspaceName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1609,34 +1298,18 @@ private Mono> listByWorkspaceSing final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .listByWorkspace( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .withContext(context -> service.listByWorkspace(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * List integration runtimes - * - *

List all integration runtimes. - * + * + * List all integration runtimes. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -1644,22 +1317,18 @@ private Mono> listByWorkspaceSing * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of integration runtime resources along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByWorkspaceSinglePageAsync( - String resourceGroupName, String workspaceName, Context context) { + private Mono> + listByWorkspaceSinglePageAsync(String resourceGroupName, String workspaceName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1672,30 +1341,17 @@ private Mono> listByWorkspaceSing final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByWorkspace( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + .listByWorkspace(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * List integration runtimes - * - *

List all integration runtimes. - * + * + * List all integration runtimes. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1704,18 +1360,17 @@ private Mono> listByWorkspaceSing * @return a list of integration runtime resources as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByWorkspaceAsync( - String resourceGroupName, String workspaceName) { - return new PagedFlux<>( - () -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName), + private PagedFlux listByWorkspaceAsync(String resourceGroupName, + String workspaceName) { + return new PagedFlux<>(() -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName), nextLink -> listByWorkspaceNextSinglePageAsync(nextLink)); } /** * List integration runtimes - * - *

List all integration runtimes. - * + * + * List all integration runtimes. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -1725,18 +1380,17 @@ private PagedFlux listByWorkspaceAsync( * @return a list of integration runtime resources as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByWorkspaceAsync( - String resourceGroupName, String workspaceName, Context context) { - return new PagedFlux<>( - () -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName, context), + private PagedFlux listByWorkspaceAsync(String resourceGroupName, + String workspaceName, Context context) { + return new PagedFlux<>(() -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName, context), nextLink -> listByWorkspaceNextSinglePageAsync(nextLink, context)); } /** * List integration runtimes - * - *

List all integration runtimes. - * + * + * List all integration runtimes. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1745,16 +1399,16 @@ private PagedFlux listByWorkspaceAsync( * @return a list of integration runtime resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByWorkspace( - String resourceGroupName, String workspaceName) { + public PagedIterable listByWorkspace(String resourceGroupName, + String workspaceName) { return new PagedIterable<>(listByWorkspaceAsync(resourceGroupName, workspaceName)); } /** * List integration runtimes - * - *

List all integration runtimes. - * + * + * List all integration runtimes. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -1764,16 +1418,16 @@ public PagedIterable listByWorkspace( * @return a list of integration runtime resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByWorkspace( - String resourceGroupName, String workspaceName, Context context) { + public PagedIterable listByWorkspace(String resourceGroupName, + String workspaceName, Context context) { return new PagedIterable<>(listByWorkspaceAsync(resourceGroupName, workspaceName, context)); } /** * Start integration runtime - * - *

Start an integration runtime. - * + * + * Start an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -1783,19 +1437,15 @@ public PagedIterable listByWorkspace( * @return integration runtime status response along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> startWithResponseAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { + private Mono>> startWithResponseAsync(String resourceGroupName, String workspaceName, + String integrationRuntimeName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1805,33 +1455,23 @@ private Mono>> startWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil .withContext( - context -> - service - .start( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - integrationRuntimeName, - accept, - context)) + context -> service.start(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, integrationRuntimeName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Start integration runtime - * - *

Start an integration runtime. - * + * + * Start an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -1842,19 +1482,15 @@ private Mono>> startWithResponseAsync( * @return integration runtime status response along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> startWithResponseAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { + private Mono>> startWithResponseAsync(String resourceGroupName, String workspaceName, + String integrationRuntimeName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1864,30 +1500,21 @@ private Mono>> startWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .start( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - integrationRuntimeName, - accept, - context); + return service.start(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, integrationRuntimeName, accept, context); } /** * Start integration runtime - * - *

Start an integration runtime. - * + * + * Start an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -1899,23 +1526,18 @@ private Mono>> startWithResponseAsync( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, IntegrationRuntimeStatusResponseInner> beginStartAsync(String resourceGroupName, String workspaceName, String integrationRuntimeName) { - Mono>> mono = - startWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - IntegrationRuntimeStatusResponseInner.class, - IntegrationRuntimeStatusResponseInner.class, - this.client.getContext()); + Mono>> mono + = startWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName); + return this.client.getLroResult( + mono, this.client.getHttpPipeline(), IntegrationRuntimeStatusResponseInner.class, + IntegrationRuntimeStatusResponseInner.class, this.client.getContext()); } /** * Start integration runtime - * - *

Start an integration runtime. - * + * + * Start an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -1927,26 +1549,21 @@ private Mono>> startWithResponseAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, IntegrationRuntimeStatusResponseInner> - beginStartAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { + beginStartAsync(String resourceGroupName, String workspaceName, String integrationRuntimeName, + Context context) { context = this.client.mergeContext(context); - Mono>> mono = - startWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, context); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - IntegrationRuntimeStatusResponseInner.class, - IntegrationRuntimeStatusResponseInner.class, - context); + Mono>> mono + = startWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, context); + return this.client.getLroResult( + mono, this.client.getHttpPipeline(), IntegrationRuntimeStatusResponseInner.class, + IntegrationRuntimeStatusResponseInner.class, context); } /** * Start integration runtime - * - *

Start an integration runtime. - * + * + * Start an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -1963,9 +1580,9 @@ private Mono>> startWithResponseAsync( /** * Start integration runtime - * - *

Start an integration runtime. - * + * + * Start an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -1983,9 +1600,9 @@ private Mono>> startWithResponseAsync( /** * Start integration runtime - * - *

Start an integration runtime. - * + * + * Start an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -1995,18 +1612,17 @@ private Mono>> startWithResponseAsync( * @return integration runtime status response on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono startAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { - return beginStartAsync(resourceGroupName, workspaceName, integrationRuntimeName) - .last() + private Mono startAsync(String resourceGroupName, String workspaceName, + String integrationRuntimeName) { + return beginStartAsync(resourceGroupName, workspaceName, integrationRuntimeName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Start integration runtime - * - *

Start an integration runtime. - * + * + * Start an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -2017,18 +1633,17 @@ private Mono startAsync( * @return integration runtime status response on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono startAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { - return beginStartAsync(resourceGroupName, workspaceName, integrationRuntimeName, context) - .last() + private Mono startAsync(String resourceGroupName, String workspaceName, + String integrationRuntimeName, Context context) { + return beginStartAsync(resourceGroupName, workspaceName, integrationRuntimeName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Start integration runtime - * - *

Start an integration runtime. - * + * + * Start an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -2038,16 +1653,16 @@ private Mono startAsync( * @return integration runtime status response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public IntegrationRuntimeStatusResponseInner start( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { + public IntegrationRuntimeStatusResponseInner start(String resourceGroupName, String workspaceName, + String integrationRuntimeName) { return startAsync(resourceGroupName, workspaceName, integrationRuntimeName).block(); } /** * Start integration runtime - * - *

Start an integration runtime. - * + * + * Start an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -2058,16 +1673,16 @@ public IntegrationRuntimeStatusResponseInner start( * @return integration runtime status response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public IntegrationRuntimeStatusResponseInner start( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { + public IntegrationRuntimeStatusResponseInner start(String resourceGroupName, String workspaceName, + String integrationRuntimeName, Context context) { return startAsync(resourceGroupName, workspaceName, integrationRuntimeName, context).block(); } /** * Stop integration runtime - * - *

Stop an integration runtime. - * + * + * Stop an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -2077,19 +1692,15 @@ public IntegrationRuntimeStatusResponseInner start( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> stopWithResponseAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { + private Mono>> stopWithResponseAsync(String resourceGroupName, String workspaceName, + String integrationRuntimeName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2099,33 +1710,22 @@ private Mono>> stopWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .stop( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - integrationRuntimeName, - accept, - context)) + .withContext(context -> service.stop(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, integrationRuntimeName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Stop integration runtime - * - *

Stop an integration runtime. - * + * + * Stop an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -2136,19 +1736,15 @@ private Mono>> stopWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> stopWithResponseAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { + private Mono>> stopWithResponseAsync(String resourceGroupName, String workspaceName, + String integrationRuntimeName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2158,30 +1754,21 @@ private Mono>> stopWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .stop( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - integrationRuntimeName, - accept, - context); + return service.stop(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, integrationRuntimeName, accept, context); } /** * Stop integration runtime - * - *

Stop an integration runtime. - * + * + * Stop an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -2191,21 +1778,19 @@ private Mono>> stopWithResponseAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginStopAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { - Mono>> mono = - stopWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + private PollerFlux, Void> beginStopAsync(String resourceGroupName, String workspaceName, + String integrationRuntimeName) { + Mono>> mono + = stopWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Stop integration runtime - * - *

Stop an integration runtime. - * + * + * Stop an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -2216,21 +1801,20 @@ private PollerFlux, Void> beginStopAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginStopAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { + private PollerFlux, Void> beginStopAsync(String resourceGroupName, String workspaceName, + String integrationRuntimeName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - stopWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + Mono>> mono + = stopWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * Stop integration runtime - * - *

Stop an integration runtime. - * + * + * Stop an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -2240,16 +1824,16 @@ private PollerFlux, Void> beginStopAsync( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginStop( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { + public SyncPoller, Void> beginStop(String resourceGroupName, String workspaceName, + String integrationRuntimeName) { return this.beginStopAsync(resourceGroupName, workspaceName, integrationRuntimeName).getSyncPoller(); } /** * Stop integration runtime - * - *

Stop an integration runtime. - * + * + * Stop an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -2260,16 +1844,16 @@ public SyncPoller, Void> beginStop( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginStop( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { + public SyncPoller, Void> beginStop(String resourceGroupName, String workspaceName, + String integrationRuntimeName, Context context) { return this.beginStopAsync(resourceGroupName, workspaceName, integrationRuntimeName, context).getSyncPoller(); } /** * Stop integration runtime - * - *

Stop an integration runtime. - * + * + * Stop an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -2280,16 +1864,15 @@ public SyncPoller, Void> beginStop( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono stopAsync(String resourceGroupName, String workspaceName, String integrationRuntimeName) { - return beginStopAsync(resourceGroupName, workspaceName, integrationRuntimeName) - .last() + return beginStopAsync(resourceGroupName, workspaceName, integrationRuntimeName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Stop integration runtime - * - *

Stop an integration runtime. - * + * + * Stop an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -2300,18 +1883,17 @@ private Mono stopAsync(String resourceGroupName, String workspaceName, Str * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono stopAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { - return beginStopAsync(resourceGroupName, workspaceName, integrationRuntimeName, context) - .last() + private Mono stopAsync(String resourceGroupName, String workspaceName, String integrationRuntimeName, + Context context) { + return beginStopAsync(resourceGroupName, workspaceName, integrationRuntimeName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Stop integration runtime - * - *

Stop an integration runtime. - * + * + * Stop an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -2326,9 +1908,9 @@ public void stop(String resourceGroupName, String workspaceName, String integrat /** * Stop integration runtime - * - *

Stop an integration runtime. - * + * + * Stop an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -2344,33 +1926,29 @@ public void stop(String resourceGroupName, String workspaceName, String integrat /** * Gets list of outbound network dependencies for a given Azure-SSIS integration runtime. - * - *

Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. - * + * + * Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of outbound network dependencies for a given Azure-SSIS integration runtime along with {@link - * Response} on successful completion of {@link Mono}. + * @return the list of outbound network dependencies for a given Azure-SSIS integration runtime along with + * {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> - listOutboundNetworkDependenciesEndpointsWithResponseAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { + listOutboundNetworkDependenciesEndpointsWithResponseAsync(String resourceGroupName, String workspaceName, + String integrationRuntimeName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2380,33 +1958,23 @@ public void stop(String resourceGroupName, String workspaceName, String integrat return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .listOutboundNetworkDependenciesEndpoints( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - integrationRuntimeName, - accept, - context)) + .withContext(context -> service.listOutboundNetworkDependenciesEndpoints(this.client.getEndpoint(), + apiVersion, this.client.getSubscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets list of outbound network dependencies for a given Azure-SSIS integration runtime. - * - *

Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. - * + * + * Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -2414,24 +1982,20 @@ public void stop(String resourceGroupName, String workspaceName, String integrat * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of outbound network dependencies for a given Azure-SSIS integration runtime along with {@link - * Response} on successful completion of {@link Mono}. + * @return the list of outbound network dependencies for a given Azure-SSIS integration runtime along with + * {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> - listOutboundNetworkDependenciesEndpointsWithResponseAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { + listOutboundNetworkDependenciesEndpointsWithResponseAsync(String resourceGroupName, String workspaceName, + String integrationRuntimeName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2441,30 +2005,21 @@ public void stop(String resourceGroupName, String workspaceName, String integrat return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listOutboundNetworkDependenciesEndpoints( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - integrationRuntimeName, - accept, - context); + return service.listOutboundNetworkDependenciesEndpoints(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, accept, context); } /** * Gets list of outbound network dependencies for a given Azure-SSIS integration runtime. - * - *

Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. - * + * + * Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -2472,22 +2027,21 @@ public void stop(String resourceGroupName, String workspaceName, String integrat * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of outbound network dependencies for a given Azure-SSIS integration runtime on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono - listOutboundNetworkDependenciesEndpointsAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { - return listOutboundNetworkDependenciesEndpointsWithResponseAsync( - resourceGroupName, workspaceName, integrationRuntimeName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + listOutboundNetworkDependenciesEndpointsAsync(String resourceGroupName, String workspaceName, + String integrationRuntimeName) { + return listOutboundNetworkDependenciesEndpointsWithResponseAsync(resourceGroupName, workspaceName, + integrationRuntimeName).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Gets list of outbound network dependencies for a given Azure-SSIS integration runtime. - * - *

Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. - * + * + * Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -2495,23 +2049,22 @@ public void stop(String resourceGroupName, String workspaceName, String integrat * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of outbound network dependencies for a given Azure-SSIS integration runtime along with {@link - * Response}. + * @return the list of outbound network dependencies for a given Azure-SSIS integration runtime along with + * {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response - listOutboundNetworkDependenciesEndpointsWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { - return listOutboundNetworkDependenciesEndpointsWithResponseAsync( - resourceGroupName, workspaceName, integrationRuntimeName, context) - .block(); + listOutboundNetworkDependenciesEndpointsWithResponse(String resourceGroupName, String workspaceName, + String integrationRuntimeName, Context context) { + return listOutboundNetworkDependenciesEndpointsWithResponseAsync(resourceGroupName, workspaceName, + integrationRuntimeName, context).block(); } /** * Gets list of outbound network dependencies for a given Azure-SSIS integration runtime. - * - *

Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. - * + * + * Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -2523,14 +2076,13 @@ public void stop(String resourceGroupName, String workspaceName, String integrat @ServiceMethod(returns = ReturnType.SINGLE) public IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner listOutboundNetworkDependenciesEndpoints( String resourceGroupName, String workspaceName, String integrationRuntimeName) { - return listOutboundNetworkDependenciesEndpointsWithResponse( - resourceGroupName, workspaceName, integrationRuntimeName, Context.NONE) - .getValue(); + return listOutboundNetworkDependenciesEndpointsWithResponse(resourceGroupName, workspaceName, + integrationRuntimeName, Context.NONE).getValue(); } /** * Enable interactive query in integration runtime. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -2540,19 +2092,15 @@ public IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner listO * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> enableInteractiveQueryWithResponseAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { + private Mono>> enableInteractiveQueryWithResponseAsync(String resourceGroupName, + String workspaceName, String integrationRuntimeName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2562,31 +2110,19 @@ private Mono>> enableInteractiveQueryWithResponseAsync return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .enableInteractiveQuery( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - integrationRuntimeName, - accept, - context)) + return FluxUtil.withContext(context -> service.enableInteractiveQuery(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Enable interactive query in integration runtime. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -2597,19 +2133,15 @@ private Mono>> enableInteractiveQueryWithResponseAsync * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> enableInteractiveQueryWithResponseAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { + private Mono>> enableInteractiveQueryWithResponseAsync(String resourceGroupName, + String workspaceName, String integrationRuntimeName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2619,28 +2151,19 @@ private Mono>> enableInteractiveQueryWithResponseAsync return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .enableInteractiveQuery( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - integrationRuntimeName, - accept, - context); + return service.enableInteractiveQuery(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, integrationRuntimeName, accept, context); } /** * Enable interactive query in integration runtime. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -2650,19 +2173,17 @@ private Mono>> enableInteractiveQueryWithResponseAsync * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginEnableInteractiveQueryAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { - Mono>> mono = - enableInteractiveQueryWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + private PollerFlux, Void> beginEnableInteractiveQueryAsync(String resourceGroupName, + String workspaceName, String integrationRuntimeName) { + Mono>> mono + = enableInteractiveQueryWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Enable interactive query in integration runtime. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -2673,19 +2194,18 @@ private PollerFlux, Void> beginEnableInteractiveQueryAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginEnableInteractiveQueryAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { + private PollerFlux, Void> beginEnableInteractiveQueryAsync(String resourceGroupName, + String workspaceName, String integrationRuntimeName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - enableInteractiveQueryWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + Mono>> mono = enableInteractiveQueryWithResponseAsync(resourceGroupName, + workspaceName, integrationRuntimeName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * Enable interactive query in integration runtime. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -2695,16 +2215,15 @@ private PollerFlux, Void> beginEnableInteractiveQueryAsync( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginEnableInteractiveQuery( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { - return this - .beginEnableInteractiveQueryAsync(resourceGroupName, workspaceName, integrationRuntimeName) + public SyncPoller, Void> beginEnableInteractiveQuery(String resourceGroupName, + String workspaceName, String integrationRuntimeName) { + return this.beginEnableInteractiveQueryAsync(resourceGroupName, workspaceName, integrationRuntimeName) .getSyncPoller(); } /** * Enable interactive query in integration runtime. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -2715,16 +2234,15 @@ public SyncPoller, Void> beginEnableInteractiveQuery( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginEnableInteractiveQuery( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { - return this - .beginEnableInteractiveQueryAsync(resourceGroupName, workspaceName, integrationRuntimeName, context) + public SyncPoller, Void> beginEnableInteractiveQuery(String resourceGroupName, + String workspaceName, String integrationRuntimeName, Context context) { + return this.beginEnableInteractiveQueryAsync(resourceGroupName, workspaceName, integrationRuntimeName, context) .getSyncPoller(); } /** * Enable interactive query in integration runtime. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -2734,16 +2252,15 @@ public SyncPoller, Void> beginEnableInteractiveQuery( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono enableInteractiveQueryAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { - return beginEnableInteractiveQueryAsync(resourceGroupName, workspaceName, integrationRuntimeName) - .last() + private Mono enableInteractiveQueryAsync(String resourceGroupName, String workspaceName, + String integrationRuntimeName) { + return beginEnableInteractiveQueryAsync(resourceGroupName, workspaceName, integrationRuntimeName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Enable interactive query in integration runtime. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -2754,16 +2271,15 @@ private Mono enableInteractiveQueryAsync( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono enableInteractiveQueryAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { + private Mono enableInteractiveQueryAsync(String resourceGroupName, String workspaceName, + String integrationRuntimeName, Context context) { return beginEnableInteractiveQueryAsync(resourceGroupName, workspaceName, integrationRuntimeName, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + .last().flatMap(this.client::getLroFinalResultOrError); } /** * Enable interactive query in integration runtime. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -2778,7 +2294,7 @@ public void enableInteractiveQuery(String resourceGroupName, String workspaceNam /** * Enable interactive query in integration runtime. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -2788,14 +2304,14 @@ public void enableInteractiveQuery(String resourceGroupName, String workspaceNam * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void enableInteractiveQuery( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { + public void enableInteractiveQuery(String resourceGroupName, String workspaceName, String integrationRuntimeName, + Context context) { enableInteractiveQueryAsync(resourceGroupName, workspaceName, integrationRuntimeName, context).block(); } /** * Disable interactive query in integration runtime. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -2805,19 +2321,15 @@ public void enableInteractiveQuery( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> disableInteractiveQueryWithResponseAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { + private Mono>> disableInteractiveQueryWithResponseAsync(String resourceGroupName, + String workspaceName, String integrationRuntimeName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2827,31 +2339,19 @@ private Mono>> disableInteractiveQueryWithResponseAsyn return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .disableInteractiveQuery( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - integrationRuntimeName, - accept, - context)) + return FluxUtil.withContext(context -> service.disableInteractiveQuery(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, integrationRuntimeName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Disable interactive query in integration runtime. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -2862,19 +2362,15 @@ private Mono>> disableInteractiveQueryWithResponseAsyn * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> disableInteractiveQueryWithResponseAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { + private Mono>> disableInteractiveQueryWithResponseAsync(String resourceGroupName, + String workspaceName, String integrationRuntimeName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2884,28 +2380,19 @@ private Mono>> disableInteractiveQueryWithResponseAsyn return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (integrationRuntimeName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter integrationRuntimeName is required and cannot be null.")); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .disableInteractiveQuery( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - integrationRuntimeName, - accept, - context); + return service.disableInteractiveQuery(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, integrationRuntimeName, accept, context); } /** * Disable interactive query in integration runtime. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -2915,19 +2402,17 @@ private Mono>> disableInteractiveQueryWithResponseAsyn * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDisableInteractiveQueryAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { - Mono>> mono = - disableInteractiveQueryWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + private PollerFlux, Void> beginDisableInteractiveQueryAsync(String resourceGroupName, + String workspaceName, String integrationRuntimeName) { + Mono>> mono + = disableInteractiveQueryWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Disable interactive query in integration runtime. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -2938,19 +2423,18 @@ private PollerFlux, Void> beginDisableInteractiveQueryAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDisableInteractiveQueryAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { + private PollerFlux, Void> beginDisableInteractiveQueryAsync(String resourceGroupName, + String workspaceName, String integrationRuntimeName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - disableInteractiveQueryWithResponseAsync(resourceGroupName, workspaceName, integrationRuntimeName, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + Mono>> mono = disableInteractiveQueryWithResponseAsync(resourceGroupName, + workspaceName, integrationRuntimeName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * Disable interactive query in integration runtime. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -2960,16 +2444,15 @@ private PollerFlux, Void> beginDisableInteractiveQueryAsync( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDisableInteractiveQuery( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { - return this - .beginDisableInteractiveQueryAsync(resourceGroupName, workspaceName, integrationRuntimeName) + public SyncPoller, Void> beginDisableInteractiveQuery(String resourceGroupName, + String workspaceName, String integrationRuntimeName) { + return this.beginDisableInteractiveQueryAsync(resourceGroupName, workspaceName, integrationRuntimeName) .getSyncPoller(); } /** * Disable interactive query in integration runtime. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -2980,16 +2463,15 @@ public SyncPoller, Void> beginDisableInteractiveQuery( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDisableInteractiveQuery( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { - return this - .beginDisableInteractiveQueryAsync(resourceGroupName, workspaceName, integrationRuntimeName, context) + public SyncPoller, Void> beginDisableInteractiveQuery(String resourceGroupName, + String workspaceName, String integrationRuntimeName, Context context) { + return this.beginDisableInteractiveQueryAsync(resourceGroupName, workspaceName, integrationRuntimeName, context) .getSyncPoller(); } /** * Disable interactive query in integration runtime. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -2999,16 +2481,15 @@ public SyncPoller, Void> beginDisableInteractiveQuery( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono disableInteractiveQueryAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { - return beginDisableInteractiveQueryAsync(resourceGroupName, workspaceName, integrationRuntimeName) - .last() + private Mono disableInteractiveQueryAsync(String resourceGroupName, String workspaceName, + String integrationRuntimeName) { + return beginDisableInteractiveQueryAsync(resourceGroupName, workspaceName, integrationRuntimeName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Disable interactive query in integration runtime. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -3019,16 +2500,15 @@ private Mono disableInteractiveQueryAsync( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono disableInteractiveQueryAsync( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { + private Mono disableInteractiveQueryAsync(String resourceGroupName, String workspaceName, + String integrationRuntimeName, Context context) { return beginDisableInteractiveQueryAsync(resourceGroupName, workspaceName, integrationRuntimeName, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + .last().flatMap(this.client::getLroFinalResultOrError); } /** * Disable interactive query in integration runtime. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -3043,7 +2523,7 @@ public void disableInteractiveQuery(String resourceGroupName, String workspaceNa /** * Disable interactive query in integration runtime. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -3053,21 +2533,22 @@ public void disableInteractiveQuery(String resourceGroupName, String workspaceNa * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void disableInteractiveQuery( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { + public void disableInteractiveQuery(String resourceGroupName, String workspaceName, String integrationRuntimeName, + Context context) { disableInteractiveQueryAsync(resourceGroupName, workspaceName, integrationRuntimeName, context).block(); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of integration runtime resources along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByWorkspaceNextSinglePageAsync(String nextLink) { @@ -3075,62 +2556,44 @@ private Mono> listByWorkspaceNext return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByWorkspaceNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of integration runtime resources along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByWorkspaceNextSinglePageAsync( - String nextLink, Context context) { + private Mono> listByWorkspaceNextSinglePageAsync(String nextLink, + Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listByWorkspaceNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listByWorkspaceNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimesImpl.java index 747fe6f77fe6..d6bbd593abe3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IntegrationRuntimesImpl.java @@ -25,37 +25,28 @@ public final class IntegrationRuntimesImpl implements IntegrationRuntimes { private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public IntegrationRuntimesImpl( - IntegrationRuntimesClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + public IntegrationRuntimesImpl(IntegrationRuntimesClient innerClient, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String ifNoneMatch, - Context context) { - Response inner = - this - .serviceClient() - .getWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, ifNoneMatch, context); + public Response getWithResponse(String resourceGroupName, String workspaceName, + String integrationRuntimeName, String ifNoneMatch, Context context) { + Response inner = this.serviceClient().getWithResponse(resourceGroupName, + workspaceName, integrationRuntimeName, ifNoneMatch, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new IntegrationRuntimeResourceImpl(inner.getValue(), this.manager())); } else { return null; } } - public IntegrationRuntimeResource get( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { - IntegrationRuntimeResourceInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, integrationRuntimeName); + public IntegrationRuntimeResource get(String resourceGroupName, String workspaceName, + String integrationRuntimeName) { + IntegrationRuntimeResourceInner inner + = this.serviceClient().get(resourceGroupName, workspaceName, integrationRuntimeName); if (inner != null) { return new IntegrationRuntimeResourceImpl(inner, this.manager()); } else { @@ -71,11 +62,10 @@ public void delete(String resourceGroupName, String workspaceName, String integr this.serviceClient().delete(resourceGroupName, workspaceName, integrationRuntimeName, context); } - public Response upgradeWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { - return this - .serviceClient() - .upgradeWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, context); + public Response upgradeWithResponse(String resourceGroupName, String workspaceName, + String integrationRuntimeName, Context context) { + return this.serviceClient().upgradeWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, + context); } public void upgrade(String resourceGroupName, String workspaceName, String integrationRuntimeName) { @@ -83,22 +73,24 @@ public void upgrade(String resourceGroupName, String workspaceName, String integ } public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName) { - PagedIterable inner = - this.serviceClient().listByWorkspace(resourceGroupName, workspaceName); - return Utils.mapPage(inner, inner1 -> new IntegrationRuntimeResourceImpl(inner1, this.manager())); + PagedIterable inner + = this.serviceClient().listByWorkspace(resourceGroupName, workspaceName); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new IntegrationRuntimeResourceImpl(inner1, this.manager())); } - public PagedIterable listByWorkspace( - String resourceGroupName, String workspaceName, Context context) { - PagedIterable inner = - this.serviceClient().listByWorkspace(resourceGroupName, workspaceName, context); - return Utils.mapPage(inner, inner1 -> new IntegrationRuntimeResourceImpl(inner1, this.manager())); + public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, + Context context) { + PagedIterable inner + = this.serviceClient().listByWorkspace(resourceGroupName, workspaceName, context); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new IntegrationRuntimeResourceImpl(inner1, this.manager())); } - public IntegrationRuntimeStatusResponse start( - String resourceGroupName, String workspaceName, String integrationRuntimeName) { - IntegrationRuntimeStatusResponseInner inner = - this.serviceClient().start(resourceGroupName, workspaceName, integrationRuntimeName); + public IntegrationRuntimeStatusResponse start(String resourceGroupName, String workspaceName, + String integrationRuntimeName) { + IntegrationRuntimeStatusResponseInner inner + = this.serviceClient().start(resourceGroupName, workspaceName, integrationRuntimeName); if (inner != null) { return new IntegrationRuntimeStatusResponseImpl(inner, this.manager()); } else { @@ -106,10 +98,10 @@ public IntegrationRuntimeStatusResponse start( } } - public IntegrationRuntimeStatusResponse start( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { - IntegrationRuntimeStatusResponseInner inner = - this.serviceClient().start(resourceGroupName, workspaceName, integrationRuntimeName, context); + public IntegrationRuntimeStatusResponse start(String resourceGroupName, String workspaceName, + String integrationRuntimeName, Context context) { + IntegrationRuntimeStatusResponseInner inner + = this.serviceClient().start(resourceGroupName, workspaceName, integrationRuntimeName, context); if (inner != null) { return new IntegrationRuntimeStatusResponseImpl(inner, this.manager()); } else { @@ -126,20 +118,15 @@ public void stop(String resourceGroupName, String workspaceName, String integrat } public Response - listOutboundNetworkDependenciesEndpointsWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { - Response inner = - this - .serviceClient() - .listOutboundNetworkDependenciesEndpointsWithResponse( - resourceGroupName, workspaceName, integrationRuntimeName, context); + listOutboundNetworkDependenciesEndpointsWithResponse(String resourceGroupName, String workspaceName, + String integrationRuntimeName, Context context) { + Response inner + = this.serviceClient().listOutboundNetworkDependenciesEndpointsWithResponse(resourceGroupName, + workspaceName, integrationRuntimeName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), - new IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseImpl( - inner.getValue(), this.manager())); + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseImpl(inner.getValue(), + this.manager())); } else { return null; } @@ -147,10 +134,8 @@ public void stop(String resourceGroupName, String workspaceName, String integrat public IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse listOutboundNetworkDependenciesEndpoints( String resourceGroupName, String workspaceName, String integrationRuntimeName) { - IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner inner = - this - .serviceClient() - .listOutboundNetworkDependenciesEndpoints(resourceGroupName, workspaceName, integrationRuntimeName); + IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner inner = this.serviceClient() + .listOutboundNetworkDependenciesEndpoints(resourceGroupName, workspaceName, integrationRuntimeName); if (inner != null) { return new IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseImpl(inner, this.manager()); } else { @@ -162,8 +147,8 @@ public void enableInteractiveQuery(String resourceGroupName, String workspaceNam this.serviceClient().enableInteractiveQuery(resourceGroupName, workspaceName, integrationRuntimeName); } - public void enableInteractiveQuery( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { + public void enableInteractiveQuery(String resourceGroupName, String workspaceName, String integrationRuntimeName, + Context context) { this.serviceClient().enableInteractiveQuery(resourceGroupName, workspaceName, integrationRuntimeName, context); } @@ -171,35 +156,26 @@ public void disableInteractiveQuery(String resourceGroupName, String workspaceNa this.serviceClient().disableInteractiveQuery(resourceGroupName, workspaceName, integrationRuntimeName); } - public void disableInteractiveQuery( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) { + public void disableInteractiveQuery(String resourceGroupName, String workspaceName, String integrationRuntimeName, + Context context) { this.serviceClient().disableInteractiveQuery(resourceGroupName, workspaceName, integrationRuntimeName, context); } public IntegrationRuntimeResource getById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String integrationRuntimeName = Utils.getValueFromIdByName(id, "integrationRuntimes"); + String integrationRuntimeName = ResourceManagerUtils.getValueFromIdByName(id, "integrationRuntimes"); if (integrationRuntimeName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'integrationRuntimes'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'integrationRuntimes'.", id))); } String localIfNoneMatch = null; return this @@ -208,85 +184,58 @@ public IntegrationRuntimeResource getById(String id) { } public Response getByIdWithResponse(String id, String ifNoneMatch, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String integrationRuntimeName = Utils.getValueFromIdByName(id, "integrationRuntimes"); + String integrationRuntimeName = ResourceManagerUtils.getValueFromIdByName(id, "integrationRuntimes"); if (integrationRuntimeName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'integrationRuntimes'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'integrationRuntimes'.", id))); } return this.getWithResponse(resourceGroupName, workspaceName, integrationRuntimeName, ifNoneMatch, context); } public void deleteById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String integrationRuntimeName = Utils.getValueFromIdByName(id, "integrationRuntimes"); + String integrationRuntimeName = ResourceManagerUtils.getValueFromIdByName(id, "integrationRuntimes"); if (integrationRuntimeName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'integrationRuntimes'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'integrationRuntimes'.", id))); } this.delete(resourceGroupName, workspaceName, integrationRuntimeName, Context.NONE); } public void deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String integrationRuntimeName = Utils.getValueFromIdByName(id, "integrationRuntimes"); + String integrationRuntimeName = ResourceManagerUtils.getValueFromIdByName(id, "integrationRuntimes"); if (integrationRuntimeName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'integrationRuntimes'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'integrationRuntimes'.", id))); } this.delete(resourceGroupName, workspaceName, integrationRuntimeName, context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IpFirewallRuleInfoImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IpFirewallRuleInfoImpl.java index b20b5d7f3ba6..617c796e3fca 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IpFirewallRuleInfoImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IpFirewallRuleInfoImpl.java @@ -64,20 +64,14 @@ public IpFirewallRuleInfoImpl withExistingWorkspace(String resourceGroupName, St } public IpFirewallRuleInfo create() { - this.innerObject = - serviceManager - .serviceClient() - .getIpFirewallRules() - .createOrUpdate(resourceGroupName, workspaceName, ruleName, this.innerModel(), Context.NONE); + this.innerObject = serviceManager.serviceClient().getIpFirewallRules().createOrUpdate(resourceGroupName, + workspaceName, ruleName, this.innerModel(), Context.NONE); return this; } public IpFirewallRuleInfo create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getIpFirewallRules() - .createOrUpdate(resourceGroupName, workspaceName, ruleName, this.innerModel(), context); + this.innerObject = serviceManager.serviceClient().getIpFirewallRules().createOrUpdate(resourceGroupName, + workspaceName, ruleName, this.innerModel(), context); return this; } @@ -92,49 +86,35 @@ public IpFirewallRuleInfoImpl update() { } public IpFirewallRuleInfo apply() { - this.innerObject = - serviceManager - .serviceClient() - .getIpFirewallRules() - .createOrUpdate(resourceGroupName, workspaceName, ruleName, this.innerModel(), Context.NONE); + this.innerObject = serviceManager.serviceClient().getIpFirewallRules().createOrUpdate(resourceGroupName, + workspaceName, ruleName, this.innerModel(), Context.NONE); return this; } public IpFirewallRuleInfo apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getIpFirewallRules() - .createOrUpdate(resourceGroupName, workspaceName, ruleName, this.innerModel(), context); + this.innerObject = serviceManager.serviceClient().getIpFirewallRules().createOrUpdate(resourceGroupName, + workspaceName, ruleName, this.innerModel(), context); return this; } - IpFirewallRuleInfoImpl( - IpFirewallRuleInfoInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + IpFirewallRuleInfoImpl(IpFirewallRuleInfoInner innerObject, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.workspaceName = Utils.getValueFromIdByName(innerObject.id(), "workspaces"); - this.ruleName = Utils.getValueFromIdByName(innerObject.id(), "firewallRules"); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.workspaceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workspaces"); + this.ruleName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "firewallRules"); } public IpFirewallRuleInfo refresh() { - this.innerObject = - serviceManager - .serviceClient() - .getIpFirewallRules() - .getWithResponse(resourceGroupName, workspaceName, ruleName, Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getIpFirewallRules() + .getWithResponse(resourceGroupName, workspaceName, ruleName, Context.NONE).getValue(); return this; } public IpFirewallRuleInfo refresh(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getIpFirewallRules() - .getWithResponse(resourceGroupName, workspaceName, ruleName, context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getIpFirewallRules() + .getWithResponse(resourceGroupName, workspaceName, ruleName, context).getValue(); return this; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IpFirewallRulesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IpFirewallRulesClientImpl.java index f21439421c70..763674cd79cc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IpFirewallRulesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IpFirewallRulesClientImpl.java @@ -41,22 +41,28 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in IpFirewallRulesClient. */ +/** + * An instance of this class provides access to all the operations defined in IpFirewallRulesClient. + */ public final class IpFirewallRulesClientImpl implements IpFirewallRulesClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final IpFirewallRulesService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of IpFirewallRulesClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ IpFirewallRulesClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy.create(IpFirewallRulesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service + = RestProxy.create(IpFirewallRulesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } @@ -67,100 +73,66 @@ public final class IpFirewallRulesClientImpl implements IpFirewallRulesClient { @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface IpFirewallRulesService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/firewallRules") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/firewallRules") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByWorkspace( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @HeaderParam("Accept") String accept, - Context context); + Mono> listByWorkspace(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/firewallRules/{ruleName}") - @ExpectedResponses({200, 201, 202}) + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/firewallRules/{ruleName}") + @ExpectedResponses({ 200, 201, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono>> createOrUpdate(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("ruleName") String ruleName, @BodyParam("application/json") IpFirewallRuleInfoInner ipFirewallRuleInfo, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/firewallRules/{ruleName}") - @ExpectedResponses({200, 202, 204}) + @Headers({ "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/firewallRules/{ruleName}") + @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("ruleName") String ruleName, - @HeaderParam("Accept") String accept, - Context context); + Mono>> delete(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("ruleName") String ruleName, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/firewallRules/{ruleName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/firewallRules/{ruleName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("ruleName") String ruleName, - @HeaderParam("Accept") String accept, - Context context); + Mono> get(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("ruleName") String ruleName, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/replaceAllIpFirewallRules") - @ExpectedResponses({200, 202}) + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/replaceAllIpFirewallRules") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> replaceAll( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono>> replaceAll(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @BodyParam("application/json") ReplaceAllIpFirewallRulesRequest request, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByWorkspaceNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** * Returns a list of firewall rules. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -169,19 +141,15 @@ Mono> listByWorkspaceNext( * @return list of IP firewall rules along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByWorkspaceSinglePageAsync( - String resourceGroupName, String workspaceName) { + private Mono> listByWorkspaceSinglePageAsync(String resourceGroupName, + String workspaceName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -193,32 +161,16 @@ private Mono> listByWorkspaceSinglePageAs final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .listByWorkspace( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .withContext(context -> service.listByWorkspace(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Returns a list of firewall rules. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -228,19 +180,15 @@ private Mono> listByWorkspaceSinglePageAs * @return list of IP firewall rules along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByWorkspaceSinglePageAsync( - String resourceGroupName, String workspaceName, Context context) { + private Mono> listByWorkspaceSinglePageAsync(String resourceGroupName, + String workspaceName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -253,28 +201,15 @@ private Mono> listByWorkspaceSinglePageAs final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByWorkspace( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + .listByWorkspace(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * Returns a list of firewall rules. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -284,14 +219,13 @@ private Mono> listByWorkspaceSinglePageAs */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByWorkspaceAsync(String resourceGroupName, String workspaceName) { - return new PagedFlux<>( - () -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName), + return new PagedFlux<>(() -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName), nextLink -> listByWorkspaceNextSinglePageAsync(nextLink)); } /** * Returns a list of firewall rules. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -301,16 +235,15 @@ private PagedFlux listByWorkspaceAsync(String resourceG * @return list of IP firewall rules as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByWorkspaceAsync( - String resourceGroupName, String workspaceName, Context context) { - return new PagedFlux<>( - () -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName, context), + private PagedFlux listByWorkspaceAsync(String resourceGroupName, String workspaceName, + Context context) { + return new PagedFlux<>(() -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName, context), nextLink -> listByWorkspaceNextSinglePageAsync(nextLink, context)); } /** * Returns a list of firewall rules. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -325,7 +258,7 @@ public PagedIterable listByWorkspace(String resourceGro /** * Returns a list of firewall rules. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -335,14 +268,14 @@ public PagedIterable listByWorkspace(String resourceGro * @return list of IP firewall rules as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByWorkspace( - String resourceGroupName, String workspaceName, Context context) { + public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, + Context context) { return new PagedIterable<>(listByWorkspaceAsync(resourceGroupName, workspaceName, context)); } /** * Creates or updates a firewall rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param ruleName The IP firewall rule name. @@ -353,19 +286,15 @@ public PagedIterable listByWorkspace( * @return iP firewall rule along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String resourceGroupName, String workspaceName, String ruleName, IpFirewallRuleInfoInner ipFirewallRuleInfo) { + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String workspaceName, String ruleName, IpFirewallRuleInfoInner ipFirewallRuleInfo) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -386,25 +315,15 @@ private Mono>> createOrUpdateWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - ruleName, - ipFirewallRuleInfo, - accept, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, ruleName, ipFirewallRuleInfo, accept, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates a firewall rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param ruleName The IP firewall rule name. @@ -416,23 +335,15 @@ private Mono>> createOrUpdateWithResponseAsync( * @return iP firewall rule along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String resourceGroupName, - String workspaceName, - String ruleName, - IpFirewallRuleInfoInner ipFirewallRuleInfo, - Context context) { + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String workspaceName, String ruleName, IpFirewallRuleInfoInner ipFirewallRuleInfo, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -453,22 +364,13 @@ private Mono>> createOrUpdateWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - ruleName, - ipFirewallRuleInfo, - accept, - context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, ruleName, ipFirewallRuleInfo, accept, context); } /** * Creates or updates a firewall rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param ruleName The IP firewall rule name. @@ -481,21 +383,16 @@ private Mono>> createOrUpdateWithResponseAsync( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, IpFirewallRuleInfoInner> beginCreateOrUpdateAsync( String resourceGroupName, String workspaceName, String ruleName, IpFirewallRuleInfoInner ipFirewallRuleInfo) { - Mono>> mono = - createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, ruleName, ipFirewallRuleInfo); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - IpFirewallRuleInfoInner.class, - IpFirewallRuleInfoInner.class, - this.client.getContext()); + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, ruleName, ipFirewallRuleInfo); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), IpFirewallRuleInfoInner.class, IpFirewallRuleInfoInner.class, + this.client.getContext()); } /** * Creates or updates a firewall rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param ruleName The IP firewall rule name. @@ -508,27 +405,18 @@ private PollerFlux, IpFirewallRuleInfoInner> */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, IpFirewallRuleInfoInner> beginCreateOrUpdateAsync( - String resourceGroupName, - String workspaceName, - String ruleName, - IpFirewallRuleInfoInner ipFirewallRuleInfo, + String resourceGroupName, String workspaceName, String ruleName, IpFirewallRuleInfoInner ipFirewallRuleInfo, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, ruleName, ipFirewallRuleInfo, context); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - IpFirewallRuleInfoInner.class, - IpFirewallRuleInfoInner.class, - context); + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, ruleName, ipFirewallRuleInfo, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), IpFirewallRuleInfoInner.class, IpFirewallRuleInfoInner.class, context); } /** * Creates or updates a firewall rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param ruleName The IP firewall rule name. @@ -541,14 +429,13 @@ private PollerFlux, IpFirewallRuleInfoInner> @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, IpFirewallRuleInfoInner> beginCreateOrUpdate( String resourceGroupName, String workspaceName, String ruleName, IpFirewallRuleInfoInner ipFirewallRuleInfo) { - return this - .beginCreateOrUpdateAsync(resourceGroupName, workspaceName, ruleName, ipFirewallRuleInfo) + return this.beginCreateOrUpdateAsync(resourceGroupName, workspaceName, ruleName, ipFirewallRuleInfo) .getSyncPoller(); } /** * Creates or updates a firewall rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param ruleName The IP firewall rule name. @@ -561,19 +448,15 @@ public SyncPoller, IpFirewallRuleInfoInner> */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, IpFirewallRuleInfoInner> beginCreateOrUpdate( - String resourceGroupName, - String workspaceName, - String ruleName, - IpFirewallRuleInfoInner ipFirewallRuleInfo, + String resourceGroupName, String workspaceName, String ruleName, IpFirewallRuleInfoInner ipFirewallRuleInfo, Context context) { - return this - .beginCreateOrUpdateAsync(resourceGroupName, workspaceName, ruleName, ipFirewallRuleInfo, context) + return this.beginCreateOrUpdateAsync(resourceGroupName, workspaceName, ruleName, ipFirewallRuleInfo, context) .getSyncPoller(); } /** * Creates or updates a firewall rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param ruleName The IP firewall rule name. @@ -584,16 +467,15 @@ public SyncPoller, IpFirewallRuleInfoInner> * @return iP firewall rule on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, String workspaceName, String ruleName, IpFirewallRuleInfoInner ipFirewallRuleInfo) { - return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, ruleName, ipFirewallRuleInfo) - .last() + private Mono createOrUpdateAsync(String resourceGroupName, String workspaceName, + String ruleName, IpFirewallRuleInfoInner ipFirewallRuleInfo) { + return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, ruleName, ipFirewallRuleInfo).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Creates or updates a firewall rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param ruleName The IP firewall rule name. @@ -605,20 +487,15 @@ private Mono createOrUpdateAsync( * @return iP firewall rule on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, - String workspaceName, - String ruleName, - IpFirewallRuleInfoInner ipFirewallRuleInfo, - Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, ruleName, ipFirewallRuleInfo, context) - .last() + private Mono createOrUpdateAsync(String resourceGroupName, String workspaceName, + String ruleName, IpFirewallRuleInfoInner ipFirewallRuleInfo, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, ruleName, ipFirewallRuleInfo, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Creates or updates a firewall rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param ruleName The IP firewall rule name. @@ -629,14 +506,14 @@ private Mono createOrUpdateAsync( * @return iP firewall rule. */ @ServiceMethod(returns = ReturnType.SINGLE) - public IpFirewallRuleInfoInner createOrUpdate( - String resourceGroupName, String workspaceName, String ruleName, IpFirewallRuleInfoInner ipFirewallRuleInfo) { + public IpFirewallRuleInfoInner createOrUpdate(String resourceGroupName, String workspaceName, String ruleName, + IpFirewallRuleInfoInner ipFirewallRuleInfo) { return createOrUpdateAsync(resourceGroupName, workspaceName, ruleName, ipFirewallRuleInfo).block(); } /** * Creates or updates a firewall rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param ruleName The IP firewall rule name. @@ -648,18 +525,14 @@ public IpFirewallRuleInfoInner createOrUpdate( * @return iP firewall rule. */ @ServiceMethod(returns = ReturnType.SINGLE) - public IpFirewallRuleInfoInner createOrUpdate( - String resourceGroupName, - String workspaceName, - String ruleName, - IpFirewallRuleInfoInner ipFirewallRuleInfo, - Context context) { + public IpFirewallRuleInfoInner createOrUpdate(String resourceGroupName, String workspaceName, String ruleName, + IpFirewallRuleInfoInner ipFirewallRuleInfo, Context context) { return createOrUpdateAsync(resourceGroupName, workspaceName, ruleName, ipFirewallRuleInfo, context).block(); } /** * Deletes a firewall rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param ruleName The IP firewall rule name. @@ -669,19 +542,15 @@ public IpFirewallRuleInfoInner createOrUpdate( * @return iP firewall rule along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync( - String resourceGroupName, String workspaceName, String ruleName) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String workspaceName, + String ruleName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -696,24 +565,14 @@ private Mono>> deleteWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .delete( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - ruleName, - accept, - context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, ruleName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes a firewall rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param ruleName The IP firewall rule name. @@ -724,19 +583,15 @@ private Mono>> deleteWithResponseAsync( * @return iP firewall rule along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync( - String resourceGroupName, String workspaceName, String ruleName, Context context) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String workspaceName, + String ruleName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -751,21 +606,13 @@ private Mono>> deleteWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .delete( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - ruleName, - accept, - context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, ruleName, accept, context); } /** * Deletes a firewall rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param ruleName The IP firewall rule name. @@ -775,22 +622,17 @@ private Mono>> deleteWithResponseAsync( * @return the {@link PollerFlux} for polling of iP firewall rule. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, IpFirewallRuleInfoInner> beginDeleteAsync( - String resourceGroupName, String workspaceName, String ruleName) { + private PollerFlux, IpFirewallRuleInfoInner> + beginDeleteAsync(String resourceGroupName, String workspaceName, String ruleName) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, workspaceName, ruleName); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - IpFirewallRuleInfoInner.class, - IpFirewallRuleInfoInner.class, - this.client.getContext()); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), IpFirewallRuleInfoInner.class, IpFirewallRuleInfoInner.class, + this.client.getContext()); } /** * Deletes a firewall rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param ruleName The IP firewall rule name. @@ -801,24 +643,18 @@ private PollerFlux, IpFirewallRuleInfoInner> * @return the {@link PollerFlux} for polling of iP firewall rule. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, IpFirewallRuleInfoInner> beginDeleteAsync( - String resourceGroupName, String workspaceName, String ruleName, Context context) { + private PollerFlux, IpFirewallRuleInfoInner> + beginDeleteAsync(String resourceGroupName, String workspaceName, String ruleName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - deleteWithResponseAsync(resourceGroupName, workspaceName, ruleName, context); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - IpFirewallRuleInfoInner.class, - IpFirewallRuleInfoInner.class, - context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, workspaceName, ruleName, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), IpFirewallRuleInfoInner.class, IpFirewallRuleInfoInner.class, context); } /** * Deletes a firewall rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param ruleName The IP firewall rule name. @@ -828,14 +664,14 @@ private PollerFlux, IpFirewallRuleInfoInner> * @return the {@link SyncPoller} for polling of iP firewall rule. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, IpFirewallRuleInfoInner> beginDelete( - String resourceGroupName, String workspaceName, String ruleName) { + public SyncPoller, IpFirewallRuleInfoInner> + beginDelete(String resourceGroupName, String workspaceName, String ruleName) { return this.beginDeleteAsync(resourceGroupName, workspaceName, ruleName).getSyncPoller(); } /** * Deletes a firewall rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param ruleName The IP firewall rule name. @@ -846,14 +682,14 @@ public SyncPoller, IpFirewallRuleInfoInner> * @return the {@link SyncPoller} for polling of iP firewall rule. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, IpFirewallRuleInfoInner> beginDelete( - String resourceGroupName, String workspaceName, String ruleName, Context context) { + public SyncPoller, IpFirewallRuleInfoInner> + beginDelete(String resourceGroupName, String workspaceName, String ruleName, Context context) { return this.beginDeleteAsync(resourceGroupName, workspaceName, ruleName, context).getSyncPoller(); } /** * Deletes a firewall rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param ruleName The IP firewall rule name. @@ -864,14 +700,13 @@ public SyncPoller, IpFirewallRuleInfoInner> */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String workspaceName, String ruleName) { - return beginDeleteAsync(resourceGroupName, workspaceName, ruleName) - .last() + return beginDeleteAsync(resourceGroupName, workspaceName, ruleName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Deletes a firewall rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param ruleName The IP firewall rule name. @@ -882,16 +717,15 @@ private Mono deleteAsync(String resourceGroupName, Stri * @return iP firewall rule on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync( - String resourceGroupName, String workspaceName, String ruleName, Context context) { - return beginDeleteAsync(resourceGroupName, workspaceName, ruleName, context) - .last() + private Mono deleteAsync(String resourceGroupName, String workspaceName, String ruleName, + Context context) { + return beginDeleteAsync(resourceGroupName, workspaceName, ruleName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Deletes a firewall rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param ruleName The IP firewall rule name. @@ -907,7 +741,7 @@ public IpFirewallRuleInfoInner delete(String resourceGroupName, String workspace /** * Deletes a firewall rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param ruleName The IP firewall rule name. @@ -918,14 +752,14 @@ public IpFirewallRuleInfoInner delete(String resourceGroupName, String workspace * @return iP firewall rule. */ @ServiceMethod(returns = ReturnType.SINGLE) - public IpFirewallRuleInfoInner delete( - String resourceGroupName, String workspaceName, String ruleName, Context context) { + public IpFirewallRuleInfoInner delete(String resourceGroupName, String workspaceName, String ruleName, + Context context) { return deleteAsync(resourceGroupName, workspaceName, ruleName, context).block(); } /** * Get a firewall rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param ruleName The IP firewall rule name. @@ -935,19 +769,15 @@ public IpFirewallRuleInfoInner delete( * @return a firewall rule along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, String ruleName) { + private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, + String ruleName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -962,24 +792,14 @@ private Mono> getWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - ruleName, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, ruleName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get a firewall rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param ruleName The IP firewall rule name. @@ -990,19 +810,15 @@ private Mono> getWithResponseAsync( * @return a firewall rule along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, String ruleName, Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, + String ruleName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1017,21 +833,13 @@ private Mono> getWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - ruleName, - accept, - context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, ruleName, accept, context); } /** * Get a firewall rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param ruleName The IP firewall rule name. @@ -1048,7 +856,7 @@ private Mono getAsync(String resourceGroupName, String /** * Get a firewall rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param ruleName The IP firewall rule name. @@ -1059,14 +867,14 @@ private Mono getAsync(String resourceGroupName, String * @return a firewall rule along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String workspaceName, String ruleName, Context context) { + public Response getWithResponse(String resourceGroupName, String workspaceName, + String ruleName, Context context) { return getWithResponseAsync(resourceGroupName, workspaceName, ruleName, context).block(); } /** * Get a firewall rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param ruleName The IP firewall rule name. @@ -1082,7 +890,7 @@ public IpFirewallRuleInfoInner get(String resourceGroupName, String workspaceNam /** * Replaces firewall rules. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param request Replace all IP firewall rules request. @@ -1090,22 +898,18 @@ public IpFirewallRuleInfoInner get(String resourceGroupName, String workspaceNam * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an existing operation for replacing the firewall rules along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> replaceAllWithResponseAsync( - String resourceGroupName, String workspaceName, ReplaceAllIpFirewallRulesRequest request) { + private Mono>> replaceAllWithResponseAsync(String resourceGroupName, String workspaceName, + ReplaceAllIpFirewallRulesRequest request) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1122,24 +926,14 @@ private Mono>> replaceAllWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .replaceAll( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - request, - accept, - context)) + .withContext(context -> service.replaceAll(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, request, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Replaces firewall rules. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param request Replace all IP firewall rules request. @@ -1148,22 +942,18 @@ private Mono>> replaceAllWithResponseAsync( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an existing operation for replacing the firewall rules along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> replaceAllWithResponseAsync( - String resourceGroupName, String workspaceName, ReplaceAllIpFirewallRulesRequest request, Context context) { + private Mono>> replaceAllWithResponseAsync(String resourceGroupName, String workspaceName, + ReplaceAllIpFirewallRulesRequest request, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1180,21 +970,13 @@ private Mono>> replaceAllWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .replaceAll( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - request, - accept, - context); + return service.replaceAll(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, request, accept, context); } /** * Replaces firewall rules. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param request Replace all IP firewall rules request. @@ -1204,23 +986,19 @@ private Mono>> replaceAllWithResponseAsync( * @return the {@link PollerFlux} for polling of an existing operation for replacing the firewall rules. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux< - PollResult, ReplaceAllFirewallRulesOperationResponseInner> + private + PollerFlux, ReplaceAllFirewallRulesOperationResponseInner> beginReplaceAllAsync(String resourceGroupName, String workspaceName, ReplaceAllIpFirewallRulesRequest request) { Mono>> mono = replaceAllWithResponseAsync(resourceGroupName, workspaceName, request); - return this - .client + return this.client .getLroResult( - mono, - this.client.getHttpPipeline(), - ReplaceAllFirewallRulesOperationResponseInner.class, - ReplaceAllFirewallRulesOperationResponseInner.class, - this.client.getContext()); + mono, this.client.getHttpPipeline(), ReplaceAllFirewallRulesOperationResponseInner.class, + ReplaceAllFirewallRulesOperationResponseInner.class, this.client.getContext()); } /** * Replaces firewall rules. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param request Replace all IP firewall rules request. @@ -1231,26 +1009,22 @@ private Mono>> replaceAllWithResponseAsync( * @return the {@link PollerFlux} for polling of an existing operation for replacing the firewall rules. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux< - PollResult, ReplaceAllFirewallRulesOperationResponseInner> - beginReplaceAllAsync( - String resourceGroupName, String workspaceName, ReplaceAllIpFirewallRulesRequest request, Context context) { + private + PollerFlux, ReplaceAllFirewallRulesOperationResponseInner> + beginReplaceAllAsync(String resourceGroupName, String workspaceName, ReplaceAllIpFirewallRulesRequest request, + Context context) { context = this.client.mergeContext(context); - Mono>> mono = - replaceAllWithResponseAsync(resourceGroupName, workspaceName, request, context); - return this - .client + Mono>> mono + = replaceAllWithResponseAsync(resourceGroupName, workspaceName, request, context); + return this.client .getLroResult( - mono, - this.client.getHttpPipeline(), - ReplaceAllFirewallRulesOperationResponseInner.class, - ReplaceAllFirewallRulesOperationResponseInner.class, - context); + mono, this.client.getHttpPipeline(), ReplaceAllFirewallRulesOperationResponseInner.class, + ReplaceAllFirewallRulesOperationResponseInner.class, context); } /** * Replaces firewall rules. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param request Replace all IP firewall rules request. @@ -1260,15 +1034,15 @@ private Mono>> replaceAllWithResponseAsync( * @return the {@link SyncPoller} for polling of an existing operation for replacing the firewall rules. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller< - PollResult, ReplaceAllFirewallRulesOperationResponseInner> + public + SyncPoller, ReplaceAllFirewallRulesOperationResponseInner> beginReplaceAll(String resourceGroupName, String workspaceName, ReplaceAllIpFirewallRulesRequest request) { return this.beginReplaceAllAsync(resourceGroupName, workspaceName, request).getSyncPoller(); } /** * Replaces firewall rules. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param request Replace all IP firewall rules request. @@ -1279,16 +1053,16 @@ private Mono>> replaceAllWithResponseAsync( * @return the {@link SyncPoller} for polling of an existing operation for replacing the firewall rules. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller< - PollResult, ReplaceAllFirewallRulesOperationResponseInner> - beginReplaceAll( - String resourceGroupName, String workspaceName, ReplaceAllIpFirewallRulesRequest request, Context context) { + public + SyncPoller, ReplaceAllFirewallRulesOperationResponseInner> + beginReplaceAll(String resourceGroupName, String workspaceName, ReplaceAllIpFirewallRulesRequest request, + Context context) { return this.beginReplaceAllAsync(resourceGroupName, workspaceName, request, context).getSyncPoller(); } /** * Replaces firewall rules. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param request Replace all IP firewall rules request. @@ -1298,16 +1072,15 @@ private Mono>> replaceAllWithResponseAsync( * @return an existing operation for replacing the firewall rules on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono replaceAllAsync( - String resourceGroupName, String workspaceName, ReplaceAllIpFirewallRulesRequest request) { - return beginReplaceAllAsync(resourceGroupName, workspaceName, request) - .last() + private Mono replaceAllAsync(String resourceGroupName, + String workspaceName, ReplaceAllIpFirewallRulesRequest request) { + return beginReplaceAllAsync(resourceGroupName, workspaceName, request).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Replaces firewall rules. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param request Replace all IP firewall rules request. @@ -1318,16 +1091,15 @@ private Mono replaceAllAsync( * @return an existing operation for replacing the firewall rules on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono replaceAllAsync( - String resourceGroupName, String workspaceName, ReplaceAllIpFirewallRulesRequest request, Context context) { - return beginReplaceAllAsync(resourceGroupName, workspaceName, request, context) - .last() + private Mono replaceAllAsync(String resourceGroupName, + String workspaceName, ReplaceAllIpFirewallRulesRequest request, Context context) { + return beginReplaceAllAsync(resourceGroupName, workspaceName, request, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Replaces firewall rules. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param request Replace all IP firewall rules request. @@ -1337,14 +1109,14 @@ private Mono replaceAllAsync( * @return an existing operation for replacing the firewall rules. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ReplaceAllFirewallRulesOperationResponseInner replaceAll( - String resourceGroupName, String workspaceName, ReplaceAllIpFirewallRulesRequest request) { + public ReplaceAllFirewallRulesOperationResponseInner replaceAll(String resourceGroupName, String workspaceName, + ReplaceAllIpFirewallRulesRequest request) { return replaceAllAsync(resourceGroupName, workspaceName, request).block(); } /** * Replaces firewall rules. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param request Replace all IP firewall rules request. @@ -1355,16 +1127,17 @@ public ReplaceAllFirewallRulesOperationResponseInner replaceAll( * @return an existing operation for replacing the firewall rules. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ReplaceAllFirewallRulesOperationResponseInner replaceAll( - String resourceGroupName, String workspaceName, ReplaceAllIpFirewallRulesRequest request, Context context) { + public ReplaceAllFirewallRulesOperationResponseInner replaceAll(String resourceGroupName, String workspaceName, + ReplaceAllIpFirewallRulesRequest request, Context context) { return replaceAllAsync(resourceGroupName, workspaceName, request, context).block(); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1376,31 +1149,23 @@ private Mono> listByWorkspaceNextSinglePa return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByWorkspaceNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1408,29 +1173,19 @@ private Mono> listByWorkspaceNextSinglePa * @return list of IP firewall rules along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByWorkspaceNextSinglePageAsync( - String nextLink, Context context) { + private Mono> listByWorkspaceNextSinglePageAsync(String nextLink, + Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listByWorkspaceNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listByWorkspaceNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IpFirewallRulesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IpFirewallRulesImpl.java index 9062af3de6a6..6018a418ac5c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IpFirewallRulesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/IpFirewallRulesImpl.java @@ -24,23 +24,23 @@ public final class IpFirewallRulesImpl implements IpFirewallRules { private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public IpFirewallRulesImpl( - IpFirewallRulesClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + public IpFirewallRulesImpl(IpFirewallRulesClient innerClient, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName) { - PagedIterable inner = - this.serviceClient().listByWorkspace(resourceGroupName, workspaceName); - return Utils.mapPage(inner, inner1 -> new IpFirewallRuleInfoImpl(inner1, this.manager())); + PagedIterable inner + = this.serviceClient().listByWorkspace(resourceGroupName, workspaceName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new IpFirewallRuleInfoImpl(inner1, this.manager())); } - public PagedIterable listByWorkspace( - String resourceGroupName, String workspaceName, Context context) { - PagedIterable inner = - this.serviceClient().listByWorkspace(resourceGroupName, workspaceName, context); - return Utils.mapPage(inner, inner1 -> new IpFirewallRuleInfoImpl(inner1, this.manager())); + public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, + Context context) { + PagedIterable inner + = this.serviceClient().listByWorkspace(resourceGroupName, workspaceName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new IpFirewallRuleInfoImpl(inner1, this.manager())); } public IpFirewallRuleInfo delete(String resourceGroupName, String workspaceName, String ruleName) { @@ -53,8 +53,8 @@ public IpFirewallRuleInfo delete(String resourceGroupName, String workspaceName, } public IpFirewallRuleInfo delete(String resourceGroupName, String workspaceName, String ruleName, Context context) { - IpFirewallRuleInfoInner inner = - this.serviceClient().delete(resourceGroupName, workspaceName, ruleName, context); + IpFirewallRuleInfoInner inner + = this.serviceClient().delete(resourceGroupName, workspaceName, ruleName, context); if (inner != null) { return new IpFirewallRuleInfoImpl(inner, this.manager()); } else { @@ -62,15 +62,12 @@ public IpFirewallRuleInfo delete(String resourceGroupName, String workspaceName, } } - public Response getWithResponse( - String resourceGroupName, String workspaceName, String ruleName, Context context) { - Response inner = - this.serviceClient().getWithResponse(resourceGroupName, workspaceName, ruleName, context); + public Response getWithResponse(String resourceGroupName, String workspaceName, String ruleName, + Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, workspaceName, ruleName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new IpFirewallRuleInfoImpl(inner.getValue(), this.manager())); } else { return null; @@ -86,10 +83,10 @@ public IpFirewallRuleInfo get(String resourceGroupName, String workspaceName, St } } - public ReplaceAllFirewallRulesOperationResponse replaceAll( - String resourceGroupName, String workspaceName, ReplaceAllIpFirewallRulesRequest request) { - ReplaceAllFirewallRulesOperationResponseInner inner = - this.serviceClient().replaceAll(resourceGroupName, workspaceName, request); + public ReplaceAllFirewallRulesOperationResponse replaceAll(String resourceGroupName, String workspaceName, + ReplaceAllIpFirewallRulesRequest request) { + ReplaceAllFirewallRulesOperationResponseInner inner + = this.serviceClient().replaceAll(resourceGroupName, workspaceName, request); if (inner != null) { return new ReplaceAllFirewallRulesOperationResponseImpl(inner, this.manager()); } else { @@ -97,10 +94,10 @@ public ReplaceAllFirewallRulesOperationResponse replaceAll( } } - public ReplaceAllFirewallRulesOperationResponse replaceAll( - String resourceGroupName, String workspaceName, ReplaceAllIpFirewallRulesRequest request, Context context) { - ReplaceAllFirewallRulesOperationResponseInner inner = - this.serviceClient().replaceAll(resourceGroupName, workspaceName, request, context); + public ReplaceAllFirewallRulesOperationResponse replaceAll(String resourceGroupName, String workspaceName, + ReplaceAllIpFirewallRulesRequest request, Context context) { + ReplaceAllFirewallRulesOperationResponseInner inner + = this.serviceClient().replaceAll(resourceGroupName, workspaceName, request, context); if (inner != null) { return new ReplaceAllFirewallRulesOperationResponseImpl(inner, this.manager()); } else { @@ -109,105 +106,77 @@ public ReplaceAllFirewallRulesOperationResponse replaceAll( } public IpFirewallRuleInfo getById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String ruleName = Utils.getValueFromIdByName(id, "firewallRules"); + String ruleName = ResourceManagerUtils.getValueFromIdByName(id, "firewallRules"); if (ruleName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'firewallRules'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'firewallRules'.", id))); } return this.getWithResponse(resourceGroupName, workspaceName, ruleName, Context.NONE).getValue(); } public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String ruleName = Utils.getValueFromIdByName(id, "firewallRules"); + String ruleName = ResourceManagerUtils.getValueFromIdByName(id, "firewallRules"); if (ruleName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'firewallRules'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'firewallRules'.", id))); } return this.getWithResponse(resourceGroupName, workspaceName, ruleName, context); } public IpFirewallRuleInfo deleteById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String ruleName = Utils.getValueFromIdByName(id, "firewallRules"); + String ruleName = ResourceManagerUtils.getValueFromIdByName(id, "firewallRules"); if (ruleName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'firewallRules'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'firewallRules'.", id))); } return this.delete(resourceGroupName, workspaceName, ruleName, Context.NONE); } public IpFirewallRuleInfo deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String ruleName = Utils.getValueFromIdByName(id, "firewallRules"); + String ruleName = ResourceManagerUtils.getValueFromIdByName(id, "firewallRules"); if (ruleName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'firewallRules'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'firewallRules'.", id))); } return this.delete(resourceGroupName, workspaceName, ruleName, context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KeyImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KeyImpl.java index cfc60beb26bd..d19f76df24d7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KeyImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KeyImpl.java @@ -58,22 +58,16 @@ public KeyImpl withExistingWorkspace(String resourceGroupName, String workspaceN } public Key create() { - this.innerObject = - serviceManager - .serviceClient() - .getKeys() - .createOrUpdateWithResponse(resourceGroupName, workspaceName, keyName, this.innerModel(), Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getKeys() + .createOrUpdateWithResponse(resourceGroupName, workspaceName, keyName, this.innerModel(), Context.NONE) + .getValue(); return this; } public Key create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getKeys() - .createOrUpdateWithResponse(resourceGroupName, workspaceName, keyName, this.innerModel(), context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getKeys() + .createOrUpdateWithResponse(resourceGroupName, workspaceName, keyName, this.innerModel(), context) + .getValue(); return this; } @@ -88,50 +82,36 @@ public KeyImpl update() { } public Key apply() { - this.innerObject = - serviceManager - .serviceClient() - .getKeys() - .createOrUpdateWithResponse(resourceGroupName, workspaceName, keyName, this.innerModel(), Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getKeys() + .createOrUpdateWithResponse(resourceGroupName, workspaceName, keyName, this.innerModel(), Context.NONE) + .getValue(); return this; } public Key apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getKeys() - .createOrUpdateWithResponse(resourceGroupName, workspaceName, keyName, this.innerModel(), context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getKeys() + .createOrUpdateWithResponse(resourceGroupName, workspaceName, keyName, this.innerModel(), context) + .getValue(); return this; } KeyImpl(KeyInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.workspaceName = Utils.getValueFromIdByName(innerObject.id(), "workspaces"); - this.keyName = Utils.getValueFromIdByName(innerObject.id(), "keys"); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.workspaceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workspaces"); + this.keyName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "keys"); } public Key refresh() { - this.innerObject = - serviceManager - .serviceClient() - .getKeys() - .getWithResponse(resourceGroupName, workspaceName, keyName, Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getKeys() + .getWithResponse(resourceGroupName, workspaceName, keyName, Context.NONE).getValue(); return this; } public Key refresh(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getKeys() - .getWithResponse(resourceGroupName, workspaceName, keyName, context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getKeys() + .getWithResponse(resourceGroupName, workspaceName, keyName, context).getValue(); return this; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KeysClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KeysClientImpl.java index ca6d31f2e2f3..c7b414733a76 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KeysClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KeysClientImpl.java @@ -33,17 +33,23 @@ import com.azure.resourcemanager.synapse.models.KeyInfoListResult; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in KeysClient. */ +/** + * An instance of this class provides access to all the operations defined in KeysClient. + */ public final class KeysClientImpl implements KeysClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final KeysService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of KeysClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ KeysClientImpl(SynapseManagementClientImpl client) { @@ -58,84 +64,55 @@ public final class KeysClientImpl implements KeysClient { @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface KeysService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/keys") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/keys") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByWorkspace( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/keys/{keyName}") - @ExpectedResponses({200}) + Mono> listByWorkspace(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/keys/{keyName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, + Mono> get(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("keyName") String keyName, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/keys/{keyName}") - @ExpectedResponses({200}) + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("keyName") String keyName, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/keys/{keyName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("keyName") String keyName, - @BodyParam("application/json") KeyInner keyProperties, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/keys/{keyName}") - @ExpectedResponses({200, 204}) + Mono> createOrUpdate(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("keyName") String keyName, @BodyParam("application/json") KeyInner keyProperties, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/keys/{keyName}") + @ExpectedResponses({ 200, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> delete( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("keyName") String keyName, - @HeaderParam("Accept") String accept, - Context context); + Mono> delete(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("keyName") String keyName, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByWorkspaceNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** * Returns a list of keys in a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -144,19 +121,15 @@ Mono> listByWorkspaceNext( * @return list of keys along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByWorkspaceSinglePageAsync( - String resourceGroupName, String workspaceName) { + private Mono> listByWorkspaceSinglePageAsync(String resourceGroupName, + String workspaceName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -168,32 +141,16 @@ private Mono> listByWorkspaceSinglePageAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .listByWorkspace( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .withContext(context -> service.listByWorkspace(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Returns a list of keys in a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -203,19 +160,15 @@ private Mono> listByWorkspaceSinglePageAsync( * @return list of keys along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByWorkspaceSinglePageAsync( - String resourceGroupName, String workspaceName, Context context) { + private Mono> listByWorkspaceSinglePageAsync(String resourceGroupName, String workspaceName, + Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -228,28 +181,15 @@ private Mono> listByWorkspaceSinglePageAsync( final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByWorkspace( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + .listByWorkspace(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * Returns a list of keys in a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -259,14 +199,13 @@ private Mono> listByWorkspaceSinglePageAsync( */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByWorkspaceAsync(String resourceGroupName, String workspaceName) { - return new PagedFlux<>( - () -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName), + return new PagedFlux<>(() -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName), nextLink -> listByWorkspaceNextSinglePageAsync(nextLink)); } /** * Returns a list of keys in a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -277,14 +216,13 @@ private PagedFlux listByWorkspaceAsync(String resourceGroupName, Strin */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByWorkspaceAsync(String resourceGroupName, String workspaceName, Context context) { - return new PagedFlux<>( - () -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName, context), + return new PagedFlux<>(() -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName, context), nextLink -> listByWorkspaceNextSinglePageAsync(nextLink, context)); } /** * Returns a list of keys in a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -299,7 +237,7 @@ public PagedIterable listByWorkspace(String resourceGroupName, String /** * Returns a list of keys in a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -315,7 +253,7 @@ public PagedIterable listByWorkspace(String resourceGroupName, String /** * Gets a workspace key. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param keyName The name of the workspace key. @@ -325,19 +263,15 @@ public PagedIterable listByWorkspace(String resourceGroupName, String * @return a workspace key along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, String keyName) { + private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, + String keyName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -352,24 +286,14 @@ private Mono> getWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - keyName, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, keyName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets a workspace key. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param keyName The name of the workspace key. @@ -380,19 +304,15 @@ private Mono> getWithResponseAsync( * @return a workspace key along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, String keyName, Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, + String keyName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -407,21 +327,13 @@ private Mono> getWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - keyName, - accept, - context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, keyName, accept, context); } /** * Gets a workspace key. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param keyName The name of the workspace key. @@ -438,7 +350,7 @@ private Mono getAsync(String resourceGroupName, String workspaceName, /** * Gets a workspace key. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param keyName The name of the workspace key. @@ -449,14 +361,14 @@ private Mono getAsync(String resourceGroupName, String workspaceName, * @return a workspace key along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String workspaceName, String keyName, Context context) { + public Response getWithResponse(String resourceGroupName, String workspaceName, String keyName, + Context context) { return getWithResponseAsync(resourceGroupName, workspaceName, keyName, context).block(); } /** * Gets a workspace key. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param keyName The name of the workspace key. @@ -472,7 +384,7 @@ public KeyInner get(String resourceGroupName, String workspaceName, String keyNa /** * Creates or updates a workspace key. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param keyName The name of the workspace key. @@ -483,19 +395,15 @@ public KeyInner get(String resourceGroupName, String workspaceName, String keyNa * @return a workspace key along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, String workspaceName, String keyName, KeyInner keyProperties) { + private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, String workspaceName, + String keyName, KeyInner keyProperties) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -514,26 +422,14 @@ private Mono> createOrUpdateWithResponseAsync( } final String apiVersion = "2021-06-01"; final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - keyName, - keyProperties, - accept, - context)) + return FluxUtil.withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, keyName, keyProperties, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates a workspace key. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param keyName The name of the workspace key. @@ -545,19 +441,15 @@ private Mono> createOrUpdateWithResponseAsync( * @return a workspace key along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, String workspaceName, String keyName, KeyInner keyProperties, Context context) { + private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, String workspaceName, + String keyName, KeyInner keyProperties, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -577,22 +469,13 @@ private Mono> createOrUpdateWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - keyName, - keyProperties, - accept, - context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, keyName, keyProperties, accept, context); } /** * Creates or updates a workspace key. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param keyName The name of the workspace key. @@ -603,15 +486,15 @@ private Mono> createOrUpdateWithResponseAsync( * @return a workspace key on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, String workspaceName, String keyName, KeyInner keyProperties) { + private Mono createOrUpdateAsync(String resourceGroupName, String workspaceName, String keyName, + KeyInner keyProperties) { return createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, keyName, keyProperties) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Creates or updates a workspace key. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param keyName The name of the workspace key. @@ -623,15 +506,15 @@ private Mono createOrUpdateAsync( * @return a workspace key along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String resourceGroupName, String workspaceName, String keyName, KeyInner keyProperties, Context context) { + public Response createOrUpdateWithResponse(String resourceGroupName, String workspaceName, String keyName, + KeyInner keyProperties, Context context) { return createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, keyName, keyProperties, context) .block(); } /** * Creates or updates a workspace key. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param keyName The name of the workspace key. @@ -642,15 +525,15 @@ public Response createOrUpdateWithResponse( * @return a workspace key. */ @ServiceMethod(returns = ReturnType.SINGLE) - public KeyInner createOrUpdate( - String resourceGroupName, String workspaceName, String keyName, KeyInner keyProperties) { + public KeyInner createOrUpdate(String resourceGroupName, String workspaceName, String keyName, + KeyInner keyProperties) { return createOrUpdateWithResponse(resourceGroupName, workspaceName, keyName, keyProperties, Context.NONE) .getValue(); } /** * Deletes a workspace key. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param keyName The name of the workspace key. @@ -660,19 +543,15 @@ public KeyInner createOrUpdate( * @return a workspace key along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync( - String resourceGroupName, String workspaceName, String keyName) { + private Mono> deleteWithResponseAsync(String resourceGroupName, String workspaceName, + String keyName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -687,24 +566,14 @@ private Mono> deleteWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .delete( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - keyName, - accept, - context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, keyName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes a workspace key. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param keyName The name of the workspace key. @@ -715,19 +584,15 @@ private Mono> deleteWithResponseAsync( * @return a workspace key along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync( - String resourceGroupName, String workspaceName, String keyName, Context context) { + private Mono> deleteWithResponseAsync(String resourceGroupName, String workspaceName, + String keyName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -742,21 +607,13 @@ private Mono> deleteWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .delete( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - keyName, - accept, - context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, keyName, accept, context); } /** * Deletes a workspace key. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param keyName The name of the workspace key. @@ -773,7 +630,7 @@ private Mono deleteAsync(String resourceGroupName, String workspaceNam /** * Deletes a workspace key. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param keyName The name of the workspace key. @@ -784,14 +641,14 @@ private Mono deleteAsync(String resourceGroupName, String workspaceNam * @return a workspace key along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse( - String resourceGroupName, String workspaceName, String keyName, Context context) { + public Response deleteWithResponse(String resourceGroupName, String workspaceName, String keyName, + Context context) { return deleteWithResponseAsync(resourceGroupName, workspaceName, keyName, context).block(); } /** * Deletes a workspace key. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param keyName The name of the workspace key. @@ -807,9 +664,10 @@ public KeyInner delete(String resourceGroupName, String workspaceName, String ke /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -821,31 +679,23 @@ private Mono> listByWorkspaceNextSinglePageAsync(String return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByWorkspaceNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -858,23 +708,13 @@ private Mono> listByWorkspaceNextSinglePageAsync(String return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listByWorkspaceNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listByWorkspaceNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KeysImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KeysImpl.java index 8608be8b6a5b..338ca32d1444 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KeysImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KeysImpl.java @@ -28,23 +28,20 @@ public KeysImpl(KeysClient innerClient, com.azure.resourcemanager.synapse.Synaps public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName) { PagedIterable inner = this.serviceClient().listByWorkspace(resourceGroupName, workspaceName); - return Utils.mapPage(inner, inner1 -> new KeyImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new KeyImpl(inner1, this.manager())); } public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, Context context) { PagedIterable inner = this.serviceClient().listByWorkspace(resourceGroupName, workspaceName, context); - return Utils.mapPage(inner, inner1 -> new KeyImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new KeyImpl(inner1, this.manager())); } - public Response getWithResponse( - String resourceGroupName, String workspaceName, String keyName, Context context) { - Response inner = - this.serviceClient().getWithResponse(resourceGroupName, workspaceName, keyName, context); + public Response getWithResponse(String resourceGroupName, String workspaceName, String keyName, + Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, workspaceName, keyName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new KeyImpl(inner.getValue(), this.manager())); } else { return null; @@ -60,15 +57,12 @@ public Key get(String resourceGroupName, String workspaceName, String keyName) { } } - public Response deleteWithResponse( - String resourceGroupName, String workspaceName, String keyName, Context context) { - Response inner = - this.serviceClient().deleteWithResponse(resourceGroupName, workspaceName, keyName, context); + public Response deleteWithResponse(String resourceGroupName, String workspaceName, String keyName, + Context context) { + Response inner + = this.serviceClient().deleteWithResponse(resourceGroupName, workspaceName, keyName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new KeyImpl(inner.getValue(), this.manager())); } else { return null; @@ -85,105 +79,77 @@ public Key delete(String resourceGroupName, String workspaceName, String keyName } public Key getById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String keyName = Utils.getValueFromIdByName(id, "keys"); + String keyName = ResourceManagerUtils.getValueFromIdByName(id, "keys"); if (keyName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'keys'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'keys'.", id))); } return this.getWithResponse(resourceGroupName, workspaceName, keyName, Context.NONE).getValue(); } public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String keyName = Utils.getValueFromIdByName(id, "keys"); + String keyName = ResourceManagerUtils.getValueFromIdByName(id, "keys"); if (keyName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'keys'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'keys'.", id))); } return this.getWithResponse(resourceGroupName, workspaceName, keyName, context); } public Key deleteById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String keyName = Utils.getValueFromIdByName(id, "keys"); + String keyName = ResourceManagerUtils.getValueFromIdByName(id, "keys"); if (keyName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'keys'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'keys'.", id))); } return this.deleteWithResponse(resourceGroupName, workspaceName, keyName, Context.NONE).getValue(); } public Response deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String keyName = Utils.getValueFromIdByName(id, "keys"); + String keyName = ResourceManagerUtils.getValueFromIdByName(id, "keys"); if (keyName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'keys'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'keys'.", id))); } return this.deleteWithResponse(resourceGroupName, workspaceName, keyName, context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoOperationsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoOperationsClientImpl.java index 8743da93d1cf..00bf0ff119c8 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoOperationsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoOperationsClientImpl.java @@ -30,22 +30,28 @@ import com.azure.resourcemanager.synapse.models.OperationListResult; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in KustoOperationsClient. */ +/** + * An instance of this class provides access to all the operations defined in KustoOperationsClient. + */ public final class KustoOperationsClientImpl implements KustoOperationsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final KustoOperationsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of KustoOperationsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ KustoOperationsClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy.create(KustoOperationsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service + = RestProxy.create(KustoOperationsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } @@ -56,96 +62,70 @@ public final class KustoOperationsClientImpl implements KustoOperationsClient { @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface KustoOperationsService { - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("/providers/Microsoft.Synapse/kustooperations") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); + Mono> list(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Lists available operations for the Kusto sub-resources inside Microsoft.Synapse provider. - * + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return result of the request to list REST API operations along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync() { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String apiVersion = "2021-06-01-preview"; 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(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + return FluxUtil.withContext(context -> service.list(this.client.getEndpoint(), apiVersion, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Lists available operations for the Kusto sub-resources inside Microsoft.Synapse provider. - * + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return result of the request to list REST API operations along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .list(this.client.getEndpoint(), apiVersion, accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.list(this.client.getEndpoint(), apiVersion, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * Lists available operations for the Kusto sub-resources inside Microsoft.Synapse provider. - * + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return result of the request to list REST API operations as paginated response with {@link PagedFlux}. @@ -157,7 +137,7 @@ private PagedFlux listAsync() { /** * Lists available operations for the Kusto sub-resources inside Microsoft.Synapse provider. - * + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -166,13 +146,13 @@ private PagedFlux listAsync() { */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(Context context) { - return new PagedFlux<>( - () -> listSinglePageAsync(context), nextLink -> listNextSinglePageAsync(nextLink, context)); + return new PagedFlux<>(() -> listSinglePageAsync(context), + nextLink -> listNextSinglePageAsync(nextLink, context)); } /** * Lists available operations for the Kusto sub-resources inside Microsoft.Synapse provider. - * + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return result of the request to list REST API operations as paginated response with {@link PagedIterable}. @@ -184,7 +164,7 @@ public PagedIterable list() { /** * Lists available operations for the Kusto sub-resources inside Microsoft.Synapse provider. - * + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -198,14 +178,15 @@ 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. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return result of the request to list REST API operations along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -213,37 +194,28 @@ private Mono> listNextSinglePageAsync(String nextL return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return result of the request to list REST API operations along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { @@ -251,23 +223,13 @@ private Mono> listNextSinglePageAsync(String nextL return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoOperationsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoOperationsImpl.java index 266c3f5ec1b0..fcb377f2d7f0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoOperationsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoOperationsImpl.java @@ -19,20 +19,20 @@ public final class KustoOperationsImpl implements KustoOperations { private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public KustoOperationsImpl( - KustoOperationsClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + public KustoOperationsImpl(KustoOperationsClient innerClient, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } public PagedIterable list() { PagedIterable inner = this.serviceClient().list(); - return Utils.mapPage(inner, inner1 -> new OperationImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new OperationImpl(inner1, this.manager())); } public PagedIterable list(Context context) { PagedIterable inner = this.serviceClient().list(context); - return Utils.mapPage(inner, inner1 -> new OperationImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new OperationImpl(inner1, this.manager())); } private KustoOperationsClient serviceClient() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolAttachedDatabaseConfigurationsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolAttachedDatabaseConfigurationsClientImpl.java index d6e749ce554e..01d097df6344 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolAttachedDatabaseConfigurationsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolAttachedDatabaseConfigurationsClientImpl.java @@ -44,24 +44,24 @@ */ public final class KustoPoolAttachedDatabaseConfigurationsClientImpl implements KustoPoolAttachedDatabaseConfigurationsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final KustoPoolAttachedDatabaseConfigurationsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of KustoPoolAttachedDatabaseConfigurationsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ KustoPoolAttachedDatabaseConfigurationsClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy - .create( - KustoPoolAttachedDatabaseConfigurationsService.class, - client.getHttpPipeline(), - client.getSerializerAdapter()); + this.service = RestProxy.create(KustoPoolAttachedDatabaseConfigurationsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } @@ -72,81 +72,54 @@ public final class KustoPoolAttachedDatabaseConfigurationsClientImpl @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface KustoPoolAttachedDatabaseConfigurationsService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/kustoPools/{kustoPoolName}/attachedDatabaseConfigurations") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/attachedDatabaseConfigurations") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByKustoPool( - @HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, - @PathParam("kustoPoolName") String kustoPoolName, + Mono> listByKustoPool(@HostParam("$host") String endpoint, + @PathParam("workspaceName") String workspaceName, @PathParam("kustoPoolName") String kustoPoolName, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/kustoPools/{kustoPoolName}/attachedDatabaseConfigurations" - + "/{attachedDatabaseConfigurationName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/attachedDatabaseConfigurations/{attachedDatabaseConfigurationName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, - @PathParam("kustoPoolName") String kustoPoolName, + Mono> get(@HostParam("$host") String endpoint, + @PathParam("workspaceName") String workspaceName, @PathParam("kustoPoolName") String kustoPoolName, @PathParam("attachedDatabaseConfigurationName") String attachedDatabaseConfigurationName, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/kustoPools/{kustoPoolName}/attachedDatabaseConfigurations" - + "/{attachedDatabaseConfigurationName}") - @ExpectedResponses({200, 201, 202}) + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/attachedDatabaseConfigurations/{attachedDatabaseConfigurationName}") + @ExpectedResponses({ 200, 201, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate( - @HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, - @PathParam("kustoPoolName") String kustoPoolName, + Mono>> createOrUpdate(@HostParam("$host") String endpoint, + @PathParam("workspaceName") String workspaceName, @PathParam("kustoPoolName") String kustoPoolName, @PathParam("attachedDatabaseConfigurationName") String attachedDatabaseConfigurationName, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @QueryParam("api-version") String apiVersion, + @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, @BodyParam("application/json") AttachedDatabaseConfigurationInner parameters, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/kustoPools/{kustoPoolName}/attachedDatabaseConfigurations" - + "/{attachedDatabaseConfigurationName}") - @ExpectedResponses({200, 202, 204}) + @Headers({ "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/attachedDatabaseConfigurations/{attachedDatabaseConfigurationName}") + @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete( - @HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, - @PathParam("kustoPoolName") String kustoPoolName, + Mono>> delete(@HostParam("$host") String endpoint, + @PathParam("workspaceName") String workspaceName, @PathParam("kustoPoolName") String kustoPoolName, @PathParam("attachedDatabaseConfigurationName") String attachedDatabaseConfigurationName, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, Context context); } /** * Returns the list of attached database configurations of the given Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -154,16 +127,14 @@ Mono>> delete( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list attached database configurations operation response along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByKustoPoolSinglePageAsync( - String workspaceName, String kustoPoolName, String resourceGroupName) { + private Mono> listByKustoPoolSinglePageAsync(String workspaceName, + String kustoPoolName, String resourceGroupName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -172,10 +143,8 @@ private Mono> listByKustoPoolS return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -184,28 +153,16 @@ private Mono> listByKustoPoolS final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .listByKustoPool( - this.client.getEndpoint(), - workspaceName, - kustoPoolName, - this.client.getSubscriptionId(), - resourceGroupName, - apiVersion, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)) + .withContext(context -> service.listByKustoPool(this.client.getEndpoint(), workspaceName, kustoPoolName, + this.client.getSubscriptionId(), resourceGroupName, apiVersion, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Returns the list of attached database configurations of the given Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -214,16 +171,14 @@ private Mono> listByKustoPoolS * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list attached database configurations operation response along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByKustoPoolSinglePageAsync( - String workspaceName, String kustoPoolName, String resourceGroupName, Context context) { + private Mono> listByKustoPoolSinglePageAsync(String workspaceName, + String kustoPoolName, String resourceGroupName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -232,10 +187,8 @@ private Mono> listByKustoPoolS return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -245,42 +198,33 @@ private Mono> listByKustoPoolS final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByKustoPool( - this.client.getEndpoint(), - workspaceName, - kustoPoolName, - this.client.getSubscriptionId(), - resourceGroupName, - apiVersion, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)); + .listByKustoPool(this.client.getEndpoint(), workspaceName, kustoPoolName, this.client.getSubscriptionId(), + resourceGroupName, apiVersion, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), null, null)); } /** * Returns the list of attached database configurations of the given Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list attached database configurations operation response as paginated response with {@link - * PagedFlux}. + * @return the list attached database configurations operation response as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByKustoPoolAsync( - String workspaceName, String kustoPoolName, String resourceGroupName) { + private PagedFlux listByKustoPoolAsync(String workspaceName, + String kustoPoolName, String resourceGroupName) { return new PagedFlux<>(() -> listByKustoPoolSinglePageAsync(workspaceName, kustoPoolName, resourceGroupName)); } /** * Returns the list of attached database configurations of the given Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -288,37 +232,37 @@ private PagedFlux listByKustoPoolAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list attached database configurations operation response as paginated response with {@link - * PagedFlux}. + * @return the list attached database configurations operation response as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByKustoPoolAsync( - String workspaceName, String kustoPoolName, String resourceGroupName, Context context) { + private PagedFlux listByKustoPoolAsync(String workspaceName, + String kustoPoolName, String resourceGroupName, Context context) { return new PagedFlux<>( () -> listByKustoPoolSinglePageAsync(workspaceName, kustoPoolName, resourceGroupName, context)); } /** * Returns the list of attached database configurations of the given Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list attached database configurations operation response as paginated response with {@link - * PagedIterable}. + * @return the list attached database configurations operation response as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByKustoPool( - String workspaceName, String kustoPoolName, String resourceGroupName) { + public PagedIterable listByKustoPool(String workspaceName, String kustoPoolName, + String resourceGroupName) { return new PagedIterable<>(listByKustoPoolAsync(workspaceName, kustoPoolName, resourceGroupName)); } /** * Returns the list of attached database configurations of the given Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -326,18 +270,18 @@ public PagedIterable listByKustoPool( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list attached database configurations operation response as paginated response with {@link - * PagedIterable}. + * @return the list attached database configurations operation response as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByKustoPool( - String workspaceName, String kustoPoolName, String resourceGroupName, Context context) { + public PagedIterable listByKustoPool(String workspaceName, String kustoPoolName, + String resourceGroupName, Context context) { return new PagedIterable<>(listByKustoPoolAsync(workspaceName, kustoPoolName, resourceGroupName, context)); } /** * Returns an attached database configuration. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param attachedDatabaseConfigurationName The name of the attached database configuration. @@ -346,19 +290,14 @@ public PagedIterable listByKustoPool( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return class representing an attached database configuration along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String workspaceName, - String kustoPoolName, - String attachedDatabaseConfigurationName, - String resourceGroupName) { + private Mono> getWithResponseAsync(String workspaceName, + String kustoPoolName, String attachedDatabaseConfigurationName, String resourceGroupName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -367,16 +306,12 @@ private Mono> getWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); } if (attachedDatabaseConfigurationName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter attachedDatabaseConfigurationName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter attachedDatabaseConfigurationName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -385,25 +320,15 @@ private Mono> getWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - workspaceName, - kustoPoolName, - attachedDatabaseConfigurationName, - this.client.getSubscriptionId(), - resourceGroupName, - apiVersion, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), workspaceName, kustoPoolName, + attachedDatabaseConfigurationName, this.client.getSubscriptionId(), resourceGroupName, apiVersion, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Returns an attached database configuration. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param attachedDatabaseConfigurationName The name of the attached database configuration. @@ -413,20 +338,14 @@ private Mono> getWithResponseAsync( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return class representing an attached database configuration along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String workspaceName, - String kustoPoolName, - String attachedDatabaseConfigurationName, - String resourceGroupName, - Context context) { + private Mono> getWithResponseAsync(String workspaceName, + String kustoPoolName, String attachedDatabaseConfigurationName, String resourceGroupName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -435,16 +354,12 @@ private Mono> getWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); } if (attachedDatabaseConfigurationName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter attachedDatabaseConfigurationName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter attachedDatabaseConfigurationName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -453,22 +368,13 @@ private Mono> getWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - workspaceName, - kustoPoolName, - attachedDatabaseConfigurationName, - this.client.getSubscriptionId(), - resourceGroupName, - apiVersion, - accept, - context); + return service.get(this.client.getEndpoint(), workspaceName, kustoPoolName, attachedDatabaseConfigurationName, + this.client.getSubscriptionId(), resourceGroupName, apiVersion, accept, context); } /** * Returns an attached database configuration. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param attachedDatabaseConfigurationName The name of the attached database configuration. @@ -479,18 +385,15 @@ private Mono> getWithResponseAsync( * @return class representing an attached database configuration on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String workspaceName, - String kustoPoolName, - String attachedDatabaseConfigurationName, - String resourceGroupName) { + private Mono getAsync(String workspaceName, String kustoPoolName, + String attachedDatabaseConfigurationName, String resourceGroupName) { return getWithResponseAsync(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Returns an attached database configuration. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param attachedDatabaseConfigurationName The name of the attached database configuration. @@ -502,20 +405,15 @@ private Mono getAsync( * @return class representing an attached database configuration along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String workspaceName, - String kustoPoolName, - String attachedDatabaseConfigurationName, - String resourceGroupName, - Context context) { - return getWithResponseAsync( - workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, context) - .block(); + public Response getWithResponse(String workspaceName, String kustoPoolName, + String attachedDatabaseConfigurationName, String resourceGroupName, Context context) { + return getWithResponseAsync(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, + context).block(); } /** * Returns an attached database configuration. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param attachedDatabaseConfigurationName The name of the attached database configuration. @@ -526,19 +424,15 @@ public Response getWithResponse( * @return class representing an attached database configuration. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AttachedDatabaseConfigurationInner get( - String workspaceName, - String kustoPoolName, - String attachedDatabaseConfigurationName, - String resourceGroupName) { - return getWithResponse( - workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, Context.NONE) - .getValue(); + public AttachedDatabaseConfigurationInner get(String workspaceName, String kustoPoolName, + String attachedDatabaseConfigurationName, String resourceGroupName) { + return getWithResponse(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, + Context.NONE).getValue(); } /** * Creates or updates an attached database configuration. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param attachedDatabaseConfigurationName The name of the attached database configuration. @@ -548,20 +442,15 @@ public AttachedDatabaseConfigurationInner get( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return class representing an attached database configuration along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String workspaceName, - String kustoPoolName, - String attachedDatabaseConfigurationName, - String resourceGroupName, + private Mono>> createOrUpdateWithResponseAsync(String workspaceName, String kustoPoolName, + String attachedDatabaseConfigurationName, String resourceGroupName, AttachedDatabaseConfigurationInner parameters) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -570,16 +459,12 @@ private Mono>> createOrUpdateWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); } if (attachedDatabaseConfigurationName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter attachedDatabaseConfigurationName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter attachedDatabaseConfigurationName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -593,26 +478,15 @@ private Mono>> createOrUpdateWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - workspaceName, - kustoPoolName, - attachedDatabaseConfigurationName, - this.client.getSubscriptionId(), - resourceGroupName, - apiVersion, - parameters, - accept, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), workspaceName, kustoPoolName, + attachedDatabaseConfigurationName, this.client.getSubscriptionId(), resourceGroupName, apiVersion, + parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates an attached database configuration. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param attachedDatabaseConfigurationName The name of the attached database configuration. @@ -623,21 +497,15 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return class representing an attached database configuration along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String workspaceName, - String kustoPoolName, - String attachedDatabaseConfigurationName, - String resourceGroupName, - AttachedDatabaseConfigurationInner parameters, - Context context) { + private Mono>> createOrUpdateWithResponseAsync(String workspaceName, String kustoPoolName, + String attachedDatabaseConfigurationName, String resourceGroupName, + AttachedDatabaseConfigurationInner parameters, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -646,16 +514,12 @@ private Mono>> createOrUpdateWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); } if (attachedDatabaseConfigurationName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter attachedDatabaseConfigurationName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter attachedDatabaseConfigurationName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -669,23 +533,14 @@ private Mono>> createOrUpdateWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .createOrUpdate( - this.client.getEndpoint(), - workspaceName, - kustoPoolName, - attachedDatabaseConfigurationName, - this.client.getSubscriptionId(), - resourceGroupName, - apiVersion, - parameters, - accept, - context); + return service.createOrUpdate(this.client.getEndpoint(), workspaceName, kustoPoolName, + attachedDatabaseConfigurationName, this.client.getSubscriptionId(), resourceGroupName, apiVersion, + parameters, accept, context); } /** * Creates or updates an attached database configuration. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param attachedDatabaseConfigurationName The name of the attached database configuration. @@ -698,28 +553,18 @@ private Mono>> createOrUpdateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, AttachedDatabaseConfigurationInner> - beginCreateOrUpdateAsync( - String workspaceName, - String kustoPoolName, - String attachedDatabaseConfigurationName, - String resourceGroupName, - AttachedDatabaseConfigurationInner parameters) { - Mono>> mono = - createOrUpdateWithResponseAsync( - workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, parameters); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - AttachedDatabaseConfigurationInner.class, - AttachedDatabaseConfigurationInner.class, - this.client.getContext()); + beginCreateOrUpdateAsync(String workspaceName, String kustoPoolName, String attachedDatabaseConfigurationName, + String resourceGroupName, AttachedDatabaseConfigurationInner parameters) { + Mono>> mono = createOrUpdateWithResponseAsync(workspaceName, kustoPoolName, + attachedDatabaseConfigurationName, resourceGroupName, parameters); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), AttachedDatabaseConfigurationInner.class, + AttachedDatabaseConfigurationInner.class, this.client.getContext()); } /** * Creates or updates an attached database configuration. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param attachedDatabaseConfigurationName The name of the attached database configuration. @@ -733,35 +578,19 @@ private Mono>> createOrUpdateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, AttachedDatabaseConfigurationInner> - beginCreateOrUpdateAsync( - String workspaceName, - String kustoPoolName, - String attachedDatabaseConfigurationName, - String resourceGroupName, - AttachedDatabaseConfigurationInner parameters, - Context context) { + beginCreateOrUpdateAsync(String workspaceName, String kustoPoolName, String attachedDatabaseConfigurationName, + String resourceGroupName, AttachedDatabaseConfigurationInner parameters, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - createOrUpdateWithResponseAsync( - workspaceName, - kustoPoolName, - attachedDatabaseConfigurationName, - resourceGroupName, - parameters, - context); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - AttachedDatabaseConfigurationInner.class, - AttachedDatabaseConfigurationInner.class, - context); + Mono>> mono = createOrUpdateWithResponseAsync(workspaceName, kustoPoolName, + attachedDatabaseConfigurationName, resourceGroupName, parameters, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), AttachedDatabaseConfigurationInner.class, + AttachedDatabaseConfigurationInner.class, context); } /** * Creates or updates an attached database configuration. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param attachedDatabaseConfigurationName The name of the attached database configuration. @@ -774,21 +603,15 @@ private Mono>> createOrUpdateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, AttachedDatabaseConfigurationInner> - beginCreateOrUpdate( - String workspaceName, - String kustoPoolName, - String attachedDatabaseConfigurationName, - String resourceGroupName, - AttachedDatabaseConfigurationInner parameters) { - return this - .beginCreateOrUpdateAsync( - workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, parameters) - .getSyncPoller(); + beginCreateOrUpdate(String workspaceName, String kustoPoolName, String attachedDatabaseConfigurationName, + String resourceGroupName, AttachedDatabaseConfigurationInner parameters) { + return this.beginCreateOrUpdateAsync(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, + resourceGroupName, parameters).getSyncPoller(); } /** * Creates or updates an attached database configuration. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param attachedDatabaseConfigurationName The name of the attached database configuration. @@ -802,22 +625,15 @@ private Mono>> createOrUpdateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, AttachedDatabaseConfigurationInner> - beginCreateOrUpdate( - String workspaceName, - String kustoPoolName, - String attachedDatabaseConfigurationName, - String resourceGroupName, - AttachedDatabaseConfigurationInner parameters, - Context context) { - return this - .beginCreateOrUpdateAsync( - workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, parameters, context) - .getSyncPoller(); + beginCreateOrUpdate(String workspaceName, String kustoPoolName, String attachedDatabaseConfigurationName, + String resourceGroupName, AttachedDatabaseConfigurationInner parameters, Context context) { + return this.beginCreateOrUpdateAsync(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, + resourceGroupName, parameters, context).getSyncPoller(); } /** * Creates or updates an attached database configuration. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param attachedDatabaseConfigurationName The name of the attached database configuration. @@ -829,21 +645,16 @@ private Mono>> createOrUpdateWithResponseAsync( * @return class representing an attached database configuration on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String workspaceName, - String kustoPoolName, - String attachedDatabaseConfigurationName, - String resourceGroupName, + private Mono createOrUpdateAsync(String workspaceName, String kustoPoolName, + String attachedDatabaseConfigurationName, String resourceGroupName, AttachedDatabaseConfigurationInner parameters) { - return beginCreateOrUpdateAsync( - workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, parameters) - .last() - .flatMap(this.client::getLroFinalResultOrError); + return beginCreateOrUpdateAsync(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, + resourceGroupName, parameters).last().flatMap(this.client::getLroFinalResultOrError); } /** * Creates or updates an attached database configuration. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param attachedDatabaseConfigurationName The name of the attached database configuration. @@ -856,22 +667,16 @@ private Mono createOrUpdateAsync( * @return class representing an attached database configuration on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String workspaceName, - String kustoPoolName, - String attachedDatabaseConfigurationName, - String resourceGroupName, - AttachedDatabaseConfigurationInner parameters, - Context context) { - return beginCreateOrUpdateAsync( - workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, parameters, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono createOrUpdateAsync(String workspaceName, String kustoPoolName, + String attachedDatabaseConfigurationName, String resourceGroupName, + AttachedDatabaseConfigurationInner parameters, Context context) { + return beginCreateOrUpdateAsync(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, + resourceGroupName, parameters, context).last().flatMap(this.client::getLroFinalResultOrError); } /** * Creates or updates an attached database configuration. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param attachedDatabaseConfigurationName The name of the attached database configuration. @@ -883,20 +688,16 @@ private Mono createOrUpdateAsync( * @return class representing an attached database configuration. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AttachedDatabaseConfigurationInner createOrUpdate( - String workspaceName, - String kustoPoolName, - String attachedDatabaseConfigurationName, - String resourceGroupName, + public AttachedDatabaseConfigurationInner createOrUpdate(String workspaceName, String kustoPoolName, + String attachedDatabaseConfigurationName, String resourceGroupName, AttachedDatabaseConfigurationInner parameters) { - return createOrUpdateAsync( - workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, parameters) - .block(); + return createOrUpdateAsync(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, + parameters).block(); } /** * Creates or updates an attached database configuration. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param attachedDatabaseConfigurationName The name of the attached database configuration. @@ -909,21 +710,16 @@ public AttachedDatabaseConfigurationInner createOrUpdate( * @return class representing an attached database configuration. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AttachedDatabaseConfigurationInner createOrUpdate( - String workspaceName, - String kustoPoolName, - String attachedDatabaseConfigurationName, - String resourceGroupName, - AttachedDatabaseConfigurationInner parameters, - Context context) { - return createOrUpdateAsync( - workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, parameters, context) - .block(); + public AttachedDatabaseConfigurationInner createOrUpdate(String workspaceName, String kustoPoolName, + String attachedDatabaseConfigurationName, String resourceGroupName, + AttachedDatabaseConfigurationInner parameters, Context context) { + return createOrUpdateAsync(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, + parameters, context).block(); } /** * Deletes the attached database configuration with the given name. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param attachedDatabaseConfigurationName The name of the attached database configuration. @@ -934,16 +730,11 @@ public AttachedDatabaseConfigurationInner createOrUpdate( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync( - String workspaceName, - String kustoPoolName, - String attachedDatabaseConfigurationName, - String resourceGroupName) { + private Mono>> deleteWithResponseAsync(String workspaceName, String kustoPoolName, + String attachedDatabaseConfigurationName, String resourceGroupName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -952,16 +743,12 @@ private Mono>> deleteWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); } if (attachedDatabaseConfigurationName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter attachedDatabaseConfigurationName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter attachedDatabaseConfigurationName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -970,25 +757,15 @@ private Mono>> deleteWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .delete( - this.client.getEndpoint(), - workspaceName, - kustoPoolName, - attachedDatabaseConfigurationName, - this.client.getSubscriptionId(), - resourceGroupName, - apiVersion, - accept, - context)) + .withContext(context -> service.delete(this.client.getEndpoint(), workspaceName, kustoPoolName, + attachedDatabaseConfigurationName, this.client.getSubscriptionId(), resourceGroupName, apiVersion, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes the attached database configuration with the given name. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param attachedDatabaseConfigurationName The name of the attached database configuration. @@ -1000,17 +777,11 @@ private Mono>> deleteWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync( - String workspaceName, - String kustoPoolName, - String attachedDatabaseConfigurationName, - String resourceGroupName, - Context context) { + private Mono>> deleteWithResponseAsync(String workspaceName, String kustoPoolName, + String attachedDatabaseConfigurationName, String resourceGroupName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -1019,16 +790,12 @@ private Mono>> deleteWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); } if (attachedDatabaseConfigurationName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter attachedDatabaseConfigurationName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter attachedDatabaseConfigurationName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1037,22 +804,14 @@ private Mono>> deleteWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .delete( - this.client.getEndpoint(), - workspaceName, - kustoPoolName, - attachedDatabaseConfigurationName, - this.client.getSubscriptionId(), - resourceGroupName, - apiVersion, - accept, - context); + return service.delete(this.client.getEndpoint(), workspaceName, kustoPoolName, + attachedDatabaseConfigurationName, this.client.getSubscriptionId(), resourceGroupName, apiVersion, accept, + context); } /** * Deletes the attached database configuration with the given name. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param attachedDatabaseConfigurationName The name of the attached database configuration. @@ -1063,22 +822,17 @@ private Mono>> deleteWithResponseAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync( - String workspaceName, - String kustoPoolName, - String attachedDatabaseConfigurationName, - String resourceGroupName) { - Mono>> mono = - deleteWithResponseAsync(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + private PollerFlux, Void> beginDeleteAsync(String workspaceName, String kustoPoolName, + String attachedDatabaseConfigurationName, String resourceGroupName) { + Mono>> mono = deleteWithResponseAsync(workspaceName, kustoPoolName, + attachedDatabaseConfigurationName, resourceGroupName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Deletes the attached database configuration with the given name. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param attachedDatabaseConfigurationName The name of the attached database configuration. @@ -1090,24 +844,18 @@ private PollerFlux, Void> beginDeleteAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync( - String workspaceName, - String kustoPoolName, - String attachedDatabaseConfigurationName, - String resourceGroupName, - Context context) { + private PollerFlux, Void> beginDeleteAsync(String workspaceName, String kustoPoolName, + String attachedDatabaseConfigurationName, String resourceGroupName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - deleteWithResponseAsync( - workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + Mono>> mono = deleteWithResponseAsync(workspaceName, kustoPoolName, + attachedDatabaseConfigurationName, resourceGroupName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * Deletes the attached database configuration with the given name. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param attachedDatabaseConfigurationName The name of the attached database configuration. @@ -1118,19 +866,15 @@ private PollerFlux, Void> beginDeleteAsync( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete( - String workspaceName, - String kustoPoolName, - String attachedDatabaseConfigurationName, - String resourceGroupName) { - return this - .beginDeleteAsync(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName) + public SyncPoller, Void> beginDelete(String workspaceName, String kustoPoolName, + String attachedDatabaseConfigurationName, String resourceGroupName) { + return this.beginDeleteAsync(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName) .getSyncPoller(); } /** * Deletes the attached database configuration with the given name. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param attachedDatabaseConfigurationName The name of the attached database configuration. @@ -1142,21 +886,15 @@ public SyncPoller, Void> beginDelete( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete( - String workspaceName, - String kustoPoolName, - String attachedDatabaseConfigurationName, - String resourceGroupName, - Context context) { - return this - .beginDeleteAsync( - workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, context) - .getSyncPoller(); + public SyncPoller, Void> beginDelete(String workspaceName, String kustoPoolName, + String attachedDatabaseConfigurationName, String resourceGroupName, Context context) { + return this.beginDeleteAsync(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, + context).getSyncPoller(); } /** * Deletes the attached database configuration with the given name. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param attachedDatabaseConfigurationName The name of the attached database configuration. @@ -1167,19 +905,15 @@ public SyncPoller, Void> beginDelete( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync( - String workspaceName, - String kustoPoolName, - String attachedDatabaseConfigurationName, + private Mono deleteAsync(String workspaceName, String kustoPoolName, String attachedDatabaseConfigurationName, String resourceGroupName) { return beginDeleteAsync(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName) - .last() - .flatMap(this.client::getLroFinalResultOrError); + .last().flatMap(this.client::getLroFinalResultOrError); } /** * Deletes the attached database configuration with the given name. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param attachedDatabaseConfigurationName The name of the attached database configuration. @@ -1191,21 +925,15 @@ private Mono deleteAsync( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync( - String workspaceName, - String kustoPoolName, - String attachedDatabaseConfigurationName, - String resourceGroupName, - Context context) { - return beginDeleteAsync( - workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono deleteAsync(String workspaceName, String kustoPoolName, String attachedDatabaseConfigurationName, + String resourceGroupName, Context context) { + return beginDeleteAsync(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, + context).last().flatMap(this.client::getLroFinalResultOrError); } /** * Deletes the attached database configuration with the given name. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param attachedDatabaseConfigurationName The name of the attached database configuration. @@ -1215,17 +943,14 @@ private Mono deleteAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete( - String workspaceName, - String kustoPoolName, - String attachedDatabaseConfigurationName, + public void delete(String workspaceName, String kustoPoolName, String attachedDatabaseConfigurationName, String resourceGroupName) { deleteAsync(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName).block(); } /** * Deletes the attached database configuration with the given name. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param attachedDatabaseConfigurationName The name of the attached database configuration. @@ -1236,12 +961,8 @@ public void delete( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete( - String workspaceName, - String kustoPoolName, - String attachedDatabaseConfigurationName, - String resourceGroupName, - Context context) { + public void delete(String workspaceName, String kustoPoolName, String attachedDatabaseConfigurationName, + String resourceGroupName, Context context) { deleteAsync(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, context) .block(); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolAttachedDatabaseConfigurationsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolAttachedDatabaseConfigurationsImpl.java index e4266f31e397..415c23eeff3f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolAttachedDatabaseConfigurationsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolAttachedDatabaseConfigurationsImpl.java @@ -21,58 +21,44 @@ public final class KustoPoolAttachedDatabaseConfigurationsImpl implements KustoP private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public KustoPoolAttachedDatabaseConfigurationsImpl( - KustoPoolAttachedDatabaseConfigurationsClient innerClient, + public KustoPoolAttachedDatabaseConfigurationsImpl(KustoPoolAttachedDatabaseConfigurationsClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public PagedIterable listByKustoPool( - String workspaceName, String kustoPoolName, String resourceGroupName) { - PagedIterable inner = - this.serviceClient().listByKustoPool(workspaceName, kustoPoolName, resourceGroupName); - return Utils.mapPage(inner, inner1 -> new AttachedDatabaseConfigurationImpl(inner1, this.manager())); + public PagedIterable listByKustoPool(String workspaceName, String kustoPoolName, + String resourceGroupName) { + PagedIterable inner + = this.serviceClient().listByKustoPool(workspaceName, kustoPoolName, resourceGroupName); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new AttachedDatabaseConfigurationImpl(inner1, this.manager())); } - public PagedIterable listByKustoPool( - String workspaceName, String kustoPoolName, String resourceGroupName, Context context) { - PagedIterable inner = - this.serviceClient().listByKustoPool(workspaceName, kustoPoolName, resourceGroupName, context); - return Utils.mapPage(inner, inner1 -> new AttachedDatabaseConfigurationImpl(inner1, this.manager())); + public PagedIterable listByKustoPool(String workspaceName, String kustoPoolName, + String resourceGroupName, Context context) { + PagedIterable inner + = this.serviceClient().listByKustoPool(workspaceName, kustoPoolName, resourceGroupName, context); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new AttachedDatabaseConfigurationImpl(inner1, this.manager())); } - public Response getWithResponse( - String workspaceName, - String kustoPoolName, - String attachedDatabaseConfigurationName, - String resourceGroupName, - Context context) { - Response inner = - this - .serviceClient() - .getWithResponse( - workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, context); + public Response getWithResponse(String workspaceName, String kustoPoolName, + String attachedDatabaseConfigurationName, String resourceGroupName, Context context) { + Response inner = this.serviceClient().getWithResponse(workspaceName, + kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new AttachedDatabaseConfigurationImpl(inner.getValue(), this.manager())); } else { return null; } } - public AttachedDatabaseConfiguration get( - String workspaceName, - String kustoPoolName, - String attachedDatabaseConfigurationName, - String resourceGroupName) { - AttachedDatabaseConfigurationInner inner = - this - .serviceClient() - .get(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName); + public AttachedDatabaseConfiguration get(String workspaceName, String kustoPoolName, + String attachedDatabaseConfigurationName, String resourceGroupName) { + AttachedDatabaseConfigurationInner inner = this.serviceClient().get(workspaceName, kustoPoolName, + attachedDatabaseConfigurationName, resourceGroupName); if (inner != null) { return new AttachedDatabaseConfigurationImpl(inner, this.manager()); } else { @@ -80,174 +66,115 @@ public AttachedDatabaseConfiguration get( } } - public void delete( - String workspaceName, - String kustoPoolName, - String attachedDatabaseConfigurationName, + public void delete(String workspaceName, String kustoPoolName, String attachedDatabaseConfigurationName, String resourceGroupName) { this.serviceClient().delete(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName); } - public void delete( - String workspaceName, - String kustoPoolName, - String attachedDatabaseConfigurationName, - String resourceGroupName, - Context context) { - this - .serviceClient() - .delete(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, context); + public void delete(String workspaceName, String kustoPoolName, String attachedDatabaseConfigurationName, + String resourceGroupName, Context context) { + this.serviceClient().delete(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, + context); } public AttachedDatabaseConfiguration getById(String id) { - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String kustoPoolName = Utils.getValueFromIdByName(id, "kustoPools"); + String kustoPoolName = ResourceManagerUtils.getValueFromIdByName(id, "kustoPools"); if (kustoPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); } - String attachedDatabaseConfigurationName = Utils.getValueFromIdByName(id, "attachedDatabaseConfigurations"); + String attachedDatabaseConfigurationName + = ResourceManagerUtils.getValueFromIdByName(id, "attachedDatabaseConfigurations"); if (attachedDatabaseConfigurationName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment" - + " 'attachedDatabaseConfigurations'.", - id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format( + "The resource ID '%s' is not valid. Missing path segment 'attachedDatabaseConfigurations'.", id))); } - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - return this - .getWithResponse( - workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, Context.NONE) - .getValue(); + return this.getWithResponse(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, + Context.NONE).getValue(); } public Response getByIdWithResponse(String id, Context context) { - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String kustoPoolName = Utils.getValueFromIdByName(id, "kustoPools"); + String kustoPoolName = ResourceManagerUtils.getValueFromIdByName(id, "kustoPools"); if (kustoPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); } - String attachedDatabaseConfigurationName = Utils.getValueFromIdByName(id, "attachedDatabaseConfigurations"); + String attachedDatabaseConfigurationName + = ResourceManagerUtils.getValueFromIdByName(id, "attachedDatabaseConfigurations"); if (attachedDatabaseConfigurationName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment" - + " 'attachedDatabaseConfigurations'.", - id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format( + "The resource ID '%s' is not valid. Missing path segment 'attachedDatabaseConfigurations'.", id))); } - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - return this - .getWithResponse( - workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, context); + return this.getWithResponse(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, + context); } public void deleteById(String id) { - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String kustoPoolName = Utils.getValueFromIdByName(id, "kustoPools"); + String kustoPoolName = ResourceManagerUtils.getValueFromIdByName(id, "kustoPools"); if (kustoPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); } - String attachedDatabaseConfigurationName = Utils.getValueFromIdByName(id, "attachedDatabaseConfigurations"); + String attachedDatabaseConfigurationName + = ResourceManagerUtils.getValueFromIdByName(id, "attachedDatabaseConfigurations"); if (attachedDatabaseConfigurationName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment" - + " 'attachedDatabaseConfigurations'.", - id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format( + "The resource ID '%s' is not valid. Missing path segment 'attachedDatabaseConfigurations'.", id))); } - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } this.delete(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, Context.NONE); } public void deleteByIdWithResponse(String id, Context context) { - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String kustoPoolName = Utils.getValueFromIdByName(id, "kustoPools"); + String kustoPoolName = ResourceManagerUtils.getValueFromIdByName(id, "kustoPools"); if (kustoPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); } - String attachedDatabaseConfigurationName = Utils.getValueFromIdByName(id, "attachedDatabaseConfigurations"); + String attachedDatabaseConfigurationName + = ResourceManagerUtils.getValueFromIdByName(id, "attachedDatabaseConfigurations"); if (attachedDatabaseConfigurationName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment" - + " 'attachedDatabaseConfigurations'.", - id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format( + "The resource ID '%s' is not valid. Missing path segment 'attachedDatabaseConfigurations'.", id))); } - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } this.delete(workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolChildResourcesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolChildResourcesClientImpl.java index 9c19bf9c3a4d..ca9999083595 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolChildResourcesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolChildResourcesClientImpl.java @@ -27,23 +27,28 @@ import com.azure.resourcemanager.synapse.models.DatabaseCheckNameRequest; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in KustoPoolChildResourcesClient. */ +/** + * An instance of this class provides access to all the operations defined in KustoPoolChildResourcesClient. + */ public final class KustoPoolChildResourcesClientImpl implements KustoPoolChildResourcesClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final KustoPoolChildResourcesService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of KustoPoolChildResourcesClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ KustoPoolChildResourcesClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy - .create(KustoPoolChildResourcesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service = RestProxy.create(KustoPoolChildResourcesService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } @@ -54,27 +59,21 @@ public final class KustoPoolChildResourcesClientImpl implements KustoPoolChildRe @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface KustoPoolChildResourcesService { - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/kustoPools/{kustoPoolName}/checkNameAvailability") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/checkNameAvailability") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> checkNameAvailability( - @HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, - @PathParam("kustoPoolName") String kustoPoolName, + Mono> checkNameAvailability(@HostParam("$host") String endpoint, + @PathParam("workspaceName") String workspaceName, @PathParam("kustoPoolName") String kustoPoolName, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") DatabaseCheckNameRequest resourceName, - @HeaderParam("Accept") String accept, + @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, + @BodyParam("application/json") DatabaseCheckNameRequest resourceName, @HeaderParam("Accept") String accept, Context context); } /** * Checks that the Kusto Pool child resource name is valid and is not already in use. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -83,16 +82,14 @@ Mono> checkNameAvailability( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result returned from a check name availability request along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> checkNameAvailabilityWithResponseAsync( - String workspaceName, String kustoPoolName, String resourceGroupName, DatabaseCheckNameRequest resourceName) { + private Mono> checkNameAvailabilityWithResponseAsync(String workspaceName, + String kustoPoolName, String resourceGroupName, DatabaseCheckNameRequest resourceName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -101,10 +98,8 @@ private Mono> checkNameAvailabilityWithResponseAs return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -119,24 +114,14 @@ private Mono> checkNameAvailabilityWithResponseAs final String accept = "application/json"; return FluxUtil .withContext( - context -> - service - .checkNameAvailability( - this.client.getEndpoint(), - workspaceName, - kustoPoolName, - this.client.getSubscriptionId(), - resourceGroupName, - apiVersion, - resourceName, - accept, - context)) + context -> service.checkNameAvailability(this.client.getEndpoint(), workspaceName, kustoPoolName, + this.client.getSubscriptionId(), resourceGroupName, apiVersion, resourceName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Checks that the Kusto Pool child resource name is valid and is not already in use. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -146,20 +131,14 @@ private Mono> checkNameAvailabilityWithResponseAs * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result returned from a check name availability request along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> checkNameAvailabilityWithResponseAsync( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - DatabaseCheckNameRequest resourceName, - Context context) { + private Mono> checkNameAvailabilityWithResponseAsync(String workspaceName, + String kustoPoolName, String resourceGroupName, DatabaseCheckNameRequest resourceName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -168,10 +147,8 @@ private Mono> checkNameAvailabilityWithResponseAs return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -185,22 +162,13 @@ private Mono> checkNameAvailabilityWithResponseAs final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .checkNameAvailability( - this.client.getEndpoint(), - workspaceName, - kustoPoolName, - this.client.getSubscriptionId(), - resourceGroupName, - apiVersion, - resourceName, - accept, - context); + return service.checkNameAvailability(this.client.getEndpoint(), workspaceName, kustoPoolName, + this.client.getSubscriptionId(), resourceGroupName, apiVersion, resourceName, accept, context); } /** * Checks that the Kusto Pool child resource name is valid and is not already in use. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -211,15 +179,15 @@ private Mono> checkNameAvailabilityWithResponseAs * @return the result returned from a check name availability request on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono checkNameAvailabilityAsync( - String workspaceName, String kustoPoolName, String resourceGroupName, DatabaseCheckNameRequest resourceName) { + private Mono checkNameAvailabilityAsync(String workspaceName, String kustoPoolName, + String resourceGroupName, DatabaseCheckNameRequest resourceName) { return checkNameAvailabilityWithResponseAsync(workspaceName, kustoPoolName, resourceGroupName, resourceName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Checks that the Kusto Pool child resource name is valid and is not already in use. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -231,20 +199,15 @@ private Mono checkNameAvailabilityAsync( * @return the result returned from a check name availability request along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response checkNameAvailabilityWithResponse( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - DatabaseCheckNameRequest resourceName, - Context context) { - return checkNameAvailabilityWithResponseAsync( - workspaceName, kustoPoolName, resourceGroupName, resourceName, context) - .block(); + public Response checkNameAvailabilityWithResponse(String workspaceName, String kustoPoolName, + String resourceGroupName, DatabaseCheckNameRequest resourceName, Context context) { + return checkNameAvailabilityWithResponseAsync(workspaceName, kustoPoolName, resourceGroupName, resourceName, + context).block(); } /** * Checks that the Kusto Pool child resource name is valid and is not already in use. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -255,10 +218,9 @@ public Response checkNameAvailabilityWithResponse( * @return the result returned from a check name availability request. */ @ServiceMethod(returns = ReturnType.SINGLE) - public CheckNameResultInner checkNameAvailability( - String workspaceName, String kustoPoolName, String resourceGroupName, DatabaseCheckNameRequest resourceName) { - return checkNameAvailabilityWithResponse( - workspaceName, kustoPoolName, resourceGroupName, resourceName, Context.NONE) - .getValue(); + public CheckNameResultInner checkNameAvailability(String workspaceName, String kustoPoolName, + String resourceGroupName, DatabaseCheckNameRequest resourceName) { + return checkNameAvailabilityWithResponse(workspaceName, kustoPoolName, resourceGroupName, resourceName, + Context.NONE).getValue(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolChildResourcesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolChildResourcesImpl.java index 28a6fafdee61..e7d26c7dd3e2 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolChildResourcesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolChildResourcesImpl.java @@ -21,38 +21,28 @@ public final class KustoPoolChildResourcesImpl implements KustoPoolChildResource private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public KustoPoolChildResourcesImpl( - KustoPoolChildResourcesClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + public KustoPoolChildResourcesImpl(KustoPoolChildResourcesClient innerClient, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public Response checkNameAvailabilityWithResponse( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - DatabaseCheckNameRequest resourceName, - Context context) { - Response inner = - this - .serviceClient() - .checkNameAvailabilityWithResponse( - workspaceName, kustoPoolName, resourceGroupName, resourceName, context); + public Response checkNameAvailabilityWithResponse(String workspaceName, String kustoPoolName, + String resourceGroupName, DatabaseCheckNameRequest resourceName, Context context) { + Response inner = this.serviceClient().checkNameAvailabilityWithResponse(workspaceName, + kustoPoolName, resourceGroupName, resourceName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new CheckNameResultImpl(inner.getValue(), this.manager())); } else { return null; } } - public CheckNameResult checkNameAvailability( - String workspaceName, String kustoPoolName, String resourceGroupName, DatabaseCheckNameRequest resourceName) { - CheckNameResultInner inner = - this.serviceClient().checkNameAvailability(workspaceName, kustoPoolName, resourceGroupName, resourceName); + public CheckNameResult checkNameAvailability(String workspaceName, String kustoPoolName, String resourceGroupName, + DatabaseCheckNameRequest resourceName) { + CheckNameResultInner inner + = this.serviceClient().checkNameAvailability(workspaceName, kustoPoolName, resourceGroupName, resourceName); if (inner != null) { return new CheckNameResultImpl(inner, this.manager()); } else { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDataConnectionsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDataConnectionsClientImpl.java index b748cebd6d6e..d7ad79cbf7a7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDataConnectionsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDataConnectionsClientImpl.java @@ -44,23 +44,28 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in KustoPoolDataConnectionsClient. */ +/** + * An instance of this class provides access to all the operations defined in KustoPoolDataConnectionsClient. + */ public final class KustoPoolDataConnectionsClientImpl implements KustoPoolDataConnectionsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final KustoPoolDataConnectionsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of KustoPoolDataConnectionsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ KustoPoolDataConnectionsClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy - .create(KustoPoolDataConnectionsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service = RestProxy.create(KustoPoolDataConnectionsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } @@ -71,141 +76,90 @@ public final class KustoPoolDataConnectionsClientImpl implements KustoPoolDataCo @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface KustoPoolDataConnectionsService { - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/checkNameAvailability") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/checkNameAvailability") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> checkNameAvailability( - @HostParam("$host") String endpoint, + Mono> checkNameAvailability(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("kustoPoolName") String kustoPoolName, - @PathParam("databaseName") String databaseName, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("kustoPoolName") String kustoPoolName, @PathParam("databaseName") String databaseName, @QueryParam("api-version") String apiVersion, @BodyParam("application/json") DataConnectionCheckNameRequest dataConnectionName, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/dataConnectionValidation") - @ExpectedResponses({200, 202}) + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/dataConnectionValidation") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> dataConnectionValidation( - @HostParam("$host") String endpoint, + Mono>> dataConnectionValidation(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("kustoPoolName") String kustoPoolName, - @PathParam("databaseName") String databaseName, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("kustoPoolName") String kustoPoolName, @PathParam("databaseName") String databaseName, @QueryParam("api-version") String apiVersion, @BodyParam("application/json") DataConnectionValidationInner parameters, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/dataConnections") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/dataConnections") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByDatabase( - @HostParam("$host") String endpoint, + Mono> listByDatabase(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("kustoPoolName") String kustoPoolName, - @PathParam("databaseName") String databaseName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("kustoPoolName") String kustoPoolName, @PathParam("databaseName") String databaseName, + @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/dataConnections" - + "/{dataConnectionName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/dataConnections/{dataConnectionName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, + Mono> get(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("kustoPoolName") String kustoPoolName, - @PathParam("databaseName") String databaseName, - @PathParam("dataConnectionName") String dataConnectionName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/dataConnections" - + "/{dataConnectionName}") - @ExpectedResponses({200, 201}) + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("kustoPoolName") String kustoPoolName, @PathParam("databaseName") String databaseName, + @PathParam("dataConnectionName") String dataConnectionName, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/dataConnections/{dataConnectionName}") + @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate( - @HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("kustoPoolName") String kustoPoolName, - @PathParam("databaseName") String databaseName, - @PathParam("dataConnectionName") String dataConnectionName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") DataConnectionInner parameters, - @HeaderParam("Accept") String accept, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("kustoPoolName") String kustoPoolName, @PathParam("databaseName") String databaseName, + @PathParam("dataConnectionName") String dataConnectionName, @QueryParam("api-version") String apiVersion, + @BodyParam("application/json") DataConnectionInner parameters, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Patch( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/dataConnections" - + "/{dataConnectionName}") - @ExpectedResponses({200, 202}) + @Headers({ "Content-Type: application/json" }) + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/dataConnections/{dataConnectionName}") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> update( - @HostParam("$host") String endpoint, + Mono>> update(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("kustoPoolName") String kustoPoolName, - @PathParam("databaseName") String databaseName, - @PathParam("dataConnectionName") String dataConnectionName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") DataConnectionInner parameters, - @HeaderParam("Accept") String accept, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("kustoPoolName") String kustoPoolName, @PathParam("databaseName") String databaseName, + @PathParam("dataConnectionName") String dataConnectionName, @QueryParam("api-version") String apiVersion, + @BodyParam("application/json") DataConnectionInner parameters, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/dataConnections" - + "/{dataConnectionName}") - @ExpectedResponses({200, 202, 204}) + @Headers({ "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/dataConnections/{dataConnectionName}") + @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete( - @HostParam("$host") String endpoint, + Mono>> delete(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("kustoPoolName") String kustoPoolName, - @PathParam("databaseName") String databaseName, - @PathParam("dataConnectionName") String dataConnectionName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("kustoPoolName") String kustoPoolName, @PathParam("databaseName") String databaseName, + @PathParam("dataConnectionName") String dataConnectionName, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, Context context); } /** * Checks that the data connection name is valid and is not already in use. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -215,26 +169,19 @@ Mono>> delete( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result returned from a check name availability request along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> checkNameAvailabilityWithResponseAsync( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, + private Mono> checkNameAvailabilityWithResponseAsync(String resourceGroupName, + String workspaceName, String kustoPoolName, String databaseName, DataConnectionCheckNameRequest dataConnectionName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -258,26 +205,15 @@ private Mono> checkNameAvailabilityWithResponseAs final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .checkNameAvailability( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - kustoPoolName, - databaseName, - apiVersion, - dataConnectionName, - accept, - context)) + .withContext(context -> service.checkNameAvailability(this.client.getEndpoint(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, kustoPoolName, databaseName, + apiVersion, dataConnectionName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Checks that the data connection name is valid and is not already in use. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -288,27 +224,19 @@ private Mono> checkNameAvailabilityWithResponseAs * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result returned from a check name availability request along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> checkNameAvailabilityWithResponseAsync( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DataConnectionCheckNameRequest dataConnectionName, - Context context) { + private Mono> checkNameAvailabilityWithResponseAsync(String resourceGroupName, + String workspaceName, String kustoPoolName, String databaseName, + DataConnectionCheckNameRequest dataConnectionName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -332,23 +260,14 @@ private Mono> checkNameAvailabilityWithResponseAs final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .checkNameAvailability( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - kustoPoolName, - databaseName, - apiVersion, - dataConnectionName, - accept, - context); + return service.checkNameAvailability(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, kustoPoolName, databaseName, apiVersion, dataConnectionName, accept, + context); } /** * Checks that the data connection name is valid and is not already in use. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -360,20 +279,15 @@ private Mono> checkNameAvailabilityWithResponseAs * @return the result returned from a check name availability request on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono checkNameAvailabilityAsync( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DataConnectionCheckNameRequest dataConnectionName) { - return checkNameAvailabilityWithResponseAsync( - resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + private Mono checkNameAvailabilityAsync(String resourceGroupName, String workspaceName, + String kustoPoolName, String databaseName, DataConnectionCheckNameRequest dataConnectionName) { + return checkNameAvailabilityWithResponseAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, + dataConnectionName).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Checks that the data connection name is valid and is not already in use. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -386,21 +300,16 @@ private Mono checkNameAvailabilityAsync( * @return the result returned from a check name availability request along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response checkNameAvailabilityWithResponse( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DataConnectionCheckNameRequest dataConnectionName, - Context context) { - return checkNameAvailabilityWithResponseAsync( - resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, context) - .block(); + public Response checkNameAvailabilityWithResponse(String resourceGroupName, + String workspaceName, String kustoPoolName, String databaseName, + DataConnectionCheckNameRequest dataConnectionName, Context context) { + return checkNameAvailabilityWithResponseAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, + dataConnectionName, context).block(); } /** * Checks that the data connection name is valid and is not already in use. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -412,20 +321,15 @@ public Response checkNameAvailabilityWithResponse( * @return the result returned from a check name availability request. */ @ServiceMethod(returns = ReturnType.SINGLE) - public CheckNameResultInner checkNameAvailability( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DataConnectionCheckNameRequest dataConnectionName) { - return checkNameAvailabilityWithResponse( - resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, Context.NONE) - .getValue(); + public CheckNameResultInner checkNameAvailability(String resourceGroupName, String workspaceName, + String kustoPoolName, String databaseName, DataConnectionCheckNameRequest dataConnectionName) { + return checkNameAvailabilityWithResponse(resourceGroupName, workspaceName, kustoPoolName, databaseName, + dataConnectionName, Context.NONE).getValue(); } /** * Checks that the data connection parameters are valid. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -435,26 +339,18 @@ public CheckNameResultInner checkNameAvailability( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list Kusto data connection validation result along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> dataConnectionValidationWithResponseAsync( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DataConnectionValidationInner parameters) { + private Mono>> dataConnectionValidationWithResponseAsync(String resourceGroupName, + String workspaceName, String kustoPoolName, String databaseName, DataConnectionValidationInner parameters) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -477,26 +373,15 @@ private Mono>> dataConnectionValidationWithResponseAsy final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .dataConnectionValidation( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - kustoPoolName, - databaseName, - apiVersion, - parameters, - accept, - context)) + .withContext(context -> service.dataConnectionValidation(this.client.getEndpoint(), + this.client.getSubscriptionId(), resourceGroupName, workspaceName, kustoPoolName, databaseName, + apiVersion, parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Checks that the data connection parameters are valid. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -507,27 +392,19 @@ private Mono>> dataConnectionValidationWithResponseAsy * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list Kusto data connection validation result along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> dataConnectionValidationWithResponseAsync( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DataConnectionValidationInner parameters, + private Mono>> dataConnectionValidationWithResponseAsync(String resourceGroupName, + String workspaceName, String kustoPoolName, String databaseName, DataConnectionValidationInner parameters, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -550,23 +427,13 @@ private Mono>> dataConnectionValidationWithResponseAsy final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .dataConnectionValidation( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - kustoPoolName, - databaseName, - apiVersion, - parameters, - accept, - context); + return service.dataConnectionValidation(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, kustoPoolName, databaseName, apiVersion, parameters, accept, context); } /** * Checks that the data connection parameters are valid. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -579,28 +446,19 @@ private Mono>> dataConnectionValidationWithResponseAsy */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, DataConnectionValidationListResultInner> - beginDataConnectionValidationAsync( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DataConnectionValidationInner parameters) { - Mono>> mono = - dataConnectionValidationWithResponseAsync( - resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - DataConnectionValidationListResultInner.class, - DataConnectionValidationListResultInner.class, - this.client.getContext()); + beginDataConnectionValidationAsync(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName, DataConnectionValidationInner parameters) { + Mono>> mono = dataConnectionValidationWithResponseAsync(resourceGroupName, + workspaceName, kustoPoolName, databaseName, parameters); + return this.client + .getLroResult(mono, + this.client.getHttpPipeline(), DataConnectionValidationListResultInner.class, + DataConnectionValidationListResultInner.class, this.client.getContext()); } /** * Checks that the data connection parameters are valid. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -614,30 +472,20 @@ private Mono>> dataConnectionValidationWithResponseAsy */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, DataConnectionValidationListResultInner> - beginDataConnectionValidationAsync( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DataConnectionValidationInner parameters, - Context context) { + beginDataConnectionValidationAsync(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName, DataConnectionValidationInner parameters, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - dataConnectionValidationWithResponseAsync( - resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters, context); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - DataConnectionValidationListResultInner.class, - DataConnectionValidationListResultInner.class, - context); + Mono>> mono = dataConnectionValidationWithResponseAsync(resourceGroupName, + workspaceName, kustoPoolName, databaseName, parameters, context); + return this.client + .getLroResult(mono, + this.client.getHttpPipeline(), DataConnectionValidationListResultInner.class, + DataConnectionValidationListResultInner.class, context); } /** * Checks that the data connection parameters are valid. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -650,21 +498,15 @@ private Mono>> dataConnectionValidationWithResponseAsy */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, DataConnectionValidationListResultInner> - beginDataConnectionValidation( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DataConnectionValidationInner parameters) { - return this - .beginDataConnectionValidationAsync( - resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters) - .getSyncPoller(); + beginDataConnectionValidation(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName, DataConnectionValidationInner parameters) { + return this.beginDataConnectionValidationAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, + parameters).getSyncPoller(); } /** * Checks that the data connection parameters are valid. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -678,22 +520,15 @@ private Mono>> dataConnectionValidationWithResponseAsy */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, DataConnectionValidationListResultInner> - beginDataConnectionValidation( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DataConnectionValidationInner parameters, - Context context) { - return this - .beginDataConnectionValidationAsync( - resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters, context) - .getSyncPoller(); + beginDataConnectionValidation(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName, DataConnectionValidationInner parameters, Context context) { + return this.beginDataConnectionValidationAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, + parameters, context).getSyncPoller(); } /** * Checks that the data connection parameters are valid. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -705,21 +540,15 @@ private Mono>> dataConnectionValidationWithResponseAsy * @return the list Kusto data connection validation result on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono dataConnectionValidationAsync( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DataConnectionValidationInner parameters) { - return beginDataConnectionValidationAsync( - resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters) - .last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono dataConnectionValidationAsync(String resourceGroupName, + String workspaceName, String kustoPoolName, String databaseName, DataConnectionValidationInner parameters) { + return beginDataConnectionValidationAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, + parameters).last().flatMap(this.client::getLroFinalResultOrError); } /** * Checks that the data connection parameters are valid. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -732,22 +561,16 @@ private Mono dataConnectionValidationAs * @return the list Kusto data connection validation result on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono dataConnectionValidationAsync( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DataConnectionValidationInner parameters, + private Mono dataConnectionValidationAsync(String resourceGroupName, + String workspaceName, String kustoPoolName, String databaseName, DataConnectionValidationInner parameters, Context context) { - return beginDataConnectionValidationAsync( - resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + return beginDataConnectionValidationAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, + parameters, context).last().flatMap(this.client::getLroFinalResultOrError); } /** * Checks that the data connection parameters are valid. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -759,19 +582,15 @@ private Mono dataConnectionValidationAs * @return the list Kusto data connection validation result. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DataConnectionValidationListResultInner dataConnectionValidation( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DataConnectionValidationInner parameters) { + public DataConnectionValidationListResultInner dataConnectionValidation(String resourceGroupName, + String workspaceName, String kustoPoolName, String databaseName, DataConnectionValidationInner parameters) { return dataConnectionValidationAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters) .block(); } /** * Checks that the data connection parameters are valid. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -784,21 +603,16 @@ public DataConnectionValidationListResultInner dataConnectionValidation( * @return the list Kusto data connection validation result. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DataConnectionValidationListResultInner dataConnectionValidation( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DataConnectionValidationInner parameters, + public DataConnectionValidationListResultInner dataConnectionValidation(String resourceGroupName, + String workspaceName, String kustoPoolName, String databaseName, DataConnectionValidationInner parameters, Context context) { - return dataConnectionValidationAsync( - resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters, context) - .block(); + return dataConnectionValidationAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters, + context).block(); } /** * Returns the list of data connections of the given Kusto pool database. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -807,22 +621,18 @@ public DataConnectionValidationListResultInner dataConnectionValidation( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list Kusto data connections operation response along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByDatabaseSinglePageAsync( - String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName) { + private Mono> listByDatabaseSinglePageAsync(String resourceGroupName, + String workspaceName, String kustoPoolName, String databaseName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -840,29 +650,16 @@ private Mono> listByDatabaseSinglePageAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .listByDatabase( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - kustoPoolName, - databaseName, - apiVersion, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)) + .withContext(context -> service.listByDatabase(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, kustoPoolName, databaseName, apiVersion, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Returns the list of data connections of the given Kusto pool database. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -872,22 +669,18 @@ private Mono> listByDatabaseSinglePageAsync( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list Kusto data connections operation response along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByDatabaseSinglePageAsync( - String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, Context context) { + private Mono> listByDatabaseSinglePageAsync(String resourceGroupName, + String workspaceName, String kustoPoolName, String databaseName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -906,25 +699,15 @@ private Mono> listByDatabaseSinglePageAsync( final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByDatabase( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - kustoPoolName, - databaseName, - apiVersion, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)); + .listByDatabase(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + workspaceName, kustoPoolName, databaseName, apiVersion, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), null, null)); } /** * Returns the list of data connections of the given Kusto pool database. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -935,15 +718,15 @@ private Mono> listByDatabaseSinglePageAsync( * @return the list Kusto data connections operation response as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByDatabaseAsync( - String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName) { + private PagedFlux listByDatabaseAsync(String resourceGroupName, String workspaceName, + String kustoPoolName, String databaseName) { return new PagedFlux<>( () -> listByDatabaseSinglePageAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName)); } /** * Returns the list of data connections of the given Kusto pool database. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -955,16 +738,15 @@ private PagedFlux listByDatabaseAsync( * @return the list Kusto data connections operation response as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByDatabaseAsync( - String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, Context context) { - return new PagedFlux<>( - () -> - listByDatabaseSinglePageAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, context)); + private PagedFlux listByDatabaseAsync(String resourceGroupName, String workspaceName, + String kustoPoolName, String databaseName, Context context) { + return new PagedFlux<>(() -> listByDatabaseSinglePageAsync(resourceGroupName, workspaceName, kustoPoolName, + databaseName, context)); } /** * Returns the list of data connections of the given Kusto pool database. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -975,14 +757,14 @@ private PagedFlux listByDatabaseAsync( * @return the list Kusto data connections operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByDatabase( - String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName) { + public PagedIterable listByDatabase(String resourceGroupName, String workspaceName, + String kustoPoolName, String databaseName) { return new PagedIterable<>(listByDatabaseAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName)); } /** * Returns the list of data connections of the given Kusto pool database. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -994,15 +776,15 @@ public PagedIterable listByDatabase( * @return the list Kusto data connections operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByDatabase( - String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, Context context) { + public PagedIterable listByDatabase(String resourceGroupName, String workspaceName, + String kustoPoolName, String databaseName, Context context) { return new PagedIterable<>( listByDatabaseAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, context)); } /** * Returns a data connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -1011,27 +793,19 @@ public PagedIterable listByDatabase( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a data connection along with {@link Response} on successful completion of {@link - * Mono}. + * @return class representing a data connection along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName) { + private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, + String kustoPoolName, String databaseName, String dataConnectionName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1054,25 +828,14 @@ private Mono> getWithResponseAsync( final String accept = "application/json"; return FluxUtil .withContext( - context -> - service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - kustoPoolName, - databaseName, - dataConnectionName, - apiVersion, - accept, - context)) + context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + workspaceName, kustoPoolName, databaseName, dataConnectionName, apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Returns a data connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -1082,28 +845,19 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a data connection along with {@link Response} on successful completion of {@link - * Mono}. + * @return class representing a data connection along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName, - Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, + String kustoPoolName, String databaseName, String dataConnectionName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1125,23 +879,13 @@ private Mono> getWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - kustoPoolName, - databaseName, - dataConnectionName, - apiVersion, - accept, - context); + return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, + kustoPoolName, databaseName, dataConnectionName, apiVersion, accept, context); } /** * Returns a data connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -1153,19 +897,15 @@ private Mono> getWithResponseAsync( * @return class representing a data connection on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName) { + private Mono getAsync(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName, String dataConnectionName) { return getWithResponseAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Returns a data connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -1178,21 +918,15 @@ private Mono getAsync( * @return class representing a data connection along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName, - Context context) { - return getWithResponseAsync( - resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, context) - .block(); + public Response getWithResponse(String resourceGroupName, String workspaceName, + String kustoPoolName, String databaseName, String dataConnectionName, Context context) { + return getWithResponseAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, + context).block(); } /** * Returns a data connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -1204,20 +938,15 @@ public Response getWithResponse( * @return class representing a data connection. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DataConnectionInner get( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName) { - return getWithResponse( - resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, Context.NONE) - .getValue(); + public DataConnectionInner get(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName, String dataConnectionName) { + return getWithResponse(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, + Context.NONE).getValue(); } /** * Creates or updates a data connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -1227,28 +956,20 @@ public DataConnectionInner get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a data connection along with {@link Response} on successful completion of {@link - * Mono}. + * @return class representing a data connection along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName, + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String workspaceName, String kustoPoolName, String databaseName, String dataConnectionName, DataConnectionInner parameters) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1275,27 +996,15 @@ private Mono>> createOrUpdateWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - kustoPoolName, - databaseName, - dataConnectionName, - apiVersion, - parameters, - accept, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, apiVersion, + parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates a data connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -1306,29 +1015,20 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a data connection along with {@link Response} on successful completion of {@link - * Mono}. + * @return class representing a data connection along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName, - DataConnectionInner parameters, - Context context) { + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String workspaceName, String kustoPoolName, String databaseName, String dataConnectionName, + DataConnectionInner parameters, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1355,24 +1055,13 @@ private Mono>> createOrUpdateWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .createOrUpdate( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - kustoPoolName, - databaseName, - dataConnectionName, - apiVersion, - parameters, - accept, - context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + workspaceName, kustoPoolName, databaseName, dataConnectionName, apiVersion, parameters, accept, context); } /** * Creates or updates a data connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -1386,28 +1075,17 @@ private Mono>> createOrUpdateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, DataConnectionInner> beginCreateOrUpdateAsync( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName, - DataConnectionInner parameters) { - Mono>> mono = - createOrUpdateWithResponseAsync( - resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, parameters); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - DataConnectionInner.class, - DataConnectionInner.class, - this.client.getContext()); + String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, + String dataConnectionName, DataConnectionInner parameters) { + Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, + kustoPoolName, databaseName, dataConnectionName, parameters); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + DataConnectionInner.class, DataConnectionInner.class, this.client.getContext()); } /** * Creates or updates a data connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -1422,26 +1100,18 @@ private PollerFlux, DataConnectionInner> beginCr */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, DataConnectionInner> beginCreateOrUpdateAsync( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName, - DataConnectionInner parameters, - Context context) { + String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, + String dataConnectionName, DataConnectionInner parameters, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - createOrUpdateWithResponseAsync( - resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, parameters, context); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), DataConnectionInner.class, DataConnectionInner.class, context); + Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, + kustoPoolName, databaseName, dataConnectionName, parameters, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + DataConnectionInner.class, DataConnectionInner.class, context); } /** * Creates or updates a data connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -1455,21 +1125,15 @@ private PollerFlux, DataConnectionInner> beginCr */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, DataConnectionInner> beginCreateOrUpdate( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName, - DataConnectionInner parameters) { - return this - .beginCreateOrUpdateAsync( - resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, parameters) - .getSyncPoller(); + String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, + String dataConnectionName, DataConnectionInner parameters) { + return this.beginCreateOrUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, + dataConnectionName, parameters).getSyncPoller(); } /** * Creates or updates a data connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -1484,22 +1148,15 @@ public SyncPoller, DataConnectionInner> beginCre */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, DataConnectionInner> beginCreateOrUpdate( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName, - DataConnectionInner parameters, - Context context) { - return this - .beginCreateOrUpdateAsync( - resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, parameters, context) - .getSyncPoller(); + String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, + String dataConnectionName, DataConnectionInner parameters, Context context) { + return this.beginCreateOrUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, + dataConnectionName, parameters, context).getSyncPoller(); } /** * Creates or updates a data connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -1512,22 +1169,15 @@ public SyncPoller, DataConnectionInner> beginCre * @return class representing a data connection on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName, - DataConnectionInner parameters) { - return beginCreateOrUpdateAsync( - resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, parameters) - .last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono createOrUpdateAsync(String resourceGroupName, String workspaceName, + String kustoPoolName, String databaseName, String dataConnectionName, DataConnectionInner parameters) { + return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, + dataConnectionName, parameters).last().flatMap(this.client::getLroFinalResultOrError); } /** * Creates or updates a data connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -1541,23 +1191,16 @@ private Mono createOrUpdateAsync( * @return class representing a data connection on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName, - DataConnectionInner parameters, + private Mono createOrUpdateAsync(String resourceGroupName, String workspaceName, + String kustoPoolName, String databaseName, String dataConnectionName, DataConnectionInner parameters, Context context) { - return beginCreateOrUpdateAsync( - resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, parameters, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, + dataConnectionName, parameters, context).last().flatMap(this.client::getLroFinalResultOrError); } /** * Creates or updates a data connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -1570,21 +1213,15 @@ private Mono createOrUpdateAsync( * @return class representing a data connection. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DataConnectionInner createOrUpdate( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName, - DataConnectionInner parameters) { - return createOrUpdateAsync( - resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, parameters) - .block(); + public DataConnectionInner createOrUpdate(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName, String dataConnectionName, DataConnectionInner parameters) { + return createOrUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, + parameters).block(); } /** * Creates or updates a data connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -1598,22 +1235,15 @@ public DataConnectionInner createOrUpdate( * @return class representing a data connection. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DataConnectionInner createOrUpdate( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName, - DataConnectionInner parameters, - Context context) { - return createOrUpdateAsync( - resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, parameters, context) - .block(); + public DataConnectionInner createOrUpdate(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName, String dataConnectionName, DataConnectionInner parameters, Context context) { + return createOrUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, + parameters, context).block(); } /** * Updates a data connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -1623,28 +1253,19 @@ public DataConnectionInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a data connection along with {@link Response} on successful completion of {@link - * Mono}. + * @return class representing a data connection along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName, - DataConnectionInner parameters) { + private Mono>> updateWithResponseAsync(String resourceGroupName, String workspaceName, + String kustoPoolName, String databaseName, String dataConnectionName, DataConnectionInner parameters) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1671,27 +1292,15 @@ private Mono>> updateWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .update( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - kustoPoolName, - databaseName, - dataConnectionName, - apiVersion, - parameters, - accept, - context)) + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, apiVersion, + parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Updates a data connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -1702,29 +1311,20 @@ private Mono>> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a data connection along with {@link Response} on successful completion of {@link - * Mono}. + * @return class representing a data connection along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName, - DataConnectionInner parameters, + private Mono>> updateWithResponseAsync(String resourceGroupName, String workspaceName, + String kustoPoolName, String databaseName, String dataConnectionName, DataConnectionInner parameters, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1751,24 +1351,13 @@ private Mono>> updateWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .update( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - kustoPoolName, - databaseName, - dataConnectionName, - apiVersion, - parameters, - accept, - context); + return service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + workspaceName, kustoPoolName, databaseName, dataConnectionName, apiVersion, parameters, accept, context); } /** * Updates a data connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -1781,29 +1370,18 @@ private Mono>> updateWithResponseAsync( * @return the {@link PollerFlux} for polling of class representing a data connection. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, DataConnectionInner> beginUpdateAsync( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName, + private PollerFlux, DataConnectionInner> beginUpdateAsync(String resourceGroupName, + String workspaceName, String kustoPoolName, String databaseName, String dataConnectionName, DataConnectionInner parameters) { - Mono>> mono = - updateWithResponseAsync( - resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, parameters); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - DataConnectionInner.class, - DataConnectionInner.class, - this.client.getContext()); + Mono>> mono = updateWithResponseAsync(resourceGroupName, workspaceName, kustoPoolName, + databaseName, dataConnectionName, parameters); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + DataConnectionInner.class, DataConnectionInner.class, this.client.getContext()); } /** * Updates a data connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -1817,27 +1395,19 @@ private PollerFlux, DataConnectionInner> beginUp * @return the {@link PollerFlux} for polling of class representing a data connection. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, DataConnectionInner> beginUpdateAsync( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName, - DataConnectionInner parameters, - Context context) { + private PollerFlux, DataConnectionInner> beginUpdateAsync(String resourceGroupName, + String workspaceName, String kustoPoolName, String databaseName, String dataConnectionName, + DataConnectionInner parameters, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - updateWithResponseAsync( - resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, parameters, context); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), DataConnectionInner.class, DataConnectionInner.class, context); + Mono>> mono = updateWithResponseAsync(resourceGroupName, workspaceName, kustoPoolName, + databaseName, dataConnectionName, parameters, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + DataConnectionInner.class, DataConnectionInner.class, context); } /** * Updates a data connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -1850,22 +1420,16 @@ private PollerFlux, DataConnectionInner> beginUp * @return the {@link SyncPoller} for polling of class representing a data connection. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, DataConnectionInner> beginUpdate( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName, + public SyncPoller, DataConnectionInner> beginUpdate(String resourceGroupName, + String workspaceName, String kustoPoolName, String databaseName, String dataConnectionName, DataConnectionInner parameters) { - return this - .beginUpdateAsync( - resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, parameters) - .getSyncPoller(); + return this.beginUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, + parameters).getSyncPoller(); } /** * Updates a data connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -1879,23 +1443,16 @@ public SyncPoller, DataConnectionInner> beginUpd * @return the {@link SyncPoller} for polling of class representing a data connection. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, DataConnectionInner> beginUpdate( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName, - DataConnectionInner parameters, - Context context) { - return this - .beginUpdateAsync( - resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, parameters, context) - .getSyncPoller(); + public SyncPoller, DataConnectionInner> beginUpdate(String resourceGroupName, + String workspaceName, String kustoPoolName, String databaseName, String dataConnectionName, + DataConnectionInner parameters, Context context) { + return this.beginUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, + parameters, context).getSyncPoller(); } /** * Updates a data connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -1908,22 +1465,15 @@ public SyncPoller, DataConnectionInner> beginUpd * @return class representing a data connection on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName, - DataConnectionInner parameters) { - return beginUpdateAsync( - resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, parameters) - .last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono updateAsync(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName, String dataConnectionName, DataConnectionInner parameters) { + return beginUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, + parameters).last().flatMap(this.client::getLroFinalResultOrError); } /** * Updates a data connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -1937,23 +1487,15 @@ private Mono updateAsync( * @return class representing a data connection on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName, - DataConnectionInner parameters, - Context context) { - return beginUpdateAsync( - resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, parameters, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono updateAsync(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName, String dataConnectionName, DataConnectionInner parameters, Context context) { + return beginUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, + parameters, context).last().flatMap(this.client::getLroFinalResultOrError); } /** * Updates a data connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -1966,21 +1508,15 @@ private Mono updateAsync( * @return class representing a data connection. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DataConnectionInner update( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName, - DataConnectionInner parameters) { - return updateAsync( - resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, parameters) - .block(); + public DataConnectionInner update(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName, String dataConnectionName, DataConnectionInner parameters) { + return updateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, + parameters).block(); } /** * Updates a data connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -1994,22 +1530,15 @@ public DataConnectionInner update( * @return class representing a data connection. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DataConnectionInner update( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName, - DataConnectionInner parameters, - Context context) { - return updateAsync( - resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, parameters, context) - .block(); + public DataConnectionInner update(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName, String dataConnectionName, DataConnectionInner parameters, Context context) { + return updateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, + parameters, context).block(); } /** * Deletes the data connection with the given name. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -2021,23 +1550,15 @@ public DataConnectionInner update( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String workspaceName, + String kustoPoolName, String databaseName, String dataConnectionName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2060,25 +1581,14 @@ private Mono>> deleteWithResponseAsync( final String accept = "application/json"; return FluxUtil .withContext( - context -> - service - .delete( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - kustoPoolName, - databaseName, - dataConnectionName, - apiVersion, - accept, - context)) + context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + workspaceName, kustoPoolName, databaseName, dataConnectionName, apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes the data connection with the given name. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -2091,24 +1601,15 @@ private Mono>> deleteWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName, - Context context) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String workspaceName, + String kustoPoolName, String databaseName, String dataConnectionName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2130,23 +1631,13 @@ private Mono>> deleteWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .delete( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - kustoPoolName, - databaseName, - dataConnectionName, - apiVersion, - accept, - context); + return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + workspaceName, kustoPoolName, databaseName, dataConnectionName, apiVersion, accept, context); } /** * Deletes the data connection with the given name. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -2158,23 +1649,17 @@ private Mono>> deleteWithResponseAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName) { - Mono>> mono = - deleteWithResponseAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String workspaceName, + String kustoPoolName, String databaseName, String dataConnectionName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, workspaceName, kustoPoolName, + databaseName, dataConnectionName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Deletes the data connection with the given name. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -2187,25 +1672,18 @@ private PollerFlux, Void> beginDeleteAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName, - Context context) { + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String workspaceName, + String kustoPoolName, String databaseName, String dataConnectionName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - deleteWithResponseAsync( - resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + Mono>> mono = deleteWithResponseAsync(resourceGroupName, workspaceName, kustoPoolName, + databaseName, dataConnectionName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * Deletes the data connection with the given name. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -2217,20 +1695,15 @@ private PollerFlux, Void> beginDeleteAsync( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName) { - return this - .beginDeleteAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName) + public SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, + String kustoPoolName, String databaseName, String dataConnectionName) { + return this.beginDeleteAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName) .getSyncPoller(); } /** * Deletes the data connection with the given name. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -2243,22 +1716,15 @@ public SyncPoller, Void> beginDelete( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName, - Context context) { - return this - .beginDeleteAsync( - resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, context) - .getSyncPoller(); + public SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, + String kustoPoolName, String databaseName, String dataConnectionName, Context context) { + return this.beginDeleteAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, + context).getSyncPoller(); } /** * Deletes the data connection with the given name. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -2270,20 +1736,15 @@ public SyncPoller, Void> beginDelete( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName) { + private Mono deleteAsync(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName, String dataConnectionName) { return beginDeleteAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName) - .last() - .flatMap(this.client::getLroFinalResultOrError); + .last().flatMap(this.client::getLroFinalResultOrError); } /** * Deletes the data connection with the given name. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -2296,22 +1757,15 @@ private Mono deleteAsync( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName, - Context context) { - return beginDeleteAsync( - resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono deleteAsync(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName, String dataConnectionName, Context context) { + return beginDeleteAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, + context).last().flatMap(this.client::getLroFinalResultOrError); } /** * Deletes the data connection with the given name. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -2322,18 +1776,14 @@ private Mono deleteAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, + public void delete(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, String dataConnectionName) { deleteAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName).block(); } /** * Deletes the data connection with the given name. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -2345,13 +1795,8 @@ public void delete( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName, - Context context) { + public void delete(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, + String dataConnectionName, Context context) { deleteAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, context).block(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDataConnectionsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDataConnectionsImpl.java index d0cead66dc49..f42b97aee9fd 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDataConnectionsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDataConnectionsImpl.java @@ -27,46 +27,28 @@ public final class KustoPoolDataConnectionsImpl implements KustoPoolDataConnecti private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public KustoPoolDataConnectionsImpl( - KustoPoolDataConnectionsClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + public KustoPoolDataConnectionsImpl(KustoPoolDataConnectionsClient innerClient, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public Response checkNameAvailabilityWithResponse( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DataConnectionCheckNameRequest dataConnectionName, - Context context) { - Response inner = - this - .serviceClient() - .checkNameAvailabilityWithResponse( - resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, context); + public Response checkNameAvailabilityWithResponse(String resourceGroupName, String workspaceName, + String kustoPoolName, String databaseName, DataConnectionCheckNameRequest dataConnectionName, Context context) { + Response inner = this.serviceClient().checkNameAvailabilityWithResponse(resourceGroupName, + workspaceName, kustoPoolName, databaseName, dataConnectionName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new CheckNameResultImpl(inner.getValue(), this.manager())); } else { return null; } } - public CheckNameResult checkNameAvailability( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DataConnectionCheckNameRequest dataConnectionName) { - CheckNameResultInner inner = - this - .serviceClient() - .checkNameAvailability( - resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName); + public CheckNameResult checkNameAvailability(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName, DataConnectionCheckNameRequest dataConnectionName) { + CheckNameResultInner inner = this.serviceClient().checkNameAvailability(resourceGroupName, workspaceName, + kustoPoolName, databaseName, dataConnectionName); if (inner != null) { return new CheckNameResultImpl(inner, this.manager()); } else { @@ -74,16 +56,10 @@ public CheckNameResult checkNameAvailability( } } - public DataConnectionValidationListResult dataConnectionValidation( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DataConnectionValidationInner parameters) { - DataConnectionValidationListResultInner inner = - this - .serviceClient() - .dataConnectionValidation(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters); + public DataConnectionValidationListResult dataConnectionValidation(String resourceGroupName, String workspaceName, + String kustoPoolName, String databaseName, DataConnectionValidationInner parameters) { + DataConnectionValidationListResultInner inner = this.serviceClient().dataConnectionValidation(resourceGroupName, + workspaceName, kustoPoolName, databaseName, parameters); if (inner != null) { return new DataConnectionValidationListResultImpl(inner, this.manager()); } else { @@ -91,18 +67,10 @@ public DataConnectionValidationListResult dataConnectionValidation( } } - public DataConnectionValidationListResult dataConnectionValidation( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DataConnectionValidationInner parameters, - Context context) { - DataConnectionValidationListResultInner inner = - this - .serviceClient() - .dataConnectionValidation( - resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters, context); + public DataConnectionValidationListResult dataConnectionValidation(String resourceGroupName, String workspaceName, + String kustoPoolName, String databaseName, DataConnectionValidationInner parameters, Context context) { + DataConnectionValidationListResultInner inner = this.serviceClient().dataConnectionValidation(resourceGroupName, + workspaceName, kustoPoolName, databaseName, parameters, context); if (inner != null) { return new DataConnectionValidationListResultImpl(inner, this.manager()); } else { @@ -110,51 +78,36 @@ public DataConnectionValidationListResult dataConnectionValidation( } } - public PagedIterable listByDatabase( - String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName) { - PagedIterable inner = - this.serviceClient().listByDatabase(resourceGroupName, workspaceName, kustoPoolName, databaseName); - return Utils.mapPage(inner, inner1 -> new DataConnectionImpl(inner1, this.manager())); + public PagedIterable listByDatabase(String resourceGroupName, String workspaceName, + String kustoPoolName, String databaseName) { + PagedIterable inner + = this.serviceClient().listByDatabase(resourceGroupName, workspaceName, kustoPoolName, databaseName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new DataConnectionImpl(inner1, this.manager())); } - public PagedIterable listByDatabase( - String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, Context context) { - PagedIterable inner = - this.serviceClient().listByDatabase(resourceGroupName, workspaceName, kustoPoolName, databaseName, context); - return Utils.mapPage(inner, inner1 -> new DataConnectionImpl(inner1, this.manager())); + public PagedIterable listByDatabase(String resourceGroupName, String workspaceName, + String kustoPoolName, String databaseName, Context context) { + PagedIterable inner = this.serviceClient().listByDatabase(resourceGroupName, workspaceName, + kustoPoolName, databaseName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new DataConnectionImpl(inner1, this.manager())); } - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName, - Context context) { - Response inner = - this - .serviceClient() - .getWithResponse( - resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, context); + public Response getWithResponse(String resourceGroupName, String workspaceName, + String kustoPoolName, String databaseName, String dataConnectionName, Context context) { + Response inner = this.serviceClient().getWithResponse(resourceGroupName, workspaceName, + kustoPoolName, databaseName, dataConnectionName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new DataConnectionImpl(inner.getValue(), this.manager())); } else { return null; } } - public DataConnection get( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, + public DataConnection get(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, String dataConnectionName) { - DataConnectionInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName); + DataConnectionInner inner = this.serviceClient().get(resourceGroupName, workspaceName, kustoPoolName, + databaseName, dataConnectionName); if (inner != null) { return new DataConnectionImpl(inner, this.manager()); } else { @@ -162,18 +115,10 @@ public DataConnection get( } } - public DataConnection createOrUpdate( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName, - DataConnectionInner parameters) { - DataConnectionInner inner = - this - .serviceClient() - .createOrUpdate( - resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, parameters); + public DataConnection createOrUpdate(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName, String dataConnectionName, DataConnectionInner parameters) { + DataConnectionInner inner = this.serviceClient().createOrUpdate(resourceGroupName, workspaceName, kustoPoolName, + databaseName, dataConnectionName, parameters); if (inner != null) { return new DataConnectionImpl(inner, this.manager()); } else { @@ -181,25 +126,10 @@ public DataConnection createOrUpdate( } } - public DataConnection createOrUpdate( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName, - DataConnectionInner parameters, - Context context) { - DataConnectionInner inner = - this - .serviceClient() - .createOrUpdate( - resourceGroupName, - workspaceName, - kustoPoolName, - databaseName, - dataConnectionName, - parameters, - context); + public DataConnection createOrUpdate(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName, String dataConnectionName, DataConnectionInner parameters, Context context) { + DataConnectionInner inner = this.serviceClient().createOrUpdate(resourceGroupName, workspaceName, kustoPoolName, + databaseName, dataConnectionName, parameters, context); if (inner != null) { return new DataConnectionImpl(inner, this.manager()); } else { @@ -207,17 +137,10 @@ public DataConnection createOrUpdate( } } - public DataConnection update( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName, - DataConnectionInner parameters) { - DataConnectionInner inner = - this - .serviceClient() - .update(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, parameters); + public DataConnection update(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName, String dataConnectionName, DataConnectionInner parameters) { + DataConnectionInner inner = this.serviceClient().update(resourceGroupName, workspaceName, kustoPoolName, + databaseName, dataConnectionName, parameters); if (inner != null) { return new DataConnectionImpl(inner, this.manager()); } else { @@ -225,25 +148,10 @@ public DataConnection update( } } - public DataConnection update( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName, - DataConnectionInner parameters, - Context context) { - DataConnectionInner inner = - this - .serviceClient() - .update( - resourceGroupName, - workspaceName, - kustoPoolName, - databaseName, - dataConnectionName, - parameters, - context); + public DataConnection update(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName, String dataConnectionName, DataConnectionInner parameters, Context context) { + DataConnectionInner inner = this.serviceClient().update(resourceGroupName, workspaceName, kustoPoolName, + databaseName, dataConnectionName, parameters, context); if (inner != null) { return new DataConnectionImpl(inner, this.manager()); } else { @@ -251,25 +159,15 @@ public DataConnection update( } } - public void delete( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, + public void delete(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, String dataConnectionName) { this.serviceClient().delete(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName); } - public void delete( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName, - Context context) { - this - .serviceClient() - .delete(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, context); + public void delete(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, + String dataConnectionName, Context context) { + this.serviceClient().delete(resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, + context); } private KustoPoolDataConnectionsClient serviceClient() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasePrincipalAssignmentsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasePrincipalAssignmentsClientImpl.java index 914d26e7f340..fc9060224e85 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasePrincipalAssignmentsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasePrincipalAssignmentsClientImpl.java @@ -47,24 +47,24 @@ */ public final class KustoPoolDatabasePrincipalAssignmentsClientImpl implements KustoPoolDatabasePrincipalAssignmentsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final KustoPoolDatabasePrincipalAssignmentsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of KustoPoolDatabasePrincipalAssignmentsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ KustoPoolDatabasePrincipalAssignmentsClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy - .create( - KustoPoolDatabasePrincipalAssignmentsService.class, - client.getHttpPipeline(), - client.getSerializerAdapter()); + this.service = RestProxy.create(KustoPoolDatabasePrincipalAssignmentsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } @@ -75,104 +75,68 @@ public final class KustoPoolDatabasePrincipalAssignmentsClientImpl @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface KustoPoolDatabasePrincipalAssignmentsService { - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}" - + "/checkPrincipalAssignmentNameAvailability") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/checkPrincipalAssignmentNameAvailability") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> checkNameAvailability( - @HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, - @PathParam("kustoPoolName") String kustoPoolName, - @PathParam("databaseName") String databaseName, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @QueryParam("api-version") String apiVersion, + Mono> checkNameAvailability(@HostParam("$host") String endpoint, + @PathParam("workspaceName") String workspaceName, @PathParam("kustoPoolName") String kustoPoolName, + @PathParam("databaseName") String databaseName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, @BodyParam("application/json") DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/principalAssignments") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/principalAssignments") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, - @PathParam("kustoPoolName") String kustoPoolName, - @PathParam("databaseName") String databaseName, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); + Mono> list(@HostParam("$host") String endpoint, + @PathParam("workspaceName") String workspaceName, @PathParam("kustoPoolName") String kustoPoolName, + @PathParam("databaseName") String databaseName, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/principalAssignments" - + "/{principalAssignmentName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/principalAssignments/{principalAssignmentName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, - @PathParam("kustoPoolName") String kustoPoolName, + Mono> get(@HostParam("$host") String endpoint, + @PathParam("workspaceName") String workspaceName, @PathParam("kustoPoolName") String kustoPoolName, @PathParam("databaseName") String databaseName, @PathParam("principalAssignmentName") String principalAssignmentName, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/principalAssignments" - + "/{principalAssignmentName}") - @ExpectedResponses({200, 201}) + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/principalAssignments/{principalAssignmentName}") + @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate( - @HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, - @PathParam("kustoPoolName") String kustoPoolName, + Mono>> createOrUpdate(@HostParam("$host") String endpoint, + @PathParam("workspaceName") String workspaceName, @PathParam("kustoPoolName") String kustoPoolName, @PathParam("databaseName") String databaseName, @PathParam("principalAssignmentName") String principalAssignmentName, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @QueryParam("api-version") String apiVersion, + @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, @BodyParam("application/json") DatabasePrincipalAssignmentInner parameters, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/principalAssignments" - + "/{principalAssignmentName}") - @ExpectedResponses({200, 202, 204}) + @Headers({ "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/principalAssignments/{principalAssignmentName}") + @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete( - @HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, - @PathParam("kustoPoolName") String kustoPoolName, + Mono>> delete(@HostParam("$host") String endpoint, + @PathParam("workspaceName") String workspaceName, @PathParam("kustoPoolName") String kustoPoolName, @PathParam("databaseName") String databaseName, @PathParam("principalAssignmentName") String principalAssignmentName, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, Context context); } /** * Checks that the database principal assignment is valid and is not already in use. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -182,20 +146,15 @@ Mono>> delete( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result returned from a check name availability request along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> checkNameAvailabilityWithResponseAsync( - String workspaceName, - String kustoPoolName, - String databaseName, - String resourceGroupName, + private Mono> checkNameAvailabilityWithResponseAsync(String workspaceName, + String kustoPoolName, String databaseName, String resourceGroupName, DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -207,45 +166,31 @@ private Mono> checkNameAvailabilityWithResponseAs return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } if (principalAssignmentName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter principalAssignmentName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter principalAssignmentName is required and cannot be null.")); } else { principalAssignmentName.validate(); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .checkNameAvailability( - this.client.getEndpoint(), - workspaceName, - kustoPoolName, - databaseName, - this.client.getSubscriptionId(), - resourceGroupName, - apiVersion, - principalAssignmentName, - accept, - context)) + .withContext(context -> service.checkNameAvailability(this.client.getEndpoint(), workspaceName, + kustoPoolName, databaseName, this.client.getSubscriptionId(), resourceGroupName, apiVersion, + principalAssignmentName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Checks that the database principal assignment is valid and is not already in use. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -256,21 +201,15 @@ private Mono> checkNameAvailabilityWithResponseAs * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result returned from a check name availability request along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> checkNameAvailabilityWithResponseAsync( - String workspaceName, - String kustoPoolName, - String databaseName, - String resourceGroupName, - DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName, - Context context) { + private Mono> checkNameAvailabilityWithResponseAsync(String workspaceName, + String kustoPoolName, String databaseName, String resourceGroupName, + DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -282,42 +221,29 @@ private Mono> checkNameAvailabilityWithResponseAs return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } if (principalAssignmentName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter principalAssignmentName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter principalAssignmentName is required and cannot be null.")); } else { principalAssignmentName.validate(); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .checkNameAvailability( - this.client.getEndpoint(), - workspaceName, - kustoPoolName, - databaseName, - this.client.getSubscriptionId(), - resourceGroupName, - apiVersion, - principalAssignmentName, - accept, - context); + return service.checkNameAvailability(this.client.getEndpoint(), workspaceName, kustoPoolName, databaseName, + this.client.getSubscriptionId(), resourceGroupName, apiVersion, principalAssignmentName, accept, context); } /** * Checks that the database principal assignment is valid and is not already in use. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -329,20 +255,16 @@ private Mono> checkNameAvailabilityWithResponseAs * @return the result returned from a check name availability request on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono checkNameAvailabilityAsync( - String workspaceName, - String kustoPoolName, - String databaseName, - String resourceGroupName, + private Mono checkNameAvailabilityAsync(String workspaceName, String kustoPoolName, + String databaseName, String resourceGroupName, DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName) { - return checkNameAvailabilityWithResponseAsync( - workspaceName, kustoPoolName, databaseName, resourceGroupName, principalAssignmentName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + return checkNameAvailabilityWithResponseAsync(workspaceName, kustoPoolName, databaseName, resourceGroupName, + principalAssignmentName).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Checks that the database principal assignment is valid and is not already in use. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -355,21 +277,16 @@ private Mono checkNameAvailabilityAsync( * @return the result returned from a check name availability request along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response checkNameAvailabilityWithResponse( - String workspaceName, - String kustoPoolName, - String databaseName, - String resourceGroupName, - DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName, - Context context) { - return checkNameAvailabilityWithResponseAsync( - workspaceName, kustoPoolName, databaseName, resourceGroupName, principalAssignmentName, context) - .block(); + public Response checkNameAvailabilityWithResponse(String workspaceName, String kustoPoolName, + String databaseName, String resourceGroupName, + DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName, Context context) { + return checkNameAvailabilityWithResponseAsync(workspaceName, kustoPoolName, databaseName, resourceGroupName, + principalAssignmentName, context).block(); } /** * Checks that the database principal assignment is valid and is not already in use. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -381,20 +298,15 @@ public Response checkNameAvailabilityWithResponse( * @return the result returned from a check name availability request. */ @ServiceMethod(returns = ReturnType.SINGLE) - public CheckNameResultInner checkNameAvailability( - String workspaceName, - String kustoPoolName, - String databaseName, - String resourceGroupName, - DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName) { - return checkNameAvailabilityWithResponse( - workspaceName, kustoPoolName, databaseName, resourceGroupName, principalAssignmentName, Context.NONE) - .getValue(); + public CheckNameResultInner checkNameAvailability(String workspaceName, String kustoPoolName, String databaseName, + String resourceGroupName, DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName) { + return checkNameAvailabilityWithResponse(workspaceName, kustoPoolName, databaseName, resourceGroupName, + principalAssignmentName, Context.NONE).getValue(); } /** * Lists all Kusto pool database principalAssignments. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -403,16 +315,14 @@ public CheckNameResultInner checkNameAvailability( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list Kusto database principal assignments operation response along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String workspaceName, String kustoPoolName, String databaseName, String resourceGroupName) { + private Mono> listSinglePageAsync(String workspaceName, + String kustoPoolName, String databaseName, String resourceGroupName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -424,10 +334,8 @@ private Mono> listSinglePageAsyn return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -436,29 +344,16 @@ private Mono> listSinglePageAsyn final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .list( - this.client.getEndpoint(), - workspaceName, - kustoPoolName, - databaseName, - this.client.getSubscriptionId(), - resourceGroupName, - apiVersion, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)) + .withContext(context -> service.list(this.client.getEndpoint(), workspaceName, kustoPoolName, databaseName, + this.client.getSubscriptionId(), resourceGroupName, apiVersion, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Lists all Kusto pool database principalAssignments. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -468,16 +363,14 @@ private Mono> listSinglePageAsyn * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list Kusto database principal assignments operation response along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String workspaceName, String kustoPoolName, String databaseName, String resourceGroupName, Context context) { + private Mono> listSinglePageAsync(String workspaceName, + String kustoPoolName, String databaseName, String resourceGroupName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -489,10 +382,8 @@ private Mono> listSinglePageAsyn return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -502,25 +393,15 @@ private Mono> listSinglePageAsyn final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list( - this.client.getEndpoint(), - workspaceName, - kustoPoolName, - databaseName, - this.client.getSubscriptionId(), - resourceGroupName, - apiVersion, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)); + .list(this.client.getEndpoint(), workspaceName, kustoPoolName, databaseName, + this.client.getSubscriptionId(), resourceGroupName, apiVersion, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), null, null)); } /** * Lists all Kusto pool database principalAssignments. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -528,19 +409,19 @@ private Mono> listSinglePageAsyn * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto database principal assignments operation response as paginated response with {@link - * PagedFlux}. + * @return the list Kusto database principal assignments operation response as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( - String workspaceName, String kustoPoolName, String databaseName, String resourceGroupName) { + private PagedFlux listAsync(String workspaceName, String kustoPoolName, + String databaseName, String resourceGroupName) { return new PagedFlux<>( () -> listSinglePageAsync(workspaceName, kustoPoolName, databaseName, resourceGroupName)); } /** * Lists all Kusto pool database principalAssignments. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -549,19 +430,19 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto database principal assignments operation response as paginated response with {@link - * PagedFlux}. + * @return the list Kusto database principal assignments operation response as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( - String workspaceName, String kustoPoolName, String databaseName, String resourceGroupName, Context context) { + private PagedFlux listAsync(String workspaceName, String kustoPoolName, + String databaseName, String resourceGroupName, Context context) { return new PagedFlux<>( () -> listSinglePageAsync(workspaceName, kustoPoolName, databaseName, resourceGroupName, context)); } /** * Lists all Kusto pool database principalAssignments. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -569,18 +450,18 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto database principal assignments operation response as paginated response with {@link - * PagedIterable}. + * @return the list Kusto database principal assignments operation response as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list( - String workspaceName, String kustoPoolName, String databaseName, String resourceGroupName) { + public PagedIterable list(String workspaceName, String kustoPoolName, + String databaseName, String resourceGroupName) { return new PagedIterable<>(listAsync(workspaceName, kustoPoolName, databaseName, resourceGroupName)); } /** * Lists all Kusto pool database principalAssignments. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -589,18 +470,18 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto database principal assignments operation response as paginated response with {@link - * PagedIterable}. + * @return the list Kusto database principal assignments operation response as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list( - String workspaceName, String kustoPoolName, String databaseName, String resourceGroupName, Context context) { + public PagedIterable list(String workspaceName, String kustoPoolName, + String databaseName, String resourceGroupName, Context context) { return new PagedIterable<>(listAsync(workspaceName, kustoPoolName, databaseName, resourceGroupName, context)); } /** * Gets a Kusto pool database principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -609,21 +490,15 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Kusto pool database principalAssignment along with {@link Response} on successful completion of {@link - * Mono}. + * @return a Kusto pool database principalAssignment along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String workspaceName, - String kustoPoolName, - String databaseName, - String principalAssignmentName, - String resourceGroupName) { + private Mono> getWithResponseAsync(String workspaceName, + String kustoPoolName, String databaseName, String principalAssignmentName, String resourceGroupName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -635,15 +510,12 @@ private Mono> getWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); } if (principalAssignmentName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter principalAssignmentName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter principalAssignmentName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -652,26 +524,15 @@ private Mono> getWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - workspaceName, - kustoPoolName, - databaseName, - principalAssignmentName, - this.client.getSubscriptionId(), - resourceGroupName, - apiVersion, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), workspaceName, kustoPoolName, databaseName, + principalAssignmentName, this.client.getSubscriptionId(), resourceGroupName, apiVersion, accept, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets a Kusto pool database principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -681,22 +542,16 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Kusto pool database principalAssignment along with {@link Response} on successful completion of {@link - * Mono}. + * @return a Kusto pool database principalAssignment along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String workspaceName, - String kustoPoolName, - String databaseName, - String principalAssignmentName, - String resourceGroupName, + private Mono> getWithResponseAsync(String workspaceName, + String kustoPoolName, String databaseName, String principalAssignmentName, String resourceGroupName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -708,15 +563,12 @@ private Mono> getWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); } if (principalAssignmentName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter principalAssignmentName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter principalAssignmentName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -725,23 +577,13 @@ private Mono> getWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - workspaceName, - kustoPoolName, - databaseName, - principalAssignmentName, - this.client.getSubscriptionId(), - resourceGroupName, - apiVersion, - accept, - context); + return service.get(this.client.getEndpoint(), workspaceName, kustoPoolName, databaseName, + principalAssignmentName, this.client.getSubscriptionId(), resourceGroupName, apiVersion, accept, context); } /** * Gets a Kusto pool database principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -753,20 +595,15 @@ private Mono> getWithResponseAsync( * @return a Kusto pool database principalAssignment on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String workspaceName, - String kustoPoolName, - String databaseName, - String principalAssignmentName, - String resourceGroupName) { - return getWithResponseAsync( - workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + private Mono getAsync(String workspaceName, String kustoPoolName, + String databaseName, String principalAssignmentName, String resourceGroupName) { + return getWithResponseAsync(workspaceName, kustoPoolName, databaseName, principalAssignmentName, + resourceGroupName).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Gets a Kusto pool database principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -779,21 +616,15 @@ private Mono getAsync( * @return a Kusto pool database principalAssignment along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String workspaceName, - String kustoPoolName, - String databaseName, - String principalAssignmentName, - String resourceGroupName, - Context context) { - return getWithResponseAsync( - workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, context) - .block(); + public Response getWithResponse(String workspaceName, String kustoPoolName, + String databaseName, String principalAssignmentName, String resourceGroupName, Context context) { + return getWithResponseAsync(workspaceName, kustoPoolName, databaseName, principalAssignmentName, + resourceGroupName, context).block(); } /** * Gets a Kusto pool database principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -805,20 +636,15 @@ public Response getWithResponse( * @return a Kusto pool database principalAssignment. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DatabasePrincipalAssignmentInner get( - String workspaceName, - String kustoPoolName, - String databaseName, - String principalAssignmentName, - String resourceGroupName) { - return getWithResponse( - workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, Context.NONE) - .getValue(); + public DatabasePrincipalAssignmentInner get(String workspaceName, String kustoPoolName, String databaseName, + String principalAssignmentName, String resourceGroupName) { + return getWithResponse(workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, + Context.NONE).getValue(); } /** * Creates a Kusto pool database principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -829,21 +655,15 @@ public DatabasePrincipalAssignmentInner get( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return class representing a database principal assignment along with {@link Response} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String workspaceName, - String kustoPoolName, - String databaseName, - String principalAssignmentName, - String resourceGroupName, + private Mono>> createOrUpdateWithResponseAsync(String workspaceName, String kustoPoolName, + String databaseName, String principalAssignmentName, String resourceGroupName, DatabasePrincipalAssignmentInner parameters) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -855,15 +675,12 @@ private Mono>> createOrUpdateWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); } if (principalAssignmentName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter principalAssignmentName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter principalAssignmentName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -877,27 +694,15 @@ private Mono>> createOrUpdateWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - workspaceName, - kustoPoolName, - databaseName, - principalAssignmentName, - this.client.getSubscriptionId(), - resourceGroupName, - apiVersion, - parameters, - accept, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), workspaceName, kustoPoolName, + databaseName, principalAssignmentName, this.client.getSubscriptionId(), resourceGroupName, apiVersion, + parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates a Kusto pool database principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -909,22 +714,15 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return class representing a database principal assignment along with {@link Response} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String workspaceName, - String kustoPoolName, - String databaseName, - String principalAssignmentName, - String resourceGroupName, - DatabasePrincipalAssignmentInner parameters, - Context context) { + private Mono>> createOrUpdateWithResponseAsync(String workspaceName, String kustoPoolName, + String databaseName, String principalAssignmentName, String resourceGroupName, + DatabasePrincipalAssignmentInner parameters, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -936,15 +734,12 @@ private Mono>> createOrUpdateWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); } if (principalAssignmentName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter principalAssignmentName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter principalAssignmentName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -958,24 +753,14 @@ private Mono>> createOrUpdateWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .createOrUpdate( - this.client.getEndpoint(), - workspaceName, - kustoPoolName, - databaseName, - principalAssignmentName, - this.client.getSubscriptionId(), - resourceGroupName, - apiVersion, - parameters, - accept, - context); + return service.createOrUpdate(this.client.getEndpoint(), workspaceName, kustoPoolName, databaseName, + principalAssignmentName, this.client.getSubscriptionId(), resourceGroupName, apiVersion, parameters, accept, + context); } /** * Creates a Kusto pool database principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -989,29 +774,18 @@ private Mono>> createOrUpdateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, DatabasePrincipalAssignmentInner> - beginCreateOrUpdateAsync( - String workspaceName, - String kustoPoolName, - String databaseName, - String principalAssignmentName, - String resourceGroupName, - DatabasePrincipalAssignmentInner parameters) { - Mono>> mono = - createOrUpdateWithResponseAsync( - workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, parameters); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - DatabasePrincipalAssignmentInner.class, - DatabasePrincipalAssignmentInner.class, - this.client.getContext()); + beginCreateOrUpdateAsync(String workspaceName, String kustoPoolName, String databaseName, + String principalAssignmentName, String resourceGroupName, DatabasePrincipalAssignmentInner parameters) { + Mono>> mono = createOrUpdateWithResponseAsync(workspaceName, kustoPoolName, + databaseName, principalAssignmentName, resourceGroupName, parameters); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), DatabasePrincipalAssignmentInner.class, + DatabasePrincipalAssignmentInner.class, this.client.getContext()); } /** * Creates a Kusto pool database principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -1026,37 +800,20 @@ private Mono>> createOrUpdateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, DatabasePrincipalAssignmentInner> - beginCreateOrUpdateAsync( - String workspaceName, - String kustoPoolName, - String databaseName, - String principalAssignmentName, - String resourceGroupName, - DatabasePrincipalAssignmentInner parameters, + beginCreateOrUpdateAsync(String workspaceName, String kustoPoolName, String databaseName, + String principalAssignmentName, String resourceGroupName, DatabasePrincipalAssignmentInner parameters, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - createOrUpdateWithResponseAsync( - workspaceName, - kustoPoolName, - databaseName, - principalAssignmentName, - resourceGroupName, - parameters, - context); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - DatabasePrincipalAssignmentInner.class, - DatabasePrincipalAssignmentInner.class, - context); + Mono>> mono = createOrUpdateWithResponseAsync(workspaceName, kustoPoolName, + databaseName, principalAssignmentName, resourceGroupName, parameters, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), DatabasePrincipalAssignmentInner.class, + DatabasePrincipalAssignmentInner.class, context); } /** * Creates a Kusto pool database principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -1070,22 +827,15 @@ private Mono>> createOrUpdateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, DatabasePrincipalAssignmentInner> - beginCreateOrUpdate( - String workspaceName, - String kustoPoolName, - String databaseName, - String principalAssignmentName, - String resourceGroupName, - DatabasePrincipalAssignmentInner parameters) { - return this - .beginCreateOrUpdateAsync( - workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, parameters) - .getSyncPoller(); + beginCreateOrUpdate(String workspaceName, String kustoPoolName, String databaseName, + String principalAssignmentName, String resourceGroupName, DatabasePrincipalAssignmentInner parameters) { + return this.beginCreateOrUpdateAsync(workspaceName, kustoPoolName, databaseName, principalAssignmentName, + resourceGroupName, parameters).getSyncPoller(); } /** * Creates a Kusto pool database principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -1100,29 +850,16 @@ private Mono>> createOrUpdateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, DatabasePrincipalAssignmentInner> - beginCreateOrUpdate( - String workspaceName, - String kustoPoolName, - String databaseName, - String principalAssignmentName, - String resourceGroupName, - DatabasePrincipalAssignmentInner parameters, + beginCreateOrUpdate(String workspaceName, String kustoPoolName, String databaseName, + String principalAssignmentName, String resourceGroupName, DatabasePrincipalAssignmentInner parameters, Context context) { - return this - .beginCreateOrUpdateAsync( - workspaceName, - kustoPoolName, - databaseName, - principalAssignmentName, - resourceGroupName, - parameters, - context) - .getSyncPoller(); + return this.beginCreateOrUpdateAsync(workspaceName, kustoPoolName, databaseName, principalAssignmentName, + resourceGroupName, parameters, context).getSyncPoller(); } /** * Creates a Kusto pool database principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -1135,22 +872,16 @@ private Mono>> createOrUpdateWithResponseAsync( * @return class representing a database principal assignment on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String workspaceName, - String kustoPoolName, - String databaseName, - String principalAssignmentName, - String resourceGroupName, + private Mono createOrUpdateAsync(String workspaceName, String kustoPoolName, + String databaseName, String principalAssignmentName, String resourceGroupName, DatabasePrincipalAssignmentInner parameters) { - return beginCreateOrUpdateAsync( - workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, parameters) - .last() - .flatMap(this.client::getLroFinalResultOrError); + return beginCreateOrUpdateAsync(workspaceName, kustoPoolName, databaseName, principalAssignmentName, + resourceGroupName, parameters).last().flatMap(this.client::getLroFinalResultOrError); } /** * Creates a Kusto pool database principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -1164,29 +895,16 @@ private Mono createOrUpdateAsync( * @return class representing a database principal assignment on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String workspaceName, - String kustoPoolName, - String databaseName, - String principalAssignmentName, - String resourceGroupName, - DatabasePrincipalAssignmentInner parameters, - Context context) { - return beginCreateOrUpdateAsync( - workspaceName, - kustoPoolName, - databaseName, - principalAssignmentName, - resourceGroupName, - parameters, - context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono createOrUpdateAsync(String workspaceName, String kustoPoolName, + String databaseName, String principalAssignmentName, String resourceGroupName, + DatabasePrincipalAssignmentInner parameters, Context context) { + return beginCreateOrUpdateAsync(workspaceName, kustoPoolName, databaseName, principalAssignmentName, + resourceGroupName, parameters, context).last().flatMap(this.client::getLroFinalResultOrError); } /** * Creates a Kusto pool database principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -1199,21 +917,16 @@ private Mono createOrUpdateAsync( * @return class representing a database principal assignment. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DatabasePrincipalAssignmentInner createOrUpdate( - String workspaceName, - String kustoPoolName, - String databaseName, - String principalAssignmentName, - String resourceGroupName, + public DatabasePrincipalAssignmentInner createOrUpdate(String workspaceName, String kustoPoolName, + String databaseName, String principalAssignmentName, String resourceGroupName, DatabasePrincipalAssignmentInner parameters) { - return createOrUpdateAsync( - workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, parameters) - .block(); + return createOrUpdateAsync(workspaceName, kustoPoolName, databaseName, principalAssignmentName, + resourceGroupName, parameters).block(); } /** * Creates a Kusto pool database principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -1227,28 +940,16 @@ public DatabasePrincipalAssignmentInner createOrUpdate( * @return class representing a database principal assignment. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DatabasePrincipalAssignmentInner createOrUpdate( - String workspaceName, - String kustoPoolName, - String databaseName, - String principalAssignmentName, - String resourceGroupName, - DatabasePrincipalAssignmentInner parameters, - Context context) { - return createOrUpdateAsync( - workspaceName, - kustoPoolName, - databaseName, - principalAssignmentName, - resourceGroupName, - parameters, - context) - .block(); + public DatabasePrincipalAssignmentInner createOrUpdate(String workspaceName, String kustoPoolName, + String databaseName, String principalAssignmentName, String resourceGroupName, + DatabasePrincipalAssignmentInner parameters, Context context) { + return createOrUpdateAsync(workspaceName, kustoPoolName, databaseName, principalAssignmentName, + resourceGroupName, parameters, context).block(); } /** * Deletes a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -1260,17 +961,11 @@ public DatabasePrincipalAssignmentInner createOrUpdate( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync( - String workspaceName, - String kustoPoolName, - String databaseName, - String principalAssignmentName, - String resourceGroupName) { + private Mono>> deleteWithResponseAsync(String workspaceName, String kustoPoolName, + String databaseName, String principalAssignmentName, String resourceGroupName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -1282,15 +977,12 @@ private Mono>> deleteWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); } if (principalAssignmentName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter principalAssignmentName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter principalAssignmentName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1299,26 +991,15 @@ private Mono>> deleteWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .delete( - this.client.getEndpoint(), - workspaceName, - kustoPoolName, - databaseName, - principalAssignmentName, - this.client.getSubscriptionId(), - resourceGroupName, - apiVersion, - accept, - context)) + .withContext(context -> service.delete(this.client.getEndpoint(), workspaceName, kustoPoolName, + databaseName, principalAssignmentName, this.client.getSubscriptionId(), resourceGroupName, apiVersion, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -1331,18 +1012,11 @@ private Mono>> deleteWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync( - String workspaceName, - String kustoPoolName, - String databaseName, - String principalAssignmentName, - String resourceGroupName, - Context context) { + private Mono>> deleteWithResponseAsync(String workspaceName, String kustoPoolName, + String databaseName, String principalAssignmentName, String resourceGroupName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -1354,15 +1028,12 @@ private Mono>> deleteWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); } if (principalAssignmentName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter principalAssignmentName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter principalAssignmentName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1371,23 +1042,13 @@ private Mono>> deleteWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .delete( - this.client.getEndpoint(), - workspaceName, - kustoPoolName, - databaseName, - principalAssignmentName, - this.client.getSubscriptionId(), - resourceGroupName, - apiVersion, - accept, - context); + return service.delete(this.client.getEndpoint(), workspaceName, kustoPoolName, databaseName, + principalAssignmentName, this.client.getSubscriptionId(), resourceGroupName, apiVersion, accept, context); } /** * Deletes a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -1399,24 +1060,17 @@ private Mono>> deleteWithResponseAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync( - String workspaceName, - String kustoPoolName, - String databaseName, - String principalAssignmentName, - String resourceGroupName) { - Mono>> mono = - deleteWithResponseAsync( - workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + private PollerFlux, Void> beginDeleteAsync(String workspaceName, String kustoPoolName, + String databaseName, String principalAssignmentName, String resourceGroupName) { + Mono>> mono = deleteWithResponseAsync(workspaceName, kustoPoolName, databaseName, + principalAssignmentName, resourceGroupName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Deletes a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -1429,25 +1083,18 @@ private PollerFlux, Void> beginDeleteAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync( - String workspaceName, - String kustoPoolName, - String databaseName, - String principalAssignmentName, - String resourceGroupName, - Context context) { + private PollerFlux, Void> beginDeleteAsync(String workspaceName, String kustoPoolName, + String databaseName, String principalAssignmentName, String resourceGroupName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - deleteWithResponseAsync( - workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + Mono>> mono = deleteWithResponseAsync(workspaceName, kustoPoolName, databaseName, + principalAssignmentName, resourceGroupName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * Deletes a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -1459,12 +1106,8 @@ private PollerFlux, Void> beginDeleteAsync( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete( - String workspaceName, - String kustoPoolName, - String databaseName, - String principalAssignmentName, - String resourceGroupName) { + public SyncPoller, Void> beginDelete(String workspaceName, String kustoPoolName, + String databaseName, String principalAssignmentName, String resourceGroupName) { return this .beginDeleteAsync(workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName) .getSyncPoller(); @@ -1472,7 +1115,7 @@ public SyncPoller, Void> beginDelete( /** * Deletes a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -1485,22 +1128,15 @@ public SyncPoller, Void> beginDelete( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete( - String workspaceName, - String kustoPoolName, - String databaseName, - String principalAssignmentName, - String resourceGroupName, - Context context) { - return this - .beginDeleteAsync( - workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, context) - .getSyncPoller(); + public SyncPoller, Void> beginDelete(String workspaceName, String kustoPoolName, + String databaseName, String principalAssignmentName, String resourceGroupName, Context context) { + return this.beginDeleteAsync(workspaceName, kustoPoolName, databaseName, principalAssignmentName, + resourceGroupName, context).getSyncPoller(); } /** * Deletes a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -1512,20 +1148,15 @@ public SyncPoller, Void> beginDelete( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync( - String workspaceName, - String kustoPoolName, - String databaseName, - String principalAssignmentName, - String resourceGroupName) { + private Mono deleteAsync(String workspaceName, String kustoPoolName, String databaseName, + String principalAssignmentName, String resourceGroupName) { return beginDeleteAsync(workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName) - .last() - .flatMap(this.client::getLroFinalResultOrError); + .last().flatMap(this.client::getLroFinalResultOrError); } /** * Deletes a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -1538,22 +1169,15 @@ private Mono deleteAsync( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync( - String workspaceName, - String kustoPoolName, - String databaseName, - String principalAssignmentName, - String resourceGroupName, - Context context) { - return beginDeleteAsync( - workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono deleteAsync(String workspaceName, String kustoPoolName, String databaseName, + String principalAssignmentName, String resourceGroupName, Context context) { + return beginDeleteAsync(workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, + context).last().flatMap(this.client::getLroFinalResultOrError); } /** * Deletes a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -1564,18 +1188,14 @@ private Mono deleteAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete( - String workspaceName, - String kustoPoolName, - String databaseName, - String principalAssignmentName, + public void delete(String workspaceName, String kustoPoolName, String databaseName, String principalAssignmentName, String resourceGroupName) { deleteAsync(workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName).block(); } /** * Deletes a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -1587,13 +1207,8 @@ public void delete( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete( - String workspaceName, - String kustoPoolName, - String databaseName, - String principalAssignmentName, - String resourceGroupName, - Context context) { + public void delete(String workspaceName, String kustoPoolName, String databaseName, String principalAssignmentName, + String resourceGroupName, Context context) { deleteAsync(workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, context) .block(); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasePrincipalAssignmentsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasePrincipalAssignmentsImpl.java index b850fb492788..cb389933d223 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasePrincipalAssignmentsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasePrincipalAssignmentsImpl.java @@ -24,47 +24,29 @@ public final class KustoPoolDatabasePrincipalAssignmentsImpl implements KustoPoo private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public KustoPoolDatabasePrincipalAssignmentsImpl( - KustoPoolDatabasePrincipalAssignmentsClient innerClient, + public KustoPoolDatabasePrincipalAssignmentsImpl(KustoPoolDatabasePrincipalAssignmentsClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public Response checkNameAvailabilityWithResponse( - String workspaceName, - String kustoPoolName, - String databaseName, - String resourceGroupName, - DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName, - Context context) { - Response inner = - this - .serviceClient() - .checkNameAvailabilityWithResponse( - workspaceName, kustoPoolName, databaseName, resourceGroupName, principalAssignmentName, context); + public Response checkNameAvailabilityWithResponse(String workspaceName, String kustoPoolName, + String databaseName, String resourceGroupName, + DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName, Context context) { + Response inner = this.serviceClient().checkNameAvailabilityWithResponse(workspaceName, + kustoPoolName, databaseName, resourceGroupName, principalAssignmentName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new CheckNameResultImpl(inner.getValue(), this.manager())); } else { return null; } } - public CheckNameResult checkNameAvailability( - String workspaceName, - String kustoPoolName, - String databaseName, - String resourceGroupName, - DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName) { - CheckNameResultInner inner = - this - .serviceClient() - .checkNameAvailability( - workspaceName, kustoPoolName, databaseName, resourceGroupName, principalAssignmentName); + public CheckNameResult checkNameAvailability(String workspaceName, String kustoPoolName, String databaseName, + String resourceGroupName, DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName) { + CheckNameResultInner inner = this.serviceClient().checkNameAvailability(workspaceName, kustoPoolName, + databaseName, resourceGroupName, principalAssignmentName); if (inner != null) { return new CheckNameResultImpl(inner, this.manager()); } else { @@ -72,53 +54,38 @@ public CheckNameResult checkNameAvailability( } } - public PagedIterable list( - String workspaceName, String kustoPoolName, String databaseName, String resourceGroupName) { - PagedIterable inner = - this.serviceClient().list(workspaceName, kustoPoolName, databaseName, resourceGroupName); - return Utils.mapPage(inner, inner1 -> new DatabasePrincipalAssignmentImpl(inner1, this.manager())); + public PagedIterable list(String workspaceName, String kustoPoolName, + String databaseName, String resourceGroupName) { + PagedIterable inner + = this.serviceClient().list(workspaceName, kustoPoolName, databaseName, resourceGroupName); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new DatabasePrincipalAssignmentImpl(inner1, this.manager())); } - public PagedIterable list( - String workspaceName, String kustoPoolName, String databaseName, String resourceGroupName, Context context) { - PagedIterable inner = - this.serviceClient().list(workspaceName, kustoPoolName, databaseName, resourceGroupName, context); - return Utils.mapPage(inner, inner1 -> new DatabasePrincipalAssignmentImpl(inner1, this.manager())); + public PagedIterable list(String workspaceName, String kustoPoolName, + String databaseName, String resourceGroupName, Context context) { + PagedIterable inner + = this.serviceClient().list(workspaceName, kustoPoolName, databaseName, resourceGroupName, context); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new DatabasePrincipalAssignmentImpl(inner1, this.manager())); } - public Response getWithResponse( - String workspaceName, - String kustoPoolName, - String databaseName, - String principalAssignmentName, - String resourceGroupName, - Context context) { - Response inner = - this - .serviceClient() - .getWithResponse( - workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, context); + public Response getWithResponse(String workspaceName, String kustoPoolName, + String databaseName, String principalAssignmentName, String resourceGroupName, Context context) { + Response inner = this.serviceClient().getWithResponse(workspaceName, + kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new DatabasePrincipalAssignmentImpl(inner.getValue(), this.manager())); } else { return null; } } - public DatabasePrincipalAssignment get( - String workspaceName, - String kustoPoolName, - String databaseName, - String principalAssignmentName, - String resourceGroupName) { - DatabasePrincipalAssignmentInner inner = - this - .serviceClient() - .get(workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName); + public DatabasePrincipalAssignment get(String workspaceName, String kustoPoolName, String databaseName, + String principalAssignmentName, String resourceGroupName) { + DatabasePrincipalAssignmentInner inner = this.serviceClient().get(workspaceName, kustoPoolName, databaseName, + principalAssignmentName, resourceGroupName); if (inner != null) { return new DatabasePrincipalAssignmentImpl(inner, this.manager()); } else { @@ -126,204 +93,133 @@ public DatabasePrincipalAssignment get( } } - public void delete( - String workspaceName, - String kustoPoolName, - String databaseName, - String principalAssignmentName, + public void delete(String workspaceName, String kustoPoolName, String databaseName, String principalAssignmentName, String resourceGroupName) { - this - .serviceClient() - .delete(workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName); + this.serviceClient().delete(workspaceName, kustoPoolName, databaseName, principalAssignmentName, + resourceGroupName); } - public void delete( - String workspaceName, - String kustoPoolName, - String databaseName, - String principalAssignmentName, - String resourceGroupName, - Context context) { - this - .serviceClient() - .delete(workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, context); + public void delete(String workspaceName, String kustoPoolName, String databaseName, String principalAssignmentName, + String resourceGroupName, Context context) { + this.serviceClient().delete(workspaceName, kustoPoolName, databaseName, principalAssignmentName, + resourceGroupName, context); } public DatabasePrincipalAssignment getById(String id) { - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String kustoPoolName = Utils.getValueFromIdByName(id, "kustoPools"); + String kustoPoolName = ResourceManagerUtils.getValueFromIdByName(id, "kustoPools"); if (kustoPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); } - String databaseName = Utils.getValueFromIdByName(id, "databases"); + String databaseName = ResourceManagerUtils.getValueFromIdByName(id, "databases"); if (databaseName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'databases'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'databases'.", id))); } - String principalAssignmentName = Utils.getValueFromIdByName(id, "principalAssignments"); + String principalAssignmentName = ResourceManagerUtils.getValueFromIdByName(id, "principalAssignments"); if (principalAssignmentName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'principalAssignments'.", - id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'principalAssignments'.", id))); } - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - return this - .getWithResponse( - workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, Context.NONE) - .getValue(); + return this.getWithResponse(workspaceName, kustoPoolName, databaseName, principalAssignmentName, + resourceGroupName, Context.NONE).getValue(); } public Response getByIdWithResponse(String id, Context context) { - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String kustoPoolName = Utils.getValueFromIdByName(id, "kustoPools"); + String kustoPoolName = ResourceManagerUtils.getValueFromIdByName(id, "kustoPools"); if (kustoPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); } - String databaseName = Utils.getValueFromIdByName(id, "databases"); + String databaseName = ResourceManagerUtils.getValueFromIdByName(id, "databases"); if (databaseName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'databases'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'databases'.", id))); } - String principalAssignmentName = Utils.getValueFromIdByName(id, "principalAssignments"); + String principalAssignmentName = ResourceManagerUtils.getValueFromIdByName(id, "principalAssignments"); if (principalAssignmentName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'principalAssignments'.", - id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'principalAssignments'.", id))); } - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - return this - .getWithResponse( - workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, context); + return this.getWithResponse(workspaceName, kustoPoolName, databaseName, principalAssignmentName, + resourceGroupName, context); } public void deleteById(String id) { - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String kustoPoolName = Utils.getValueFromIdByName(id, "kustoPools"); + String kustoPoolName = ResourceManagerUtils.getValueFromIdByName(id, "kustoPools"); if (kustoPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); } - String databaseName = Utils.getValueFromIdByName(id, "databases"); + String databaseName = ResourceManagerUtils.getValueFromIdByName(id, "databases"); if (databaseName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'databases'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'databases'.", id))); } - String principalAssignmentName = Utils.getValueFromIdByName(id, "principalAssignments"); + String principalAssignmentName = ResourceManagerUtils.getValueFromIdByName(id, "principalAssignments"); if (principalAssignmentName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'principalAssignments'.", - id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'principalAssignments'.", id))); } - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - this - .delete( - workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, Context.NONE); + this.delete(workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, + Context.NONE); } public void deleteByIdWithResponse(String id, Context context) { - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String kustoPoolName = Utils.getValueFromIdByName(id, "kustoPools"); + String kustoPoolName = ResourceManagerUtils.getValueFromIdByName(id, "kustoPools"); if (kustoPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); } - String databaseName = Utils.getValueFromIdByName(id, "databases"); + String databaseName = ResourceManagerUtils.getValueFromIdByName(id, "databases"); if (databaseName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'databases'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'databases'.", id))); } - String principalAssignmentName = Utils.getValueFromIdByName(id, "principalAssignments"); + String principalAssignmentName = ResourceManagerUtils.getValueFromIdByName(id, "principalAssignments"); if (principalAssignmentName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'principalAssignments'.", - id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'principalAssignments'.", id))); } - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } this.delete(workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasesClientImpl.java index 11c4d2d72f35..19b9686251fb 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasesClientImpl.java @@ -39,22 +39,28 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in KustoPoolDatabasesClient. */ +/** + * An instance of this class provides access to all the operations defined in KustoPoolDatabasesClient. + */ public final class KustoPoolDatabasesClientImpl implements KustoPoolDatabasesClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final KustoPoolDatabasesService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of KustoPoolDatabasesClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ KustoPoolDatabasesClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy.create(KustoPoolDatabasesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service = RestProxy.create(KustoPoolDatabasesService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } @@ -65,96 +71,62 @@ public final class KustoPoolDatabasesClientImpl implements KustoPoolDatabasesCli @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface KustoPoolDatabasesService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/kustoPools/{kustoPoolName}/databases") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByKustoPool( - @HostParam("$host") String endpoint, + Mono> listByKustoPool(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("kustoPoolName") String kustoPoolName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("kustoPoolName") String kustoPoolName, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, + Mono> get(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("kustoPoolName") String kustoPoolName, - @PathParam("databaseName") String databaseName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("kustoPoolName") String kustoPoolName, @PathParam("databaseName") String databaseName, + @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}") - @ExpectedResponses({200, 201}) + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}") + @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate( - @HostParam("$host") String endpoint, + Mono>> createOrUpdate(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("kustoPoolName") String kustoPoolName, - @PathParam("databaseName") String databaseName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") DatabaseInner parameters, - @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("kustoPoolName") String kustoPoolName, @PathParam("databaseName") String databaseName, + @QueryParam("api-version") String apiVersion, @BodyParam("application/json") DatabaseInner parameters, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Patch( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}") - @ExpectedResponses({200, 202}) + @Headers({ "Content-Type: application/json" }) + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> update( - @HostParam("$host") String endpoint, + Mono>> update(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("kustoPoolName") String kustoPoolName, - @PathParam("databaseName") String databaseName, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") DatabaseInner parameters, - @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("kustoPoolName") String kustoPoolName, @PathParam("databaseName") String databaseName, + @QueryParam("api-version") String apiVersion, @BodyParam("application/json") DatabaseInner parameters, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}") - @ExpectedResponses({200, 202, 204}) + @Headers({ "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}") + @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete( - @HostParam("$host") String endpoint, + Mono>> delete(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("kustoPoolName") String kustoPoolName, - @PathParam("databaseName") String databaseName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("kustoPoolName") String kustoPoolName, @PathParam("databaseName") String databaseName, + @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); } /** * Returns the list of databases of the given Kusto pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -162,22 +134,18 @@ Mono>> delete( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list Kusto databases operation response along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByKustoPoolSinglePageAsync( - String resourceGroupName, String workspaceName, String kustoPoolName) { + private Mono> listByKustoPoolSinglePageAsync(String resourceGroupName, + String workspaceName, String kustoPoolName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -192,28 +160,16 @@ private Mono> listByKustoPoolSinglePageAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .listByKustoPool( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - kustoPoolName, - apiVersion, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)) + .withContext(context -> service.listByKustoPool(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, kustoPoolName, apiVersion, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), null, null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Returns the list of databases of the given Kusto pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -222,22 +178,18 @@ private Mono> listByKustoPoolSinglePageAsync( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list Kusto databases operation response along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByKustoPoolSinglePageAsync( - String resourceGroupName, String workspaceName, String kustoPoolName, Context context) { + private Mono> listByKustoPoolSinglePageAsync(String resourceGroupName, + String workspaceName, String kustoPoolName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -253,24 +205,15 @@ private Mono> listByKustoPoolSinglePageAsync( final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByKustoPool( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - kustoPoolName, - apiVersion, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)); + .listByKustoPool(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + workspaceName, kustoPoolName, apiVersion, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), null, null)); } /** * Returns the list of databases of the given Kusto pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -280,14 +223,14 @@ private Mono> listByKustoPoolSinglePageAsync( * @return the list Kusto databases operation response as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByKustoPoolAsync( - String resourceGroupName, String workspaceName, String kustoPoolName) { + private PagedFlux listByKustoPoolAsync(String resourceGroupName, String workspaceName, + String kustoPoolName) { return new PagedFlux<>(() -> listByKustoPoolSinglePageAsync(resourceGroupName, workspaceName, kustoPoolName)); } /** * Returns the list of databases of the given Kusto pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -298,15 +241,15 @@ private PagedFlux listByKustoPoolAsync( * @return the list Kusto databases operation response as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByKustoPoolAsync( - String resourceGroupName, String workspaceName, String kustoPoolName, Context context) { + private PagedFlux listByKustoPoolAsync(String resourceGroupName, String workspaceName, + String kustoPoolName, Context context) { return new PagedFlux<>( () -> listByKustoPoolSinglePageAsync(resourceGroupName, workspaceName, kustoPoolName, context)); } /** * Returns the list of databases of the given Kusto pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -316,14 +259,14 @@ private PagedFlux listByKustoPoolAsync( * @return the list Kusto databases operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByKustoPool( - String resourceGroupName, String workspaceName, String kustoPoolName) { + public PagedIterable listByKustoPool(String resourceGroupName, String workspaceName, + String kustoPoolName) { return new PagedIterable<>(listByKustoPoolAsync(resourceGroupName, workspaceName, kustoPoolName)); } /** * Returns the list of databases of the given Kusto pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -334,14 +277,14 @@ public PagedIterable listByKustoPool( * @return the list Kusto databases operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByKustoPool( - String resourceGroupName, String workspaceName, String kustoPoolName, Context context) { + public PagedIterable listByKustoPool(String resourceGroupName, String workspaceName, + String kustoPoolName, Context context) { return new PagedIterable<>(listByKustoPoolAsync(resourceGroupName, workspaceName, kustoPoolName, context)); } /** * Returns a database. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -352,19 +295,15 @@ public PagedIterable listByKustoPool( * @return class representing a Kusto database along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName) { + private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, + String kustoPoolName, String databaseName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -382,25 +321,14 @@ private Mono> getWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - kustoPoolName, - databaseName, - apiVersion, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, kustoPoolName, databaseName, apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Returns a database. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -412,19 +340,15 @@ private Mono> getWithResponseAsync( * @return class representing a Kusto database along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, + String kustoPoolName, String databaseName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -442,22 +366,13 @@ private Mono> getWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - kustoPoolName, - databaseName, - apiVersion, - accept, - context); + return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, + kustoPoolName, databaseName, apiVersion, accept, context); } /** * Returns a database. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -468,15 +383,15 @@ private Mono> getWithResponseAsync( * @return class representing a Kusto database on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName) { + private Mono getAsync(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName) { return getWithResponseAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Returns a database. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -488,14 +403,14 @@ private Mono getAsync( * @return class representing a Kusto database along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, Context context) { + public Response getWithResponse(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName, Context context) { return getWithResponseAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, context).block(); } /** * Returns a database. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -506,14 +421,14 @@ public Response getWithResponse( * @return class representing a Kusto database. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DatabaseInner get( - String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName) { + public DatabaseInner get(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName) { return getWithResponse(resourceGroupName, workspaceName, kustoPoolName, databaseName, Context.NONE).getValue(); } /** * Creates or updates a database. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -525,23 +440,15 @@ public DatabaseInner get( * @return class representing a Kusto database along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DatabaseInner parameters) { + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String workspaceName, String kustoPoolName, String databaseName, DatabaseInner parameters) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -564,26 +471,14 @@ private Mono>> createOrUpdateWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - kustoPoolName, - databaseName, - apiVersion, - parameters, - accept, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, kustoPoolName, databaseName, apiVersion, parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates a database. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -596,24 +491,15 @@ private Mono>> createOrUpdateWithResponseAsync( * @return class representing a Kusto database along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DatabaseInner parameters, - Context context) { + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String workspaceName, String kustoPoolName, String databaseName, DatabaseInner parameters, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -636,23 +522,13 @@ private Mono>> createOrUpdateWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .createOrUpdate( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - kustoPoolName, - databaseName, - apiVersion, - parameters, - accept, - context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + workspaceName, kustoPoolName, databaseName, apiVersion, parameters, accept, context); } /** * Creates or updates a database. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -664,27 +540,17 @@ private Mono>> createOrUpdateWithResponseAsync( * @return the {@link PollerFlux} for polling of class representing a Kusto database. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, DatabaseInner> beginCreateOrUpdateAsync( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DatabaseInner parameters) { - Mono>> mono = - createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - DatabaseInner.class, - DatabaseInner.class, - this.client.getContext()); + private PollerFlux, DatabaseInner> beginCreateOrUpdateAsync(String resourceGroupName, + String workspaceName, String kustoPoolName, String databaseName, DatabaseInner parameters) { + Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, + kustoPoolName, databaseName, parameters); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + DatabaseInner.class, DatabaseInner.class, this.client.getContext()); } /** * Creates or updates a database. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -697,26 +563,18 @@ private PollerFlux, DatabaseInner> beginCreateOrUpdate * @return the {@link PollerFlux} for polling of class representing a Kusto database. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, DatabaseInner> beginCreateOrUpdateAsync( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DatabaseInner parameters, - Context context) { + private PollerFlux, DatabaseInner> beginCreateOrUpdateAsync(String resourceGroupName, + String workspaceName, String kustoPoolName, String databaseName, DatabaseInner parameters, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - createOrUpdateWithResponseAsync( - resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters, context); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), DatabaseInner.class, DatabaseInner.class, context); + Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, + kustoPoolName, databaseName, parameters, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + DatabaseInner.class, DatabaseInner.class, context); } /** * Creates or updates a database. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -728,20 +586,15 @@ private PollerFlux, DatabaseInner> beginCreateOrUpdate * @return the {@link SyncPoller} for polling of class representing a Kusto database. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, DatabaseInner> beginCreateOrUpdate( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DatabaseInner parameters) { - return this - .beginCreateOrUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters) + public SyncPoller, DatabaseInner> beginCreateOrUpdate(String resourceGroupName, + String workspaceName, String kustoPoolName, String databaseName, DatabaseInner parameters) { + return this.beginCreateOrUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters) .getSyncPoller(); } /** * Creates or updates a database. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -754,22 +607,15 @@ public SyncPoller, DatabaseInner> beginCreateOrUpdate( * @return the {@link SyncPoller} for polling of class representing a Kusto database. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, DatabaseInner> beginCreateOrUpdate( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DatabaseInner parameters, - Context context) { - return this - .beginCreateOrUpdateAsync( - resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters, context) - .getSyncPoller(); + public SyncPoller, DatabaseInner> beginCreateOrUpdate(String resourceGroupName, + String workspaceName, String kustoPoolName, String databaseName, DatabaseInner parameters, Context context) { + return this.beginCreateOrUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters, + context).getSyncPoller(); } /** * Creates or updates a database. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -781,20 +627,15 @@ public SyncPoller, DatabaseInner> beginCreateOrUpdate( * @return class representing a Kusto database on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DatabaseInner parameters) { + private Mono createOrUpdateAsync(String resourceGroupName, String workspaceName, + String kustoPoolName, String databaseName, DatabaseInner parameters) { return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters) - .last() - .flatMap(this.client::getLroFinalResultOrError); + .last().flatMap(this.client::getLroFinalResultOrError); } /** * Creates or updates a database. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -807,22 +648,15 @@ private Mono createOrUpdateAsync( * @return class representing a Kusto database on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DatabaseInner parameters, - Context context) { - return beginCreateOrUpdateAsync( - resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono createOrUpdateAsync(String resourceGroupName, String workspaceName, + String kustoPoolName, String databaseName, DatabaseInner parameters, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters, + context).last().flatMap(this.client::getLroFinalResultOrError); } /** * Creates or updates a database. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -834,18 +668,14 @@ private Mono createOrUpdateAsync( * @return class representing a Kusto database. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DatabaseInner createOrUpdate( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DatabaseInner parameters) { + public DatabaseInner createOrUpdate(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName, DatabaseInner parameters) { return createOrUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters).block(); } /** * Creates or updates a database. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -858,20 +688,15 @@ public DatabaseInner createOrUpdate( * @return class representing a Kusto database. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DatabaseInner createOrUpdate( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DatabaseInner parameters, - Context context) { + public DatabaseInner createOrUpdate(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName, DatabaseInner parameters, Context context) { return createOrUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters, context) .block(); } /** * Updates a database. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -883,23 +708,15 @@ public DatabaseInner createOrUpdate( * @return class representing a Kusto database along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DatabaseInner parameters) { + private Mono>> updateWithResponseAsync(String resourceGroupName, String workspaceName, + String kustoPoolName, String databaseName, DatabaseInner parameters) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -922,26 +739,14 @@ private Mono>> updateWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .update( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - kustoPoolName, - databaseName, - apiVersion, - parameters, - accept, - context)) + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, kustoPoolName, databaseName, apiVersion, parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Updates a database. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -954,24 +759,15 @@ private Mono>> updateWithResponseAsync( * @return class representing a Kusto database along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DatabaseInner parameters, - Context context) { + private Mono>> updateWithResponseAsync(String resourceGroupName, String workspaceName, + String kustoPoolName, String databaseName, DatabaseInner parameters, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -994,23 +790,13 @@ private Mono>> updateWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .update( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - kustoPoolName, - databaseName, - apiVersion, - parameters, - accept, - context); + return service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + workspaceName, kustoPoolName, databaseName, apiVersion, parameters, accept, context); } /** * Updates a database. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -1022,27 +808,17 @@ private Mono>> updateWithResponseAsync( * @return the {@link PollerFlux} for polling of class representing a Kusto database. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, DatabaseInner> beginUpdateAsync( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DatabaseInner parameters) { - Mono>> mono = - updateWithResponseAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - DatabaseInner.class, - DatabaseInner.class, - this.client.getContext()); + private PollerFlux, DatabaseInner> beginUpdateAsync(String resourceGroupName, + String workspaceName, String kustoPoolName, String databaseName, DatabaseInner parameters) { + Mono>> mono + = updateWithResponseAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + DatabaseInner.class, DatabaseInner.class, this.client.getContext()); } /** * Updates a database. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -1055,25 +831,18 @@ private PollerFlux, DatabaseInner> beginUpdateAsync( * @return the {@link PollerFlux} for polling of class representing a Kusto database. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, DatabaseInner> beginUpdateAsync( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DatabaseInner parameters, - Context context) { + private PollerFlux, DatabaseInner> beginUpdateAsync(String resourceGroupName, + String workspaceName, String kustoPoolName, String databaseName, DatabaseInner parameters, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - updateWithResponseAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters, context); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), DatabaseInner.class, DatabaseInner.class, context); + Mono>> mono = updateWithResponseAsync(resourceGroupName, workspaceName, kustoPoolName, + databaseName, parameters, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + DatabaseInner.class, DatabaseInner.class, context); } /** * Updates a database. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -1085,20 +854,15 @@ private PollerFlux, DatabaseInner> beginUpdateAsync( * @return the {@link SyncPoller} for polling of class representing a Kusto database. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, DatabaseInner> beginUpdate( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DatabaseInner parameters) { - return this - .beginUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters) + public SyncPoller, DatabaseInner> beginUpdate(String resourceGroupName, + String workspaceName, String kustoPoolName, String databaseName, DatabaseInner parameters) { + return this.beginUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters) .getSyncPoller(); } /** * Updates a database. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -1111,21 +875,15 @@ public SyncPoller, DatabaseInner> beginUpdate( * @return the {@link SyncPoller} for polling of class representing a Kusto database. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, DatabaseInner> beginUpdate( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DatabaseInner parameters, - Context context) { - return this - .beginUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters, context) + public SyncPoller, DatabaseInner> beginUpdate(String resourceGroupName, + String workspaceName, String kustoPoolName, String databaseName, DatabaseInner parameters, Context context) { + return this.beginUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters, context) .getSyncPoller(); } /** * Updates a database. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -1137,20 +895,15 @@ public SyncPoller, DatabaseInner> beginUpdate( * @return class representing a Kusto database on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DatabaseInner parameters) { - return beginUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters) - .last() + private Mono updateAsync(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName, DatabaseInner parameters) { + return beginUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Updates a database. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -1163,21 +916,15 @@ private Mono updateAsync( * @return class representing a Kusto database on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DatabaseInner parameters, - Context context) { + private Mono updateAsync(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName, DatabaseInner parameters, Context context) { return beginUpdateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + .last().flatMap(this.client::getLroFinalResultOrError); } /** * Updates a database. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -1189,18 +936,14 @@ private Mono updateAsync( * @return class representing a Kusto database. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DatabaseInner update( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DatabaseInner parameters) { + public DatabaseInner update(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName, DatabaseInner parameters) { return updateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters).block(); } /** * Updates a database. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -1213,19 +956,14 @@ public DatabaseInner update( * @return class representing a Kusto database. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DatabaseInner update( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DatabaseInner parameters, - Context context) { + public DatabaseInner update(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName, DatabaseInner parameters, Context context) { return updateAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters, context).block(); } /** * Deletes the database with the given name. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -1236,19 +974,15 @@ public DatabaseInner update( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync( - String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String workspaceName, + String kustoPoolName, String databaseName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1266,25 +1000,14 @@ private Mono>> deleteWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .delete( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - kustoPoolName, - databaseName, - apiVersion, - accept, - context)) + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, kustoPoolName, databaseName, apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes the database with the given name. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -1296,19 +1019,15 @@ private Mono>> deleteWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync( - String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, Context context) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String workspaceName, + String kustoPoolName, String databaseName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1326,22 +1045,13 @@ private Mono>> deleteWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .delete( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - kustoPoolName, - databaseName, - apiVersion, - accept, - context); + return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, + workspaceName, kustoPoolName, databaseName, apiVersion, accept, context); } /** * Deletes the database with the given name. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -1352,19 +1062,17 @@ private Mono>> deleteWithResponseAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync( - String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName) { - Mono>> mono = - deleteWithResponseAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String workspaceName, + String kustoPoolName, String databaseName) { + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Deletes the database with the given name. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -1376,19 +1084,18 @@ private PollerFlux, Void> beginDeleteAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync( - String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, Context context) { + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String workspaceName, + String kustoPoolName, String databaseName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - deleteWithResponseAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * Deletes the database with the given name. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -1399,14 +1106,14 @@ private PollerFlux, Void> beginDeleteAsync( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete( - String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName) { + public SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, + String kustoPoolName, String databaseName) { return this.beginDeleteAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName).getSyncPoller(); } /** * Deletes the database with the given name. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -1418,16 +1125,15 @@ public SyncPoller, Void> beginDelete( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete( - String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, Context context) { - return this - .beginDeleteAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, context) + public SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, + String kustoPoolName, String databaseName, Context context) { + return this.beginDeleteAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, context) .getSyncPoller(); } /** * Deletes the database with the given name. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -1438,16 +1144,15 @@ public SyncPoller, Void> beginDelete( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync( - String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName) { - return beginDeleteAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName) - .last() + private Mono deleteAsync(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName) { + return beginDeleteAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Deletes the database with the given name. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -1459,16 +1164,15 @@ private Mono deleteAsync( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync( - String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, Context context) { - return beginDeleteAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, context) - .last() + private Mono deleteAsync(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName, Context context) { + return beginDeleteAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Deletes the database with the given name. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -1484,7 +1188,7 @@ public void delete(String resourceGroupName, String workspaceName, String kustoP /** * Deletes the database with the given name. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -1495,8 +1199,8 @@ public void delete(String resourceGroupName, String workspaceName, String kustoP * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete( - String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, Context context) { + public void delete(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, + Context context) { deleteAsync(resourceGroupName, workspaceName, kustoPoolName, databaseName, context).block(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasesImpl.java index b4dcd05cdcf3..987534077978 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolDatabasesImpl.java @@ -21,37 +21,32 @@ public final class KustoPoolDatabasesImpl implements KustoPoolDatabases { private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public KustoPoolDatabasesImpl( - KustoPoolDatabasesClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + public KustoPoolDatabasesImpl(KustoPoolDatabasesClient innerClient, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public PagedIterable listByKustoPool( - String resourceGroupName, String workspaceName, String kustoPoolName) { - PagedIterable inner = - this.serviceClient().listByKustoPool(resourceGroupName, workspaceName, kustoPoolName); - return Utils.mapPage(inner, inner1 -> new DatabaseImpl(inner1, this.manager())); + public PagedIterable listByKustoPool(String resourceGroupName, String workspaceName, + String kustoPoolName) { + PagedIterable inner + = this.serviceClient().listByKustoPool(resourceGroupName, workspaceName, kustoPoolName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new DatabaseImpl(inner1, this.manager())); } - public PagedIterable listByKustoPool( - String resourceGroupName, String workspaceName, String kustoPoolName, Context context) { - PagedIterable inner = - this.serviceClient().listByKustoPool(resourceGroupName, workspaceName, kustoPoolName, context); - return Utils.mapPage(inner, inner1 -> new DatabaseImpl(inner1, this.manager())); + public PagedIterable listByKustoPool(String resourceGroupName, String workspaceName, String kustoPoolName, + Context context) { + PagedIterable inner + = this.serviceClient().listByKustoPool(resourceGroupName, workspaceName, kustoPoolName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new DatabaseImpl(inner1, this.manager())); } - public Response getWithResponse( - String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, Context context) { - Response inner = - this - .serviceClient() - .getWithResponse(resourceGroupName, workspaceName, kustoPoolName, databaseName, context); + public Response getWithResponse(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName, Context context) { + Response inner = this.serviceClient().getWithResponse(resourceGroupName, workspaceName, + kustoPoolName, databaseName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new DatabaseImpl(inner.getValue(), this.manager())); } else { return null; @@ -67,16 +62,10 @@ public Database get(String resourceGroupName, String workspaceName, String kusto } } - public Database createOrUpdate( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DatabaseInner parameters) { - DatabaseInner inner = - this - .serviceClient() - .createOrUpdate(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters); + public Database createOrUpdate(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName, DatabaseInner parameters) { + DatabaseInner inner = this.serviceClient().createOrUpdate(resourceGroupName, workspaceName, kustoPoolName, + databaseName, parameters); if (inner != null) { return new DatabaseImpl(inner, this.manager()); } else { @@ -84,17 +73,10 @@ public Database createOrUpdate( } } - public Database createOrUpdate( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DatabaseInner parameters, - Context context) { - DatabaseInner inner = - this - .serviceClient() - .createOrUpdate(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters, context); + public Database createOrUpdate(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName, DatabaseInner parameters, Context context) { + DatabaseInner inner = this.serviceClient().createOrUpdate(resourceGroupName, workspaceName, kustoPoolName, + databaseName, parameters, context); if (inner != null) { return new DatabaseImpl(inner, this.manager()); } else { @@ -102,14 +84,10 @@ public Database createOrUpdate( } } - public Database update( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, + public Database update(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, DatabaseInner parameters) { - DatabaseInner inner = - this.serviceClient().update(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters); + DatabaseInner inner + = this.serviceClient().update(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters); if (inner != null) { return new DatabaseImpl(inner, this.manager()); } else { @@ -117,17 +95,10 @@ public Database update( } } - public Database update( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DatabaseInner parameters, - Context context) { - DatabaseInner inner = - this - .serviceClient() - .update(resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters, context); + public Database update(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, + DatabaseInner parameters, Context context) { + DatabaseInner inner = this.serviceClient().update(resourceGroupName, workspaceName, kustoPoolName, databaseName, + parameters, context); if (inner != null) { return new DatabaseImpl(inner, this.manager()); } else { @@ -139,8 +110,8 @@ public void delete(String resourceGroupName, String workspaceName, String kustoP this.serviceClient().delete(resourceGroupName, workspaceName, kustoPoolName, databaseName); } - public void delete( - String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, Context context) { + public void delete(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, + Context context) { this.serviceClient().delete(resourceGroupName, workspaceName, kustoPoolName, databaseName, context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolImpl.java index 9a89c6f1045e..4ef9c8fe4d85 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolImpl.java @@ -145,34 +145,14 @@ public KustoPoolImpl withExistingWorkspace(String workspaceName, String resource } public KustoPool create() { - this.innerObject = - serviceManager - .serviceClient() - .getKustoPools() - .createOrUpdate( - workspaceName, - resourceGroupName, - kustoPoolName, - this.innerModel(), - createIfMatch, - createIfNoneMatch, - Context.NONE); + this.innerObject = serviceManager.serviceClient().getKustoPools().createOrUpdate(workspaceName, + resourceGroupName, kustoPoolName, this.innerModel(), createIfMatch, createIfNoneMatch, Context.NONE); return this; } public KustoPool create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getKustoPools() - .createOrUpdate( - workspaceName, - resourceGroupName, - kustoPoolName, - this.innerModel(), - createIfMatch, - createIfNoneMatch, - context); + this.innerObject = serviceManager.serviceClient().getKustoPools().createOrUpdate(workspaceName, + resourceGroupName, kustoPoolName, this.innerModel(), createIfMatch, createIfNoneMatch, context); return this; } @@ -191,48 +171,34 @@ public KustoPoolImpl update() { } public KustoPool apply() { - this.innerObject = - serviceManager - .serviceClient() - .getKustoPools() - .update(workspaceName, resourceGroupName, kustoPoolName, updateParameters, updateIfMatch, Context.NONE); + this.innerObject = serviceManager.serviceClient().getKustoPools().update(workspaceName, resourceGroupName, + kustoPoolName, updateParameters, updateIfMatch, Context.NONE); return this; } public KustoPool apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getKustoPools() - .update(workspaceName, resourceGroupName, kustoPoolName, updateParameters, updateIfMatch, context); + this.innerObject = serviceManager.serviceClient().getKustoPools().update(workspaceName, resourceGroupName, + kustoPoolName, updateParameters, updateIfMatch, context); return this; } KustoPoolImpl(KustoPoolInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.workspaceName = Utils.getValueFromIdByName(innerObject.id(), "workspaces"); - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.kustoPoolName = Utils.getValueFromIdByName(innerObject.id(), "kustoPools"); + this.workspaceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workspaces"); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.kustoPoolName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "kustoPools"); } public KustoPool refresh() { - this.innerObject = - serviceManager - .serviceClient() - .getKustoPools() - .getWithResponse(workspaceName, kustoPoolName, resourceGroupName, Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getKustoPools() + .getWithResponse(workspaceName, kustoPoolName, resourceGroupName, Context.NONE).getValue(); return this; } public KustoPool refresh(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getKustoPools() - .getWithResponse(workspaceName, kustoPoolName, resourceGroupName, context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getKustoPools() + .getWithResponse(workspaceName, kustoPoolName, resourceGroupName, context).getValue(); return this; } @@ -257,34 +223,28 @@ public PagedIterable listLanguageExtensions() { } public PagedIterable listLanguageExtensions(Context context) { - return serviceManager - .kustoPools() - .listLanguageExtensions(workspaceName, kustoPoolName, resourceGroupName, context); + return serviceManager.kustoPools().listLanguageExtensions(workspaceName, kustoPoolName, resourceGroupName, + context); } public void addLanguageExtensions(LanguageExtensionsList languageExtensionsToAdd) { - serviceManager - .kustoPools() - .addLanguageExtensions(workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToAdd); + serviceManager.kustoPools().addLanguageExtensions(workspaceName, kustoPoolName, resourceGroupName, + languageExtensionsToAdd); } public void addLanguageExtensions(LanguageExtensionsList languageExtensionsToAdd, Context context) { - serviceManager - .kustoPools() - .addLanguageExtensions(workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToAdd, context); + serviceManager.kustoPools().addLanguageExtensions(workspaceName, kustoPoolName, resourceGroupName, + languageExtensionsToAdd, context); } public void removeLanguageExtensions(LanguageExtensionsList languageExtensionsToRemove) { - serviceManager - .kustoPools() - .removeLanguageExtensions(workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToRemove); + serviceManager.kustoPools().removeLanguageExtensions(workspaceName, kustoPoolName, resourceGroupName, + languageExtensionsToRemove); } public void removeLanguageExtensions(LanguageExtensionsList languageExtensionsToRemove, Context context) { - serviceManager - .kustoPools() - .removeLanguageExtensions( - workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToRemove, context); + serviceManager.kustoPools().removeLanguageExtensions(workspaceName, kustoPoolName, resourceGroupName, + languageExtensionsToRemove, context); } public PagedIterable listFollowerDatabases() { @@ -292,22 +252,18 @@ public PagedIterable listFollowerDatabases() { } public PagedIterable listFollowerDatabases(Context context) { - return serviceManager - .kustoPools() - .listFollowerDatabases(workspaceName, kustoPoolName, resourceGroupName, context); + return serviceManager.kustoPools().listFollowerDatabases(workspaceName, kustoPoolName, resourceGroupName, + context); } public void detachFollowerDatabases(FollowerDatabaseDefinitionInner followerDatabaseToRemove) { - serviceManager - .kustoPools() - .detachFollowerDatabases(workspaceName, kustoPoolName, resourceGroupName, followerDatabaseToRemove); + serviceManager.kustoPools().detachFollowerDatabases(workspaceName, kustoPoolName, resourceGroupName, + followerDatabaseToRemove); } public void detachFollowerDatabases(FollowerDatabaseDefinitionInner followerDatabaseToRemove, Context context) { - serviceManager - .kustoPools() - .detachFollowerDatabases( - workspaceName, kustoPoolName, resourceGroupName, followerDatabaseToRemove, context); + serviceManager.kustoPools().detachFollowerDatabases(workspaceName, kustoPoolName, resourceGroupName, + followerDatabaseToRemove, context); } public KustoPoolImpl withRegion(Region location) { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolListResultImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolListResultImpl.java index 02e1a39a5915..7baadf50350b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolListResultImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolListResultImpl.java @@ -17,8 +17,8 @@ public final class KustoPoolListResultImpl implements KustoPoolListResult { private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - KustoPoolListResultImpl( - KustoPoolListResultInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + KustoPoolListResultImpl(KustoPoolListResultInner innerObject, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; } @@ -26,12 +26,8 @@ public final class KustoPoolListResultImpl implements KustoPoolListResult { public List value() { List inner = this.innerModel().value(); if (inner != null) { - return Collections - .unmodifiableList( - inner - .stream() - .map(inner1 -> new KustoPoolImpl(inner1, this.manager())) - .collect(Collectors.toList())); + return Collections.unmodifiableList( + inner.stream().map(inner1 -> new KustoPoolImpl(inner1, this.manager())).collect(Collectors.toList())); } else { return Collections.emptyList(); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrincipalAssignmentsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrincipalAssignmentsClientImpl.java index d0152595f161..5a1907af216e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrincipalAssignmentsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrincipalAssignmentsClientImpl.java @@ -41,26 +41,28 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in KustoPoolPrincipalAssignmentsClient. */ +/** + * An instance of this class provides access to all the operations defined in KustoPoolPrincipalAssignmentsClient. + */ public final class KustoPoolPrincipalAssignmentsClientImpl implements KustoPoolPrincipalAssignmentsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final KustoPoolPrincipalAssignmentsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of KustoPoolPrincipalAssignmentsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ KustoPoolPrincipalAssignmentsClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy - .create( - KustoPoolPrincipalAssignmentsService.class, - client.getHttpPipeline(), - client.getSerializerAdapter()); + this.service = RestProxy.create(KustoPoolPrincipalAssignmentsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } @@ -71,95 +73,65 @@ public final class KustoPoolPrincipalAssignmentsClientImpl implements KustoPoolP @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface KustoPoolPrincipalAssignmentsService { - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/kustoPools/{kustoPoolName}/checkPrincipalAssignmentNameAvailability") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/checkPrincipalAssignmentNameAvailability") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> checkNameAvailability( - @HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, - @PathParam("kustoPoolName") String kustoPoolName, + Mono> checkNameAvailability(@HostParam("$host") String endpoint, + @PathParam("workspaceName") String workspaceName, @PathParam("kustoPoolName") String kustoPoolName, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @QueryParam("api-version") String apiVersion, + @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, @BodyParam("application/json") ClusterPrincipalAssignmentCheckNameRequest principalAssignmentName, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/kustoPools/{kustoPoolName}/principalAssignments") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/principalAssignments") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, - @PathParam("kustoPoolName") String kustoPoolName, + Mono> list(@HostParam("$host") String endpoint, + @PathParam("workspaceName") String workspaceName, @PathParam("kustoPoolName") String kustoPoolName, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/kustoPools/{kustoPoolName}/principalAssignments/{principalAssignmentName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/principalAssignments/{principalAssignmentName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, - @PathParam("kustoPoolName") String kustoPoolName, + Mono> get(@HostParam("$host") String endpoint, + @PathParam("workspaceName") String workspaceName, @PathParam("kustoPoolName") String kustoPoolName, @PathParam("principalAssignmentName") String principalAssignmentName, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/kustoPools/{kustoPoolName}/principalAssignments/{principalAssignmentName}") - @ExpectedResponses({200, 201}) + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/principalAssignments/{principalAssignmentName}") + @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate( - @HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, - @PathParam("kustoPoolName") String kustoPoolName, + Mono>> createOrUpdate(@HostParam("$host") String endpoint, + @PathParam("workspaceName") String workspaceName, @PathParam("kustoPoolName") String kustoPoolName, @PathParam("principalAssignmentName") String principalAssignmentName, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @QueryParam("api-version") String apiVersion, + @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, @BodyParam("application/json") ClusterPrincipalAssignmentInner parameters, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/kustoPools/{kustoPoolName}/principalAssignments/{principalAssignmentName}") - @ExpectedResponses({200, 202, 204}) + @Headers({ "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/principalAssignments/{principalAssignmentName}") + @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete( - @HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, - @PathParam("kustoPoolName") String kustoPoolName, + Mono>> delete(@HostParam("$host") String endpoint, + @PathParam("workspaceName") String workspaceName, @PathParam("kustoPoolName") String kustoPoolName, @PathParam("principalAssignmentName") String principalAssignmentName, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, Context context); } /** * Checks that the principal assignment name is valid and is not already in use. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -168,19 +140,15 @@ Mono>> delete( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result returned from a check name availability request along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> checkNameAvailabilityWithResponseAsync( - String workspaceName, - String kustoPoolName, - String resourceGroupName, + private Mono> checkNameAvailabilityWithResponseAsync(String workspaceName, + String kustoPoolName, String resourceGroupName, ClusterPrincipalAssignmentCheckNameRequest principalAssignmentName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -189,44 +157,31 @@ private Mono> checkNameAvailabilityWithResponseAs return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } if (principalAssignmentName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter principalAssignmentName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter principalAssignmentName is required and cannot be null.")); } else { principalAssignmentName.validate(); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .checkNameAvailability( - this.client.getEndpoint(), - workspaceName, - kustoPoolName, - this.client.getSubscriptionId(), - resourceGroupName, - apiVersion, - principalAssignmentName, - accept, - context)) + .withContext(context -> service.checkNameAvailability(this.client.getEndpoint(), workspaceName, + kustoPoolName, this.client.getSubscriptionId(), resourceGroupName, apiVersion, principalAssignmentName, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Checks that the principal assignment name is valid and is not already in use. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -236,20 +191,15 @@ private Mono> checkNameAvailabilityWithResponseAs * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result returned from a check name availability request along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> checkNameAvailabilityWithResponseAsync( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - ClusterPrincipalAssignmentCheckNameRequest principalAssignmentName, - Context context) { + private Mono> checkNameAvailabilityWithResponseAsync(String workspaceName, + String kustoPoolName, String resourceGroupName, + ClusterPrincipalAssignmentCheckNameRequest principalAssignmentName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -258,41 +208,29 @@ private Mono> checkNameAvailabilityWithResponseAs return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } if (principalAssignmentName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter principalAssignmentName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter principalAssignmentName is required and cannot be null.")); } else { principalAssignmentName.validate(); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .checkNameAvailability( - this.client.getEndpoint(), - workspaceName, - kustoPoolName, - this.client.getSubscriptionId(), - resourceGroupName, - apiVersion, - principalAssignmentName, - accept, - context); + return service.checkNameAvailability(this.client.getEndpoint(), workspaceName, kustoPoolName, + this.client.getSubscriptionId(), resourceGroupName, apiVersion, principalAssignmentName, accept, context); } /** * Checks that the principal assignment name is valid and is not already in use. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -303,19 +241,15 @@ private Mono> checkNameAvailabilityWithResponseAs * @return the result returned from a check name availability request on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono checkNameAvailabilityAsync( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - ClusterPrincipalAssignmentCheckNameRequest principalAssignmentName) { - return checkNameAvailabilityWithResponseAsync( - workspaceName, kustoPoolName, resourceGroupName, principalAssignmentName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + private Mono checkNameAvailabilityAsync(String workspaceName, String kustoPoolName, + String resourceGroupName, ClusterPrincipalAssignmentCheckNameRequest principalAssignmentName) { + return checkNameAvailabilityWithResponseAsync(workspaceName, kustoPoolName, resourceGroupName, + principalAssignmentName).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Checks that the principal assignment name is valid and is not already in use. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -327,20 +261,15 @@ private Mono checkNameAvailabilityAsync( * @return the result returned from a check name availability request along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response checkNameAvailabilityWithResponse( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - ClusterPrincipalAssignmentCheckNameRequest principalAssignmentName, - Context context) { - return checkNameAvailabilityWithResponseAsync( - workspaceName, kustoPoolName, resourceGroupName, principalAssignmentName, context) - .block(); + public Response checkNameAvailabilityWithResponse(String workspaceName, String kustoPoolName, + String resourceGroupName, ClusterPrincipalAssignmentCheckNameRequest principalAssignmentName, Context context) { + return checkNameAvailabilityWithResponseAsync(workspaceName, kustoPoolName, resourceGroupName, + principalAssignmentName, context).block(); } /** * Checks that the principal assignment name is valid and is not already in use. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -351,19 +280,15 @@ public Response checkNameAvailabilityWithResponse( * @return the result returned from a check name availability request. */ @ServiceMethod(returns = ReturnType.SINGLE) - public CheckNameResultInner checkNameAvailability( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - ClusterPrincipalAssignmentCheckNameRequest principalAssignmentName) { - return checkNameAvailabilityWithResponse( - workspaceName, kustoPoolName, resourceGroupName, principalAssignmentName, Context.NONE) - .getValue(); + public CheckNameResultInner checkNameAvailability(String workspaceName, String kustoPoolName, + String resourceGroupName, ClusterPrincipalAssignmentCheckNameRequest principalAssignmentName) { + return checkNameAvailabilityWithResponse(workspaceName, kustoPoolName, resourceGroupName, + principalAssignmentName, Context.NONE).getValue(); } /** * Lists all Kusto pool principalAssignments. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -371,16 +296,14 @@ public CheckNameResultInner checkNameAvailability( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list Kusto cluster principal assignments operation response along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String workspaceName, String kustoPoolName, String resourceGroupName) { + private Mono> listSinglePageAsync(String workspaceName, + String kustoPoolName, String resourceGroupName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -389,10 +312,8 @@ private Mono> listSinglePageAsync return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -401,28 +322,16 @@ private Mono> listSinglePageAsync final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .list( - this.client.getEndpoint(), - workspaceName, - kustoPoolName, - this.client.getSubscriptionId(), - resourceGroupName, - apiVersion, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)) + .withContext(context -> service.list(this.client.getEndpoint(), workspaceName, kustoPoolName, + this.client.getSubscriptionId(), resourceGroupName, apiVersion, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Lists all Kusto pool principalAssignments. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -431,16 +340,14 @@ private Mono> listSinglePageAsync * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list Kusto cluster principal assignments operation response along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String workspaceName, String kustoPoolName, String resourceGroupName, Context context) { + private Mono> listSinglePageAsync(String workspaceName, + String kustoPoolName, String resourceGroupName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -449,10 +356,8 @@ private Mono> listSinglePageAsync return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -462,42 +367,33 @@ private Mono> listSinglePageAsync final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list( - this.client.getEndpoint(), - workspaceName, - kustoPoolName, - this.client.getSubscriptionId(), - resourceGroupName, - apiVersion, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)); + .list(this.client.getEndpoint(), workspaceName, kustoPoolName, this.client.getSubscriptionId(), + resourceGroupName, apiVersion, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), null, null)); } /** * Lists all Kusto pool principalAssignments. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto cluster principal assignments operation response as paginated response with {@link - * PagedFlux}. + * @return the list Kusto cluster principal assignments operation response as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( - String workspaceName, String kustoPoolName, String resourceGroupName) { + private PagedFlux listAsync(String workspaceName, String kustoPoolName, + String resourceGroupName) { return new PagedFlux<>(() -> listSinglePageAsync(workspaceName, kustoPoolName, resourceGroupName)); } /** * Lists all Kusto pool principalAssignments. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -505,36 +401,36 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto cluster principal assignments operation response as paginated response with {@link - * PagedFlux}. + * @return the list Kusto cluster principal assignments operation response as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( - String workspaceName, String kustoPoolName, String resourceGroupName, Context context) { + private PagedFlux listAsync(String workspaceName, String kustoPoolName, + String resourceGroupName, Context context) { return new PagedFlux<>(() -> listSinglePageAsync(workspaceName, kustoPoolName, resourceGroupName, context)); } /** * Lists all Kusto pool principalAssignments. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto cluster principal assignments operation response as paginated response with {@link - * PagedIterable}. + * @return the list Kusto cluster principal assignments operation response as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list( - String workspaceName, String kustoPoolName, String resourceGroupName) { + public PagedIterable list(String workspaceName, String kustoPoolName, + String resourceGroupName) { return new PagedIterable<>(listAsync(workspaceName, kustoPoolName, resourceGroupName)); } /** * Lists all Kusto pool principalAssignments. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -542,18 +438,18 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto cluster principal assignments operation response as paginated response with {@link - * PagedIterable}. + * @return the list Kusto cluster principal assignments operation response as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list( - String workspaceName, String kustoPoolName, String resourceGroupName, Context context) { + public PagedIterable list(String workspaceName, String kustoPoolName, + String resourceGroupName, Context context) { return new PagedIterable<>(listAsync(workspaceName, kustoPoolName, resourceGroupName, context)); } /** * Gets a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -564,13 +460,11 @@ public PagedIterable list( * @return a Kusto pool principalAssignment along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String workspaceName, String kustoPoolName, String principalAssignmentName, String resourceGroupName) { + private Mono> getWithResponseAsync(String workspaceName, + String kustoPoolName, String principalAssignmentName, String resourceGroupName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -579,15 +473,12 @@ private Mono> getWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); } if (principalAssignmentName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter principalAssignmentName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter principalAssignmentName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -597,24 +488,14 @@ private Mono> getWithResponseAsync( final String accept = "application/json"; return FluxUtil .withContext( - context -> - service - .get( - this.client.getEndpoint(), - workspaceName, - kustoPoolName, - principalAssignmentName, - this.client.getSubscriptionId(), - resourceGroupName, - apiVersion, - accept, - context)) + context -> service.get(this.client.getEndpoint(), workspaceName, kustoPoolName, principalAssignmentName, + this.client.getSubscriptionId(), resourceGroupName, apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -626,17 +507,11 @@ private Mono> getWithResponseAsync( * @return a Kusto pool principalAssignment along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String workspaceName, - String kustoPoolName, - String principalAssignmentName, - String resourceGroupName, - Context context) { + private Mono> getWithResponseAsync(String workspaceName, + String kustoPoolName, String principalAssignmentName, String resourceGroupName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -645,15 +520,12 @@ private Mono> getWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); } if (principalAssignmentName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter principalAssignmentName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter principalAssignmentName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -662,22 +534,13 @@ private Mono> getWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - workspaceName, - kustoPoolName, - principalAssignmentName, - this.client.getSubscriptionId(), - resourceGroupName, - apiVersion, - accept, - context); + return service.get(this.client.getEndpoint(), workspaceName, kustoPoolName, principalAssignmentName, + this.client.getSubscriptionId(), resourceGroupName, apiVersion, accept, context); } /** * Gets a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -688,15 +551,15 @@ private Mono> getWithResponseAsync( * @return a Kusto pool principalAssignment on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String workspaceName, String kustoPoolName, String principalAssignmentName, String resourceGroupName) { + private Mono getAsync(String workspaceName, String kustoPoolName, + String principalAssignmentName, String resourceGroupName) { return getWithResponseAsync(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Gets a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -708,19 +571,15 @@ private Mono getAsync( * @return a Kusto pool principalAssignment along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String workspaceName, - String kustoPoolName, - String principalAssignmentName, - String resourceGroupName, - Context context) { + public Response getWithResponse(String workspaceName, String kustoPoolName, + String principalAssignmentName, String resourceGroupName, Context context) { return getWithResponseAsync(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, context) .block(); } /** * Gets a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -731,15 +590,15 @@ public Response getWithResponse( * @return a Kusto pool principalAssignment. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ClusterPrincipalAssignmentInner get( - String workspaceName, String kustoPoolName, String principalAssignmentName, String resourceGroupName) { + public ClusterPrincipalAssignmentInner get(String workspaceName, String kustoPoolName, + String principalAssignmentName, String resourceGroupName) { return getWithResponse(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, Context.NONE) .getValue(); } /** * Create a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -749,20 +608,14 @@ public ClusterPrincipalAssignmentInner get( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return class representing a cluster principal assignment along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String workspaceName, - String kustoPoolName, - String principalAssignmentName, - String resourceGroupName, - ClusterPrincipalAssignmentInner parameters) { + private Mono>> createOrUpdateWithResponseAsync(String workspaceName, String kustoPoolName, + String principalAssignmentName, String resourceGroupName, ClusterPrincipalAssignmentInner parameters) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -771,15 +624,12 @@ private Mono>> createOrUpdateWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); } if (principalAssignmentName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter principalAssignmentName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter principalAssignmentName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -793,26 +643,15 @@ private Mono>> createOrUpdateWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - workspaceName, - kustoPoolName, - principalAssignmentName, - this.client.getSubscriptionId(), - resourceGroupName, - apiVersion, - parameters, - accept, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), workspaceName, kustoPoolName, + principalAssignmentName, this.client.getSubscriptionId(), resourceGroupName, apiVersion, parameters, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Create a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -823,21 +662,15 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return class representing a cluster principal assignment along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String workspaceName, - String kustoPoolName, - String principalAssignmentName, - String resourceGroupName, - ClusterPrincipalAssignmentInner parameters, + private Mono>> createOrUpdateWithResponseAsync(String workspaceName, String kustoPoolName, + String principalAssignmentName, String resourceGroupName, ClusterPrincipalAssignmentInner parameters, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -846,15 +679,12 @@ private Mono>> createOrUpdateWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); } if (principalAssignmentName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter principalAssignmentName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter principalAssignmentName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -868,23 +698,13 @@ private Mono>> createOrUpdateWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .createOrUpdate( - this.client.getEndpoint(), - workspaceName, - kustoPoolName, - principalAssignmentName, - this.client.getSubscriptionId(), - resourceGroupName, - apiVersion, - parameters, - accept, - context); + return service.createOrUpdate(this.client.getEndpoint(), workspaceName, kustoPoolName, principalAssignmentName, + this.client.getSubscriptionId(), resourceGroupName, apiVersion, parameters, accept, context); } /** * Create a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -897,28 +717,18 @@ private Mono>> createOrUpdateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ClusterPrincipalAssignmentInner> - beginCreateOrUpdateAsync( - String workspaceName, - String kustoPoolName, - String principalAssignmentName, - String resourceGroupName, - ClusterPrincipalAssignmentInner parameters) { - Mono>> mono = - createOrUpdateWithResponseAsync( - workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, parameters); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - ClusterPrincipalAssignmentInner.class, - ClusterPrincipalAssignmentInner.class, - this.client.getContext()); + beginCreateOrUpdateAsync(String workspaceName, String kustoPoolName, String principalAssignmentName, + String resourceGroupName, ClusterPrincipalAssignmentInner parameters) { + Mono>> mono = createOrUpdateWithResponseAsync(workspaceName, kustoPoolName, + principalAssignmentName, resourceGroupName, parameters); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), ClusterPrincipalAssignmentInner.class, ClusterPrincipalAssignmentInner.class, + this.client.getContext()); } /** * Create a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -932,30 +742,19 @@ private Mono>> createOrUpdateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ClusterPrincipalAssignmentInner> - beginCreateOrUpdateAsync( - String workspaceName, - String kustoPoolName, - String principalAssignmentName, - String resourceGroupName, - ClusterPrincipalAssignmentInner parameters, - Context context) { + beginCreateOrUpdateAsync(String workspaceName, String kustoPoolName, String principalAssignmentName, + String resourceGroupName, ClusterPrincipalAssignmentInner parameters, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - createOrUpdateWithResponseAsync( - workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, parameters, context); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - ClusterPrincipalAssignmentInner.class, - ClusterPrincipalAssignmentInner.class, - context); + Mono>> mono = createOrUpdateWithResponseAsync(workspaceName, kustoPoolName, + principalAssignmentName, resourceGroupName, parameters, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), ClusterPrincipalAssignmentInner.class, ClusterPrincipalAssignmentInner.class, + context); } /** * Create a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -968,20 +767,15 @@ private Mono>> createOrUpdateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ClusterPrincipalAssignmentInner> beginCreateOrUpdate( - String workspaceName, - String kustoPoolName, - String principalAssignmentName, - String resourceGroupName, + String workspaceName, String kustoPoolName, String principalAssignmentName, String resourceGroupName, ClusterPrincipalAssignmentInner parameters) { - return this - .beginCreateOrUpdateAsync( - workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, parameters) - .getSyncPoller(); + return this.beginCreateOrUpdateAsync(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, + parameters).getSyncPoller(); } /** * Create a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -995,21 +789,15 @@ public SyncPoller, ClusterPrincipalA */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ClusterPrincipalAssignmentInner> beginCreateOrUpdate( - String workspaceName, - String kustoPoolName, - String principalAssignmentName, - String resourceGroupName, - ClusterPrincipalAssignmentInner parameters, - Context context) { - return this - .beginCreateOrUpdateAsync( - workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, parameters, context) - .getSyncPoller(); + String workspaceName, String kustoPoolName, String principalAssignmentName, String resourceGroupName, + ClusterPrincipalAssignmentInner parameters, Context context) { + return this.beginCreateOrUpdateAsync(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, + parameters, context).getSyncPoller(); } /** * Create a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -1021,21 +809,15 @@ public SyncPoller, ClusterPrincipalA * @return class representing a cluster principal assignment on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String workspaceName, - String kustoPoolName, - String principalAssignmentName, - String resourceGroupName, - ClusterPrincipalAssignmentInner parameters) { - return beginCreateOrUpdateAsync( - workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, parameters) - .last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono createOrUpdateAsync(String workspaceName, String kustoPoolName, + String principalAssignmentName, String resourceGroupName, ClusterPrincipalAssignmentInner parameters) { + return beginCreateOrUpdateAsync(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, + parameters).last().flatMap(this.client::getLroFinalResultOrError); } /** * Create a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -1048,22 +830,16 @@ private Mono createOrUpdateAsync( * @return class representing a cluster principal assignment on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String workspaceName, - String kustoPoolName, - String principalAssignmentName, - String resourceGroupName, - ClusterPrincipalAssignmentInner parameters, + private Mono createOrUpdateAsync(String workspaceName, String kustoPoolName, + String principalAssignmentName, String resourceGroupName, ClusterPrincipalAssignmentInner parameters, Context context) { - return beginCreateOrUpdateAsync( - workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, parameters, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + return beginCreateOrUpdateAsync(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, + parameters, context).last().flatMap(this.client::getLroFinalResultOrError); } /** * Create a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -1075,19 +851,15 @@ private Mono createOrUpdateAsync( * @return class representing a cluster principal assignment. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ClusterPrincipalAssignmentInner createOrUpdate( - String workspaceName, - String kustoPoolName, - String principalAssignmentName, - String resourceGroupName, - ClusterPrincipalAssignmentInner parameters) { + public ClusterPrincipalAssignmentInner createOrUpdate(String workspaceName, String kustoPoolName, + String principalAssignmentName, String resourceGroupName, ClusterPrincipalAssignmentInner parameters) { return createOrUpdateAsync(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, parameters) .block(); } /** * Create a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -1100,21 +872,16 @@ public ClusterPrincipalAssignmentInner createOrUpdate( * @return class representing a cluster principal assignment. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ClusterPrincipalAssignmentInner createOrUpdate( - String workspaceName, - String kustoPoolName, - String principalAssignmentName, - String resourceGroupName, - ClusterPrincipalAssignmentInner parameters, + public ClusterPrincipalAssignmentInner createOrUpdate(String workspaceName, String kustoPoolName, + String principalAssignmentName, String resourceGroupName, ClusterPrincipalAssignmentInner parameters, Context context) { - return createOrUpdateAsync( - workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, parameters, context) - .block(); + return createOrUpdateAsync(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, parameters, + context).block(); } /** * Deletes a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -1125,13 +892,11 @@ public ClusterPrincipalAssignmentInner createOrUpdate( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync( - String workspaceName, String kustoPoolName, String principalAssignmentName, String resourceGroupName) { + private Mono>> deleteWithResponseAsync(String workspaceName, String kustoPoolName, + String principalAssignmentName, String resourceGroupName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -1140,15 +905,12 @@ private Mono>> deleteWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); } if (principalAssignmentName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter principalAssignmentName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter principalAssignmentName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1156,26 +918,14 @@ private Mono>> deleteWithResponseAsync( } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .delete( - this.client.getEndpoint(), - workspaceName, - kustoPoolName, - principalAssignmentName, - this.client.getSubscriptionId(), - resourceGroupName, - apiVersion, - accept, - context)) + return FluxUtil.withContext(context -> service.delete(this.client.getEndpoint(), workspaceName, kustoPoolName, + principalAssignmentName, this.client.getSubscriptionId(), resourceGroupName, apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -1187,17 +937,11 @@ private Mono>> deleteWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync( - String workspaceName, - String kustoPoolName, - String principalAssignmentName, - String resourceGroupName, - Context context) { + private Mono>> deleteWithResponseAsync(String workspaceName, String kustoPoolName, + String principalAssignmentName, String resourceGroupName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -1206,15 +950,12 @@ private Mono>> deleteWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); } if (principalAssignmentName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter principalAssignmentName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter principalAssignmentName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1223,22 +964,13 @@ private Mono>> deleteWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .delete( - this.client.getEndpoint(), - workspaceName, - kustoPoolName, - principalAssignmentName, - this.client.getSubscriptionId(), - resourceGroupName, - apiVersion, - accept, - context); + return service.delete(this.client.getEndpoint(), workspaceName, kustoPoolName, principalAssignmentName, + this.client.getSubscriptionId(), resourceGroupName, apiVersion, accept, context); } /** * Deletes a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -1249,19 +981,17 @@ private Mono>> deleteWithResponseAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync( - String workspaceName, String kustoPoolName, String principalAssignmentName, String resourceGroupName) { - Mono>> mono = - deleteWithResponseAsync(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + private PollerFlux, Void> beginDeleteAsync(String workspaceName, String kustoPoolName, + String principalAssignmentName, String resourceGroupName) { + Mono>> mono + = deleteWithResponseAsync(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Deletes a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -1273,23 +1003,18 @@ private PollerFlux, Void> beginDeleteAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync( - String workspaceName, - String kustoPoolName, - String principalAssignmentName, - String resourceGroupName, - Context context) { + private PollerFlux, Void> beginDeleteAsync(String workspaceName, String kustoPoolName, + String principalAssignmentName, String resourceGroupName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - deleteWithResponseAsync(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + Mono>> mono = deleteWithResponseAsync(workspaceName, kustoPoolName, + principalAssignmentName, resourceGroupName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * Deletes a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -1300,16 +1025,15 @@ private PollerFlux, Void> beginDeleteAsync( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete( - String workspaceName, String kustoPoolName, String principalAssignmentName, String resourceGroupName) { - return this - .beginDeleteAsync(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName) + public SyncPoller, Void> beginDelete(String workspaceName, String kustoPoolName, + String principalAssignmentName, String resourceGroupName) { + return this.beginDeleteAsync(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName) .getSyncPoller(); } /** * Deletes a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -1321,20 +1045,15 @@ public SyncPoller, Void> beginDelete( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete( - String workspaceName, - String kustoPoolName, - String principalAssignmentName, - String resourceGroupName, - Context context) { - return this - .beginDeleteAsync(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, context) + public SyncPoller, Void> beginDelete(String workspaceName, String kustoPoolName, + String principalAssignmentName, String resourceGroupName, Context context) { + return this.beginDeleteAsync(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, context) .getSyncPoller(); } /** * Deletes a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -1345,16 +1064,15 @@ public SyncPoller, Void> beginDelete( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync( - String workspaceName, String kustoPoolName, String principalAssignmentName, String resourceGroupName) { - return beginDeleteAsync(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName) - .last() + private Mono deleteAsync(String workspaceName, String kustoPoolName, String principalAssignmentName, + String resourceGroupName) { + return beginDeleteAsync(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Deletes a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -1366,20 +1084,15 @@ private Mono deleteAsync( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync( - String workspaceName, - String kustoPoolName, - String principalAssignmentName, - String resourceGroupName, - Context context) { + private Mono deleteAsync(String workspaceName, String kustoPoolName, String principalAssignmentName, + String resourceGroupName, Context context) { return beginDeleteAsync(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + .last().flatMap(this.client::getLroFinalResultOrError); } /** * Deletes a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -1389,14 +1102,14 @@ private Mono deleteAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete( - String workspaceName, String kustoPoolName, String principalAssignmentName, String resourceGroupName) { + public void delete(String workspaceName, String kustoPoolName, String principalAssignmentName, + String resourceGroupName) { deleteAsync(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName).block(); } /** * Deletes a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -1407,12 +1120,8 @@ public void delete( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete( - String workspaceName, - String kustoPoolName, - String principalAssignmentName, - String resourceGroupName, - Context context) { + public void delete(String workspaceName, String kustoPoolName, String principalAssignmentName, + String resourceGroupName, Context context) { deleteAsync(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, context).block(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrincipalAssignmentsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrincipalAssignmentsImpl.java index f0560563eed2..c908b82b9180 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrincipalAssignmentsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrincipalAssignmentsImpl.java @@ -24,44 +24,28 @@ public final class KustoPoolPrincipalAssignmentsImpl implements KustoPoolPrincip private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public KustoPoolPrincipalAssignmentsImpl( - KustoPoolPrincipalAssignmentsClient innerClient, + public KustoPoolPrincipalAssignmentsImpl(KustoPoolPrincipalAssignmentsClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public Response checkNameAvailabilityWithResponse( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - ClusterPrincipalAssignmentCheckNameRequest principalAssignmentName, - Context context) { - Response inner = - this - .serviceClient() - .checkNameAvailabilityWithResponse( - workspaceName, kustoPoolName, resourceGroupName, principalAssignmentName, context); + public Response checkNameAvailabilityWithResponse(String workspaceName, String kustoPoolName, + String resourceGroupName, ClusterPrincipalAssignmentCheckNameRequest principalAssignmentName, Context context) { + Response inner = this.serviceClient().checkNameAvailabilityWithResponse(workspaceName, + kustoPoolName, resourceGroupName, principalAssignmentName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new CheckNameResultImpl(inner.getValue(), this.manager())); } else { return null; } } - public CheckNameResult checkNameAvailability( - String workspaceName, - String kustoPoolName, - String resourceGroupName, + public CheckNameResult checkNameAvailability(String workspaceName, String kustoPoolName, String resourceGroupName, ClusterPrincipalAssignmentCheckNameRequest principalAssignmentName) { - CheckNameResultInner inner = - this - .serviceClient() - .checkNameAvailability(workspaceName, kustoPoolName, resourceGroupName, principalAssignmentName); + CheckNameResultInner inner = this.serviceClient().checkNameAvailability(workspaceName, kustoPoolName, + resourceGroupName, principalAssignmentName); if (inner != null) { return new CheckNameResultImpl(inner, this.manager()); } else { @@ -69,45 +53,38 @@ public CheckNameResult checkNameAvailability( } } - public PagedIterable list( - String workspaceName, String kustoPoolName, String resourceGroupName) { - PagedIterable inner = - this.serviceClient().list(workspaceName, kustoPoolName, resourceGroupName); - return Utils.mapPage(inner, inner1 -> new ClusterPrincipalAssignmentImpl(inner1, this.manager())); + public PagedIterable list(String workspaceName, String kustoPoolName, + String resourceGroupName) { + PagedIterable inner + = this.serviceClient().list(workspaceName, kustoPoolName, resourceGroupName); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new ClusterPrincipalAssignmentImpl(inner1, this.manager())); } - public PagedIterable list( - String workspaceName, String kustoPoolName, String resourceGroupName, Context context) { - PagedIterable inner = - this.serviceClient().list(workspaceName, kustoPoolName, resourceGroupName, context); - return Utils.mapPage(inner, inner1 -> new ClusterPrincipalAssignmentImpl(inner1, this.manager())); + public PagedIterable list(String workspaceName, String kustoPoolName, + String resourceGroupName, Context context) { + PagedIterable inner + = this.serviceClient().list(workspaceName, kustoPoolName, resourceGroupName, context); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new ClusterPrincipalAssignmentImpl(inner1, this.manager())); } - public Response getWithResponse( - String workspaceName, - String kustoPoolName, - String principalAssignmentName, - String resourceGroupName, - Context context) { - Response inner = - this - .serviceClient() - .getWithResponse(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, context); + public Response getWithResponse(String workspaceName, String kustoPoolName, + String principalAssignmentName, String resourceGroupName, Context context) { + Response inner = this.serviceClient().getWithResponse(workspaceName, + kustoPoolName, principalAssignmentName, resourceGroupName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new ClusterPrincipalAssignmentImpl(inner.getValue(), this.manager())); } else { return null; } } - public ClusterPrincipalAssignment get( - String workspaceName, String kustoPoolName, String principalAssignmentName, String resourceGroupName) { - ClusterPrincipalAssignmentInner inner = - this.serviceClient().get(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName); + public ClusterPrincipalAssignment get(String workspaceName, String kustoPoolName, String principalAssignmentName, + String resourceGroupName) { + ClusterPrincipalAssignmentInner inner + = this.serviceClient().get(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName); if (inner != null) { return new ClusterPrincipalAssignmentImpl(inner, this.manager()); } else { @@ -115,52 +92,36 @@ public ClusterPrincipalAssignment get( } } - public void delete( - String workspaceName, String kustoPoolName, String principalAssignmentName, String resourceGroupName) { + public void delete(String workspaceName, String kustoPoolName, String principalAssignmentName, + String resourceGroupName) { this.serviceClient().delete(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName); } - public void delete( - String workspaceName, - String kustoPoolName, - String principalAssignmentName, - String resourceGroupName, - Context context) { + public void delete(String workspaceName, String kustoPoolName, String principalAssignmentName, + String resourceGroupName, Context context) { this.serviceClient().delete(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, context); } public ClusterPrincipalAssignment getById(String id) { - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String kustoPoolName = Utils.getValueFromIdByName(id, "kustoPools"); + String kustoPoolName = ResourceManagerUtils.getValueFromIdByName(id, "kustoPools"); if (kustoPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); } - String principalAssignmentName = Utils.getValueFromIdByName(id, "principalAssignments"); + String principalAssignmentName = ResourceManagerUtils.getValueFromIdByName(id, "principalAssignments"); if (principalAssignmentName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'principalAssignments'.", - id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'principalAssignments'.", id))); } - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } return this .getWithResponse(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, Context.NONE) @@ -168,109 +129,73 @@ public ClusterPrincipalAssignment getById(String id) { } public Response getByIdWithResponse(String id, Context context) { - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String kustoPoolName = Utils.getValueFromIdByName(id, "kustoPools"); + String kustoPoolName = ResourceManagerUtils.getValueFromIdByName(id, "kustoPools"); if (kustoPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); } - String principalAssignmentName = Utils.getValueFromIdByName(id, "principalAssignments"); + String principalAssignmentName = ResourceManagerUtils.getValueFromIdByName(id, "principalAssignments"); if (principalAssignmentName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'principalAssignments'.", - id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'principalAssignments'.", id))); } - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } return this.getWithResponse(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, context); } public void deleteById(String id) { - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String kustoPoolName = Utils.getValueFromIdByName(id, "kustoPools"); + String kustoPoolName = ResourceManagerUtils.getValueFromIdByName(id, "kustoPools"); if (kustoPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); } - String principalAssignmentName = Utils.getValueFromIdByName(id, "principalAssignments"); + String principalAssignmentName = ResourceManagerUtils.getValueFromIdByName(id, "principalAssignments"); if (principalAssignmentName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'principalAssignments'.", - id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'principalAssignments'.", id))); } - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } this.delete(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, Context.NONE); } public void deleteByIdWithResponse(String id, Context context) { - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String kustoPoolName = Utils.getValueFromIdByName(id, "kustoPools"); + String kustoPoolName = ResourceManagerUtils.getValueFromIdByName(id, "kustoPools"); if (kustoPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); } - String principalAssignmentName = Utils.getValueFromIdByName(id, "principalAssignments"); + String principalAssignmentName = ResourceManagerUtils.getValueFromIdByName(id, "principalAssignments"); if (principalAssignmentName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'principalAssignments'.", - id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'principalAssignments'.", id))); } - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } this.delete(workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrivateLinkResourcesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrivateLinkResourcesImpl.java index 03daa20942fe..58c08abd6607 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrivateLinkResourcesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrivateLinkResourcesImpl.java @@ -16,8 +16,7 @@ public final class KustoPoolPrivateLinkResourcesImpl implements KustoPoolPrivate private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - KustoPoolPrivateLinkResourcesImpl( - KustoPoolPrivateLinkResourcesInner innerObject, + KustoPoolPrivateLinkResourcesImpl(KustoPoolPrivateLinkResourcesInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrivateLinkResourcesOperationsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrivateLinkResourcesOperationsClientImpl.java index 3e35d70bae86..6943fd3a8097 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrivateLinkResourcesOperationsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrivateLinkResourcesOperationsClientImpl.java @@ -36,24 +36,24 @@ */ public final class KustoPoolPrivateLinkResourcesOperationsClientImpl implements KustoPoolPrivateLinkResourcesOperationsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final KustoPoolPrivateLinkResourcesOperationsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of KustoPoolPrivateLinkResourcesOperationsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ KustoPoolPrivateLinkResourcesOperationsClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy - .create( - KustoPoolPrivateLinkResourcesOperationsService.class, - client.getHttpPipeline(), - client.getSerializerAdapter()); + this.service = RestProxy.create(KustoPoolPrivateLinkResourcesOperationsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } @@ -64,26 +64,20 @@ public final class KustoPoolPrivateLinkResourcesOperationsClientImpl @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface KustoPoolPrivateLinkResourcesOperationsService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/kustoPools/{kustoPoolName}/privateLinkResources") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/privateLinkResources") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, + Mono> list(@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("kustoPoolName") String kustoPoolName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("kustoPoolName") String kustoPoolName, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, Context context); } /** * Lists all Kusto pool PrivateLinkResources. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -91,22 +85,18 @@ Mono> list( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list Kusto Private Link Resources operation response along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String workspaceName, String kustoPoolName) { + private Mono> listSinglePageAsync(String resourceGroupName, + String workspaceName, String kustoPoolName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -121,28 +111,16 @@ private Mono> listSinglePageAs final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .list( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - kustoPoolName, - apiVersion, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)) + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), + resourceGroupName, workspaceName, kustoPoolName, apiVersion, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Lists all Kusto pool PrivateLinkResources. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -151,22 +129,18 @@ private Mono> listSinglePageAs * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list Kusto Private Link Resources operation response along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String workspaceName, String kustoPoolName, Context context) { + private Mono> listSinglePageAsync(String resourceGroupName, + String workspaceName, String kustoPoolName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -182,24 +156,15 @@ private Mono> listSinglePageAs final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - kustoPoolName, - apiVersion, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)); + .list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, + kustoPoolName, apiVersion, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), null, null)); } /** * Lists all Kusto pool PrivateLinkResources. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -209,14 +174,14 @@ private Mono> listSinglePageAs * @return the list Kusto Private Link Resources operation response as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( - String resourceGroupName, String workspaceName, String kustoPoolName) { + private PagedFlux listAsync(String resourceGroupName, String workspaceName, + String kustoPoolName) { return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName, kustoPoolName)); } /** * Lists all Kusto pool PrivateLinkResources. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -227,32 +192,32 @@ private PagedFlux listAsync( * @return the list Kusto Private Link Resources operation response as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( - String resourceGroupName, String workspaceName, String kustoPoolName, Context context) { + private PagedFlux listAsync(String resourceGroupName, String workspaceName, + String kustoPoolName, Context context) { return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName, kustoPoolName, context)); } /** * Lists all Kusto pool PrivateLinkResources. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto Private Link Resources operation response as paginated response with {@link - * PagedIterable}. + * @return the list Kusto Private Link Resources operation response as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list( - String resourceGroupName, String workspaceName, String kustoPoolName) { + public PagedIterable list(String resourceGroupName, String workspaceName, + String kustoPoolName) { return new PagedIterable<>(listAsync(resourceGroupName, workspaceName, kustoPoolName)); } /** * Lists all Kusto pool PrivateLinkResources. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -260,12 +225,12 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto Private Link Resources operation response as paginated response with {@link - * PagedIterable}. + * @return the list Kusto Private Link Resources operation response as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list( - String resourceGroupName, String workspaceName, String kustoPoolName, Context context) { + public PagedIterable list(String resourceGroupName, String workspaceName, + String kustoPoolName, Context context) { return new PagedIterable<>(listAsync(resourceGroupName, workspaceName, kustoPoolName, context)); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrivateLinkResourcesOperationsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrivateLinkResourcesOperationsImpl.java index 69ba47602d7c..e42673c39560 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrivateLinkResourcesOperationsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolPrivateLinkResourcesOperationsImpl.java @@ -19,25 +19,26 @@ public final class KustoPoolPrivateLinkResourcesOperationsImpl implements KustoP private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public KustoPoolPrivateLinkResourcesOperationsImpl( - KustoPoolPrivateLinkResourcesOperationsClient innerClient, + public KustoPoolPrivateLinkResourcesOperationsImpl(KustoPoolPrivateLinkResourcesOperationsClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public PagedIterable list( - String resourceGroupName, String workspaceName, String kustoPoolName) { - PagedIterable inner = - this.serviceClient().list(resourceGroupName, workspaceName, kustoPoolName); - return Utils.mapPage(inner, inner1 -> new KustoPoolPrivateLinkResourcesImpl(inner1, this.manager())); + public PagedIterable list(String resourceGroupName, String workspaceName, + String kustoPoolName) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, workspaceName, kustoPoolName); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new KustoPoolPrivateLinkResourcesImpl(inner1, this.manager())); } - public PagedIterable list( - String resourceGroupName, String workspaceName, String kustoPoolName, Context context) { - PagedIterable inner = - this.serviceClient().list(resourceGroupName, workspaceName, kustoPoolName, context); - return Utils.mapPage(inner, inner1 -> new KustoPoolPrivateLinkResourcesImpl(inner1, this.manager())); + public PagedIterable list(String resourceGroupName, String workspaceName, + String kustoPoolName, Context context) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, workspaceName, kustoPoolName, context); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new KustoPoolPrivateLinkResourcesImpl(inner1, this.manager())); } private KustoPoolPrivateLinkResourcesOperationsClient serviceClient() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolsClientImpl.java index 9b69e3e9d0ae..a25e1e926c8a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolsClientImpl.java @@ -51,22 +51,28 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in KustoPoolsClient. */ +/** + * An instance of this class provides access to all the operations defined in KustoPoolsClient. + */ public final class KustoPoolsClientImpl implements KustoPoolsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final KustoPoolsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of KustoPoolsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ KustoPoolsClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy.create(KustoPoolsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service + = RestProxy.create(KustoPoolsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } @@ -77,322 +83,217 @@ public final class KustoPoolsClientImpl implements KustoPoolsClient { @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface KustoPoolsService { - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Synapse/skus") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, - Context context); + Mono> list(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/providers/Microsoft.Synapse/locations/{location}" - + "/kustoPoolCheckNameAvailability") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/providers/Microsoft.Synapse/locations/{location}/kustoPoolCheckNameAvailability") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> checkNameAvailability( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("location") String location, + Mono> checkNameAvailability(@HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location, @QueryParam("api-version") String apiVersion, @BodyParam("application/json") KustoPoolCheckNameRequest kustoPoolName, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/kustoPools") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByWorkspace( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("workspaceName") String workspaceName, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/kustoPools/{kustoPoolName}") - @ExpectedResponses({200}) + Mono> listByWorkspace(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("subscriptionId") String subscriptionId, @PathParam("workspaceName") String workspaceName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, - @PathParam("kustoPoolName") String kustoPoolName, + Mono> get(@HostParam("$host") String endpoint, + @PathParam("workspaceName") String workspaceName, @PathParam("kustoPoolName") String kustoPoolName, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/kustoPools/{kustoPoolName}") - @ExpectedResponses({200, 201}) + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}") + @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate( - @HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("kustoPoolName") String kustoPoolName, - @HeaderParam("If-Match") String ifMatch, - @HeaderParam("If-None-Match") String ifNoneMatch, - @PathParam("subscriptionId") String subscriptionId, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") KustoPoolInner parameters, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Patch( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/kustoPools/{kustoPoolName}") - @ExpectedResponses({200, 202}) + Mono>> createOrUpdate(@HostParam("$host") String endpoint, + @PathParam("workspaceName") String workspaceName, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("kustoPoolName") String kustoPoolName, @HeaderParam("If-Match") String ifMatch, + @HeaderParam("If-None-Match") String ifNoneMatch, @PathParam("subscriptionId") String subscriptionId, + @QueryParam("api-version") String apiVersion, @BodyParam("application/json") KustoPoolInner parameters, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> update( - @HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("kustoPoolName") String kustoPoolName, - @HeaderParam("If-Match") String ifMatch, - @PathParam("subscriptionId") String subscriptionId, - @QueryParam("api-version") String apiVersion, - @BodyParam("application/json") KustoPoolUpdate parameters, - @HeaderParam("Accept") String accept, + Mono>> update(@HostParam("$host") String endpoint, + @PathParam("workspaceName") String workspaceName, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("kustoPoolName") String kustoPoolName, @HeaderParam("If-Match") String ifMatch, + @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, + @BodyParam("application/json") KustoPoolUpdate parameters, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/kustoPools/{kustoPoolName}") - @ExpectedResponses({200, 202, 204}) + @Headers({ "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}") + @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete( - @HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("kustoPoolName") String kustoPoolName, - @PathParam("subscriptionId") String subscriptionId, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/kustoPools/{kustoPoolName}/stop") - @ExpectedResponses({200, 202}) + Mono>> delete(@HostParam("$host") String endpoint, + @PathParam("workspaceName") String workspaceName, @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("kustoPoolName") String kustoPoolName, @PathParam("subscriptionId") String subscriptionId, + @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/stop") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> stop( - @HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, - @PathParam("kustoPoolName") String kustoPoolName, + Mono>> stop(@HostParam("$host") String endpoint, + @PathParam("workspaceName") String workspaceName, @PathParam("kustoPoolName") String kustoPoolName, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/kustoPools/{kustoPoolName}/start") - @ExpectedResponses({200, 202}) + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/start") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> start( - @HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, - @PathParam("kustoPoolName") String kustoPoolName, + Mono>> start(@HostParam("$host") String endpoint, + @PathParam("workspaceName") String workspaceName, @PathParam("kustoPoolName") String kustoPoolName, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/kustoPools/{kustoPoolName}/skus") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/skus") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listSkusByResource( - @HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, - @PathParam("kustoPoolName") String kustoPoolName, + Mono> listSkusByResource(@HostParam("$host") String endpoint, + @PathParam("workspaceName") String workspaceName, @PathParam("kustoPoolName") String kustoPoolName, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/kustoPools/{kustoPoolName}/listLanguageExtensions") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/listLanguageExtensions") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listLanguageExtensions( - @HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, - @PathParam("kustoPoolName") String kustoPoolName, + Mono> listLanguageExtensions(@HostParam("$host") String endpoint, + @PathParam("workspaceName") String workspaceName, @PathParam("kustoPoolName") String kustoPoolName, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/kustoPools/{kustoPoolName}/addLanguageExtensions") - @ExpectedResponses({200, 202}) + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/addLanguageExtensions") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> addLanguageExtensions( - @HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, - @PathParam("kustoPoolName") String kustoPoolName, + Mono>> addLanguageExtensions(@HostParam("$host") String endpoint, + @PathParam("workspaceName") String workspaceName, @PathParam("kustoPoolName") String kustoPoolName, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @QueryParam("api-version") String apiVersion, + @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, @BodyParam("application/json") LanguageExtensionsList languageExtensionsToAdd, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/kustoPools/{kustoPoolName}/removeLanguageExtensions") - @ExpectedResponses({200, 202}) + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/removeLanguageExtensions") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> removeLanguageExtensions( - @HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, - @PathParam("kustoPoolName") String kustoPoolName, + Mono>> removeLanguageExtensions(@HostParam("$host") String endpoint, + @PathParam("workspaceName") String workspaceName, @PathParam("kustoPoolName") String kustoPoolName, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @QueryParam("api-version") String apiVersion, + @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, @BodyParam("application/json") LanguageExtensionsList languageExtensionsToRemove, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/kustoPools/{kustoPoolName}/listFollowerDatabases") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/listFollowerDatabases") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listFollowerDatabases( - @HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, - @PathParam("kustoPoolName") String kustoPoolName, + Mono> listFollowerDatabases(@HostParam("$host") String endpoint, + @PathParam("workspaceName") String workspaceName, @PathParam("kustoPoolName") String kustoPoolName, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/kustoPools/{kustoPoolName}/detachFollowerDatabases") - @ExpectedResponses({200, 202}) + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/detachFollowerDatabases") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> detachFollowerDatabases( - @HostParam("$host") String endpoint, - @PathParam("workspaceName") String workspaceName, - @PathParam("kustoPoolName") String kustoPoolName, + Mono>> detachFollowerDatabases(@HostParam("$host") String endpoint, + @PathParam("workspaceName") String workspaceName, @PathParam("kustoPoolName") String kustoPoolName, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @QueryParam("api-version") String apiVersion, + @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion, @BodyParam("application/json") FollowerDatabaseDefinitionInner followerDatabaseToRemove, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); } /** * Lists eligible SKUs for Kusto Pool resource. - * + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of the SKU descriptions along with {@link PagedResponse} on successful completion of {@link - * Mono}. + * @return the list of the SKU descriptions along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync() { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Lists eligible SKUs for Kusto Pool resource. - * + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of the SKU descriptions along with {@link PagedResponse} on successful completion of {@link - * Mono}. + * @return the list of the SKU descriptions along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)); + return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), null, null)); } /** * Lists eligible SKUs for Kusto Pool resource. - * + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of the SKU descriptions as paginated response with {@link PagedFlux}. @@ -404,7 +305,7 @@ private PagedFlux listAsync() { /** * Lists eligible SKUs for Kusto Pool resource. - * + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -418,7 +319,7 @@ private PagedFlux listAsync(Context context) { /** * Lists eligible SKUs for Kusto Pool resource. - * + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of the SKU descriptions as paginated response with {@link PagedIterable}. @@ -430,7 +331,7 @@ public PagedIterable list() { /** * Lists eligible SKUs for Kusto Pool resource. - * + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -444,29 +345,25 @@ public PagedIterable list(Context context) { /** * Checks that the kusto pool name is valid and is not already in use. - * + * * @param location The name of Azure region. * @param kustoPoolName The name of the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result returned from a check name availability request along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> checkNameAvailabilityWithResponseAsync( - String location, KustoPoolCheckNameRequest kustoPoolName) { + private Mono> checkNameAvailabilityWithResponseAsync(String location, + KustoPoolCheckNameRequest kustoPoolName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); @@ -479,23 +376,14 @@ private Mono> checkNameAvailabilityWithResponseAs final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .checkNameAvailability( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - location, - apiVersion, - kustoPoolName, - accept, - context)) + .withContext(context -> service.checkNameAvailability(this.client.getEndpoint(), + this.client.getSubscriptionId(), location, apiVersion, kustoPoolName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Checks that the kusto pool name is valid and is not already in use. - * + * * @param location The name of Azure region. * @param kustoPoolName The name of the cluster. * @param context The context to associate with this operation. @@ -503,22 +391,18 @@ private Mono> checkNameAvailabilityWithResponseAs * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result returned from a check name availability request along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> checkNameAvailabilityWithResponseAsync( - String location, KustoPoolCheckNameRequest kustoPoolName, Context context) { + private Mono> checkNameAvailabilityWithResponseAsync(String location, + KustoPoolCheckNameRequest kustoPoolName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); @@ -531,20 +415,13 @@ private Mono> checkNameAvailabilityWithResponseAs final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .checkNameAvailability( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - location, - apiVersion, - kustoPoolName, - accept, - context); + return service.checkNameAvailability(this.client.getEndpoint(), this.client.getSubscriptionId(), location, + apiVersion, kustoPoolName, accept, context); } /** * Checks that the kusto pool name is valid and is not already in use. - * + * * @param location The name of Azure region. * @param kustoPoolName The name of the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -553,15 +430,15 @@ private Mono> checkNameAvailabilityWithResponseAs * @return the result returned from a check name availability request on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono checkNameAvailabilityAsync( - String location, KustoPoolCheckNameRequest kustoPoolName) { + private Mono checkNameAvailabilityAsync(String location, + KustoPoolCheckNameRequest kustoPoolName) { return checkNameAvailabilityWithResponseAsync(location, kustoPoolName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Checks that the kusto pool name is valid and is not already in use. - * + * * @param location The name of Azure region. * @param kustoPoolName The name of the cluster. * @param context The context to associate with this operation. @@ -571,14 +448,14 @@ private Mono checkNameAvailabilityAsync( * @return the result returned from a check name availability request along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response checkNameAvailabilityWithResponse( - String location, KustoPoolCheckNameRequest kustoPoolName, Context context) { + public Response checkNameAvailabilityWithResponse(String location, + KustoPoolCheckNameRequest kustoPoolName, Context context) { return checkNameAvailabilityWithResponseAsync(location, kustoPoolName, context).block(); } /** * Checks that the kusto pool name is valid and is not already in use. - * + * * @param location The name of Azure region. * @param kustoPoolName The name of the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -593,35 +470,31 @@ public CheckNameResultInner checkNameAvailability(String location, KustoPoolChec /** * List Kusto pools - * - *

List all Kusto pools. - * + * + * List all Kusto pools. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto pools operation response along with {@link Response} on successful completion of {@link - * Mono}. + * @return the list Kusto pools operation response along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByWorkspaceWithResponseAsync( - String resourceGroupName, String workspaceName) { + private Mono> listByWorkspaceWithResponseAsync(String resourceGroupName, + String workspaceName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -629,52 +502,39 @@ private Mono> listByWorkspaceWithResponseAsyn final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .listByWorkspace( - this.client.getEndpoint(), - apiVersion, - resourceGroupName, - this.client.getSubscriptionId(), - workspaceName, - accept, - context)) + .withContext(context -> service.listByWorkspace(this.client.getEndpoint(), apiVersion, resourceGroupName, + this.client.getSubscriptionId(), workspaceName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * List Kusto pools - * - *

List all Kusto pools. - * + * + * List all Kusto pools. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto pools operation response along with {@link Response} on successful completion of {@link - * Mono}. + * @return the list Kusto pools operation response along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByWorkspaceWithResponseAsync( - String resourceGroupName, String workspaceName, Context context) { + private Mono> listByWorkspaceWithResponseAsync(String resourceGroupName, + String workspaceName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -682,22 +542,15 @@ private Mono> listByWorkspaceWithResponseAsyn final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listByWorkspace( - this.client.getEndpoint(), - apiVersion, - resourceGroupName, - this.client.getSubscriptionId(), - workspaceName, - accept, - context); + return service.listByWorkspace(this.client.getEndpoint(), apiVersion, resourceGroupName, + this.client.getSubscriptionId(), workspaceName, accept, context); } /** * List Kusto pools - * - *

List all Kusto pools. - * + * + * List all Kusto pools. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -713,9 +566,9 @@ private Mono listByWorkspaceAsync(String resourceGroup /** * List Kusto pools - * - *

List all Kusto pools. - * + * + * List all Kusto pools. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -725,16 +578,16 @@ private Mono listByWorkspaceAsync(String resourceGroup * @return the list Kusto pools operation response along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response listByWorkspaceWithResponse( - String resourceGroupName, String workspaceName, Context context) { + public Response listByWorkspaceWithResponse(String resourceGroupName, + String workspaceName, Context context) { return listByWorkspaceWithResponseAsync(resourceGroupName, workspaceName, context).block(); } /** * List Kusto pools - * - *

List all Kusto pools. - * + * + * List all Kusto pools. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -749,7 +602,7 @@ public KustoPoolListResultInner listByWorkspace(String resourceGroupName, String /** * Gets a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -759,13 +612,11 @@ public KustoPoolListResultInner listByWorkspace(String resourceGroupName, String * @return a Kusto pool along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String workspaceName, String kustoPoolName, String resourceGroupName) { + private Mono> getWithResponseAsync(String workspaceName, String kustoPoolName, + String resourceGroupName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -774,10 +625,8 @@ private Mono> getWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -786,24 +635,14 @@ private Mono> getWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - workspaceName, - kustoPoolName, - this.client.getSubscriptionId(), - resourceGroupName, - apiVersion, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), workspaceName, kustoPoolName, + this.client.getSubscriptionId(), resourceGroupName, apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -814,13 +653,11 @@ private Mono> getWithResponseAsync( * @return a Kusto pool along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String workspaceName, String kustoPoolName, String resourceGroupName, Context context) { + private Mono> getWithResponseAsync(String workspaceName, String kustoPoolName, + String resourceGroupName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -829,10 +666,8 @@ private Mono> getWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -841,21 +676,13 @@ private Mono> getWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - workspaceName, - kustoPoolName, - this.client.getSubscriptionId(), - resourceGroupName, - apiVersion, - accept, - context); + return service.get(this.client.getEndpoint(), workspaceName, kustoPoolName, this.client.getSubscriptionId(), + resourceGroupName, apiVersion, accept, context); } /** * Gets a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -872,7 +699,7 @@ private Mono getAsync(String workspaceName, String kustoPoolName /** * Gets a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -883,14 +710,14 @@ private Mono getAsync(String workspaceName, String kustoPoolName * @return a Kusto pool along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String workspaceName, String kustoPoolName, String resourceGroupName, Context context) { + public Response getWithResponse(String workspaceName, String kustoPoolName, + String resourceGroupName, Context context) { return getWithResponseAsync(workspaceName, kustoPoolName, resourceGroupName, context).block(); } /** * Gets a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -906,34 +733,27 @@ public KustoPoolInner get(String workspaceName, String kustoPoolName, String res /** * Create or update a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kustoPoolName The name of the Kusto pool. * @param parameters The Kusto pool parameters supplied to the CreateOrUpdate operation. * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. Specify - * the last-seen ETag value to prevent accidentally overwriting concurrent changes. + * the last-seen ETag value to prevent accidentally overwriting concurrent changes. * @param ifNoneMatch Set to '*' to allow a new Kusto Pool to be created, but to prevent updating an existing Kusto - * Pool. Other values will result in a 412 Pre-condition Failed response. + * Pool. Other values will result in a 412 Pre-condition Failed response. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto kusto pool along with {@link Response} on successful completion of {@link - * Mono}. + * @return class representing a Kusto kusto pool along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String workspaceName, - String resourceGroupName, - String kustoPoolName, - KustoPoolInner parameters, - String ifMatch, - String ifNoneMatch) { + private Mono>> createOrUpdateWithResponseAsync(String workspaceName, + String resourceGroupName, String kustoPoolName, KustoPoolInner parameters, String ifMatch, String ifNoneMatch) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -946,10 +766,8 @@ private Mono>> createOrUpdateWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter 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.")); @@ -959,56 +777,37 @@ private Mono>> createOrUpdateWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - workspaceName, - resourceGroupName, - kustoPoolName, - ifMatch, - ifNoneMatch, - this.client.getSubscriptionId(), - apiVersion, - parameters, - accept, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), workspaceName, resourceGroupName, + kustoPoolName, ifMatch, ifNoneMatch, this.client.getSubscriptionId(), apiVersion, parameters, accept, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Create or update a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kustoPoolName The name of the Kusto pool. * @param parameters The Kusto pool parameters supplied to the CreateOrUpdate operation. * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. Specify - * the last-seen ETag value to prevent accidentally overwriting concurrent changes. + * the last-seen ETag value to prevent accidentally overwriting concurrent changes. * @param ifNoneMatch Set to '*' to allow a new Kusto Pool to be created, but to prevent updating an existing Kusto - * Pool. Other values will result in a 412 Pre-condition Failed response. + * Pool. Other values will result in a 412 Pre-condition Failed response. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto kusto pool along with {@link Response} on successful completion of {@link - * Mono}. + * @return class representing a Kusto kusto pool along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String workspaceName, - String resourceGroupName, - String kustoPoolName, - KustoPoolInner parameters, - String ifMatch, - String ifNoneMatch, + private Mono>> createOrUpdateWithResponseAsync(String workspaceName, + String resourceGroupName, String kustoPoolName, KustoPoolInner parameters, String ifMatch, String ifNoneMatch, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -1021,10 +820,8 @@ private Mono>> createOrUpdateWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter 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.")); @@ -1034,61 +831,38 @@ private Mono>> createOrUpdateWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .createOrUpdate( - this.client.getEndpoint(), - workspaceName, - resourceGroupName, - kustoPoolName, - ifMatch, - ifNoneMatch, - this.client.getSubscriptionId(), - apiVersion, - parameters, - accept, - context); + return service.createOrUpdate(this.client.getEndpoint(), workspaceName, resourceGroupName, kustoPoolName, + ifMatch, ifNoneMatch, this.client.getSubscriptionId(), apiVersion, parameters, accept, context); } /** * Create or update a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kustoPoolName The name of the Kusto pool. * @param parameters The Kusto pool parameters supplied to the CreateOrUpdate operation. * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. Specify - * the last-seen ETag value to prevent accidentally overwriting concurrent changes. + * the last-seen ETag value to prevent accidentally overwriting concurrent changes. * @param ifNoneMatch Set to '*' to allow a new Kusto Pool to be created, but to prevent updating an existing Kusto - * Pool. Other values will result in a 412 Pre-condition Failed response. + * Pool. Other values will result in a 412 Pre-condition Failed response. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of class representing a Kusto kusto pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, KustoPoolInner> beginCreateOrUpdateAsync( - String workspaceName, - String resourceGroupName, - String kustoPoolName, - KustoPoolInner parameters, - String ifMatch, - String ifNoneMatch) { - Mono>> mono = - createOrUpdateWithResponseAsync( - workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch, ifNoneMatch); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - KustoPoolInner.class, - KustoPoolInner.class, - this.client.getContext()); + private PollerFlux, KustoPoolInner> beginCreateOrUpdateAsync(String workspaceName, + String resourceGroupName, String kustoPoolName, KustoPoolInner parameters, String ifMatch, String ifNoneMatch) { + Mono>> mono = createOrUpdateWithResponseAsync(workspaceName, resourceGroupName, + kustoPoolName, parameters, ifMatch, ifNoneMatch); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + KustoPoolInner.class, KustoPoolInner.class, this.client.getContext()); } /** * Create or update a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kustoPoolName The name of the Kusto pool. @@ -1099,34 +873,27 @@ private PollerFlux, KustoPoolInner> beginCreateOrUpda * @return the {@link PollerFlux} for polling of class representing a Kusto kusto pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, KustoPoolInner> beginCreateOrUpdateAsync( - String workspaceName, String resourceGroupName, String kustoPoolName, KustoPoolInner parameters) { + private PollerFlux, KustoPoolInner> beginCreateOrUpdateAsync(String workspaceName, + String resourceGroupName, String kustoPoolName, KustoPoolInner parameters) { final String ifMatch = null; final String ifNoneMatch = null; - Mono>> mono = - createOrUpdateWithResponseAsync( - workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch, ifNoneMatch); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - KustoPoolInner.class, - KustoPoolInner.class, - this.client.getContext()); + Mono>> mono = createOrUpdateWithResponseAsync(workspaceName, resourceGroupName, + kustoPoolName, parameters, ifMatch, ifNoneMatch); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + KustoPoolInner.class, KustoPoolInner.class, this.client.getContext()); } /** * Create or update a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kustoPoolName The name of the Kusto pool. * @param parameters The Kusto pool parameters supplied to the CreateOrUpdate operation. * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. Specify - * the last-seen ETag value to prevent accidentally overwriting concurrent changes. + * the last-seen ETag value to prevent accidentally overwriting concurrent changes. * @param ifNoneMatch Set to '*' to allow a new Kusto Pool to be created, but to prevent updating an existing Kusto - * Pool. Other values will result in a 412 Pre-condition Failed response. + * Pool. Other values will result in a 412 Pre-condition Failed response. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1134,27 +901,19 @@ private PollerFlux, KustoPoolInner> beginCreateOrUpda * @return the {@link PollerFlux} for polling of class representing a Kusto kusto pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, KustoPoolInner> beginCreateOrUpdateAsync( - String workspaceName, - String resourceGroupName, - String kustoPoolName, - KustoPoolInner parameters, - String ifMatch, - String ifNoneMatch, + private PollerFlux, KustoPoolInner> beginCreateOrUpdateAsync(String workspaceName, + String resourceGroupName, String kustoPoolName, KustoPoolInner parameters, String ifMatch, String ifNoneMatch, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - createOrUpdateWithResponseAsync( - workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch, ifNoneMatch, context); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), KustoPoolInner.class, KustoPoolInner.class, context); + Mono>> mono = createOrUpdateWithResponseAsync(workspaceName, resourceGroupName, + kustoPoolName, parameters, ifMatch, ifNoneMatch, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + KustoPoolInner.class, KustoPoolInner.class, context); } /** * Create or update a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kustoPoolName The name of the Kusto pool. @@ -1165,8 +924,8 @@ private PollerFlux, KustoPoolInner> beginCreateOrUpda * @return the {@link SyncPoller} for polling of class representing a Kusto kusto pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, KustoPoolInner> beginCreateOrUpdate( - String workspaceName, String resourceGroupName, String kustoPoolName, KustoPoolInner parameters) { + public SyncPoller, KustoPoolInner> beginCreateOrUpdate(String workspaceName, + String resourceGroupName, String kustoPoolName, KustoPoolInner parameters) { final String ifMatch = null; final String ifNoneMatch = null; return this @@ -1176,15 +935,15 @@ public SyncPoller, KustoPoolInner> beginCreateOrUpdat /** * Create or update a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kustoPoolName The name of the Kusto pool. * @param parameters The Kusto pool parameters supplied to the CreateOrUpdate operation. * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. Specify - * the last-seen ETag value to prevent accidentally overwriting concurrent changes. + * the last-seen ETag value to prevent accidentally overwriting concurrent changes. * @param ifNoneMatch Set to '*' to allow a new Kusto Pool to be created, but to prevent updating an existing Kusto - * Pool. Other values will result in a 412 Pre-condition Failed response. + * Pool. Other values will result in a 412 Pre-condition Failed response. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1192,53 +951,39 @@ public SyncPoller, KustoPoolInner> beginCreateOrUpdat * @return the {@link SyncPoller} for polling of class representing a Kusto kusto pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, KustoPoolInner> beginCreateOrUpdate( - String workspaceName, - String resourceGroupName, - String kustoPoolName, - KustoPoolInner parameters, - String ifMatch, - String ifNoneMatch, + public SyncPoller, KustoPoolInner> beginCreateOrUpdate(String workspaceName, + String resourceGroupName, String kustoPoolName, KustoPoolInner parameters, String ifMatch, String ifNoneMatch, Context context) { - return this - .beginCreateOrUpdateAsync( - workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch, ifNoneMatch, context) - .getSyncPoller(); + return this.beginCreateOrUpdateAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch, + ifNoneMatch, context).getSyncPoller(); } /** * Create or update a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kustoPoolName The name of the Kusto pool. * @param parameters The Kusto pool parameters supplied to the CreateOrUpdate operation. * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. Specify - * the last-seen ETag value to prevent accidentally overwriting concurrent changes. + * the last-seen ETag value to prevent accidentally overwriting concurrent changes. * @param ifNoneMatch Set to '*' to allow a new Kusto Pool to be created, but to prevent updating an existing Kusto - * Pool. Other values will result in a 412 Pre-condition Failed response. + * Pool. Other values will result in a 412 Pre-condition Failed response. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return class representing a Kusto kusto pool on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String workspaceName, - String resourceGroupName, - String kustoPoolName, - KustoPoolInner parameters, - String ifMatch, - String ifNoneMatch) { - return beginCreateOrUpdateAsync( - workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch, ifNoneMatch) - .last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono createOrUpdateAsync(String workspaceName, String resourceGroupName, + String kustoPoolName, KustoPoolInner parameters, String ifMatch, String ifNoneMatch) { + return beginCreateOrUpdateAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch, + ifNoneMatch).last().flatMap(this.client::getLroFinalResultOrError); } /** * Create or update a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kustoPoolName The name of the Kusto pool. @@ -1249,27 +994,25 @@ private Mono createOrUpdateAsync( * @return class representing a Kusto kusto pool on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String workspaceName, String resourceGroupName, String kustoPoolName, KustoPoolInner parameters) { + private Mono createOrUpdateAsync(String workspaceName, String resourceGroupName, + String kustoPoolName, KustoPoolInner parameters) { final String ifMatch = null; final String ifNoneMatch = null; - return beginCreateOrUpdateAsync( - workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch, ifNoneMatch) - .last() - .flatMap(this.client::getLroFinalResultOrError); + return beginCreateOrUpdateAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch, + ifNoneMatch).last().flatMap(this.client::getLroFinalResultOrError); } /** * Create or update a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kustoPoolName The name of the Kusto pool. * @param parameters The Kusto pool parameters supplied to the CreateOrUpdate operation. * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. Specify - * the last-seen ETag value to prevent accidentally overwriting concurrent changes. + * the last-seen ETag value to prevent accidentally overwriting concurrent changes. * @param ifNoneMatch Set to '*' to allow a new Kusto Pool to be created, but to prevent updating an existing Kusto - * Pool. Other values will result in a 412 Pre-condition Failed response. + * Pool. Other values will result in a 412 Pre-condition Failed response. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1277,23 +1020,15 @@ private Mono createOrUpdateAsync( * @return class representing a Kusto kusto pool on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String workspaceName, - String resourceGroupName, - String kustoPoolName, - KustoPoolInner parameters, - String ifMatch, - String ifNoneMatch, - Context context) { - return beginCreateOrUpdateAsync( - workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch, ifNoneMatch, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono createOrUpdateAsync(String workspaceName, String resourceGroupName, + String kustoPoolName, KustoPoolInner parameters, String ifMatch, String ifNoneMatch, Context context) { + return beginCreateOrUpdateAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch, + ifNoneMatch, context).last().flatMap(this.client::getLroFinalResultOrError); } /** * Create or update a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kustoPoolName The name of the Kusto pool. @@ -1304,8 +1039,8 @@ private Mono createOrUpdateAsync( * @return class representing a Kusto kusto pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - public KustoPoolInner createOrUpdate( - String workspaceName, String resourceGroupName, String kustoPoolName, KustoPoolInner parameters) { + public KustoPoolInner createOrUpdate(String workspaceName, String resourceGroupName, String kustoPoolName, + KustoPoolInner parameters) { final String ifMatch = null; final String ifNoneMatch = null; return createOrUpdateAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch, ifNoneMatch) @@ -1314,15 +1049,15 @@ public KustoPoolInner createOrUpdate( /** * Create or update a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kustoPoolName The name of the Kusto pool. * @param parameters The Kusto pool parameters supplied to the CreateOrUpdate operation. * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. Specify - * the last-seen ETag value to prevent accidentally overwriting concurrent changes. + * the last-seen ETag value to prevent accidentally overwriting concurrent changes. * @param ifNoneMatch Set to '*' to allow a new Kusto Pool to be created, but to prevent updating an existing Kusto - * Pool. Other values will result in a 412 Pre-condition Failed response. + * Pool. Other values will result in a 412 Pre-condition Failed response. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1330,46 +1065,33 @@ public KustoPoolInner createOrUpdate( * @return class representing a Kusto kusto pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - public KustoPoolInner createOrUpdate( - String workspaceName, - String resourceGroupName, - String kustoPoolName, - KustoPoolInner parameters, - String ifMatch, - String ifNoneMatch, - Context context) { - return createOrUpdateAsync( - workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch, ifNoneMatch, context) - .block(); + public KustoPoolInner createOrUpdate(String workspaceName, String resourceGroupName, String kustoPoolName, + KustoPoolInner parameters, String ifMatch, String ifNoneMatch, Context context) { + return createOrUpdateAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch, ifNoneMatch, + context).block(); } /** * Update a Kusto Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kustoPoolName The name of the Kusto pool. * @param parameters The Kusto pool parameters supplied to the Update operation. * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. Specify - * the last-seen ETag value to prevent accidentally overwriting concurrent changes. + * the last-seen ETag value to prevent accidentally overwriting concurrent changes. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto kusto pool along with {@link Response} on successful completion of {@link - * Mono}. + * @return class representing a Kusto kusto pool along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync( - String workspaceName, - String resourceGroupName, - String kustoPoolName, - KustoPoolUpdate parameters, - String ifMatch) { + private Mono>> updateWithResponseAsync(String workspaceName, String resourceGroupName, + String kustoPoolName, KustoPoolUpdate parameters, String ifMatch) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -1382,10 +1104,8 @@ private Mono>> updateWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter 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.")); @@ -1395,52 +1115,33 @@ private Mono>> updateWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .update( - this.client.getEndpoint(), - workspaceName, - resourceGroupName, - kustoPoolName, - ifMatch, - this.client.getSubscriptionId(), - apiVersion, - parameters, - accept, - context)) + .withContext(context -> service.update(this.client.getEndpoint(), workspaceName, resourceGroupName, + kustoPoolName, ifMatch, this.client.getSubscriptionId(), apiVersion, parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Update a Kusto Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kustoPoolName The name of the Kusto pool. * @param parameters The Kusto pool parameters supplied to the Update operation. * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. Specify - * the last-seen ETag value to prevent accidentally overwriting concurrent changes. + * the last-seen ETag value to prevent accidentally overwriting concurrent changes. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class representing a Kusto kusto pool along with {@link Response} on successful completion of {@link - * Mono}. + * @return class representing a Kusto kusto pool along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync( - String workspaceName, - String resourceGroupName, - String kustoPoolName, - KustoPoolUpdate parameters, - String ifMatch, - Context context) { + private Mono>> updateWithResponseAsync(String workspaceName, String resourceGroupName, + String kustoPoolName, KustoPoolUpdate parameters, String ifMatch, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -1453,10 +1154,8 @@ private Mono>> updateWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter 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.")); @@ -1466,56 +1165,36 @@ private Mono>> updateWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .update( - this.client.getEndpoint(), - workspaceName, - resourceGroupName, - kustoPoolName, - ifMatch, - this.client.getSubscriptionId(), - apiVersion, - parameters, - accept, - context); + return service.update(this.client.getEndpoint(), workspaceName, resourceGroupName, kustoPoolName, ifMatch, + this.client.getSubscriptionId(), apiVersion, parameters, accept, context); } /** * Update a Kusto Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kustoPoolName The name of the Kusto pool. * @param parameters The Kusto pool parameters supplied to the Update operation. * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. Specify - * the last-seen ETag value to prevent accidentally overwriting concurrent changes. + * the last-seen ETag value to prevent accidentally overwriting concurrent changes. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of class representing a Kusto kusto pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, KustoPoolInner> beginUpdateAsync( - String workspaceName, - String resourceGroupName, - String kustoPoolName, - KustoPoolUpdate parameters, - String ifMatch) { - Mono>> mono = - updateWithResponseAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - KustoPoolInner.class, - KustoPoolInner.class, - this.client.getContext()); + private PollerFlux, KustoPoolInner> beginUpdateAsync(String workspaceName, + String resourceGroupName, String kustoPoolName, KustoPoolUpdate parameters, String ifMatch) { + Mono>> mono + = updateWithResponseAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + KustoPoolInner.class, KustoPoolInner.class, this.client.getContext()); } /** * Update a Kusto Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kustoPoolName The name of the Kusto pool. @@ -1526,30 +1205,24 @@ private PollerFlux, KustoPoolInner> beginUpdateAsync( * @return the {@link PollerFlux} for polling of class representing a Kusto kusto pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, KustoPoolInner> beginUpdateAsync( - String workspaceName, String resourceGroupName, String kustoPoolName, KustoPoolUpdate parameters) { + private PollerFlux, KustoPoolInner> beginUpdateAsync(String workspaceName, + String resourceGroupName, String kustoPoolName, KustoPoolUpdate parameters) { final String ifMatch = null; - Mono>> mono = - updateWithResponseAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - KustoPoolInner.class, - KustoPoolInner.class, - this.client.getContext()); + Mono>> mono + = updateWithResponseAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + KustoPoolInner.class, KustoPoolInner.class, this.client.getContext()); } /** * Update a Kusto Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kustoPoolName The name of the Kusto pool. * @param parameters The Kusto pool parameters supplied to the Update operation. * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. Specify - * the last-seen ETag value to prevent accidentally overwriting concurrent changes. + * the last-seen ETag value to prevent accidentally overwriting concurrent changes. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1557,25 +1230,18 @@ private PollerFlux, KustoPoolInner> beginUpdateAsync( * @return the {@link PollerFlux} for polling of class representing a Kusto kusto pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, KustoPoolInner> beginUpdateAsync( - String workspaceName, - String resourceGroupName, - String kustoPoolName, - KustoPoolUpdate parameters, - String ifMatch, - Context context) { + private PollerFlux, KustoPoolInner> beginUpdateAsync(String workspaceName, + String resourceGroupName, String kustoPoolName, KustoPoolUpdate parameters, String ifMatch, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - updateWithResponseAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch, context); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), KustoPoolInner.class, KustoPoolInner.class, context); + Mono>> mono + = updateWithResponseAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + KustoPoolInner.class, KustoPoolInner.class, context); } /** * Update a Kusto Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kustoPoolName The name of the Kusto pool. @@ -1586,23 +1252,22 @@ private PollerFlux, KustoPoolInner> beginUpdateAsync( * @return the {@link SyncPoller} for polling of class representing a Kusto kusto pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, KustoPoolInner> beginUpdate( - String workspaceName, String resourceGroupName, String kustoPoolName, KustoPoolUpdate parameters) { + public SyncPoller, KustoPoolInner> beginUpdate(String workspaceName, + String resourceGroupName, String kustoPoolName, KustoPoolUpdate parameters) { final String ifMatch = null; - return this - .beginUpdateAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch) + return this.beginUpdateAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch) .getSyncPoller(); } /** * Update a Kusto Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kustoPoolName The name of the Kusto pool. * @param parameters The Kusto pool parameters supplied to the Update operation. * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. Specify - * the last-seen ETag value to prevent accidentally overwriting concurrent changes. + * the last-seen ETag value to prevent accidentally overwriting concurrent changes. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1610,47 +1275,36 @@ public SyncPoller, KustoPoolInner> beginUpdate( * @return the {@link SyncPoller} for polling of class representing a Kusto kusto pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, KustoPoolInner> beginUpdate( - String workspaceName, - String resourceGroupName, - String kustoPoolName, - KustoPoolUpdate parameters, - String ifMatch, - Context context) { - return this - .beginUpdateAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch, context) + public SyncPoller, KustoPoolInner> beginUpdate(String workspaceName, + String resourceGroupName, String kustoPoolName, KustoPoolUpdate parameters, String ifMatch, Context context) { + return this.beginUpdateAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch, context) .getSyncPoller(); } /** * Update a Kusto Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kustoPoolName The name of the Kusto pool. * @param parameters The Kusto pool parameters supplied to the Update operation. * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. Specify - * the last-seen ETag value to prevent accidentally overwriting concurrent changes. + * the last-seen ETag value to prevent accidentally overwriting concurrent changes. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return class representing a Kusto kusto pool on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync( - String workspaceName, - String resourceGroupName, - String kustoPoolName, - KustoPoolUpdate parameters, - String ifMatch) { - return beginUpdateAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch) - .last() + private Mono updateAsync(String workspaceName, String resourceGroupName, String kustoPoolName, + KustoPoolUpdate parameters, String ifMatch) { + return beginUpdateAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Update a Kusto Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kustoPoolName The name of the Kusto pool. @@ -1661,23 +1315,22 @@ private Mono updateAsync( * @return class representing a Kusto kusto pool on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync( - String workspaceName, String resourceGroupName, String kustoPoolName, KustoPoolUpdate parameters) { + private Mono updateAsync(String workspaceName, String resourceGroupName, String kustoPoolName, + KustoPoolUpdate parameters) { final String ifMatch = null; - return beginUpdateAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch) - .last() + return beginUpdateAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Update a Kusto Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kustoPoolName The name of the Kusto pool. * @param parameters The Kusto pool parameters supplied to the Update operation. * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. Specify - * the last-seen ETag value to prevent accidentally overwriting concurrent changes. + * the last-seen ETag value to prevent accidentally overwriting concurrent changes. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1685,21 +1338,15 @@ private Mono updateAsync( * @return class representing a Kusto kusto pool on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync( - String workspaceName, - String resourceGroupName, - String kustoPoolName, - KustoPoolUpdate parameters, - String ifMatch, - Context context) { - return beginUpdateAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch, context) - .last() + private Mono updateAsync(String workspaceName, String resourceGroupName, String kustoPoolName, + KustoPoolUpdate parameters, String ifMatch, Context context) { + return beginUpdateAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Update a Kusto Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kustoPoolName The name of the Kusto pool. @@ -1710,21 +1357,21 @@ private Mono updateAsync( * @return class representing a Kusto kusto pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - public KustoPoolInner update( - String workspaceName, String resourceGroupName, String kustoPoolName, KustoPoolUpdate parameters) { + public KustoPoolInner update(String workspaceName, String resourceGroupName, String kustoPoolName, + KustoPoolUpdate parameters) { final String ifMatch = null; return updateAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch).block(); } /** * Update a Kusto Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kustoPoolName The name of the Kusto pool. * @param parameters The Kusto pool parameters supplied to the Update operation. * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. Specify - * the last-seen ETag value to prevent accidentally overwriting concurrent changes. + * the last-seen ETag value to prevent accidentally overwriting concurrent changes. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1732,19 +1379,14 @@ public KustoPoolInner update( * @return class representing a Kusto kusto pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - public KustoPoolInner update( - String workspaceName, - String resourceGroupName, - String kustoPoolName, - KustoPoolUpdate parameters, - String ifMatch, - Context context) { + public KustoPoolInner update(String workspaceName, String resourceGroupName, String kustoPoolName, + KustoPoolUpdate parameters, String ifMatch, Context context) { return updateAsync(workspaceName, resourceGroupName, kustoPoolName, parameters, ifMatch, context).block(); } /** * Deletes a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kustoPoolName The name of the Kusto pool. @@ -1754,13 +1396,11 @@ public KustoPoolInner update( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync( - String workspaceName, String resourceGroupName, String kustoPoolName) { + private Mono>> deleteWithResponseAsync(String workspaceName, String resourceGroupName, + String kustoPoolName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -1773,32 +1413,20 @@ private Mono>> deleteWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .delete( - this.client.getEndpoint(), - workspaceName, - resourceGroupName, - kustoPoolName, - this.client.getSubscriptionId(), - apiVersion, - accept, - context)) + .withContext(context -> service.delete(this.client.getEndpoint(), workspaceName, resourceGroupName, + kustoPoolName, this.client.getSubscriptionId(), apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kustoPoolName The name of the Kusto pool. @@ -1809,13 +1437,11 @@ private Mono>> deleteWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync( - String workspaceName, String resourceGroupName, String kustoPoolName, Context context) { + private Mono>> deleteWithResponseAsync(String workspaceName, String resourceGroupName, + String kustoPoolName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -1828,29 +1454,19 @@ private Mono>> deleteWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .delete( - this.client.getEndpoint(), - workspaceName, - resourceGroupName, - kustoPoolName, - this.client.getSubscriptionId(), - apiVersion, - accept, - context); + return service.delete(this.client.getEndpoint(), workspaceName, resourceGroupName, kustoPoolName, + this.client.getSubscriptionId(), apiVersion, accept, context); } /** * Deletes a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kustoPoolName The name of the Kusto pool. @@ -1860,19 +1476,17 @@ private Mono>> deleteWithResponseAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync( - String workspaceName, String resourceGroupName, String kustoPoolName) { - Mono>> mono = - deleteWithResponseAsync(workspaceName, resourceGroupName, kustoPoolName); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + private PollerFlux, Void> beginDeleteAsync(String workspaceName, String resourceGroupName, + String kustoPoolName) { + Mono>> mono + = deleteWithResponseAsync(workspaceName, resourceGroupName, kustoPoolName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Deletes a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kustoPoolName The name of the Kusto pool. @@ -1883,19 +1497,18 @@ private PollerFlux, Void> beginDeleteAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync( - String workspaceName, String resourceGroupName, String kustoPoolName, Context context) { + private PollerFlux, Void> beginDeleteAsync(String workspaceName, String resourceGroupName, + String kustoPoolName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - deleteWithResponseAsync(workspaceName, resourceGroupName, kustoPoolName, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + Mono>> mono + = deleteWithResponseAsync(workspaceName, resourceGroupName, kustoPoolName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * Deletes a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kustoPoolName The name of the Kusto pool. @@ -1905,14 +1518,14 @@ private PollerFlux, Void> beginDeleteAsync( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete( - String workspaceName, String resourceGroupName, String kustoPoolName) { + public SyncPoller, Void> beginDelete(String workspaceName, String resourceGroupName, + String kustoPoolName) { return this.beginDeleteAsync(workspaceName, resourceGroupName, kustoPoolName).getSyncPoller(); } /** * Deletes a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kustoPoolName The name of the Kusto pool. @@ -1923,14 +1536,14 @@ public SyncPoller, Void> beginDelete( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete( - String workspaceName, String resourceGroupName, String kustoPoolName, Context context) { + public SyncPoller, Void> beginDelete(String workspaceName, String resourceGroupName, + String kustoPoolName, Context context) { return this.beginDeleteAsync(workspaceName, resourceGroupName, kustoPoolName, context).getSyncPoller(); } /** * Deletes a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kustoPoolName The name of the Kusto pool. @@ -1941,14 +1554,13 @@ public SyncPoller, Void> beginDelete( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String workspaceName, String resourceGroupName, String kustoPoolName) { - return beginDeleteAsync(workspaceName, resourceGroupName, kustoPoolName) - .last() + return beginDeleteAsync(workspaceName, resourceGroupName, kustoPoolName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Deletes a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kustoPoolName The name of the Kusto pool. @@ -1959,16 +1571,15 @@ private Mono deleteAsync(String workspaceName, String resourceGroupName, S * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync( - String workspaceName, String resourceGroupName, String kustoPoolName, Context context) { - return beginDeleteAsync(workspaceName, resourceGroupName, kustoPoolName, context) - .last() + private Mono deleteAsync(String workspaceName, String resourceGroupName, String kustoPoolName, + Context context) { + return beginDeleteAsync(workspaceName, resourceGroupName, kustoPoolName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Deletes a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kustoPoolName The name of the Kusto pool. @@ -1983,7 +1594,7 @@ public void delete(String workspaceName, String resourceGroupName, String kustoP /** * Deletes a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kustoPoolName The name of the Kusto pool. @@ -1999,7 +1610,7 @@ public void delete(String workspaceName, String resourceGroupName, String kustoP /** * Stops a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2009,13 +1620,11 @@ public void delete(String workspaceName, String resourceGroupName, String kustoP * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> stopWithResponseAsync( - String workspaceName, String kustoPoolName, String resourceGroupName) { + private Mono>> stopWithResponseAsync(String workspaceName, String kustoPoolName, + String resourceGroupName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -2024,10 +1633,8 @@ private Mono>> stopWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2036,24 +1643,14 @@ private Mono>> stopWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .stop( - this.client.getEndpoint(), - workspaceName, - kustoPoolName, - this.client.getSubscriptionId(), - resourceGroupName, - apiVersion, - accept, - context)) + .withContext(context -> service.stop(this.client.getEndpoint(), workspaceName, kustoPoolName, + this.client.getSubscriptionId(), resourceGroupName, apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Stops a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2064,13 +1661,11 @@ private Mono>> stopWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> stopWithResponseAsync( - String workspaceName, String kustoPoolName, String resourceGroupName, Context context) { + private Mono>> stopWithResponseAsync(String workspaceName, String kustoPoolName, + String resourceGroupName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -2079,10 +1674,8 @@ private Mono>> stopWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2091,21 +1684,13 @@ private Mono>> stopWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .stop( - this.client.getEndpoint(), - workspaceName, - kustoPoolName, - this.client.getSubscriptionId(), - resourceGroupName, - apiVersion, - accept, - context); + return service.stop(this.client.getEndpoint(), workspaceName, kustoPoolName, this.client.getSubscriptionId(), + resourceGroupName, apiVersion, accept, context); } /** * Stops a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2115,18 +1700,16 @@ private Mono>> stopWithResponseAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginStopAsync( - String workspaceName, String kustoPoolName, String resourceGroupName) { + private PollerFlux, Void> beginStopAsync(String workspaceName, String kustoPoolName, + String resourceGroupName) { Mono>> mono = stopWithResponseAsync(workspaceName, kustoPoolName, resourceGroupName); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Stops a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2137,19 +1720,18 @@ private PollerFlux, Void> beginStopAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginStopAsync( - String workspaceName, String kustoPoolName, String resourceGroupName, Context context) { + private PollerFlux, Void> beginStopAsync(String workspaceName, String kustoPoolName, + String resourceGroupName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - stopWithResponseAsync(workspaceName, kustoPoolName, resourceGroupName, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + Mono>> mono + = stopWithResponseAsync(workspaceName, kustoPoolName, resourceGroupName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * Stops a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2159,14 +1741,14 @@ private PollerFlux, Void> beginStopAsync( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginStop( - String workspaceName, String kustoPoolName, String resourceGroupName) { + public SyncPoller, Void> beginStop(String workspaceName, String kustoPoolName, + String resourceGroupName) { return this.beginStopAsync(workspaceName, kustoPoolName, resourceGroupName).getSyncPoller(); } /** * Stops a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2177,14 +1759,14 @@ public SyncPoller, Void> beginStop( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginStop( - String workspaceName, String kustoPoolName, String resourceGroupName, Context context) { + public SyncPoller, Void> beginStop(String workspaceName, String kustoPoolName, + String resourceGroupName, Context context) { return this.beginStopAsync(workspaceName, kustoPoolName, resourceGroupName, context).getSyncPoller(); } /** * Stops a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2195,14 +1777,13 @@ public SyncPoller, Void> beginStop( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono stopAsync(String workspaceName, String kustoPoolName, String resourceGroupName) { - return beginStopAsync(workspaceName, kustoPoolName, resourceGroupName) - .last() + return beginStopAsync(workspaceName, kustoPoolName, resourceGroupName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Stops a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2213,16 +1794,15 @@ private Mono stopAsync(String workspaceName, String kustoPoolName, String * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono stopAsync( - String workspaceName, String kustoPoolName, String resourceGroupName, Context context) { - return beginStopAsync(workspaceName, kustoPoolName, resourceGroupName, context) - .last() + private Mono stopAsync(String workspaceName, String kustoPoolName, String resourceGroupName, + Context context) { + return beginStopAsync(workspaceName, kustoPoolName, resourceGroupName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Stops a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2237,7 +1817,7 @@ public void stop(String workspaceName, String kustoPoolName, String resourceGrou /** * Stops a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2253,7 +1833,7 @@ public void stop(String workspaceName, String kustoPoolName, String resourceGrou /** * Starts a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2263,13 +1843,11 @@ public void stop(String workspaceName, String kustoPoolName, String resourceGrou * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> startWithResponseAsync( - String workspaceName, String kustoPoolName, String resourceGroupName) { + private Mono>> startWithResponseAsync(String workspaceName, String kustoPoolName, + String resourceGroupName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -2278,10 +1856,8 @@ private Mono>> startWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2290,24 +1866,14 @@ private Mono>> startWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .start( - this.client.getEndpoint(), - workspaceName, - kustoPoolName, - this.client.getSubscriptionId(), - resourceGroupName, - apiVersion, - accept, - context)) + .withContext(context -> service.start(this.client.getEndpoint(), workspaceName, kustoPoolName, + this.client.getSubscriptionId(), resourceGroupName, apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Starts a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2318,13 +1884,11 @@ private Mono>> startWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> startWithResponseAsync( - String workspaceName, String kustoPoolName, String resourceGroupName, Context context) { + private Mono>> startWithResponseAsync(String workspaceName, String kustoPoolName, + String resourceGroupName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -2333,10 +1897,8 @@ private Mono>> startWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2345,21 +1907,13 @@ private Mono>> startWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .start( - this.client.getEndpoint(), - workspaceName, - kustoPoolName, - this.client.getSubscriptionId(), - resourceGroupName, - apiVersion, - accept, - context); + return service.start(this.client.getEndpoint(), workspaceName, kustoPoolName, this.client.getSubscriptionId(), + resourceGroupName, apiVersion, accept, context); } /** * Starts a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2369,18 +1923,16 @@ private Mono>> startWithResponseAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginStartAsync( - String workspaceName, String kustoPoolName, String resourceGroupName) { + private PollerFlux, Void> beginStartAsync(String workspaceName, String kustoPoolName, + String resourceGroupName) { Mono>> mono = startWithResponseAsync(workspaceName, kustoPoolName, resourceGroupName); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Starts a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2391,19 +1943,18 @@ private PollerFlux, Void> beginStartAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginStartAsync( - String workspaceName, String kustoPoolName, String resourceGroupName, Context context) { + private PollerFlux, Void> beginStartAsync(String workspaceName, String kustoPoolName, + String resourceGroupName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - startWithResponseAsync(workspaceName, kustoPoolName, resourceGroupName, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + Mono>> mono + = startWithResponseAsync(workspaceName, kustoPoolName, resourceGroupName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * Starts a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2413,14 +1964,14 @@ private PollerFlux, Void> beginStartAsync( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginStart( - String workspaceName, String kustoPoolName, String resourceGroupName) { + public SyncPoller, Void> beginStart(String workspaceName, String kustoPoolName, + String resourceGroupName) { return this.beginStartAsync(workspaceName, kustoPoolName, resourceGroupName).getSyncPoller(); } /** * Starts a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2431,14 +1982,14 @@ public SyncPoller, Void> beginStart( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginStart( - String workspaceName, String kustoPoolName, String resourceGroupName, Context context) { + public SyncPoller, Void> beginStart(String workspaceName, String kustoPoolName, + String resourceGroupName, Context context) { return this.beginStartAsync(workspaceName, kustoPoolName, resourceGroupName, context).getSyncPoller(); } /** * Starts a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2449,14 +2000,13 @@ public SyncPoller, Void> beginStart( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono startAsync(String workspaceName, String kustoPoolName, String resourceGroupName) { - return beginStartAsync(workspaceName, kustoPoolName, resourceGroupName) - .last() + return beginStartAsync(workspaceName, kustoPoolName, resourceGroupName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Starts a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2467,16 +2017,15 @@ private Mono startAsync(String workspaceName, String kustoPoolName, String * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono startAsync( - String workspaceName, String kustoPoolName, String resourceGroupName, Context context) { - return beginStartAsync(workspaceName, kustoPoolName, resourceGroupName, context) - .last() + private Mono startAsync(String workspaceName, String kustoPoolName, String resourceGroupName, + Context context) { + return beginStartAsync(workspaceName, kustoPoolName, resourceGroupName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Starts a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2491,7 +2040,7 @@ public void start(String workspaceName, String kustoPoolName, String resourceGro /** * Starts a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2507,7 +2056,7 @@ public void start(String workspaceName, String kustoPoolName, String resourceGro /** * Returns the SKUs available for the provided resource. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2515,16 +2064,14 @@ public void start(String workspaceName, String kustoPoolName, String resourceGro * @throws 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 available SKUs for a Kusto Pool along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSkusByResourceSinglePageAsync( - String workspaceName, String kustoPoolName, String resourceGroupName) { + private Mono> listSkusByResourceSinglePageAsync(String workspaceName, + String kustoPoolName, String resourceGroupName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -2533,10 +2080,8 @@ private Mono> listSkusByResourceSinglePageA return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2545,28 +2090,16 @@ private Mono> listSkusByResourceSinglePageA final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .listSkusByResource( - this.client.getEndpoint(), - workspaceName, - kustoPoolName, - this.client.getSubscriptionId(), - resourceGroupName, - apiVersion, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)) + .withContext(context -> service.listSkusByResource(this.client.getEndpoint(), workspaceName, kustoPoolName, + this.client.getSubscriptionId(), resourceGroupName, apiVersion, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Returns the SKUs available for the provided resource. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2575,16 +2108,14 @@ private Mono> listSkusByResourceSinglePageA * @throws 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 available SKUs for a Kusto Pool along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSkusByResourceSinglePageAsync( - String workspaceName, String kustoPoolName, String resourceGroupName, Context context) { + private Mono> listSkusByResourceSinglePageAsync(String workspaceName, + String kustoPoolName, String resourceGroupName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -2593,10 +2124,8 @@ private Mono> listSkusByResourceSinglePageA return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2606,24 +2135,15 @@ private Mono> listSkusByResourceSinglePageA final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listSkusByResource( - this.client.getEndpoint(), - workspaceName, - kustoPoolName, - this.client.getSubscriptionId(), - resourceGroupName, - apiVersion, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)); + .listSkusByResource(this.client.getEndpoint(), workspaceName, kustoPoolName, + this.client.getSubscriptionId(), resourceGroupName, apiVersion, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), null, null)); } /** * Returns the SKUs available for the provided resource. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2633,15 +2153,15 @@ private Mono> listSkusByResourceSinglePageA * @return list of available SKUs for a Kusto Pool as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listSkusByResourceAsync( - String workspaceName, String kustoPoolName, String resourceGroupName) { + private PagedFlux listSkusByResourceAsync(String workspaceName, String kustoPoolName, + String resourceGroupName) { return new PagedFlux<>( () -> listSkusByResourceSinglePageAsync(workspaceName, kustoPoolName, resourceGroupName)); } /** * Returns the SKUs available for the provided resource. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2652,15 +2172,15 @@ private PagedFlux listSkusByResourceAsync( * @return list of available SKUs for a Kusto Pool as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listSkusByResourceAsync( - String workspaceName, String kustoPoolName, String resourceGroupName, Context context) { + private PagedFlux listSkusByResourceAsync(String workspaceName, String kustoPoolName, + String resourceGroupName, Context context) { return new PagedFlux<>( () -> listSkusByResourceSinglePageAsync(workspaceName, kustoPoolName, resourceGroupName, context)); } /** * Returns the SKUs available for the provided resource. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2670,14 +2190,14 @@ private PagedFlux listSkusByResourceAsync( * @return list of available SKUs for a Kusto Pool as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listSkusByResource( - String workspaceName, String kustoPoolName, String resourceGroupName) { + public PagedIterable listSkusByResource(String workspaceName, String kustoPoolName, + String resourceGroupName) { return new PagedIterable<>(listSkusByResourceAsync(workspaceName, kustoPoolName, resourceGroupName)); } /** * Returns the SKUs available for the provided resource. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2688,14 +2208,14 @@ public PagedIterable listSkusByResource( * @return list of available SKUs for a Kusto Pool as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listSkusByResource( - String workspaceName, String kustoPoolName, String resourceGroupName, Context context) { + public PagedIterable listSkusByResource(String workspaceName, String kustoPoolName, + String resourceGroupName, Context context) { return new PagedIterable<>(listSkusByResourceAsync(workspaceName, kustoPoolName, resourceGroupName, context)); } /** * Returns a list of language extensions that can run within KQL queries. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2703,16 +2223,14 @@ public PagedIterable listSkusByResource( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of language extension objects along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listLanguageExtensionsSinglePageAsync( - String workspaceName, String kustoPoolName, String resourceGroupName) { + private Mono> listLanguageExtensionsSinglePageAsync(String workspaceName, + String kustoPoolName, String resourceGroupName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -2721,10 +2239,8 @@ private Mono> listLanguageExtensionsSingle return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2733,28 +2249,16 @@ private Mono> listLanguageExtensionsSingle final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .listLanguageExtensions( - this.client.getEndpoint(), - workspaceName, - kustoPoolName, - this.client.getSubscriptionId(), - resourceGroupName, - apiVersion, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)) + .withContext(context -> service.listLanguageExtensions(this.client.getEndpoint(), workspaceName, + kustoPoolName, this.client.getSubscriptionId(), resourceGroupName, apiVersion, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Returns a list of language extensions that can run within KQL queries. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2763,16 +2267,14 @@ private Mono> listLanguageExtensionsSingle * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of language extension objects along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listLanguageExtensionsSinglePageAsync( - String workspaceName, String kustoPoolName, String resourceGroupName, Context context) { + private Mono> listLanguageExtensionsSinglePageAsync(String workspaceName, + String kustoPoolName, String resourceGroupName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -2781,10 +2283,8 @@ private Mono> listLanguageExtensionsSingle return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2794,24 +2294,15 @@ private Mono> listLanguageExtensionsSingle final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listLanguageExtensions( - this.client.getEndpoint(), - workspaceName, - kustoPoolName, - this.client.getSubscriptionId(), - resourceGroupName, - apiVersion, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)); + .listLanguageExtensions(this.client.getEndpoint(), workspaceName, kustoPoolName, + this.client.getSubscriptionId(), resourceGroupName, apiVersion, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), null, null)); } /** * Returns a list of language extensions that can run within KQL queries. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2821,15 +2312,15 @@ private Mono> listLanguageExtensionsSingle * @return the list of language extension objects as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listLanguageExtensionsAsync( - String workspaceName, String kustoPoolName, String resourceGroupName) { + private PagedFlux listLanguageExtensionsAsync(String workspaceName, String kustoPoolName, + String resourceGroupName) { return new PagedFlux<>( () -> listLanguageExtensionsSinglePageAsync(workspaceName, kustoPoolName, resourceGroupName)); } /** * Returns a list of language extensions that can run within KQL queries. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2840,15 +2331,15 @@ private PagedFlux listLanguageExtensionsAsync( * @return the list of language extension objects as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listLanguageExtensionsAsync( - String workspaceName, String kustoPoolName, String resourceGroupName, Context context) { + private PagedFlux listLanguageExtensionsAsync(String workspaceName, String kustoPoolName, + String resourceGroupName, Context context) { return new PagedFlux<>( () -> listLanguageExtensionsSinglePageAsync(workspaceName, kustoPoolName, resourceGroupName, context)); } /** * Returns a list of language extensions that can run within KQL queries. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2858,14 +2349,14 @@ private PagedFlux listLanguageExtensionsAsync( * @return the list of language extension objects as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listLanguageExtensions( - String workspaceName, String kustoPoolName, String resourceGroupName) { + public PagedIterable listLanguageExtensions(String workspaceName, String kustoPoolName, + String resourceGroupName) { return new PagedIterable<>(listLanguageExtensionsAsync(workspaceName, kustoPoolName, resourceGroupName)); } /** * Returns a list of language extensions that can run within KQL queries. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2876,15 +2367,15 @@ public PagedIterable listLanguageExtensions( * @return the list of language extension objects as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listLanguageExtensions( - String workspaceName, String kustoPoolName, String resourceGroupName, Context context) { + public PagedIterable listLanguageExtensions(String workspaceName, String kustoPoolName, + String resourceGroupName, Context context) { return new PagedIterable<>( listLanguageExtensionsAsync(workspaceName, kustoPoolName, resourceGroupName, context)); } /** * Add a list of language extensions that can run within KQL queries. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2895,16 +2386,11 @@ public PagedIterable listLanguageExtensions( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> addLanguageExtensionsWithResponseAsync( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - LanguageExtensionsList languageExtensionsToAdd) { + private Mono>> addLanguageExtensionsWithResponseAsync(String workspaceName, + String kustoPoolName, String resourceGroupName, LanguageExtensionsList languageExtensionsToAdd) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -2913,44 +2399,31 @@ private Mono>> addLanguageExtensionsWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } if (languageExtensionsToAdd == null) { - return Mono - .error( - new IllegalArgumentException("Parameter languageExtensionsToAdd is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter languageExtensionsToAdd is required and cannot be null.")); } else { languageExtensionsToAdd.validate(); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .addLanguageExtensions( - this.client.getEndpoint(), - workspaceName, - kustoPoolName, - this.client.getSubscriptionId(), - resourceGroupName, - apiVersion, - languageExtensionsToAdd, - accept, - context)) + .withContext(context -> service.addLanguageExtensions(this.client.getEndpoint(), workspaceName, + kustoPoolName, this.client.getSubscriptionId(), resourceGroupName, apiVersion, languageExtensionsToAdd, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Add a list of language extensions that can run within KQL queries. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -2962,17 +2435,12 @@ private Mono>> addLanguageExtensionsWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> addLanguageExtensionsWithResponseAsync( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - LanguageExtensionsList languageExtensionsToAdd, + private Mono>> addLanguageExtensionsWithResponseAsync(String workspaceName, + String kustoPoolName, String resourceGroupName, LanguageExtensionsList languageExtensionsToAdd, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -2981,41 +2449,29 @@ private Mono>> addLanguageExtensionsWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } if (languageExtensionsToAdd == null) { - return Mono - .error( - new IllegalArgumentException("Parameter languageExtensionsToAdd is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter languageExtensionsToAdd is required and cannot be null.")); } else { languageExtensionsToAdd.validate(); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .addLanguageExtensions( - this.client.getEndpoint(), - workspaceName, - kustoPoolName, - this.client.getSubscriptionId(), - resourceGroupName, - apiVersion, - languageExtensionsToAdd, - accept, - context); + return service.addLanguageExtensions(this.client.getEndpoint(), workspaceName, kustoPoolName, + this.client.getSubscriptionId(), resourceGroupName, apiVersion, languageExtensionsToAdd, accept, context); } /** * Add a list of language extensions that can run within KQL queries. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -3026,23 +2482,17 @@ private Mono>> addLanguageExtensionsWithResponseAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginAddLanguageExtensionsAsync( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - LanguageExtensionsList languageExtensionsToAdd) { - Mono>> mono = - addLanguageExtensionsWithResponseAsync( - workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToAdd); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + private PollerFlux, Void> beginAddLanguageExtensionsAsync(String workspaceName, + String kustoPoolName, String resourceGroupName, LanguageExtensionsList languageExtensionsToAdd) { + Mono>> mono = addLanguageExtensionsWithResponseAsync(workspaceName, kustoPoolName, + resourceGroupName, languageExtensionsToAdd); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Add a list of language extensions that can run within KQL queries. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -3054,24 +2504,19 @@ private PollerFlux, Void> beginAddLanguageExtensionsAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginAddLanguageExtensionsAsync( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - LanguageExtensionsList languageExtensionsToAdd, + private PollerFlux, Void> beginAddLanguageExtensionsAsync(String workspaceName, + String kustoPoolName, String resourceGroupName, LanguageExtensionsList languageExtensionsToAdd, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - addLanguageExtensionsWithResponseAsync( - workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToAdd, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + Mono>> mono = addLanguageExtensionsWithResponseAsync(workspaceName, kustoPoolName, + resourceGroupName, languageExtensionsToAdd, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * Add a list of language extensions that can run within KQL queries. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -3082,11 +2527,8 @@ private PollerFlux, Void> beginAddLanguageExtensionsAsync( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginAddLanguageExtensions( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - LanguageExtensionsList languageExtensionsToAdd) { + public SyncPoller, Void> beginAddLanguageExtensions(String workspaceName, String kustoPoolName, + String resourceGroupName, LanguageExtensionsList languageExtensionsToAdd) { return this .beginAddLanguageExtensionsAsync(workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToAdd) .getSyncPoller(); @@ -3094,7 +2536,7 @@ public SyncPoller, Void> beginAddLanguageExtensions( /** * Add a list of language extensions that can run within KQL queries. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -3106,21 +2548,15 @@ public SyncPoller, Void> beginAddLanguageExtensions( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginAddLanguageExtensions( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - LanguageExtensionsList languageExtensionsToAdd, - Context context) { - return this - .beginAddLanguageExtensionsAsync( - workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToAdd, context) - .getSyncPoller(); + public SyncPoller, Void> beginAddLanguageExtensions(String workspaceName, String kustoPoolName, + String resourceGroupName, LanguageExtensionsList languageExtensionsToAdd, Context context) { + return this.beginAddLanguageExtensionsAsync(workspaceName, kustoPoolName, resourceGroupName, + languageExtensionsToAdd, context).getSyncPoller(); } /** * Add a list of language extensions that can run within KQL queries. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -3131,19 +2567,15 @@ public SyncPoller, Void> beginAddLanguageExtensions( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono addLanguageExtensionsAsync( - String workspaceName, - String kustoPoolName, - String resourceGroupName, + private Mono addLanguageExtensionsAsync(String workspaceName, String kustoPoolName, String resourceGroupName, LanguageExtensionsList languageExtensionsToAdd) { return beginAddLanguageExtensionsAsync(workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToAdd) - .last() - .flatMap(this.client::getLroFinalResultOrError); + .last().flatMap(this.client::getLroFinalResultOrError); } /** * Add a list of language extensions that can run within KQL queries. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -3155,21 +2587,15 @@ private Mono addLanguageExtensionsAsync( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono addLanguageExtensionsAsync( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - LanguageExtensionsList languageExtensionsToAdd, - Context context) { - return beginAddLanguageExtensionsAsync( - workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToAdd, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono addLanguageExtensionsAsync(String workspaceName, String kustoPoolName, String resourceGroupName, + LanguageExtensionsList languageExtensionsToAdd, Context context) { + return beginAddLanguageExtensionsAsync(workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToAdd, + context).last().flatMap(this.client::getLroFinalResultOrError); } /** * Add a list of language extensions that can run within KQL queries. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -3179,17 +2605,14 @@ private Mono addLanguageExtensionsAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void addLanguageExtensions( - String workspaceName, - String kustoPoolName, - String resourceGroupName, + public void addLanguageExtensions(String workspaceName, String kustoPoolName, String resourceGroupName, LanguageExtensionsList languageExtensionsToAdd) { addLanguageExtensionsAsync(workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToAdd).block(); } /** * Add a list of language extensions that can run within KQL queries. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -3200,19 +2623,15 @@ public void addLanguageExtensions( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void addLanguageExtensions( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - LanguageExtensionsList languageExtensionsToAdd, - Context context) { + public void addLanguageExtensions(String workspaceName, String kustoPoolName, String resourceGroupName, + LanguageExtensionsList languageExtensionsToAdd, Context context) { addLanguageExtensionsAsync(workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToAdd, context) .block(); } /** * Remove a list of language extensions that can run within KQL queries. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -3223,16 +2642,11 @@ public void addLanguageExtensions( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> removeLanguageExtensionsWithResponseAsync( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - LanguageExtensionsList languageExtensionsToRemove) { + private Mono>> removeLanguageExtensionsWithResponseAsync(String workspaceName, + String kustoPoolName, String resourceGroupName, LanguageExtensionsList languageExtensionsToRemove) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -3241,45 +2655,31 @@ private Mono>> removeLanguageExtensionsWithResponseAsy return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } if (languageExtensionsToRemove == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter languageExtensionsToRemove is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter languageExtensionsToRemove is required and cannot be null.")); } else { languageExtensionsToRemove.validate(); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .removeLanguageExtensions( - this.client.getEndpoint(), - workspaceName, - kustoPoolName, - this.client.getSubscriptionId(), - resourceGroupName, - apiVersion, - languageExtensionsToRemove, - accept, - context)) + .withContext(context -> service.removeLanguageExtensions(this.client.getEndpoint(), workspaceName, + kustoPoolName, this.client.getSubscriptionId(), resourceGroupName, apiVersion, + languageExtensionsToRemove, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Remove a list of language extensions that can run within KQL queries. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -3291,17 +2691,12 @@ private Mono>> removeLanguageExtensionsWithResponseAsy * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> removeLanguageExtensionsWithResponseAsync( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - LanguageExtensionsList languageExtensionsToRemove, + private Mono>> removeLanguageExtensionsWithResponseAsync(String workspaceName, + String kustoPoolName, String resourceGroupName, LanguageExtensionsList languageExtensionsToRemove, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -3310,42 +2705,30 @@ private Mono>> removeLanguageExtensionsWithResponseAsy return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } if (languageExtensionsToRemove == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter languageExtensionsToRemove is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter languageExtensionsToRemove is required and cannot be null.")); } else { languageExtensionsToRemove.validate(); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .removeLanguageExtensions( - this.client.getEndpoint(), - workspaceName, - kustoPoolName, - this.client.getSubscriptionId(), - resourceGroupName, - apiVersion, - languageExtensionsToRemove, - accept, - context); + return service.removeLanguageExtensions(this.client.getEndpoint(), workspaceName, kustoPoolName, + this.client.getSubscriptionId(), resourceGroupName, apiVersion, languageExtensionsToRemove, accept, + context); } /** * Remove a list of language extensions that can run within KQL queries. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -3356,23 +2739,17 @@ private Mono>> removeLanguageExtensionsWithResponseAsy * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginRemoveLanguageExtensionsAsync( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - LanguageExtensionsList languageExtensionsToRemove) { - Mono>> mono = - removeLanguageExtensionsWithResponseAsync( - workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToRemove); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + private PollerFlux, Void> beginRemoveLanguageExtensionsAsync(String workspaceName, + String kustoPoolName, String resourceGroupName, LanguageExtensionsList languageExtensionsToRemove) { + Mono>> mono = removeLanguageExtensionsWithResponseAsync(workspaceName, kustoPoolName, + resourceGroupName, languageExtensionsToRemove); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Remove a list of language extensions that can run within KQL queries. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -3384,24 +2761,19 @@ private PollerFlux, Void> beginRemoveLanguageExtensionsAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginRemoveLanguageExtensionsAsync( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - LanguageExtensionsList languageExtensionsToRemove, + private PollerFlux, Void> beginRemoveLanguageExtensionsAsync(String workspaceName, + String kustoPoolName, String resourceGroupName, LanguageExtensionsList languageExtensionsToRemove, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - removeLanguageExtensionsWithResponseAsync( - workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToRemove, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + Mono>> mono = removeLanguageExtensionsWithResponseAsync(workspaceName, kustoPoolName, + resourceGroupName, languageExtensionsToRemove, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * Remove a list of language extensions that can run within KQL queries. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -3412,20 +2784,15 @@ private PollerFlux, Void> beginRemoveLanguageExtensionsAsync( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginRemoveLanguageExtensions( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - LanguageExtensionsList languageExtensionsToRemove) { - return this - .beginRemoveLanguageExtensionsAsync( - workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToRemove) - .getSyncPoller(); + public SyncPoller, Void> beginRemoveLanguageExtensions(String workspaceName, String kustoPoolName, + String resourceGroupName, LanguageExtensionsList languageExtensionsToRemove) { + return this.beginRemoveLanguageExtensionsAsync(workspaceName, kustoPoolName, resourceGroupName, + languageExtensionsToRemove).getSyncPoller(); } /** * Remove a list of language extensions that can run within KQL queries. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -3437,21 +2804,15 @@ public SyncPoller, Void> beginRemoveLanguageExtensions( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginRemoveLanguageExtensions( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - LanguageExtensionsList languageExtensionsToRemove, - Context context) { - return this - .beginRemoveLanguageExtensionsAsync( - workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToRemove, context) - .getSyncPoller(); + public SyncPoller, Void> beginRemoveLanguageExtensions(String workspaceName, String kustoPoolName, + String resourceGroupName, LanguageExtensionsList languageExtensionsToRemove, Context context) { + return this.beginRemoveLanguageExtensionsAsync(workspaceName, kustoPoolName, resourceGroupName, + languageExtensionsToRemove, context).getSyncPoller(); } /** * Remove a list of language extensions that can run within KQL queries. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -3462,20 +2823,15 @@ public SyncPoller, Void> beginRemoveLanguageExtensions( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono removeLanguageExtensionsAsync( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - LanguageExtensionsList languageExtensionsToRemove) { - return beginRemoveLanguageExtensionsAsync( - workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToRemove) - .last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono removeLanguageExtensionsAsync(String workspaceName, String kustoPoolName, + String resourceGroupName, LanguageExtensionsList languageExtensionsToRemove) { + return beginRemoveLanguageExtensionsAsync(workspaceName, kustoPoolName, resourceGroupName, + languageExtensionsToRemove).last().flatMap(this.client::getLroFinalResultOrError); } /** * Remove a list of language extensions that can run within KQL queries. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -3487,21 +2843,15 @@ private Mono removeLanguageExtensionsAsync( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono removeLanguageExtensionsAsync( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - LanguageExtensionsList languageExtensionsToRemove, - Context context) { - return beginRemoveLanguageExtensionsAsync( - workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToRemove, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono removeLanguageExtensionsAsync(String workspaceName, String kustoPoolName, + String resourceGroupName, LanguageExtensionsList languageExtensionsToRemove, Context context) { + return beginRemoveLanguageExtensionsAsync(workspaceName, kustoPoolName, resourceGroupName, + languageExtensionsToRemove, context).last().flatMap(this.client::getLroFinalResultOrError); } /** * Remove a list of language extensions that can run within KQL queries. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -3511,10 +2861,7 @@ private Mono removeLanguageExtensionsAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void removeLanguageExtensions( - String workspaceName, - String kustoPoolName, - String resourceGroupName, + public void removeLanguageExtensions(String workspaceName, String kustoPoolName, String resourceGroupName, LanguageExtensionsList languageExtensionsToRemove) { removeLanguageExtensionsAsync(workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToRemove) .block(); @@ -3522,7 +2869,7 @@ public void removeLanguageExtensions( /** * Remove a list of language extensions that can run within KQL queries. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -3533,20 +2880,15 @@ public void removeLanguageExtensions( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void removeLanguageExtensions( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - LanguageExtensionsList languageExtensionsToRemove, - Context context) { - removeLanguageExtensionsAsync( - workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToRemove, context) - .block(); + public void removeLanguageExtensions(String workspaceName, String kustoPoolName, String resourceGroupName, + LanguageExtensionsList languageExtensionsToRemove, Context context) { + removeLanguageExtensionsAsync(workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToRemove, + context).block(); } /** * Returns a list of databases that are owned by this Kusto Pool and were followed by another Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -3554,16 +2896,14 @@ public void removeLanguageExtensions( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list Kusto database principals operation response along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listFollowerDatabasesSinglePageAsync( - String workspaceName, String kustoPoolName, String resourceGroupName) { + private Mono> + listFollowerDatabasesSinglePageAsync(String workspaceName, String kustoPoolName, String resourceGroupName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -3572,10 +2912,8 @@ private Mono> listFollowerDatabas return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -3584,28 +2922,16 @@ private Mono> listFollowerDatabas final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .listFollowerDatabases( - this.client.getEndpoint(), - workspaceName, - kustoPoolName, - this.client.getSubscriptionId(), - resourceGroupName, - apiVersion, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)) + .withContext(context -> service.listFollowerDatabases(this.client.getEndpoint(), workspaceName, + kustoPoolName, this.client.getSubscriptionId(), resourceGroupName, apiVersion, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Returns a list of databases that are owned by this Kusto Pool and were followed by another Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -3614,16 +2940,14 @@ private Mono> listFollowerDatabas * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list Kusto database principals operation response along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listFollowerDatabasesSinglePageAsync( String workspaceName, String kustoPoolName, String resourceGroupName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -3632,10 +2956,8 @@ private Mono> listFollowerDatabas return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -3645,24 +2967,15 @@ private Mono> listFollowerDatabas final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listFollowerDatabases( - this.client.getEndpoint(), - workspaceName, - kustoPoolName, - this.client.getSubscriptionId(), - resourceGroupName, - apiVersion, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)); + .listFollowerDatabases(this.client.getEndpoint(), workspaceName, kustoPoolName, + this.client.getSubscriptionId(), resourceGroupName, apiVersion, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), null, null)); } /** * Returns a list of databases that are owned by this Kusto Pool and were followed by another Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -3672,15 +2985,15 @@ private Mono> listFollowerDatabas * @return the list Kusto database principals operation response as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listFollowerDatabasesAsync( - String workspaceName, String kustoPoolName, String resourceGroupName) { + private PagedFlux listFollowerDatabasesAsync(String workspaceName, + String kustoPoolName, String resourceGroupName) { return new PagedFlux<>( () -> listFollowerDatabasesSinglePageAsync(workspaceName, kustoPoolName, resourceGroupName)); } /** * Returns a list of databases that are owned by this Kusto Pool and were followed by another Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -3691,15 +3004,15 @@ private PagedFlux listFollowerDatabasesAsync( * @return the list Kusto database principals operation response as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listFollowerDatabasesAsync( - String workspaceName, String kustoPoolName, String resourceGroupName, Context context) { + private PagedFlux listFollowerDatabasesAsync(String workspaceName, + String kustoPoolName, String resourceGroupName, Context context) { return new PagedFlux<>( () -> listFollowerDatabasesSinglePageAsync(workspaceName, kustoPoolName, resourceGroupName, context)); } /** * Returns a list of databases that are owned by this Kusto Pool and were followed by another Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -3709,14 +3022,14 @@ private PagedFlux listFollowerDatabasesAsync( * @return the list Kusto database principals operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listFollowerDatabases( - String workspaceName, String kustoPoolName, String resourceGroupName) { + public PagedIterable listFollowerDatabases(String workspaceName, + String kustoPoolName, String resourceGroupName) { return new PagedIterable<>(listFollowerDatabasesAsync(workspaceName, kustoPoolName, resourceGroupName)); } /** * Returns a list of databases that are owned by this Kusto Pool and were followed by another Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -3727,15 +3040,15 @@ public PagedIterable listFollowerDatabases( * @return the list Kusto database principals operation response as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listFollowerDatabases( - String workspaceName, String kustoPoolName, String resourceGroupName, Context context) { + public PagedIterable listFollowerDatabases(String workspaceName, + String kustoPoolName, String resourceGroupName, Context context) { return new PagedIterable<>( listFollowerDatabasesAsync(workspaceName, kustoPoolName, resourceGroupName, context)); } /** * Detaches all followers of a database owned by this Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -3746,16 +3059,11 @@ public PagedIterable listFollowerDatabases( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> detachFollowerDatabasesWithResponseAsync( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - FollowerDatabaseDefinitionInner followerDatabaseToRemove) { + private Mono>> detachFollowerDatabasesWithResponseAsync(String workspaceName, + String kustoPoolName, String resourceGroupName, FollowerDatabaseDefinitionInner followerDatabaseToRemove) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -3764,44 +3072,31 @@ private Mono>> detachFollowerDatabasesWithResponseAsyn return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } if (followerDatabaseToRemove == null) { - return Mono - .error( - new IllegalArgumentException("Parameter followerDatabaseToRemove is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter followerDatabaseToRemove is required and cannot be null.")); } else { followerDatabaseToRemove.validate(); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .detachFollowerDatabases( - this.client.getEndpoint(), - workspaceName, - kustoPoolName, - this.client.getSubscriptionId(), - resourceGroupName, - apiVersion, - followerDatabaseToRemove, - accept, - context)) + .withContext(context -> service.detachFollowerDatabases(this.client.getEndpoint(), workspaceName, + kustoPoolName, this.client.getSubscriptionId(), resourceGroupName, apiVersion, followerDatabaseToRemove, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Detaches all followers of a database owned by this Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -3813,17 +3108,12 @@ private Mono>> detachFollowerDatabasesWithResponseAsyn * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> detachFollowerDatabasesWithResponseAsync( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - FollowerDatabaseDefinitionInner followerDatabaseToRemove, + private Mono>> detachFollowerDatabasesWithResponseAsync(String workspaceName, + String kustoPoolName, String resourceGroupName, FollowerDatabaseDefinitionInner followerDatabaseToRemove, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -3832,41 +3122,29 @@ private Mono>> detachFollowerDatabasesWithResponseAsyn return Mono.error(new IllegalArgumentException("Parameter kustoPoolName is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } if (followerDatabaseToRemove == null) { - return Mono - .error( - new IllegalArgumentException("Parameter followerDatabaseToRemove is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter followerDatabaseToRemove is required and cannot be null.")); } else { followerDatabaseToRemove.validate(); } final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .detachFollowerDatabases( - this.client.getEndpoint(), - workspaceName, - kustoPoolName, - this.client.getSubscriptionId(), - resourceGroupName, - apiVersion, - followerDatabaseToRemove, - accept, - context); + return service.detachFollowerDatabases(this.client.getEndpoint(), workspaceName, kustoPoolName, + this.client.getSubscriptionId(), resourceGroupName, apiVersion, followerDatabaseToRemove, accept, context); } /** * Detaches all followers of a database owned by this Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -3877,23 +3155,17 @@ private Mono>> detachFollowerDatabasesWithResponseAsyn * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDetachFollowerDatabasesAsync( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - FollowerDatabaseDefinitionInner followerDatabaseToRemove) { - Mono>> mono = - detachFollowerDatabasesWithResponseAsync( - workspaceName, kustoPoolName, resourceGroupName, followerDatabaseToRemove); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + private PollerFlux, Void> beginDetachFollowerDatabasesAsync(String workspaceName, + String kustoPoolName, String resourceGroupName, FollowerDatabaseDefinitionInner followerDatabaseToRemove) { + Mono>> mono = detachFollowerDatabasesWithResponseAsync(workspaceName, kustoPoolName, + resourceGroupName, followerDatabaseToRemove); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Detaches all followers of a database owned by this Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -3905,24 +3177,19 @@ private PollerFlux, Void> beginDetachFollowerDatabasesAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDetachFollowerDatabasesAsync( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - FollowerDatabaseDefinitionInner followerDatabaseToRemove, + private PollerFlux, Void> beginDetachFollowerDatabasesAsync(String workspaceName, + String kustoPoolName, String resourceGroupName, FollowerDatabaseDefinitionInner followerDatabaseToRemove, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - detachFollowerDatabasesWithResponseAsync( - workspaceName, kustoPoolName, resourceGroupName, followerDatabaseToRemove, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + Mono>> mono = detachFollowerDatabasesWithResponseAsync(workspaceName, kustoPoolName, + resourceGroupName, followerDatabaseToRemove, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * Detaches all followers of a database owned by this Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -3933,20 +3200,15 @@ private PollerFlux, Void> beginDetachFollowerDatabasesAsync( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDetachFollowerDatabases( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - FollowerDatabaseDefinitionInner followerDatabaseToRemove) { - return this - .beginDetachFollowerDatabasesAsync( - workspaceName, kustoPoolName, resourceGroupName, followerDatabaseToRemove) - .getSyncPoller(); + public SyncPoller, Void> beginDetachFollowerDatabases(String workspaceName, String kustoPoolName, + String resourceGroupName, FollowerDatabaseDefinitionInner followerDatabaseToRemove) { + return this.beginDetachFollowerDatabasesAsync(workspaceName, kustoPoolName, resourceGroupName, + followerDatabaseToRemove).getSyncPoller(); } /** * Detaches all followers of a database owned by this Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -3958,21 +3220,15 @@ public SyncPoller, Void> beginDetachFollowerDatabases( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDetachFollowerDatabases( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - FollowerDatabaseDefinitionInner followerDatabaseToRemove, - Context context) { - return this - .beginDetachFollowerDatabasesAsync( - workspaceName, kustoPoolName, resourceGroupName, followerDatabaseToRemove, context) - .getSyncPoller(); + public SyncPoller, Void> beginDetachFollowerDatabases(String workspaceName, String kustoPoolName, + String resourceGroupName, FollowerDatabaseDefinitionInner followerDatabaseToRemove, Context context) { + return this.beginDetachFollowerDatabasesAsync(workspaceName, kustoPoolName, resourceGroupName, + followerDatabaseToRemove, context).getSyncPoller(); } /** * Detaches all followers of a database owned by this Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -3983,20 +3239,15 @@ public SyncPoller, Void> beginDetachFollowerDatabases( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono detachFollowerDatabasesAsync( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - FollowerDatabaseDefinitionInner followerDatabaseToRemove) { - return beginDetachFollowerDatabasesAsync( - workspaceName, kustoPoolName, resourceGroupName, followerDatabaseToRemove) - .last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono detachFollowerDatabasesAsync(String workspaceName, String kustoPoolName, + String resourceGroupName, FollowerDatabaseDefinitionInner followerDatabaseToRemove) { + return beginDetachFollowerDatabasesAsync(workspaceName, kustoPoolName, resourceGroupName, + followerDatabaseToRemove).last().flatMap(this.client::getLroFinalResultOrError); } /** * Detaches all followers of a database owned by this Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -4008,21 +3259,15 @@ private Mono detachFollowerDatabasesAsync( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono detachFollowerDatabasesAsync( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - FollowerDatabaseDefinitionInner followerDatabaseToRemove, - Context context) { - return beginDetachFollowerDatabasesAsync( - workspaceName, kustoPoolName, resourceGroupName, followerDatabaseToRemove, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono detachFollowerDatabasesAsync(String workspaceName, String kustoPoolName, + String resourceGroupName, FollowerDatabaseDefinitionInner followerDatabaseToRemove, Context context) { + return beginDetachFollowerDatabasesAsync(workspaceName, kustoPoolName, resourceGroupName, + followerDatabaseToRemove, context).last().flatMap(this.client::getLroFinalResultOrError); } /** * Detaches all followers of a database owned by this Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -4032,17 +3277,14 @@ private Mono detachFollowerDatabasesAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void detachFollowerDatabases( - String workspaceName, - String kustoPoolName, - String resourceGroupName, + public void detachFollowerDatabases(String workspaceName, String kustoPoolName, String resourceGroupName, FollowerDatabaseDefinitionInner followerDatabaseToRemove) { detachFollowerDatabasesAsync(workspaceName, kustoPoolName, resourceGroupName, followerDatabaseToRemove).block(); } /** * Detaches all followers of a database owned by this Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -4053,12 +3295,8 @@ public void detachFollowerDatabases( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void detachFollowerDatabases( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - FollowerDatabaseDefinitionInner followerDatabaseToRemove, - Context context) { + public void detachFollowerDatabases(String workspaceName, String kustoPoolName, String resourceGroupName, + FollowerDatabaseDefinitionInner followerDatabaseToRemove, Context context) { detachFollowerDatabasesAsync(workspaceName, kustoPoolName, resourceGroupName, followerDatabaseToRemove, context) .block(); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolsImpl.java index 84e156f07e51..2f9e45cd2126 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/KustoPoolsImpl.java @@ -35,31 +35,28 @@ public final class KustoPoolsImpl implements KustoPools { private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public KustoPoolsImpl( - KustoPoolsClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + public KustoPoolsImpl(KustoPoolsClient innerClient, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } public PagedIterable list() { PagedIterable inner = this.serviceClient().list(); - return Utils.mapPage(inner, inner1 -> new SkuDescriptionImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SkuDescriptionImpl(inner1, this.manager())); } public PagedIterable list(Context context) { PagedIterable inner = this.serviceClient().list(context); - return Utils.mapPage(inner, inner1 -> new SkuDescriptionImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SkuDescriptionImpl(inner1, this.manager())); } - public Response checkNameAvailabilityWithResponse( - String location, KustoPoolCheckNameRequest kustoPoolName, Context context) { - Response inner = - this.serviceClient().checkNameAvailabilityWithResponse(location, kustoPoolName, context); + public Response checkNameAvailabilityWithResponse(String location, + KustoPoolCheckNameRequest kustoPoolName, Context context) { + Response inner + = this.serviceClient().checkNameAvailabilityWithResponse(location, kustoPoolName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new CheckNameResultImpl(inner.getValue(), this.manager())); } else { return null; @@ -75,15 +72,12 @@ public CheckNameResult checkNameAvailability(String location, KustoPoolCheckName } } - public Response listByWorkspaceWithResponse( - String resourceGroupName, String workspaceName, Context context) { - Response inner = - this.serviceClient().listByWorkspaceWithResponse(resourceGroupName, workspaceName, context); + public Response listByWorkspaceWithResponse(String resourceGroupName, String workspaceName, + Context context) { + Response inner + = this.serviceClient().listByWorkspaceWithResponse(resourceGroupName, workspaceName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new KustoPoolListResultImpl(inner.getValue(), this.manager())); } else { return null; @@ -99,15 +93,12 @@ public KustoPoolListResult listByWorkspace(String resourceGroupName, String work } } - public Response getWithResponse( - String workspaceName, String kustoPoolName, String resourceGroupName, Context context) { - Response inner = - this.serviceClient().getWithResponse(workspaceName, kustoPoolName, resourceGroupName, context); + public Response getWithResponse(String workspaceName, String kustoPoolName, String resourceGroupName, + Context context) { + Response inner + = this.serviceClient().getWithResponse(workspaceName, kustoPoolName, resourceGroupName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new KustoPoolImpl(inner.getValue(), this.manager())); } else { return null; @@ -147,213 +138,158 @@ public void start(String workspaceName, String kustoPoolName, String resourceGro this.serviceClient().start(workspaceName, kustoPoolName, resourceGroupName, context); } - public PagedIterable listSkusByResource( - String workspaceName, String kustoPoolName, String resourceGroupName) { - PagedIterable inner = - this.serviceClient().listSkusByResource(workspaceName, kustoPoolName, resourceGroupName); - return Utils.mapPage(inner, inner1 -> new AzureResourceSkuImpl(inner1, this.manager())); + public PagedIterable listSkusByResource(String workspaceName, String kustoPoolName, + String resourceGroupName) { + PagedIterable inner + = this.serviceClient().listSkusByResource(workspaceName, kustoPoolName, resourceGroupName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new AzureResourceSkuImpl(inner1, this.manager())); } - public PagedIterable listSkusByResource( - String workspaceName, String kustoPoolName, String resourceGroupName, Context context) { - PagedIterable inner = - this.serviceClient().listSkusByResource(workspaceName, kustoPoolName, resourceGroupName, context); - return Utils.mapPage(inner, inner1 -> new AzureResourceSkuImpl(inner1, this.manager())); + public PagedIterable listSkusByResource(String workspaceName, String kustoPoolName, + String resourceGroupName, Context context) { + PagedIterable inner + = this.serviceClient().listSkusByResource(workspaceName, kustoPoolName, resourceGroupName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new AzureResourceSkuImpl(inner1, this.manager())); } - public PagedIterable listLanguageExtensions( - String workspaceName, String kustoPoolName, String resourceGroupName) { - PagedIterable inner = - this.serviceClient().listLanguageExtensions(workspaceName, kustoPoolName, resourceGroupName); - return Utils.mapPage(inner, inner1 -> new LanguageExtensionImpl(inner1, this.manager())); + public PagedIterable listLanguageExtensions(String workspaceName, String kustoPoolName, + String resourceGroupName) { + PagedIterable inner + = this.serviceClient().listLanguageExtensions(workspaceName, kustoPoolName, resourceGroupName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new LanguageExtensionImpl(inner1, this.manager())); } - public PagedIterable listLanguageExtensions( - String workspaceName, String kustoPoolName, String resourceGroupName, Context context) { - PagedIterable inner = - this.serviceClient().listLanguageExtensions(workspaceName, kustoPoolName, resourceGroupName, context); - return Utils.mapPage(inner, inner1 -> new LanguageExtensionImpl(inner1, this.manager())); + public PagedIterable listLanguageExtensions(String workspaceName, String kustoPoolName, + String resourceGroupName, Context context) { + PagedIterable inner + = this.serviceClient().listLanguageExtensions(workspaceName, kustoPoolName, resourceGroupName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new LanguageExtensionImpl(inner1, this.manager())); } - public void addLanguageExtensions( - String workspaceName, - String kustoPoolName, - String resourceGroupName, + public void addLanguageExtensions(String workspaceName, String kustoPoolName, String resourceGroupName, LanguageExtensionsList languageExtensionsToAdd) { - this - .serviceClient() - .addLanguageExtensions(workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToAdd); + this.serviceClient().addLanguageExtensions(workspaceName, kustoPoolName, resourceGroupName, + languageExtensionsToAdd); } - public void addLanguageExtensions( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - LanguageExtensionsList languageExtensionsToAdd, - Context context) { - this - .serviceClient() - .addLanguageExtensions(workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToAdd, context); + public void addLanguageExtensions(String workspaceName, String kustoPoolName, String resourceGroupName, + LanguageExtensionsList languageExtensionsToAdd, Context context) { + this.serviceClient().addLanguageExtensions(workspaceName, kustoPoolName, resourceGroupName, + languageExtensionsToAdd, context); } - public void removeLanguageExtensions( - String workspaceName, - String kustoPoolName, - String resourceGroupName, + public void removeLanguageExtensions(String workspaceName, String kustoPoolName, String resourceGroupName, LanguageExtensionsList languageExtensionsToRemove) { - this - .serviceClient() - .removeLanguageExtensions(workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToRemove); + this.serviceClient().removeLanguageExtensions(workspaceName, kustoPoolName, resourceGroupName, + languageExtensionsToRemove); } - public void removeLanguageExtensions( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - LanguageExtensionsList languageExtensionsToRemove, - Context context) { - this - .serviceClient() - .removeLanguageExtensions( - workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToRemove, context); + public void removeLanguageExtensions(String workspaceName, String kustoPoolName, String resourceGroupName, + LanguageExtensionsList languageExtensionsToRemove, Context context) { + this.serviceClient().removeLanguageExtensions(workspaceName, kustoPoolName, resourceGroupName, + languageExtensionsToRemove, context); } - public PagedIterable listFollowerDatabases( - String workspaceName, String kustoPoolName, String resourceGroupName) { - PagedIterable inner = - this.serviceClient().listFollowerDatabases(workspaceName, kustoPoolName, resourceGroupName); - return Utils.mapPage(inner, inner1 -> new FollowerDatabaseDefinitionImpl(inner1, this.manager())); + public PagedIterable listFollowerDatabases(String workspaceName, String kustoPoolName, + String resourceGroupName) { + PagedIterable inner + = this.serviceClient().listFollowerDatabases(workspaceName, kustoPoolName, resourceGroupName); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new FollowerDatabaseDefinitionImpl(inner1, this.manager())); } - public PagedIterable listFollowerDatabases( - String workspaceName, String kustoPoolName, String resourceGroupName, Context context) { - PagedIterable inner = - this.serviceClient().listFollowerDatabases(workspaceName, kustoPoolName, resourceGroupName, context); - return Utils.mapPage(inner, inner1 -> new FollowerDatabaseDefinitionImpl(inner1, this.manager())); + public PagedIterable listFollowerDatabases(String workspaceName, String kustoPoolName, + String resourceGroupName, Context context) { + PagedIterable inner + = this.serviceClient().listFollowerDatabases(workspaceName, kustoPoolName, resourceGroupName, context); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new FollowerDatabaseDefinitionImpl(inner1, this.manager())); } - public void detachFollowerDatabases( - String workspaceName, - String kustoPoolName, - String resourceGroupName, + public void detachFollowerDatabases(String workspaceName, String kustoPoolName, String resourceGroupName, FollowerDatabaseDefinitionInner followerDatabaseToRemove) { - this - .serviceClient() - .detachFollowerDatabases(workspaceName, kustoPoolName, resourceGroupName, followerDatabaseToRemove); + this.serviceClient().detachFollowerDatabases(workspaceName, kustoPoolName, resourceGroupName, + followerDatabaseToRemove); } - public void detachFollowerDatabases( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - FollowerDatabaseDefinitionInner followerDatabaseToRemove, - Context context) { - this - .serviceClient() - .detachFollowerDatabases( - workspaceName, kustoPoolName, resourceGroupName, followerDatabaseToRemove, context); + public void detachFollowerDatabases(String workspaceName, String kustoPoolName, String resourceGroupName, + FollowerDatabaseDefinitionInner followerDatabaseToRemove, Context context) { + this.serviceClient().detachFollowerDatabases(workspaceName, kustoPoolName, resourceGroupName, + followerDatabaseToRemove, context); } public KustoPool getById(String id) { - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String kustoPoolName = Utils.getValueFromIdByName(id, "kustoPools"); + String kustoPoolName = ResourceManagerUtils.getValueFromIdByName(id, "kustoPools"); if (kustoPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); } - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } return this.getWithResponse(workspaceName, kustoPoolName, resourceGroupName, Context.NONE).getValue(); } public Response getByIdWithResponse(String id, Context context) { - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String kustoPoolName = Utils.getValueFromIdByName(id, "kustoPools"); + String kustoPoolName = ResourceManagerUtils.getValueFromIdByName(id, "kustoPools"); if (kustoPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); } - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } return this.getWithResponse(workspaceName, kustoPoolName, resourceGroupName, context); } public void deleteById(String id) { - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String kustoPoolName = Utils.getValueFromIdByName(id, "kustoPools"); + String kustoPoolName = ResourceManagerUtils.getValueFromIdByName(id, "kustoPools"); if (kustoPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); } this.delete(workspaceName, resourceGroupName, kustoPoolName, Context.NONE); } public void deleteByIdWithResponse(String id, Context context) { - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String kustoPoolName = Utils.getValueFromIdByName(id, "kustoPools"); + String kustoPoolName = ResourceManagerUtils.getValueFromIdByName(id, "kustoPools"); if (kustoPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'kustoPools'.", id))); } this.delete(workspaceName, resourceGroupName, kustoPoolName, context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LanguageExtensionImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LanguageExtensionImpl.java index b25223cf20d3..f024023bf38b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LanguageExtensionImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LanguageExtensionImpl.java @@ -13,8 +13,8 @@ public final class LanguageExtensionImpl implements LanguageExtension { private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - LanguageExtensionImpl( - LanguageExtensionInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + LanguageExtensionImpl(LanguageExtensionInner innerObject, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LibrariesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LibrariesClientImpl.java index 7f200f5652fb..e03862f4169b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LibrariesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LibrariesClientImpl.java @@ -25,22 +25,28 @@ import com.azure.resourcemanager.synapse.fluent.models.LibraryResourceInner; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in LibrariesClient. */ +/** + * An instance of this class provides access to all the operations defined in LibrariesClient. + */ public final class LibrariesClientImpl implements LibrariesClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final LibrariesService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of LibrariesClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ LibrariesClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy.create(LibrariesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service + = RestProxy.create(LibrariesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } @@ -51,28 +57,21 @@ public final class LibrariesClientImpl implements LibrariesClient { @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface LibrariesService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/libraries/{libraryName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/libraries/{libraryName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("libraryName") String libraryName, - @PathParam("workspaceName") String workspaceName, - @HeaderParam("Accept") String accept, - Context context); + Mono> get(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("libraryName") String libraryName, + @PathParam("workspaceName") String workspaceName, @HeaderParam("Accept") String accept, Context context); } /** * Get library by name. - * - *

Get library by name in a workspace. - * + * + * Get library by name in a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param libraryName Library name. * @param workspaceName The name of the workspace. @@ -82,19 +81,15 @@ Mono> get( * @return library by name in a workspace along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String libraryName, String workspaceName) { + private Mono> getWithResponseAsync(String resourceGroupName, String libraryName, + String workspaceName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -109,26 +104,16 @@ private Mono> getWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - libraryName, - workspaceName, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, libraryName, workspaceName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get library by name. - * - *

Get library by name in a workspace. - * + * + * Get library by name in a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param libraryName Library name. * @param workspaceName The name of the workspace. @@ -139,19 +124,15 @@ private Mono> getWithResponseAsync( * @return library by name in a workspace along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String libraryName, String workspaceName, Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, String libraryName, + String workspaceName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -166,23 +147,15 @@ private Mono> getWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - libraryName, - workspaceName, - accept, - context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + libraryName, workspaceName, accept, context); } /** * Get library by name. - * - *

Get library by name in a workspace. - * + * + * Get library by name in a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param libraryName Library name. * @param workspaceName The name of the workspace. @@ -199,9 +172,9 @@ private Mono getAsync(String resourceGroupName, String lib /** * Get library by name. - * - *

Get library by name in a workspace. - * + * + * Get library by name in a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param libraryName Library name. * @param workspaceName The name of the workspace. @@ -212,16 +185,16 @@ private Mono getAsync(String resourceGroupName, String lib * @return library by name in a workspace along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String libraryName, String workspaceName, Context context) { + public Response getWithResponse(String resourceGroupName, String libraryName, + String workspaceName, Context context) { return getWithResponseAsync(resourceGroupName, libraryName, workspaceName, context).block(); } /** * Get library by name. - * - *

Get library by name in a workspace. - * + * + * Get library by name in a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param libraryName Library name. * @param workspaceName The name of the workspace. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LibrariesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LibrariesImpl.java index a151c0d8dc8a..ac85ef3704c9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LibrariesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LibrariesImpl.java @@ -25,15 +25,12 @@ public LibrariesImpl(LibrariesClient innerClient, com.azure.resourcemanager.syna this.serviceManager = serviceManager; } - public Response getWithResponse( - String resourceGroupName, String libraryName, String workspaceName, Context context) { - Response inner = - this.serviceClient().getWithResponse(resourceGroupName, libraryName, workspaceName, context); + public Response getWithResponse(String resourceGroupName, String libraryName, String workspaceName, + Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, libraryName, workspaceName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new LibraryResourceImpl(inner.getValue(), this.manager())); } else { return null; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LibrariesOperationsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LibrariesOperationsClientImpl.java index 329aa1f7294b..be725e5f071c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LibrariesOperationsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LibrariesOperationsClientImpl.java @@ -30,22 +30,28 @@ import com.azure.resourcemanager.synapse.models.LibraryListResponse; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in LibrariesOperationsClient. */ +/** + * An instance of this class provides access to all the operations defined in LibrariesOperationsClient. + */ public final class LibrariesOperationsClientImpl implements LibrariesOperationsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final LibrariesOperationsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of LibrariesOperationsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ LibrariesOperationsClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy.create(LibrariesOperationsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service = RestProxy.create(LibrariesOperationsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } @@ -56,37 +62,29 @@ public final class LibrariesOperationsClientImpl implements LibrariesOperationsC @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface LibrariesOperationsService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/libraries") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/libraries") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByWorkspace( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @HeaderParam("Accept") String accept, - Context context); + Mono> listByWorkspace(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByWorkspaceNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** * List the libraries in a workspace. - * - *

List libraries in a workspace. - * + * + * List libraries in a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -95,19 +93,15 @@ Mono> listByWorkspaceNext( * @return a list of Library resources along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByWorkspaceSinglePageAsync( - String resourceGroupName, String workspaceName) { + private Mono> listByWorkspaceSinglePageAsync(String resourceGroupName, + String workspaceName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -119,34 +113,18 @@ private Mono> listByWorkspaceSinglePageAsync final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .listByWorkspace( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .withContext(context -> service.listByWorkspace(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * List the libraries in a workspace. - * - *

List libraries in a workspace. - * + * + * List libraries in a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -156,19 +134,15 @@ private Mono> listByWorkspaceSinglePageAsync * @return a list of Library resources along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByWorkspaceSinglePageAsync( - String resourceGroupName, String workspaceName, Context context) { + private Mono> listByWorkspaceSinglePageAsync(String resourceGroupName, + String workspaceName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -181,30 +155,17 @@ private Mono> listByWorkspaceSinglePageAsync final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByWorkspace( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + .listByWorkspace(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * List the libraries in a workspace. - * - *

List libraries in a workspace. - * + * + * List libraries in a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -214,16 +175,15 @@ private Mono> listByWorkspaceSinglePageAsync */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByWorkspaceAsync(String resourceGroupName, String workspaceName) { - return new PagedFlux<>( - () -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName), + return new PagedFlux<>(() -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName), nextLink -> listByWorkspaceNextSinglePageAsync(nextLink)); } /** * List the libraries in a workspace. - * - *

List libraries in a workspace. - * + * + * List libraries in a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -233,18 +193,17 @@ private PagedFlux listByWorkspaceAsync(String resourceGrou * @return a list of Library resources as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByWorkspaceAsync( - String resourceGroupName, String workspaceName, Context context) { - return new PagedFlux<>( - () -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName, context), + private PagedFlux listByWorkspaceAsync(String resourceGroupName, String workspaceName, + Context context) { + return new PagedFlux<>(() -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName, context), nextLink -> listByWorkspaceNextSinglePageAsync(nextLink, context)); } /** * List the libraries in a workspace. - * - *

List libraries in a workspace. - * + * + * List libraries in a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -259,9 +218,9 @@ public PagedIterable listByWorkspace(String resourceGroupN /** * List the libraries in a workspace. - * - *

List libraries in a workspace. - * + * + * List libraries in a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -271,16 +230,17 @@ public PagedIterable listByWorkspace(String resourceGroupN * @return a list of Library resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByWorkspace( - String resourceGroupName, String workspaceName, Context context) { + public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, + Context context) { return new PagedIterable<>(listByWorkspaceAsync(resourceGroupName, workspaceName, context)); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -292,31 +252,23 @@ private Mono> listByWorkspaceNextSinglePageA return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByWorkspaceNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -324,29 +276,19 @@ private Mono> listByWorkspaceNextSinglePageA * @return a list of Library resources along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByWorkspaceNextSinglePageAsync( - String nextLink, Context context) { + private Mono> listByWorkspaceNextSinglePageAsync(String nextLink, + Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listByWorkspaceNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listByWorkspaceNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LibrariesOperationsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LibrariesOperationsImpl.java index 8e0f6e80e942..f61ac506e18d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LibrariesOperationsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LibrariesOperationsImpl.java @@ -19,23 +19,23 @@ public final class LibrariesOperationsImpl implements LibrariesOperations { private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public LibrariesOperationsImpl( - LibrariesOperationsClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + public LibrariesOperationsImpl(LibrariesOperationsClient innerClient, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName) { - PagedIterable inner = - this.serviceClient().listByWorkspace(resourceGroupName, workspaceName); - return Utils.mapPage(inner, inner1 -> new LibraryResourceImpl(inner1, this.manager())); + PagedIterable inner + = this.serviceClient().listByWorkspace(resourceGroupName, workspaceName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new LibraryResourceImpl(inner1, this.manager())); } - public PagedIterable listByWorkspace( - String resourceGroupName, String workspaceName, Context context) { - PagedIterable inner = - this.serviceClient().listByWorkspace(resourceGroupName, workspaceName, context); - return Utils.mapPage(inner, inner1 -> new LibraryResourceImpl(inner1, this.manager())); + public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, + Context context) { + PagedIterable inner + = this.serviceClient().listByWorkspace(resourceGroupName, workspaceName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new LibraryResourceImpl(inner1, this.manager())); } private LibrariesOperationsClient serviceClient() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LibraryResourceImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LibraryResourceImpl.java index 21f2dc2d83df..275184b51bed 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LibraryResourceImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/LibraryResourceImpl.java @@ -13,8 +13,8 @@ public final class LibraryResourceImpl implements LibraryResource { private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - LibraryResourceImpl( - LibraryResourceInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + LibraryResourceImpl(LibraryResourceInner innerObject, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/MaintenanceWindowOptionsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/MaintenanceWindowOptionsImpl.java index 5bd07c6da592..7218b1872990 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/MaintenanceWindowOptionsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/MaintenanceWindowOptionsImpl.java @@ -15,8 +15,8 @@ public final class MaintenanceWindowOptionsImpl implements MaintenanceWindowOpti private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - MaintenanceWindowOptionsImpl( - MaintenanceWindowOptionsInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + MaintenanceWindowOptionsImpl(MaintenanceWindowOptionsInner innerObject, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/MaintenanceWindowsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/MaintenanceWindowsImpl.java index 3a31b8a0f9c4..50cd81ea7d2e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/MaintenanceWindowsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/MaintenanceWindowsImpl.java @@ -15,8 +15,8 @@ public final class MaintenanceWindowsImpl implements MaintenanceWindows { private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - MaintenanceWindowsImpl( - MaintenanceWindowsInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + MaintenanceWindowsImpl(MaintenanceWindowsInner innerObject, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ManagedIdentitySqlControlSettingsModelImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ManagedIdentitySqlControlSettingsModelImpl.java index b6b1eed1f195..6e79b82d22c5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ManagedIdentitySqlControlSettingsModelImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ManagedIdentitySqlControlSettingsModelImpl.java @@ -13,8 +13,7 @@ public final class ManagedIdentitySqlControlSettingsModelImpl implements Managed private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - ManagedIdentitySqlControlSettingsModelImpl( - ManagedIdentitySqlControlSettingsModelInner innerObject, + ManagedIdentitySqlControlSettingsModelImpl(ManagedIdentitySqlControlSettingsModelInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/MetadataSyncConfigImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/MetadataSyncConfigImpl.java index 1777456a70ca..a0ffb8ebd7c3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/MetadataSyncConfigImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/MetadataSyncConfigImpl.java @@ -12,8 +12,8 @@ public final class MetadataSyncConfigImpl implements MetadataSyncConfig { private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - MetadataSyncConfigImpl( - MetadataSyncConfigInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + MetadataSyncConfigImpl(MetadataSyncConfigInner innerObject, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/OperationResourceImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/OperationResourceImpl.java index 99193ac5bcfb..d45baef8f07d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/OperationResourceImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/OperationResourceImpl.java @@ -15,8 +15,8 @@ public final class OperationResourceImpl implements OperationResource { private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - OperationResourceImpl( - OperationResourceInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + OperationResourceImpl(OperationResourceInner innerObject, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/OperationsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/OperationsClientImpl.java index ea93f920cfbe..153abc901c56 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/OperationsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/OperationsClientImpl.java @@ -27,26 +27,33 @@ import com.azure.resourcemanager.synapse.fluent.models.AvailableRpOperationInner; import com.azure.resourcemanager.synapse.fluent.models.CheckNameAvailabilityResponseInner; import com.azure.resourcemanager.synapse.fluent.models.OperationResourceInner; +import com.azure.resourcemanager.synapse.fluent.models.WorkspaceUsageQuotaResponseInner; import com.azure.resourcemanager.synapse.models.CheckNameAvailabilityRequest; import java.util.List; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in OperationsClient. */ +/** + * An instance of this class provides access to all the operations defined in OperationsClient. + */ public final class OperationsClientImpl implements OperationsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final OperationsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of OperationsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ OperationsClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy.create(OperationsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service + = RestProxy.create(OperationsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } @@ -57,63 +64,55 @@ public final class OperationsClientImpl implements OperationsClient { @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface OperationsService { - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Post("/subscriptions/{subscriptionId}/providers/Microsoft.Synapse/checkNameAvailability") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> checkNameAvailability( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @BodyParam("application/json") CheckNameAvailabilityRequest request, - @HeaderParam("Accept") String accept, + Mono> checkNameAvailability(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @BodyParam("application/json") CheckNameAvailabilityRequest request, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("/providers/Microsoft.Synapse/operations") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> list( - @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); - - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/operationResults/{operationId}") - @ExpectedResponses({200, 201, 202, 204}) + Mono>> list(@HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/operationResults/{operationId}") + @ExpectedResponses({ 200, 201, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getLocationHeaderResult( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("operationId") String operationId, - @HeaderParam("Accept") String accept, - Context context); + Mono> getLocationHeaderResult(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("operationId") String operationId, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/operationStatuses/{operationId}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/operationStatuses/{operationId}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getAzureAsyncHeaderResult( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("operationId") String operationId, - @HeaderParam("Accept") String accept, - Context context); + Mono> getAzureAsyncHeaderResult(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("operationId") String operationId, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Synapse/locations/{location}/usages") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> getWorkspacePerSubscriptionQuota( + @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location, + @HeaderParam("Accept") String accept, Context context); } /** * Check name availability - * - *

Check whether a workspace name is available. - * + * + * Check whether a workspace name is available. + * * @param request The check request. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -121,19 +120,15 @@ Mono> getAzureAsyncHeaderResult( * @return check name availability response along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> checkNameAvailabilityWithResponseAsync( - CheckNameAvailabilityRequest request) { + private Mono> + checkNameAvailabilityWithResponseAsync(CheckNameAvailabilityRequest request) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (request == null) { return Mono.error(new IllegalArgumentException("Parameter request is required and cannot be null.")); @@ -143,24 +138,16 @@ private Mono> checkNameAvailability final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .checkNameAvailability( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - request, - accept, - context)) + .withContext(context -> service.checkNameAvailability(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), request, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Check name availability - * - *

Check whether a workspace name is available. - * + * + * Check whether a workspace name is available. + * * @param request The check request. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -169,19 +156,15 @@ private Mono> checkNameAvailability * @return check name availability response along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> checkNameAvailabilityWithResponseAsync( - CheckNameAvailabilityRequest request, Context context) { + private Mono> + checkNameAvailabilityWithResponseAsync(CheckNameAvailabilityRequest request, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (request == null) { return Mono.error(new IllegalArgumentException("Parameter request is required and cannot be null.")); @@ -191,16 +174,15 @@ private Mono> checkNameAvailability final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .checkNameAvailability( - this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), request, accept, context); + return service.checkNameAvailability(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + request, accept, context); } /** * Check name availability - * - *

Check whether a workspace name is available. - * + * + * Check whether a workspace name is available. + * * @param request The check request. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -214,9 +196,9 @@ private Mono checkNameAvailabilityAsync(Chec /** * Check name availability - * - *

Check whether a workspace name is available. - * + * + * Check whether a workspace name is available. + * * @param request The check request. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -225,16 +207,16 @@ private Mono checkNameAvailabilityAsync(Chec * @return check name availability response along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response checkNameAvailabilityWithResponse( - CheckNameAvailabilityRequest request, Context context) { + public Response + checkNameAvailabilityWithResponse(CheckNameAvailabilityRequest request, Context context) { return checkNameAvailabilityWithResponseAsync(request, context).block(); } /** * Check name availability - * - *

Check whether a workspace name is available. - * + * + * Check whether a workspace name is available. + * * @param request The check request. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -248,9 +230,9 @@ public CheckNameAvailabilityResponseInner checkNameAvailability(CheckNameAvailab /** * All operations - * - *

Get all available operations. - * + * + * Get all available operations. + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return all available operations along with {@link Response} on successful completion of {@link Mono}. @@ -258,22 +240,19 @@ public CheckNameAvailabilityResponseInner checkNameAvailability(CheckNameAvailab @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> listWithResponseAsync() { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), accept, context)) + return FluxUtil.withContext(context -> service.list(this.client.getEndpoint(), accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * All operations - * - *

Get all available operations. - * + * + * Get all available operations. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -283,10 +262,8 @@ private Mono>> listWithResponseAsync() @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> listWithResponseAsync(Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); @@ -295,9 +272,9 @@ private Mono>> listWithResponseAsync(Co /** * All operations - * - *

Get all available operations. - * + * + * Get all available operations. + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return all available operations on successful completion of {@link Mono}. @@ -309,9 +286,9 @@ private Mono> listAsync() { /** * All operations - * - *

Get all available operations. - * + * + * Get all available operations. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -325,9 +302,9 @@ public Response> listWithResponse(Context contex /** * All operations - * - *

Get all available operations. - * + * + * Get all available operations. + * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return all available operations. @@ -339,9 +316,9 @@ public List list() { /** * Get operation result - * - *

Get the result of an operation. - * + * + * Get the result of an operation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param operationId Operation ID. @@ -351,19 +328,15 @@ public List list() { * @return the result of an operation along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getLocationHeaderResultWithResponseAsync( - String resourceGroupName, String workspaceName, String operationId) { + private Mono> getLocationHeaderResultWithResponseAsync(String resourceGroupName, + String workspaceName, String operationId) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -378,26 +351,16 @@ private Mono> getLocationHeaderResultWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .getLocationHeaderResult( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - operationId, - accept, - context)) + .withContext(context -> service.getLocationHeaderResult(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, operationId, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get operation result - * - *

Get the result of an operation. - * + * + * Get the result of an operation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param operationId Operation ID. @@ -408,19 +371,15 @@ private Mono> getLocationHeaderResultWithResponseAsync( * @return the result of an operation along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getLocationHeaderResultWithResponseAsync( - String resourceGroupName, String workspaceName, String operationId, Context context) { + private Mono> getLocationHeaderResultWithResponseAsync(String resourceGroupName, + String workspaceName, String operationId, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -435,23 +394,15 @@ private Mono> getLocationHeaderResultWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .getLocationHeaderResult( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - operationId, - accept, - context); + return service.getLocationHeaderResult(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, operationId, accept, context); } /** * Get operation result - * - *

Get the result of an operation. - * + * + * Get the result of an operation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param operationId Operation ID. @@ -461,17 +412,17 @@ private Mono> getLocationHeaderResultWithResponseAsync( * @return the result of an operation on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getLocationHeaderResultAsync( - String resourceGroupName, String workspaceName, String operationId) { + private Mono getLocationHeaderResultAsync(String resourceGroupName, String workspaceName, + String operationId) { return getLocationHeaderResultWithResponseAsync(resourceGroupName, workspaceName, operationId) .flatMap(ignored -> Mono.empty()); } /** * Get operation result - * - *

Get the result of an operation. - * + * + * Get the result of an operation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param operationId Operation ID. @@ -482,16 +433,16 @@ private Mono getLocationHeaderResultAsync( * @return the result of an operation along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getLocationHeaderResultWithResponse( - String resourceGroupName, String workspaceName, String operationId, Context context) { + public Response getLocationHeaderResultWithResponse(String resourceGroupName, String workspaceName, + String operationId, Context context) { return getLocationHeaderResultWithResponseAsync(resourceGroupName, workspaceName, operationId, context).block(); } /** * Get operation result - * - *

Get the result of an operation. - * + * + * Get the result of an operation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param operationId Operation ID. @@ -506,9 +457,9 @@ public void getLocationHeaderResult(String resourceGroupName, String workspaceNa /** * Get operation status - * - *

Get the status of an operation. - * + * + * Get the status of an operation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param operationId Operation ID. @@ -518,19 +469,15 @@ public void getLocationHeaderResult(String resourceGroupName, String workspaceNa * @return the status of an operation along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getAzureAsyncHeaderResultWithResponseAsync( - String resourceGroupName, String workspaceName, String operationId) { + private Mono> getAzureAsyncHeaderResultWithResponseAsync(String resourceGroupName, + String workspaceName, String operationId) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -545,26 +492,16 @@ private Mono> getAzureAsyncHeaderResultWithResp final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .getAzureAsyncHeaderResult( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - operationId, - accept, - context)) + .withContext(context -> service.getAzureAsyncHeaderResult(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, operationId, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get operation status - * - *

Get the status of an operation. - * + * + * Get the status of an operation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param operationId Operation ID. @@ -575,19 +512,15 @@ private Mono> getAzureAsyncHeaderResultWithResp * @return the status of an operation along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getAzureAsyncHeaderResultWithResponseAsync( - String resourceGroupName, String workspaceName, String operationId, Context context) { + private Mono> getAzureAsyncHeaderResultWithResponseAsync(String resourceGroupName, + String workspaceName, String operationId, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -602,23 +535,15 @@ private Mono> getAzureAsyncHeaderResultWithResp final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .getAzureAsyncHeaderResult( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - operationId, - accept, - context); + return service.getAzureAsyncHeaderResult(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, operationId, accept, context); } /** * Get operation status - * - *

Get the status of an operation. - * + * + * Get the status of an operation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param operationId Operation ID. @@ -628,17 +553,17 @@ private Mono> getAzureAsyncHeaderResultWithResp * @return the status of an operation on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAzureAsyncHeaderResultAsync( - String resourceGroupName, String workspaceName, String operationId) { + private Mono getAzureAsyncHeaderResultAsync(String resourceGroupName, String workspaceName, + String operationId) { return getAzureAsyncHeaderResultWithResponseAsync(resourceGroupName, workspaceName, operationId) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Get operation status - * - *

Get the status of an operation. - * + * + * Get the status of an operation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param operationId Operation ID. @@ -649,17 +574,17 @@ private Mono getAzureAsyncHeaderResultAsync( * @return the status of an operation along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getAzureAsyncHeaderResultWithResponse( - String resourceGroupName, String workspaceName, String operationId, Context context) { + public Response getAzureAsyncHeaderResultWithResponse(String resourceGroupName, + String workspaceName, String operationId, Context context) { return getAzureAsyncHeaderResultWithResponseAsync(resourceGroupName, workspaceName, operationId, context) .block(); } /** * Get operation status - * - *

Get the status of an operation. - * + * + * Get the status of an operation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param operationId Operation ID. @@ -669,9 +594,119 @@ public Response getAzureAsyncHeaderResultWithResponse( * @return the status of an operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public OperationResourceInner getAzureAsyncHeaderResult( - String resourceGroupName, String workspaceName, String operationId) { + public OperationResourceInner getAzureAsyncHeaderResult(String resourceGroupName, String workspaceName, + String operationId) { return getAzureAsyncHeaderResultWithResponse(resourceGroupName, workspaceName, operationId, Context.NONE) .getValue(); } + + /** + * Gets the current usage and quota of workspaces in a subscription/region. + * + * @param location The location on which resource usage is queried. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current usage and quota of workspaces in a subscription/region along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + getWorkspacePerSubscriptionQuotaWithResponseAsync(String location) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } + final String apiVersion = "2021-06-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.getWorkspacePerSubscriptionQuota(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), location, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets the current usage and quota of workspaces in a subscription/region. + * + * @param location The location on which resource usage is queried. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current usage and quota of workspaces in a subscription/region along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + getWorkspacePerSubscriptionQuotaWithResponseAsync(String location, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } + final String apiVersion = "2021-06-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.getWorkspacePerSubscriptionQuota(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), location, accept, context); + } + + /** + * Gets the current usage and quota of workspaces in a subscription/region. + * + * @param location The location on which resource usage is queried. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current usage and quota of workspaces in a subscription/region on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getWorkspacePerSubscriptionQuotaAsync(String location) { + return getWorkspacePerSubscriptionQuotaWithResponseAsync(location) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets the current usage and quota of workspaces in a subscription/region. + * + * @param location The location on which resource usage is queried. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current usage and quota of workspaces in a subscription/region along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWorkspacePerSubscriptionQuotaWithResponse(String location, + Context context) { + return getWorkspacePerSubscriptionQuotaWithResponseAsync(location, context).block(); + } + + /** + * Gets the current usage and quota of workspaces in a subscription/region. + * + * @param location The location on which resource usage is queried. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current usage and quota of workspaces in a subscription/region. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public WorkspaceUsageQuotaResponseInner getWorkspacePerSubscriptionQuota(String location) { + return getWorkspacePerSubscriptionQuotaWithResponse(location, Context.NONE).getValue(); + } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/OperationsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/OperationsImpl.java index 3644a25e1f98..177e84171707 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/OperationsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/OperationsImpl.java @@ -12,11 +12,13 @@ import com.azure.resourcemanager.synapse.fluent.models.AvailableRpOperationInner; import com.azure.resourcemanager.synapse.fluent.models.CheckNameAvailabilityResponseInner; import com.azure.resourcemanager.synapse.fluent.models.OperationResourceInner; +import com.azure.resourcemanager.synapse.fluent.models.WorkspaceUsageQuotaResponseInner; import com.azure.resourcemanager.synapse.models.AvailableRpOperation; import com.azure.resourcemanager.synapse.models.CheckNameAvailabilityRequest; import com.azure.resourcemanager.synapse.models.CheckNameAvailabilityResponse; import com.azure.resourcemanager.synapse.models.OperationResource; import com.azure.resourcemanager.synapse.models.Operations; +import com.azure.resourcemanager.synapse.models.WorkspaceUsageQuotaResponse; import java.util.Collections; import java.util.List; import java.util.stream.Collectors; @@ -28,21 +30,18 @@ public final class OperationsImpl implements Operations { private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public OperationsImpl( - OperationsClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + public OperationsImpl(OperationsClient innerClient, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public Response checkNameAvailabilityWithResponse( - CheckNameAvailabilityRequest request, Context context) { - Response inner = - this.serviceClient().checkNameAvailabilityWithResponse(request, context); + public Response + checkNameAvailabilityWithResponse(CheckNameAvailabilityRequest request, Context context) { + Response inner + = this.serviceClient().checkNameAvailabilityWithResponse(request, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new CheckNameAvailabilityResponseImpl(inner.getValue(), this.manager())); } else { return null; @@ -61,14 +60,8 @@ public CheckNameAvailabilityResponse checkNameAvailability(CheckNameAvailability public Response> listWithResponse(Context context) { Response> inner = this.serviceClient().listWithResponse(context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), - inner - .getValue() - .stream() - .map(inner1 -> new AvailableRpOperationImpl(inner1, this.manager())) + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + inner.getValue().stream().map(inner1 -> new AvailableRpOperationImpl(inner1, this.manager())) .collect(Collectors.toList())); } else { return null; @@ -78,49 +71,39 @@ public Response> listWithResponse(Context context) { public List list() { List inner = this.serviceClient().list(); if (inner != null) { - return Collections - .unmodifiableList( - inner - .stream() - .map(inner1 -> new AvailableRpOperationImpl(inner1, this.manager())) - .collect(Collectors.toList())); + return Collections.unmodifiableList(inner.stream() + .map(inner1 -> new AvailableRpOperationImpl(inner1, this.manager())).collect(Collectors.toList())); } else { return Collections.emptyList(); } } - public Response getLocationHeaderResultWithResponse( - String resourceGroupName, String workspaceName, String operationId, Context context) { - return this - .serviceClient() - .getLocationHeaderResultWithResponse(resourceGroupName, workspaceName, operationId, context); + public Response getLocationHeaderResultWithResponse(String resourceGroupName, String workspaceName, + String operationId, Context context) { + return this.serviceClient().getLocationHeaderResultWithResponse(resourceGroupName, workspaceName, operationId, + context); } public void getLocationHeaderResult(String resourceGroupName, String workspaceName, String operationId) { this.serviceClient().getLocationHeaderResult(resourceGroupName, workspaceName, operationId); } - public Response getAzureAsyncHeaderResultWithResponse( - String resourceGroupName, String workspaceName, String operationId, Context context) { - Response inner = - this - .serviceClient() - .getAzureAsyncHeaderResultWithResponse(resourceGroupName, workspaceName, operationId, context); + public Response getAzureAsyncHeaderResultWithResponse(String resourceGroupName, + String workspaceName, String operationId, Context context) { + Response inner = this.serviceClient() + .getAzureAsyncHeaderResultWithResponse(resourceGroupName, workspaceName, operationId, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new OperationResourceImpl(inner.getValue(), this.manager())); } else { return null; } } - public OperationResource getAzureAsyncHeaderResult( - String resourceGroupName, String workspaceName, String operationId) { - OperationResourceInner inner = - this.serviceClient().getAzureAsyncHeaderResult(resourceGroupName, workspaceName, operationId); + public OperationResource getAzureAsyncHeaderResult(String resourceGroupName, String workspaceName, + String operationId) { + OperationResourceInner inner + = this.serviceClient().getAzureAsyncHeaderResult(resourceGroupName, workspaceName, operationId); if (inner != null) { return new OperationResourceImpl(inner, this.manager()); } else { @@ -128,6 +111,27 @@ public OperationResource getAzureAsyncHeaderResult( } } + public Response getWorkspacePerSubscriptionQuotaWithResponse(String location, + Context context) { + Response inner + = this.serviceClient().getWorkspacePerSubscriptionQuotaWithResponse(location, context); + if (inner != null) { + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new WorkspaceUsageQuotaResponseImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public WorkspaceUsageQuotaResponse getWorkspacePerSubscriptionQuota(String location) { + WorkspaceUsageQuotaResponseInner inner = this.serviceClient().getWorkspacePerSubscriptionQuota(location); + if (inner != null) { + return new WorkspaceUsageQuotaResponseImpl(inner, this.manager()); + } else { + return null; + } + } + private OperationsClient serviceClient() { return this.innerClient; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionForPrivateLinkHubImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionForPrivateLinkHubImpl.java index 7ae3ec7bca19..c905d377582b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionForPrivateLinkHubImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionForPrivateLinkHubImpl.java @@ -14,8 +14,7 @@ public final class PrivateEndpointConnectionForPrivateLinkHubImpl private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - PrivateEndpointConnectionForPrivateLinkHubImpl( - PrivateEndpointConnectionForPrivateLinkHubInner innerObject, + PrivateEndpointConnectionForPrivateLinkHubImpl(PrivateEndpointConnectionForPrivateLinkHubInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionImpl.java index 114867f6dc46..4b97695f0a1e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionImpl.java @@ -16,8 +16,8 @@ public final class PrivateEndpointConnectionImpl private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - PrivateEndpointConnectionImpl( - PrivateEndpointConnectionInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + PrivateEndpointConnectionImpl(PrivateEndpointConnectionInner innerObject, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; } @@ -67,21 +67,14 @@ public PrivateEndpointConnectionImpl withExistingWorkspace(String resourceGroupN } public PrivateEndpointConnection create() { - this.innerObject = - serviceManager - .serviceClient() - .getPrivateEndpointConnections() - .create( - resourceGroupName, workspaceName, privateEndpointConnectionName, this.innerModel(), Context.NONE); + this.innerObject = serviceManager.serviceClient().getPrivateEndpointConnections().create(resourceGroupName, + workspaceName, privateEndpointConnectionName, this.innerModel(), Context.NONE); return this; } public PrivateEndpointConnection create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getPrivateEndpointConnections() - .create(resourceGroupName, workspaceName, privateEndpointConnectionName, this.innerModel(), context); + this.innerObject = serviceManager.serviceClient().getPrivateEndpointConnections().create(resourceGroupName, + workspaceName, privateEndpointConnectionName, this.innerModel(), context); return this; } @@ -92,22 +85,14 @@ public PrivateEndpointConnection create(Context context) { } public PrivateEndpointConnection refresh() { - this.innerObject = - serviceManager - .serviceClient() - .getPrivateEndpointConnections() - .getWithResponse(resourceGroupName, workspaceName, privateEndpointConnectionName, Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getPrivateEndpointConnections() + .getWithResponse(resourceGroupName, workspaceName, privateEndpointConnectionName, Context.NONE).getValue(); return this; } public PrivateEndpointConnection refresh(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getPrivateEndpointConnections() - .getWithResponse(resourceGroupName, workspaceName, privateEndpointConnectionName, context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getPrivateEndpointConnections() + .getWithResponse(resourceGroupName, workspaceName, privateEndpointConnectionName, context).getValue(); return this; } @@ -116,8 +101,8 @@ public PrivateEndpointConnectionImpl withPrivateEndpoint(PrivateEndpoint private return this; } - public PrivateEndpointConnectionImpl withPrivateLinkServiceConnectionState( - PrivateLinkServiceConnectionState privateLinkServiceConnectionState) { + public PrivateEndpointConnectionImpl + withPrivateLinkServiceConnectionState(PrivateLinkServiceConnectionState privateLinkServiceConnectionState) { this.innerModel().withPrivateLinkServiceConnectionState(privateLinkServiceConnectionState); return this; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionsClientImpl.java index 4946d5f6df23..3f2262241534 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionsClientImpl.java @@ -39,24 +39,28 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in PrivateEndpointConnectionsClient. */ +/** + * An instance of this class provides access to all the operations defined in PrivateEndpointConnectionsClient. + */ public final class PrivateEndpointConnectionsClientImpl implements PrivateEndpointConnectionsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final PrivateEndpointConnectionsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of PrivateEndpointConnectionsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ PrivateEndpointConnectionsClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy - .create( - PrivateEndpointConnectionsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service = RestProxy.create(PrivateEndpointConnectionsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } @@ -67,84 +71,58 @@ public final class PrivateEndpointConnectionsClientImpl implements PrivateEndpoi @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface PrivateEndpointConnectionsService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono> get(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("privateEndpointConnectionName") String privateEndpointConnectionName, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}") - @ExpectedResponses({200, 201}) + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}") + @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> create( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono>> create(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("privateEndpointConnectionName") String privateEndpointConnectionName, - @BodyParam("application/json") PrivateEndpointConnectionInner request, - @HeaderParam("Accept") String accept, + @BodyParam("application/json") PrivateEndpointConnectionInner request, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}") - @ExpectedResponses({200, 202, 204}) + @Headers({ "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}") + @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono>> delete(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("privateEndpointConnectionName") String privateEndpointConnectionName, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/privateEndpointConnections") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/privateEndpointConnections") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @HeaderParam("Accept") String accept, - Context context); + Mono> list(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** * Gets a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -154,19 +132,15 @@ Mono> listNext( * @return a private endpoint connection along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, String privateEndpointConnectionName) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, String privateEndpointConnectionName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -176,32 +150,20 @@ private Mono> getWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (privateEndpointConnectionName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter privateEndpointConnectionName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter privateEndpointConnectionName is required and cannot be null.")); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - privateEndpointConnectionName, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, privateEndpointConnectionName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -212,19 +174,15 @@ private Mono> getWithResponseAsync( * @return a private endpoint connection along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, String privateEndpointConnectionName, Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, String privateEndpointConnectionName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -234,29 +192,19 @@ private Mono> getWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (privateEndpointConnectionName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter privateEndpointConnectionName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter privateEndpointConnectionName is required and cannot be null.")); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - privateEndpointConnectionName, - accept, - context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, privateEndpointConnectionName, accept, context); } /** * Gets a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -266,15 +214,15 @@ private Mono> getWithResponseAsync( * @return a private endpoint connection on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String workspaceName, String privateEndpointConnectionName) { + private Mono getAsync(String resourceGroupName, String workspaceName, + String privateEndpointConnectionName) { return getWithResponseAsync(resourceGroupName, workspaceName, privateEndpointConnectionName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Gets a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -285,14 +233,14 @@ private Mono getAsync( * @return a private endpoint connection along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String workspaceName, String privateEndpointConnectionName, Context context) { + public Response getWithResponse(String resourceGroupName, String workspaceName, + String privateEndpointConnectionName, Context context) { return getWithResponseAsync(resourceGroupName, workspaceName, privateEndpointConnectionName, context).block(); } /** * Gets a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -302,15 +250,15 @@ public Response getWithResponse( * @return a private endpoint connection. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PrivateEndpointConnectionInner get( - String resourceGroupName, String workspaceName, String privateEndpointConnectionName) { + public PrivateEndpointConnectionInner get(String resourceGroupName, String workspaceName, + String privateEndpointConnectionName) { return getWithResponse(resourceGroupName, workspaceName, privateEndpointConnectionName, Context.NONE) .getValue(); } /** * Approve or reject a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -321,22 +269,15 @@ public PrivateEndpointConnectionInner get( * @return a private endpoint connection along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createWithResponseAsync( - String resourceGroupName, - String workspaceName, - String privateEndpointConnectionName, - PrivateEndpointConnectionInner request) { + private Mono>> createWithResponseAsync(String resourceGroupName, String workspaceName, + String privateEndpointConnectionName, PrivateEndpointConnectionInner request) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -346,10 +287,8 @@ private Mono>> createWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (privateEndpointConnectionName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter privateEndpointConnectionName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter privateEndpointConnectionName is required and cannot be null.")); } if (request == null) { return Mono.error(new IllegalArgumentException("Parameter request is required and cannot be null.")); @@ -360,24 +299,14 @@ private Mono>> createWithResponseAsync( final String accept = "application/json"; return FluxUtil .withContext( - context -> - service - .create( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - privateEndpointConnectionName, - request, - accept, - context)) + context -> service.create(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, privateEndpointConnectionName, request, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Approve or reject a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -389,23 +318,15 @@ private Mono>> createWithResponseAsync( * @return a private endpoint connection along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createWithResponseAsync( - String resourceGroupName, - String workspaceName, - String privateEndpointConnectionName, - PrivateEndpointConnectionInner request, - Context context) { + private Mono>> createWithResponseAsync(String resourceGroupName, String workspaceName, + String privateEndpointConnectionName, PrivateEndpointConnectionInner request, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -415,10 +336,8 @@ private Mono>> createWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (privateEndpointConnectionName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter privateEndpointConnectionName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter privateEndpointConnectionName is required and cannot be null.")); } if (request == null) { return Mono.error(new IllegalArgumentException("Parameter request is required and cannot be null.")); @@ -428,22 +347,13 @@ private Mono>> createWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .create( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - privateEndpointConnectionName, - request, - accept, - context); + return service.create(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, privateEndpointConnectionName, request, accept, context); } /** * Approve or reject a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -455,25 +365,18 @@ private Mono>> createWithResponseAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, PrivateEndpointConnectionInner> beginCreateAsync( - String resourceGroupName, - String workspaceName, - String privateEndpointConnectionName, + String resourceGroupName, String workspaceName, String privateEndpointConnectionName, PrivateEndpointConnectionInner request) { - Mono>> mono = - createWithResponseAsync(resourceGroupName, workspaceName, privateEndpointConnectionName, request); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - PrivateEndpointConnectionInner.class, - PrivateEndpointConnectionInner.class, - this.client.getContext()); + Mono>> mono + = createWithResponseAsync(resourceGroupName, workspaceName, privateEndpointConnectionName, request); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), PrivateEndpointConnectionInner.class, PrivateEndpointConnectionInner.class, + this.client.getContext()); } /** * Approve or reject a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -486,27 +389,19 @@ private PollerFlux, PrivateEndpointCo */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, PrivateEndpointConnectionInner> beginCreateAsync( - String resourceGroupName, - String workspaceName, - String privateEndpointConnectionName, - PrivateEndpointConnectionInner request, - Context context) { + String resourceGroupName, String workspaceName, String privateEndpointConnectionName, + PrivateEndpointConnectionInner request, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - createWithResponseAsync(resourceGroupName, workspaceName, privateEndpointConnectionName, request, context); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - PrivateEndpointConnectionInner.class, - PrivateEndpointConnectionInner.class, - context); + Mono>> mono = createWithResponseAsync(resourceGroupName, workspaceName, + privateEndpointConnectionName, request, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), PrivateEndpointConnectionInner.class, PrivateEndpointConnectionInner.class, + context); } /** * Approve or reject a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -518,18 +413,15 @@ private PollerFlux, PrivateEndpointCo */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, PrivateEndpointConnectionInner> beginCreate( - String resourceGroupName, - String workspaceName, - String privateEndpointConnectionName, + String resourceGroupName, String workspaceName, String privateEndpointConnectionName, PrivateEndpointConnectionInner request) { - return this - .beginCreateAsync(resourceGroupName, workspaceName, privateEndpointConnectionName, request) + return this.beginCreateAsync(resourceGroupName, workspaceName, privateEndpointConnectionName, request) .getSyncPoller(); } /** * Approve or reject a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -542,19 +434,15 @@ public SyncPoller, PrivateEndpointCon */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, PrivateEndpointConnectionInner> beginCreate( - String resourceGroupName, - String workspaceName, - String privateEndpointConnectionName, - PrivateEndpointConnectionInner request, - Context context) { - return this - .beginCreateAsync(resourceGroupName, workspaceName, privateEndpointConnectionName, request, context) + String resourceGroupName, String workspaceName, String privateEndpointConnectionName, + PrivateEndpointConnectionInner request, Context context) { + return this.beginCreateAsync(resourceGroupName, workspaceName, privateEndpointConnectionName, request, context) .getSyncPoller(); } /** * Approve or reject a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -565,19 +453,15 @@ public SyncPoller, PrivateEndpointCon * @return a private endpoint connection on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync( - String resourceGroupName, - String workspaceName, - String privateEndpointConnectionName, - PrivateEndpointConnectionInner request) { - return beginCreateAsync(resourceGroupName, workspaceName, privateEndpointConnectionName, request) - .last() + private Mono createAsync(String resourceGroupName, String workspaceName, + String privateEndpointConnectionName, PrivateEndpointConnectionInner request) { + return beginCreateAsync(resourceGroupName, workspaceName, privateEndpointConnectionName, request).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Approve or reject a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -589,20 +473,15 @@ private Mono createAsync( * @return a private endpoint connection on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync( - String resourceGroupName, - String workspaceName, - String privateEndpointConnectionName, - PrivateEndpointConnectionInner request, - Context context) { + private Mono createAsync(String resourceGroupName, String workspaceName, + String privateEndpointConnectionName, PrivateEndpointConnectionInner request, Context context) { return beginCreateAsync(resourceGroupName, workspaceName, privateEndpointConnectionName, request, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + .last().flatMap(this.client::getLroFinalResultOrError); } /** * Approve or reject a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -613,17 +492,14 @@ private Mono createAsync( * @return a private endpoint connection. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PrivateEndpointConnectionInner create( - String resourceGroupName, - String workspaceName, - String privateEndpointConnectionName, - PrivateEndpointConnectionInner request) { + public PrivateEndpointConnectionInner create(String resourceGroupName, String workspaceName, + String privateEndpointConnectionName, PrivateEndpointConnectionInner request) { return createAsync(resourceGroupName, workspaceName, privateEndpointConnectionName, request).block(); } /** * Approve or reject a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -635,18 +511,14 @@ public PrivateEndpointConnectionInner create( * @return a private endpoint connection. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PrivateEndpointConnectionInner create( - String resourceGroupName, - String workspaceName, - String privateEndpointConnectionName, - PrivateEndpointConnectionInner request, - Context context) { + public PrivateEndpointConnectionInner create(String resourceGroupName, String workspaceName, + String privateEndpointConnectionName, PrivateEndpointConnectionInner request, Context context) { return createAsync(resourceGroupName, workspaceName, privateEndpointConnectionName, request, context).block(); } /** * Delete a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -656,19 +528,15 @@ public PrivateEndpointConnectionInner create( * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync( - String resourceGroupName, String workspaceName, String privateEndpointConnectionName) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String workspaceName, + String privateEndpointConnectionName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -678,32 +546,21 @@ private Mono>> deleteWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (privateEndpointConnectionName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter privateEndpointConnectionName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter privateEndpointConnectionName is required and cannot be null.")); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil .withContext( - context -> - service - .delete( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - privateEndpointConnectionName, - accept, - context)) + context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, privateEndpointConnectionName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Delete a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -714,19 +571,15 @@ private Mono>> deleteWithResponseAsync( * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync( - String resourceGroupName, String workspaceName, String privateEndpointConnectionName, Context context) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String workspaceName, + String privateEndpointConnectionName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -736,29 +589,19 @@ private Mono>> deleteWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (privateEndpointConnectionName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter privateEndpointConnectionName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter privateEndpointConnectionName is required and cannot be null.")); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .delete( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - privateEndpointConnectionName, - accept, - context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, privateEndpointConnectionName, accept, context); } /** * Delete a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -768,23 +611,18 @@ private Mono>> deleteWithResponseAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, OperationResourceInner> beginDeleteAsync( - String resourceGroupName, String workspaceName, String privateEndpointConnectionName) { - Mono>> mono = - deleteWithResponseAsync(resourceGroupName, workspaceName, privateEndpointConnectionName); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - OperationResourceInner.class, - OperationResourceInner.class, - this.client.getContext()); + private PollerFlux, OperationResourceInner> + beginDeleteAsync(String resourceGroupName, String workspaceName, String privateEndpointConnectionName) { + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, workspaceName, privateEndpointConnectionName); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), OperationResourceInner.class, OperationResourceInner.class, + this.client.getContext()); } /** * Delete a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -798,21 +636,15 @@ private PollerFlux, OperationResourceInner> b private PollerFlux, OperationResourceInner> beginDeleteAsync( String resourceGroupName, String workspaceName, String privateEndpointConnectionName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - deleteWithResponseAsync(resourceGroupName, workspaceName, privateEndpointConnectionName, context); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - OperationResourceInner.class, - OperationResourceInner.class, - context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, workspaceName, privateEndpointConnectionName, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), OperationResourceInner.class, OperationResourceInner.class, context); } /** * Delete a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -822,14 +654,14 @@ private PollerFlux, OperationResourceInner> b * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, OperationResourceInner> beginDelete( - String resourceGroupName, String workspaceName, String privateEndpointConnectionName) { + public SyncPoller, OperationResourceInner> beginDelete(String resourceGroupName, + String workspaceName, String privateEndpointConnectionName) { return this.beginDeleteAsync(resourceGroupName, workspaceName, privateEndpointConnectionName).getSyncPoller(); } /** * Delete a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -840,16 +672,15 @@ public SyncPoller, OperationResourceInner> be * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, OperationResourceInner> beginDelete( - String resourceGroupName, String workspaceName, String privateEndpointConnectionName, Context context) { - return this - .beginDeleteAsync(resourceGroupName, workspaceName, privateEndpointConnectionName, context) + public SyncPoller, OperationResourceInner> beginDelete(String resourceGroupName, + String workspaceName, String privateEndpointConnectionName, Context context) { + return this.beginDeleteAsync(resourceGroupName, workspaceName, privateEndpointConnectionName, context) .getSyncPoller(); } /** * Delete a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -859,16 +690,15 @@ public SyncPoller, OperationResourceInner> be * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync( - String resourceGroupName, String workspaceName, String privateEndpointConnectionName) { - return beginDeleteAsync(resourceGroupName, workspaceName, privateEndpointConnectionName) - .last() + private Mono deleteAsync(String resourceGroupName, String workspaceName, + String privateEndpointConnectionName) { + return beginDeleteAsync(resourceGroupName, workspaceName, privateEndpointConnectionName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -879,16 +709,15 @@ private Mono deleteAsync( * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync( - String resourceGroupName, String workspaceName, String privateEndpointConnectionName, Context context) { - return beginDeleteAsync(resourceGroupName, workspaceName, privateEndpointConnectionName, context) - .last() + private Mono deleteAsync(String resourceGroupName, String workspaceName, + String privateEndpointConnectionName, Context context) { + return beginDeleteAsync(resourceGroupName, workspaceName, privateEndpointConnectionName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -898,14 +727,14 @@ private Mono deleteAsync( * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public OperationResourceInner delete( - String resourceGroupName, String workspaceName, String privateEndpointConnectionName) { + public OperationResourceInner delete(String resourceGroupName, String workspaceName, + String privateEndpointConnectionName) { return deleteAsync(resourceGroupName, workspaceName, privateEndpointConnectionName).block(); } /** * Delete a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -916,36 +745,32 @@ public OperationResourceInner delete( * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public OperationResourceInner delete( - String resourceGroupName, String workspaceName, String privateEndpointConnectionName, Context context) { + public OperationResourceInner delete(String resourceGroupName, String workspaceName, + String privateEndpointConnectionName, Context context) { return deleteAsync(resourceGroupName, workspaceName, privateEndpointConnectionName, context).block(); } /** * Lists private endpoint connection in workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of private endpoint connections along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String workspaceName) { + private Mono> listSinglePageAsync(String resourceGroupName, + String workspaceName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -957,32 +782,16 @@ private Mono> listSinglePageAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Lists private endpoint connection in workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -990,22 +799,18 @@ private Mono> listSinglePageAsync( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of private endpoint connections along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String workspaceName, Context context) { + private Mono> listSinglePageAsync(String resourceGroupName, + String workspaceName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1018,28 +823,15 @@ private Mono> listSinglePageAsync( final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * Lists private endpoint connection in workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1049,13 +841,13 @@ private Mono> listSinglePageAsync( */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String workspaceName) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, workspaceName), nextLink -> listNextSinglePageAsync(nextLink)); + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName), + nextLink -> listNextSinglePageAsync(nextLink)); } /** * Lists private endpoint connection in workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -1065,16 +857,15 @@ private PagedFlux listAsync(String resourceGroup * @return a list of private endpoint connections as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( - String resourceGroupName, String workspaceName, Context context) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, workspaceName, context), + private PagedFlux listAsync(String resourceGroupName, String workspaceName, + Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } /** * Lists private endpoint connection in workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1089,7 +880,7 @@ public PagedIterable list(String resourceGroupNa /** * Lists private endpoint connection in workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -1099,21 +890,22 @@ public PagedIterable list(String resourceGroupNa * @return a list of private endpoint connections as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list( - String resourceGroupName, String workspaceName, Context context) { + public PagedIterable list(String resourceGroupName, String workspaceName, + Context context) { return new PagedIterable<>(listAsync(resourceGroupName, workspaceName, context)); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of private endpoint connections along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -1121,62 +913,43 @@ private Mono> listNextSinglePageAs return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of private endpoint connections along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync( - String nextLink, Context context) { + private Mono> listNextSinglePageAsync(String nextLink, + Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionsImpl.java index f9ae2e854fc6..af4a92882ad5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionsImpl.java @@ -23,33 +23,28 @@ public final class PrivateEndpointConnectionsImpl implements PrivateEndpointConn private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public PrivateEndpointConnectionsImpl( - PrivateEndpointConnectionsClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + public PrivateEndpointConnectionsImpl(PrivateEndpointConnectionsClient innerClient, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public Response getWithResponse( - String resourceGroupName, String workspaceName, String privateEndpointConnectionName, Context context) { - Response inner = - this - .serviceClient() - .getWithResponse(resourceGroupName, workspaceName, privateEndpointConnectionName, context); + public Response getWithResponse(String resourceGroupName, String workspaceName, + String privateEndpointConnectionName, Context context) { + Response inner = this.serviceClient().getWithResponse(resourceGroupName, + workspaceName, privateEndpointConnectionName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new PrivateEndpointConnectionImpl(inner.getValue(), this.manager())); } else { return null; } } - public PrivateEndpointConnection get( - String resourceGroupName, String workspaceName, String privateEndpointConnectionName) { - PrivateEndpointConnectionInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, privateEndpointConnectionName); + public PrivateEndpointConnection get(String resourceGroupName, String workspaceName, + String privateEndpointConnectionName) { + PrivateEndpointConnectionInner inner + = this.serviceClient().get(resourceGroupName, workspaceName, privateEndpointConnectionName); if (inner != null) { return new PrivateEndpointConnectionImpl(inner, this.manager()); } else { @@ -57,10 +52,10 @@ public PrivateEndpointConnection get( } } - public OperationResource delete( - String resourceGroupName, String workspaceName, String privateEndpointConnectionName) { - OperationResourceInner inner = - this.serviceClient().delete(resourceGroupName, workspaceName, privateEndpointConnectionName); + public OperationResource delete(String resourceGroupName, String workspaceName, + String privateEndpointConnectionName) { + OperationResourceInner inner + = this.serviceClient().delete(resourceGroupName, workspaceName, privateEndpointConnectionName); if (inner != null) { return new OperationResourceImpl(inner, this.manager()); } else { @@ -68,10 +63,10 @@ public OperationResource delete( } } - public OperationResource delete( - String resourceGroupName, String workspaceName, String privateEndpointConnectionName, Context context) { - OperationResourceInner inner = - this.serviceClient().delete(resourceGroupName, workspaceName, privateEndpointConnectionName, context); + public OperationResource delete(String resourceGroupName, String workspaceName, + String privateEndpointConnectionName, Context context) { + OperationResourceInner inner + = this.serviceClient().delete(resourceGroupName, workspaceName, privateEndpointConnectionName, context); if (inner != null) { return new OperationResourceImpl(inner, this.manager()); } else { @@ -80,132 +75,95 @@ public OperationResource delete( } public PagedIterable list(String resourceGroupName, String workspaceName) { - PagedIterable inner = - this.serviceClient().list(resourceGroupName, workspaceName); - return Utils.mapPage(inner, inner1 -> new PrivateEndpointConnectionImpl(inner1, this.manager())); + PagedIterable inner + = this.serviceClient().list(resourceGroupName, workspaceName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new PrivateEndpointConnectionImpl(inner1, this.manager())); } - public PagedIterable list( - String resourceGroupName, String workspaceName, Context context) { - PagedIterable inner = - this.serviceClient().list(resourceGroupName, workspaceName, context); - return Utils.mapPage(inner, inner1 -> new PrivateEndpointConnectionImpl(inner1, this.manager())); + public PagedIterable list(String resourceGroupName, String workspaceName, + Context context) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, workspaceName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new PrivateEndpointConnectionImpl(inner1, this.manager())); } public PrivateEndpointConnection getById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String privateEndpointConnectionName = Utils.getValueFromIdByName(id, "privateEndpointConnections"); + String privateEndpointConnectionName + = ResourceManagerUtils.getValueFromIdByName(id, "privateEndpointConnections"); if (privateEndpointConnectionName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'privateEndpointConnections'.", - id))); - } - return this - .getWithResponse(resourceGroupName, workspaceName, privateEndpointConnectionName, Context.NONE) + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String + .format("The resource ID '%s' is not valid. Missing path segment 'privateEndpointConnections'.", id))); + } + return this.getWithResponse(resourceGroupName, workspaceName, privateEndpointConnectionName, Context.NONE) .getValue(); } public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String privateEndpointConnectionName = Utils.getValueFromIdByName(id, "privateEndpointConnections"); + String privateEndpointConnectionName + = ResourceManagerUtils.getValueFromIdByName(id, "privateEndpointConnections"); if (privateEndpointConnectionName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'privateEndpointConnections'.", - id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String + .format("The resource ID '%s' is not valid. Missing path segment 'privateEndpointConnections'.", id))); } return this.getWithResponse(resourceGroupName, workspaceName, privateEndpointConnectionName, context); } public OperationResource deleteById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String privateEndpointConnectionName = Utils.getValueFromIdByName(id, "privateEndpointConnections"); + String privateEndpointConnectionName + = ResourceManagerUtils.getValueFromIdByName(id, "privateEndpointConnections"); if (privateEndpointConnectionName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'privateEndpointConnections'.", - id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String + .format("The resource ID '%s' is not valid. Missing path segment 'privateEndpointConnections'.", id))); } return this.delete(resourceGroupName, workspaceName, privateEndpointConnectionName, Context.NONE); } public OperationResource deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String privateEndpointConnectionName = Utils.getValueFromIdByName(id, "privateEndpointConnections"); + String privateEndpointConnectionName + = ResourceManagerUtils.getValueFromIdByName(id, "privateEndpointConnections"); if (privateEndpointConnectionName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'privateEndpointConnections'.", - id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String + .format("The resource ID '%s' is not valid. Missing path segment 'privateEndpointConnections'.", id))); } return this.delete(resourceGroupName, workspaceName, privateEndpointConnectionName, context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionsPrivateLinkHubsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionsPrivateLinkHubsClientImpl.java index e0442aff011b..be76ea984563 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionsPrivateLinkHubsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionsPrivateLinkHubsClientImpl.java @@ -36,24 +36,24 @@ */ public final class PrivateEndpointConnectionsPrivateLinkHubsClientImpl implements PrivateEndpointConnectionsPrivateLinkHubsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final PrivateEndpointConnectionsPrivateLinkHubsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of PrivateEndpointConnectionsPrivateLinkHubsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ PrivateEndpointConnectionsPrivateLinkHubsClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy - .create( - PrivateEndpointConnectionsPrivateLinkHubsService.class, - client.getHttpPipeline(), - client.getSerializerAdapter()); + this.service = RestProxy.create(PrivateEndpointConnectionsPrivateLinkHubsService.class, + client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } @@ -64,73 +64,58 @@ public final class PrivateEndpointConnectionsPrivateLinkHubsClientImpl @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface PrivateEndpointConnectionsPrivateLinkHubsService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse" - + "/privateLinkHubs/{privateLinkHubName}/privateEndpointConnections") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/privateLinkHubs/{privateLinkHubName}/privateEndpointConnections") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> list( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, + @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateLinkHubName") String privateLinkHubName, - @HeaderParam("Accept") String accept, + @PathParam("privateLinkHubName") String privateLinkHubName, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse" - + "/privateLinkHubs/{privateLinkHubName}/privateEndpointConnections/{privateEndpointConnectionName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/privateLinkHubs/{privateLinkHubName}/privateEndpointConnections/{privateEndpointConnectionName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + Mono> get(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("privateLinkHubName") String privateLinkHubName, @PathParam("privateEndpointConnectionName") String privateEndpointConnectionName, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** * Get all PrivateEndpointConnections in the PrivateLinkHub. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return all PrivateEndpointConnections in the PrivateLinkHub along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String privateLinkHubName) { + private Mono> + listSinglePageAsync(String resourceGroupName, String privateLinkHubName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -143,32 +128,17 @@ private Mono> lis final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - privateLinkHubName, - accept, - context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, privateLinkHubName, accept, context)) .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get all PrivateEndpointConnections in the PrivateLinkHub. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @param context The context to associate with this operation. @@ -176,22 +146,18 @@ private Mono> lis * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return all PrivateEndpointConnections in the PrivateLinkHub along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String privateLinkHubName, Context context) { + private Mono> + listSinglePageAsync(String resourceGroupName, String privateLinkHubName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -205,28 +171,15 @@ private Mono> lis final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - privateLinkHubName, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + privateLinkHubName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * Get all PrivateEndpointConnections in the PrivateLinkHub. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -235,16 +188,15 @@ private Mono> lis * @return all PrivateEndpointConnections in the PrivateLinkHub as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( - String resourceGroupName, String privateLinkHubName) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, privateLinkHubName), + private PagedFlux listAsync(String resourceGroupName, + String privateLinkHubName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, privateLinkHubName), nextLink -> listNextSinglePageAsync(nextLink)); } /** * Get all PrivateEndpointConnections in the PrivateLinkHub. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @param context The context to associate with this operation. @@ -254,16 +206,15 @@ private PagedFlux listAsync( * @return all PrivateEndpointConnections in the PrivateLinkHub as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( - String resourceGroupName, String privateLinkHubName, Context context) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, privateLinkHubName, context), + private PagedFlux listAsync(String resourceGroupName, + String privateLinkHubName, Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, privateLinkHubName, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } /** * Get all PrivateEndpointConnections in the PrivateLinkHub. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -272,14 +223,14 @@ private PagedFlux listAsync( * @return all PrivateEndpointConnections in the PrivateLinkHub as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list( - String resourceGroupName, String privateLinkHubName) { + public PagedIterable list(String resourceGroupName, + String privateLinkHubName) { return new PagedIterable<>(listAsync(resourceGroupName, privateLinkHubName)); } /** * Get all PrivateEndpointConnections in the PrivateLinkHub. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @param context The context to associate with this operation. @@ -289,14 +240,14 @@ public PagedIterable list( * @return all PrivateEndpointConnections in the PrivateLinkHub as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list( - String resourceGroupName, String privateLinkHubName, Context context) { + public PagedIterable list(String resourceGroupName, + String privateLinkHubName, Context context) { return new PagedIterable<>(listAsync(resourceGroupName, privateLinkHubName, context)); } /** * Get all PrivateEndpointConnection in the PrivateLinkHub by name. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @param privateEndpointConnectionName Name of the privateEndpointConnection. @@ -304,22 +255,18 @@ public PagedIterable list( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return all PrivateEndpointConnection in the PrivateLinkHub by name along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( String resourceGroupName, String privateLinkHubName, String privateEndpointConnectionName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -330,32 +277,20 @@ private Mono> getWithR .error(new IllegalArgumentException("Parameter privateLinkHubName is required and cannot be null.")); } if (privateEndpointConnectionName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter privateEndpointConnectionName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter privateEndpointConnectionName is required and cannot be null.")); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - privateLinkHubName, - privateEndpointConnectionName, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, privateLinkHubName, privateEndpointConnectionName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get all PrivateEndpointConnection in the PrivateLinkHub by name. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @param privateEndpointConnectionName Name of the privateEndpointConnection. @@ -364,22 +299,18 @@ private Mono> getWithR * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return all PrivateEndpointConnection in the PrivateLinkHub by name along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( String resourceGroupName, String privateLinkHubName, String privateEndpointConnectionName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -390,29 +321,19 @@ private Mono> getWithR .error(new IllegalArgumentException("Parameter privateLinkHubName is required and cannot be null.")); } if (privateEndpointConnectionName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter privateEndpointConnectionName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter privateEndpointConnectionName is required and cannot be null.")); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - privateLinkHubName, - privateEndpointConnectionName, - accept, - context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + privateLinkHubName, privateEndpointConnectionName, accept, context); } /** * Get all PrivateEndpointConnection in the PrivateLinkHub by name. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @param privateEndpointConnectionName Name of the privateEndpointConnection. @@ -422,15 +343,15 @@ private Mono> getWithR * @return all PrivateEndpointConnection in the PrivateLinkHub by name on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String privateLinkHubName, String privateEndpointConnectionName) { + private Mono getAsync(String resourceGroupName, + String privateLinkHubName, String privateEndpointConnectionName) { return getWithResponseAsync(resourceGroupName, privateLinkHubName, privateEndpointConnectionName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Get all PrivateEndpointConnection in the PrivateLinkHub by name. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @param privateEndpointConnectionName Name of the privateEndpointConnection. @@ -441,15 +362,15 @@ private Mono getAsync( * @return all PrivateEndpointConnection in the PrivateLinkHub by name along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String privateLinkHubName, String privateEndpointConnectionName, Context context) { + public Response getWithResponse(String resourceGroupName, + String privateLinkHubName, String privateEndpointConnectionName, Context context) { return getWithResponseAsync(resourceGroupName, privateLinkHubName, privateEndpointConnectionName, context) .block(); } /** * Get all PrivateEndpointConnection in the PrivateLinkHub by name. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @param privateEndpointConnectionName Name of the privateEndpointConnection. @@ -459,54 +380,47 @@ public Response getWithResponse * @return all PrivateEndpointConnection in the PrivateLinkHub by name. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PrivateEndpointConnectionForPrivateLinkHubInner get( - String resourceGroupName, String privateLinkHubName, String privateEndpointConnectionName) { + public PrivateEndpointConnectionForPrivateLinkHubInner get(String resourceGroupName, String privateLinkHubName, + String privateEndpointConnectionName) { return getWithResponse(resourceGroupName, privateLinkHubName, privateEndpointConnectionName, Context.NONE) .getValue(); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response body along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync( - String nextLink) { + private Mono> + listNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -514,29 +428,19 @@ private Mono> lis * @return the response body along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync( - String nextLink, Context context) { + private Mono> + listNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionsPrivateLinkHubsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionsPrivateLinkHubsImpl.java index 8bf217bd2f44..cb1c84bf5e92 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionsPrivateLinkHubsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateEndpointConnectionsPrivateLinkHubsImpl.java @@ -21,50 +21,44 @@ public final class PrivateEndpointConnectionsPrivateLinkHubsImpl implements Priv private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public PrivateEndpointConnectionsPrivateLinkHubsImpl( - PrivateEndpointConnectionsPrivateLinkHubsClient innerClient, + public PrivateEndpointConnectionsPrivateLinkHubsImpl(PrivateEndpointConnectionsPrivateLinkHubsClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public PagedIterable list( - String resourceGroupName, String privateLinkHubName) { - PagedIterable inner = - this.serviceClient().list(resourceGroupName, privateLinkHubName); - return Utils - .mapPage(inner, inner1 -> new PrivateEndpointConnectionForPrivateLinkHubImpl(inner1, this.manager())); + public PagedIterable list(String resourceGroupName, + String privateLinkHubName) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, privateLinkHubName); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new PrivateEndpointConnectionForPrivateLinkHubImpl(inner1, this.manager())); } - public PagedIterable list( - String resourceGroupName, String privateLinkHubName, Context context) { - PagedIterable inner = - this.serviceClient().list(resourceGroupName, privateLinkHubName, context); - return Utils - .mapPage(inner, inner1 -> new PrivateEndpointConnectionForPrivateLinkHubImpl(inner1, this.manager())); + public PagedIterable list(String resourceGroupName, + String privateLinkHubName, Context context) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, privateLinkHubName, context); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new PrivateEndpointConnectionForPrivateLinkHubImpl(inner1, this.manager())); } - public Response getWithResponse( - String resourceGroupName, String privateLinkHubName, String privateEndpointConnectionName, Context context) { - Response inner = - this - .serviceClient() - .getWithResponse(resourceGroupName, privateLinkHubName, privateEndpointConnectionName, context); + public Response getWithResponse(String resourceGroupName, + String privateLinkHubName, String privateEndpointConnectionName, Context context) { + Response inner = this.serviceClient() + .getWithResponse(resourceGroupName, privateLinkHubName, privateEndpointConnectionName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new PrivateEndpointConnectionForPrivateLinkHubImpl(inner.getValue(), this.manager())); } else { return null; } } - public PrivateEndpointConnectionForPrivateLinkHub get( - String resourceGroupName, String privateLinkHubName, String privateEndpointConnectionName) { - PrivateEndpointConnectionForPrivateLinkHubInner inner = - this.serviceClient().get(resourceGroupName, privateLinkHubName, privateEndpointConnectionName); + public PrivateEndpointConnectionForPrivateLinkHub get(String resourceGroupName, String privateLinkHubName, + String privateEndpointConnectionName) { + PrivateEndpointConnectionForPrivateLinkHubInner inner + = this.serviceClient().get(resourceGroupName, privateLinkHubName, privateEndpointConnectionName); if (inner != null) { return new PrivateEndpointConnectionForPrivateLinkHubImpl(inner, this.manager()); } else { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubImpl.java index 8c37be50886b..23fb80e93cc6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubImpl.java @@ -89,22 +89,15 @@ public PrivateLinkHubImpl withExistingResourceGroup(String resourceGroupName) { } public PrivateLinkHub create() { - this.innerObject = - serviceManager - .serviceClient() - .getPrivateLinkHubs() - .createOrUpdateWithResponse(resourceGroupName, privateLinkHubName, this.innerModel(), Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getPrivateLinkHubs() + .createOrUpdateWithResponse(resourceGroupName, privateLinkHubName, this.innerModel(), Context.NONE) + .getValue(); return this; } public PrivateLinkHub create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getPrivateLinkHubs() - .createOrUpdateWithResponse(resourceGroupName, privateLinkHubName, this.innerModel(), context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getPrivateLinkHubs() + .createOrUpdateWithResponse(resourceGroupName, privateLinkHubName, this.innerModel(), context).getValue(); return this; } @@ -120,50 +113,36 @@ public PrivateLinkHubImpl update() { } public PrivateLinkHub apply() { - this.innerObject = - serviceManager - .serviceClient() - .getPrivateLinkHubs() - .updateWithResponse(resourceGroupName, privateLinkHubName, updatePrivateLinkHubPatchInfo, Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getPrivateLinkHubs() + .updateWithResponse(resourceGroupName, privateLinkHubName, updatePrivateLinkHubPatchInfo, Context.NONE) + .getValue(); return this; } public PrivateLinkHub apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getPrivateLinkHubs() - .updateWithResponse(resourceGroupName, privateLinkHubName, updatePrivateLinkHubPatchInfo, context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getPrivateLinkHubs() + .updateWithResponse(resourceGroupName, privateLinkHubName, updatePrivateLinkHubPatchInfo, context) + .getValue(); return this; } - PrivateLinkHubImpl( - PrivateLinkHubInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + PrivateLinkHubImpl(PrivateLinkHubInner innerObject, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.privateLinkHubName = Utils.getValueFromIdByName(innerObject.id(), "privateLinkHubs"); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.privateLinkHubName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "privateLinkHubs"); } public PrivateLinkHub refresh() { - this.innerObject = - serviceManager - .serviceClient() - .getPrivateLinkHubs() - .getByResourceGroupWithResponse(resourceGroupName, privateLinkHubName, Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getPrivateLinkHubs() + .getByResourceGroupWithResponse(resourceGroupName, privateLinkHubName, Context.NONE).getValue(); return this; } public PrivateLinkHub refresh(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getPrivateLinkHubs() - .getByResourceGroupWithResponse(resourceGroupName, privateLinkHubName, context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getPrivateLinkHubs() + .getByResourceGroupWithResponse(resourceGroupName, privateLinkHubName, context).getValue(); return this; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubPrivateLinkResourcesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubPrivateLinkResourcesClientImpl.java index 4788e8fbb06b..d4741e1fcd59 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubPrivateLinkResourcesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubPrivateLinkResourcesClientImpl.java @@ -34,24 +34,24 @@ * An instance of this class provides access to all the operations defined in PrivateLinkHubPrivateLinkResourcesClient. */ public final class PrivateLinkHubPrivateLinkResourcesClientImpl implements PrivateLinkHubPrivateLinkResourcesClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final PrivateLinkHubPrivateLinkResourcesService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of PrivateLinkHubPrivateLinkResourcesClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ PrivateLinkHubPrivateLinkResourcesClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy - .create( - PrivateLinkHubPrivateLinkResourcesService.class, - client.getHttpPipeline(), - client.getSerializerAdapter()); + this.service = RestProxy.create(PrivateLinkHubPrivateLinkResourcesService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } @@ -62,75 +62,59 @@ public final class PrivateLinkHubPrivateLinkResourcesClientImpl implements Priva @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface PrivateLinkHubPrivateLinkResourcesService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse" - + "/privateLinkHubs/{privateLinkHubName}/privateLinkResources") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/privateLinkHubs/{privateLinkHubName}/privateLinkResources") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + Mono> list(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateLinkHubName") String privateLinkHubName, - @HeaderParam("Accept") String accept, + @PathParam("privateLinkHubName") String privateLinkHubName, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse" - + "/privateLinkHubs/{privateLinkHubName}/privateLinkResources/{privateLinkResourceName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/privateLinkHubs/{privateLinkHubName}/privateLinkResources/{privateLinkResourceName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + Mono> get(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("privateLinkHubName") String privateLinkHubName, - @PathParam("privateLinkResourceName") String privateLinkResourceName, - @HeaderParam("Accept") String accept, + @PathParam("privateLinkResourceName") String privateLinkResourceName, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** * Private Link Resources - * - *

Get all private link resources for a private link hub. - * + * + * Get all private link resources for a private link hub. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName The name of the private link hub. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return all private link resources for a private link hub along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String privateLinkHubName) { + private Mono> listSinglePageAsync(String resourceGroupName, + String privateLinkHubName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -143,34 +127,18 @@ private Mono> listSinglePageAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - privateLinkHubName, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, privateLinkHubName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Private Link Resources - * - *

Get all private link resources for a private link hub. - * + * + * Get all private link resources for a private link hub. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName The name of the private link hub. * @param context The context to associate with this operation. @@ -178,22 +146,18 @@ private Mono> listSinglePageAsync( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return all private link resources for a private link hub along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String privateLinkHubName, Context context) { + private Mono> listSinglePageAsync(String resourceGroupName, + String privateLinkHubName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -207,30 +171,17 @@ private Mono> listSinglePageAsync( final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - privateLinkHubName, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + privateLinkHubName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * Private Link Resources - * - *

Get all private link resources for a private link hub. - * + * + * Get all private link resources for a private link hub. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName The name of the private link hub. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -240,16 +191,15 @@ private Mono> listSinglePageAsync( */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String privateLinkHubName) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, privateLinkHubName), + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, privateLinkHubName), nextLink -> listNextSinglePageAsync(nextLink)); } /** * Private Link Resources - * - *

Get all private link resources for a private link hub. - * + * + * Get all private link resources for a private link hub. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName The name of the private link hub. * @param context The context to associate with this operation. @@ -259,18 +209,17 @@ private PagedFlux listAsync(String resourceGroupName, * @return all private link resources for a private link hub as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( - String resourceGroupName, String privateLinkHubName, Context context) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, privateLinkHubName, context), + private PagedFlux listAsync(String resourceGroupName, String privateLinkHubName, + Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, privateLinkHubName, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } /** * Private Link Resources - * - *

Get all private link resources for a private link hub. - * + * + * Get all private link resources for a private link hub. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName The name of the private link hub. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -285,9 +234,9 @@ public PagedIterable list(String resourceGroupName, St /** * Private Link Resources - * - *

Get all private link resources for a private link hub. - * + * + * Get all private link resources for a private link hub. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName The name of the private link hub. * @param context The context to associate with this operation. @@ -297,39 +246,35 @@ public PagedIterable list(String resourceGroupName, St * @return all private link resources for a private link hub as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list( - String resourceGroupName, String privateLinkHubName, Context context) { + public PagedIterable list(String resourceGroupName, String privateLinkHubName, + Context context) { return new PagedIterable<>(listAsync(resourceGroupName, privateLinkHubName, context)); } /** * Get Private Link Hub Private Link Resource - * - *

Get private link resource in private link hub. - * + * + * Get private link resource in private link hub. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName The name of the private link hub. * @param privateLinkResourceName The name of the private link resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return private link resource in private link hub along with {@link Response} on successful completion of {@link - * Mono}. + * @return private link resource in private link hub along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String privateLinkHubName, String privateLinkResourceName) { + private Mono> getWithResponseAsync(String resourceGroupName, + String privateLinkHubName, String privateLinkResourceName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -340,33 +285,22 @@ private Mono> getWithResponseAsync( .error(new IllegalArgumentException("Parameter privateLinkHubName is required and cannot be null.")); } if (privateLinkResourceName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter privateLinkResourceName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter privateLinkResourceName is required and cannot be null.")); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - privateLinkHubName, - privateLinkResourceName, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, privateLinkHubName, privateLinkResourceName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get Private Link Hub Private Link Resource - * - *

Get private link resource in private link hub. - * + * + * Get private link resource in private link hub. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName The name of the private link hub. * @param privateLinkResourceName The name of the private link resource. @@ -374,23 +308,19 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return private link resource in private link hub along with {@link Response} on successful completion of {@link - * Mono}. + * @return private link resource in private link hub along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String privateLinkHubName, String privateLinkResourceName, Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, + String privateLinkHubName, String privateLinkResourceName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -401,30 +331,21 @@ private Mono> getWithResponseAsync( .error(new IllegalArgumentException("Parameter privateLinkHubName is required and cannot be null.")); } if (privateLinkResourceName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter privateLinkResourceName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter privateLinkResourceName is required and cannot be null.")); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - privateLinkHubName, - privateLinkResourceName, - accept, - context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + privateLinkHubName, privateLinkResourceName, accept, context); } /** * Get Private Link Hub Private Link Resource - * - *

Get private link resource in private link hub. - * + * + * Get private link resource in private link hub. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName The name of the private link hub. * @param privateLinkResourceName The name of the private link resource. @@ -434,17 +355,17 @@ private Mono> getWithResponseAsync( * @return private link resource in private link hub on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String privateLinkHubName, String privateLinkResourceName) { + private Mono getAsync(String resourceGroupName, String privateLinkHubName, + String privateLinkResourceName) { return getWithResponseAsync(resourceGroupName, privateLinkHubName, privateLinkResourceName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Get Private Link Hub Private Link Resource - * - *

Get private link resource in private link hub. - * + * + * Get private link resource in private link hub. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName The name of the private link hub. * @param privateLinkResourceName The name of the private link resource. @@ -455,16 +376,16 @@ private Mono getAsync( * @return private link resource in private link hub along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String privateLinkHubName, String privateLinkResourceName, Context context) { + public Response getWithResponse(String resourceGroupName, String privateLinkHubName, + String privateLinkResourceName, Context context) { return getWithResponseAsync(resourceGroupName, privateLinkHubName, privateLinkResourceName, context).block(); } /** * Get Private Link Hub Private Link Resource - * - *

Get private link resource in private link hub. - * + * + * Get private link resource in private link hub. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName The name of the private link hub. * @param privateLinkResourceName The name of the private link resource. @@ -474,21 +395,22 @@ public Response getWithResponse( * @return private link resource in private link hub. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PrivateLinkResourceInner get( - String resourceGroupName, String privateLinkHubName, String privateLinkResourceName) { + public PrivateLinkResourceInner get(String resourceGroupName, String privateLinkHubName, + String privateLinkResourceName) { return getWithResponse(resourceGroupName, privateLinkHubName, privateLinkResourceName, Context.NONE).getValue(); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of private link resources along with {@link PagedResponse} on successful completion of {@link - * Mono}. + * @return a list of private link resources along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -496,37 +418,28 @@ private Mono> listNextSinglePageAsync(St return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of private link resources along with {@link PagedResponse} on successful completion of {@link - * Mono}. + * @return a list of private link resources along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { @@ -534,23 +447,13 @@ private Mono> listNextSinglePageAsync(St return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubPrivateLinkResourcesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubPrivateLinkResourcesImpl.java index 29093e5eba31..8879df5281ee 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubPrivateLinkResourcesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubPrivateLinkResourcesImpl.java @@ -21,47 +21,41 @@ public final class PrivateLinkHubPrivateLinkResourcesImpl implements PrivateLink private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public PrivateLinkHubPrivateLinkResourcesImpl( - PrivateLinkHubPrivateLinkResourcesClient innerClient, + public PrivateLinkHubPrivateLinkResourcesImpl(PrivateLinkHubPrivateLinkResourcesClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } public PagedIterable list(String resourceGroupName, String privateLinkHubName) { - PagedIterable inner = - this.serviceClient().list(resourceGroupName, privateLinkHubName); - return Utils.mapPage(inner, inner1 -> new PrivateLinkResourceImpl(inner1, this.manager())); + PagedIterable inner + = this.serviceClient().list(resourceGroupName, privateLinkHubName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new PrivateLinkResourceImpl(inner1, this.manager())); } - public PagedIterable list( - String resourceGroupName, String privateLinkHubName, Context context) { - PagedIterable inner = - this.serviceClient().list(resourceGroupName, privateLinkHubName, context); - return Utils.mapPage(inner, inner1 -> new PrivateLinkResourceImpl(inner1, this.manager())); + public PagedIterable list(String resourceGroupName, String privateLinkHubName, + Context context) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, privateLinkHubName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new PrivateLinkResourceImpl(inner1, this.manager())); } - public Response getWithResponse( - String resourceGroupName, String privateLinkHubName, String privateLinkResourceName, Context context) { - Response inner = - this - .serviceClient() - .getWithResponse(resourceGroupName, privateLinkHubName, privateLinkResourceName, context); + public Response getWithResponse(String resourceGroupName, String privateLinkHubName, + String privateLinkResourceName, Context context) { + Response inner = this.serviceClient().getWithResponse(resourceGroupName, + privateLinkHubName, privateLinkResourceName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new PrivateLinkResourceImpl(inner.getValue(), this.manager())); } else { return null; } } - public PrivateLinkResource get( - String resourceGroupName, String privateLinkHubName, String privateLinkResourceName) { - PrivateLinkResourceInner inner = - this.serviceClient().get(resourceGroupName, privateLinkHubName, privateLinkResourceName); + public PrivateLinkResource get(String resourceGroupName, String privateLinkHubName, + String privateLinkResourceName) { + PrivateLinkResourceInner inner + = this.serviceClient().get(resourceGroupName, privateLinkHubName, privateLinkResourceName); if (inner != null) { return new PrivateLinkResourceImpl(inner, this.manager()); } else { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubsClientImpl.java index 26e1d0daea43..7c0058c9518b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubsClientImpl.java @@ -40,22 +40,28 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in PrivateLinkHubsClient. */ +/** + * An instance of this class provides access to all the operations defined in PrivateLinkHubsClient. + */ public final class PrivateLinkHubsClientImpl implements PrivateLinkHubsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final PrivateLinkHubsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of PrivateLinkHubsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ PrivateLinkHubsClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy.create(PrivateLinkHubsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service + = RestProxy.create(PrivateLinkHubsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } @@ -66,117 +72,85 @@ public final class PrivateLinkHubsClientImpl implements PrivateLinkHubsClient { @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface PrivateLinkHubsService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse" - + "/privateLinkHubs") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/privateLinkHubs") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @HeaderParam("Accept") String accept, + Mono> listByResourceGroup(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse" - + "/privateLinkHubs/{privateLinkHubName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/privateLinkHubs/{privateLinkHubName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + Mono> getByResourceGroup(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateLinkHubName") String privateLinkHubName, - @HeaderParam("Accept") String accept, + @PathParam("privateLinkHubName") String privateLinkHubName, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Patch( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse" - + "/privateLinkHubs/{privateLinkHubName}") - @ExpectedResponses({200, 201}) + @Headers({ "Content-Type: application/json" }) + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/privateLinkHubs/{privateLinkHubName}") + @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> update( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + Mono> update(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("privateLinkHubName") String privateLinkHubName, @BodyParam("application/json") PrivateLinkHubPatchInfo privateLinkHubPatchInfo, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse" - + "/privateLinkHubs/{privateLinkHubName}") - @ExpectedResponses({200, 201}) + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/privateLinkHubs/{privateLinkHubName}") + @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + Mono> createOrUpdate(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("privateLinkHubName") String privateLinkHubName, - @BodyParam("application/json") PrivateLinkHubInner privateLinkHubInfo, - @HeaderParam("Accept") String accept, + @BodyParam("application/json") PrivateLinkHubInner privateLinkHubInfo, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse" - + "/privateLinkHubs/{privateLinkHubName}") - @ExpectedResponses({200, 202, 204}) + @Headers({ "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/privateLinkHubs/{privateLinkHubName}") + @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + Mono>> delete(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("privateLinkHubName") String privateLinkHubName, - @HeaderParam("Accept") String accept, + @PathParam("privateLinkHubName") String privateLinkHubName, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Synapse/privateLinkHubs") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, - Context context); + Mono> list(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByResourceGroupNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** * Returns a list of privateLinkHubs in a resource group. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -186,16 +160,12 @@ Mono> listNext( @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -204,31 +174,16 @@ private Mono> listByResourceGroupSinglePageAs final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .listByResourceGroup( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Returns a list of privateLinkHubs in a resource group. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -237,19 +192,15 @@ private Mono> listByResourceGroupSinglePageAs * @return list of privateLinkHubs along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupSinglePageAsync( - String resourceGroupName, Context context) { + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, + Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -259,27 +210,15 @@ private Mono> listByResourceGroupSinglePageAs final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByResourceGroup( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * Returns a list of privateLinkHubs in a resource group. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -288,14 +227,13 @@ private Mono> listByResourceGroupSinglePageAs */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName) { - return new PagedFlux<>( - () -> listByResourceGroupSinglePageAsync(resourceGroupName), + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); } /** * Returns a list of privateLinkHubs in a resource group. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -305,14 +243,13 @@ private PagedFlux listByResourceGroupAsync(String resourceG */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { - return new PagedFlux<>( - () -> listByResourceGroupSinglePageAsync(resourceGroupName, context), + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context)); } /** * Returns a list of privateLinkHubs in a resource group. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -326,7 +263,7 @@ public PagedIterable listByResourceGroup(String resourceGro /** * Returns a list of privateLinkHubs in a resource group. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -341,7 +278,7 @@ public PagedIterable listByResourceGroup(String resourceGro /** * Gets a privateLinkHub. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -350,19 +287,15 @@ public PagedIterable listByResourceGroup(String resourceGro * @return a privateLinkHub along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getByResourceGroupWithResponseAsync( - String resourceGroupName, String privateLinkHubName) { + private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String privateLinkHubName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -375,23 +308,14 @@ private Mono> getByResourceGroupWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .getByResourceGroup( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - privateLinkHubName, - accept, - context)) + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, privateLinkHubName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets a privateLinkHub. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @param context The context to associate with this operation. @@ -401,19 +325,15 @@ private Mono> getByResourceGroupWithResponseAsync( * @return a privateLinkHub along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getByResourceGroupWithResponseAsync( - String resourceGroupName, String privateLinkHubName, Context context) { + private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String privateLinkHubName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -426,20 +346,13 @@ private Mono> getByResourceGroupWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .getByResourceGroup( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - privateLinkHubName, - accept, - context); + return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, privateLinkHubName, accept, context); } /** * Gets a privateLinkHub. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -455,7 +368,7 @@ private Mono getByResourceGroupAsync(String resourceGroupNa /** * Gets a privateLinkHub. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @param context The context to associate with this operation. @@ -465,14 +378,14 @@ private Mono getByResourceGroupAsync(String resourceGroupNa * @return a privateLinkHub along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse( - String resourceGroupName, String privateLinkHubName, Context context) { + public Response getByResourceGroupWithResponse(String resourceGroupName, + String privateLinkHubName, Context context) { return getByResourceGroupWithResponseAsync(resourceGroupName, privateLinkHubName, context).block(); } /** * Gets a privateLinkHub. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -487,7 +400,7 @@ public PrivateLinkHubInner getByResourceGroup(String resourceGroupName, String p /** * Updates a privateLinkHub. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @param privateLinkHubPatchInfo PrivateLinkHub patch request properties. @@ -497,19 +410,15 @@ public PrivateLinkHubInner getByResourceGroup(String resourceGroupName, String p * @return a privateLinkHub along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateWithResponseAsync( - String resourceGroupName, String privateLinkHubName, PrivateLinkHubPatchInfo privateLinkHubPatchInfo) { + private Mono> updateWithResponseAsync(String resourceGroupName, + String privateLinkHubName, PrivateLinkHubPatchInfo privateLinkHubPatchInfo) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -520,9 +429,8 @@ private Mono> updateWithResponseAsync( .error(new IllegalArgumentException("Parameter privateLinkHubName is required and cannot be null.")); } if (privateLinkHubPatchInfo == null) { - return Mono - .error( - new IllegalArgumentException("Parameter privateLinkHubPatchInfo is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter privateLinkHubPatchInfo is required and cannot be null.")); } else { privateLinkHubPatchInfo.validate(); } @@ -530,23 +438,14 @@ private Mono> updateWithResponseAsync( final String accept = "application/json"; return FluxUtil .withContext( - context -> - service - .update( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - privateLinkHubName, - privateLinkHubPatchInfo, - accept, - context)) + context -> service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, privateLinkHubName, privateLinkHubPatchInfo, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Updates a privateLinkHub. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @param privateLinkHubPatchInfo PrivateLinkHub patch request properties. @@ -557,22 +456,15 @@ private Mono> updateWithResponseAsync( * @return a privateLinkHub along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateWithResponseAsync( - String resourceGroupName, - String privateLinkHubName, - PrivateLinkHubPatchInfo privateLinkHubPatchInfo, - Context context) { + private Mono> updateWithResponseAsync(String resourceGroupName, + String privateLinkHubName, PrivateLinkHubPatchInfo privateLinkHubPatchInfo, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -583,30 +475,21 @@ private Mono> updateWithResponseAsync( .error(new IllegalArgumentException("Parameter privateLinkHubName is required and cannot be null.")); } if (privateLinkHubPatchInfo == null) { - return Mono - .error( - new IllegalArgumentException("Parameter privateLinkHubPatchInfo is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter privateLinkHubPatchInfo is required and cannot be null.")); } else { privateLinkHubPatchInfo.validate(); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .update( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - privateLinkHubName, - privateLinkHubPatchInfo, - accept, - context); + return service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + privateLinkHubName, privateLinkHubPatchInfo, accept, context); } /** * Updates a privateLinkHub. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @param privateLinkHubPatchInfo PrivateLinkHub patch request properties. @@ -616,15 +499,15 @@ private Mono> updateWithResponseAsync( * @return a privateLinkHub on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync( - String resourceGroupName, String privateLinkHubName, PrivateLinkHubPatchInfo privateLinkHubPatchInfo) { + private Mono updateAsync(String resourceGroupName, String privateLinkHubName, + PrivateLinkHubPatchInfo privateLinkHubPatchInfo) { return updateWithResponseAsync(resourceGroupName, privateLinkHubName, privateLinkHubPatchInfo) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Updates a privateLinkHub. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @param privateLinkHubPatchInfo PrivateLinkHub patch request properties. @@ -635,17 +518,14 @@ private Mono updateAsync( * @return a privateLinkHub along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateWithResponse( - String resourceGroupName, - String privateLinkHubName, - PrivateLinkHubPatchInfo privateLinkHubPatchInfo, - Context context) { + public Response updateWithResponse(String resourceGroupName, String privateLinkHubName, + PrivateLinkHubPatchInfo privateLinkHubPatchInfo, Context context) { return updateWithResponseAsync(resourceGroupName, privateLinkHubName, privateLinkHubPatchInfo, context).block(); } /** * Updates a privateLinkHub. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @param privateLinkHubPatchInfo PrivateLinkHub patch request properties. @@ -655,15 +535,15 @@ public Response updateWithResponse( * @return a privateLinkHub. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PrivateLinkHubInner update( - String resourceGroupName, String privateLinkHubName, PrivateLinkHubPatchInfo privateLinkHubPatchInfo) { + public PrivateLinkHubInner update(String resourceGroupName, String privateLinkHubName, + PrivateLinkHubPatchInfo privateLinkHubPatchInfo) { return updateWithResponse(resourceGroupName, privateLinkHubName, privateLinkHubPatchInfo, Context.NONE) .getValue(); } /** * Creates or updates a privateLinkHub. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @param privateLinkHubInfo PrivateLinkHub create or update request properties. @@ -673,19 +553,15 @@ public PrivateLinkHubInner update( * @return a privateLinkHub along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, String privateLinkHubName, PrivateLinkHubInner privateLinkHubInfo) { + private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String privateLinkHubName, PrivateLinkHubInner privateLinkHubInfo) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -704,24 +580,15 @@ private Mono> createOrUpdateWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - privateLinkHubName, - privateLinkHubInfo, - accept, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, privateLinkHubName, privateLinkHubInfo, accept, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates a privateLinkHub. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @param privateLinkHubInfo PrivateLinkHub create or update request properties. @@ -732,19 +599,15 @@ private Mono> createOrUpdateWithResponseAsync( * @return a privateLinkHub along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, String privateLinkHubName, PrivateLinkHubInner privateLinkHubInfo, Context context) { + private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String privateLinkHubName, PrivateLinkHubInner privateLinkHubInfo, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -763,21 +626,13 @@ private Mono> createOrUpdateWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - privateLinkHubName, - privateLinkHubInfo, - accept, - context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, privateLinkHubName, privateLinkHubInfo, accept, context); } /** * Creates or updates a privateLinkHub. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @param privateLinkHubInfo PrivateLinkHub create or update request properties. @@ -787,15 +642,15 @@ private Mono> createOrUpdateWithResponseAsync( * @return a privateLinkHub on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, String privateLinkHubName, PrivateLinkHubInner privateLinkHubInfo) { + private Mono createOrUpdateAsync(String resourceGroupName, String privateLinkHubName, + PrivateLinkHubInner privateLinkHubInfo) { return createOrUpdateWithResponseAsync(resourceGroupName, privateLinkHubName, privateLinkHubInfo) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Creates or updates a privateLinkHub. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @param privateLinkHubInfo PrivateLinkHub create or update request properties. @@ -806,15 +661,15 @@ private Mono createOrUpdateAsync( * @return a privateLinkHub along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String resourceGroupName, String privateLinkHubName, PrivateLinkHubInner privateLinkHubInfo, Context context) { + public Response createOrUpdateWithResponse(String resourceGroupName, String privateLinkHubName, + PrivateLinkHubInner privateLinkHubInfo, Context context) { return createOrUpdateWithResponseAsync(resourceGroupName, privateLinkHubName, privateLinkHubInfo, context) .block(); } /** * Creates or updates a privateLinkHub. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @param privateLinkHubInfo PrivateLinkHub create or update request properties. @@ -824,15 +679,15 @@ public Response createOrUpdateWithResponse( * @return a privateLinkHub. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PrivateLinkHubInner createOrUpdate( - String resourceGroupName, String privateLinkHubName, PrivateLinkHubInner privateLinkHubInfo) { + public PrivateLinkHubInner createOrUpdate(String resourceGroupName, String privateLinkHubName, + PrivateLinkHubInner privateLinkHubInfo) { return createOrUpdateWithResponse(resourceGroupName, privateLinkHubName, privateLinkHubInfo, Context.NONE) .getValue(); } /** * Deletes a privateLinkHub. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -841,19 +696,15 @@ public PrivateLinkHubInner createOrUpdate( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync( - String resourceGroupName, String privateLinkHubName) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, + String privateLinkHubName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -866,23 +717,14 @@ private Mono>> deleteWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .delete( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - privateLinkHubName, - accept, - context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, privateLinkHubName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes a privateLinkHub. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @param context The context to associate with this operation. @@ -892,19 +734,15 @@ private Mono>> deleteWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync( - String resourceGroupName, String privateLinkHubName, Context context) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, + String privateLinkHubName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -917,20 +755,13 @@ private Mono>> deleteWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .delete( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - privateLinkHubName, - accept, - context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + privateLinkHubName, accept, context); } /** * Deletes a privateLinkHub. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -941,15 +772,13 @@ private Mono>> deleteWithResponseAsync( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String privateLinkHubName) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, privateLinkHubName); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Deletes a privateLinkHub. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @param context The context to associate with this operation. @@ -959,18 +788,17 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync( - String resourceGroupName, String privateLinkHubName, Context context) { + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String privateLinkHubName, + Context context) { context = this.client.mergeContext(context); Mono>> mono = deleteWithResponseAsync(resourceGroupName, privateLinkHubName, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * Deletes a privateLinkHub. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -985,7 +813,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a privateLinkHub. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @param context The context to associate with this operation. @@ -995,14 +823,14 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete( - String resourceGroupName, String privateLinkHubName, Context context) { + public SyncPoller, Void> beginDelete(String resourceGroupName, String privateLinkHubName, + Context context) { return this.beginDeleteAsync(resourceGroupName, privateLinkHubName, context).getSyncPoller(); } /** * Deletes a privateLinkHub. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1012,14 +840,13 @@ public SyncPoller, Void> beginDelete( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String privateLinkHubName) { - return beginDeleteAsync(resourceGroupName, privateLinkHubName) - .last() + return beginDeleteAsync(resourceGroupName, privateLinkHubName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Deletes a privateLinkHub. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @param context The context to associate with this operation. @@ -1030,14 +857,13 @@ private Mono deleteAsync(String resourceGroupName, String privateLinkHubNa */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String privateLinkHubName, Context context) { - return beginDeleteAsync(resourceGroupName, privateLinkHubName, context) - .last() + return beginDeleteAsync(resourceGroupName, privateLinkHubName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Deletes a privateLinkHub. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1051,7 +877,7 @@ public void delete(String resourceGroupName, String privateLinkHubName) { /** * Deletes a privateLinkHub. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @param context The context to associate with this operation. @@ -1066,7 +892,7 @@ public void delete(String resourceGroupName, String privateLinkHubName, Context /** * Returns a list of privateLinkHubs 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 list of privateLinkHubs along with {@link PagedResponse} on successful completion of {@link Mono}. @@ -1074,39 +900,26 @@ public void delete(String resourceGroupName, String privateLinkHubName, Context @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync() { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Returns a list of privateLinkHubs 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. @@ -1116,36 +929,24 @@ private Mono> listSinglePageAsync() { @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * Returns a list of privateLinkHubs 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 list of privateLinkHubs as paginated response with {@link PagedFlux}. @@ -1157,7 +958,7 @@ private PagedFlux listAsync() { /** * Returns a list of privateLinkHubs 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. @@ -1166,13 +967,13 @@ private PagedFlux listAsync() { */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(Context context) { - return new PagedFlux<>( - () -> listSinglePageAsync(context), nextLink -> listNextSinglePageAsync(nextLink, context)); + return new PagedFlux<>(() -> listSinglePageAsync(context), + nextLink -> listNextSinglePageAsync(nextLink, context)); } /** * Returns a list of privateLinkHubs 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 list of privateLinkHubs as paginated response with {@link PagedIterable}. @@ -1184,7 +985,7 @@ public PagedIterable list() { /** * Returns a list of privateLinkHubs 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. @@ -1198,9 +999,10 @@ 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. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1212,32 +1014,24 @@ private Mono> listByResourceGroupNextSinglePa return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil .withContext( context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1245,37 +1039,28 @@ private Mono> listByResourceGroupNextSinglePa * @return list of privateLinkHubs along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupNextSinglePageAsync( - String nextLink, Context context) { + private Mono> listByResourceGroupNextSinglePageAsync(String nextLink, + Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1287,31 +1072,22 @@ private Mono> listNextSinglePageAsync(String return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1324,23 +1100,13 @@ private Mono> listNextSinglePageAsync(String return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubsImpl.java index 226708530979..5daf31e7904e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkHubsImpl.java @@ -21,31 +21,28 @@ public final class PrivateLinkHubsImpl implements PrivateLinkHubs { private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public PrivateLinkHubsImpl( - PrivateLinkHubsClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + public PrivateLinkHubsImpl(PrivateLinkHubsClient innerClient, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } public PagedIterable listByResourceGroup(String resourceGroupName) { PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName); - return Utils.mapPage(inner, inner1 -> new PrivateLinkHubImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new PrivateLinkHubImpl(inner1, this.manager())); } public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName, context); - return Utils.mapPage(inner, inner1 -> new PrivateLinkHubImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new PrivateLinkHubImpl(inner1, this.manager())); } - public Response getByResourceGroupWithResponse( - String resourceGroupName, String privateLinkHubName, Context context) { - Response inner = - this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, privateLinkHubName, context); + public Response getByResourceGroupWithResponse(String resourceGroupName, String privateLinkHubName, + Context context) { + Response inner + = this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, privateLinkHubName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new PrivateLinkHubImpl(inner.getValue(), this.manager())); } else { return null; @@ -71,90 +68,66 @@ public void delete(String resourceGroupName, String privateLinkHubName, Context public PagedIterable list() { PagedIterable inner = this.serviceClient().list(); - return Utils.mapPage(inner, inner1 -> new PrivateLinkHubImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new PrivateLinkHubImpl(inner1, this.manager())); } public PagedIterable list(Context context) { PagedIterable inner = this.serviceClient().list(context); - return Utils.mapPage(inner, inner1 -> new PrivateLinkHubImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new PrivateLinkHubImpl(inner1, this.manager())); } public PrivateLinkHub getById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String privateLinkHubName = Utils.getValueFromIdByName(id, "privateLinkHubs"); + String privateLinkHubName = ResourceManagerUtils.getValueFromIdByName(id, "privateLinkHubs"); if (privateLinkHubName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'privateLinkHubs'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'privateLinkHubs'.", id))); } return this.getByResourceGroupWithResponse(resourceGroupName, privateLinkHubName, Context.NONE).getValue(); } public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String privateLinkHubName = Utils.getValueFromIdByName(id, "privateLinkHubs"); + String privateLinkHubName = ResourceManagerUtils.getValueFromIdByName(id, "privateLinkHubs"); if (privateLinkHubName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'privateLinkHubs'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'privateLinkHubs'.", id))); } return this.getByResourceGroupWithResponse(resourceGroupName, privateLinkHubName, context); } public void deleteById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String privateLinkHubName = Utils.getValueFromIdByName(id, "privateLinkHubs"); + String privateLinkHubName = ResourceManagerUtils.getValueFromIdByName(id, "privateLinkHubs"); if (privateLinkHubName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'privateLinkHubs'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'privateLinkHubs'.", id))); } this.delete(resourceGroupName, privateLinkHubName, Context.NONE); } public void deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String privateLinkHubName = Utils.getValueFromIdByName(id, "privateLinkHubs"); + String privateLinkHubName = ResourceManagerUtils.getValueFromIdByName(id, "privateLinkHubs"); if (privateLinkHubName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'privateLinkHubs'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'privateLinkHubs'.", id))); } this.delete(resourceGroupName, privateLinkHubName, context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkResourceImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkResourceImpl.java index a574ee684051..923236b157f2 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkResourceImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkResourceImpl.java @@ -13,8 +13,8 @@ public final class PrivateLinkResourceImpl implements PrivateLinkResource { private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - PrivateLinkResourceImpl( - PrivateLinkResourceInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + PrivateLinkResourceImpl(PrivateLinkResourceInner innerObject, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkResourcesOperationsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkResourcesOperationsClientImpl.java index 644b0cb983a0..b7f47f206775 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkResourcesOperationsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkResourcesOperationsClientImpl.java @@ -30,26 +30,28 @@ import com.azure.resourcemanager.synapse.models.PrivateLinkResourceListResult; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in PrivateLinkResourcesOperationsClient. */ +/** + * An instance of this class provides access to all the operations defined in PrivateLinkResourcesOperationsClient. + */ public final class PrivateLinkResourcesOperationsClientImpl implements PrivateLinkResourcesOperationsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final PrivateLinkResourcesOperationsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of PrivateLinkResourcesOperationsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ PrivateLinkResourcesOperationsClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy - .create( - PrivateLinkResourcesOperationsService.class, - client.getHttpPipeline(), - client.getSerializerAdapter()); + this.service = RestProxy.create(PrivateLinkResourcesOperationsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } @@ -60,75 +62,57 @@ public final class PrivateLinkResourcesOperationsClientImpl implements PrivateLi @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface PrivateLinkResourcesOperationsService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/privateLinkResources") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/privateLinkResources") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @HeaderParam("Accept") String accept, - Context context); + Mono> list(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/privateLinkResources/{privateLinkResourceName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/privateLinkResources/{privateLinkResourceName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("privateLinkResourceName") String privateLinkResourceName, - @HeaderParam("Accept") String accept, + Mono> get(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("privateLinkResourceName") String privateLinkResourceName, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** * Private Link Resources - * - *

Get all private link resources for a workspaces. - * + * + * Get all private link resources for a workspaces. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return all private link resources for a workspaces along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String workspaceName) { + private Mono> listSinglePageAsync(String resourceGroupName, + String workspaceName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -140,34 +124,18 @@ private Mono> listSinglePageAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Private Link Resources - * - *

Get all private link resources for a workspaces. - * + * + * Get all private link resources for a workspaces. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -175,22 +143,18 @@ private Mono> listSinglePageAsync( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return all private link resources for a workspaces along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String workspaceName, Context context) { + private Mono> listSinglePageAsync(String resourceGroupName, + String workspaceName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -203,30 +167,17 @@ private Mono> listSinglePageAsync( final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * Private Link Resources - * - *

Get all private link resources for a workspaces. - * + * + * Get all private link resources for a workspaces. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -236,15 +187,15 @@ private Mono> listSinglePageAsync( */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String workspaceName) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, workspaceName), nextLink -> listNextSinglePageAsync(nextLink)); + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName), + nextLink -> listNextSinglePageAsync(nextLink)); } /** * Private Link Resources - * - *

Get all private link resources for a workspaces. - * + * + * Get all private link resources for a workspaces. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -254,18 +205,17 @@ private PagedFlux listAsync(String resourceGroupName, * @return all private link resources for a workspaces as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( - String resourceGroupName, String workspaceName, Context context) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, workspaceName, context), + private PagedFlux listAsync(String resourceGroupName, String workspaceName, + Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } /** * Private Link Resources - * - *

Get all private link resources for a workspaces. - * + * + * Get all private link resources for a workspaces. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -280,9 +230,9 @@ public PagedIterable list(String resourceGroupName, St /** * Private Link Resources - * - *

Get all private link resources for a workspaces. - * + * + * Get all private link resources for a workspaces. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -292,16 +242,16 @@ public PagedIterable list(String resourceGroupName, St * @return all private link resources for a workspaces as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list( - String resourceGroupName, String workspaceName, Context context) { + public PagedIterable list(String resourceGroupName, String workspaceName, + Context context) { return new PagedIterable<>(listAsync(resourceGroupName, workspaceName, context)); } /** * Get Private Link Resource - * - *

Get private link resource in workspace. - * + * + * Get private link resource in workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateLinkResourceName The name of the private link resource. @@ -311,19 +261,15 @@ public PagedIterable list( * @return private link resource in workspace along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, String privateLinkResourceName) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, String privateLinkResourceName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -333,33 +279,22 @@ private Mono> getWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (privateLinkResourceName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter privateLinkResourceName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter privateLinkResourceName is required and cannot be null.")); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - privateLinkResourceName, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, privateLinkResourceName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get Private Link Resource - * - *

Get private link resource in workspace. - * + * + * Get private link resource in workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateLinkResourceName The name of the private link resource. @@ -370,19 +305,15 @@ private Mono> getWithResponseAsync( * @return private link resource in workspace along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, String privateLinkResourceName, Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, String privateLinkResourceName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -392,30 +323,21 @@ private Mono> getWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (privateLinkResourceName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter privateLinkResourceName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter privateLinkResourceName is required and cannot be null.")); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - privateLinkResourceName, - accept, - context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, privateLinkResourceName, accept, context); } /** * Get Private Link Resource - * - *

Get private link resource in workspace. - * + * + * Get private link resource in workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateLinkResourceName The name of the private link resource. @@ -425,17 +347,17 @@ private Mono> getWithResponseAsync( * @return private link resource in workspace on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String workspaceName, String privateLinkResourceName) { + private Mono getAsync(String resourceGroupName, String workspaceName, + String privateLinkResourceName) { return getWithResponseAsync(resourceGroupName, workspaceName, privateLinkResourceName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Get Private Link Resource - * - *

Get private link resource in workspace. - * + * + * Get private link resource in workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateLinkResourceName The name of the private link resource. @@ -446,16 +368,16 @@ private Mono getAsync( * @return private link resource in workspace along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String workspaceName, String privateLinkResourceName, Context context) { + public Response getWithResponse(String resourceGroupName, String workspaceName, + String privateLinkResourceName, Context context) { return getWithResponseAsync(resourceGroupName, workspaceName, privateLinkResourceName, context).block(); } /** * Get Private Link Resource - * - *

Get private link resource in workspace. - * + * + * Get private link resource in workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateLinkResourceName The name of the private link resource. @@ -465,21 +387,22 @@ public Response getWithResponse( * @return private link resource in workspace. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PrivateLinkResourceInner get( - String resourceGroupName, String workspaceName, String privateLinkResourceName) { + public PrivateLinkResourceInner get(String resourceGroupName, String workspaceName, + String privateLinkResourceName) { return getWithResponse(resourceGroupName, workspaceName, privateLinkResourceName, Context.NONE).getValue(); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of private link resources along with {@link PagedResponse} on successful completion of {@link - * Mono}. + * @return a list of private link resources along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -487,37 +410,28 @@ private Mono> listNextSinglePageAsync(St return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of private link resources along with {@link PagedResponse} on successful completion of {@link - * Mono}. + * @return a list of private link resources along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { @@ -525,23 +439,13 @@ private Mono> listNextSinglePageAsync(St return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkResourcesOperationsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkResourcesOperationsImpl.java index 7cbcb2b00d78..8446db6f59f4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkResourcesOperationsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/PrivateLinkResourcesOperationsImpl.java @@ -21,8 +21,7 @@ public final class PrivateLinkResourcesOperationsImpl implements PrivateLinkReso private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public PrivateLinkResourcesOperationsImpl( - PrivateLinkResourcesOperationsClient innerClient, + public PrivateLinkResourcesOperationsImpl(PrivateLinkResourcesOperationsClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; @@ -30,24 +29,21 @@ public PrivateLinkResourcesOperationsImpl( public PagedIterable list(String resourceGroupName, String workspaceName) { PagedIterable inner = this.serviceClient().list(resourceGroupName, workspaceName); - return Utils.mapPage(inner, inner1 -> new PrivateLinkResourceImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new PrivateLinkResourceImpl(inner1, this.manager())); } public PagedIterable list(String resourceGroupName, String workspaceName, Context context) { - PagedIterable inner = - this.serviceClient().list(resourceGroupName, workspaceName, context); - return Utils.mapPage(inner, inner1 -> new PrivateLinkResourceImpl(inner1, this.manager())); + PagedIterable inner + = this.serviceClient().list(resourceGroupName, workspaceName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new PrivateLinkResourceImpl(inner1, this.manager())); } - public Response getWithResponse( - String resourceGroupName, String workspaceName, String privateLinkResourceName, Context context) { - Response inner = - this.serviceClient().getWithResponse(resourceGroupName, workspaceName, privateLinkResourceName, context); + public Response getWithResponse(String resourceGroupName, String workspaceName, + String privateLinkResourceName, Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, workspaceName, privateLinkResourceName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new PrivateLinkResourceImpl(inner.getValue(), this.manager())); } else { return null; @@ -55,8 +51,8 @@ public Response getWithResponse( } public PrivateLinkResource get(String resourceGroupName, String workspaceName, String privateLinkResourceName) { - PrivateLinkResourceInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, privateLinkResourceName); + PrivateLinkResourceInner inner + = this.serviceClient().get(resourceGroupName, workspaceName, privateLinkResourceName); if (inner != null) { return new PrivateLinkResourceImpl(inner, this.manager()); } else { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/RecoverableSqlPoolImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/RecoverableSqlPoolImpl.java index abbc748fa804..8a4ad60a7a5a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/RecoverableSqlPoolImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/RecoverableSqlPoolImpl.java @@ -13,8 +13,8 @@ public final class RecoverableSqlPoolImpl implements RecoverableSqlPool { private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - RecoverableSqlPoolImpl( - RecoverableSqlPoolInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + RecoverableSqlPoolImpl(RecoverableSqlPoolInner innerObject, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ReplaceAllFirewallRulesOperationResponseImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ReplaceAllFirewallRulesOperationResponseImpl.java index d72ae926d62c..dfe2b220effc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ReplaceAllFirewallRulesOperationResponseImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ReplaceAllFirewallRulesOperationResponseImpl.java @@ -12,8 +12,7 @@ public final class ReplaceAllFirewallRulesOperationResponseImpl implements Repla private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - ReplaceAllFirewallRulesOperationResponseImpl( - ReplaceAllFirewallRulesOperationResponseInner innerObject, + ReplaceAllFirewallRulesOperationResponseImpl(ReplaceAllFirewallRulesOperationResponseInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ReplicationLinkImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ReplicationLinkImpl.java index ebc13a53b3e5..dab96b15cc7a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ReplicationLinkImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ReplicationLinkImpl.java @@ -15,8 +15,8 @@ public final class ReplicationLinkImpl implements ReplicationLink { private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - ReplicationLinkImpl( - ReplicationLinkInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + ReplicationLinkImpl(ReplicationLinkInner innerObject, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/Utils.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ResourceManagerUtils.java similarity index 79% rename from sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/Utils.java rename to sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ResourceManagerUtils.java index 48fa963c8217..4dcf6b738b3a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/Utils.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ResourceManagerUtils.java @@ -19,7 +19,10 @@ import java.util.stream.Stream; import reactor.core.publisher.Flux; -final class Utils { +final class ResourceManagerUtils { + private ResourceManagerUtils() { + } + static String getValueFromIdByName(String id, String name) { if (id == null) { return null; @@ -38,6 +41,7 @@ static String getValueFromIdByName(String id, String name) { } } return null; + } static String getValueFromIdByParameterName(String id, String pathTemplate, String parameterName) { @@ -60,7 +64,7 @@ static String getValueFromIdByParameterName(String id, String pathTemplate, Stri segments.add(idSegment); idItrReverted.forEachRemaining(segments::add); Collections.reverse(segments); - if (segments.size() > 0 && segments.get(0).isEmpty()) { + if (!segments.isEmpty() && segments.get(0).isEmpty()) { segments.remove(0); } return String.join("/", segments); @@ -71,10 +75,11 @@ static String getValueFromIdByParameterName(String id, String pathTemplate, Stri } } return null; + } static PagedIterable mapPage(PagedIterable pageIterable, Function mapper) { - return new PagedIterableImpl(pageIterable, mapper); + return new PagedIterableImpl<>(pageIterable, mapper); } private static final class PagedIterableImpl extends PagedIterable { @@ -84,26 +89,17 @@ private static final class PagedIterableImpl extends PagedIterable { private final Function, PagedResponse> pageMapper; private PagedIterableImpl(PagedIterable pagedIterable, Function mapper) { - super( - PagedFlux - .create( - () -> - (continuationToken, pageSize) -> - Flux.fromStream(pagedIterable.streamByPage().map(getPageMapper(mapper))))); + super(PagedFlux.create(() -> (continuationToken, pageSize) -> Flux + .fromStream(pagedIterable.streamByPage().map(getPageMapper(mapper))))); this.pagedIterable = pagedIterable; this.mapper = mapper; this.pageMapper = getPageMapper(mapper); } private static Function, PagedResponse> getPageMapper(Function mapper) { - return page -> - new PagedResponseBase( - page.getRequest(), - page.getStatusCode(), - page.getHeaders(), - page.getElements().stream().map(mapper).collect(Collectors.toList()), - page.getContinuationToken(), - null); + return page -> new PagedResponseBase(page.getRequest(), page.getStatusCode(), page.getHeaders(), + page.getElements().stream().map(mapper).collect(Collectors.toList()), page.getContinuationToken(), + null); } @Override @@ -133,30 +129,27 @@ public Stream> streamByPage(String continuationToken, int prefe @Override public Iterator iterator() { - return new IteratorImpl(pagedIterable.iterator(), mapper); + return new IteratorImpl<>(pagedIterable.iterator(), mapper); } @Override public Iterable> iterableByPage() { - return new IterableImpl, PagedResponse>(pagedIterable.iterableByPage(), pageMapper); + return new IterableImpl<>(pagedIterable.iterableByPage(), pageMapper); } @Override public Iterable> iterableByPage(String continuationToken) { - return new IterableImpl, PagedResponse>( - pagedIterable.iterableByPage(continuationToken), pageMapper); + return new IterableImpl<>(pagedIterable.iterableByPage(continuationToken), pageMapper); } @Override public Iterable> iterableByPage(int preferredPageSize) { - return new IterableImpl, PagedResponse>( - pagedIterable.iterableByPage(preferredPageSize), pageMapper); + return new IterableImpl<>(pagedIterable.iterableByPage(preferredPageSize), pageMapper); } @Override public Iterable> iterableByPage(String continuationToken, int preferredPageSize) { - return new IterableImpl, PagedResponse>( - pagedIterable.iterableByPage(continuationToken, preferredPageSize), pageMapper); + return new IterableImpl<>(pagedIterable.iterableByPage(continuationToken, preferredPageSize), pageMapper); } } @@ -198,7 +191,7 @@ private IterableImpl(Iterable iterable, Function mapper) { @Override public Iterator iterator() { - return new IteratorImpl(iterable.iterator(), mapper); + return new IteratorImpl<>(iterable.iterator(), mapper); } } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/RestorableDroppedSqlPoolImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/RestorableDroppedSqlPoolImpl.java index 49f2a7fc0926..bd9db659a8b1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/RestorableDroppedSqlPoolImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/RestorableDroppedSqlPoolImpl.java @@ -13,8 +13,8 @@ public final class RestorableDroppedSqlPoolImpl implements RestorableDroppedSqlP private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - RestorableDroppedSqlPoolImpl( - RestorableDroppedSqlPoolInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + RestorableDroppedSqlPoolImpl(RestorableDroppedSqlPoolInner innerObject, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/RestorableDroppedSqlPoolsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/RestorableDroppedSqlPoolsClientImpl.java index ab002d34b5fa..e380d46e89c9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/RestorableDroppedSqlPoolsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/RestorableDroppedSqlPoolsClientImpl.java @@ -30,24 +30,28 @@ import com.azure.resourcemanager.synapse.models.RestorableDroppedSqlPoolListResult; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in RestorableDroppedSqlPoolsClient. */ +/** + * An instance of this class provides access to all the operations defined in RestorableDroppedSqlPoolsClient. + */ public final class RestorableDroppedSqlPoolsClientImpl implements RestorableDroppedSqlPoolsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final RestorableDroppedSqlPoolsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of RestorableDroppedSqlPoolsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ RestorableDroppedSqlPoolsClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy - .create( - RestorableDroppedSqlPoolsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service = RestProxy.create(RestorableDroppedSqlPoolsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } @@ -58,65 +62,49 @@ public final class RestorableDroppedSqlPoolsClientImpl implements RestorableDrop @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface RestorableDroppedSqlPoolsService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/restorableDroppedSqlPools/{restorableDroppedSqlPoolId}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/restorableDroppedSqlPools/{restorableDroppedSqlPoolId}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono> get(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("restorableDroppedSqlPoolId") String restorableDroppedSqlPoolId, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/restorableDroppedSqlPools") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/restorableDroppedSqlPools") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByWorkspace( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @HeaderParam("Accept") String accept, - Context context); + Mono> listByWorkspace(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @HeaderParam("Accept") String accept, Context context); } /** * Gets a deleted sql pool that can be restored. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param restorableDroppedSqlPoolId The id of the deleted Sql Pool in the form of - * sqlPoolName,deletionTimeInFileTimeFormat. + * sqlPoolName,deletionTimeInFileTimeFormat. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a deleted sql pool that can be restored along with {@link Response} on successful completion of {@link - * Mono}. + * @return a deleted sql pool that can be restored along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, String restorableDroppedSqlPoolId) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, String restorableDroppedSqlPoolId) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -126,57 +114,41 @@ private Mono> getWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (restorableDroppedSqlPoolId == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter restorableDroppedSqlPoolId is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter restorableDroppedSqlPoolId is required and cannot be null.")); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - restorableDroppedSqlPoolId, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, restorableDroppedSqlPoolId, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets a deleted sql pool that can be restored. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param restorableDroppedSqlPoolId The id of the deleted Sql Pool in the form of - * sqlPoolName,deletionTimeInFileTimeFormat. + * sqlPoolName,deletionTimeInFileTimeFormat. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a deleted sql pool that can be restored along with {@link Response} on successful completion of {@link - * Mono}. + * @return a deleted sql pool that can be restored along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, String restorableDroppedSqlPoolId, Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, String restorableDroppedSqlPoolId, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -186,52 +158,42 @@ private Mono> getWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (restorableDroppedSqlPoolId == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter restorableDroppedSqlPoolId is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter restorableDroppedSqlPoolId is required and cannot be null.")); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - restorableDroppedSqlPoolId, - accept, - context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, restorableDroppedSqlPoolId, accept, context); } /** * Gets a deleted sql pool that can be restored. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param restorableDroppedSqlPoolId The id of the deleted Sql Pool in the form of - * sqlPoolName,deletionTimeInFileTimeFormat. + * sqlPoolName,deletionTimeInFileTimeFormat. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a deleted sql pool that can be restored on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String workspaceName, String restorableDroppedSqlPoolId) { + private Mono getAsync(String resourceGroupName, String workspaceName, + String restorableDroppedSqlPoolId) { return getWithResponseAsync(resourceGroupName, workspaceName, restorableDroppedSqlPoolId) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Gets a deleted sql pool that can be restored. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param restorableDroppedSqlPoolId The id of the deleted Sql Pool in the form of - * sqlPoolName,deletionTimeInFileTimeFormat. + * sqlPoolName,deletionTimeInFileTimeFormat. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -239,54 +201,50 @@ private Mono getAsync( * @return a deleted sql pool that can be restored along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String workspaceName, String restorableDroppedSqlPoolId, Context context) { + public Response getWithResponse(String resourceGroupName, String workspaceName, + String restorableDroppedSqlPoolId, Context context) { return getWithResponseAsync(resourceGroupName, workspaceName, restorableDroppedSqlPoolId, context).block(); } /** * Gets a deleted sql pool that can be restored. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param restorableDroppedSqlPoolId The id of the deleted Sql Pool in the form of - * sqlPoolName,deletionTimeInFileTimeFormat. + * sqlPoolName,deletionTimeInFileTimeFormat. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a deleted sql pool that can be restored. */ @ServiceMethod(returns = ReturnType.SINGLE) - public RestorableDroppedSqlPoolInner get( - String resourceGroupName, String workspaceName, String restorableDroppedSqlPoolId) { + public RestorableDroppedSqlPoolInner get(String resourceGroupName, String workspaceName, + String restorableDroppedSqlPoolId) { return getWithResponse(resourceGroupName, workspaceName, restorableDroppedSqlPoolId, Context.NONE).getValue(); } /** * Gets a list of deleted Sql pools that can be restored. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of deleted Sql pools that can be restored along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByWorkspaceSinglePageAsync( - String resourceGroupName, String workspaceName) { + private Mono> listByWorkspaceSinglePageAsync(String resourceGroupName, + String workspaceName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -298,27 +256,16 @@ private Mono> listByWorkspaceSingle final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .listByWorkspace( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)) + .withContext(context -> service.listByWorkspace(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets a list of deleted Sql pools that can be restored. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -326,22 +273,18 @@ private Mono> listByWorkspaceSingle * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of deleted Sql pools that can be restored along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByWorkspaceSinglePageAsync( - String resourceGroupName, String workspaceName, Context context) { + private Mono> listByWorkspaceSinglePageAsync(String resourceGroupName, + String workspaceName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -354,23 +297,15 @@ private Mono> listByWorkspaceSingle final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByWorkspace( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)); + .listByWorkspace(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), null, null)); } /** * Gets a list of deleted Sql pools that can be restored. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -379,14 +314,14 @@ private Mono> listByWorkspaceSingle * @return a list of deleted Sql pools that can be restored as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByWorkspaceAsync( - String resourceGroupName, String workspaceName) { + private PagedFlux listByWorkspaceAsync(String resourceGroupName, + String workspaceName) { return new PagedFlux<>(() -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName)); } /** * Gets a list of deleted Sql pools that can be restored. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -396,14 +331,14 @@ private PagedFlux listByWorkspaceAsync( * @return a list of deleted Sql pools that can be restored as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByWorkspaceAsync( - String resourceGroupName, String workspaceName, Context context) { + private PagedFlux listByWorkspaceAsync(String resourceGroupName, + String workspaceName, Context context) { return new PagedFlux<>(() -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName, context)); } /** * Gets a list of deleted Sql pools that can be restored. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -412,14 +347,14 @@ private PagedFlux listByWorkspaceAsync( * @return a list of deleted Sql pools that can be restored as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByWorkspace( - String resourceGroupName, String workspaceName) { + public PagedIterable listByWorkspace(String resourceGroupName, + String workspaceName) { return new PagedIterable<>(listByWorkspaceAsync(resourceGroupName, workspaceName)); } /** * Gets a list of deleted Sql pools that can be restored. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -429,8 +364,8 @@ public PagedIterable listByWorkspace( * @return a list of deleted Sql pools that can be restored as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByWorkspace( - String resourceGroupName, String workspaceName, Context context) { + public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, + Context context) { return new PagedIterable<>(listByWorkspaceAsync(resourceGroupName, workspaceName, context)); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/RestorableDroppedSqlPoolsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/RestorableDroppedSqlPoolsImpl.java index d7500d957292..fe3ef6c5ed06 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/RestorableDroppedSqlPoolsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/RestorableDroppedSqlPoolsImpl.java @@ -21,31 +21,28 @@ public final class RestorableDroppedSqlPoolsImpl implements RestorableDroppedSql private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public RestorableDroppedSqlPoolsImpl( - RestorableDroppedSqlPoolsClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + public RestorableDroppedSqlPoolsImpl(RestorableDroppedSqlPoolsClient innerClient, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public Response getWithResponse( - String resourceGroupName, String workspaceName, String restorableDroppedSqlPoolId, Context context) { - Response inner = - this.serviceClient().getWithResponse(resourceGroupName, workspaceName, restorableDroppedSqlPoolId, context); + public Response getWithResponse(String resourceGroupName, String workspaceName, + String restorableDroppedSqlPoolId, Context context) { + Response inner = this.serviceClient().getWithResponse(resourceGroupName, + workspaceName, restorableDroppedSqlPoolId, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new RestorableDroppedSqlPoolImpl(inner.getValue(), this.manager())); } else { return null; } } - public RestorableDroppedSqlPool get( - String resourceGroupName, String workspaceName, String restorableDroppedSqlPoolId) { - RestorableDroppedSqlPoolInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, restorableDroppedSqlPoolId); + public RestorableDroppedSqlPool get(String resourceGroupName, String workspaceName, + String restorableDroppedSqlPoolId) { + RestorableDroppedSqlPoolInner inner + = this.serviceClient().get(resourceGroupName, workspaceName, restorableDroppedSqlPoolId); if (inner != null) { return new RestorableDroppedSqlPoolImpl(inner, this.manager()); } else { @@ -54,16 +51,16 @@ public RestorableDroppedSqlPool get( } public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName) { - PagedIterable inner = - this.serviceClient().listByWorkspace(resourceGroupName, workspaceName); - return Utils.mapPage(inner, inner1 -> new RestorableDroppedSqlPoolImpl(inner1, this.manager())); + PagedIterable inner + = this.serviceClient().listByWorkspace(resourceGroupName, workspaceName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new RestorableDroppedSqlPoolImpl(inner1, this.manager())); } - public PagedIterable listByWorkspace( - String resourceGroupName, String workspaceName, Context context) { - PagedIterable inner = - this.serviceClient().listByWorkspace(resourceGroupName, workspaceName, context); - return Utils.mapPage(inner, inner1 -> new RestorableDroppedSqlPoolImpl(inner1, this.manager())); + public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, + Context context) { + PagedIterable inner + = this.serviceClient().listByWorkspace(resourceGroupName, workspaceName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new RestorableDroppedSqlPoolImpl(inner1, this.manager())); } private RestorableDroppedSqlPoolsClient serviceClient() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SelfHostedIntegrationRuntimeNodeImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SelfHostedIntegrationRuntimeNodeImpl.java index 95c60e52c85e..f2309dfef1d1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SelfHostedIntegrationRuntimeNodeImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SelfHostedIntegrationRuntimeNodeImpl.java @@ -17,8 +17,7 @@ public final class SelfHostedIntegrationRuntimeNodeImpl implements SelfHostedInt private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - SelfHostedIntegrationRuntimeNodeImpl( - SelfHostedIntegrationRuntimeNodeInner innerObject, + SelfHostedIntegrationRuntimeNodeImpl(SelfHostedIntegrationRuntimeNodeInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SensitivityLabelImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SensitivityLabelImpl.java index 56db490ba91e..2fb1d72d8fb4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SensitivityLabelImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SensitivityLabelImpl.java @@ -92,13 +92,8 @@ private com.azure.resourcemanager.synapse.SynapseManager manager() { private String columnName; - public SensitivityLabelImpl withExistingColumn( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName) { + public SensitivityLabelImpl withExistingColumn(String resourceGroupName, String workspaceName, String sqlPoolName, + String schemaName, String tableName, String columnName) { this.resourceGroupName = resourceGroupName; this.workspaceName = workspaceName; this.sqlPoolName = sqlPoolName; @@ -109,37 +104,19 @@ public SensitivityLabelImpl withExistingColumn( } public SensitivityLabel create() { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolSensitivityLabels() - .createOrUpdateWithResponse( - resourceGroupName, - workspaceName, - sqlPoolName, - schemaName, - tableName, - columnName, - this.innerModel(), - Context.NONE) + this.innerObject + = serviceManager + .serviceClient().getSqlPoolSensitivityLabels().createOrUpdateWithResponse(resourceGroupName, + workspaceName, sqlPoolName, schemaName, tableName, columnName, this.innerModel(), Context.NONE) .getValue(); return this; } public SensitivityLabel create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolSensitivityLabels() - .createOrUpdateWithResponse( - resourceGroupName, - workspaceName, - sqlPoolName, - schemaName, - tableName, - columnName, - this.innerModel(), - context) + this.innerObject + = serviceManager + .serviceClient().getSqlPoolSensitivityLabels().createOrUpdateWithResponse(resourceGroupName, + workspaceName, sqlPoolName, schemaName, tableName, columnName, this.innerModel(), context) .getValue(); return this; } @@ -154,77 +131,53 @@ public SensitivityLabelImpl update() { } public SensitivityLabel apply() { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolSensitivityLabels() - .createOrUpdateWithResponse( - resourceGroupName, - workspaceName, - sqlPoolName, - schemaName, - tableName, - columnName, - this.innerModel(), - Context.NONE) + this.innerObject + = serviceManager + .serviceClient().getSqlPoolSensitivityLabels().createOrUpdateWithResponse(resourceGroupName, + workspaceName, sqlPoolName, schemaName, tableName, columnName, this.innerModel(), Context.NONE) .getValue(); return this; } public SensitivityLabel apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolSensitivityLabels() - .createOrUpdateWithResponse( - resourceGroupName, - workspaceName, - sqlPoolName, - schemaName, - tableName, - columnName, - this.innerModel(), - context) + this.innerObject + = serviceManager + .serviceClient().getSqlPoolSensitivityLabels().createOrUpdateWithResponse(resourceGroupName, + workspaceName, sqlPoolName, schemaName, tableName, columnName, this.innerModel(), context) .getValue(); return this; } - SensitivityLabelImpl( - SensitivityLabelInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + SensitivityLabelImpl(SensitivityLabelInner innerObject, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.workspaceName = Utils.getValueFromIdByName(innerObject.id(), "workspaces"); - this.sqlPoolName = Utils.getValueFromIdByName(innerObject.id(), "sqlPools"); - this.schemaName = Utils.getValueFromIdByName(innerObject.id(), "schemas"); - this.tableName = Utils.getValueFromIdByName(innerObject.id(), "tables"); - this.columnName = Utils.getValueFromIdByName(innerObject.id(), "columns"); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.workspaceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workspaces"); + this.sqlPoolName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "sqlPools"); + this.schemaName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "schemas"); + this.tableName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "tables"); + this.columnName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "columns"); } public Response enableRecommendationWithResponse(Context context) { - return serviceManager - .sqlPoolSensitivityLabels() - .enableRecommendationWithResponse( - resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, context); + return serviceManager.sqlPoolSensitivityLabels().enableRecommendationWithResponse(resourceGroupName, + workspaceName, sqlPoolName, schemaName, tableName, columnName, context); } public void enableRecommendation() { - serviceManager - .sqlPoolSensitivityLabels() - .enableRecommendation(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName); + serviceManager.sqlPoolSensitivityLabels().enableRecommendation(resourceGroupName, workspaceName, sqlPoolName, + schemaName, tableName, columnName); } public Response disableRecommendationWithResponse(Context context) { - return serviceManager - .sqlPoolSensitivityLabels() - .disableRecommendationWithResponse( - resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, context); + return serviceManager.sqlPoolSensitivityLabels().disableRecommendationWithResponse(resourceGroupName, + workspaceName, sqlPoolName, schemaName, tableName, columnName, context); } public void disableRecommendation() { - serviceManager - .sqlPoolSensitivityLabels() - .disableRecommendation(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName); + serviceManager.sqlPoolSensitivityLabels().disableRecommendation(resourceGroupName, workspaceName, sqlPoolName, + schemaName, tableName, columnName); } public SensitivityLabelImpl withLabelName(String labelName) { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SensitivityLabelUpdateImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SensitivityLabelUpdateImpl.java index 031894ad76c6..30760a334926 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SensitivityLabelUpdateImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SensitivityLabelUpdateImpl.java @@ -15,8 +15,8 @@ public final class SensitivityLabelUpdateImpl implements SensitivityLabelUpdate private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - SensitivityLabelUpdateImpl( - SensitivityLabelUpdateInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + SensitivityLabelUpdateImpl(SensitivityLabelUpdateInner innerObject, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SensitivityLabelUpdatePropertiesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SensitivityLabelUpdatePropertiesImpl.java index 924ea1e0d486..b641620b1e4f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SensitivityLabelUpdatePropertiesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SensitivityLabelUpdatePropertiesImpl.java @@ -15,8 +15,7 @@ public final class SensitivityLabelUpdatePropertiesImpl implements SensitivityLa private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - SensitivityLabelUpdatePropertiesImpl( - SensitivityLabelUpdatePropertiesInner innerObject, + SensitivityLabelUpdatePropertiesImpl(SensitivityLabelUpdatePropertiesInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ServerBlobAuditingPolicyImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ServerBlobAuditingPolicyImpl.java index 4eee640ac304..f2c67801fc58 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ServerBlobAuditingPolicyImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ServerBlobAuditingPolicyImpl.java @@ -101,26 +101,19 @@ public ServerBlobAuditingPolicyImpl withExistingWorkspace(String resourceGroupNa } public ServerBlobAuditingPolicy create() { - this.innerObject = - serviceManager - .serviceClient() - .getWorkspaceManagedSqlServerBlobAuditingPolicies() - .createOrUpdate( - resourceGroupName, workspaceName, blobAuditingPolicyName, this.innerModel(), Context.NONE); + this.innerObject = serviceManager.serviceClient().getWorkspaceManagedSqlServerBlobAuditingPolicies() + .createOrUpdate(resourceGroupName, workspaceName, blobAuditingPolicyName, this.innerModel(), Context.NONE); return this; } public ServerBlobAuditingPolicy create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getWorkspaceManagedSqlServerBlobAuditingPolicies() - .createOrUpdate(resourceGroupName, workspaceName, blobAuditingPolicyName, this.innerModel(), context); + this.innerObject = serviceManager.serviceClient().getWorkspaceManagedSqlServerBlobAuditingPolicies() + .createOrUpdate(resourceGroupName, workspaceName, blobAuditingPolicyName, this.innerModel(), context); return this; } - ServerBlobAuditingPolicyImpl( - BlobAuditingPolicyName name, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + ServerBlobAuditingPolicyImpl(BlobAuditingPolicyName name, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = new ServerBlobAuditingPolicyInner(); this.serviceManager = serviceManager; this.blobAuditingPolicyName = name; @@ -131,51 +124,36 @@ public ServerBlobAuditingPolicyImpl update() { } public ServerBlobAuditingPolicy apply() { - this.innerObject = - serviceManager - .serviceClient() - .getWorkspaceManagedSqlServerBlobAuditingPolicies() - .createOrUpdate( - resourceGroupName, workspaceName, blobAuditingPolicyName, this.innerModel(), Context.NONE); + this.innerObject = serviceManager.serviceClient().getWorkspaceManagedSqlServerBlobAuditingPolicies() + .createOrUpdate(resourceGroupName, workspaceName, blobAuditingPolicyName, this.innerModel(), Context.NONE); return this; } public ServerBlobAuditingPolicy apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getWorkspaceManagedSqlServerBlobAuditingPolicies() - .createOrUpdate(resourceGroupName, workspaceName, blobAuditingPolicyName, this.innerModel(), context); + this.innerObject = serviceManager.serviceClient().getWorkspaceManagedSqlServerBlobAuditingPolicies() + .createOrUpdate(resourceGroupName, workspaceName, blobAuditingPolicyName, this.innerModel(), context); return this; } - ServerBlobAuditingPolicyImpl( - ServerBlobAuditingPolicyInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + ServerBlobAuditingPolicyImpl(ServerBlobAuditingPolicyInner innerObject, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.workspaceName = Utils.getValueFromIdByName(innerObject.id(), "workspaces"); - this.blobAuditingPolicyName = - BlobAuditingPolicyName.fromString(Utils.getValueFromIdByName(innerObject.id(), "auditingSettings")); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.workspaceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workspaces"); + this.blobAuditingPolicyName = BlobAuditingPolicyName + .fromString(ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "auditingSettings")); } public ServerBlobAuditingPolicy refresh() { - this.innerObject = - serviceManager - .serviceClient() - .getWorkspaceManagedSqlServerBlobAuditingPolicies() - .getWithResponse(resourceGroupName, workspaceName, blobAuditingPolicyName, Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getWorkspaceManagedSqlServerBlobAuditingPolicies() + .getWithResponse(resourceGroupName, workspaceName, blobAuditingPolicyName, Context.NONE).getValue(); return this; } public ServerBlobAuditingPolicy refresh(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getWorkspaceManagedSqlServerBlobAuditingPolicies() - .getWithResponse(resourceGroupName, workspaceName, blobAuditingPolicyName, context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getWorkspaceManagedSqlServerBlobAuditingPolicies() + .getWithResponse(resourceGroupName, workspaceName, blobAuditingPolicyName, context).getValue(); return this; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ServerSecurityAlertPolicyImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ServerSecurityAlertPolicyImpl.java index d195cb77b3e0..747aa882e6cf 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ServerSecurityAlertPolicyImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ServerSecurityAlertPolicyImpl.java @@ -98,26 +98,19 @@ public ServerSecurityAlertPolicyImpl withExistingWorkspace(String resourceGroupN } public ServerSecurityAlertPolicy create() { - this.innerObject = - serviceManager - .serviceClient() - .getWorkspaceManagedSqlServerSecurityAlertPolicies() - .createOrUpdate( - resourceGroupName, workspaceName, securityAlertPolicyName, this.innerModel(), Context.NONE); + this.innerObject = serviceManager.serviceClient().getWorkspaceManagedSqlServerSecurityAlertPolicies() + .createOrUpdate(resourceGroupName, workspaceName, securityAlertPolicyName, this.innerModel(), Context.NONE); return this; } public ServerSecurityAlertPolicy create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getWorkspaceManagedSqlServerSecurityAlertPolicies() - .createOrUpdate(resourceGroupName, workspaceName, securityAlertPolicyName, this.innerModel(), context); + this.innerObject = serviceManager.serviceClient().getWorkspaceManagedSqlServerSecurityAlertPolicies() + .createOrUpdate(resourceGroupName, workspaceName, securityAlertPolicyName, this.innerModel(), context); return this; } - ServerSecurityAlertPolicyImpl( - SecurityAlertPolicyNameAutoGenerated name, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + ServerSecurityAlertPolicyImpl(SecurityAlertPolicyNameAutoGenerated name, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = new ServerSecurityAlertPolicyInner(); this.serviceManager = serviceManager; this.securityAlertPolicyName = name; @@ -128,52 +121,36 @@ public ServerSecurityAlertPolicyImpl update() { } public ServerSecurityAlertPolicy apply() { - this.innerObject = - serviceManager - .serviceClient() - .getWorkspaceManagedSqlServerSecurityAlertPolicies() - .createOrUpdate( - resourceGroupName, workspaceName, securityAlertPolicyName, this.innerModel(), Context.NONE); + this.innerObject = serviceManager.serviceClient().getWorkspaceManagedSqlServerSecurityAlertPolicies() + .createOrUpdate(resourceGroupName, workspaceName, securityAlertPolicyName, this.innerModel(), Context.NONE); return this; } public ServerSecurityAlertPolicy apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getWorkspaceManagedSqlServerSecurityAlertPolicies() - .createOrUpdate(resourceGroupName, workspaceName, securityAlertPolicyName, this.innerModel(), context); + this.innerObject = serviceManager.serviceClient().getWorkspaceManagedSqlServerSecurityAlertPolicies() + .createOrUpdate(resourceGroupName, workspaceName, securityAlertPolicyName, this.innerModel(), context); return this; } - ServerSecurityAlertPolicyImpl( - ServerSecurityAlertPolicyInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + ServerSecurityAlertPolicyImpl(ServerSecurityAlertPolicyInner innerObject, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.workspaceName = Utils.getValueFromIdByName(innerObject.id(), "workspaces"); - this.securityAlertPolicyName = - SecurityAlertPolicyNameAutoGenerated - .fromString(Utils.getValueFromIdByName(innerObject.id(), "securityAlertPolicies")); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.workspaceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workspaces"); + this.securityAlertPolicyName = SecurityAlertPolicyNameAutoGenerated + .fromString(ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "securityAlertPolicies")); } public ServerSecurityAlertPolicy refresh() { - this.innerObject = - serviceManager - .serviceClient() - .getWorkspaceManagedSqlServerSecurityAlertPolicies() - .getWithResponse(resourceGroupName, workspaceName, securityAlertPolicyName, Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getWorkspaceManagedSqlServerSecurityAlertPolicies() + .getWithResponse(resourceGroupName, workspaceName, securityAlertPolicyName, Context.NONE).getValue(); return this; } public ServerSecurityAlertPolicy refresh(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getWorkspaceManagedSqlServerSecurityAlertPolicies() - .getWithResponse(resourceGroupName, workspaceName, securityAlertPolicyName, context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getWorkspaceManagedSqlServerSecurityAlertPolicies() + .getWithResponse(resourceGroupName, workspaceName, securityAlertPolicyName, context).getValue(); return this; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ServerVulnerabilityAssessmentImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ServerVulnerabilityAssessmentImpl.java index 9ee3023a10ca..fc8cc8d7a4e0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ServerVulnerabilityAssessmentImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/ServerVulnerabilityAssessmentImpl.java @@ -8,12 +8,10 @@ import com.azure.resourcemanager.synapse.fluent.models.ServerVulnerabilityAssessmentInner; import com.azure.resourcemanager.synapse.models.ServerVulnerabilityAssessment; import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; -import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated; +import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentRecurringScansProperties; -public final class ServerVulnerabilityAssessmentImpl - implements ServerVulnerabilityAssessment, - ServerVulnerabilityAssessment.Definition, - ServerVulnerabilityAssessment.Update { +public final class ServerVulnerabilityAssessmentImpl implements ServerVulnerabilityAssessment, + ServerVulnerabilityAssessment.Definition, ServerVulnerabilityAssessment.Update { private ServerVulnerabilityAssessmentInner innerObject; private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; @@ -42,7 +40,7 @@ public String storageAccountAccessKey() { return this.innerModel().storageAccountAccessKey(); } - public VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated recurringScans() { + public VulnerabilityAssessmentRecurringScansProperties recurringScans() { return this.innerModel().recurringScans(); } @@ -71,29 +69,23 @@ public ServerVulnerabilityAssessmentImpl withExistingWorkspace(String resourceGr } public ServerVulnerabilityAssessment create() { - this.innerObject = - serviceManager - .serviceClient() - .getWorkspaceManagedSqlServerVulnerabilityAssessments() - .createOrUpdateWithResponse( - resourceGroupName, workspaceName, vulnerabilityAssessmentName, this.innerModel(), Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getWorkspaceManagedSqlServerVulnerabilityAssessments() + .createOrUpdateWithResponse(resourceGroupName, workspaceName, vulnerabilityAssessmentName, + this.innerModel(), Context.NONE) + .getValue(); return this; } public ServerVulnerabilityAssessment create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getWorkspaceManagedSqlServerVulnerabilityAssessments() - .createOrUpdateWithResponse( - resourceGroupName, workspaceName, vulnerabilityAssessmentName, this.innerModel(), context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getWorkspaceManagedSqlServerVulnerabilityAssessments() + .createOrUpdateWithResponse(resourceGroupName, workspaceName, vulnerabilityAssessmentName, + this.innerModel(), context) + .getValue(); return this; } - ServerVulnerabilityAssessmentImpl( - VulnerabilityAssessmentName name, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + ServerVulnerabilityAssessmentImpl(VulnerabilityAssessmentName name, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = new ServerVulnerabilityAssessmentInner(); this.serviceManager = serviceManager; this.vulnerabilityAssessmentName = name; @@ -104,56 +96,40 @@ public ServerVulnerabilityAssessmentImpl update() { } public ServerVulnerabilityAssessment apply() { - this.innerObject = - serviceManager - .serviceClient() - .getWorkspaceManagedSqlServerVulnerabilityAssessments() - .createOrUpdateWithResponse( - resourceGroupName, workspaceName, vulnerabilityAssessmentName, this.innerModel(), Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getWorkspaceManagedSqlServerVulnerabilityAssessments() + .createOrUpdateWithResponse(resourceGroupName, workspaceName, vulnerabilityAssessmentName, + this.innerModel(), Context.NONE) + .getValue(); return this; } public ServerVulnerabilityAssessment apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getWorkspaceManagedSqlServerVulnerabilityAssessments() - .createOrUpdateWithResponse( - resourceGroupName, workspaceName, vulnerabilityAssessmentName, this.innerModel(), context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getWorkspaceManagedSqlServerVulnerabilityAssessments() + .createOrUpdateWithResponse(resourceGroupName, workspaceName, vulnerabilityAssessmentName, + this.innerModel(), context) + .getValue(); return this; } - ServerVulnerabilityAssessmentImpl( - ServerVulnerabilityAssessmentInner innerObject, + ServerVulnerabilityAssessmentImpl(ServerVulnerabilityAssessmentInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.workspaceName = Utils.getValueFromIdByName(innerObject.id(), "workspaces"); - this.vulnerabilityAssessmentName = - VulnerabilityAssessmentName - .fromString(Utils.getValueFromIdByName(innerObject.id(), "vulnerabilityAssessments")); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.workspaceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workspaces"); + this.vulnerabilityAssessmentName = VulnerabilityAssessmentName + .fromString(ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "vulnerabilityAssessments")); } public ServerVulnerabilityAssessment refresh() { - this.innerObject = - serviceManager - .serviceClient() - .getWorkspaceManagedSqlServerVulnerabilityAssessments() - .getWithResponse(resourceGroupName, workspaceName, vulnerabilityAssessmentName, Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getWorkspaceManagedSqlServerVulnerabilityAssessments() + .getWithResponse(resourceGroupName, workspaceName, vulnerabilityAssessmentName, Context.NONE).getValue(); return this; } public ServerVulnerabilityAssessment refresh(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getWorkspaceManagedSqlServerVulnerabilityAssessments() - .getWithResponse(resourceGroupName, workspaceName, vulnerabilityAssessmentName, context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getWorkspaceManagedSqlServerVulnerabilityAssessments() + .getWithResponse(resourceGroupName, workspaceName, vulnerabilityAssessmentName, context).getValue(); return this; } @@ -172,8 +148,8 @@ public ServerVulnerabilityAssessmentImpl withStorageAccountAccessKey(String stor return this; } - public ServerVulnerabilityAssessmentImpl withRecurringScans( - VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated recurringScans) { + public ServerVulnerabilityAssessmentImpl + withRecurringScans(VulnerabilityAssessmentRecurringScansProperties recurringScans) { this.innerModel().withRecurringScans(recurringScans); return this; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SkuDescriptionImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SkuDescriptionImpl.java index 590325353790..75c4e64bbcde 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SkuDescriptionImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SkuDescriptionImpl.java @@ -15,8 +15,8 @@ public final class SkuDescriptionImpl implements SkuDescription { private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - SkuDescriptionImpl( - SkuDescriptionInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + SkuDescriptionImpl(SkuDescriptionInner innerObject, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationResourceImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationResourceImpl.java index 2eeaa828de41..a8282c8269bd 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationResourceImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationResourceImpl.java @@ -16,8 +16,8 @@ public final class SparkConfigurationResourceImpl implements SparkConfigurationR private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - SparkConfigurationResourceImpl( - SparkConfigurationResourceInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + SparkConfigurationResourceImpl(SparkConfigurationResourceInner innerObject, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationsClientImpl.java index f7c1c84094c1..daabaedb33a6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationsClientImpl.java @@ -25,22 +25,28 @@ import com.azure.resourcemanager.synapse.fluent.models.SparkConfigurationResourceInner; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in SparkConfigurationsClient. */ +/** + * An instance of this class provides access to all the operations defined in SparkConfigurationsClient. + */ public final class SparkConfigurationsClientImpl implements SparkConfigurationsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final SparkConfigurationsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of SparkConfigurationsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ SparkConfigurationsClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy.create(SparkConfigurationsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service = RestProxy.create(SparkConfigurationsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } @@ -51,60 +57,49 @@ public final class SparkConfigurationsClientImpl implements SparkConfigurationsC @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface SparkConfigurationsService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sparkconfigurations/{sparkConfigurationName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sparkconfigurations/{sparkConfigurationName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + Mono> get(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("sparkConfigurationName") String sparkConfigurationName, - @PathParam("workspaceName") String workspaceName, - @HeaderParam("Accept") String accept, - Context context); + @PathParam("workspaceName") String workspaceName, @HeaderParam("Accept") String accept, Context context); } /** * Get SparkConfiguration by name. - * - *

Get SparkConfiguration by name in a workspace. - * + * + * Get SparkConfiguration by name in a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param sparkConfigurationName SparkConfiguration name. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sparkConfiguration by name in a workspace along with {@link Response} on successful completion of {@link - * Mono}. + * @return sparkConfiguration by name in a workspace along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String sparkConfigurationName, String workspaceName) { + private Mono> getWithResponseAsync(String resourceGroupName, + String sparkConfigurationName, String workspaceName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } if (sparkConfigurationName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter sparkConfigurationName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter sparkConfigurationName is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -112,26 +107,16 @@ private Mono> getWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - sparkConfigurationName, - workspaceName, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, sparkConfigurationName, workspaceName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get SparkConfiguration by name. - * - *

Get SparkConfiguration by name in a workspace. - * + * + * Get SparkConfiguration by name in a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param sparkConfigurationName SparkConfiguration name. * @param workspaceName The name of the workspace. @@ -139,32 +124,27 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return sparkConfiguration by name in a workspace along with {@link Response} on successful completion of {@link - * Mono}. + * @return sparkConfiguration by name in a workspace along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String sparkConfigurationName, String workspaceName, Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, + String sparkConfigurationName, String workspaceName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } if (sparkConfigurationName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter sparkConfigurationName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter sparkConfigurationName is required and cannot be null.")); } if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); @@ -172,23 +152,15 @@ private Mono> getWithResponseAsync( final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - sparkConfigurationName, - workspaceName, - accept, - context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + sparkConfigurationName, workspaceName, accept, context); } /** * Get SparkConfiguration by name. - * - *

Get SparkConfiguration by name in a workspace. - * + * + * Get SparkConfiguration by name in a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param sparkConfigurationName SparkConfiguration name. * @param workspaceName The name of the workspace. @@ -198,17 +170,17 @@ private Mono> getWithResponseAsync( * @return sparkConfiguration by name in a workspace on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String sparkConfigurationName, String workspaceName) { + private Mono getAsync(String resourceGroupName, String sparkConfigurationName, + String workspaceName) { return getWithResponseAsync(resourceGroupName, sparkConfigurationName, workspaceName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Get SparkConfiguration by name. - * - *

Get SparkConfiguration by name in a workspace. - * + * + * Get SparkConfiguration by name in a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param sparkConfigurationName SparkConfiguration name. * @param workspaceName The name of the workspace. @@ -219,16 +191,16 @@ private Mono getAsync( * @return sparkConfiguration by name in a workspace along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String sparkConfigurationName, String workspaceName, Context context) { + public Response getWithResponse(String resourceGroupName, + String sparkConfigurationName, String workspaceName, Context context) { return getWithResponseAsync(resourceGroupName, sparkConfigurationName, workspaceName, context).block(); } /** * Get SparkConfiguration by name. - * - *

Get SparkConfiguration by name in a workspace. - * + * + * Get SparkConfiguration by name in a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param sparkConfigurationName SparkConfiguration name. * @param workspaceName The name of the workspace. @@ -238,8 +210,8 @@ public Response getWithResponse( * @return sparkConfiguration by name in a workspace. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SparkConfigurationResourceInner get( - String resourceGroupName, String sparkConfigurationName, String workspaceName) { + public SparkConfigurationResourceInner get(String resourceGroupName, String sparkConfigurationName, + String workspaceName) { return getWithResponse(resourceGroupName, sparkConfigurationName, workspaceName, Context.NONE).getValue(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationsImpl.java index f5bc7971d05a..cb531c115b5d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationsImpl.java @@ -20,31 +20,28 @@ public final class SparkConfigurationsImpl implements SparkConfigurations { private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public SparkConfigurationsImpl( - SparkConfigurationsClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + public SparkConfigurationsImpl(SparkConfigurationsClient innerClient, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public Response getWithResponse( - String resourceGroupName, String sparkConfigurationName, String workspaceName, Context context) { - Response inner = - this.serviceClient().getWithResponse(resourceGroupName, sparkConfigurationName, workspaceName, context); + public Response getWithResponse(String resourceGroupName, String sparkConfigurationName, + String workspaceName, Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, sparkConfigurationName, workspaceName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new SparkConfigurationResourceImpl(inner.getValue(), this.manager())); } else { return null; } } - public SparkConfigurationResource get( - String resourceGroupName, String sparkConfigurationName, String workspaceName) { - SparkConfigurationResourceInner inner = - this.serviceClient().get(resourceGroupName, sparkConfigurationName, workspaceName); + public SparkConfigurationResource get(String resourceGroupName, String sparkConfigurationName, + String workspaceName) { + SparkConfigurationResourceInner inner + = this.serviceClient().get(resourceGroupName, sparkConfigurationName, workspaceName); if (inner != null) { return new SparkConfigurationResourceImpl(inner, this.manager()); } else { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationsOperationsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationsOperationsClientImpl.java index fbc19bb8564d..36edf1f21fae 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationsOperationsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationsOperationsClientImpl.java @@ -30,26 +30,28 @@ import com.azure.resourcemanager.synapse.models.SparkConfigurationListResponse; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in SparkConfigurationsOperationsClient. */ +/** + * An instance of this class provides access to all the operations defined in SparkConfigurationsOperationsClient. + */ public final class SparkConfigurationsOperationsClientImpl implements SparkConfigurationsOperationsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final SparkConfigurationsOperationsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of SparkConfigurationsOperationsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ SparkConfigurationsOperationsClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy - .create( - SparkConfigurationsOperationsService.class, - client.getHttpPipeline(), - client.getSerializerAdapter()); + this.service = RestProxy.create(SparkConfigurationsOperationsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } @@ -60,59 +62,47 @@ public final class SparkConfigurationsOperationsClientImpl implements SparkConfi @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface SparkConfigurationsOperationsService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sparkconfigurations") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sparkconfigurations") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByWorkspace( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @HeaderParam("Accept") String accept, - Context context); + Mono> listByWorkspace(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByWorkspaceNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** * List the sparkConfigurations in a workspace. - * - *

List sparkConfigurations in a workspace. - * + * + * List sparkConfigurations in a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of SparkConfiguration resources along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByWorkspaceSinglePageAsync( - String resourceGroupName, String workspaceName) { + private Mono> + listByWorkspaceSinglePageAsync(String resourceGroupName, String workspaceName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -124,34 +114,18 @@ private Mono> listByWorkspaceSing final String apiVersion = "2021-06-01-preview"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .listByWorkspace( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .withContext(context -> service.listByWorkspace(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * List the sparkConfigurations in a workspace. - * - *

List sparkConfigurations in a workspace. - * + * + * List sparkConfigurations in a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -159,22 +133,18 @@ private Mono> listByWorkspaceSing * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of SparkConfiguration resources along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByWorkspaceSinglePageAsync( - String resourceGroupName, String workspaceName, Context context) { + private Mono> + listByWorkspaceSinglePageAsync(String resourceGroupName, String workspaceName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -187,30 +157,17 @@ private Mono> listByWorkspaceSing final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByWorkspace( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + .listByWorkspace(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * List the sparkConfigurations in a workspace. - * - *

List sparkConfigurations in a workspace. - * + * + * List sparkConfigurations in a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -219,18 +176,17 @@ private Mono> listByWorkspaceSing * @return a list of SparkConfiguration resources as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByWorkspaceAsync( - String resourceGroupName, String workspaceName) { - return new PagedFlux<>( - () -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName), + private PagedFlux listByWorkspaceAsync(String resourceGroupName, + String workspaceName) { + return new PagedFlux<>(() -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName), nextLink -> listByWorkspaceNextSinglePageAsync(nextLink)); } /** * List the sparkConfigurations in a workspace. - * - *

List sparkConfigurations in a workspace. - * + * + * List sparkConfigurations in a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -240,18 +196,17 @@ private PagedFlux listByWorkspaceAsync( * @return a list of SparkConfiguration resources as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByWorkspaceAsync( - String resourceGroupName, String workspaceName, Context context) { - return new PagedFlux<>( - () -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName, context), + private PagedFlux listByWorkspaceAsync(String resourceGroupName, + String workspaceName, Context context) { + return new PagedFlux<>(() -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName, context), nextLink -> listByWorkspaceNextSinglePageAsync(nextLink, context)); } /** * List the sparkConfigurations in a workspace. - * - *

List sparkConfigurations in a workspace. - * + * + * List sparkConfigurations in a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -260,16 +215,16 @@ private PagedFlux listByWorkspaceAsync( * @return a list of SparkConfiguration resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByWorkspace( - String resourceGroupName, String workspaceName) { + public PagedIterable listByWorkspace(String resourceGroupName, + String workspaceName) { return new PagedIterable<>(listByWorkspaceAsync(resourceGroupName, workspaceName)); } /** * List the sparkConfigurations in a workspace. - * - *

List sparkConfigurations in a workspace. - * + * + * List sparkConfigurations in a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -279,21 +234,22 @@ public PagedIterable listByWorkspace( * @return a list of SparkConfiguration resources as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByWorkspace( - String resourceGroupName, String workspaceName, Context context) { + public PagedIterable listByWorkspace(String resourceGroupName, + String workspaceName, Context context) { return new PagedIterable<>(listByWorkspaceAsync(resourceGroupName, workspaceName, context)); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of SparkConfiguration resources along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByWorkspaceNextSinglePageAsync(String nextLink) { @@ -301,62 +257,44 @@ private Mono> listByWorkspaceNext return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByWorkspaceNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of SparkConfiguration resources along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByWorkspaceNextSinglePageAsync( - String nextLink, Context context) { + private Mono> listByWorkspaceNextSinglePageAsync(String nextLink, + Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listByWorkspaceNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listByWorkspaceNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationsOperationsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationsOperationsImpl.java index 2eb68311dec4..9d9970f2148a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationsOperationsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SparkConfigurationsOperationsImpl.java @@ -19,24 +19,25 @@ public final class SparkConfigurationsOperationsImpl implements SparkConfigurati private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public SparkConfigurationsOperationsImpl( - SparkConfigurationsOperationsClient innerClient, + public SparkConfigurationsOperationsImpl(SparkConfigurationsOperationsClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName) { - PagedIterable inner = - this.serviceClient().listByWorkspace(resourceGroupName, workspaceName); - return Utils.mapPage(inner, inner1 -> new SparkConfigurationResourceImpl(inner1, this.manager())); + PagedIterable inner + = this.serviceClient().listByWorkspace(resourceGroupName, workspaceName); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new SparkConfigurationResourceImpl(inner1, this.manager())); } - public PagedIterable listByWorkspace( - String resourceGroupName, String workspaceName, Context context) { - PagedIterable inner = - this.serviceClient().listByWorkspace(resourceGroupName, workspaceName, context); - return Utils.mapPage(inner, inner1 -> new SparkConfigurationResourceImpl(inner1, this.manager())); + public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, + Context context) { + PagedIterable inner + = this.serviceClient().listByWorkspace(resourceGroupName, workspaceName, context); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new SparkConfigurationResourceImpl(inner1, this.manager())); } private SparkConfigurationsOperationsClient serviceClient() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolBlobAuditingPoliciesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolBlobAuditingPoliciesClientImpl.java index eb9ae7d56f7e..79404697d0dc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolBlobAuditingPoliciesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolBlobAuditingPoliciesClientImpl.java @@ -32,24 +32,28 @@ import com.azure.resourcemanager.synapse.models.SqlPoolBlobAuditingPolicyListResult; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in SqlPoolBlobAuditingPoliciesClient. */ +/** + * An instance of this class provides access to all the operations defined in SqlPoolBlobAuditingPoliciesClient. + */ public final class SqlPoolBlobAuditingPoliciesClientImpl implements SqlPoolBlobAuditingPoliciesClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final SqlPoolBlobAuditingPoliciesService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of SqlPoolBlobAuditingPoliciesClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ SqlPoolBlobAuditingPoliciesClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy - .create( - SqlPoolBlobAuditingPoliciesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service = RestProxy.create(SqlPoolBlobAuditingPoliciesService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } @@ -60,73 +64,52 @@ public final class SqlPoolBlobAuditingPoliciesClientImpl implements SqlPoolBlobA @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface SqlPoolBlobAuditingPoliciesService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/auditingSettings/{blobAuditingPolicyName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/auditingSettings/{blobAuditingPolicyName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono> get(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("sqlPoolName") String sqlPoolName, - @PathParam("blobAuditingPolicyName") String blobAuditingPolicyName, - @HeaderParam("Accept") String accept, + @PathParam("blobAuditingPolicyName") String blobAuditingPolicyName, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/auditingSettings/{blobAuditingPolicyName}") - @ExpectedResponses({200, 201}) + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/auditingSettings/{blobAuditingPolicyName}") + @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono> createOrUpdate(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("sqlPoolName") String sqlPoolName, @PathParam("blobAuditingPolicyName") String blobAuditingPolicyName, @BodyParam("application/json") SqlPoolBlobAuditingPolicyInner parameters, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/auditingSettings") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/auditingSettings") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listBySqlPool( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("sqlPoolName") String sqlPoolName, - @HeaderParam("Accept") String accept, - Context context); + Mono> listBySqlPool(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("sqlPoolName") String sqlPoolName, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listBySqlPoolNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** * Get a SQL pool's blob auditing policy - * - *

Get a SQL pool's blob auditing policy. - * + * + * Get a SQL pool's blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -136,19 +119,15 @@ Mono> listBySqlPoolNext( * @return a SQL pool's blob auditing policy along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, String sqlPoolName) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, String sqlPoolName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -164,27 +143,16 @@ private Mono> getWithResponseAsync( final String blobAuditingPolicyName = "default"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - blobAuditingPolicyName, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, blobAuditingPolicyName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get a SQL pool's blob auditing policy - * - *

Get a SQL pool's blob auditing policy. - * + * + * Get a SQL pool's blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -195,19 +163,15 @@ private Mono> getWithResponseAsync( * @return a SQL pool's blob auditing policy along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -223,24 +187,15 @@ private Mono> getWithResponseAsync( final String blobAuditingPolicyName = "default"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - blobAuditingPolicyName, - accept, - context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, blobAuditingPolicyName, accept, context); } /** * Get a SQL pool's blob auditing policy - * - *

Get a SQL pool's blob auditing policy. - * + * + * Get a SQL pool's blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -250,17 +205,17 @@ private Mono> getWithResponseAsync( * @return a SQL pool's blob auditing policy on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String workspaceName, String sqlPoolName) { + private Mono getAsync(String resourceGroupName, String workspaceName, + String sqlPoolName) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Get a SQL pool's blob auditing policy - * - *

Get a SQL pool's blob auditing policy. - * + * + * Get a SQL pool's blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -271,16 +226,16 @@ private Mono getAsync( * @return a SQL pool's blob auditing policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + public Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, context).block(); } /** * Get a SQL pool's blob auditing policy - * - *

Get a SQL pool's blob auditing policy. - * + * + * Get a SQL pool's blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -296,9 +251,9 @@ public SqlPoolBlobAuditingPolicyInner get(String resourceGroupName, String works /** * Creates or updates a SQL pool's blob auditing policy - * - *

Creates or updates a SQL pool's blob auditing policy. - * + * + * Creates or updates a SQL pool's blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -309,19 +264,15 @@ public SqlPoolBlobAuditingPolicyInner get(String resourceGroupName, String works * @return a Sql pool blob auditing policy along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, SqlPoolBlobAuditingPolicyInner parameters) { + private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, SqlPoolBlobAuditingPolicyInner parameters) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -342,28 +293,17 @@ private Mono> createOrUpdateWithRespons final String blobAuditingPolicyName = "default"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - blobAuditingPolicyName, - parameters, - accept, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, blobAuditingPolicyName, + parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates a SQL pool's blob auditing policy - * - *

Creates or updates a SQL pool's blob auditing policy. - * + * + * Creates or updates a SQL pool's blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -375,23 +315,15 @@ private Mono> createOrUpdateWithRespons * @return a Sql pool blob auditing policy along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - SqlPoolBlobAuditingPolicyInner parameters, - Context context) { + private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, SqlPoolBlobAuditingPolicyInner parameters, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -412,25 +344,15 @@ private Mono> createOrUpdateWithRespons final String blobAuditingPolicyName = "default"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - blobAuditingPolicyName, - parameters, - accept, - context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, blobAuditingPolicyName, parameters, accept, context); } /** * Creates or updates a SQL pool's blob auditing policy - * - *

Creates or updates a SQL pool's blob auditing policy. - * + * + * Creates or updates a SQL pool's blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -441,17 +363,17 @@ private Mono> createOrUpdateWithRespons * @return a Sql pool blob auditing policy on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, SqlPoolBlobAuditingPolicyInner parameters) { + private Mono createOrUpdateAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, SqlPoolBlobAuditingPolicyInner parameters) { return createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, parameters) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Creates or updates a SQL pool's blob auditing policy - * - *

Creates or updates a SQL pool's blob auditing policy. - * + * + * Creates or updates a SQL pool's blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -463,21 +385,17 @@ private Mono createOrUpdateAsync( * @return a Sql pool blob auditing policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - SqlPoolBlobAuditingPolicyInner parameters, - Context context) { + public Response createOrUpdateWithResponse(String resourceGroupName, + String workspaceName, String sqlPoolName, SqlPoolBlobAuditingPolicyInner parameters, Context context) { return createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, parameters, context) .block(); } /** * Creates or updates a SQL pool's blob auditing policy - * - *

Creates or updates a SQL pool's blob auditing policy. - * + * + * Creates or updates a SQL pool's blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -488,38 +406,34 @@ public Response createOrUpdateWithResponse( * @return a Sql pool blob auditing policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SqlPoolBlobAuditingPolicyInner createOrUpdate( - String resourceGroupName, String workspaceName, String sqlPoolName, SqlPoolBlobAuditingPolicyInner parameters) { + public SqlPoolBlobAuditingPolicyInner createOrUpdate(String resourceGroupName, String workspaceName, + String sqlPoolName, SqlPoolBlobAuditingPolicyInner parameters) { return createOrUpdateWithResponse(resourceGroupName, workspaceName, sqlPoolName, parameters, Context.NONE) .getValue(); } /** * Lists auditing settings of a Sql pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Sql pool auditing settings along with {@link PagedResponse} on successful completion of {@link - * Mono}. + * @return a list of Sql pool auditing settings along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listBySqlPoolSinglePageAsync( - String resourceGroupName, String workspaceName, String sqlPoolName) { + private Mono> listBySqlPoolSinglePageAsync(String resourceGroupName, + String workspaceName, String sqlPoolName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -534,33 +448,16 @@ private Mono> listBySqlPoolSingleP final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .listBySqlPool( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .withContext(context -> service.listBySqlPool(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Lists auditing settings of a Sql pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -568,23 +465,19 @@ private Mono> listBySqlPoolSingleP * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Sql pool auditing settings along with {@link PagedResponse} on successful completion of {@link - * Mono}. + * @return a list of Sql pool auditing settings along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listBySqlPoolSinglePageAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + private Mono> listBySqlPoolSinglePageAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -600,29 +493,15 @@ private Mono> listBySqlPoolSingleP final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listBySqlPool( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + .listBySqlPool(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * Lists auditing settings of a Sql pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -632,16 +511,15 @@ private Mono> listBySqlPoolSingleP * @return a list of Sql pool auditing settings as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listBySqlPoolAsync( - String resourceGroupName, String workspaceName, String sqlPoolName) { - return new PagedFlux<>( - () -> listBySqlPoolSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName), + private PagedFlux listBySqlPoolAsync(String resourceGroupName, String workspaceName, + String sqlPoolName) { + return new PagedFlux<>(() -> listBySqlPoolSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName), nextLink -> listBySqlPoolNextSinglePageAsync(nextLink)); } /** * Lists auditing settings of a Sql pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -652,8 +530,8 @@ private PagedFlux listBySqlPoolAsync( * @return a list of Sql pool auditing settings as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listBySqlPoolAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + private PagedFlux listBySqlPoolAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context) { return new PagedFlux<>( () -> listBySqlPoolSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName, context), nextLink -> listBySqlPoolNextSinglePageAsync(nextLink, context)); @@ -661,7 +539,7 @@ private PagedFlux listBySqlPoolAsync( /** * Lists auditing settings of a Sql pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -671,14 +549,14 @@ private PagedFlux listBySqlPoolAsync( * @return a list of Sql pool auditing settings as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listBySqlPool( - String resourceGroupName, String workspaceName, String sqlPoolName) { + public PagedIterable listBySqlPool(String resourceGroupName, String workspaceName, + String sqlPoolName) { return new PagedIterable<>(listBySqlPoolAsync(resourceGroupName, workspaceName, sqlPoolName)); } /** * Lists auditing settings of a Sql pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -689,21 +567,22 @@ public PagedIterable listBySqlPool( * @return a list of Sql pool auditing settings as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listBySqlPool( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + public PagedIterable listBySqlPool(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context) { return new PagedIterable<>(listBySqlPoolAsync(resourceGroupName, workspaceName, sqlPoolName, context)); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Sql pool auditing settings along with {@link PagedResponse} on successful completion of {@link - * Mono}. + * @return a list of Sql pool auditing settings along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listBySqlPoolNextSinglePageAsync(String nextLink) { @@ -711,62 +590,44 @@ private Mono> listBySqlPoolNextSin return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil .withContext(context -> service.listBySqlPoolNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of Sql pool auditing settings along with {@link PagedResponse} on successful completion of {@link - * Mono}. + * @return a list of Sql pool auditing settings along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listBySqlPoolNextSinglePageAsync( - String nextLink, Context context) { + private Mono> listBySqlPoolNextSinglePageAsync(String nextLink, + Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listBySqlPoolNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listBySqlPoolNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolBlobAuditingPoliciesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolBlobAuditingPoliciesImpl.java index 86ee66f1e021..3bdd045656b7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolBlobAuditingPoliciesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolBlobAuditingPoliciesImpl.java @@ -21,22 +21,18 @@ public final class SqlPoolBlobAuditingPoliciesImpl implements SqlPoolBlobAuditin private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public SqlPoolBlobAuditingPoliciesImpl( - SqlPoolBlobAuditingPoliciesClient innerClient, + public SqlPoolBlobAuditingPoliciesImpl(SqlPoolBlobAuditingPoliciesClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { - Response inner = - this.serviceClient().getWithResponse(resourceGroupName, workspaceName, sqlPoolName, context); + public Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, workspaceName, sqlPoolName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new SqlPoolBlobAuditingPolicyImpl(inner.getValue(), this.manager())); } else { return null; @@ -52,68 +48,54 @@ public SqlPoolBlobAuditingPolicy get(String resourceGroupName, String workspaceN } } - public PagedIterable listBySqlPool( - String resourceGroupName, String workspaceName, String sqlPoolName) { - PagedIterable inner = - this.serviceClient().listBySqlPool(resourceGroupName, workspaceName, sqlPoolName); - return Utils.mapPage(inner, inner1 -> new SqlPoolBlobAuditingPolicyImpl(inner1, this.manager())); + public PagedIterable listBySqlPool(String resourceGroupName, String workspaceName, + String sqlPoolName) { + PagedIterable inner + = this.serviceClient().listBySqlPool(resourceGroupName, workspaceName, sqlPoolName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SqlPoolBlobAuditingPolicyImpl(inner1, this.manager())); } - public PagedIterable listBySqlPool( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { - PagedIterable inner = - this.serviceClient().listBySqlPool(resourceGroupName, workspaceName, sqlPoolName, context); - return Utils.mapPage(inner, inner1 -> new SqlPoolBlobAuditingPolicyImpl(inner1, this.manager())); + public PagedIterable listBySqlPool(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context) { + PagedIterable inner + = this.serviceClient().listBySqlPool(resourceGroupName, workspaceName, sqlPoolName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SqlPoolBlobAuditingPolicyImpl(inner1, this.manager())); } public SqlPoolBlobAuditingPolicy getById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); + String sqlPoolName = ResourceManagerUtils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } return this.getWithResponse(resourceGroupName, workspaceName, sqlPoolName, Context.NONE).getValue(); } public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); + String sqlPoolName = ResourceManagerUtils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } return this.getWithResponse(resourceGroupName, workspaceName, sqlPoolName, context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolBlobAuditingPolicyImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolBlobAuditingPolicyImpl.java index aa061b4765d7..cfdc4ab94496 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolBlobAuditingPolicyImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolBlobAuditingPolicyImpl.java @@ -89,8 +89,8 @@ private com.azure.resourcemanager.synapse.SynapseManager manager() { private String sqlPoolName; - public SqlPoolBlobAuditingPolicyImpl withExistingSqlPool( - String resourceGroupName, String workspaceName, String sqlPoolName) { + public SqlPoolBlobAuditingPolicyImpl withExistingSqlPool(String resourceGroupName, String workspaceName, + String sqlPoolName) { this.resourceGroupName = resourceGroupName; this.workspaceName = workspaceName; this.sqlPoolName = sqlPoolName; @@ -98,23 +98,16 @@ public SqlPoolBlobAuditingPolicyImpl withExistingSqlPool( } public SqlPoolBlobAuditingPolicy create() { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolBlobAuditingPolicies() - .createOrUpdateWithResponse( - resourceGroupName, workspaceName, sqlPoolName, this.innerModel(), Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getSqlPoolBlobAuditingPolicies() + .createOrUpdateWithResponse(resourceGroupName, workspaceName, sqlPoolName, this.innerModel(), Context.NONE) + .getValue(); return this; } public SqlPoolBlobAuditingPolicy create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolBlobAuditingPolicies() - .createOrUpdateWithResponse(resourceGroupName, workspaceName, sqlPoolName, this.innerModel(), context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getSqlPoolBlobAuditingPolicies() + .createOrUpdateWithResponse(resourceGroupName, workspaceName, sqlPoolName, this.innerModel(), context) + .getValue(); return this; } @@ -128,52 +121,37 @@ public SqlPoolBlobAuditingPolicyImpl update() { } public SqlPoolBlobAuditingPolicy apply() { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolBlobAuditingPolicies() - .createOrUpdateWithResponse( - resourceGroupName, workspaceName, sqlPoolName, this.innerModel(), Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getSqlPoolBlobAuditingPolicies() + .createOrUpdateWithResponse(resourceGroupName, workspaceName, sqlPoolName, this.innerModel(), Context.NONE) + .getValue(); return this; } public SqlPoolBlobAuditingPolicy apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolBlobAuditingPolicies() - .createOrUpdateWithResponse(resourceGroupName, workspaceName, sqlPoolName, this.innerModel(), context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getSqlPoolBlobAuditingPolicies() + .createOrUpdateWithResponse(resourceGroupName, workspaceName, sqlPoolName, this.innerModel(), context) + .getValue(); return this; } - SqlPoolBlobAuditingPolicyImpl( - SqlPoolBlobAuditingPolicyInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + SqlPoolBlobAuditingPolicyImpl(SqlPoolBlobAuditingPolicyInner innerObject, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.workspaceName = Utils.getValueFromIdByName(innerObject.id(), "workspaces"); - this.sqlPoolName = Utils.getValueFromIdByName(innerObject.id(), "sqlPools"); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.workspaceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workspaces"); + this.sqlPoolName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "sqlPools"); } public SqlPoolBlobAuditingPolicy refresh() { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolBlobAuditingPolicies() - .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getSqlPoolBlobAuditingPolicies() + .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, Context.NONE).getValue(); return this; } public SqlPoolBlobAuditingPolicy refresh(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolBlobAuditingPolicies() - .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getSqlPoolBlobAuditingPolicies() + .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, context).getValue(); return this; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolColumnsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolColumnsClientImpl.java index 0e0a0d4a9800..2945ab351b47 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolColumnsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolColumnsClientImpl.java @@ -25,56 +25,53 @@ import com.azure.resourcemanager.synapse.fluent.models.SqlPoolColumnInner; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in SqlPoolColumnsClient. */ +/** + * An instance of this class provides access to all the operations defined in SqlPoolColumnsClient. + */ public final class SqlPoolColumnsClientImpl implements SqlPoolColumnsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final SqlPoolColumnsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of SqlPoolColumnsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ SqlPoolColumnsClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy.create(SqlPoolColumnsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service + = RestProxy.create(SqlPoolColumnsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for SynapseManagementClientSqlPoolColumns to be used by the proxy service - * to perform REST calls. + * The interface defining all the services for SynapseManagementClientSqlPoolColumns to be used by the proxy + * service to perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface SqlPoolColumnsService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}/columns" - + "/{columnName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("sqlPoolName") String sqlPoolName, - @PathParam("schemaName") String schemaName, - @PathParam("tableName") String tableName, - @PathParam("columnName") String columnName, - @HeaderParam("Accept") String accept, - Context context); + Mono> get(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("sqlPoolName") String sqlPoolName, @PathParam("schemaName") String schemaName, + @PathParam("tableName") String tableName, @PathParam("columnName") String columnName, + @HeaderParam("Accept") String accept, Context context); } /** * Get Sql pool column. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -87,24 +84,15 @@ Mono> get( * @return sql pool column along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName) { + private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String schemaName, String tableName, String columnName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -128,27 +116,14 @@ private Mono> getWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - schemaName, - tableName, - columnName, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get Sql pool column. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -162,25 +137,15 @@ private Mono> getWithResponseAsync( * @return sql pool column along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName, - Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String schemaName, String tableName, String columnName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -204,24 +169,13 @@ private Mono> getWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - schemaName, - tableName, - columnName, - accept, - context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, schemaName, tableName, columnName, accept, context); } /** * Get Sql pool column. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -234,20 +188,15 @@ private Mono> getWithResponseAsync( * @return sql pool column on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName) { + private Mono getAsync(String resourceGroupName, String workspaceName, String sqlPoolName, + String schemaName, String tableName, String columnName) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Get Sql pool column. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -261,22 +210,15 @@ private Mono getAsync( * @return sql pool column along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName, - Context context) { - return getWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, context) - .block(); + public Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, String schemaName, String tableName, String columnName, Context context) { + return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, + context).block(); } /** * Get Sql pool column. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -289,15 +231,9 @@ public Response getWithResponse( * @return sql pool column. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SqlPoolColumnInner get( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName) { - return getWithResponse( - resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, Context.NONE) - .getValue(); + public SqlPoolColumnInner get(String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, + String tableName, String columnName) { + return getWithResponse(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, + Context.NONE).getValue(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolColumnsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolColumnsImpl.java index 06ad95e8b32e..3339778b2b83 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolColumnsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolColumnsImpl.java @@ -20,45 +20,28 @@ public final class SqlPoolColumnsImpl implements SqlPoolColumns { private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public SqlPoolColumnsImpl( - SqlPoolColumnsClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + public SqlPoolColumnsImpl(SqlPoolColumnsClient innerClient, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName, - Context context) { - Response inner = - this - .serviceClient() - .getWithResponse( - resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, context); + public Response getWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + String schemaName, String tableName, String columnName, Context context) { + Response inner = this.serviceClient().getWithResponse(resourceGroupName, workspaceName, + sqlPoolName, schemaName, tableName, columnName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new SqlPoolColumnImpl(inner.getValue(), this.manager())); } else { return null; } } - public SqlPoolColumn get( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName) { - SqlPoolColumnInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName); + public SqlPoolColumn get(String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, + String tableName, String columnName) { + SqlPoolColumnInner inner = this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, schemaName, + tableName, columnName); if (inner != null) { return new SqlPoolColumnImpl(inner, this.manager()); } else { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolConnectionPoliciesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolConnectionPoliciesClientImpl.java index 69aa70072c47..bf7b1bb038df 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolConnectionPoliciesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolConnectionPoliciesClientImpl.java @@ -26,24 +26,28 @@ import com.azure.resourcemanager.synapse.models.ConnectionPolicyName; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in SqlPoolConnectionPoliciesClient. */ +/** + * An instance of this class provides access to all the operations defined in SqlPoolConnectionPoliciesClient. + */ public final class SqlPoolConnectionPoliciesClientImpl implements SqlPoolConnectionPoliciesClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final SqlPoolConnectionPoliciesService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of SqlPoolConnectionPoliciesClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ SqlPoolConnectionPoliciesClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy - .create( - SqlPoolConnectionPoliciesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service = RestProxy.create(SqlPoolConnectionPoliciesService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } @@ -54,29 +58,23 @@ public final class SqlPoolConnectionPoliciesClientImpl implements SqlPoolConnect @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface SqlPoolConnectionPoliciesService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/connectionPolicies/{connectionPolicyName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/connectionPolicies/{connectionPolicyName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono> get(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("sqlPoolName") String sqlPoolName, @PathParam("connectionPolicyName") ConnectionPolicyName connectionPolicyName, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); } /** * Get a Sql pool's connection policy, which is used with table auditing - * - *

Get a Sql pool's connection policy, which is used with table auditing. - * + * + * Get a Sql pool's connection policy, which is used with table auditing. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -85,22 +83,18 @@ Mono> get( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Sql pool's connection policy, which is used with table auditing along with {@link Response} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, ConnectionPolicyName connectionPolicyName) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, ConnectionPolicyName connectionPolicyName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -119,27 +113,16 @@ private Mono> getWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - connectionPolicyName, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, connectionPolicyName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get a Sql pool's connection policy, which is used with table auditing - * - *

Get a Sql pool's connection policy, which is used with table auditing. - * + * + * Get a Sql pool's connection policy, which is used with table auditing. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -149,26 +132,18 @@ private Mono> getWithResponseAsync( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Sql pool's connection policy, which is used with table auditing along with {@link Response} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - ConnectionPolicyName connectionPolicyName, - Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, ConnectionPolicyName connectionPolicyName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -187,24 +162,15 @@ private Mono> getWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - connectionPolicyName, - accept, - context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, connectionPolicyName, accept, context); } /** * Get a Sql pool's connection policy, which is used with table auditing - * - *

Get a Sql pool's connection policy, which is used with table auditing. - * + * + * Get a Sql pool's connection policy, which is used with table auditing. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -212,21 +178,21 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Sql pool's connection policy, which is used with table auditing on successful completion of {@link - * Mono}. + * @return a Sql pool's connection policy, which is used with table auditing on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, ConnectionPolicyName connectionPolicyName) { + private Mono getAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, ConnectionPolicyName connectionPolicyName) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, connectionPolicyName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Get a Sql pool's connection policy, which is used with table auditing - * - *

Get a Sql pool's connection policy, which is used with table auditing. - * + * + * Get a Sql pool's connection policy, which is used with table auditing. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -238,21 +204,17 @@ private Mono getAsync( * @return a Sql pool's connection policy, which is used with table auditing along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - ConnectionPolicyName connectionPolicyName, - Context context) { + public Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, ConnectionPolicyName connectionPolicyName, Context context) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, connectionPolicyName, context) .block(); } /** * Get a Sql pool's connection policy, which is used with table auditing - * - *

Get a Sql pool's connection policy, which is used with table auditing. - * + * + * Get a Sql pool's connection policy, which is used with table auditing. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -263,8 +225,8 @@ public Response getWithResponse( * @return a Sql pool's connection policy, which is used with table auditing. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SqlPoolConnectionPolicyInner get( - String resourceGroupName, String workspaceName, String sqlPoolName, ConnectionPolicyName connectionPolicyName) { + public SqlPoolConnectionPolicyInner get(String resourceGroupName, String workspaceName, String sqlPoolName, + ConnectionPolicyName connectionPolicyName) { return getWithResponse(resourceGroupName, workspaceName, sqlPoolName, connectionPolicyName, Context.NONE) .getValue(); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolConnectionPoliciesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolConnectionPoliciesImpl.java index 9253d8a7efed..4afabaa06e80 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolConnectionPoliciesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolConnectionPoliciesImpl.java @@ -21,37 +21,28 @@ public final class SqlPoolConnectionPoliciesImpl implements SqlPoolConnectionPol private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public SqlPoolConnectionPoliciesImpl( - SqlPoolConnectionPoliciesClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + public SqlPoolConnectionPoliciesImpl(SqlPoolConnectionPoliciesClient innerClient, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - ConnectionPolicyName connectionPolicyName, - Context context) { - Response inner = - this - .serviceClient() - .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, connectionPolicyName, context); + public Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, ConnectionPolicyName connectionPolicyName, Context context) { + Response inner = this.serviceClient().getWithResponse(resourceGroupName, + workspaceName, sqlPoolName, connectionPolicyName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new SqlPoolConnectionPolicyImpl(inner.getValue(), this.manager())); } else { return null; } } - public SqlPoolConnectionPolicy get( - String resourceGroupName, String workspaceName, String sqlPoolName, ConnectionPolicyName connectionPolicyName) { - SqlPoolConnectionPolicyInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, connectionPolicyName); + public SqlPoolConnectionPolicy get(String resourceGroupName, String workspaceName, String sqlPoolName, + ConnectionPolicyName connectionPolicyName) { + SqlPoolConnectionPolicyInner inner + = this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, connectionPolicyName); if (inner != null) { return new SqlPoolConnectionPolicyImpl(inner, this.manager()); } else { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolConnectionPolicyImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolConnectionPolicyImpl.java index b5b047f57b64..af968c6d9b8f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolConnectionPolicyImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolConnectionPolicyImpl.java @@ -12,8 +12,8 @@ public final class SqlPoolConnectionPolicyImpl implements SqlPoolConnectionPolic private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - SqlPoolConnectionPolicyImpl( - SqlPoolConnectionPolicyInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + SqlPoolConnectionPolicyImpl(SqlPoolConnectionPolicyInner innerObject, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolDataWarehouseUserActivitiesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolDataWarehouseUserActivitiesClientImpl.java index f66cd8b79cfe..098183724d70 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolDataWarehouseUserActivitiesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolDataWarehouseUserActivitiesClientImpl.java @@ -30,24 +30,24 @@ * An instance of this class provides access to all the operations defined in SqlPoolDataWarehouseUserActivitiesClient. */ public final class SqlPoolDataWarehouseUserActivitiesClientImpl implements SqlPoolDataWarehouseUserActivitiesClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final SqlPoolDataWarehouseUserActivitiesService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of SqlPoolDataWarehouseUserActivitiesClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ SqlPoolDataWarehouseUserActivitiesClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy - .create( - SqlPoolDataWarehouseUserActivitiesService.class, - client.getHttpPipeline(), - client.getSerializerAdapter()); + this.service = RestProxy.create(SqlPoolDataWarehouseUserActivitiesService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } @@ -58,29 +58,23 @@ public final class SqlPoolDataWarehouseUserActivitiesClientImpl implements SqlPo @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface SqlPoolDataWarehouseUserActivitiesService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/dataWarehouseUserActivities/{dataWarehouseUserActivityName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/dataWarehouseUserActivities/{dataWarehouseUserActivityName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono> get(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("sqlPoolName") String sqlPoolName, @PathParam("dataWarehouseUserActivityName") DataWarehouseUserActivityName dataWarehouseUserActivityName, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); } /** * Get SQL pool user activities - * - *

Gets the user activities of a SQL pool which includes running and suspended queries. - * + * + * Gets the user activities of a SQL pool which includes running and suspended queries. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -88,26 +82,19 @@ Mono> get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the user activities of a SQL pool which includes running and suspended queries along with {@link - * Response} on successful completion of {@link Mono}. + * @return the user activities of a SQL pool which includes running and suspended queries along with + * {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - DataWarehouseUserActivityName dataWarehouseUserActivityName) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, DataWarehouseUserActivityName dataWarehouseUserActivityName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -120,35 +107,22 @@ private Mono> getWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } if (dataWarehouseUserActivityName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter dataWarehouseUserActivityName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter dataWarehouseUserActivityName is required and cannot be null.")); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - dataWarehouseUserActivityName, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, dataWarehouseUserActivityName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get SQL pool user activities - * - *

Gets the user activities of a SQL pool which includes running and suspended queries. - * + * + * Gets the user activities of a SQL pool which includes running and suspended queries. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -157,27 +131,20 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the user activities of a SQL pool which includes running and suspended queries along with {@link - * Response} on successful completion of {@link Mono}. + * @return the user activities of a SQL pool which includes running and suspended queries along with + * {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - DataWarehouseUserActivityName dataWarehouseUserActivityName, + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, DataWarehouseUserActivityName dataWarehouseUserActivityName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -190,32 +157,21 @@ private Mono> getWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } if (dataWarehouseUserActivityName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter dataWarehouseUserActivityName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter dataWarehouseUserActivityName is required and cannot be null.")); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - dataWarehouseUserActivityName, - accept, - context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, dataWarehouseUserActivityName, accept, context); } /** * Get SQL pool user activities - * - *

Gets the user activities of a SQL pool which includes running and suspended queries. - * + * + * Gets the user activities of a SQL pool which includes running and suspended queries. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -224,23 +180,20 @@ private Mono> getWithResponseAsync( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the user activities of a SQL pool which includes running and suspended queries on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - DataWarehouseUserActivityName dataWarehouseUserActivityName) { + private Mono getAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, DataWarehouseUserActivityName dataWarehouseUserActivityName) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, dataWarehouseUserActivityName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Get SQL pool user activities - * - *

Gets the user activities of a SQL pool which includes running and suspended queries. - * + * + * Gets the user activities of a SQL pool which includes running and suspended queries. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -249,26 +202,21 @@ private Mono getAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the user activities of a SQL pool which includes running and suspended queries along with {@link - * Response}. + * @return the user activities of a SQL pool which includes running and suspended queries along with + * {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - DataWarehouseUserActivityName dataWarehouseUserActivityName, - Context context) { - return getWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, dataWarehouseUserActivityName, context) - .block(); + public Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, DataWarehouseUserActivityName dataWarehouseUserActivityName, Context context) { + return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, dataWarehouseUserActivityName, + context).block(); } /** * Get SQL pool user activities - * - *

Gets the user activities of a SQL pool which includes running and suspended queries. - * + * + * Gets the user activities of a SQL pool which includes running and suspended queries. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -279,13 +227,9 @@ public Response getWithResponse( * @return the user activities of a SQL pool which includes running and suspended queries. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DataWarehouseUserActivitiesInner get( - String resourceGroupName, - String workspaceName, - String sqlPoolName, + public DataWarehouseUserActivitiesInner get(String resourceGroupName, String workspaceName, String sqlPoolName, DataWarehouseUserActivityName dataWarehouseUserActivityName) { - return getWithResponse( - resourceGroupName, workspaceName, sqlPoolName, dataWarehouseUserActivityName, Context.NONE) - .getValue(); + return getWithResponse(resourceGroupName, workspaceName, sqlPoolName, dataWarehouseUserActivityName, + Context.NONE).getValue(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolDataWarehouseUserActivitiesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolDataWarehouseUserActivitiesImpl.java index afbedb5791cf..3f0dc5897288 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolDataWarehouseUserActivitiesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolDataWarehouseUserActivitiesImpl.java @@ -21,41 +21,28 @@ public final class SqlPoolDataWarehouseUserActivitiesImpl implements SqlPoolData private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public SqlPoolDataWarehouseUserActivitiesImpl( - SqlPoolDataWarehouseUserActivitiesClient innerClient, + public SqlPoolDataWarehouseUserActivitiesImpl(SqlPoolDataWarehouseUserActivitiesClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - DataWarehouseUserActivityName dataWarehouseUserActivityName, - Context context) { - Response inner = - this - .serviceClient() - .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, dataWarehouseUserActivityName, context); + public Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, DataWarehouseUserActivityName dataWarehouseUserActivityName, Context context) { + Response inner = this.serviceClient().getWithResponse(resourceGroupName, + workspaceName, sqlPoolName, dataWarehouseUserActivityName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new DataWarehouseUserActivitiesImpl(inner.getValue(), this.manager())); } else { return null; } } - public DataWarehouseUserActivities get( - String resourceGroupName, - String workspaceName, - String sqlPoolName, + public DataWarehouseUserActivities get(String resourceGroupName, String workspaceName, String sqlPoolName, DataWarehouseUserActivityName dataWarehouseUserActivityName) { - DataWarehouseUserActivitiesInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, dataWarehouseUserActivityName); + DataWarehouseUserActivitiesInner inner + = this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, dataWarehouseUserActivityName); if (inner != null) { return new DataWarehouseUserActivitiesImpl(inner, this.manager()); } else { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolGeoBackupPoliciesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolGeoBackupPoliciesClientImpl.java index 7ad403fce681..c29ea16ec268 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolGeoBackupPoliciesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolGeoBackupPoliciesClientImpl.java @@ -33,23 +33,28 @@ import com.azure.resourcemanager.synapse.models.GeoBackupPolicyName; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in SqlPoolGeoBackupPoliciesClient. */ +/** + * An instance of this class provides access to all the operations defined in SqlPoolGeoBackupPoliciesClient. + */ public final class SqlPoolGeoBackupPoliciesClientImpl implements SqlPoolGeoBackupPoliciesClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final SqlPoolGeoBackupPoliciesService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of SqlPoolGeoBackupPoliciesClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ SqlPoolGeoBackupPoliciesClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy - .create(SqlPoolGeoBackupPoliciesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service = RestProxy.create(SqlPoolGeoBackupPoliciesService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } @@ -60,86 +65,63 @@ public final class SqlPoolGeoBackupPoliciesClientImpl implements SqlPoolGeoBacku @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface SqlPoolGeoBackupPoliciesService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/geoBackupPolicies") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/geoBackupPolicies") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("sqlPoolName") String sqlPoolName, - @HeaderParam("Accept") String accept, - Context context); + Mono> list(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("sqlPoolName") String sqlPoolName, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/geoBackupPolicies/{geoBackupPolicyName}") - @ExpectedResponses({200, 201}) + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/geoBackupPolicies/{geoBackupPolicyName}") + @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono> createOrUpdate(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("sqlPoolName") String sqlPoolName, @PathParam("geoBackupPolicyName") GeoBackupPolicyName geoBackupPolicyName, - @BodyParam("application/json") GeoBackupPolicyInner parameters, - @HeaderParam("Accept") String accept, + @BodyParam("application/json") GeoBackupPolicyInner parameters, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/geoBackupPolicies/{geoBackupPolicyName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/geoBackupPolicies/{geoBackupPolicyName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono> get(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("sqlPoolName") String sqlPoolName, @PathParam("geoBackupPolicyName") GeoBackupPolicyName geoBackupPolicyName, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); } /** * List SQL pool geo backup policies - * - *

Get list of SQL pool geo backup policies. - * + * + * Get list of SQL pool geo backup policies. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of SQL pool geo backup policies along with {@link PagedResponse} on successful completion of {@link - * Mono}. + * @return list of SQL pool geo backup policies along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String workspaceName, String sqlPoolName) { + private Mono> listSinglePageAsync(String resourceGroupName, + String workspaceName, String sqlPoolName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -154,30 +136,18 @@ private Mono> listSinglePageAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * List SQL pool geo backup policies - * - *

Get list of SQL pool geo backup policies. - * + * + * Get list of SQL pool geo backup policies. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -185,23 +155,19 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of SQL pool geo backup policies along with {@link PagedResponse} on successful completion of {@link - * Mono}. + * @return list of SQL pool geo backup policies along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + private Mono> listSinglePageAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -217,26 +183,17 @@ private Mono> listSinglePageAsync( final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null)); + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), null, null)); } /** * List SQL pool geo backup policies - * - *

Get list of SQL pool geo backup policies. - * + * + * Get list of SQL pool geo backup policies. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -246,16 +203,16 @@ private Mono> listSinglePageAsync( * @return list of SQL pool geo backup policies as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( - String resourceGroupName, String workspaceName, String sqlPoolName) { + private PagedFlux listAsync(String resourceGroupName, String workspaceName, + String sqlPoolName) { return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName)); } /** * List SQL pool geo backup policies - * - *

Get list of SQL pool geo backup policies. - * + * + * Get list of SQL pool geo backup policies. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -266,16 +223,16 @@ private PagedFlux listAsync( * @return list of SQL pool geo backup policies as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + private PagedFlux listAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context) { return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName, context)); } /** * List SQL pool geo backup policies - * - *

Get list of SQL pool geo backup policies. - * + * + * Get list of SQL pool geo backup policies. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -285,16 +242,16 @@ private PagedFlux listAsync( * @return list of SQL pool geo backup policies as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName) { + public PagedIterable list(String resourceGroupName, String workspaceName, + String sqlPoolName) { return new PagedIterable<>(listAsync(resourceGroupName, workspaceName, sqlPoolName)); } /** * List SQL pool geo backup policies - * - *

Get list of SQL pool geo backup policies. - * + * + * Get list of SQL pool geo backup policies. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -305,14 +262,14 @@ public PagedIterable list( * @return list of SQL pool geo backup policies as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + public PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName, + Context context) { return new PagedIterable<>(listAsync(resourceGroupName, workspaceName, sqlPoolName, context)); } /** * Updates a SQL Pool geo backup policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -324,23 +281,16 @@ public PagedIterable list( * @return a database geo backup policy along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - GeoBackupPolicyName geoBackupPolicyName, + private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, GeoBackupPolicyName geoBackupPolicyName, GeoBackupPolicyInner parameters) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -364,26 +314,15 @@ private Mono> createOrUpdateWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - geoBackupPolicyName, - parameters, - accept, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, geoBackupPolicyName, + parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Updates a SQL Pool geo backup policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -396,24 +335,16 @@ private Mono> createOrUpdateWithResponseAsync( * @return a database geo backup policy along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - GeoBackupPolicyName geoBackupPolicyName, - GeoBackupPolicyInner parameters, - Context context) { + private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, GeoBackupPolicyName geoBackupPolicyName, + GeoBackupPolicyInner parameters, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -437,23 +368,13 @@ private Mono> createOrUpdateWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - geoBackupPolicyName, - parameters, - accept, - context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, geoBackupPolicyName, parameters, accept, context); } /** * Updates a SQL Pool geo backup policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -465,20 +386,15 @@ private Mono> createOrUpdateWithResponseAsync( * @return a database geo backup policy on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - GeoBackupPolicyName geoBackupPolicyName, - GeoBackupPolicyInner parameters) { - return createOrUpdateWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, geoBackupPolicyName, parameters) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + private Mono createOrUpdateAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, GeoBackupPolicyName geoBackupPolicyName, GeoBackupPolicyInner parameters) { + return createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, geoBackupPolicyName, + parameters).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Updates a SQL Pool geo backup policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -491,21 +407,15 @@ private Mono createOrUpdateAsync( * @return a database geo backup policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - GeoBackupPolicyName geoBackupPolicyName, - GeoBackupPolicyInner parameters, - Context context) { - return createOrUpdateWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, geoBackupPolicyName, parameters, context) - .block(); + public Response createOrUpdateWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, GeoBackupPolicyName geoBackupPolicyName, GeoBackupPolicyInner parameters, Context context) { + return createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, geoBackupPolicyName, + parameters, context).block(); } /** * Updates a SQL Pool geo backup policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -517,22 +427,17 @@ public Response createOrUpdateWithResponse( * @return a database geo backup policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - public GeoBackupPolicyInner createOrUpdate( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - GeoBackupPolicyName geoBackupPolicyName, - GeoBackupPolicyInner parameters) { - return createOrUpdateWithResponse( - resourceGroupName, workspaceName, sqlPoolName, geoBackupPolicyName, parameters, Context.NONE) - .getValue(); + public GeoBackupPolicyInner createOrUpdate(String resourceGroupName, String workspaceName, String sqlPoolName, + GeoBackupPolicyName geoBackupPolicyName, GeoBackupPolicyInner parameters) { + return createOrUpdateWithResponse(resourceGroupName, workspaceName, sqlPoolName, geoBackupPolicyName, + parameters, Context.NONE).getValue(); } /** * Get a SQL pool geo backup policy - * - *

Get the specified SQL pool geo backup policy. - * + * + * Get the specified SQL pool geo backup policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -540,23 +445,19 @@ public GeoBackupPolicyInner createOrUpdate( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified SQL pool geo backup policy along with {@link Response} on successful completion of {@link - * Mono}. + * @return the specified SQL pool geo backup policy along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, GeoBackupPolicyName geoBackupPolicyName) { + private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, GeoBackupPolicyName geoBackupPolicyName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -575,27 +476,16 @@ private Mono> getWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - geoBackupPolicyName, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, geoBackupPolicyName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get a SQL pool geo backup policy - * - *

Get the specified SQL pool geo backup policy. - * + * + * Get the specified SQL pool geo backup policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -604,27 +494,19 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified SQL pool geo backup policy along with {@link Response} on successful completion of {@link - * Mono}. + * @return the specified SQL pool geo backup policy along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - GeoBackupPolicyName geoBackupPolicyName, - Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, GeoBackupPolicyName geoBackupPolicyName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -643,24 +525,15 @@ private Mono> getWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - geoBackupPolicyName, - accept, - context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, geoBackupPolicyName, accept, context); } /** * Get a SQL pool geo backup policy - * - *

Get the specified SQL pool geo backup policy. - * + * + * Get the specified SQL pool geo backup policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -671,17 +544,17 @@ private Mono> getWithResponseAsync( * @return the specified SQL pool geo backup policy on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, GeoBackupPolicyName geoBackupPolicyName) { + private Mono getAsync(String resourceGroupName, String workspaceName, String sqlPoolName, + GeoBackupPolicyName geoBackupPolicyName) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, geoBackupPolicyName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Get a SQL pool geo backup policy - * - *

Get the specified SQL pool geo backup policy. - * + * + * Get the specified SQL pool geo backup policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -693,21 +566,17 @@ private Mono getAsync( * @return the specified SQL pool geo backup policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - GeoBackupPolicyName geoBackupPolicyName, - Context context) { + public Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, GeoBackupPolicyName geoBackupPolicyName, Context context) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, geoBackupPolicyName, context) .block(); } /** * Get a SQL pool geo backup policy - * - *

Get the specified SQL pool geo backup policy. - * + * + * Get the specified SQL pool geo backup policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -718,8 +587,8 @@ public Response getWithResponse( * @return the specified SQL pool geo backup policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - public GeoBackupPolicyInner get( - String resourceGroupName, String workspaceName, String sqlPoolName, GeoBackupPolicyName geoBackupPolicyName) { + public GeoBackupPolicyInner get(String resourceGroupName, String workspaceName, String sqlPoolName, + GeoBackupPolicyName geoBackupPolicyName) { return getWithResponse(resourceGroupName, workspaceName, sqlPoolName, geoBackupPolicyName, Context.NONE) .getValue(); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolGeoBackupPoliciesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolGeoBackupPoliciesImpl.java index c38a76edf276..70f059e65899 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolGeoBackupPoliciesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolGeoBackupPoliciesImpl.java @@ -22,50 +22,41 @@ public final class SqlPoolGeoBackupPoliciesImpl implements SqlPoolGeoBackupPolic private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public SqlPoolGeoBackupPoliciesImpl( - SqlPoolGeoBackupPoliciesClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + public SqlPoolGeoBackupPoliciesImpl(SqlPoolGeoBackupPoliciesClient innerClient, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } public PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName) { - PagedIterable inner = - this.serviceClient().list(resourceGroupName, workspaceName, sqlPoolName); - return Utils.mapPage(inner, inner1 -> new GeoBackupPolicyImpl(inner1, this.manager())); + PagedIterable inner + = this.serviceClient().list(resourceGroupName, workspaceName, sqlPoolName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new GeoBackupPolicyImpl(inner1, this.manager())); } - public PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { - PagedIterable inner = - this.serviceClient().list(resourceGroupName, workspaceName, sqlPoolName, context); - return Utils.mapPage(inner, inner1 -> new GeoBackupPolicyImpl(inner1, this.manager())); + public PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName, + Context context) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, workspaceName, sqlPoolName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new GeoBackupPolicyImpl(inner1, this.manager())); } - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - GeoBackupPolicyName geoBackupPolicyName, - Context context) { - Response inner = - this - .serviceClient() - .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, geoBackupPolicyName, context); + public Response getWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + GeoBackupPolicyName geoBackupPolicyName, Context context) { + Response inner = this.serviceClient().getWithResponse(resourceGroupName, workspaceName, + sqlPoolName, geoBackupPolicyName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new GeoBackupPolicyImpl(inner.getValue(), this.manager())); } else { return null; } } - public GeoBackupPolicy get( - String resourceGroupName, String workspaceName, String sqlPoolName, GeoBackupPolicyName geoBackupPolicyName) { - GeoBackupPolicyInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, geoBackupPolicyName); + public GeoBackupPolicy get(String resourceGroupName, String workspaceName, String sqlPoolName, + GeoBackupPolicyName geoBackupPolicyName) { + GeoBackupPolicyInner inner + = this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, geoBackupPolicyName); if (inner != null) { return new GeoBackupPolicyImpl(inner, this.manager()); } else { @@ -74,74 +65,51 @@ public GeoBackupPolicy get( } public GeoBackupPolicy getById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); + String sqlPoolName = ResourceManagerUtils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } - String geoBackupPolicyNameLocal = Utils.getValueFromIdByName(id, "geoBackupPolicies"); + String geoBackupPolicyNameLocal = ResourceManagerUtils.getValueFromIdByName(id, "geoBackupPolicies"); if (geoBackupPolicyNameLocal == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'geoBackupPolicies'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'geoBackupPolicies'.", id))); } GeoBackupPolicyName geoBackupPolicyName = GeoBackupPolicyName.fromString(geoBackupPolicyNameLocal); - return this - .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, geoBackupPolicyName, Context.NONE) + return this.getWithResponse(resourceGroupName, workspaceName, sqlPoolName, geoBackupPolicyName, Context.NONE) .getValue(); } public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); + String sqlPoolName = ResourceManagerUtils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } - String geoBackupPolicyNameLocal = Utils.getValueFromIdByName(id, "geoBackupPolicies"); + String geoBackupPolicyNameLocal = ResourceManagerUtils.getValueFromIdByName(id, "geoBackupPolicies"); if (geoBackupPolicyNameLocal == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'geoBackupPolicies'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'geoBackupPolicies'.", id))); } GeoBackupPolicyName geoBackupPolicyName = GeoBackupPolicyName.fromString(geoBackupPolicyNameLocal); return this.getWithResponse(resourceGroupName, workspaceName, sqlPoolName, geoBackupPolicyName, context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolImpl.java index 9ca3d9e8bd25..52a0e672f68e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolImpl.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.synapse.implementation; -import com.azure.core.http.rest.Response; import com.azure.core.management.Region; import com.azure.core.util.Context; import com.azure.resourcemanager.synapse.fluent.models.SqlPoolInner; import com.azure.resourcemanager.synapse.models.CreateMode; -import com.azure.resourcemanager.synapse.models.ResourceMoveDefinition; import com.azure.resourcemanager.synapse.models.Sku; import com.azure.resourcemanager.synapse.models.SqlPool; import com.azure.resourcemanager.synapse.models.SqlPoolPatchInfo; @@ -131,20 +129,14 @@ public SqlPoolImpl withExistingWorkspace(String resourceGroupName, String worksp } public SqlPool create() { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPools() - .create(resourceGroupName, workspaceName, sqlPoolName, this.innerModel(), Context.NONE); + this.innerObject = serviceManager.serviceClient().getSqlPools().create(resourceGroupName, workspaceName, + sqlPoolName, this.innerModel(), Context.NONE); return this; } public SqlPool create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPools() - .create(resourceGroupName, workspaceName, sqlPoolName, this.innerModel(), context); + this.innerObject = serviceManager.serviceClient().getSqlPools().create(resourceGroupName, workspaceName, + sqlPoolName, this.innerModel(), context); return this; } @@ -160,48 +152,34 @@ public SqlPoolImpl update() { } public SqlPool apply() { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPools() - .update(resourceGroupName, workspaceName, sqlPoolName, updateSqlPoolInfo, Context.NONE); + this.innerObject = serviceManager.serviceClient().getSqlPools().update(resourceGroupName, workspaceName, + sqlPoolName, updateSqlPoolInfo, Context.NONE); return this; } public SqlPool apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPools() - .update(resourceGroupName, workspaceName, sqlPoolName, updateSqlPoolInfo, context); + this.innerObject = serviceManager.serviceClient().getSqlPools().update(resourceGroupName, workspaceName, + sqlPoolName, updateSqlPoolInfo, context); return this; } SqlPoolImpl(SqlPoolInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.workspaceName = Utils.getValueFromIdByName(innerObject.id(), "workspaces"); - this.sqlPoolName = Utils.getValueFromIdByName(innerObject.id(), "sqlPools"); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.workspaceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workspaces"); + this.sqlPoolName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "sqlPools"); } public SqlPool refresh() { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPools() - .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getSqlPools() + .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, Context.NONE).getValue(); return this; } public SqlPool refresh(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPools() - .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getSqlPools() + .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, context).getValue(); return this; } @@ -221,16 +199,6 @@ public SqlPool resume(Context context) { return serviceManager.sqlPools().resume(resourceGroupName, workspaceName, sqlPoolName, context); } - public Response renameWithResponse(ResourceMoveDefinition parameters, Context context) { - return serviceManager - .sqlPools() - .renameWithResponse(resourceGroupName, workspaceName, sqlPoolName, parameters, context); - } - - public void rename(ResourceMoveDefinition parameters) { - serviceManager.sqlPools().rename(resourceGroupName, workspaceName, sqlPoolName, parameters); - } - public SqlPoolImpl withRegion(Region location) { this.innerModel().withLocation(location.toString()); return this; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMaintenanceWindowOptionsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMaintenanceWindowOptionsClientImpl.java index 47679b32fc2c..6c52527dcda1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMaintenanceWindowOptionsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMaintenanceWindowOptionsClientImpl.java @@ -25,26 +25,28 @@ import com.azure.resourcemanager.synapse.fluent.models.MaintenanceWindowOptionsInner; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in SqlPoolMaintenanceWindowOptionsClient. */ +/** + * An instance of this class provides access to all the operations defined in SqlPoolMaintenanceWindowOptionsClient. + */ public final class SqlPoolMaintenanceWindowOptionsClientImpl implements SqlPoolMaintenanceWindowOptionsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final SqlPoolMaintenanceWindowOptionsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of SqlPoolMaintenanceWindowOptionsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ SqlPoolMaintenanceWindowOptionsClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy - .create( - SqlPoolMaintenanceWindowOptionsService.class, - client.getHttpPipeline(), - client.getSerializerAdapter()); + this.service = RestProxy.create(SqlPoolMaintenanceWindowOptionsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } @@ -55,29 +57,23 @@ public final class SqlPoolMaintenanceWindowOptionsClientImpl implements SqlPoolM @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface SqlPoolMaintenanceWindowOptionsService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/maintenanceWindowOptions/current") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/maintenanceWindowOptions/current") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono> get(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("sqlPoolName") String sqlPoolName, @QueryParam("maintenanceWindowOptionsName") String maintenanceWindowOptionsName, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); } /** * SQL pool's available maintenance windows. - * - *

Get list of SQL pool's available maintenance windows. - * + * + * Get list of SQL pool's available maintenance windows. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -86,22 +82,18 @@ Mono> get( * @throws 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 SQL pool's available maintenance windows along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, String maintenanceWindowOptionsName) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, String maintenanceWindowOptionsName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -114,35 +106,22 @@ private Mono> getWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } if (maintenanceWindowOptionsName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter maintenanceWindowOptionsName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter maintenanceWindowOptionsName is required and cannot be null.")); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - maintenanceWindowOptionsName, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowOptionsName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * SQL pool's available maintenance windows. - * - *

Get list of SQL pool's available maintenance windows. - * + * + * Get list of SQL pool's available maintenance windows. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -152,26 +131,18 @@ private Mono> getWithResponseAsync( * @throws 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 SQL pool's available maintenance windows along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String maintenanceWindowOptionsName, - Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, String maintenanceWindowOptionsName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -184,32 +155,21 @@ private Mono> getWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } if (maintenanceWindowOptionsName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter maintenanceWindowOptionsName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter maintenanceWindowOptionsName is required and cannot be null.")); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - maintenanceWindowOptionsName, - accept, - context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, maintenanceWindowOptionsName, accept, context); } /** * SQL pool's available maintenance windows. - * - *

Get list of SQL pool's available maintenance windows. - * + * + * Get list of SQL pool's available maintenance windows. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -220,17 +180,17 @@ private Mono> getWithResponseAsync( * @return list of SQL pool's available maintenance windows on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, String maintenanceWindowOptionsName) { + private Mono getAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String maintenanceWindowOptionsName) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowOptionsName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * SQL pool's available maintenance windows. - * - *

Get list of SQL pool's available maintenance windows. - * + * + * Get list of SQL pool's available maintenance windows. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -242,22 +202,17 @@ private Mono getAsync( * @return list of SQL pool's available maintenance windows along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String maintenanceWindowOptionsName, - Context context) { - return getWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowOptionsName, context) - .block(); + public Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, String maintenanceWindowOptionsName, Context context) { + return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowOptionsName, + context).block(); } /** * SQL pool's available maintenance windows. - * - *

Get list of SQL pool's available maintenance windows. - * + * + * Get list of SQL pool's available maintenance windows. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -268,10 +223,9 @@ public Response getWithResponse( * @return list of SQL pool's available maintenance windows. */ @ServiceMethod(returns = ReturnType.SINGLE) - public MaintenanceWindowOptionsInner get( - String resourceGroupName, String workspaceName, String sqlPoolName, String maintenanceWindowOptionsName) { - return getWithResponse( - resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowOptionsName, Context.NONE) - .getValue(); + public MaintenanceWindowOptionsInner get(String resourceGroupName, String workspaceName, String sqlPoolName, + String maintenanceWindowOptionsName) { + return getWithResponse(resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowOptionsName, + Context.NONE).getValue(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMaintenanceWindowOptionsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMaintenanceWindowOptionsImpl.java index 9acd06326e95..0bed28df151b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMaintenanceWindowOptionsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMaintenanceWindowOptionsImpl.java @@ -20,38 +20,28 @@ public final class SqlPoolMaintenanceWindowOptionsImpl implements SqlPoolMainten private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public SqlPoolMaintenanceWindowOptionsImpl( - SqlPoolMaintenanceWindowOptionsClient innerClient, + public SqlPoolMaintenanceWindowOptionsImpl(SqlPoolMaintenanceWindowOptionsClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String maintenanceWindowOptionsName, - Context context) { - Response inner = - this - .serviceClient() - .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowOptionsName, context); + public Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, String maintenanceWindowOptionsName, Context context) { + Response inner = this.serviceClient().getWithResponse(resourceGroupName, + workspaceName, sqlPoolName, maintenanceWindowOptionsName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new MaintenanceWindowOptionsImpl(inner.getValue(), this.manager())); } else { return null; } } - public MaintenanceWindowOptions get( - String resourceGroupName, String workspaceName, String sqlPoolName, String maintenanceWindowOptionsName) { - MaintenanceWindowOptionsInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowOptionsName); + public MaintenanceWindowOptions get(String resourceGroupName, String workspaceName, String sqlPoolName, + String maintenanceWindowOptionsName) { + MaintenanceWindowOptionsInner inner + = this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowOptionsName); if (inner != null) { return new MaintenanceWindowOptionsImpl(inner, this.manager()); } else { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMaintenanceWindowsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMaintenanceWindowsClientImpl.java index 7772a1ee3680..bf1de2f905ef 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMaintenanceWindowsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMaintenanceWindowsClientImpl.java @@ -27,24 +27,28 @@ import com.azure.resourcemanager.synapse.fluent.models.MaintenanceWindowsInner; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in SqlPoolMaintenanceWindowsClient. */ +/** + * An instance of this class provides access to all the operations defined in SqlPoolMaintenanceWindowsClient. + */ public final class SqlPoolMaintenanceWindowsClientImpl implements SqlPoolMaintenanceWindowsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final SqlPoolMaintenanceWindowsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of SqlPoolMaintenanceWindowsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ SqlPoolMaintenanceWindowsClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy - .create( - SqlPoolMaintenanceWindowsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service = RestProxy.create(SqlPoolMaintenanceWindowsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } @@ -55,44 +59,32 @@ public final class SqlPoolMaintenanceWindowsClientImpl implements SqlPoolMainten @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface SqlPoolMaintenanceWindowsService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/maintenancewindows/current") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/maintenancewindows/current") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono> get(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("sqlPoolName") String sqlPoolName, - @QueryParam("maintenanceWindowName") String maintenanceWindowName, - @HeaderParam("Accept") String accept, + @QueryParam("maintenanceWindowName") String maintenanceWindowName, @HeaderParam("Accept") String accept, Context context); - @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/maintenancewindows/current") - @ExpectedResponses({200}) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/maintenancewindows/current") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono> createOrUpdate(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("sqlPoolName") String sqlPoolName, @QueryParam("maintenanceWindowName") String maintenanceWindowName, - @BodyParam("application/json") MaintenanceWindowsInner parameters, - Context context); + @BodyParam("application/json") MaintenanceWindowsInner parameters, Context context); } /** * Get a SQL pool's Maintenance Windows. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -103,19 +95,15 @@ Mono> createOrUpdate( * @return a SQL pool's Maintenance Windows along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, String maintenanceWindowName) { + private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String maintenanceWindowName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -134,25 +122,14 @@ private Mono> getWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - maintenanceWindowName, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get a SQL pool's Maintenance Windows. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -164,23 +141,15 @@ private Mono> getWithResponseAsync( * @return a SQL pool's Maintenance Windows along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String maintenanceWindowName, - Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String maintenanceWindowName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -199,22 +168,13 @@ private Mono> getWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - maintenanceWindowName, - accept, - context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, maintenanceWindowName, accept, context); } /** * Get a SQL pool's Maintenance Windows. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -225,15 +185,15 @@ private Mono> getWithResponseAsync( * @return a SQL pool's Maintenance Windows on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, String maintenanceWindowName) { + private Mono getAsync(String resourceGroupName, String workspaceName, String sqlPoolName, + String maintenanceWindowName) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Get a SQL pool's Maintenance Windows. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -245,19 +205,15 @@ private Mono getAsync( * @return a SQL pool's Maintenance Windows along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String maintenanceWindowName, - Context context) { + public Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, String maintenanceWindowName, Context context) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowName, context) .block(); } /** * Get a SQL pool's Maintenance Windows. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -268,15 +224,15 @@ public Response getWithResponse( * @return a SQL pool's Maintenance Windows. */ @ServiceMethod(returns = ReturnType.SINGLE) - public MaintenanceWindowsInner get( - String resourceGroupName, String workspaceName, String sqlPoolName, String maintenanceWindowName) { + public MaintenanceWindowsInner get(String resourceGroupName, String workspaceName, String sqlPoolName, + String maintenanceWindowName) { return getWithResponse(resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowName, Context.NONE) .getValue(); } /** * Creates or updates a Sql pool's maintenance windows settings. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -288,23 +244,15 @@ public MaintenanceWindowsInner get( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String maintenanceWindowName, - MaintenanceWindowsInner parameters) { + private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String maintenanceWindowName, MaintenanceWindowsInner parameters) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -327,25 +275,15 @@ private Mono> createOrUpdateWithResponseAsync( } final String apiVersion = "2021-06-01"; return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - maintenanceWindowName, - parameters, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowName, + parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates a Sql pool's maintenance windows settings. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -358,24 +296,15 @@ private Mono> createOrUpdateWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String maintenanceWindowName, - MaintenanceWindowsInner parameters, - Context context) { + private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String maintenanceWindowName, MaintenanceWindowsInner parameters, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -398,22 +327,13 @@ private Mono> createOrUpdateWithResponseAsync( } final String apiVersion = "2021-06-01"; context = this.client.mergeContext(context); - return service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - maintenanceWindowName, - parameters, - context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowName, parameters, context); } /** * Creates or updates a Sql pool's maintenance windows settings. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -425,20 +345,15 @@ private Mono> createOrUpdateWithResponseAsync( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String maintenanceWindowName, - MaintenanceWindowsInner parameters) { - return createOrUpdateWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowName, parameters) - .flatMap(ignored -> Mono.empty()); + private Mono createOrUpdateAsync(String resourceGroupName, String workspaceName, String sqlPoolName, + String maintenanceWindowName, MaintenanceWindowsInner parameters) { + return createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowName, + parameters).flatMap(ignored -> Mono.empty()); } /** * Creates or updates a Sql pool's maintenance windows settings. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -451,21 +366,15 @@ private Mono createOrUpdateAsync( * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String maintenanceWindowName, - MaintenanceWindowsInner parameters, - Context context) { - return createOrUpdateWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowName, parameters, context) - .block(); + public Response createOrUpdateWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + String maintenanceWindowName, MaintenanceWindowsInner parameters, Context context) { + return createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowName, + parameters, context).block(); } /** * Creates or updates a Sql pool's maintenance windows settings. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -476,13 +385,9 @@ public Response createOrUpdateWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void createOrUpdate( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String maintenanceWindowName, - MaintenanceWindowsInner parameters) { - createOrUpdateWithResponse( - resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowName, parameters, Context.NONE); + public void createOrUpdate(String resourceGroupName, String workspaceName, String sqlPoolName, + String maintenanceWindowName, MaintenanceWindowsInner parameters) { + createOrUpdateWithResponse(resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowName, parameters, + Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMaintenanceWindowsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMaintenanceWindowsImpl.java index 6133208e6546..f969846453c7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMaintenanceWindowsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMaintenanceWindowsImpl.java @@ -20,37 +20,28 @@ public final class SqlPoolMaintenanceWindowsImpl implements SqlPoolMaintenanceWi private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public SqlPoolMaintenanceWindowsImpl( - SqlPoolMaintenanceWindowsClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + public SqlPoolMaintenanceWindowsImpl(SqlPoolMaintenanceWindowsClient innerClient, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String maintenanceWindowName, - Context context) { - Response inner = - this - .serviceClient() - .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowName, context); + public Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, String maintenanceWindowName, Context context) { + Response inner = this.serviceClient().getWithResponse(resourceGroupName, workspaceName, + sqlPoolName, maintenanceWindowName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new MaintenanceWindowsImpl(inner.getValue(), this.manager())); } else { return null; } } - public MaintenanceWindows get( - String resourceGroupName, String workspaceName, String sqlPoolName, String maintenanceWindowName) { - MaintenanceWindowsInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowName); + public MaintenanceWindows get(String resourceGroupName, String workspaceName, String sqlPoolName, + String maintenanceWindowName) { + MaintenanceWindowsInner inner + = this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowName); if (inner != null) { return new MaintenanceWindowsImpl(inner, this.manager()); } else { @@ -58,28 +49,16 @@ public MaintenanceWindows get( } } - public Response createOrUpdateWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String maintenanceWindowName, - MaintenanceWindowsInner parameters, - Context context) { - return this - .serviceClient() - .createOrUpdateWithResponse( - resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowName, parameters, context); + public Response createOrUpdateWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + String maintenanceWindowName, MaintenanceWindowsInner parameters, Context context) { + return this.serviceClient().createOrUpdateWithResponse(resourceGroupName, workspaceName, sqlPoolName, + maintenanceWindowName, parameters, context); } - public void createOrUpdate( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String maintenanceWindowName, - MaintenanceWindowsInner parameters) { - this - .serviceClient() - .createOrUpdate(resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowName, parameters); + public void createOrUpdate(String resourceGroupName, String workspaceName, String sqlPoolName, + String maintenanceWindowName, MaintenanceWindowsInner parameters) { + this.serviceClient().createOrUpdate(resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowName, + parameters); } private SqlPoolMaintenanceWindowsClient serviceClient() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMetadataSyncConfigsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMetadataSyncConfigsClientImpl.java index a05a778f061e..721ec1171943 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMetadataSyncConfigsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMetadataSyncConfigsClientImpl.java @@ -27,24 +27,28 @@ import com.azure.resourcemanager.synapse.fluent.models.MetadataSyncConfigInner; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in SqlPoolMetadataSyncConfigsClient. */ +/** + * An instance of this class provides access to all the operations defined in SqlPoolMetadataSyncConfigsClient. + */ public final class SqlPoolMetadataSyncConfigsClientImpl implements SqlPoolMetadataSyncConfigsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final SqlPoolMetadataSyncConfigsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of SqlPoolMetadataSyncConfigsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ SqlPoolMetadataSyncConfigsClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy - .create( - SqlPoolMetadataSyncConfigsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service = RestProxy.create(SqlPoolMetadataSyncConfigsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } @@ -55,68 +59,54 @@ public final class SqlPoolMetadataSyncConfigsClientImpl implements SqlPoolMetada @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface SqlPoolMetadataSyncConfigsService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/metadataSync/config") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/metadataSync/config") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(value = ManagementException.class, code = { 404 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("sqlPoolName") String sqlPoolName, - @HeaderParam("Accept") String accept, - Context context); + Mono> get(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("sqlPoolName") String sqlPoolName, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/metadataSync/config") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/metadataSync/config") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(value = ManagementException.class, code = { 404 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> create( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono> create(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("sqlPoolName") String sqlPoolName, @BodyParam("application/json") MetadataSyncConfigInner metadataSyncConfiguration, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); } /** * Get SQL pool metadata sync config - * - *

Get the metadata sync configuration for a SQL pool. - * + * + * Get the metadata sync configuration for a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. + * @throws ManagementException thrown if the request is rejected by server on status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the metadata sync configuration for a SQL pool along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, String sqlPoolName) { + private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -131,50 +121,37 @@ private Mono> getWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get SQL pool metadata sync config - * - *

Get the metadata sync configuration for a SQL pool. - * + * + * Get the metadata sync configuration for a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. + * @throws ManagementException thrown if the request is rejected by server on status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the metadata sync configuration for a SQL pool along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -189,28 +166,21 @@ private Mono> getWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - accept, - context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, accept, context); } /** * Get SQL pool metadata sync config - * - *

Get the metadata sync configuration for a SQL pool. - * + * + * Get the metadata sync configuration for a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. + * @throws ManagementException thrown if the request is rejected by server on status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the metadata sync configuration for a SQL pool on successful completion of {@link Mono}. */ @@ -222,34 +192,36 @@ private Mono getAsync(String resourceGroupName, String /** * Get SQL pool metadata sync config - * - *

Get the metadata sync configuration for a SQL pool. - * + * + * Get the metadata sync configuration for a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. + * @throws ManagementException thrown if the request is rejected by server on status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the metadata sync configuration for a SQL pool along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + public Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, context).block(); } /** * Get SQL pool metadata sync config - * - *

Get the metadata sync configuration for a SQL pool. - * + * + * Get the metadata sync configuration for a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. + * @throws ManagementException thrown if the request is rejected by server on status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the metadata sync configuration for a SQL pool. */ @@ -260,35 +232,29 @@ public MetadataSyncConfigInner get(String resourceGroupName, String workspaceNam /** * Set SQL pool metadata sync config - * - *

Set the metadata sync configuration for a SQL pool. - * + * + * Set the metadata sync configuration for a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param metadataSyncConfiguration Metadata sync configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. + * @throws ManagementException thrown if the request is rejected by server on status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return metadata sync configuration along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - MetadataSyncConfigInner metadataSyncConfiguration) { + private Mono> createWithResponseAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, MetadataSyncConfigInner metadataSyncConfiguration) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -301,10 +267,8 @@ private Mono> createWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } if (metadataSyncConfiguration == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter metadataSyncConfiguration is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter metadataSyncConfiguration is required and cannot be null.")); } else { metadataSyncConfiguration.validate(); } @@ -312,26 +276,16 @@ private Mono> createWithResponseAsync( final String accept = "application/json"; return FluxUtil .withContext( - context -> - service - .create( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - metadataSyncConfiguration, - accept, - context)) + context -> service.create(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, metadataSyncConfiguration, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Set SQL pool metadata sync config - * - *

Set the metadata sync configuration for a SQL pool. - * + * + * Set the metadata sync configuration for a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -339,27 +293,20 @@ private Mono> createWithResponseAsync( * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. + * @throws ManagementException thrown if the request is rejected by server on status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return metadata sync configuration along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - MetadataSyncConfigInner metadataSyncConfiguration, - Context context) { + private Mono> createWithResponseAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, MetadataSyncConfigInner metadataSyncConfiguration, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -372,58 +319,45 @@ private Mono> createWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } if (metadataSyncConfiguration == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter metadataSyncConfiguration is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter metadataSyncConfiguration is required and cannot be null.")); } else { metadataSyncConfiguration.validate(); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .create( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - metadataSyncConfiguration, - accept, - context); + return service.create(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, metadataSyncConfiguration, accept, context); } /** * Set SQL pool metadata sync config - * - *

Set the metadata sync configuration for a SQL pool. - * + * + * Set the metadata sync configuration for a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param metadataSyncConfiguration Metadata sync configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. + * @throws ManagementException thrown if the request is rejected by server on status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return metadata sync configuration on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - MetadataSyncConfigInner metadataSyncConfiguration) { + private Mono createAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, MetadataSyncConfigInner metadataSyncConfiguration) { return createWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, metadataSyncConfiguration) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Set SQL pool metadata sync config - * - *

Set the metadata sync configuration for a SQL pool. - * + * + * Set the metadata sync configuration for a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -431,43 +365,36 @@ private Mono createAsync( * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. + * @throws ManagementException thrown if the request is rejected by server on status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return metadata sync configuration along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - MetadataSyncConfigInner metadataSyncConfiguration, - Context context) { - return createWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, metadataSyncConfiguration, context) - .block(); + public Response createWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, MetadataSyncConfigInner metadataSyncConfiguration, Context context) { + return createWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, metadataSyncConfiguration, + context).block(); } /** * Set SQL pool metadata sync config - * - *

Set the metadata sync configuration for a SQL pool. - * + * + * Set the metadata sync configuration for a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param metadataSyncConfiguration Metadata sync configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. + * @throws ManagementException thrown if the request is rejected by server on status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return metadata sync configuration. */ @ServiceMethod(returns = ReturnType.SINGLE) - public MetadataSyncConfigInner create( - String resourceGroupName, - String workspaceName, - String sqlPoolName, + public MetadataSyncConfigInner create(String resourceGroupName, String workspaceName, String sqlPoolName, MetadataSyncConfigInner metadataSyncConfiguration) { - return createWithResponse( - resourceGroupName, workspaceName, sqlPoolName, metadataSyncConfiguration, Context.NONE) - .getValue(); + return createWithResponse(resourceGroupName, workspaceName, sqlPoolName, metadataSyncConfiguration, + Context.NONE).getValue(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMetadataSyncConfigsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMetadataSyncConfigsImpl.java index 284daf29113c..dad2797f93cb 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMetadataSyncConfigsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolMetadataSyncConfigsImpl.java @@ -20,21 +20,18 @@ public final class SqlPoolMetadataSyncConfigsImpl implements SqlPoolMetadataSync private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public SqlPoolMetadataSyncConfigsImpl( - SqlPoolMetadataSyncConfigsClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + public SqlPoolMetadataSyncConfigsImpl(SqlPoolMetadataSyncConfigsClient innerClient, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { - Response inner = - this.serviceClient().getWithResponse(resourceGroupName, workspaceName, sqlPoolName, context); + public Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, workspaceName, sqlPoolName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new MetadataSyncConfigImpl(inner.getValue(), this.manager())); } else { return null; @@ -50,34 +47,22 @@ public MetadataSyncConfig get(String resourceGroupName, String workspaceName, St } } - public Response createWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - MetadataSyncConfigInner metadataSyncConfiguration, - Context context) { - Response inner = - this - .serviceClient() - .createWithResponse(resourceGroupName, workspaceName, sqlPoolName, metadataSyncConfiguration, context); + public Response createWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, MetadataSyncConfigInner metadataSyncConfiguration, Context context) { + Response inner = this.serviceClient().createWithResponse(resourceGroupName, + workspaceName, sqlPoolName, metadataSyncConfiguration, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new MetadataSyncConfigImpl(inner.getValue(), this.manager())); } else { return null; } } - public MetadataSyncConfig create( - String resourceGroupName, - String workspaceName, - String sqlPoolName, + public MetadataSyncConfig create(String resourceGroupName, String workspaceName, String sqlPoolName, MetadataSyncConfigInner metadataSyncConfiguration) { - MetadataSyncConfigInner inner = - this.serviceClient().create(resourceGroupName, workspaceName, sqlPoolName, metadataSyncConfiguration); + MetadataSyncConfigInner inner + = this.serviceClient().create(resourceGroupName, workspaceName, sqlPoolName, metadataSyncConfiguration); if (inner != null) { return new MetadataSyncConfigImpl(inner, this.manager()); } else { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolOperationImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolOperationImpl.java index e5438fdf94be..c6b37a5ebd71 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolOperationImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolOperationImpl.java @@ -14,8 +14,8 @@ public final class SqlPoolOperationImpl implements SqlPoolOperation { private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - SqlPoolOperationImpl( - SqlPoolOperationInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + SqlPoolOperationImpl(SqlPoolOperationInner innerObject, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolOperationResultsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolOperationResultsClientImpl.java index 26e44646ad3a..03d172ee66c4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolOperationResultsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolOperationResultsClientImpl.java @@ -30,23 +30,28 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in SqlPoolOperationResultsClient. */ +/** + * An instance of this class provides access to all the operations defined in SqlPoolOperationResultsClient. + */ public final class SqlPoolOperationResultsClientImpl implements SqlPoolOperationResultsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final SqlPoolOperationResultsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of SqlPoolOperationResultsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ SqlPoolOperationResultsClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy - .create(SqlPoolOperationResultsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service = RestProxy.create(SqlPoolOperationResultsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } @@ -57,29 +62,22 @@ public final class SqlPoolOperationResultsClientImpl implements SqlPoolOperation @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface SqlPoolOperationResultsService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/operationResults/{operationId}") - @ExpectedResponses({200, 201, 202}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/operationResults/{operationId}") + @ExpectedResponses({ 200, 201, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> getLocationHeaderResult( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("sqlPoolName") String sqlPoolName, - @PathParam("operationId") String operationId, - @HeaderParam("Accept") String accept, - Context context); + Mono>> getLocationHeaderResult(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("sqlPoolName") String sqlPoolName, @PathParam("operationId") String operationId, + @HeaderParam("Accept") String accept, Context context); } /** * Get SQL pool operation status - * - *

Get the status of a SQL pool operation. - * + * + * Get the status of a SQL pool operation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -90,19 +88,15 @@ Mono>> getLocationHeaderResult( * @return the status of a SQL pool operation along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> getLocationHeaderResultWithResponseAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, String operationId) { + private Mono>> getLocationHeaderResultWithResponseAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, String operationId) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -120,27 +114,17 @@ private Mono>> getLocationHeaderResultWithResponseAsyn final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .getLocationHeaderResult( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - operationId, - accept, - context)) + .withContext(context -> service.getLocationHeaderResult(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, operationId, accept, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get SQL pool operation status - * - *

Get the status of a SQL pool operation. - * + * + * Get the status of a SQL pool operation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -152,19 +136,15 @@ private Mono>> getLocationHeaderResultWithResponseAsyn * @return the status of a SQL pool operation along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> getLocationHeaderResultWithResponseAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, String operationId, Context context) { + private Mono>> getLocationHeaderResultWithResponseAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, String operationId, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -182,24 +162,15 @@ private Mono>> getLocationHeaderResultWithResponseAsyn final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .getLocationHeaderResult( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - operationId, - accept, - context); + return service.getLocationHeaderResult(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, operationId, accept, context); } /** * Get SQL pool operation status - * - *

Get the status of a SQL pool operation. - * + * + * Get the status of a SQL pool operation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -212,19 +183,17 @@ private Mono>> getLocationHeaderResultWithResponseAsyn @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, SqlPoolInner> beginGetLocationHeaderResultAsync( String resourceGroupName, String workspaceName, String sqlPoolName, String operationId) { - Mono>> mono = - getLocationHeaderResultWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, operationId); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), SqlPoolInner.class, SqlPoolInner.class, this.client.getContext()); + Mono>> mono + = getLocationHeaderResultWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, operationId); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + SqlPoolInner.class, SqlPoolInner.class, this.client.getContext()); } /** * Get SQL pool operation status - * - *

Get the status of a SQL pool operation. - * + * + * Get the status of a SQL pool operation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -239,20 +208,17 @@ private PollerFlux, SqlPoolInner> beginGetLocationHeade private PollerFlux, SqlPoolInner> beginGetLocationHeaderResultAsync( String resourceGroupName, String workspaceName, String sqlPoolName, String operationId, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - getLocationHeaderResultWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, operationId, context); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), SqlPoolInner.class, SqlPoolInner.class, context); + Mono>> mono = getLocationHeaderResultWithResponseAsync(resourceGroupName, + workspaceName, sqlPoolName, operationId, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + SqlPoolInner.class, SqlPoolInner.class, context); } /** * Get SQL pool operation status - * - *

Get the status of a SQL pool operation. - * + * + * Get the status of a SQL pool operation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -263,18 +229,17 @@ private PollerFlux, SqlPoolInner> beginGetLocationHeade * @return the {@link SyncPoller} for polling of the status of a SQL pool operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, SqlPoolInner> beginGetLocationHeaderResult( - String resourceGroupName, String workspaceName, String sqlPoolName, String operationId) { - return this - .beginGetLocationHeaderResultAsync(resourceGroupName, workspaceName, sqlPoolName, operationId) + public SyncPoller, SqlPoolInner> beginGetLocationHeaderResult(String resourceGroupName, + String workspaceName, String sqlPoolName, String operationId) { + return this.beginGetLocationHeaderResultAsync(resourceGroupName, workspaceName, sqlPoolName, operationId) .getSyncPoller(); } /** * Get SQL pool operation status - * - *

Get the status of a SQL pool operation. - * + * + * Get the status of a SQL pool operation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -286,8 +251,8 @@ public SyncPoller, SqlPoolInner> beginGetLocationHeader * @return the {@link SyncPoller} for polling of the status of a SQL pool operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, SqlPoolInner> beginGetLocationHeaderResult( - String resourceGroupName, String workspaceName, String sqlPoolName, String operationId, Context context) { + public SyncPoller, SqlPoolInner> beginGetLocationHeaderResult(String resourceGroupName, + String workspaceName, String sqlPoolName, String operationId, Context context) { return this .beginGetLocationHeaderResultAsync(resourceGroupName, workspaceName, sqlPoolName, operationId, context) .getSyncPoller(); @@ -295,9 +260,9 @@ public SyncPoller, SqlPoolInner> beginGetLocationHeader /** * Get SQL pool operation status - * - *

Get the status of a SQL pool operation. - * + * + * Get the status of a SQL pool operation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -308,18 +273,17 @@ public SyncPoller, SqlPoolInner> beginGetLocationHeader * @return the status of a SQL pool operation on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getLocationHeaderResultAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, String operationId) { - return beginGetLocationHeaderResultAsync(resourceGroupName, workspaceName, sqlPoolName, operationId) - .last() + private Mono getLocationHeaderResultAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String operationId) { + return beginGetLocationHeaderResultAsync(resourceGroupName, workspaceName, sqlPoolName, operationId).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Get SQL pool operation status - * - *

Get the status of a SQL pool operation. - * + * + * Get the status of a SQL pool operation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -331,18 +295,17 @@ private Mono getLocationHeaderResultAsync( * @return the status of a SQL pool operation on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getLocationHeaderResultAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, String operationId, Context context) { + private Mono getLocationHeaderResultAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String operationId, Context context) { return beginGetLocationHeaderResultAsync(resourceGroupName, workspaceName, sqlPoolName, operationId, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + .last().flatMap(this.client::getLroFinalResultOrError); } /** * Get SQL pool operation status - * - *

Get the status of a SQL pool operation. - * + * + * Get the status of a SQL pool operation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -353,16 +316,16 @@ private Mono getLocationHeaderResultAsync( * @return the status of a SQL pool operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SqlPoolInner getLocationHeaderResult( - String resourceGroupName, String workspaceName, String sqlPoolName, String operationId) { + public SqlPoolInner getLocationHeaderResult(String resourceGroupName, String workspaceName, String sqlPoolName, + String operationId) { return getLocationHeaderResultAsync(resourceGroupName, workspaceName, sqlPoolName, operationId).block(); } /** * Get SQL pool operation status - * - *

Get the status of a SQL pool operation. - * + * + * Get the status of a SQL pool operation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -374,8 +337,8 @@ public SqlPoolInner getLocationHeaderResult( * @return the status of a SQL pool operation. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SqlPoolInner getLocationHeaderResult( - String resourceGroupName, String workspaceName, String sqlPoolName, String operationId, Context context) { + public SqlPoolInner getLocationHeaderResult(String resourceGroupName, String workspaceName, String sqlPoolName, + String operationId, Context context) { return getLocationHeaderResultAsync(resourceGroupName, workspaceName, sqlPoolName, operationId, context) .block(); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolOperationResultsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolOperationResultsImpl.java index d08a7f7fdb92..8e2315912d42 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolOperationResultsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolOperationResultsImpl.java @@ -18,16 +18,16 @@ public final class SqlPoolOperationResultsImpl implements SqlPoolOperationResult private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public SqlPoolOperationResultsImpl( - SqlPoolOperationResultsClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + public SqlPoolOperationResultsImpl(SqlPoolOperationResultsClient innerClient, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public SqlPool getLocationHeaderResult( - String resourceGroupName, String workspaceName, String sqlPoolName, String operationId) { - SqlPoolInner inner = - this.serviceClient().getLocationHeaderResult(resourceGroupName, workspaceName, sqlPoolName, operationId); + public SqlPool getLocationHeaderResult(String resourceGroupName, String workspaceName, String sqlPoolName, + String operationId) { + SqlPoolInner inner + = this.serviceClient().getLocationHeaderResult(resourceGroupName, workspaceName, sqlPoolName, operationId); if (inner != null) { return new SqlPoolImpl(inner, this.manager()); } else { @@ -35,12 +35,10 @@ public SqlPool getLocationHeaderResult( } } - public SqlPool getLocationHeaderResult( - String resourceGroupName, String workspaceName, String sqlPoolName, String operationId, Context context) { - SqlPoolInner inner = - this - .serviceClient() - .getLocationHeaderResult(resourceGroupName, workspaceName, sqlPoolName, operationId, context); + public SqlPool getLocationHeaderResult(String resourceGroupName, String workspaceName, String sqlPoolName, + String operationId, Context context) { + SqlPoolInner inner = this.serviceClient().getLocationHeaderResult(resourceGroupName, workspaceName, sqlPoolName, + operationId, context); if (inner != null) { return new SqlPoolImpl(inner, this.manager()); } else { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolOperationsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolOperationsClientImpl.java index 4a35853cd115..182a86fd88db 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolOperationsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolOperationsClientImpl.java @@ -30,22 +30,28 @@ import com.azure.resourcemanager.synapse.models.SqlPoolBlobAuditingPolicySqlPoolOperationListResult; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in SqlPoolOperationsClient. */ +/** + * An instance of this class provides access to all the operations defined in SqlPoolOperationsClient. + */ public final class SqlPoolOperationsClientImpl implements SqlPoolOperationsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final SqlPoolOperationsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of SqlPoolOperationsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ SqlPoolOperationsClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy.create(SqlPoolOperationsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service + = RestProxy.create(SqlPoolOperationsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } @@ -56,38 +62,29 @@ public final class SqlPoolOperationsClientImpl implements SqlPoolOperationsClien @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface SqlPoolOperationsService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/operations") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/operations") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("sqlPoolName") String sqlPoolName, - @HeaderParam("Accept") String accept, - Context context); + Mono> list(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("sqlPoolName") String sqlPoolName, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** * Gets a list of operations performed on the SQL pool - * - *

Gets a list of operations performed on the SQL pool. - * + * + * Gets a list of operations performed on the SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -95,22 +92,18 @@ Mono> listNext( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of operations performed on the SQL pool along with {@link PagedResponse} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String workspaceName, String sqlPoolName) { + private Mono> listSinglePageAsync(String resourceGroupName, + String workspaceName, String sqlPoolName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -125,35 +118,18 @@ private Mono> listSinglePageAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets a list of operations performed on the SQL pool - * - *

Gets a list of operations performed on the SQL pool. - * + * + * Gets a list of operations performed on the SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -162,22 +138,18 @@ private Mono> listSinglePageAsync( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of operations performed on the SQL pool along with {@link PagedResponse} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + private Mono> listSinglePageAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -193,31 +165,17 @@ private Mono> listSinglePageAsync( final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * Gets a list of operations performed on the SQL pool - * - *

Gets a list of operations performed on the SQL pool. - * + * + * Gets a list of operations performed on the SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -227,18 +185,17 @@ private Mono> listSinglePageAsync( * @return a list of operations performed on the SQL pool as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( - String resourceGroupName, String workspaceName, String sqlPoolName) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName), + private PagedFlux listAsync(String resourceGroupName, String workspaceName, + String sqlPoolName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName), nextLink -> listNextSinglePageAsync(nextLink)); } /** * Gets a list of operations performed on the SQL pool - * - *

Gets a list of operations performed on the SQL pool. - * + * + * Gets a list of operations performed on the SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -249,18 +206,17 @@ private PagedFlux listAsync( * @return a list of operations performed on the SQL pool as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName, context), + private PagedFlux listAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } /** * Gets a list of operations performed on the SQL pool - * - *

Gets a list of operations performed on the SQL pool. - * + * + * Gets a list of operations performed on the SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -270,16 +226,16 @@ private PagedFlux listAsync( * @return a list of operations performed on the SQL pool as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName) { + public PagedIterable list(String resourceGroupName, String workspaceName, + String sqlPoolName) { return new PagedIterable<>(listAsync(resourceGroupName, workspaceName, sqlPoolName)); } /** * Gets a list of operations performed on the SQL pool - * - *

Gets a list of operations performed on the SQL pool. - * + * + * Gets a list of operations performed on the SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -290,21 +246,22 @@ public PagedIterable list( * @return a list of operations performed on the SQL pool as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + public PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName, + Context context) { return new PagedIterable<>(listAsync(resourceGroupName, workspaceName, sqlPoolName, context)); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response to a list Sql pool operations request along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -312,37 +269,28 @@ private Mono> listNextSinglePageAsync(Strin return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response to a list Sql pool operations request along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { @@ -350,23 +298,13 @@ private Mono> listNextSinglePageAsync(Strin return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolOperationsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolOperationsImpl.java index 9ce7d7ae2685..e26ff0974655 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolOperationsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolOperationsImpl.java @@ -19,23 +19,23 @@ public final class SqlPoolOperationsImpl implements SqlPoolOperations { private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public SqlPoolOperationsImpl( - SqlPoolOperationsClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + public SqlPoolOperationsImpl(SqlPoolOperationsClient innerClient, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } public PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName) { - PagedIterable inner = - this.serviceClient().list(resourceGroupName, workspaceName, sqlPoolName); - return Utils.mapPage(inner, inner1 -> new SqlPoolOperationImpl(inner1, this.manager())); + PagedIterable inner + = this.serviceClient().list(resourceGroupName, workspaceName, sqlPoolName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SqlPoolOperationImpl(inner1, this.manager())); } - public PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { - PagedIterable inner = - this.serviceClient().list(resourceGroupName, workspaceName, sqlPoolName, context); - return Utils.mapPage(inner, inner1 -> new SqlPoolOperationImpl(inner1, this.manager())); + public PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName, + Context context) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, workspaceName, sqlPoolName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SqlPoolOperationImpl(inner1, this.manager())); } private SqlPoolOperationsClient serviceClient() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRecommendedSensitivityLabelsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRecommendedSensitivityLabelsClientImpl.java index a348aa4d7cf9..565f81655896 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRecommendedSensitivityLabelsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRecommendedSensitivityLabelsClientImpl.java @@ -26,57 +26,52 @@ import reactor.core.publisher.Mono; /** - * An instance of this class provides access to all the operations defined in SqlPoolRecommendedSensitivityLabelsClient. + * An instance of this class provides access to all the operations defined in + * SqlPoolRecommendedSensitivityLabelsClient. */ public final class SqlPoolRecommendedSensitivityLabelsClientImpl implements SqlPoolRecommendedSensitivityLabelsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final SqlPoolRecommendedSensitivityLabelsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of SqlPoolRecommendedSensitivityLabelsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ SqlPoolRecommendedSensitivityLabelsClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy - .create( - SqlPoolRecommendedSensitivityLabelsService.class, - client.getHttpPipeline(), - client.getSerializerAdapter()); + this.service = RestProxy.create(SqlPoolRecommendedSensitivityLabelsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for SynapseManagementClientSqlPoolRecommendedSensitivityLabels to be used - * by the proxy service to perform REST calls. + * The interface defining all the services for SynapseManagementClientSqlPoolRecommendedSensitivityLabels to be + * used by the proxy service to perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface SqlPoolRecommendedSensitivityLabelsService { - @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) - @Patch( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/recommendedSensitivityLabels") - @ExpectedResponses({200}) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/recommendedSensitivityLabels") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> update( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, + Mono> update(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("sqlPoolName") String sqlPoolName, - @BodyParam("application/json") RecommendedSensitivityLabelUpdateList parameters, - Context context); + @BodyParam("application/json") RecommendedSensitivityLabelUpdateList parameters, Context context); } /** * Update recommended sensitivity labels states of a given SQL Pool using an operations batch. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -87,22 +82,15 @@ Mono> update( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - RecommendedSensitivityLabelUpdateList parameters) { + private Mono> updateWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, RecommendedSensitivityLabelUpdateList parameters) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -121,24 +109,14 @@ private Mono> updateWithResponseAsync( } final String apiVersion = "2021-06-01"; return FluxUtil - .withContext( - context -> - service - .update( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - parameters, - context)) + .withContext(context -> service.update(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Update recommended sensitivity labels states of a given SQL Pool using an operations batch. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -150,23 +128,15 @@ private Mono> updateWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - RecommendedSensitivityLabelUpdateList parameters, - Context context) { + private Mono> updateWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, RecommendedSensitivityLabelUpdateList parameters, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -185,21 +155,13 @@ private Mono> updateWithResponseAsync( } final String apiVersion = "2021-06-01"; context = this.client.mergeContext(context); - return service - .update( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - parameters, - context); + return service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, parameters, context); } /** * Update recommended sensitivity labels states of a given SQL Pool using an operations batch. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -210,10 +172,7 @@ private Mono> updateWithResponseAsync( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, + private Mono updateAsync(String resourceGroupName, String workspaceName, String sqlPoolName, RecommendedSensitivityLabelUpdateList parameters) { return updateWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, parameters) .flatMap(ignored -> Mono.empty()); @@ -221,7 +180,7 @@ private Mono updateAsync( /** * Update recommended sensitivity labels states of a given SQL Pool using an operations batch. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -233,18 +192,14 @@ private Mono updateAsync( * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - RecommendedSensitivityLabelUpdateList parameters, - Context context) { + public Response updateWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + RecommendedSensitivityLabelUpdateList parameters, Context context) { return updateWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, parameters, context).block(); } /** * Update recommended sensitivity labels states of a given SQL Pool using an operations batch. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -254,10 +209,7 @@ public Response updateWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void update( - String resourceGroupName, - String workspaceName, - String sqlPoolName, + public void update(String resourceGroupName, String workspaceName, String sqlPoolName, RecommendedSensitivityLabelUpdateList parameters) { updateWithResponse(resourceGroupName, workspaceName, sqlPoolName, parameters, Context.NONE); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRecommendedSensitivityLabelsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRecommendedSensitivityLabelsImpl.java index daed18dd2594..3c9c1752c578 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRecommendedSensitivityLabelsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRecommendedSensitivityLabelsImpl.java @@ -18,28 +18,19 @@ public final class SqlPoolRecommendedSensitivityLabelsImpl implements SqlPoolRec private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public SqlPoolRecommendedSensitivityLabelsImpl( - SqlPoolRecommendedSensitivityLabelsClient innerClient, + public SqlPoolRecommendedSensitivityLabelsImpl(SqlPoolRecommendedSensitivityLabelsClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public Response updateWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - RecommendedSensitivityLabelUpdateList parameters, - Context context) { - return this - .serviceClient() - .updateWithResponse(resourceGroupName, workspaceName, sqlPoolName, parameters, context); + public Response updateWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + RecommendedSensitivityLabelUpdateList parameters, Context context) { + return this.serviceClient().updateWithResponse(resourceGroupName, workspaceName, sqlPoolName, parameters, + context); } - public void update( - String resourceGroupName, - String workspaceName, - String sqlPoolName, + public void update(String resourceGroupName, String workspaceName, String sqlPoolName, RecommendedSensitivityLabelUpdateList parameters) { this.serviceClient().update(resourceGroupName, workspaceName, sqlPoolName, parameters); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolReplicationLinksClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolReplicationLinksClientImpl.java index 29bd82cb19a6..b6f3da183bfd 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolReplicationLinksClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolReplicationLinksClientImpl.java @@ -30,23 +30,28 @@ import com.azure.resourcemanager.synapse.models.ReplicationLinkListResult; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in SqlPoolReplicationLinksClient. */ +/** + * An instance of this class provides access to all the operations defined in SqlPoolReplicationLinksClient. + */ public final class SqlPoolReplicationLinksClientImpl implements SqlPoolReplicationLinksClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final SqlPoolReplicationLinksService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of SqlPoolReplicationLinksClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ SqlPoolReplicationLinksClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy - .create(SqlPoolReplicationLinksService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service = RestProxy.create(SqlPoolReplicationLinksService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } @@ -57,55 +62,39 @@ public final class SqlPoolReplicationLinksClientImpl implements SqlPoolReplicati @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface SqlPoolReplicationLinksService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/replicationLinks") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/replicationLinks") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("sqlPoolName") String sqlPoolName, - @HeaderParam("Accept") String accept, - Context context); + Mono> list(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("sqlPoolName") String sqlPoolName, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/replicationLinks/{linkId}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/replicationLinks/{linkId}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByName( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("sqlPoolName") String sqlPoolName, - @PathParam("linkId") String linkId, - @HeaderParam("Accept") String accept, - Context context); + Mono> getByName(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("sqlPoolName") String sqlPoolName, @PathParam("linkId") String linkId, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** * Get SQL pool replication links - * - *

Lists a Sql pool's replication links. - * + * + * Lists a Sql pool's replication links. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -113,22 +102,18 @@ Mono> listNext( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents the response to a List Sql pool replication link request along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String workspaceName, String sqlPoolName) { + private Mono> listSinglePageAsync(String resourceGroupName, + String workspaceName, String sqlPoolName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -143,35 +128,18 @@ private Mono> listSinglePageAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get SQL pool replication links - * - *

Lists a Sql pool's replication links. - * + * + * Lists a Sql pool's replication links. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -180,22 +148,18 @@ private Mono> listSinglePageAsync( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents the response to a List Sql pool replication link request along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + private Mono> listSinglePageAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -211,53 +175,38 @@ private Mono> listSinglePageAsync( final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * Get SQL pool replication links - * - *

Lists a Sql pool's replication links. - * + * + * Lists a Sql pool's replication links. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return represents the response to a List Sql pool replication link request as paginated response with {@link - * PagedFlux}. + * @return represents the response to a List Sql pool replication link request as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( - String resourceGroupName, String workspaceName, String sqlPoolName) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName), + private PagedFlux listAsync(String resourceGroupName, String workspaceName, + String sqlPoolName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName), nextLink -> listNextSinglePageAsync(nextLink)); } /** * Get SQL pool replication links - * - *

Lists a Sql pool's replication links. - * + * + * Lists a Sql pool's replication links. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -265,42 +214,41 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return represents the response to a List Sql pool replication link request as paginated response with {@link - * PagedFlux}. + * @return represents the response to a List Sql pool replication link request as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName, context), + private PagedFlux listAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } /** * Get SQL pool replication links - * - *

Lists a Sql pool's replication links. - * + * + * Lists a Sql pool's replication links. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return represents the response to a List Sql pool replication link request as paginated response with {@link - * PagedIterable}. + * @return represents the response to a List Sql pool replication link request as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName) { + public PagedIterable list(String resourceGroupName, String workspaceName, + String sqlPoolName) { return new PagedIterable<>(listAsync(resourceGroupName, workspaceName, sqlPoolName)); } /** * Get SQL pool replication links - * - *

Lists a Sql pool's replication links. - * + * + * Lists a Sql pool's replication links. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -308,20 +256,20 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return represents the response to a List Sql pool replication link request as paginated response with {@link - * PagedIterable}. + * @return represents the response to a List Sql pool replication link request as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + public PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName, + Context context) { return new PagedIterable<>(listAsync(resourceGroupName, workspaceName, sqlPoolName, context)); } /** * Get SQL pool replication link by name - * - *

Get SQL pool replication link by name. - * + * + * Get SQL pool replication link by name. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -332,19 +280,15 @@ public PagedIterable list( * @return sQL pool replication link by name along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getByNameWithResponseAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, String linkId) { + private Mono> getByNameWithResponseAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, String linkId) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -363,26 +307,16 @@ private Mono> getByNameWithResponseAsync( final String accept = "application/json"; return FluxUtil .withContext( - context -> - service - .getByName( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - linkId, - accept, - context)) + context -> service.getByName(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, linkId, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get SQL pool replication link by name - * - *

Get SQL pool replication link by name. - * + * + * Get SQL pool replication link by name. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -394,19 +328,15 @@ private Mono> getByNameWithResponseAsync( * @return sQL pool replication link by name along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getByNameWithResponseAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, String linkId, Context context) { + private Mono> getByNameWithResponseAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, String linkId, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -424,24 +354,15 @@ private Mono> getByNameWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .getByName( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - linkId, - accept, - context); + return service.getByName(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, linkId, accept, context); } /** * Get SQL pool replication link by name - * - *

Get SQL pool replication link by name. - * + * + * Get SQL pool replication link by name. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -452,17 +373,17 @@ private Mono> getByNameWithResponseAsync( * @return sQL pool replication link by name on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getByNameAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, String linkId) { + private Mono getByNameAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String linkId) { return getByNameWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, linkId) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Get SQL pool replication link by name - * - *

Get SQL pool replication link by name. - * + * + * Get SQL pool replication link by name. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -474,16 +395,16 @@ private Mono getByNameAsync( * @return sQL pool replication link by name along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByNameWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, String linkId, Context context) { + public Response getByNameWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, String linkId, Context context) { return getByNameWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, linkId, context).block(); } /** * Get SQL pool replication link by name - * - *

Get SQL pool replication link by name. - * + * + * Get SQL pool replication link by name. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -494,21 +415,22 @@ public Response getByNameWithResponse( * @return sQL pool replication link by name. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ReplicationLinkInner getByName( - String resourceGroupName, String workspaceName, String sqlPoolName, String linkId) { + public ReplicationLinkInner getByName(String resourceGroupName, String workspaceName, String sqlPoolName, + String linkId) { return getByNameWithResponse(resourceGroupName, workspaceName, sqlPoolName, linkId, Context.NONE).getValue(); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents the response to a List Sql pool replication link request along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -516,37 +438,28 @@ private Mono> listNextSinglePageAsync(String return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents the response to a List Sql pool replication link request along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { @@ -554,23 +467,13 @@ private Mono> listNextSinglePageAsync(String return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolReplicationLinksImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolReplicationLinksImpl.java index f74da7930879..90dabd7b0de1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolReplicationLinksImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolReplicationLinksImpl.java @@ -21,44 +21,41 @@ public final class SqlPoolReplicationLinksImpl implements SqlPoolReplicationLink private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public SqlPoolReplicationLinksImpl( - SqlPoolReplicationLinksClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + public SqlPoolReplicationLinksImpl(SqlPoolReplicationLinksClient innerClient, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } public PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName) { - PagedIterable inner = - this.serviceClient().list(resourceGroupName, workspaceName, sqlPoolName); - return Utils.mapPage(inner, inner1 -> new ReplicationLinkImpl(inner1, this.manager())); + PagedIterable inner + = this.serviceClient().list(resourceGroupName, workspaceName, sqlPoolName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ReplicationLinkImpl(inner1, this.manager())); } - public PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { - PagedIterable inner = - this.serviceClient().list(resourceGroupName, workspaceName, sqlPoolName, context); - return Utils.mapPage(inner, inner1 -> new ReplicationLinkImpl(inner1, this.manager())); + public PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName, + Context context) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, workspaceName, sqlPoolName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ReplicationLinkImpl(inner1, this.manager())); } - public Response getByNameWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, String linkId, Context context) { - Response inner = - this.serviceClient().getByNameWithResponse(resourceGroupName, workspaceName, sqlPoolName, linkId, context); + public Response getByNameWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, String linkId, Context context) { + Response inner = this.serviceClient().getByNameWithResponse(resourceGroupName, + workspaceName, sqlPoolName, linkId, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new ReplicationLinkImpl(inner.getValue(), this.manager())); } else { return null; } } - public ReplicationLink getByName( - String resourceGroupName, String workspaceName, String sqlPoolName, String linkId) { - ReplicationLinkInner inner = - this.serviceClient().getByName(resourceGroupName, workspaceName, sqlPoolName, linkId); + public ReplicationLink getByName(String resourceGroupName, String workspaceName, String sqlPoolName, + String linkId) { + ReplicationLinkInner inner + = this.serviceClient().getByName(resourceGroupName, workspaceName, sqlPoolName, linkId); if (inner != null) { return new ReplicationLinkImpl(inner, this.manager()); } else { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRestorePointsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRestorePointsClientImpl.java index 857e8c86cbc2..fb2dfa4f5d67 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRestorePointsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRestorePointsClientImpl.java @@ -39,23 +39,28 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in SqlPoolRestorePointsClient. */ +/** + * An instance of this class provides access to all the operations defined in SqlPoolRestorePointsClient. + */ public final class SqlPoolRestorePointsClientImpl implements SqlPoolRestorePointsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final SqlPoolRestorePointsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of SqlPoolRestorePointsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ SqlPoolRestorePointsClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy - .create(SqlPoolRestorePointsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service = RestProxy.create(SqlPoolRestorePointsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } @@ -66,88 +71,59 @@ public final class SqlPoolRestorePointsClientImpl implements SqlPoolRestorePoint @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface SqlPoolRestorePointsService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/restorePoints") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/restorePoints") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("sqlPoolName") String sqlPoolName, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/restorePoints") - @ExpectedResponses({200, 201, 202}) + Mono> list(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("sqlPoolName") String sqlPoolName, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/restorePoints") + @ExpectedResponses({ 200, 201, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> create( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono>> create(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("sqlPoolName") String sqlPoolName, @BodyParam("application/json") CreateSqlPoolRestorePointDefinition parameters, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/restorePoints/{restorePointName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/restorePoints/{restorePointName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("sqlPoolName") String sqlPoolName, - @PathParam("restorePointName") String restorePointName, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/restorePoints/{restorePointName}") - @ExpectedResponses({200, 204}) + Mono> get(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("sqlPoolName") String sqlPoolName, @PathParam("restorePointName") String restorePointName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/restorePoints/{restorePointName}") + @ExpectedResponses({ 200, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> delete( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, + Mono> delete(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("sqlPoolName") String sqlPoolName, - @PathParam("restorePointName") String restorePointName, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("sqlPoolName") String sqlPoolName, @PathParam("restorePointName") String restorePointName, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Get SQL pool backup - * - *

Get SQL pool backup information. - * + * + * Get SQL pool backup information. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -157,19 +133,15 @@ Mono> listNext( * @return sQL pool backup information along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String workspaceName, String sqlPoolName) { + private Mono> listSinglePageAsync(String resourceGroupName, String workspaceName, + String sqlPoolName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -184,35 +156,18 @@ private Mono> listSinglePageAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get SQL pool backup - * - *

Get SQL pool backup information. - * + * + * Get SQL pool backup information. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -223,19 +178,15 @@ private Mono> listSinglePageAsync( * @return sQL pool backup information along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + private Mono> listSinglePageAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -251,31 +202,17 @@ private Mono> listSinglePageAsync( final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * Get SQL pool backup - * - *

Get SQL pool backup information. - * + * + * Get SQL pool backup information. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -286,16 +223,15 @@ private Mono> listSinglePageAsync( */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String workspaceName, String sqlPoolName) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName), + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName), nextLink -> listNextSinglePageAsync(nextLink)); } /** * Get SQL pool backup - * - *

Get SQL pool backup information. - * + * + * Get SQL pool backup information. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -306,18 +242,17 @@ private PagedFlux listAsync(String resourceGroupName, String * @return sQL pool backup information as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName, context), + private PagedFlux listAsync(String resourceGroupName, String workspaceName, String sqlPoolName, + Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } /** * Get SQL pool backup - * - *

Get SQL pool backup information. - * + * + * Get SQL pool backup information. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -333,9 +268,9 @@ public PagedIterable list(String resourceGroupName, String wo /** * Get SQL pool backup - * - *

Get SQL pool backup information. - * + * + * Get SQL pool backup information. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -346,14 +281,14 @@ public PagedIterable list(String resourceGroupName, String wo * @return sQL pool backup information as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + public PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName, + Context context) { return new PagedIterable<>(listAsync(resourceGroupName, workspaceName, sqlPoolName, context)); } /** * Creates a restore point for a data warehouse. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -364,22 +299,15 @@ public PagedIterable list( * @return database restore points along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - CreateSqlPoolRestorePointDefinition parameters) { + private Mono>> createWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, CreateSqlPoolRestorePointDefinition parameters) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -400,24 +328,14 @@ private Mono>> createWithResponseAsync( final String accept = "application/json"; return FluxUtil .withContext( - context -> - service - .create( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - parameters, - accept, - context)) + context -> service.create(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates a restore point for a data warehouse. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -429,23 +347,15 @@ private Mono>> createWithResponseAsync( * @return database restore points along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - CreateSqlPoolRestorePointDefinition parameters, - Context context) { + private Mono>> createWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, CreateSqlPoolRestorePointDefinition parameters, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -465,22 +375,13 @@ private Mono>> createWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .create( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - parameters, - accept, - context); + return service.create(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, parameters, accept, context); } /** * Creates a restore point for a data warehouse. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -491,26 +392,17 @@ private Mono>> createWithResponseAsync( * @return the {@link PollerFlux} for polling of database restore points. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, RestorePointInner> beginCreateAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - CreateSqlPoolRestorePointDefinition parameters) { - Mono>> mono = - createWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, parameters); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - RestorePointInner.class, - RestorePointInner.class, - this.client.getContext()); + private PollerFlux, RestorePointInner> beginCreateAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, CreateSqlPoolRestorePointDefinition parameters) { + Mono>> mono + = createWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, parameters); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + RestorePointInner.class, RestorePointInner.class, this.client.getContext()); } /** * Creates a restore point for a data warehouse. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -522,24 +414,18 @@ private PollerFlux, RestorePointInner> beginCreate * @return the {@link PollerFlux} for polling of database restore points. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, RestorePointInner> beginCreateAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - CreateSqlPoolRestorePointDefinition parameters, - Context context) { + private PollerFlux, RestorePointInner> beginCreateAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, CreateSqlPoolRestorePointDefinition parameters, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - createWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, parameters, context); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), RestorePointInner.class, RestorePointInner.class, context); + Mono>> mono + = createWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, parameters, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + RestorePointInner.class, RestorePointInner.class, context); } /** * Creates a restore point for a data warehouse. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -550,17 +436,14 @@ private PollerFlux, RestorePointInner> beginCreate * @return the {@link SyncPoller} for polling of database restore points. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, RestorePointInner> beginCreate( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - CreateSqlPoolRestorePointDefinition parameters) { + public SyncPoller, RestorePointInner> beginCreate(String resourceGroupName, + String workspaceName, String sqlPoolName, CreateSqlPoolRestorePointDefinition parameters) { return this.beginCreateAsync(resourceGroupName, workspaceName, sqlPoolName, parameters).getSyncPoller(); } /** * Creates a restore point for a data warehouse. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -572,20 +455,15 @@ public SyncPoller, RestorePointInner> beginCreate( * @return the {@link SyncPoller} for polling of database restore points. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, RestorePointInner> beginCreate( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - CreateSqlPoolRestorePointDefinition parameters, - Context context) { - return this - .beginCreateAsync(resourceGroupName, workspaceName, sqlPoolName, parameters, context) + public SyncPoller, RestorePointInner> beginCreate(String resourceGroupName, + String workspaceName, String sqlPoolName, CreateSqlPoolRestorePointDefinition parameters, Context context) { + return this.beginCreateAsync(resourceGroupName, workspaceName, sqlPoolName, parameters, context) .getSyncPoller(); } /** * Creates a restore point for a data warehouse. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -596,19 +474,15 @@ public SyncPoller, RestorePointInner> beginCreate( * @return database restore points on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, + private Mono createAsync(String resourceGroupName, String workspaceName, String sqlPoolName, CreateSqlPoolRestorePointDefinition parameters) { - return beginCreateAsync(resourceGroupName, workspaceName, sqlPoolName, parameters) - .last() + return beginCreateAsync(resourceGroupName, workspaceName, sqlPoolName, parameters).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Creates a restore point for a data warehouse. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -620,20 +494,15 @@ private Mono createAsync( * @return database restore points on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - CreateSqlPoolRestorePointDefinition parameters, - Context context) { - return beginCreateAsync(resourceGroupName, workspaceName, sqlPoolName, parameters, context) - .last() + private Mono createAsync(String resourceGroupName, String workspaceName, String sqlPoolName, + CreateSqlPoolRestorePointDefinition parameters, Context context) { + return beginCreateAsync(resourceGroupName, workspaceName, sqlPoolName, parameters, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Creates a restore point for a data warehouse. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -644,17 +513,14 @@ private Mono createAsync( * @return database restore points. */ @ServiceMethod(returns = ReturnType.SINGLE) - public RestorePointInner create( - String resourceGroupName, - String workspaceName, - String sqlPoolName, + public RestorePointInner create(String resourceGroupName, String workspaceName, String sqlPoolName, CreateSqlPoolRestorePointDefinition parameters) { return createAsync(resourceGroupName, workspaceName, sqlPoolName, parameters).block(); } /** * Creates a restore point for a data warehouse. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -666,18 +532,14 @@ public RestorePointInner create( * @return database restore points. */ @ServiceMethod(returns = ReturnType.SINGLE) - public RestorePointInner create( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - CreateSqlPoolRestorePointDefinition parameters, - Context context) { + public RestorePointInner create(String resourceGroupName, String workspaceName, String sqlPoolName, + CreateSqlPoolRestorePointDefinition parameters, Context context) { return createAsync(resourceGroupName, workspaceName, sqlPoolName, parameters, context).block(); } /** * Gets a restore point. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -688,19 +550,15 @@ public RestorePointInner create( * @return a restore point along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, String restorePointName) { + private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String restorePointName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -719,25 +577,14 @@ private Mono> getWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - restorePointName, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, restorePointName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets a restore point. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -749,19 +596,15 @@ private Mono> getWithResponseAsync( * @return a restore point along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, String restorePointName, Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String restorePointName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -780,22 +623,13 @@ private Mono> getWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - restorePointName, - accept, - context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, restorePointName, accept, context); } /** * Gets a restore point. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -806,15 +640,15 @@ private Mono> getWithResponseAsync( * @return a restore point on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, String restorePointName) { + private Mono getAsync(String resourceGroupName, String workspaceName, String sqlPoolName, + String restorePointName) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, restorePointName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Gets a restore point. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -826,14 +660,14 @@ private Mono getAsync( * @return a restore point along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, String restorePointName, Context context) { + public Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, String restorePointName, Context context) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, restorePointName, context).block(); } /** * Gets a restore point. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -844,15 +678,15 @@ public Response getWithResponse( * @return a restore point. */ @ServiceMethod(returns = ReturnType.SINGLE) - public RestorePointInner get( - String resourceGroupName, String workspaceName, String sqlPoolName, String restorePointName) { + public RestorePointInner get(String resourceGroupName, String workspaceName, String sqlPoolName, + String restorePointName) { return getWithResponse(resourceGroupName, workspaceName, sqlPoolName, restorePointName, Context.NONE) .getValue(); } /** * Deletes a restore point. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -863,19 +697,15 @@ public RestorePointInner get( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, String restorePointName) { + private Mono> deleteWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String restorePointName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -894,23 +724,14 @@ private Mono> deleteWithResponseAsync( final String apiVersion = "2021-06-01"; return FluxUtil .withContext( - context -> - service - .delete( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - restorePointName, - context)) + context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, restorePointName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes a restore point. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -922,19 +743,15 @@ private Mono> deleteWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, String restorePointName, Context context) { + private Mono> deleteWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String restorePointName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -952,21 +769,13 @@ private Mono> deleteWithResponseAsync( } final String apiVersion = "2021-06-01"; context = this.client.mergeContext(context); - return service - .delete( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - restorePointName, - context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, restorePointName, context); } /** * Deletes a restore point. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -977,15 +786,15 @@ private Mono> deleteWithResponseAsync( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, String restorePointName) { + private Mono deleteAsync(String resourceGroupName, String workspaceName, String sqlPoolName, + String restorePointName) { return deleteWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, restorePointName) .flatMap(ignored -> Mono.empty()); } /** * Deletes a restore point. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -997,15 +806,15 @@ private Mono deleteAsync( * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, String restorePointName, Context context) { + public Response deleteWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + String restorePointName, Context context) { return deleteWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, restorePointName, context) .block(); } /** * Deletes a restore point. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1021,14 +830,15 @@ public void delete(String resourceGroupName, String workspaceName, String sqlPoo /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of long term retention backups along with {@link PagedResponse} on successful completion of {@link - * Mono}. + * @return a list of long term retention backups along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -1036,37 +846,28 @@ private Mono> listNextSinglePageAsync(String ne return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of long term retention backups along with {@link PagedResponse} on successful completion of {@link - * Mono}. + * @return a list of long term retention backups along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { @@ -1074,23 +875,13 @@ private Mono> listNextSinglePageAsync(String ne return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRestorePointsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRestorePointsImpl.java index c281f138030c..273797c8ae96 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRestorePointsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolRestorePointsImpl.java @@ -22,32 +22,29 @@ public final class SqlPoolRestorePointsImpl implements SqlPoolRestorePoints { private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public SqlPoolRestorePointsImpl( - SqlPoolRestorePointsClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + public SqlPoolRestorePointsImpl(SqlPoolRestorePointsClient innerClient, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } public PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName) { - PagedIterable inner = - this.serviceClient().list(resourceGroupName, workspaceName, sqlPoolName); - return Utils.mapPage(inner, inner1 -> new RestorePointImpl(inner1, this.manager())); + PagedIterable inner + = this.serviceClient().list(resourceGroupName, workspaceName, sqlPoolName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new RestorePointImpl(inner1, this.manager())); } - public PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { - PagedIterable inner = - this.serviceClient().list(resourceGroupName, workspaceName, sqlPoolName, context); - return Utils.mapPage(inner, inner1 -> new RestorePointImpl(inner1, this.manager())); + public PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName, + Context context) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, workspaceName, sqlPoolName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new RestorePointImpl(inner1, this.manager())); } - public RestorePoint create( - String resourceGroupName, - String workspaceName, - String sqlPoolName, + public RestorePoint create(String resourceGroupName, String workspaceName, String sqlPoolName, CreateSqlPoolRestorePointDefinition parameters) { - RestorePointInner inner = - this.serviceClient().create(resourceGroupName, workspaceName, sqlPoolName, parameters); + RestorePointInner inner + = this.serviceClient().create(resourceGroupName, workspaceName, sqlPoolName, parameters); if (inner != null) { return new RestorePointImpl(inner, this.manager()); } else { @@ -55,14 +52,10 @@ public RestorePoint create( } } - public RestorePoint create( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - CreateSqlPoolRestorePointDefinition parameters, - Context context) { - RestorePointInner inner = - this.serviceClient().create(resourceGroupName, workspaceName, sqlPoolName, parameters, context); + public RestorePoint create(String resourceGroupName, String workspaceName, String sqlPoolName, + CreateSqlPoolRestorePointDefinition parameters, Context context) { + RestorePointInner inner + = this.serviceClient().create(resourceGroupName, workspaceName, sqlPoolName, parameters, context); if (inner != null) { return new RestorePointImpl(inner, this.manager()); } else { @@ -70,27 +63,22 @@ public RestorePoint create( } } - public Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, String restorePointName, Context context) { - Response inner = - this - .serviceClient() - .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, restorePointName, context); + public Response getWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + String restorePointName, Context context) { + Response inner = this.serviceClient().getWithResponse(resourceGroupName, workspaceName, + sqlPoolName, restorePointName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new RestorePointImpl(inner.getValue(), this.manager())); } else { return null; } } - public RestorePoint get( - String resourceGroupName, String workspaceName, String sqlPoolName, String restorePointName) { - RestorePointInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, restorePointName); + public RestorePoint get(String resourceGroupName, String workspaceName, String sqlPoolName, + String restorePointName) { + RestorePointInner inner + = this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, restorePointName); if (inner != null) { return new RestorePointImpl(inner, this.manager()); } else { @@ -98,11 +86,10 @@ public RestorePoint get( } } - public Response deleteWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, String restorePointName, Context context) { - return this - .serviceClient() - .deleteWithResponse(resourceGroupName, workspaceName, sqlPoolName, restorePointName, context); + public Response deleteWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + String restorePointName, Context context) { + return this.serviceClient().deleteWithResponse(resourceGroupName, workspaceName, sqlPoolName, restorePointName, + context); } public void delete(String resourceGroupName, String workspaceName, String sqlPoolName, String restorePointName) { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSchemasClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSchemasClientImpl.java index f57301e1b869..b5520c2dbe11 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSchemasClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSchemasClientImpl.java @@ -30,82 +30,71 @@ import com.azure.resourcemanager.synapse.models.SqlPoolSchemaListResult; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in SqlPoolSchemasClient. */ +/** + * An instance of this class provides access to all the operations defined in SqlPoolSchemasClient. + */ public final class SqlPoolSchemasClientImpl implements SqlPoolSchemasClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final SqlPoolSchemasService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of SqlPoolSchemasClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ SqlPoolSchemasClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy.create(SqlPoolSchemasService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service + = RestProxy.create(SqlPoolSchemasService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for SynapseManagementClientSqlPoolSchemas to be used by the proxy service - * to perform REST calls. + * The interface defining all the services for SynapseManagementClientSqlPoolSchemas to be used by the proxy + * service to perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface SqlPoolSchemasService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/schemas") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("sqlPoolName") String sqlPoolName, - @QueryParam("$filter") String filter, - @HeaderParam("Accept") String accept, - Context context); + Mono> list(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("sqlPoolName") String sqlPoolName, @QueryParam("$filter") String filter, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("sqlPoolName") String sqlPoolName, - @PathParam("schemaName") String schemaName, - @HeaderParam("Accept") String accept, - Context context); + Mono> get(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("sqlPoolName") String sqlPoolName, @PathParam("schemaName") String schemaName, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Gets schemas of a given SQL pool - * - *

Gets schemas of a given SQL pool. - * + * + * Gets schemas of a given SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -116,19 +105,15 @@ Mono> listNext( * @return schemas of a given SQL pool along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, String filter) { + private Mono> listSinglePageAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String filter) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -143,36 +128,18 @@ private Mono> listSinglePageAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - filter, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, filter, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets schemas of a given SQL pool - * - *

Gets schemas of a given SQL pool. - * + * + * Gets schemas of a given SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -184,19 +151,15 @@ private Mono> listSinglePageAsync( * @return schemas of a given SQL pool along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, String filter, Context context) { + private Mono> listSinglePageAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String filter, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -212,32 +175,17 @@ private Mono> listSinglePageAsync( final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - filter, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, filter, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * Gets schemas of a given SQL pool - * - *

Gets schemas of a given SQL pool. - * + * + * Gets schemas of a given SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -248,18 +196,17 @@ private Mono> listSinglePageAsync( * @return schemas of a given SQL pool as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, String filter) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName, filter), + private PagedFlux listAsync(String resourceGroupName, String workspaceName, String sqlPoolName, + String filter) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName, filter), nextLink -> listNextSinglePageAsync(nextLink)); } /** * Gets schemas of a given SQL pool - * - *

Gets schemas of a given SQL pool. - * + * + * Gets schemas of a given SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -269,19 +216,18 @@ private PagedFlux listAsync( * @return schemas of a given SQL pool as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( - String resourceGroupName, String workspaceName, String sqlPoolName) { + private PagedFlux listAsync(String resourceGroupName, String workspaceName, + String sqlPoolName) { final String filter = null; - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName, filter), + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName, filter), nextLink -> listNextSinglePageAsync(nextLink)); } /** * Gets schemas of a given SQL pool - * - *

Gets schemas of a given SQL pool. - * + * + * Gets schemas of a given SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -293,8 +239,8 @@ private PagedFlux listAsync( * @return schemas of a given SQL pool as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, String filter, Context context) { + private PagedFlux listAsync(String resourceGroupName, String workspaceName, String sqlPoolName, + String filter, Context context) { return new PagedFlux<>( () -> listSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName, filter, context), nextLink -> listNextSinglePageAsync(nextLink, context)); @@ -302,9 +248,9 @@ private PagedFlux listAsync( /** * Gets schemas of a given SQL pool - * - *

Gets schemas of a given SQL pool. - * + * + * Gets schemas of a given SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -321,9 +267,9 @@ public PagedIterable list(String resourceGroupName, String w /** * Gets schemas of a given SQL pool - * - *

Gets schemas of a given SQL pool. - * + * + * Gets schemas of a given SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -335,14 +281,14 @@ public PagedIterable list(String resourceGroupName, String w * @return schemas of a given SQL pool as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName, String filter, Context context) { + public PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName, + String filter, Context context) { return new PagedIterable<>(listAsync(resourceGroupName, workspaceName, sqlPoolName, filter, context)); } /** * Get Sql Pool schema. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -353,19 +299,15 @@ public PagedIterable list( * @return sql Pool schema along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName) { + private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String schemaName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -383,25 +325,14 @@ private Mono> getWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - schemaName, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, schemaName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get Sql Pool schema. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -413,19 +344,15 @@ private Mono> getWithResponseAsync( * @return sql Pool schema along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String schemaName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -443,22 +370,13 @@ private Mono> getWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - schemaName, - accept, - context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, schemaName, accept, context); } /** * Get Sql Pool schema. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -469,15 +387,15 @@ private Mono> getWithResponseAsync( * @return sql Pool schema on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName) { + private Mono getAsync(String resourceGroupName, String workspaceName, String sqlPoolName, + String schemaName) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, schemaName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Get Sql Pool schema. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -489,14 +407,14 @@ private Mono getAsync( * @return sql Pool schema along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, Context context) { + public Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, String schemaName, Context context) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, schemaName, context).block(); } /** * Get Sql Pool schema. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -507,16 +425,17 @@ public Response getWithResponse( * @return sql Pool schema. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SqlPoolSchemaInner get( - String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName) { + public SqlPoolSchemaInner get(String resourceGroupName, String workspaceName, String sqlPoolName, + String schemaName) { return getWithResponse(resourceGroupName, workspaceName, sqlPoolName, schemaName, Context.NONE).getValue(); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -528,31 +447,22 @@ private Mono> listNextSinglePageAsync(String n return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -565,23 +475,13 @@ private Mono> listNextSinglePageAsync(String n return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSchemasImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSchemasImpl.java index 93f236c7822c..b776e110e123 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSchemasImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSchemasImpl.java @@ -21,34 +21,31 @@ public final class SqlPoolSchemasImpl implements SqlPoolSchemas { private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public SqlPoolSchemasImpl( - SqlPoolSchemasClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + public SqlPoolSchemasImpl(SqlPoolSchemasClient innerClient, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } public PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName) { - PagedIterable inner = - this.serviceClient().list(resourceGroupName, workspaceName, sqlPoolName); - return Utils.mapPage(inner, inner1 -> new SqlPoolSchemaImpl(inner1, this.manager())); + PagedIterable inner + = this.serviceClient().list(resourceGroupName, workspaceName, sqlPoolName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SqlPoolSchemaImpl(inner1, this.manager())); } - public PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName, String filter, Context context) { - PagedIterable inner = - this.serviceClient().list(resourceGroupName, workspaceName, sqlPoolName, filter, context); - return Utils.mapPage(inner, inner1 -> new SqlPoolSchemaImpl(inner1, this.manager())); + public PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName, + String filter, Context context) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, workspaceName, sqlPoolName, filter, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SqlPoolSchemaImpl(inner1, this.manager())); } - public Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, Context context) { - Response inner = - this.serviceClient().getWithResponse(resourceGroupName, workspaceName, sqlPoolName, schemaName, context); + public Response getWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + String schemaName, Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, workspaceName, sqlPoolName, schemaName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new SqlPoolSchemaImpl(inner.getValue(), this.manager())); } else { return null; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSecurityAlertPoliciesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSecurityAlertPoliciesClientImpl.java index 218dd321c5c8..9b4658c4c880 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSecurityAlertPoliciesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSecurityAlertPoliciesClientImpl.java @@ -33,101 +33,84 @@ import com.azure.resourcemanager.synapse.models.SecurityAlertPolicyName; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in SqlPoolSecurityAlertPoliciesClient. */ +/** + * An instance of this class provides access to all the operations defined in SqlPoolSecurityAlertPoliciesClient. + */ public final class SqlPoolSecurityAlertPoliciesClientImpl implements SqlPoolSecurityAlertPoliciesClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final SqlPoolSecurityAlertPoliciesService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of SqlPoolSecurityAlertPoliciesClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ SqlPoolSecurityAlertPoliciesClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy - .create( - SqlPoolSecurityAlertPoliciesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service = RestProxy.create(SqlPoolSecurityAlertPoliciesService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for SynapseManagementClientSqlPoolSecurityAlertPolicies to be used by the - * proxy service to perform REST calls. + * The interface defining all the services for SynapseManagementClientSqlPoolSecurityAlertPolicies to be used by + * the proxy service to perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface SqlPoolSecurityAlertPoliciesService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/securityAlertPolicies") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/securityAlertPolicies") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("sqlPoolName") String sqlPoolName, - @HeaderParam("Accept") String accept, - Context context); + Mono> list(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("sqlPoolName") String sqlPoolName, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/securityAlertPolicies/{securityAlertPolicyName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/securityAlertPolicies/{securityAlertPolicyName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono> get(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("sqlPoolName") String sqlPoolName, @PathParam("securityAlertPolicyName") SecurityAlertPolicyName securityAlertPolicyName, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/securityAlertPolicies/{securityAlertPolicyName}") - @ExpectedResponses({200, 201}) + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/securityAlertPolicies/{securityAlertPolicyName}") + @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono> createOrUpdate(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("sqlPoolName") String sqlPoolName, @PathParam("securityAlertPolicyName") SecurityAlertPolicyName securityAlertPolicyName, @BodyParam("application/json") SqlPoolSecurityAlertPolicyInner parameters, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** * List Sql pool's security alert policies - * - *

Get a list of Sql pool's security alert policies. - * + * + * Get a list of Sql pool's security alert policies. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -135,22 +118,18 @@ Mono> listNext( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of Sql pool's security alert policies along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String workspaceName, String sqlPoolName) { + private Mono> listSinglePageAsync(String resourceGroupName, + String workspaceName, String sqlPoolName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -165,35 +144,18 @@ private Mono> listSinglePageAsync final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * List Sql pool's security alert policies - * - *

Get a list of Sql pool's security alert policies. - * + * + * Get a list of Sql pool's security alert policies. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -202,22 +164,18 @@ private Mono> listSinglePageAsync * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of Sql pool's security alert policies along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + private Mono> listSinglePageAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -233,31 +191,17 @@ private Mono> listSinglePageAsync final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * List Sql pool's security alert policies - * - *

Get a list of Sql pool's security alert policies. - * + * + * Get a list of Sql pool's security alert policies. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -267,18 +211,17 @@ private Mono> listSinglePageAsync * @return a list of Sql pool's security alert policies as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( - String resourceGroupName, String workspaceName, String sqlPoolName) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName), + private PagedFlux listAsync(String resourceGroupName, String workspaceName, + String sqlPoolName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName), nextLink -> listNextSinglePageAsync(nextLink)); } /** * List Sql pool's security alert policies - * - *

Get a list of Sql pool's security alert policies. - * + * + * Get a list of Sql pool's security alert policies. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -289,18 +232,17 @@ private PagedFlux listAsync( * @return a list of Sql pool's security alert policies as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName, context), + private PagedFlux listAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } /** * List Sql pool's security alert policies - * - *

Get a list of Sql pool's security alert policies. - * + * + * Get a list of Sql pool's security alert policies. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -310,16 +252,16 @@ private PagedFlux listAsync( * @return a list of Sql pool's security alert policies as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName) { + public PagedIterable list(String resourceGroupName, String workspaceName, + String sqlPoolName) { return new PagedIterable<>(listAsync(resourceGroupName, workspaceName, sqlPoolName)); } /** * List Sql pool's security alert policies - * - *

Get a list of Sql pool's security alert policies. - * + * + * Get a list of Sql pool's security alert policies. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -330,16 +272,16 @@ public PagedIterable list( * @return a list of Sql pool's security alert policies as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + public PagedIterable list(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context) { return new PagedIterable<>(listAsync(resourceGroupName, workspaceName, sqlPoolName, context)); } /** * Get a Sql pool's security alert policy - * - *

Get a Sql pool's security alert policy. - * + * + * Get a Sql pool's security alert policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -350,22 +292,15 @@ public PagedIterable list( * @return a Sql pool's security alert policy along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - SecurityAlertPolicyName securityAlertPolicyName) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, SecurityAlertPolicyName securityAlertPolicyName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -378,34 +313,22 @@ private Mono> getWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } if (securityAlertPolicyName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter securityAlertPolicyName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter securityAlertPolicyName is required and cannot be null.")); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - securityAlertPolicyName, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, securityAlertPolicyName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get a Sql pool's security alert policy - * - *

Get a Sql pool's security alert policy. - * + * + * Get a Sql pool's security alert policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -417,23 +340,15 @@ private Mono> getWithResponseAsync( * @return a Sql pool's security alert policy along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - SecurityAlertPolicyName securityAlertPolicyName, - Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, SecurityAlertPolicyName securityAlertPolicyName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -446,31 +361,21 @@ private Mono> getWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } if (securityAlertPolicyName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter securityAlertPolicyName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter securityAlertPolicyName is required and cannot be null.")); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - securityAlertPolicyName, - accept, - context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, securityAlertPolicyName, accept, context); } /** * Get a Sql pool's security alert policy - * - *

Get a Sql pool's security alert policy. - * + * + * Get a Sql pool's security alert policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -481,20 +386,17 @@ private Mono> getWithResponseAsync( * @return a Sql pool's security alert policy on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - SecurityAlertPolicyName securityAlertPolicyName) { + private Mono getAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, SecurityAlertPolicyName securityAlertPolicyName) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, securityAlertPolicyName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Get a Sql pool's security alert policy - * - *

Get a Sql pool's security alert policy. - * + * + * Get a Sql pool's security alert policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -506,21 +408,17 @@ private Mono getAsync( * @return a Sql pool's security alert policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - SecurityAlertPolicyName securityAlertPolicyName, - Context context) { + public Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, SecurityAlertPolicyName securityAlertPolicyName, Context context) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, securityAlertPolicyName, context) .block(); } /** * Get a Sql pool's security alert policy - * - *

Get a Sql pool's security alert policy. - * + * + * Get a Sql pool's security alert policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -531,10 +429,7 @@ public Response getWithResponse( * @return a Sql pool's security alert policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SqlPoolSecurityAlertPolicyInner get( - String resourceGroupName, - String workspaceName, - String sqlPoolName, + public SqlPoolSecurityAlertPolicyInner get(String resourceGroupName, String workspaceName, String sqlPoolName, SecurityAlertPolicyName securityAlertPolicyName) { return getWithResponse(resourceGroupName, workspaceName, sqlPoolName, securityAlertPolicyName, Context.NONE) .getValue(); @@ -542,9 +437,9 @@ public SqlPoolSecurityAlertPolicyInner get( /** * Create or update a Sql pool's security alert policy - * - *

Create or update a Sql pool's security alert policy. - * + * + * Create or update a Sql pool's security alert policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -556,23 +451,16 @@ public SqlPoolSecurityAlertPolicyInner get( * @return a Sql pool security alert policy along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - SecurityAlertPolicyName securityAlertPolicyName, + private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, SecurityAlertPolicyName securityAlertPolicyName, SqlPoolSecurityAlertPolicyInner parameters) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -585,9 +473,8 @@ private Mono> createOrUpdateWithRespon return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } if (securityAlertPolicyName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter securityAlertPolicyName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter securityAlertPolicyName is required and cannot be null.")); } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); @@ -597,28 +484,17 @@ private Mono> createOrUpdateWithRespon final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - securityAlertPolicyName, - parameters, - accept, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, securityAlertPolicyName, + parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Create or update a Sql pool's security alert policy - * - *

Create or update a Sql pool's security alert policy. - * + * + * Create or update a Sql pool's security alert policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -631,24 +507,16 @@ private Mono> createOrUpdateWithRespon * @return a Sql pool security alert policy along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - SecurityAlertPolicyName securityAlertPolicyName, - SqlPoolSecurityAlertPolicyInner parameters, - Context context) { + private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, SecurityAlertPolicyName securityAlertPolicyName, + SqlPoolSecurityAlertPolicyInner parameters, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -661,9 +529,8 @@ private Mono> createOrUpdateWithRespon return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } if (securityAlertPolicyName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter securityAlertPolicyName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter securityAlertPolicyName is required and cannot be null.")); } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); @@ -673,25 +540,15 @@ private Mono> createOrUpdateWithRespon final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - securityAlertPolicyName, - parameters, - accept, - context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, securityAlertPolicyName, parameters, accept, context); } /** * Create or update a Sql pool's security alert policy - * - *

Create or update a Sql pool's security alert policy. - * + * + * Create or update a Sql pool's security alert policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -703,22 +560,18 @@ private Mono> createOrUpdateWithRespon * @return a Sql pool security alert policy on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - SecurityAlertPolicyName securityAlertPolicyName, + private Mono createOrUpdateAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, SecurityAlertPolicyName securityAlertPolicyName, SqlPoolSecurityAlertPolicyInner parameters) { - return createOrUpdateWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, securityAlertPolicyName, parameters) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + return createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, securityAlertPolicyName, + parameters).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Create or update a Sql pool's security alert policy - * - *

Create or update a Sql pool's security alert policy. - * + * + * Create or update a Sql pool's security alert policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -731,23 +584,18 @@ private Mono createOrUpdateAsync( * @return a Sql pool security alert policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - SecurityAlertPolicyName securityAlertPolicyName, - SqlPoolSecurityAlertPolicyInner parameters, - Context context) { - return createOrUpdateWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, securityAlertPolicyName, parameters, context) - .block(); + public Response createOrUpdateWithResponse(String resourceGroupName, + String workspaceName, String sqlPoolName, SecurityAlertPolicyName securityAlertPolicyName, + SqlPoolSecurityAlertPolicyInner parameters, Context context) { + return createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, securityAlertPolicyName, + parameters, context).block(); } /** * Create or update a Sql pool's security alert policy - * - *

Create or update a Sql pool's security alert policy. - * + * + * Create or update a Sql pool's security alert policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -759,27 +607,24 @@ public Response createOrUpdateWithResponse( * @return a Sql pool security alert policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SqlPoolSecurityAlertPolicyInner createOrUpdate( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - SecurityAlertPolicyName securityAlertPolicyName, + public SqlPoolSecurityAlertPolicyInner createOrUpdate(String resourceGroupName, String workspaceName, + String sqlPoolName, SecurityAlertPolicyName securityAlertPolicyName, SqlPoolSecurityAlertPolicyInner parameters) { - return createOrUpdateWithResponse( - resourceGroupName, workspaceName, sqlPoolName, securityAlertPolicyName, parameters, Context.NONE) - .getValue(); + return createOrUpdateWithResponse(resourceGroupName, workspaceName, sqlPoolName, securityAlertPolicyName, + parameters, Context.NONE).getValue(); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of SQL pool security alert policies along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -787,62 +632,43 @@ private Mono> listNextSinglePageA return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of SQL pool security alert policies along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync( - String nextLink, Context context) { + private Mono> listNextSinglePageAsync(String nextLink, + Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSecurityAlertPoliciesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSecurityAlertPoliciesImpl.java index 96905c059daf..84c4ba0950af 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSecurityAlertPoliciesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSecurityAlertPoliciesImpl.java @@ -22,55 +22,44 @@ public final class SqlPoolSecurityAlertPoliciesImpl implements SqlPoolSecurityAl private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public SqlPoolSecurityAlertPoliciesImpl( - SqlPoolSecurityAlertPoliciesClient innerClient, + public SqlPoolSecurityAlertPoliciesImpl(SqlPoolSecurityAlertPoliciesClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName) { - PagedIterable inner = - this.serviceClient().list(resourceGroupName, workspaceName, sqlPoolName); - return Utils.mapPage(inner, inner1 -> new SqlPoolSecurityAlertPolicyImpl(inner1, this.manager())); + public PagedIterable list(String resourceGroupName, String workspaceName, + String sqlPoolName) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, workspaceName, sqlPoolName); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new SqlPoolSecurityAlertPolicyImpl(inner1, this.manager())); } - public PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { - PagedIterable inner = - this.serviceClient().list(resourceGroupName, workspaceName, sqlPoolName, context); - return Utils.mapPage(inner, inner1 -> new SqlPoolSecurityAlertPolicyImpl(inner1, this.manager())); + public PagedIterable list(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, workspaceName, sqlPoolName, context); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new SqlPoolSecurityAlertPolicyImpl(inner1, this.manager())); } - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - SecurityAlertPolicyName securityAlertPolicyName, - Context context) { - Response inner = - this - .serviceClient() - .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, securityAlertPolicyName, context); + public Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, SecurityAlertPolicyName securityAlertPolicyName, Context context) { + Response inner = this.serviceClient().getWithResponse(resourceGroupName, + workspaceName, sqlPoolName, securityAlertPolicyName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new SqlPoolSecurityAlertPolicyImpl(inner.getValue(), this.manager())); } else { return null; } } - public SqlPoolSecurityAlertPolicy get( - String resourceGroupName, - String workspaceName, - String sqlPoolName, + public SqlPoolSecurityAlertPolicy get(String resourceGroupName, String workspaceName, String sqlPoolName, SecurityAlertPolicyName securityAlertPolicyName) { - SqlPoolSecurityAlertPolicyInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, securityAlertPolicyName); + SqlPoolSecurityAlertPolicyInner inner + = this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, securityAlertPolicyName); if (inner != null) { return new SqlPoolSecurityAlertPolicyImpl(inner, this.manager()); } else { @@ -79,80 +68,56 @@ public SqlPoolSecurityAlertPolicy get( } public SqlPoolSecurityAlertPolicy getById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); + String sqlPoolName = ResourceManagerUtils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } - String securityAlertPolicyNameLocal = Utils.getValueFromIdByName(id, "securityAlertPolicies"); + String securityAlertPolicyNameLocal = ResourceManagerUtils.getValueFromIdByName(id, "securityAlertPolicies"); if (securityAlertPolicyNameLocal == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'securityAlertPolicies'.", - id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'securityAlertPolicies'.", id))); } - SecurityAlertPolicyName securityAlertPolicyName = - SecurityAlertPolicyName.fromString(securityAlertPolicyNameLocal); + SecurityAlertPolicyName securityAlertPolicyName + = SecurityAlertPolicyName.fromString(securityAlertPolicyNameLocal); return this .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, securityAlertPolicyName, Context.NONE) .getValue(); } public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); + String sqlPoolName = ResourceManagerUtils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } - String securityAlertPolicyNameLocal = Utils.getValueFromIdByName(id, "securityAlertPolicies"); + String securityAlertPolicyNameLocal = ResourceManagerUtils.getValueFromIdByName(id, "securityAlertPolicies"); if (securityAlertPolicyNameLocal == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'securityAlertPolicies'.", - id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'securityAlertPolicies'.", id))); } - SecurityAlertPolicyName securityAlertPolicyName = - SecurityAlertPolicyName.fromString(securityAlertPolicyNameLocal); + SecurityAlertPolicyName securityAlertPolicyName + = SecurityAlertPolicyName.fromString(securityAlertPolicyNameLocal); return this.getWithResponse(resourceGroupName, workspaceName, sqlPoolName, securityAlertPolicyName, context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSecurityAlertPolicyImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSecurityAlertPolicyImpl.java index d4c7fdf0a60d..11eca493ee7e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSecurityAlertPolicyImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSecurityAlertPolicyImpl.java @@ -93,8 +93,8 @@ private com.azure.resourcemanager.synapse.SynapseManager manager() { private SecurityAlertPolicyName securityAlertPolicyName; - public SqlPoolSecurityAlertPolicyImpl withExistingSqlPool( - String resourceGroupName, String workspaceName, String sqlPoolName) { + public SqlPoolSecurityAlertPolicyImpl withExistingSqlPool(String resourceGroupName, String workspaceName, + String sqlPoolName) { this.resourceGroupName = resourceGroupName; this.workspaceName = workspaceName; this.sqlPoolName = sqlPoolName; @@ -102,34 +102,23 @@ public SqlPoolSecurityAlertPolicyImpl withExistingSqlPool( } public SqlPoolSecurityAlertPolicy create() { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolSecurityAlertPolicies() - .createOrUpdateWithResponse( - resourceGroupName, - workspaceName, - sqlPoolName, - securityAlertPolicyName, - this.innerModel(), - Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getSqlPoolSecurityAlertPolicies() + .createOrUpdateWithResponse(resourceGroupName, workspaceName, sqlPoolName, securityAlertPolicyName, + this.innerModel(), Context.NONE) + .getValue(); return this; } public SqlPoolSecurityAlertPolicy create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolSecurityAlertPolicies() - .createOrUpdateWithResponse( - resourceGroupName, workspaceName, sqlPoolName, securityAlertPolicyName, this.innerModel(), context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getSqlPoolSecurityAlertPolicies() + .createOrUpdateWithResponse(resourceGroupName, workspaceName, sqlPoolName, securityAlertPolicyName, + this.innerModel(), context) + .getValue(); return this; } - SqlPoolSecurityAlertPolicyImpl( - SecurityAlertPolicyName name, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + SqlPoolSecurityAlertPolicyImpl(SecurityAlertPolicyName name, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = new SqlPoolSecurityAlertPolicyInner(); this.serviceManager = serviceManager; this.securityAlertPolicyName = name; @@ -140,60 +129,43 @@ public SqlPoolSecurityAlertPolicyImpl update() { } public SqlPoolSecurityAlertPolicy apply() { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolSecurityAlertPolicies() - .createOrUpdateWithResponse( - resourceGroupName, - workspaceName, - sqlPoolName, - securityAlertPolicyName, - this.innerModel(), - Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getSqlPoolSecurityAlertPolicies() + .createOrUpdateWithResponse(resourceGroupName, workspaceName, sqlPoolName, securityAlertPolicyName, + this.innerModel(), Context.NONE) + .getValue(); return this; } public SqlPoolSecurityAlertPolicy apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolSecurityAlertPolicies() - .createOrUpdateWithResponse( - resourceGroupName, workspaceName, sqlPoolName, securityAlertPolicyName, this.innerModel(), context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getSqlPoolSecurityAlertPolicies() + .createOrUpdateWithResponse(resourceGroupName, workspaceName, sqlPoolName, securityAlertPolicyName, + this.innerModel(), context) + .getValue(); return this; } - SqlPoolSecurityAlertPolicyImpl( - SqlPoolSecurityAlertPolicyInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + SqlPoolSecurityAlertPolicyImpl(SqlPoolSecurityAlertPolicyInner innerObject, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.workspaceName = Utils.getValueFromIdByName(innerObject.id(), "workspaces"); - this.sqlPoolName = Utils.getValueFromIdByName(innerObject.id(), "sqlPools"); - this.securityAlertPolicyName = - SecurityAlertPolicyName.fromString(Utils.getValueFromIdByName(innerObject.id(), "securityAlertPolicies")); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.workspaceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workspaces"); + this.sqlPoolName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "sqlPools"); + this.securityAlertPolicyName = SecurityAlertPolicyName + .fromString(ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "securityAlertPolicies")); } public SqlPoolSecurityAlertPolicy refresh() { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolSecurityAlertPolicies() - .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, securityAlertPolicyName, Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getSqlPoolSecurityAlertPolicies() + .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, securityAlertPolicyName, Context.NONE) + .getValue(); return this; } public SqlPoolSecurityAlertPolicy refresh(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolSecurityAlertPolicies() - .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, securityAlertPolicyName, context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getSqlPoolSecurityAlertPolicies() + .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, securityAlertPolicyName, context) + .getValue(); return this; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSensitivityLabelsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSensitivityLabelsClientImpl.java index 737b4382bea8..07bed853b93c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSensitivityLabelsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSensitivityLabelsClientImpl.java @@ -37,23 +37,28 @@ import com.azure.resourcemanager.synapse.models.SensitivityLabelUpdateList; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in SqlPoolSensitivityLabelsClient. */ +/** + * An instance of this class provides access to all the operations defined in SqlPoolSensitivityLabelsClient. + */ public final class SqlPoolSensitivityLabelsClientImpl implements SqlPoolSensitivityLabelsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final SqlPoolSensitivityLabelsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of SqlPoolSensitivityLabelsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ SqlPoolSensitivityLabelsClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy - .create(SqlPoolSensitivityLabelsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service = RestProxy.create(SqlPoolSensitivityLabelsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } @@ -64,187 +69,118 @@ public final class SqlPoolSensitivityLabelsClientImpl implements SqlPoolSensitiv @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface SqlPoolSensitivityLabelsService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/currentSensitivityLabels") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/currentSensitivityLabels") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listCurrent( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("sqlPoolName") String sqlPoolName, - @QueryParam("$filter") String filter, - @HeaderParam("Accept") String accept, - Context context); + Mono> listCurrent(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("sqlPoolName") String sqlPoolName, @QueryParam("$filter") String filter, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) - @Patch( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/currentSensitivityLabels") - @ExpectedResponses({200}) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/currentSensitivityLabels") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> update( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, + Mono> update(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("sqlPoolName") String sqlPoolName, - @BodyParam("application/json") SensitivityLabelUpdateList parameters, - Context context); + @BodyParam("application/json") SensitivityLabelUpdateList parameters, Context context); - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/recommendedSensitivityLabels") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/recommendedSensitivityLabels") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listRecommended( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono> listRecommended(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("sqlPoolName") String sqlPoolName, @QueryParam("includeDisabledRecommendations") Boolean includeDisabledRecommendations, - @QueryParam("$skipToken") String skipToken, - @QueryParam("$filter") String filter, - @HeaderParam("Accept") String accept, - Context context); + @QueryParam("$skipToken") String skipToken, @QueryParam("$filter") String filter, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}" - + "/sensitivityLabels/{sensitivityLabelSource}") - @ExpectedResponses({200, 201}) + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}") + @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("sqlPoolName") String sqlPoolName, - @PathParam("schemaName") String schemaName, - @PathParam("tableName") String tableName, - @PathParam("columnName") String columnName, + Mono> createOrUpdate(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("sqlPoolName") String sqlPoolName, @PathParam("schemaName") String schemaName, + @PathParam("tableName") String tableName, @PathParam("columnName") String columnName, @PathParam("sensitivityLabelSource") String sensitivityLabelSource, - @BodyParam("application/json") SensitivityLabelInner parameters, - @HeaderParam("Accept") String accept, + @BodyParam("application/json") SensitivityLabelInner parameters, @HeaderParam("Accept") String accept, Context context); - @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}" - + "/sensitivityLabels/{sensitivityLabelSource}") - @ExpectedResponses({200, 204}) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}") + @ExpectedResponses({ 200, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> delete( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, + Mono> delete(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("sqlPoolName") String sqlPoolName, - @PathParam("schemaName") String schemaName, - @PathParam("tableName") String tableName, - @PathParam("columnName") String columnName, - @PathParam("sensitivityLabelSource") String sensitivityLabelSource, - Context context); + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("sqlPoolName") String sqlPoolName, @PathParam("schemaName") String schemaName, + @PathParam("tableName") String tableName, @PathParam("columnName") String columnName, + @PathParam("sensitivityLabelSource") String sensitivityLabelSource, Context context); - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}" - + "/sensitivityLabels/{sensitivityLabelSource}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("sqlPoolName") String sqlPoolName, - @PathParam("schemaName") String schemaName, - @PathParam("tableName") String tableName, - @PathParam("columnName") String columnName, + Mono> get(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("sqlPoolName") String sqlPoolName, @PathParam("schemaName") String schemaName, + @PathParam("tableName") String tableName, @PathParam("columnName") String columnName, @PathParam("sensitivityLabelSource") SensitivityLabelSource sensitivityLabelSource, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}" - + "/sensitivityLabels/{sensitivityLabelSource}/enable") - @ExpectedResponses({200}) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}/enable") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> enableRecommendation( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("sqlPoolName") String sqlPoolName, - @PathParam("schemaName") String schemaName, - @PathParam("tableName") String tableName, - @PathParam("columnName") String columnName, - @PathParam("sensitivityLabelSource") String sensitivityLabelSource, - Context context); + Mono> enableRecommendation(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("sqlPoolName") String sqlPoolName, @PathParam("schemaName") String schemaName, + @PathParam("tableName") String tableName, @PathParam("columnName") String columnName, + @PathParam("sensitivityLabelSource") String sensitivityLabelSource, Context context); - @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}" - + "/sensitivityLabels/{sensitivityLabelSource}/disable") - @ExpectedResponses({200}) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}/disable") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> disableRecommendation( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("sqlPoolName") String sqlPoolName, - @PathParam("schemaName") String schemaName, - @PathParam("tableName") String tableName, - @PathParam("columnName") String columnName, - @PathParam("sensitivityLabelSource") String sensitivityLabelSource, - Context context); + Mono> disableRecommendation(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("sqlPoolName") String sqlPoolName, @PathParam("schemaName") String schemaName, + @PathParam("tableName") String tableName, @PathParam("columnName") String columnName, + @PathParam("sensitivityLabelSource") String sensitivityLabelSource, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listCurrentNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listRecommendedNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** * Gets SQL pool sensitivity labels - * - *

Gets SQL pool sensitivity labels. - * + * + * Gets SQL pool sensitivity labels. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -255,19 +191,15 @@ Mono> listRecommendedNext( * @return sQL pool sensitivity labels along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listCurrentSinglePageAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, String filter) { + private Mono> listCurrentSinglePageAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, String filter) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -283,35 +215,18 @@ private Mono> listCurrentSinglePageAsync( final String accept = "application/json"; return FluxUtil .withContext( - context -> - service - .listCurrent( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - filter, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + context -> service.listCurrent(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, filter, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets SQL pool sensitivity labels - * - *

Gets SQL pool sensitivity labels. - * + * + * Gets SQL pool sensitivity labels. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -323,19 +238,15 @@ private Mono> listCurrentSinglePageAsync( * @return sQL pool sensitivity labels along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listCurrentSinglePageAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, String filter, Context context) { + private Mono> listCurrentSinglePageAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, String filter, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -351,32 +262,17 @@ private Mono> listCurrentSinglePageAsync( final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listCurrent( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - filter, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + .listCurrent(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, filter, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * Gets SQL pool sensitivity labels - * - *

Gets SQL pool sensitivity labels. - * + * + * Gets SQL pool sensitivity labels. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -387,18 +283,17 @@ private Mono> listCurrentSinglePageAsync( * @return sQL pool sensitivity labels as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listCurrentAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, String filter) { - return new PagedFlux<>( - () -> listCurrentSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName, filter), + private PagedFlux listCurrentAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String filter) { + return new PagedFlux<>(() -> listCurrentSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName, filter), nextLink -> listCurrentNextSinglePageAsync(nextLink)); } /** * Gets SQL pool sensitivity labels - * - *

Gets SQL pool sensitivity labels. - * + * + * Gets SQL pool sensitivity labels. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -408,19 +303,18 @@ private PagedFlux listCurrentAsync( * @return sQL pool sensitivity labels as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listCurrentAsync( - String resourceGroupName, String workspaceName, String sqlPoolName) { + private PagedFlux listCurrentAsync(String resourceGroupName, String workspaceName, + String sqlPoolName) { final String filter = null; - return new PagedFlux<>( - () -> listCurrentSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName, filter), + return new PagedFlux<>(() -> listCurrentSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName, filter), nextLink -> listCurrentNextSinglePageAsync(nextLink)); } /** * Gets SQL pool sensitivity labels - * - *

Gets SQL pool sensitivity labels. - * + * + * Gets SQL pool sensitivity labels. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -432,8 +326,8 @@ private PagedFlux listCurrentAsync( * @return sQL pool sensitivity labels as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listCurrentAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, String filter, Context context) { + private PagedFlux listCurrentAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String filter, Context context) { return new PagedFlux<>( () -> listCurrentSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName, filter, context), nextLink -> listCurrentNextSinglePageAsync(nextLink, context)); @@ -441,9 +335,9 @@ private PagedFlux listCurrentAsync( /** * Gets SQL pool sensitivity labels - * - *

Gets SQL pool sensitivity labels. - * + * + * Gets SQL pool sensitivity labels. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -453,17 +347,17 @@ private PagedFlux listCurrentAsync( * @return sQL pool sensitivity labels as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listCurrent( - String resourceGroupName, String workspaceName, String sqlPoolName) { + public PagedIterable listCurrent(String resourceGroupName, String workspaceName, + String sqlPoolName) { final String filter = null; return new PagedIterable<>(listCurrentAsync(resourceGroupName, workspaceName, sqlPoolName, filter)); } /** * Gets SQL pool sensitivity labels - * - *

Gets SQL pool sensitivity labels. - * + * + * Gets SQL pool sensitivity labels. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -475,14 +369,14 @@ public PagedIterable listCurrent( * @return sQL pool sensitivity labels as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listCurrent( - String resourceGroupName, String workspaceName, String sqlPoolName, String filter, Context context) { + public PagedIterable listCurrent(String resourceGroupName, String workspaceName, + String sqlPoolName, String filter, Context context) { return new PagedIterable<>(listCurrentAsync(resourceGroupName, workspaceName, sqlPoolName, filter, context)); } /** * Update sensitivity labels of a given SQL Pool using an operations batch. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -493,19 +387,15 @@ public PagedIterable listCurrent( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateWithResponseAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, SensitivityLabelUpdateList parameters) { + private Mono> updateWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, SensitivityLabelUpdateList parameters) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -524,24 +414,14 @@ private Mono> updateWithResponseAsync( } final String apiVersion = "2021-06-01"; return FluxUtil - .withContext( - context -> - service - .update( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - parameters, - context)) + .withContext(context -> service.update(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Update sensitivity labels of a given SQL Pool using an operations batch. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -553,23 +433,15 @@ private Mono> updateWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - SensitivityLabelUpdateList parameters, - Context context) { + private Mono> updateWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, SensitivityLabelUpdateList parameters, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -588,21 +460,13 @@ private Mono> updateWithResponseAsync( } final String apiVersion = "2021-06-01"; context = this.client.mergeContext(context); - return service - .update( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - parameters, - context); + return service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, parameters, context); } /** * Update sensitivity labels of a given SQL Pool using an operations batch. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -613,15 +477,15 @@ private Mono> updateWithResponseAsync( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, SensitivityLabelUpdateList parameters) { + private Mono updateAsync(String resourceGroupName, String workspaceName, String sqlPoolName, + SensitivityLabelUpdateList parameters) { return updateWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, parameters) .flatMap(ignored -> Mono.empty()); } /** * Update sensitivity labels of a given SQL Pool using an operations batch. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -633,18 +497,14 @@ private Mono updateAsync( * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - SensitivityLabelUpdateList parameters, - Context context) { + public Response updateWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + SensitivityLabelUpdateList parameters, Context context) { return updateWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, parameters, context).block(); } /** * Update sensitivity labels of a given SQL Pool using an operations batch. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -654,16 +514,16 @@ public Response updateWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void update( - String resourceGroupName, String workspaceName, String sqlPoolName, SensitivityLabelUpdateList parameters) { + public void update(String resourceGroupName, String workspaceName, String sqlPoolName, + SensitivityLabelUpdateList parameters) { updateWithResponse(resourceGroupName, workspaceName, sqlPoolName, parameters, Context.NONE); } /** * Gets sensitivity labels of a given SQL pool - * - *

Gets sensitivity labels of a given SQL pool. - * + * + * Gets sensitivity labels of a given SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -674,27 +534,19 @@ public void update( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return sensitivity labels of a given SQL pool along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listRecommendedSinglePageAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - Boolean includeDisabledRecommendations, - String skipToken, + private Mono> listRecommendedSinglePageAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, Boolean includeDisabledRecommendations, String skipToken, String filter) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -709,38 +561,19 @@ private Mono> listRecommendedSinglePageAsyn final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .listRecommended( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - includeDisabledRecommendations, - skipToken, - filter, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .withContext(context -> service.listRecommended(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, + includeDisabledRecommendations, skipToken, filter, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets sensitivity labels of a given SQL pool - * - *

Gets sensitivity labels of a given SQL pool. - * + * + * Gets sensitivity labels of a given SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -752,28 +585,19 @@ private Mono> listRecommendedSinglePageAsyn * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return sensitivity labels of a given SQL pool along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listRecommendedSinglePageAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - Boolean includeDisabledRecommendations, - String skipToken, - String filter, - Context context) { + private Mono> listRecommendedSinglePageAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, Boolean includeDisabledRecommendations, String skipToken, + String filter, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -789,34 +613,17 @@ private Mono> listRecommendedSinglePageAsyn final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listRecommended( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - includeDisabledRecommendations, - skipToken, - filter, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + .listRecommended(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, includeDisabledRecommendations, skipToken, filter, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * Gets sensitivity labels of a given SQL pool - * - *

Gets sensitivity labels of a given SQL pool. - * + * + * Gets sensitivity labels of a given SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -829,25 +636,19 @@ private Mono> listRecommendedSinglePageAsyn * @return sensitivity labels of a given SQL pool as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listRecommendedAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - Boolean includeDisabledRecommendations, - String skipToken, - String filter) { + private PagedFlux listRecommendedAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, Boolean includeDisabledRecommendations, String skipToken, String filter) { return new PagedFlux<>( - () -> - listRecommendedSinglePageAsync( - resourceGroupName, workspaceName, sqlPoolName, includeDisabledRecommendations, skipToken, filter), + () -> listRecommendedSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName, + includeDisabledRecommendations, skipToken, filter), nextLink -> listRecommendedNextSinglePageAsync(nextLink)); } /** * Gets sensitivity labels of a given SQL pool - * - *

Gets sensitivity labels of a given SQL pool. - * + * + * Gets sensitivity labels of a given SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -857,23 +658,22 @@ private PagedFlux listRecommendedAsync( * @return sensitivity labels of a given SQL pool as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listRecommendedAsync( - String resourceGroupName, String workspaceName, String sqlPoolName) { + private PagedFlux listRecommendedAsync(String resourceGroupName, String workspaceName, + String sqlPoolName) { final Boolean includeDisabledRecommendations = null; final String skipToken = null; final String filter = null; return new PagedFlux<>( - () -> - listRecommendedSinglePageAsync( - resourceGroupName, workspaceName, sqlPoolName, includeDisabledRecommendations, skipToken, filter), + () -> listRecommendedSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName, + includeDisabledRecommendations, skipToken, filter), nextLink -> listRecommendedNextSinglePageAsync(nextLink)); } /** * Gets sensitivity labels of a given SQL pool - * - *

Gets sensitivity labels of a given SQL pool. - * + * + * Gets sensitivity labels of a given SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -887,32 +687,19 @@ private PagedFlux listRecommendedAsync( * @return sensitivity labels of a given SQL pool as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listRecommendedAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - Boolean includeDisabledRecommendations, - String skipToken, - String filter, - Context context) { + private PagedFlux listRecommendedAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, Boolean includeDisabledRecommendations, String skipToken, String filter, Context context) { return new PagedFlux<>( - () -> - listRecommendedSinglePageAsync( - resourceGroupName, - workspaceName, - sqlPoolName, - includeDisabledRecommendations, - skipToken, - filter, - context), + () -> listRecommendedSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName, + includeDisabledRecommendations, skipToken, filter, context), nextLink -> listRecommendedNextSinglePageAsync(nextLink, context)); } /** * Gets sensitivity labels of a given SQL pool - * - *

Gets sensitivity labels of a given SQL pool. - * + * + * Gets sensitivity labels of a given SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -922,21 +709,20 @@ private PagedFlux listRecommendedAsync( * @return sensitivity labels of a given SQL pool as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listRecommended( - String resourceGroupName, String workspaceName, String sqlPoolName) { + public PagedIterable listRecommended(String resourceGroupName, String workspaceName, + String sqlPoolName) { final Boolean includeDisabledRecommendations = null; final String skipToken = null; final String filter = null; - return new PagedIterable<>( - listRecommendedAsync( - resourceGroupName, workspaceName, sqlPoolName, includeDisabledRecommendations, skipToken, filter)); + return new PagedIterable<>(listRecommendedAsync(resourceGroupName, workspaceName, sqlPoolName, + includeDisabledRecommendations, skipToken, filter)); } /** * Gets sensitivity labels of a given SQL pool - * - *

Gets sensitivity labels of a given SQL pool. - * + * + * Gets sensitivity labels of a given SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -950,28 +736,15 @@ public PagedIterable listRecommended( * @return sensitivity labels of a given SQL pool as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listRecommended( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - Boolean includeDisabledRecommendations, - String skipToken, - String filter, - Context context) { - return new PagedIterable<>( - listRecommendedAsync( - resourceGroupName, - workspaceName, - sqlPoolName, - includeDisabledRecommendations, - skipToken, - filter, - context)); + public PagedIterable listRecommended(String resourceGroupName, String workspaceName, + String sqlPoolName, Boolean includeDisabledRecommendations, String skipToken, String filter, Context context) { + return new PagedIterable<>(listRecommendedAsync(resourceGroupName, workspaceName, sqlPoolName, + includeDisabledRecommendations, skipToken, filter, context)); } /** * Creates or updates the sensitivity label of a given column in a Sql pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -985,25 +758,16 @@ public PagedIterable listRecommended( * @return a sensitivity label along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName, + private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, String schemaName, String tableName, String columnName, SensitivityLabelInner parameters) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1033,29 +797,15 @@ private Mono> createOrUpdateWithResponseAsync( final String sensitivityLabelSource = "current"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - schemaName, - tableName, - columnName, - sensitivityLabelSource, - parameters, - accept, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, + columnName, sensitivityLabelSource, parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates the sensitivity label of a given column in a Sql pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1070,26 +820,16 @@ private Mono> createOrUpdateWithResponseAsync( * @return a sensitivity label along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName, - SensitivityLabelInner parameters, - Context context) { + private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, String schemaName, String tableName, String columnName, + SensitivityLabelInner parameters, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1119,26 +859,14 @@ private Mono> createOrUpdateWithResponseAsync( final String sensitivityLabelSource = "current"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - schemaName, - tableName, - columnName, - sensitivityLabelSource, - parameters, - accept, - context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, sensitivityLabelSource, + parameters, accept, context); } /** * Creates or updates the sensitivity label of a given column in a Sql pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1152,22 +880,15 @@ private Mono> createOrUpdateWithResponseAsync( * @return a sensitivity label on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName, - SensitivityLabelInner parameters) { - return createOrUpdateWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, parameters) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + private Mono createOrUpdateAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String schemaName, String tableName, String columnName, SensitivityLabelInner parameters) { + return createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, + columnName, parameters).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Creates or updates the sensitivity label of a given column in a Sql pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1182,23 +903,16 @@ private Mono createOrUpdateAsync( * @return a sensitivity label along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName, - SensitivityLabelInner parameters, + public Response createOrUpdateWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, String schemaName, String tableName, String columnName, SensitivityLabelInner parameters, Context context) { - return createOrUpdateWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, parameters, context) - .block(); + return createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, + columnName, parameters, context).block(); } /** * Creates or updates the sensitivity label of a given column in a Sql pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1212,29 +926,15 @@ public Response createOrUpdateWithResponse( * @return a sensitivity label. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SensitivityLabelInner createOrUpdate( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName, - SensitivityLabelInner parameters) { - return createOrUpdateWithResponse( - resourceGroupName, - workspaceName, - sqlPoolName, - schemaName, - tableName, - columnName, - parameters, - Context.NONE) - .getValue(); + public SensitivityLabelInner createOrUpdate(String resourceGroupName, String workspaceName, String sqlPoolName, + String schemaName, String tableName, String columnName, SensitivityLabelInner parameters) { + return createOrUpdateWithResponse(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, + columnName, parameters, Context.NONE).getValue(); } /** * Deletes the sensitivity label of a given column in a Sql pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1247,24 +947,15 @@ public SensitivityLabelInner createOrUpdate( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName) { + private Mono> deleteWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String schemaName, String tableName, String columnName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1288,27 +979,15 @@ private Mono> deleteWithResponseAsync( final String apiVersion = "2021-06-01"; final String sensitivityLabelSource = "current"; return FluxUtil - .withContext( - context -> - service - .delete( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - schemaName, - tableName, - columnName, - sensitivityLabelSource, - context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, + columnName, sensitivityLabelSource, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes the sensitivity label of a given column in a Sql pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1322,25 +1001,15 @@ private Mono> deleteWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName, - Context context) { + private Mono> deleteWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String schemaName, String tableName, String columnName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1364,24 +1033,13 @@ private Mono> deleteWithResponseAsync( final String apiVersion = "2021-06-01"; final String sensitivityLabelSource = "current"; context = this.client.mergeContext(context); - return service - .delete( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - schemaName, - tableName, - columnName, - sensitivityLabelSource, - context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, schemaName, tableName, columnName, sensitivityLabelSource, context); } /** * Deletes the sensitivity label of a given column in a Sql pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1394,20 +1052,15 @@ private Mono> deleteWithResponseAsync( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName) { + private Mono deleteAsync(String resourceGroupName, String workspaceName, String sqlPoolName, + String schemaName, String tableName, String columnName) { return deleteWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName) .flatMap(ignored -> Mono.empty()); } /** * Deletes the sensitivity label of a given column in a Sql pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1421,22 +1074,15 @@ private Mono deleteAsync( * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName, - Context context) { - return deleteWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, context) - .block(); + public Response deleteWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + String schemaName, String tableName, String columnName, Context context) { + return deleteWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, + context).block(); } /** * Deletes the sensitivity label of a given column in a Sql pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1448,20 +1094,15 @@ public Response deleteWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName) { - deleteWithResponse( - resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, Context.NONE); + public void delete(String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, + String tableName, String columnName) { + deleteWithResponse(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, + Context.NONE); } /** * Gets the sensitivity label of a given column. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1472,29 +1113,20 @@ public void delete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the sensitivity label of a given column along with {@link Response} on successful completion of {@link - * Mono}. + * @return the sensitivity label of a given column along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName, + private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String schemaName, String tableName, String columnName, SensitivityLabelSource sensitivityLabelSource) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1516,35 +1148,21 @@ private Mono> getWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter columnName is required and cannot be null.")); } if (sensitivityLabelSource == null) { - return Mono - .error( - new IllegalArgumentException("Parameter sensitivityLabelSource is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter sensitivityLabelSource is required and cannot be null.")); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - schemaName, - tableName, - columnName, - sensitivityLabelSource, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, + sensitivityLabelSource, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the sensitivity label of a given column. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1556,30 +1174,20 @@ private Mono> getWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the sensitivity label of a given column along with {@link Response} on successful completion of {@link - * Mono}. + * @return the sensitivity label of a given column along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName, - SensitivityLabelSource sensitivityLabelSource, - Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String schemaName, String tableName, String columnName, + SensitivityLabelSource sensitivityLabelSource, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1601,32 +1209,19 @@ private Mono> getWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter columnName is required and cannot be null.")); } if (sensitivityLabelSource == null) { - return Mono - .error( - new IllegalArgumentException("Parameter sensitivityLabelSource is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter sensitivityLabelSource is required and cannot be null.")); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - schemaName, - tableName, - columnName, - sensitivityLabelSource, - accept, - context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, schemaName, tableName, columnName, sensitivityLabelSource, accept, context); } /** * Gets the sensitivity label of a given column. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1640,28 +1235,15 @@ private Mono> getWithResponseAsync( * @return the sensitivity label of a given column on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName, - SensitivityLabelSource sensitivityLabelSource) { - return getWithResponseAsync( - resourceGroupName, - workspaceName, - sqlPoolName, - schemaName, - tableName, - columnName, - sensitivityLabelSource) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + private Mono getAsync(String resourceGroupName, String workspaceName, String sqlPoolName, + String schemaName, String tableName, String columnName, SensitivityLabelSource sensitivityLabelSource) { + return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, + sensitivityLabelSource).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Gets the sensitivity label of a given column. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1676,30 +1258,16 @@ private Mono getAsync( * @return the sensitivity label of a given column along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName, - SensitivityLabelSource sensitivityLabelSource, - Context context) { - return getWithResponseAsync( - resourceGroupName, - workspaceName, - sqlPoolName, - schemaName, - tableName, - columnName, - sensitivityLabelSource, - context) - .block(); + public Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, String schemaName, String tableName, String columnName, + SensitivityLabelSource sensitivityLabelSource, Context context) { + return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, + sensitivityLabelSource, context).block(); } /** * Gets the sensitivity label of a given column. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1713,29 +1281,15 @@ public Response getWithResponse( * @return the sensitivity label of a given column. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SensitivityLabelInner get( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName, - SensitivityLabelSource sensitivityLabelSource) { - return getWithResponse( - resourceGroupName, - workspaceName, - sqlPoolName, - schemaName, - tableName, - columnName, - sensitivityLabelSource, - Context.NONE) - .getValue(); + public SensitivityLabelInner get(String resourceGroupName, String workspaceName, String sqlPoolName, + String schemaName, String tableName, String columnName, SensitivityLabelSource sensitivityLabelSource) { + return getWithResponse(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, + sensitivityLabelSource, Context.NONE).getValue(); } /** * Enables sensitivity recommendations on a given column (recommendations are enabled by default on all columns). - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1748,24 +1302,15 @@ public SensitivityLabelInner get( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> enableRecommendationWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName) { + private Mono> enableRecommendationWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String schemaName, String tableName, String columnName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1789,27 +1334,15 @@ private Mono> enableRecommendationWithResponseAsync( final String apiVersion = "2021-06-01"; final String sensitivityLabelSource = "recommended"; return FluxUtil - .withContext( - context -> - service - .enableRecommendation( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - schemaName, - tableName, - columnName, - sensitivityLabelSource, - context)) + .withContext(context -> service.enableRecommendation(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, + columnName, sensitivityLabelSource, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Enables sensitivity recommendations on a given column (recommendations are enabled by default on all columns). - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1823,25 +1356,15 @@ private Mono> enableRecommendationWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> enableRecommendationWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName, - Context context) { + private Mono> enableRecommendationWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String schemaName, String tableName, String columnName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1865,24 +1388,14 @@ private Mono> enableRecommendationWithResponseAsync( final String apiVersion = "2021-06-01"; final String sensitivityLabelSource = "recommended"; context = this.client.mergeContext(context); - return service - .enableRecommendation( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - schemaName, - tableName, - columnName, - sensitivityLabelSource, - context); + return service.enableRecommendation(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, sensitivityLabelSource, + context); } /** * Enables sensitivity recommendations on a given column (recommendations are enabled by default on all columns). - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1895,21 +1408,15 @@ private Mono> enableRecommendationWithResponseAsync( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono enableRecommendationAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName) { - return enableRecommendationWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName) - .flatMap(ignored -> Mono.empty()); + private Mono enableRecommendationAsync(String resourceGroupName, String workspaceName, String sqlPoolName, + String schemaName, String tableName, String columnName) { + return enableRecommendationWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, schemaName, + tableName, columnName).flatMap(ignored -> Mono.empty()); } /** * Enables sensitivity recommendations on a given column (recommendations are enabled by default on all columns). - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1923,22 +1430,15 @@ private Mono enableRecommendationAsync( * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response enableRecommendationWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName, - Context context) { - return enableRecommendationWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, context) - .block(); + public Response enableRecommendationWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, String schemaName, String tableName, String columnName, Context context) { + return enableRecommendationWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, schemaName, + tableName, columnName, context).block(); } /** * Enables sensitivity recommendations on a given column (recommendations are enabled by default on all columns). - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1950,20 +1450,15 @@ public Response enableRecommendationWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void enableRecommendation( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName) { - enableRecommendationWithResponse( - resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, Context.NONE); + public void enableRecommendation(String resourceGroupName, String workspaceName, String sqlPoolName, + String schemaName, String tableName, String columnName) { + enableRecommendationWithResponse(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, + columnName, Context.NONE); } /** * Disables sensitivity recommendations on a given column. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1976,24 +1471,15 @@ public void enableRecommendation( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> disableRecommendationWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName) { + private Mono> disableRecommendationWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String schemaName, String tableName, String columnName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2017,27 +1503,15 @@ private Mono> disableRecommendationWithResponseAsync( final String apiVersion = "2021-06-01"; final String sensitivityLabelSource = "recommended"; return FluxUtil - .withContext( - context -> - service - .disableRecommendation( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - schemaName, - tableName, - columnName, - sensitivityLabelSource, - context)) + .withContext(context -> service.disableRecommendation(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, + columnName, sensitivityLabelSource, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Disables sensitivity recommendations on a given column. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -2051,25 +1525,15 @@ private Mono> disableRecommendationWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> disableRecommendationWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName, - Context context) { + private Mono> disableRecommendationWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String schemaName, String tableName, String columnName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -2093,24 +1557,14 @@ private Mono> disableRecommendationWithResponseAsync( final String apiVersion = "2021-06-01"; final String sensitivityLabelSource = "recommended"; context = this.client.mergeContext(context); - return service - .disableRecommendation( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - schemaName, - tableName, - columnName, - sensitivityLabelSource, - context); + return service.disableRecommendation(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, sensitivityLabelSource, + context); } /** * Disables sensitivity recommendations on a given column. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -2123,21 +1577,15 @@ private Mono> disableRecommendationWithResponseAsync( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono disableRecommendationAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName) { - return disableRecommendationWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName) - .flatMap(ignored -> Mono.empty()); + private Mono disableRecommendationAsync(String resourceGroupName, String workspaceName, String sqlPoolName, + String schemaName, String tableName, String columnName) { + return disableRecommendationWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, schemaName, + tableName, columnName).flatMap(ignored -> Mono.empty()); } /** * Disables sensitivity recommendations on a given column. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -2151,22 +1599,15 @@ private Mono disableRecommendationAsync( * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response disableRecommendationWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName, - Context context) { - return disableRecommendationWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, context) - .block(); + public Response disableRecommendationWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, String schemaName, String tableName, String columnName, Context context) { + return disableRecommendationWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, schemaName, + tableName, columnName, context).block(); } /** * Disables sensitivity recommendations on a given column. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -2178,22 +1619,18 @@ public Response disableRecommendationWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void disableRecommendation( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName) { - disableRecommendationWithResponse( - resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, Context.NONE); + public void disableRecommendation(String resourceGroupName, String workspaceName, String sqlPoolName, + String schemaName, String tableName, String columnName) { + disableRecommendationWithResponse(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, + columnName, Context.NONE); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2205,31 +1642,23 @@ private Mono> listCurrentNextSinglePageAsyn return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil .withContext(context -> service.listCurrentNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2237,37 +1666,28 @@ private Mono> listCurrentNextSinglePageAsyn * @return a list of sensitivity labels along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listCurrentNextSinglePageAsync( - String nextLink, Context context) { + private Mono> listCurrentNextSinglePageAsync(String nextLink, + Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listCurrentNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listCurrentNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2279,31 +1699,23 @@ private Mono> listRecommendedNextSinglePage return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil .withContext(context -> service.listRecommendedNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2311,29 +1723,19 @@ private Mono> listRecommendedNextSinglePage * @return a list of sensitivity labels along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listRecommendedNextSinglePageAsync( - String nextLink, Context context) { + private Mono> listRecommendedNextSinglePageAsync(String nextLink, + Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listRecommendedNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listRecommendedNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSensitivityLabelsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSensitivityLabelsImpl.java index 8972744b2865..aedf0507ff00 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSensitivityLabelsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolSensitivityLabelsImpl.java @@ -23,146 +23,79 @@ public final class SqlPoolSensitivityLabelsImpl implements SqlPoolSensitivityLab private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public SqlPoolSensitivityLabelsImpl( - SqlPoolSensitivityLabelsClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + public SqlPoolSensitivityLabelsImpl(SqlPoolSensitivityLabelsClient innerClient, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public PagedIterable listCurrent( - String resourceGroupName, String workspaceName, String sqlPoolName) { - PagedIterable inner = - this.serviceClient().listCurrent(resourceGroupName, workspaceName, sqlPoolName); - return Utils.mapPage(inner, inner1 -> new SensitivityLabelImpl(inner1, this.manager())); + public PagedIterable listCurrent(String resourceGroupName, String workspaceName, + String sqlPoolName) { + PagedIterable inner + = this.serviceClient().listCurrent(resourceGroupName, workspaceName, sqlPoolName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SensitivityLabelImpl(inner1, this.manager())); } - public PagedIterable listCurrent( - String resourceGroupName, String workspaceName, String sqlPoolName, String filter, Context context) { - PagedIterable inner = - this.serviceClient().listCurrent(resourceGroupName, workspaceName, sqlPoolName, filter, context); - return Utils.mapPage(inner, inner1 -> new SensitivityLabelImpl(inner1, this.manager())); + public PagedIterable listCurrent(String resourceGroupName, String workspaceName, + String sqlPoolName, String filter, Context context) { + PagedIterable inner + = this.serviceClient().listCurrent(resourceGroupName, workspaceName, sqlPoolName, filter, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SensitivityLabelImpl(inner1, this.manager())); } - public Response updateWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - SensitivityLabelUpdateList parameters, - Context context) { - return this - .serviceClient() - .updateWithResponse(resourceGroupName, workspaceName, sqlPoolName, parameters, context); + public Response updateWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + SensitivityLabelUpdateList parameters, Context context) { + return this.serviceClient().updateWithResponse(resourceGroupName, workspaceName, sqlPoolName, parameters, + context); } - public void update( - String resourceGroupName, String workspaceName, String sqlPoolName, SensitivityLabelUpdateList parameters) { + public void update(String resourceGroupName, String workspaceName, String sqlPoolName, + SensitivityLabelUpdateList parameters) { this.serviceClient().update(resourceGroupName, workspaceName, sqlPoolName, parameters); } - public PagedIterable listRecommended( - String resourceGroupName, String workspaceName, String sqlPoolName) { - PagedIterable inner = - this.serviceClient().listRecommended(resourceGroupName, workspaceName, sqlPoolName); - return Utils.mapPage(inner, inner1 -> new SensitivityLabelImpl(inner1, this.manager())); + public PagedIterable listRecommended(String resourceGroupName, String workspaceName, + String sqlPoolName) { + PagedIterable inner + = this.serviceClient().listRecommended(resourceGroupName, workspaceName, sqlPoolName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SensitivityLabelImpl(inner1, this.manager())); } - public PagedIterable listRecommended( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - Boolean includeDisabledRecommendations, - String skipToken, - String filter, - Context context) { - PagedIterable inner = - this - .serviceClient() - .listRecommended( - resourceGroupName, - workspaceName, - sqlPoolName, - includeDisabledRecommendations, - skipToken, - filter, - context); - return Utils.mapPage(inner, inner1 -> new SensitivityLabelImpl(inner1, this.manager())); + public PagedIterable listRecommended(String resourceGroupName, String workspaceName, + String sqlPoolName, Boolean includeDisabledRecommendations, String skipToken, String filter, Context context) { + PagedIterable inner = this.serviceClient().listRecommended(resourceGroupName, + workspaceName, sqlPoolName, includeDisabledRecommendations, skipToken, filter, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SensitivityLabelImpl(inner1, this.manager())); } - public Response deleteWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName, - Context context) { - return this - .serviceClient() - .deleteWithResponse( - resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, context); + public Response deleteWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + String schemaName, String tableName, String columnName, Context context) { + return this.serviceClient().deleteWithResponse(resourceGroupName, workspaceName, sqlPoolName, schemaName, + tableName, columnName, context); } - public void delete( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName) { + public void delete(String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, + String tableName, String columnName) { this.serviceClient().delete(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName); } - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName, - SensitivityLabelSource sensitivityLabelSource, - Context context) { - Response inner = - this - .serviceClient() - .getWithResponse( - resourceGroupName, - workspaceName, - sqlPoolName, - schemaName, - tableName, - columnName, - sensitivityLabelSource, - context); + public Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, String schemaName, String tableName, String columnName, + SensitivityLabelSource sensitivityLabelSource, Context context) { + Response inner = this.serviceClient().getWithResponse(resourceGroupName, workspaceName, + sqlPoolName, schemaName, tableName, columnName, sensitivityLabelSource, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new SensitivityLabelImpl(inner.getValue(), this.manager())); } else { return null; } } - public SensitivityLabel get( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName, - SensitivityLabelSource sensitivityLabelSource) { - SensitivityLabelInner inner = - this - .serviceClient() - .get( - resourceGroupName, - workspaceName, - sqlPoolName, - schemaName, - tableName, - columnName, - sensitivityLabelSource); + public SensitivityLabel get(String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, + String tableName, String columnName, SensitivityLabelSource sensitivityLabelSource) { + SensitivityLabelInner inner = this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, + schemaName, tableName, columnName, sensitivityLabelSource); if (inner != null) { return new SensitivityLabelImpl(inner, this.manager()); } else { @@ -170,154 +103,98 @@ public SensitivityLabel get( } } - public Response enableRecommendationWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName, - Context context) { - return this - .serviceClient() - .enableRecommendationWithResponse( - resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, context); + public Response enableRecommendationWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, String schemaName, String tableName, String columnName, Context context) { + return this.serviceClient().enableRecommendationWithResponse(resourceGroupName, workspaceName, sqlPoolName, + schemaName, tableName, columnName, context); } - public void enableRecommendation( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName) { - this - .serviceClient() - .enableRecommendation(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName); + public void enableRecommendation(String resourceGroupName, String workspaceName, String sqlPoolName, + String schemaName, String tableName, String columnName) { + this.serviceClient().enableRecommendation(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, + columnName); } - public Response disableRecommendationWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName, - Context context) { - return this - .serviceClient() - .disableRecommendationWithResponse( - resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, context); + public Response disableRecommendationWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, String schemaName, String tableName, String columnName, Context context) { + return this.serviceClient().disableRecommendationWithResponse(resourceGroupName, workspaceName, sqlPoolName, + schemaName, tableName, columnName, context); } - public void disableRecommendation( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName) { - this - .serviceClient() - .disableRecommendation(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName); + public void disableRecommendation(String resourceGroupName, String workspaceName, String sqlPoolName, + String schemaName, String tableName, String columnName) { + this.serviceClient().disableRecommendation(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, + columnName); } public void deleteById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); + String sqlPoolName = ResourceManagerUtils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } - String schemaName = Utils.getValueFromIdByName(id, "schemas"); + String schemaName = ResourceManagerUtils.getValueFromIdByName(id, "schemas"); if (schemaName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'schemas'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'schemas'.", id))); } - String tableName = Utils.getValueFromIdByName(id, "tables"); + String tableName = ResourceManagerUtils.getValueFromIdByName(id, "tables"); if (tableName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'tables'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'tables'.", id))); } - String columnName = Utils.getValueFromIdByName(id, "columns"); + String columnName = ResourceManagerUtils.getValueFromIdByName(id, "columns"); if (columnName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'columns'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'columns'.", id))); } - this - .deleteWithResponse( - resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, Context.NONE); + this.deleteWithResponse(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, + Context.NONE); } public Response deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); + String sqlPoolName = ResourceManagerUtils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } - String schemaName = Utils.getValueFromIdByName(id, "schemas"); + String schemaName = ResourceManagerUtils.getValueFromIdByName(id, "schemas"); if (schemaName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'schemas'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'schemas'.", id))); } - String tableName = Utils.getValueFromIdByName(id, "tables"); + String tableName = ResourceManagerUtils.getValueFromIdByName(id, "tables"); if (tableName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'tables'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'tables'.", id))); } - String columnName = Utils.getValueFromIdByName(id, "columns"); + String columnName = ResourceManagerUtils.getValueFromIdByName(id, "columns"); if (columnName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'columns'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'columns'.", id))); } - return this - .deleteWithResponse( - resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, context); + return this.deleteWithResponse(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, + context); } private SqlPoolSensitivityLabelsClient serviceClient() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTableColumnsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTableColumnsClientImpl.java index 979e8a5b8340..8e4ccaf18ec9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTableColumnsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTableColumnsClientImpl.java @@ -30,22 +30,28 @@ import com.azure.resourcemanager.synapse.models.SqlPoolColumnListResult; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in SqlPoolTableColumnsClient. */ +/** + * An instance of this class provides access to all the operations defined in SqlPoolTableColumnsClient. + */ public final class SqlPoolTableColumnsClientImpl implements SqlPoolTableColumnsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final SqlPoolTableColumnsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of SqlPoolTableColumnsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ SqlPoolTableColumnsClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy.create(SqlPoolTableColumnsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service = RestProxy.create(SqlPoolTableColumnsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } @@ -56,41 +62,31 @@ public final class SqlPoolTableColumnsClientImpl implements SqlPoolTableColumnsC @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface SqlPoolTableColumnsService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}/columns") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}/columns") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByTableName( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("sqlPoolName") String sqlPoolName, - @PathParam("schemaName") String schemaName, - @PathParam("tableName") String tableName, - @QueryParam("$filter") String filter, - @HeaderParam("Accept") String accept, - Context context); + Mono> listByTableName(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("sqlPoolName") String sqlPoolName, @PathParam("schemaName") String schemaName, + @PathParam("tableName") String tableName, @QueryParam("$filter") String filter, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByTableNameNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** * Gets columns in a given table in a SQL pool - * - *

Gets columns in a given table in a SQL pool. - * + * + * Gets columns in a given table in a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -101,27 +97,18 @@ Mono> listByTableNameNext( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return columns in a given table in a SQL pool along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByTableNameSinglePageAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String filter) { + private Mono> listByTableNameSinglePageAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, String schemaName, String tableName, String filter) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -142,38 +129,19 @@ private Mono> listByTableNameSinglePageAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .listByTableName( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - schemaName, - tableName, - filter, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .withContext(context -> service.listByTableName(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, + filter, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets columns in a given table in a SQL pool - * - *

Gets columns in a given table in a SQL pool. - * + * + * Gets columns in a given table in a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -185,28 +153,18 @@ private Mono> listByTableNameSinglePageAsync( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return columns in a given table in a SQL pool along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByTableNameSinglePageAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String filter, - Context context) { + private Mono> listByTableNameSinglePageAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, String schemaName, String tableName, String filter, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -228,34 +186,17 @@ private Mono> listByTableNameSinglePageAsync( final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByTableName( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - schemaName, - tableName, - filter, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + .listByTableName(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, schemaName, tableName, filter, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * Gets columns in a given table in a SQL pool - * - *

Gets columns in a given table in a SQL pool. - * + * + * Gets columns in a given table in a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -268,25 +209,17 @@ private Mono> listByTableNameSinglePageAsync( * @return columns in a given table in a SQL pool as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByTableNameAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String filter) { - return new PagedFlux<>( - () -> - listByTableNameSinglePageAsync( - resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, filter), - nextLink -> listByTableNameNextSinglePageAsync(nextLink)); + private PagedFlux listByTableNameAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String schemaName, String tableName, String filter) { + return new PagedFlux<>(() -> listByTableNameSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName, + schemaName, tableName, filter), nextLink -> listByTableNameNextSinglePageAsync(nextLink)); } /** * Gets columns in a given table in a SQL pool - * - *

Gets columns in a given table in a SQL pool. - * + * + * Gets columns in a given table in a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -298,21 +231,18 @@ private PagedFlux listByTableNameAsync( * @return columns in a given table in a SQL pool as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByTableNameAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName) { + private PagedFlux listByTableNameAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String schemaName, String tableName) { final String filter = null; - return new PagedFlux<>( - () -> - listByTableNameSinglePageAsync( - resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, filter), - nextLink -> listByTableNameNextSinglePageAsync(nextLink)); + return new PagedFlux<>(() -> listByTableNameSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName, + schemaName, tableName, filter), nextLink -> listByTableNameNextSinglePageAsync(nextLink)); } /** * Gets columns in a given table in a SQL pool - * - *

Gets columns in a given table in a SQL pool. - * + * + * Gets columns in a given table in a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -326,26 +256,17 @@ private PagedFlux listByTableNameAsync( * @return columns in a given table in a SQL pool as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByTableNameAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String filter, - Context context) { - return new PagedFlux<>( - () -> - listByTableNameSinglePageAsync( - resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, filter, context), - nextLink -> listByTableNameNextSinglePageAsync(nextLink, context)); + private PagedFlux listByTableNameAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String schemaName, String tableName, String filter, Context context) { + return new PagedFlux<>(() -> listByTableNameSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName, + schemaName, tableName, filter, context), nextLink -> listByTableNameNextSinglePageAsync(nextLink, context)); } /** * Gets columns in a given table in a SQL pool - * - *

Gets columns in a given table in a SQL pool. - * + * + * Gets columns in a given table in a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -357,8 +278,8 @@ private PagedFlux listByTableNameAsync( * @return columns in a given table in a SQL pool as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByTableName( - String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName) { + public PagedIterable listByTableName(String resourceGroupName, String workspaceName, + String sqlPoolName, String schemaName, String tableName) { final String filter = null; return new PagedIterable<>( listByTableNameAsync(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, filter)); @@ -366,9 +287,9 @@ public PagedIterable listByTableName( /** * Gets columns in a given table in a SQL pool - * - *

Gets columns in a given table in a SQL pool. - * + * + * Gets columns in a given table in a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -382,24 +303,18 @@ public PagedIterable listByTableName( * @return columns in a given table in a SQL pool as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByTableName( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String filter, - Context context) { - return new PagedIterable<>( - listByTableNameAsync( - resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, filter, context)); + public PagedIterable listByTableName(String resourceGroupName, String workspaceName, + String sqlPoolName, String schemaName, String tableName, String filter, Context context) { + return new PagedIterable<>(listByTableNameAsync(resourceGroupName, workspaceName, sqlPoolName, schemaName, + tableName, filter, context)); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -411,31 +326,23 @@ private Mono> listByTableNameNextSinglePageAsy return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByTableNameNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -443,29 +350,19 @@ private Mono> listByTableNameNextSinglePageAsy * @return a list of Sql pool columns along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByTableNameNextSinglePageAsync( - String nextLink, Context context) { + private Mono> listByTableNameNextSinglePageAsync(String nextLink, + Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listByTableNameNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listByTableNameNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTableColumnsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTableColumnsImpl.java index b1b5e41b3283..e476cc5c3c20 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTableColumnsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTableColumnsImpl.java @@ -19,32 +19,24 @@ public final class SqlPoolTableColumnsImpl implements SqlPoolTableColumns { private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public SqlPoolTableColumnsImpl( - SqlPoolTableColumnsClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + public SqlPoolTableColumnsImpl(SqlPoolTableColumnsClient innerClient, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public PagedIterable listByTableName( - String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName) { - PagedIterable inner = - this.serviceClient().listByTableName(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName); - return Utils.mapPage(inner, inner1 -> new SqlPoolColumnImpl(inner1, this.manager())); + public PagedIterable listByTableName(String resourceGroupName, String workspaceName, + String sqlPoolName, String schemaName, String tableName) { + PagedIterable inner = this.serviceClient().listByTableName(resourceGroupName, workspaceName, + sqlPoolName, schemaName, tableName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SqlPoolColumnImpl(inner1, this.manager())); } - public PagedIterable listByTableName( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String filter, - Context context) { - PagedIterable inner = - this - .serviceClient() - .listByTableName(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, filter, context); - return Utils.mapPage(inner, inner1 -> new SqlPoolColumnImpl(inner1, this.manager())); + public PagedIterable listByTableName(String resourceGroupName, String workspaceName, + String sqlPoolName, String schemaName, String tableName, String filter, Context context) { + PagedIterable inner = this.serviceClient().listByTableName(resourceGroupName, workspaceName, + sqlPoolName, schemaName, tableName, filter, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SqlPoolColumnImpl(inner1, this.manager())); } private SqlPoolTableColumnsClient serviceClient() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTablesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTablesClientImpl.java index dad691a3cc7b..94cad6a0420c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTablesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTablesClientImpl.java @@ -30,22 +30,28 @@ import com.azure.resourcemanager.synapse.models.SqlPoolTableListResult; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in SqlPoolTablesClient. */ +/** + * An instance of this class provides access to all the operations defined in SqlPoolTablesClient. + */ public final class SqlPoolTablesClientImpl implements SqlPoolTablesClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final SqlPoolTablesService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of SqlPoolTablesClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ SqlPoolTablesClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy.create(SqlPoolTablesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service + = RestProxy.create(SqlPoolTablesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } @@ -56,58 +62,40 @@ public final class SqlPoolTablesClientImpl implements SqlPoolTablesClient { @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface SqlPoolTablesService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listBySchema( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("sqlPoolName") String sqlPoolName, - @PathParam("schemaName") String schemaName, - @QueryParam("$filter") String filter, - @HeaderParam("Accept") String accept, - Context context); + Mono> listBySchema(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("sqlPoolName") String sqlPoolName, @PathParam("schemaName") String schemaName, + @QueryParam("$filter") String filter, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("sqlPoolName") String sqlPoolName, - @PathParam("schemaName") String schemaName, - @PathParam("tableName") String tableName, - @HeaderParam("Accept") String accept, - Context context); + Mono> get(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("sqlPoolName") String sqlPoolName, @PathParam("schemaName") String schemaName, + @PathParam("tableName") String tableName, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listBySchemaNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** * Gets tables of a given schema in a SQL pool - * - *

Gets tables of a given schema in a SQL pool. - * + * + * Gets tables of a given schema in a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -117,22 +105,18 @@ Mono> listBySchemaNext( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return tables of a given schema in a SQL pool along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listBySchemaSinglePageAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String filter) { + private Mono> listBySchemaSinglePageAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, String schemaName, String filter) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -151,36 +135,18 @@ private Mono> listBySchemaSinglePageAsync( final String accept = "application/json"; return FluxUtil .withContext( - context -> - service - .listBySchema( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - schemaName, - filter, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + context -> service.listBySchema(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, schemaName, filter, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets tables of a given schema in a SQL pool - * - *

Gets tables of a given schema in a SQL pool. - * + * + * Gets tables of a given schema in a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -191,27 +157,18 @@ private Mono> listBySchemaSinglePageAsync( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return tables of a given schema in a SQL pool along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listBySchemaSinglePageAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String filter, - Context context) { + private Mono> listBySchemaSinglePageAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, String schemaName, String filter, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -230,33 +187,17 @@ private Mono> listBySchemaSinglePageAsync( final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listBySchema( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - schemaName, - filter, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + .listBySchema(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, schemaName, filter, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * Gets tables of a given schema in a SQL pool - * - *

Gets tables of a given schema in a SQL pool. - * + * + * Gets tables of a given schema in a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -268,8 +209,8 @@ private Mono> listBySchemaSinglePageAsync( * @return tables of a given schema in a SQL pool as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listBySchemaAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String filter) { + private PagedFlux listBySchemaAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String schemaName, String filter) { return new PagedFlux<>( () -> listBySchemaSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName, schemaName, filter), nextLink -> listBySchemaNextSinglePageAsync(nextLink)); @@ -277,9 +218,9 @@ private PagedFlux listBySchemaAsync( /** * Gets tables of a given schema in a SQL pool - * - *

Gets tables of a given schema in a SQL pool. - * + * + * Gets tables of a given schema in a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -290,8 +231,8 @@ private PagedFlux listBySchemaAsync( * @return tables of a given schema in a SQL pool as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listBySchemaAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName) { + private PagedFlux listBySchemaAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String schemaName) { final String filter = null; return new PagedFlux<>( () -> listBySchemaSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName, schemaName, filter), @@ -300,9 +241,9 @@ private PagedFlux listBySchemaAsync( /** * Gets tables of a given schema in a SQL pool - * - *

Gets tables of a given schema in a SQL pool. - * + * + * Gets tables of a given schema in a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -315,24 +256,17 @@ private PagedFlux listBySchemaAsync( * @return tables of a given schema in a SQL pool as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listBySchemaAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String filter, - Context context) { - return new PagedFlux<>( - () -> - listBySchemaSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName, schemaName, filter, context), - nextLink -> listBySchemaNextSinglePageAsync(nextLink, context)); + private PagedFlux listBySchemaAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String schemaName, String filter, Context context) { + return new PagedFlux<>(() -> listBySchemaSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName, + schemaName, filter, context), nextLink -> listBySchemaNextSinglePageAsync(nextLink, context)); } /** * Gets tables of a given schema in a SQL pool - * - *

Gets tables of a given schema in a SQL pool. - * + * + * Gets tables of a given schema in a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -343,8 +277,8 @@ private PagedFlux listBySchemaAsync( * @return tables of a given schema in a SQL pool as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listBySchema( - String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName) { + public PagedIterable listBySchema(String resourceGroupName, String workspaceName, + String sqlPoolName, String schemaName) { final String filter = null; return new PagedIterable<>( listBySchemaAsync(resourceGroupName, workspaceName, sqlPoolName, schemaName, filter)); @@ -352,9 +286,9 @@ public PagedIterable listBySchema( /** * Gets tables of a given schema in a SQL pool - * - *

Gets tables of a given schema in a SQL pool. - * + * + * Gets tables of a given schema in a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -367,20 +301,15 @@ public PagedIterable listBySchema( * @return tables of a given schema in a SQL pool as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listBySchema( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String filter, - Context context) { + public PagedIterable listBySchema(String resourceGroupName, String workspaceName, + String sqlPoolName, String schemaName, String filter, Context context) { return new PagedIterable<>( listBySchemaAsync(resourceGroupName, workspaceName, sqlPoolName, schemaName, filter, context)); } /** * Get Sql pool table. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -392,19 +321,15 @@ public PagedIterable listBySchema( * @return sql pool table along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName) { + private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String schemaName, String tableName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -425,26 +350,14 @@ private Mono> getWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - schemaName, - tableName, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get Sql pool table. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -457,24 +370,15 @@ private Mono> getWithResponseAsync( * @return sql pool table along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String schemaName, String tableName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -495,23 +399,13 @@ private Mono> getWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - schemaName, - tableName, - accept, - context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, schemaName, tableName, accept, context); } /** * Get Sql pool table. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -523,15 +417,15 @@ private Mono> getWithResponseAsync( * @return sql pool table on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName) { + private Mono getAsync(String resourceGroupName, String workspaceName, String sqlPoolName, + String schemaName, String tableName) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Get Sql pool table. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -544,20 +438,15 @@ private Mono getAsync( * @return sql pool table along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - Context context) { + public Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, String schemaName, String tableName, Context context) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, context) .block(); } /** * Get Sql pool table. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -569,17 +458,18 @@ public Response getWithResponse( * @return sql pool table. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SqlPoolTableInner get( - String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName) { + public SqlPoolTableInner get(String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, + String tableName) { return getWithResponse(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, Context.NONE) .getValue(); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -591,31 +481,23 @@ private Mono> listBySchemaNextSinglePageAsync(S return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil .withContext(context -> service.listBySchemaNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -628,23 +510,13 @@ private Mono> listBySchemaNextSinglePageAsync(S return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listBySchemaNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listBySchemaNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTablesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTablesImpl.java index 0e529b2fb9b4..9c7c380f5a24 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTablesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTablesImpl.java @@ -21,59 +21,42 @@ public final class SqlPoolTablesImpl implements SqlPoolTables { private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public SqlPoolTablesImpl( - SqlPoolTablesClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + public SqlPoolTablesImpl(SqlPoolTablesClient innerClient, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public PagedIterable listBySchema( - String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName) { - PagedIterable inner = - this.serviceClient().listBySchema(resourceGroupName, workspaceName, sqlPoolName, schemaName); - return Utils.mapPage(inner, inner1 -> new SqlPoolTableImpl(inner1, this.manager())); + public PagedIterable listBySchema(String resourceGroupName, String workspaceName, String sqlPoolName, + String schemaName) { + PagedIterable inner + = this.serviceClient().listBySchema(resourceGroupName, workspaceName, sqlPoolName, schemaName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SqlPoolTableImpl(inner1, this.manager())); } - public PagedIterable listBySchema( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String filter, - Context context) { - PagedIterable inner = - this - .serviceClient() - .listBySchema(resourceGroupName, workspaceName, sqlPoolName, schemaName, filter, context); - return Utils.mapPage(inner, inner1 -> new SqlPoolTableImpl(inner1, this.manager())); + public PagedIterable listBySchema(String resourceGroupName, String workspaceName, String sqlPoolName, + String schemaName, String filter, Context context) { + PagedIterable inner = this.serviceClient().listBySchema(resourceGroupName, workspaceName, + sqlPoolName, schemaName, filter, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SqlPoolTableImpl(inner1, this.manager())); } - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - Context context) { - Response inner = - this - .serviceClient() - .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, context); + public Response getWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + String schemaName, String tableName, Context context) { + Response inner = this.serviceClient().getWithResponse(resourceGroupName, workspaceName, + sqlPoolName, schemaName, tableName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new SqlPoolTableImpl(inner.getValue(), this.manager())); } else { return null; } } - public SqlPoolTable get( - String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName) { - SqlPoolTableInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName); + public SqlPoolTable get(String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, + String tableName) { + SqlPoolTableInner inner + = this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName); if (inner != null) { return new SqlPoolTableImpl(inner, this.manager()); } else { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTransparentDataEncryptionsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTransparentDataEncryptionsClientImpl.java index 197f4978aafb..f36bd6ea0122 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTransparentDataEncryptionsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTransparentDataEncryptionsClientImpl.java @@ -37,24 +37,24 @@ * An instance of this class provides access to all the operations defined in SqlPoolTransparentDataEncryptionsClient. */ public final class SqlPoolTransparentDataEncryptionsClientImpl implements SqlPoolTransparentDataEncryptionsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final SqlPoolTransparentDataEncryptionsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of SqlPoolTransparentDataEncryptionsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ SqlPoolTransparentDataEncryptionsClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy - .create( - SqlPoolTransparentDataEncryptionsService.class, - client.getHttpPipeline(), - client.getSerializerAdapter()); + this.service = RestProxy.create(SqlPoolTransparentDataEncryptionsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } @@ -65,73 +65,52 @@ public final class SqlPoolTransparentDataEncryptionsClientImpl implements SqlPoo @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface SqlPoolTransparentDataEncryptionsService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/transparentDataEncryption/{transparentDataEncryptionName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/transparentDataEncryption/{transparentDataEncryptionName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono> get(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("sqlPoolName") String sqlPoolName, @PathParam("transparentDataEncryptionName") TransparentDataEncryptionName transparentDataEncryptionName, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/transparentDataEncryption/{transparentDataEncryptionName}") - @ExpectedResponses({200, 201}) + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/transparentDataEncryption/{transparentDataEncryptionName}") + @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono> createOrUpdate(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("sqlPoolName") String sqlPoolName, @PathParam("transparentDataEncryptionName") TransparentDataEncryptionName transparentDataEncryptionName, @BodyParam("application/json") TransparentDataEncryptionInner parameters, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/transparentDataEncryption") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/transparentDataEncryption") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("sqlPoolName") String sqlPoolName, - @HeaderParam("Accept") String accept, - Context context); + Mono> list(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("sqlPoolName") String sqlPoolName, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** * Get a SQL pool's transparent data encryption configuration - * - *

Get a SQL pool's transparent data encryption configuration. - * + * + * Get a SQL pool's transparent data encryption configuration. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -140,25 +119,18 @@ Mono> listNext( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a SQL pool's transparent data encryption configuration along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - TransparentDataEncryptionName transparentDataEncryptionName) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, TransparentDataEncryptionName transparentDataEncryptionName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -171,35 +143,22 @@ private Mono> getWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } if (transparentDataEncryptionName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter transparentDataEncryptionName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter transparentDataEncryptionName is required and cannot be null.")); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - transparentDataEncryptionName, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, transparentDataEncryptionName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get a SQL pool's transparent data encryption configuration - * - *

Get a SQL pool's transparent data encryption configuration. - * + * + * Get a SQL pool's transparent data encryption configuration. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -209,26 +168,19 @@ private Mono> getWithResponseAsync( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a SQL pool's transparent data encryption configuration along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - TransparentDataEncryptionName transparentDataEncryptionName, + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, TransparentDataEncryptionName transparentDataEncryptionName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -241,32 +193,21 @@ private Mono> getWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } if (transparentDataEncryptionName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter transparentDataEncryptionName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter transparentDataEncryptionName is required and cannot be null.")); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - transparentDataEncryptionName, - accept, - context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, transparentDataEncryptionName, accept, context); } /** * Get a SQL pool's transparent data encryption configuration - * - *

Get a SQL pool's transparent data encryption configuration. - * + * + * Get a SQL pool's transparent data encryption configuration. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -277,20 +218,17 @@ private Mono> getWithResponseAsync( * @return a SQL pool's transparent data encryption configuration on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - TransparentDataEncryptionName transparentDataEncryptionName) { + private Mono getAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, TransparentDataEncryptionName transparentDataEncryptionName) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, transparentDataEncryptionName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Get a SQL pool's transparent data encryption configuration - * - *

Get a SQL pool's transparent data encryption configuration. - * + * + * Get a SQL pool's transparent data encryption configuration. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -302,22 +240,17 @@ private Mono getAsync( * @return a SQL pool's transparent data encryption configuration along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - TransparentDataEncryptionName transparentDataEncryptionName, - Context context) { - return getWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, transparentDataEncryptionName, context) - .block(); + public Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, TransparentDataEncryptionName transparentDataEncryptionName, Context context) { + return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, transparentDataEncryptionName, + context).block(); } /** * Get a SQL pool's transparent data encryption configuration - * - *

Get a SQL pool's transparent data encryption configuration. - * + * + * Get a SQL pool's transparent data encryption configuration. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -328,21 +261,17 @@ public Response getWithResponse( * @return a SQL pool's transparent data encryption configuration. */ @ServiceMethod(returns = ReturnType.SINGLE) - public TransparentDataEncryptionInner get( - String resourceGroupName, - String workspaceName, - String sqlPoolName, + public TransparentDataEncryptionInner get(String resourceGroupName, String workspaceName, String sqlPoolName, TransparentDataEncryptionName transparentDataEncryptionName) { - return getWithResponse( - resourceGroupName, workspaceName, sqlPoolName, transparentDataEncryptionName, Context.NONE) - .getValue(); + return getWithResponse(resourceGroupName, workspaceName, sqlPoolName, transparentDataEncryptionName, + Context.NONE).getValue(); } /** * Creates or updates a Sql pool's transparent data encryption configuration - * - *

Creates or updates a Sql pool's transparent data encryption configuration. - * + * + * Creates or updates a Sql pool's transparent data encryption configuration. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -352,26 +281,19 @@ public TransparentDataEncryptionInner get( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a Sql pool transparent data encryption configuration along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - TransparentDataEncryptionName transparentDataEncryptionName, + private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, TransparentDataEncryptionName transparentDataEncryptionName, TransparentDataEncryptionInner parameters) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -384,10 +306,8 @@ private Mono> createOrUpdateWithRespons return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } if (transparentDataEncryptionName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter transparentDataEncryptionName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter transparentDataEncryptionName is required and cannot be null.")); } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); @@ -397,28 +317,17 @@ private Mono> createOrUpdateWithRespons final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - transparentDataEncryptionName, - parameters, - accept, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, + transparentDataEncryptionName, parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates a Sql pool's transparent data encryption configuration - * - *

Creates or updates a Sql pool's transparent data encryption configuration. - * + * + * Creates or updates a Sql pool's transparent data encryption configuration. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -429,27 +338,19 @@ private Mono> createOrUpdateWithRespons * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents a Sql pool transparent data encryption configuration along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - TransparentDataEncryptionName transparentDataEncryptionName, - TransparentDataEncryptionInner parameters, - Context context) { + private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, TransparentDataEncryptionName transparentDataEncryptionName, + TransparentDataEncryptionInner parameters, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -462,10 +363,8 @@ private Mono> createOrUpdateWithRespons return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } if (transparentDataEncryptionName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter transparentDataEncryptionName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter transparentDataEncryptionName is required and cannot be null.")); } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); @@ -475,25 +374,15 @@ private Mono> createOrUpdateWithRespons final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - transparentDataEncryptionName, - parameters, - accept, - context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, transparentDataEncryptionName, parameters, accept, context); } /** * Creates or updates a Sql pool's transparent data encryption configuration - * - *

Creates or updates a Sql pool's transparent data encryption configuration. - * + * + * Creates or updates a Sql pool's transparent data encryption configuration. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -505,22 +394,18 @@ private Mono> createOrUpdateWithRespons * @return represents a Sql pool transparent data encryption configuration on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - TransparentDataEncryptionName transparentDataEncryptionName, + private Mono createOrUpdateAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, TransparentDataEncryptionName transparentDataEncryptionName, TransparentDataEncryptionInner parameters) { - return createOrUpdateWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, transparentDataEncryptionName, parameters) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + return createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, + transparentDataEncryptionName, parameters).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Creates or updates a Sql pool's transparent data encryption configuration - * - *

Creates or updates a Sql pool's transparent data encryption configuration. - * + * + * Creates or updates a Sql pool's transparent data encryption configuration. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -533,23 +418,18 @@ private Mono createOrUpdateAsync( * @return represents a Sql pool transparent data encryption configuration along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - TransparentDataEncryptionName transparentDataEncryptionName, - TransparentDataEncryptionInner parameters, - Context context) { - return createOrUpdateWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, transparentDataEncryptionName, parameters, context) - .block(); + public Response createOrUpdateWithResponse(String resourceGroupName, + String workspaceName, String sqlPoolName, TransparentDataEncryptionName transparentDataEncryptionName, + TransparentDataEncryptionInner parameters, Context context) { + return createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, + transparentDataEncryptionName, parameters, context).block(); } /** * Creates or updates a Sql pool's transparent data encryption configuration - * - *

Creates or updates a Sql pool's transparent data encryption configuration. - * + * + * Creates or updates a Sql pool's transparent data encryption configuration. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -561,22 +441,18 @@ public Response createOrUpdateWithResponse( * @return represents a Sql pool transparent data encryption configuration. */ @ServiceMethod(returns = ReturnType.SINGLE) - public TransparentDataEncryptionInner createOrUpdate( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - TransparentDataEncryptionName transparentDataEncryptionName, + public TransparentDataEncryptionInner createOrUpdate(String resourceGroupName, String workspaceName, + String sqlPoolName, TransparentDataEncryptionName transparentDataEncryptionName, TransparentDataEncryptionInner parameters) { - return createOrUpdateWithResponse( - resourceGroupName, workspaceName, sqlPoolName, transparentDataEncryptionName, parameters, Context.NONE) - .getValue(); + return createOrUpdateWithResponse(resourceGroupName, workspaceName, sqlPoolName, transparentDataEncryptionName, + parameters, Context.NONE).getValue(); } /** * SQL pool's transparent data encryption configurations - * - *

Get list of SQL pool's transparent data encryption configurations. - * + * + * Get list of SQL pool's transparent data encryption configurations. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -584,22 +460,18 @@ public TransparentDataEncryptionInner createOrUpdate( * @throws 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 SQL pool's transparent data encryption configurations along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String workspaceName, String sqlPoolName) { + private Mono> listSinglePageAsync(String resourceGroupName, + String workspaceName, String sqlPoolName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -614,35 +486,18 @@ private Mono> listSinglePageAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * SQL pool's transparent data encryption configurations - * - *

Get list of SQL pool's transparent data encryption configurations. - * + * + * Get list of SQL pool's transparent data encryption configurations. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -651,22 +506,18 @@ private Mono> listSinglePageAsync( * @throws 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 SQL pool's transparent data encryption configurations along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + private Mono> listSinglePageAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -682,53 +533,38 @@ private Mono> listSinglePageAsync( final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * SQL pool's transparent data encryption configurations - * - *

Get list of SQL pool's transparent data encryption configurations. - * + * + * Get list of SQL pool's transparent data encryption configurations. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of SQL pool's transparent data encryption configurations as paginated response with {@link - * PagedFlux}. + * @return list of SQL pool's transparent data encryption configurations as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( - String resourceGroupName, String workspaceName, String sqlPoolName) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName), + private PagedFlux listAsync(String resourceGroupName, String workspaceName, + String sqlPoolName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName), nextLink -> listNextSinglePageAsync(nextLink)); } /** * SQL pool's transparent data encryption configurations - * - *

Get list of SQL pool's transparent data encryption configurations. - * + * + * Get list of SQL pool's transparent data encryption configurations. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -736,42 +572,41 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of SQL pool's transparent data encryption configurations as paginated response with {@link - * PagedFlux}. + * @return list of SQL pool's transparent data encryption configurations as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName, context), + private PagedFlux listAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } /** * SQL pool's transparent data encryption configurations - * - *

Get list of SQL pool's transparent data encryption configurations. - * + * + * Get list of SQL pool's transparent data encryption configurations. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of SQL pool's transparent data encryption configurations as paginated response with {@link - * PagedIterable}. + * @return list of SQL pool's transparent data encryption configurations as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName) { + public PagedIterable list(String resourceGroupName, String workspaceName, + String sqlPoolName) { return new PagedIterable<>(listAsync(resourceGroupName, workspaceName, sqlPoolName)); } /** * SQL pool's transparent data encryption configurations - * - *

Get list of SQL pool's transparent data encryption configurations. - * + * + * Get list of SQL pool's transparent data encryption configurations. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -779,25 +614,26 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of SQL pool's transparent data encryption configurations as paginated response with {@link - * PagedIterable}. + * @return list of SQL pool's transparent data encryption configurations as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + public PagedIterable list(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context) { return new PagedIterable<>(listAsync(resourceGroupName, workspaceName, sqlPoolName, context)); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of transparent data encryption configurations along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -805,62 +641,43 @@ private Mono> listNextSinglePageAs return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of transparent data encryption configurations along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync( - String nextLink, Context context) { + private Mono> listNextSinglePageAsync(String nextLink, + Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTransparentDataEncryptionsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTransparentDataEncryptionsImpl.java index 2556f5f85373..c6ea77bea486 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTransparentDataEncryptionsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTransparentDataEncryptionsImpl.java @@ -22,41 +22,28 @@ public final class SqlPoolTransparentDataEncryptionsImpl implements SqlPoolTrans private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public SqlPoolTransparentDataEncryptionsImpl( - SqlPoolTransparentDataEncryptionsClient innerClient, + public SqlPoolTransparentDataEncryptionsImpl(SqlPoolTransparentDataEncryptionsClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - TransparentDataEncryptionName transparentDataEncryptionName, - Context context) { - Response inner = - this - .serviceClient() - .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, transparentDataEncryptionName, context); + public Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, TransparentDataEncryptionName transparentDataEncryptionName, Context context) { + Response inner = this.serviceClient().getWithResponse(resourceGroupName, + workspaceName, sqlPoolName, transparentDataEncryptionName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new TransparentDataEncryptionImpl(inner.getValue(), this.manager())); } else { return null; } } - public TransparentDataEncryption get( - String resourceGroupName, - String workspaceName, - String sqlPoolName, + public TransparentDataEncryption get(String resourceGroupName, String workspaceName, String sqlPoolName, TransparentDataEncryptionName transparentDataEncryptionName) { - TransparentDataEncryptionInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, transparentDataEncryptionName); + TransparentDataEncryptionInner inner + = this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, transparentDataEncryptionName); if (inner != null) { return new TransparentDataEncryptionImpl(inner, this.manager()); } else { @@ -64,97 +51,75 @@ public TransparentDataEncryption get( } } - public PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName) { - PagedIterable inner = - this.serviceClient().list(resourceGroupName, workspaceName, sqlPoolName); - return Utils.mapPage(inner, inner1 -> new TransparentDataEncryptionImpl(inner1, this.manager())); + public PagedIterable list(String resourceGroupName, String workspaceName, + String sqlPoolName) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, workspaceName, sqlPoolName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new TransparentDataEncryptionImpl(inner1, this.manager())); } - public PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { - PagedIterable inner = - this.serviceClient().list(resourceGroupName, workspaceName, sqlPoolName, context); - return Utils.mapPage(inner, inner1 -> new TransparentDataEncryptionImpl(inner1, this.manager())); + public PagedIterable list(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, workspaceName, sqlPoolName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new TransparentDataEncryptionImpl(inner1, this.manager())); } public TransparentDataEncryption getById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); + String sqlPoolName = ResourceManagerUtils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } - String transparentDataEncryptionNameLocal = Utils.getValueFromIdByName(id, "transparentDataEncryption"); + String transparentDataEncryptionNameLocal + = ResourceManagerUtils.getValueFromIdByName(id, "transparentDataEncryption"); if (transparentDataEncryptionNameLocal == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'transparentDataEncryption'.", - id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String + .format("The resource ID '%s' is not valid. Missing path segment 'transparentDataEncryption'.", id))); } - TransparentDataEncryptionName transparentDataEncryptionName = - TransparentDataEncryptionName.fromString(transparentDataEncryptionNameLocal); + TransparentDataEncryptionName transparentDataEncryptionName + = TransparentDataEncryptionName.fromString(transparentDataEncryptionNameLocal); return this .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, transparentDataEncryptionName, Context.NONE) .getValue(); } public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); + String sqlPoolName = ResourceManagerUtils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } - String transparentDataEncryptionNameLocal = Utils.getValueFromIdByName(id, "transparentDataEncryption"); + String transparentDataEncryptionNameLocal + = ResourceManagerUtils.getValueFromIdByName(id, "transparentDataEncryption"); if (transparentDataEncryptionNameLocal == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'transparentDataEncryption'.", - id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String + .format("The resource ID '%s' is not valid. Missing path segment 'transparentDataEncryption'.", id))); } - TransparentDataEncryptionName transparentDataEncryptionName = - TransparentDataEncryptionName.fromString(transparentDataEncryptionNameLocal); - return this - .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, transparentDataEncryptionName, context); + TransparentDataEncryptionName transparentDataEncryptionName + = TransparentDataEncryptionName.fromString(transparentDataEncryptionNameLocal); + return this.getWithResponse(resourceGroupName, workspaceName, sqlPoolName, transparentDataEncryptionName, + context); } private SqlPoolTransparentDataEncryptionsClient serviceClient() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolUsagesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolUsagesClientImpl.java index 5382d220f3c9..c9d775d81d6c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolUsagesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolUsagesClientImpl.java @@ -30,22 +30,28 @@ import com.azure.resourcemanager.synapse.models.SqlPoolUsageListResult; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in SqlPoolUsagesClient. */ +/** + * An instance of this class provides access to all the operations defined in SqlPoolUsagesClient. + */ public final class SqlPoolUsagesClientImpl implements SqlPoolUsagesClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final SqlPoolUsagesService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of SqlPoolUsagesClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ SqlPoolUsagesClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy.create(SqlPoolUsagesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service + = RestProxy.create(SqlPoolUsagesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } @@ -56,38 +62,28 @@ public final class SqlPoolUsagesClientImpl implements SqlPoolUsagesClient { @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface SqlPoolUsagesService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/usages") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/usages") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("sqlPoolName") String sqlPoolName, - @HeaderParam("Accept") String accept, - Context context); + Mono> list(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("sqlPoolName") String sqlPoolName, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Gets SQL pool usages - * - *

Gets SQL pool usages. - * + * + * Gets SQL pool usages. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -97,19 +93,15 @@ Mono> listNext( * @return sQL pool usages along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String workspaceName, String sqlPoolName) { + private Mono> listSinglePageAsync(String resourceGroupName, String workspaceName, + String sqlPoolName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -124,35 +116,18 @@ private Mono> listSinglePageAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets SQL pool usages - * - *

Gets SQL pool usages. - * + * + * Gets SQL pool usages. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -163,19 +138,15 @@ private Mono> listSinglePageAsync( * @return sQL pool usages along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + private Mono> listSinglePageAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -191,31 +162,17 @@ private Mono> listSinglePageAsync( final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * Gets SQL pool usages - * - *

Gets SQL pool usages. - * + * + * Gets SQL pool usages. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -226,16 +183,15 @@ private Mono> listSinglePageAsync( */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String workspaceName, String sqlPoolName) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName), + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName), nextLink -> listNextSinglePageAsync(nextLink)); } /** * Gets SQL pool usages - * - *

Gets SQL pool usages. - * + * + * Gets SQL pool usages. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -246,18 +202,17 @@ private PagedFlux listAsync(String resourceGroupName, String * @return sQL pool usages as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName, context), + private PagedFlux listAsync(String resourceGroupName, String workspaceName, String sqlPoolName, + Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } /** * Gets SQL pool usages - * - *

Gets SQL pool usages. - * + * + * Gets SQL pool usages. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -273,9 +228,9 @@ public PagedIterable list(String resourceGroupName, String wo /** * Gets SQL pool usages - * - *

Gets SQL pool usages. - * + * + * Gets SQL pool usages. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -286,21 +241,22 @@ public PagedIterable list(String resourceGroupName, String wo * @return sQL pool usages as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + public PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName, + Context context) { return new PagedIterable<>(listAsync(resourceGroupName, workspaceName, sqlPoolName, context)); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response to a list Sql pool usages request along with {@link PagedResponse} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -308,37 +264,28 @@ private Mono> listNextSinglePageAsync(String ne return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response to a list Sql pool usages request along with {@link PagedResponse} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { @@ -346,23 +293,13 @@ private Mono> listNextSinglePageAsync(String ne return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolUsagesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolUsagesImpl.java index c0ea3451cfcf..b2de8aea74e4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolUsagesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolUsagesImpl.java @@ -19,23 +19,23 @@ public final class SqlPoolUsagesImpl implements SqlPoolUsages { private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public SqlPoolUsagesImpl( - SqlPoolUsagesClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + public SqlPoolUsagesImpl(SqlPoolUsagesClient innerClient, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } public PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName) { - PagedIterable inner = - this.serviceClient().list(resourceGroupName, workspaceName, sqlPoolName); - return Utils.mapPage(inner, inner1 -> new SqlPoolUsageImpl(inner1, this.manager())); + PagedIterable inner + = this.serviceClient().list(resourceGroupName, workspaceName, sqlPoolName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SqlPoolUsageImpl(inner1, this.manager())); } - public PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { - PagedIterable inner = - this.serviceClient().list(resourceGroupName, workspaceName, sqlPoolName, context); - return Utils.mapPage(inner, inner1 -> new SqlPoolUsageImpl(inner1, this.manager())); + public PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName, + Context context) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, workspaceName, sqlPoolName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SqlPoolUsageImpl(inner1, this.manager())); } private SqlPoolUsagesClient serviceClient() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentImpl.java index 79c21ce9ad55..b91e68db89e2 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentImpl.java @@ -10,10 +10,8 @@ import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentRecurringScansProperties; -public final class SqlPoolVulnerabilityAssessmentImpl - implements SqlPoolVulnerabilityAssessment, - SqlPoolVulnerabilityAssessment.Definition, - SqlPoolVulnerabilityAssessment.Update { +public final class SqlPoolVulnerabilityAssessmentImpl implements SqlPoolVulnerabilityAssessment, + SqlPoolVulnerabilityAssessment.Definition, SqlPoolVulnerabilityAssessment.Update { private SqlPoolVulnerabilityAssessmentInner innerObject; private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; @@ -66,8 +64,8 @@ private com.azure.resourcemanager.synapse.SynapseManager manager() { private VulnerabilityAssessmentName vulnerabilityAssessmentName; - public SqlPoolVulnerabilityAssessmentImpl withExistingSqlPool( - String resourceGroupName, String workspaceName, String sqlPoolName) { + public SqlPoolVulnerabilityAssessmentImpl withExistingSqlPool(String resourceGroupName, String workspaceName, + String sqlPoolName) { this.resourceGroupName = resourceGroupName; this.workspaceName = workspaceName; this.sqlPoolName = sqlPoolName; @@ -75,39 +73,24 @@ public SqlPoolVulnerabilityAssessmentImpl withExistingSqlPool( } public SqlPoolVulnerabilityAssessment create() { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolVulnerabilityAssessments() - .createOrUpdateWithResponse( - resourceGroupName, - workspaceName, - sqlPoolName, - vulnerabilityAssessmentName, - this.innerModel(), - Context.NONE) + this.innerObject + = serviceManager + .serviceClient().getSqlPoolVulnerabilityAssessments().createOrUpdateWithResponse(resourceGroupName, + workspaceName, sqlPoolName, vulnerabilityAssessmentName, this.innerModel(), Context.NONE) .getValue(); return this; } public SqlPoolVulnerabilityAssessment create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolVulnerabilityAssessments() - .createOrUpdateWithResponse( - resourceGroupName, - workspaceName, - sqlPoolName, - vulnerabilityAssessmentName, - this.innerModel(), - context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getSqlPoolVulnerabilityAssessments() + .createOrUpdateWithResponse(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, + this.innerModel(), context) + .getValue(); return this; } - SqlPoolVulnerabilityAssessmentImpl( - VulnerabilityAssessmentName name, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + SqlPoolVulnerabilityAssessmentImpl(VulnerabilityAssessmentName name, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = new SqlPoolVulnerabilityAssessmentInner(); this.serviceManager = serviceManager; this.vulnerabilityAssessmentName = name; @@ -118,68 +101,44 @@ public SqlPoolVulnerabilityAssessmentImpl update() { } public SqlPoolVulnerabilityAssessment apply() { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolVulnerabilityAssessments() - .createOrUpdateWithResponse( - resourceGroupName, - workspaceName, - sqlPoolName, - vulnerabilityAssessmentName, - this.innerModel(), - Context.NONE) + this.innerObject + = serviceManager + .serviceClient().getSqlPoolVulnerabilityAssessments().createOrUpdateWithResponse(resourceGroupName, + workspaceName, sqlPoolName, vulnerabilityAssessmentName, this.innerModel(), Context.NONE) .getValue(); return this; } public SqlPoolVulnerabilityAssessment apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolVulnerabilityAssessments() - .createOrUpdateWithResponse( - resourceGroupName, - workspaceName, - sqlPoolName, - vulnerabilityAssessmentName, - this.innerModel(), - context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getSqlPoolVulnerabilityAssessments() + .createOrUpdateWithResponse(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, + this.innerModel(), context) + .getValue(); return this; } - SqlPoolVulnerabilityAssessmentImpl( - SqlPoolVulnerabilityAssessmentInner innerObject, + SqlPoolVulnerabilityAssessmentImpl(SqlPoolVulnerabilityAssessmentInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.workspaceName = Utils.getValueFromIdByName(innerObject.id(), "workspaces"); - this.sqlPoolName = Utils.getValueFromIdByName(innerObject.id(), "sqlPools"); - this.vulnerabilityAssessmentName = - VulnerabilityAssessmentName - .fromString(Utils.getValueFromIdByName(innerObject.id(), "vulnerabilityAssessments")); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.workspaceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workspaces"); + this.sqlPoolName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "sqlPools"); + this.vulnerabilityAssessmentName = VulnerabilityAssessmentName + .fromString(ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "vulnerabilityAssessments")); } public SqlPoolVulnerabilityAssessment refresh() { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolVulnerabilityAssessments() - .getWithResponse( - resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getSqlPoolVulnerabilityAssessments() + .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, Context.NONE) + .getValue(); return this; } public SqlPoolVulnerabilityAssessment refresh(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolVulnerabilityAssessments() - .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getSqlPoolVulnerabilityAssessments() + .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, context) + .getValue(); return this; } @@ -198,8 +157,8 @@ public SqlPoolVulnerabilityAssessmentImpl withStorageAccountAccessKey(String sto return this; } - public SqlPoolVulnerabilityAssessmentImpl withRecurringScans( - VulnerabilityAssessmentRecurringScansProperties recurringScans) { + public SqlPoolVulnerabilityAssessmentImpl + withRecurringScans(VulnerabilityAssessmentRecurringScansProperties recurringScans) { this.innerModel().withRecurringScans(recurringScans); return this; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentRuleBaselineImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentRuleBaselineImpl.java index 620b97198994..da9138700047 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentRuleBaselineImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentRuleBaselineImpl.java @@ -13,10 +13,8 @@ import java.util.Collections; import java.util.List; -public final class SqlPoolVulnerabilityAssessmentRuleBaselineImpl - implements SqlPoolVulnerabilityAssessmentRuleBaseline, - SqlPoolVulnerabilityAssessmentRuleBaseline.Definition, - SqlPoolVulnerabilityAssessmentRuleBaseline.Update { +public final class SqlPoolVulnerabilityAssessmentRuleBaselineImpl implements SqlPoolVulnerabilityAssessmentRuleBaseline, + SqlPoolVulnerabilityAssessmentRuleBaseline.Definition, SqlPoolVulnerabilityAssessmentRuleBaseline.Update { private SqlPoolVulnerabilityAssessmentRuleBaselineInner innerObject; private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; @@ -66,11 +64,8 @@ private com.azure.resourcemanager.synapse.SynapseManager manager() { private VulnerabilityAssessmentPolicyBaselineName baselineName; - public SqlPoolVulnerabilityAssessmentRuleBaselineImpl withExistingRule( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, + public SqlPoolVulnerabilityAssessmentRuleBaselineImpl withExistingRule(String resourceGroupName, + String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId) { this.resourceGroupName = resourceGroupName; this.workspaceName = workspaceName; @@ -81,43 +76,22 @@ public SqlPoolVulnerabilityAssessmentRuleBaselineImpl withExistingRule( } public SqlPoolVulnerabilityAssessmentRuleBaseline create() { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolVulnerabilityAssessmentRuleBaselines() - .createOrUpdateWithResponse( - resourceGroupName, - workspaceName, - sqlPoolName, - vulnerabilityAssessmentName, - ruleId, - baselineName, - this.innerModel(), - Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getSqlPoolVulnerabilityAssessmentRuleBaselines() + .createOrUpdateWithResponse(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, + ruleId, baselineName, this.innerModel(), Context.NONE) + .getValue(); return this; } public SqlPoolVulnerabilityAssessmentRuleBaseline create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolVulnerabilityAssessmentRuleBaselines() - .createOrUpdateWithResponse( - resourceGroupName, - workspaceName, - sqlPoolName, - vulnerabilityAssessmentName, - ruleId, - baselineName, - this.innerModel(), - context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getSqlPoolVulnerabilityAssessmentRuleBaselines() + .createOrUpdateWithResponse(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, + ruleId, baselineName, this.innerModel(), context) + .getValue(); return this; } - SqlPoolVulnerabilityAssessmentRuleBaselineImpl( - VulnerabilityAssessmentPolicyBaselineName name, + SqlPoolVulnerabilityAssessmentRuleBaselineImpl(VulnerabilityAssessmentPolicyBaselineName name, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = new SqlPoolVulnerabilityAssessmentRuleBaselineInner(); this.serviceManager = serviceManager; @@ -129,94 +103,54 @@ public SqlPoolVulnerabilityAssessmentRuleBaselineImpl update() { } public SqlPoolVulnerabilityAssessmentRuleBaseline apply() { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolVulnerabilityAssessmentRuleBaselines() - .createOrUpdateWithResponse( - resourceGroupName, - workspaceName, - sqlPoolName, - vulnerabilityAssessmentName, - ruleId, - baselineName, - this.innerModel(), - Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getSqlPoolVulnerabilityAssessmentRuleBaselines() + .createOrUpdateWithResponse(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, + ruleId, baselineName, this.innerModel(), Context.NONE) + .getValue(); return this; } public SqlPoolVulnerabilityAssessmentRuleBaseline apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolVulnerabilityAssessmentRuleBaselines() - .createOrUpdateWithResponse( - resourceGroupName, - workspaceName, - sqlPoolName, - vulnerabilityAssessmentName, - ruleId, - baselineName, - this.innerModel(), - context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getSqlPoolVulnerabilityAssessmentRuleBaselines() + .createOrUpdateWithResponse(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, + ruleId, baselineName, this.innerModel(), context) + .getValue(); return this; } - SqlPoolVulnerabilityAssessmentRuleBaselineImpl( - SqlPoolVulnerabilityAssessmentRuleBaselineInner innerObject, + SqlPoolVulnerabilityAssessmentRuleBaselineImpl(SqlPoolVulnerabilityAssessmentRuleBaselineInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.workspaceName = Utils.getValueFromIdByName(innerObject.id(), "workspaces"); - this.sqlPoolName = Utils.getValueFromIdByName(innerObject.id(), "sqlPools"); - this.vulnerabilityAssessmentName = - VulnerabilityAssessmentName - .fromString(Utils.getValueFromIdByName(innerObject.id(), "vulnerabilityAssessments")); - this.ruleId = Utils.getValueFromIdByName(innerObject.id(), "rules"); - this.baselineName = - VulnerabilityAssessmentPolicyBaselineName - .fromString(Utils.getValueFromIdByName(innerObject.id(), "baselines")); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.workspaceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workspaces"); + this.sqlPoolName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "sqlPools"); + this.vulnerabilityAssessmentName = VulnerabilityAssessmentName + .fromString(ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "vulnerabilityAssessments")); + this.ruleId = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "rules"); + this.baselineName = VulnerabilityAssessmentPolicyBaselineName + .fromString(ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "baselines")); } public SqlPoolVulnerabilityAssessmentRuleBaseline refresh() { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolVulnerabilityAssessmentRuleBaselines() - .getWithResponse( - resourceGroupName, - workspaceName, - sqlPoolName, - vulnerabilityAssessmentName, - ruleId, - baselineName, - Context.NONE) + this.innerObject + = serviceManager + .serviceClient().getSqlPoolVulnerabilityAssessmentRuleBaselines().getWithResponse(resourceGroupName, + workspaceName, sqlPoolName, vulnerabilityAssessmentName, ruleId, baselineName, Context.NONE) .getValue(); return this; } public SqlPoolVulnerabilityAssessmentRuleBaseline refresh(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolVulnerabilityAssessmentRuleBaselines() - .getWithResponse( - resourceGroupName, - workspaceName, - sqlPoolName, - vulnerabilityAssessmentName, - ruleId, - baselineName, - context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getSqlPoolVulnerabilityAssessmentRuleBaselines() + .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, ruleId, + baselineName, context) + .getValue(); return this; } - public SqlPoolVulnerabilityAssessmentRuleBaselineImpl withBaselineResults( - List baselineResults) { + public SqlPoolVulnerabilityAssessmentRuleBaselineImpl + withBaselineResults(List baselineResults) { this.innerModel().withBaselineResults(baselineResults); return this; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentRuleBaselinesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentRuleBaselinesClientImpl.java index a0d419a91053..fa757e4de83b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentRuleBaselinesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentRuleBaselinesClientImpl.java @@ -36,132 +36,105 @@ */ public final class SqlPoolVulnerabilityAssessmentRuleBaselinesClientImpl implements SqlPoolVulnerabilityAssessmentRuleBaselinesClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final SqlPoolVulnerabilityAssessmentRuleBaselinesService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of SqlPoolVulnerabilityAssessmentRuleBaselinesClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ SqlPoolVulnerabilityAssessmentRuleBaselinesClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy - .create( - SqlPoolVulnerabilityAssessmentRuleBaselinesService.class, - client.getHttpPipeline(), - client.getSerializerAdapter()); + this.service = RestProxy.create(SqlPoolVulnerabilityAssessmentRuleBaselinesService.class, + client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for SynapseManagementClientSqlPoolVulnerabilityAssessmentRuleBaselines to - * be used by the proxy service to perform REST calls. + * The interface defining all the services for SynapseManagementClientSqlPoolVulnerabilityAssessmentRuleBaselines + * to be used by the proxy service to perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface SqlPoolVulnerabilityAssessmentRuleBaselinesService { - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/rules" - + "/{ruleId}/baselines/{baselineName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/rules/{ruleId}/baselines/{baselineName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> createOrUpdate( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, + @HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("sqlPoolName") String sqlPoolName, @PathParam("vulnerabilityAssessmentName") VulnerabilityAssessmentName vulnerabilityAssessmentName, @PathParam("ruleId") String ruleId, @PathParam("baselineName") VulnerabilityAssessmentPolicyBaselineName baselineName, @BodyParam("application/json") SqlPoolVulnerabilityAssessmentRuleBaselineInner parameters, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/rules" - + "/{ruleId}/baselines/{baselineName}") - @ExpectedResponses({200, 204}) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/rules/{ruleId}/baselines/{baselineName}") + @ExpectedResponses({ 200, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> delete( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, + Mono> delete(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("sqlPoolName") String sqlPoolName, @PathParam("vulnerabilityAssessmentName") VulnerabilityAssessmentName vulnerabilityAssessmentName, @PathParam("ruleId") String ruleId, - @PathParam("baselineName") VulnerabilityAssessmentPolicyBaselineName baselineName, - Context context); + @PathParam("baselineName") VulnerabilityAssessmentPolicyBaselineName baselineName, Context context); - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/rules" - + "/{ruleId}/baselines/{baselineName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/rules/{ruleId}/baselines/{baselineName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono> get(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("sqlPoolName") String sqlPoolName, @PathParam("vulnerabilityAssessmentName") VulnerabilityAssessmentName vulnerabilityAssessmentName, @PathParam("ruleId") String ruleId, @PathParam("baselineName") VulnerabilityAssessmentPolicyBaselineName baselineName, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); } /** * Creates or updates a Sql pool's vulnerability assessment rule baseline. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param ruleId The vulnerability assessment rule ID. * @param baselineName The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql - * pool level rule and master for workspace level rule). + * pool level rule and master for workspace level rule). * @param parameters The requested rule baseline resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Sql pool vulnerability assessment rule baseline along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String ruleId, + String resourceGroupName, String workspaceName, String sqlPoolName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName, SqlPoolVulnerabilityAssessmentRuleBaselineInner parameters) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -174,10 +147,8 @@ private Mono> createOr return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } if (vulnerabilityAssessmentName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter vulnerabilityAssessmentName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter vulnerabilityAssessmentName is required and cannot be null.")); } if (ruleId == null) { return Mono.error(new IllegalArgumentException("Parameter ruleId is required and cannot be null.")); @@ -193,64 +164,43 @@ private Mono> createOr final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - vulnerabilityAssessmentName, - ruleId, - baselineName, - parameters, - accept, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, + vulnerabilityAssessmentName, ruleId, baselineName, parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates a Sql pool's vulnerability assessment rule baseline. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param ruleId The vulnerability assessment rule ID. * @param baselineName The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql - * pool level rule and master for workspace level rule). + * pool level rule and master for workspace level rule). * @param parameters The requested rule baseline resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Sql pool vulnerability assessment rule baseline along with {@link Response} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String ruleId, + String resourceGroupName, String workspaceName, String sqlPoolName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName, - SqlPoolVulnerabilityAssessmentRuleBaselineInner parameters, - Context context) { + SqlPoolVulnerabilityAssessmentRuleBaselineInner parameters, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -263,10 +213,8 @@ private Mono> createOr return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } if (vulnerabilityAssessmentName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter vulnerabilityAssessmentName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter vulnerabilityAssessmentName is required and cannot be null.")); } if (ruleId == null) { return Mono.error(new IllegalArgumentException("Parameter ruleId is required and cannot be null.")); @@ -282,32 +230,21 @@ private Mono> createOr final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - vulnerabilityAssessmentName, - ruleId, - baselineName, - parameters, - accept, - context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, ruleId, baselineName, + parameters, accept, context); } /** * Creates or updates a Sql pool's vulnerability assessment rule baseline. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param ruleId The vulnerability assessment rule ID. * @param baselineName The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql - * pool level rule and master for workspace level rule). + * pool level rule and master for workspace level rule). * @param parameters The requested rule baseline resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -315,35 +252,25 @@ private Mono> createOr * @return a Sql pool vulnerability assessment rule baseline on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String ruleId, - VulnerabilityAssessmentPolicyBaselineName baselineName, + private Mono createOrUpdateAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, + String ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName, SqlPoolVulnerabilityAssessmentRuleBaselineInner parameters) { - return createOrUpdateWithResponseAsync( - resourceGroupName, - workspaceName, - sqlPoolName, - vulnerabilityAssessmentName, - ruleId, - baselineName, - parameters) + return createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, + vulnerabilityAssessmentName, ruleId, baselineName, parameters) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Creates or updates a Sql pool's vulnerability assessment rule baseline. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param ruleId The vulnerability assessment rule ID. * @param baselineName The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql - * pool level rule and master for workspace level rule). + * pool level rule and master for workspace level rule). * @param parameters The requested rule baseline resource. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -353,36 +280,24 @@ private Mono createOrUpdateAsyn */ @ServiceMethod(returns = ReturnType.SINGLE) public Response createOrUpdateWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String ruleId, + String resourceGroupName, String workspaceName, String sqlPoolName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName, - SqlPoolVulnerabilityAssessmentRuleBaselineInner parameters, - Context context) { - return createOrUpdateWithResponseAsync( - resourceGroupName, - workspaceName, - sqlPoolName, - vulnerabilityAssessmentName, - ruleId, - baselineName, - parameters, - context) - .block(); + SqlPoolVulnerabilityAssessmentRuleBaselineInner parameters, Context context) { + return createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, + vulnerabilityAssessmentName, ruleId, baselineName, parameters, context).block(); } /** * Creates or updates a Sql pool's vulnerability assessment rule baseline. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param ruleId The vulnerability assessment rule ID. * @param baselineName The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql - * pool level rule and master for workspace level rule). + * pool level rule and master for workspace level rule). * @param parameters The requested rule baseline resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -390,60 +305,40 @@ public Response createOrUpdateW * @return a Sql pool vulnerability assessment rule baseline. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SqlPoolVulnerabilityAssessmentRuleBaselineInner createOrUpdate( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String ruleId, - VulnerabilityAssessmentPolicyBaselineName baselineName, + public SqlPoolVulnerabilityAssessmentRuleBaselineInner createOrUpdate(String resourceGroupName, + String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, + String ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName, SqlPoolVulnerabilityAssessmentRuleBaselineInner parameters) { - return createOrUpdateWithResponse( - resourceGroupName, - workspaceName, - sqlPoolName, - vulnerabilityAssessmentName, - ruleId, - baselineName, - parameters, - Context.NONE) - .getValue(); + return createOrUpdateWithResponse(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, + ruleId, baselineName, parameters, Context.NONE).getValue(); } /** * Removes the database's vulnerability assessment rule baseline. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param ruleId The vulnerability assessment rule ID. * @param baselineName The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql - * pool level rule and master for workspace level rule). + * pool level rule and master for workspace level rule). * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String ruleId, + private Mono> deleteWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -456,10 +351,8 @@ private Mono> deleteWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } if (vulnerabilityAssessmentName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter vulnerabilityAssessmentName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter vulnerabilityAssessmentName is required and cannot be null.")); } if (ruleId == null) { return Mono.error(new IllegalArgumentException("Parameter ruleId is required and cannot be null.")); @@ -469,33 +362,22 @@ private Mono> deleteWithResponseAsync( } final String apiVersion = "2021-06-01"; return FluxUtil - .withContext( - context -> - service - .delete( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - vulnerabilityAssessmentName, - ruleId, - baselineName, - context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, + vulnerabilityAssessmentName, ruleId, baselineName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Removes the database's vulnerability assessment rule baseline. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param ruleId The vulnerability assessment rule ID. * @param baselineName The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql - * pool level rule and master for workspace level rule). + * pool level rule and master for workspace level rule). * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -503,25 +385,16 @@ private Mono> deleteWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String ruleId, - VulnerabilityAssessmentPolicyBaselineName baselineName, - Context context) { + private Mono> deleteWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, + VulnerabilityAssessmentPolicyBaselineName baselineName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -534,10 +407,8 @@ private Mono> deleteWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } if (vulnerabilityAssessmentName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter vulnerabilityAssessmentName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter vulnerabilityAssessmentName is required and cannot be null.")); } if (ruleId == null) { return Mono.error(new IllegalArgumentException("Parameter ruleId is required and cannot be null.")); @@ -547,58 +418,43 @@ private Mono> deleteWithResponseAsync( } final String apiVersion = "2021-06-01"; context = this.client.mergeContext(context); - return service - .delete( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - vulnerabilityAssessmentName, - ruleId, - baselineName, - context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, vulnerabilityAssessmentName, ruleId, baselineName, context); } /** * Removes the database's vulnerability assessment rule baseline. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param ruleId The vulnerability assessment rule ID. * @param baselineName The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql - * pool level rule and master for workspace level rule). + * pool level rule and master for workspace level rule). * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String ruleId, + private Mono deleteAsync(String resourceGroupName, String workspaceName, String sqlPoolName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName) { - return deleteWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, ruleId, baselineName) - .flatMap(ignored -> Mono.empty()); + return deleteWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, + ruleId, baselineName).flatMap(ignored -> Mono.empty()); } /** * Removes the database's vulnerability assessment rule baseline. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param ruleId The vulnerability assessment rule ID. * @param baselineName The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql - * pool level rule and master for workspace level rule). + * pool level rule and master for workspace level rule). * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -606,92 +462,63 @@ private Mono deleteAsync( * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String ruleId, - VulnerabilityAssessmentPolicyBaselineName baselineName, - Context context) { - return deleteWithResponseAsync( - resourceGroupName, - workspaceName, - sqlPoolName, - vulnerabilityAssessmentName, - ruleId, - baselineName, - context) - .block(); + public Response deleteWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, + VulnerabilityAssessmentPolicyBaselineName baselineName, Context context) { + return deleteWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, + ruleId, baselineName, context).block(); } /** * Removes the database's vulnerability assessment rule baseline. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param ruleId The vulnerability assessment rule ID. * @param baselineName The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql - * pool level rule and master for workspace level rule). + * pool level rule and master for workspace level rule). * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String ruleId, + public void delete(String resourceGroupName, String workspaceName, String sqlPoolName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName) { - deleteWithResponse( - resourceGroupName, - workspaceName, - sqlPoolName, - vulnerabilityAssessmentName, - ruleId, - baselineName, - Context.NONE); + deleteWithResponse(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, ruleId, + baselineName, Context.NONE); } /** * Gets a SqlPool's vulnerability assessment rule baseline. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param ruleId The vulnerability assessment rule ID. * @param baselineName The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql - * pool level rule and master for server level rule). + * pool level rule and master for server level rule). * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a SqlPool's vulnerability assessment rule baseline along with {@link Response} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String ruleId, + String resourceGroupName, String workspaceName, String sqlPoolName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -704,10 +531,8 @@ private Mono> getWithR return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } if (vulnerabilityAssessmentName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter vulnerabilityAssessmentName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter vulnerabilityAssessmentName is required and cannot be null.")); } if (ruleId == null) { return Mono.error(new IllegalArgumentException("Parameter ruleId is required and cannot be null.")); @@ -718,61 +543,41 @@ private Mono> getWithR final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - vulnerabilityAssessmentName, - ruleId, - baselineName, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, ruleId, baselineName, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets a SqlPool's vulnerability assessment rule baseline. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param ruleId The vulnerability assessment rule ID. * @param baselineName The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql - * pool level rule and master for server level rule). + * pool level rule and master for server level rule). * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a SqlPool's vulnerability assessment rule baseline along with {@link Response} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> getWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String ruleId, - VulnerabilityAssessmentPolicyBaselineName baselineName, - Context context) { + String resourceGroupName, String workspaceName, String sqlPoolName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, + VulnerabilityAssessmentPolicyBaselineName baselineName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -785,10 +590,8 @@ private Mono> getWithR return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } if (vulnerabilityAssessmentName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter vulnerabilityAssessmentName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter vulnerabilityAssessmentName is required and cannot be null.")); } if (ruleId == null) { return Mono.error(new IllegalArgumentException("Parameter ruleId is required and cannot be null.")); @@ -799,59 +602,43 @@ private Mono> getWithR final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - vulnerabilityAssessmentName, - ruleId, - baselineName, - accept, - context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, vulnerabilityAssessmentName, ruleId, baselineName, accept, context); } /** * Gets a SqlPool's vulnerability assessment rule baseline. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param ruleId The vulnerability assessment rule ID. * @param baselineName The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql - * pool level rule and master for server level rule). + * pool level rule and master for server level rule). * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a SqlPool's vulnerability assessment rule baseline on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String ruleId, - VulnerabilityAssessmentPolicyBaselineName baselineName) { - return getWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, ruleId, baselineName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + private Mono getAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, + String ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName) { + return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, ruleId, + baselineName).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Gets a SqlPool's vulnerability assessment rule baseline. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param ruleId The vulnerability assessment rule ID. * @param baselineName The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql - * pool level rule and master for server level rule). + * pool level rule and master for server level rule). * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -859,56 +646,33 @@ private Mono getAsync( * @return a SqlPool's vulnerability assessment rule baseline along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String ruleId, - VulnerabilityAssessmentPolicyBaselineName baselineName, - Context context) { - return getWithResponseAsync( - resourceGroupName, - workspaceName, - sqlPoolName, - vulnerabilityAssessmentName, - ruleId, - baselineName, - context) - .block(); + public Response getWithResponse(String resourceGroupName, + String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, + String ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName, Context context) { + return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, ruleId, + baselineName, context).block(); } /** * Gets a SqlPool's vulnerability assessment rule baseline. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param ruleId The vulnerability assessment rule ID. * @param baselineName The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql - * pool level rule and master for server level rule). + * pool level rule and master for server level rule). * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a SqlPool's vulnerability assessment rule baseline. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SqlPoolVulnerabilityAssessmentRuleBaselineInner get( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String ruleId, + public SqlPoolVulnerabilityAssessmentRuleBaselineInner get(String resourceGroupName, String workspaceName, + String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName) { - return getWithResponse( - resourceGroupName, - workspaceName, - sqlPoolName, - vulnerabilityAssessmentName, - ruleId, - baselineName, - Context.NONE) - .getValue(); + return getWithResponse(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, ruleId, + baselineName, Context.NONE).getValue(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentRuleBaselinesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentRuleBaselinesImpl.java index 8ef02bc6fbc5..e7790413b1f9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentRuleBaselinesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentRuleBaselinesImpl.java @@ -30,79 +30,38 @@ public SqlPoolVulnerabilityAssessmentRuleBaselinesImpl( this.serviceManager = serviceManager; } - public Response deleteWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String ruleId, - VulnerabilityAssessmentPolicyBaselineName baselineName, - Context context) { - return this - .serviceClient() - .deleteWithResponse( - resourceGroupName, - workspaceName, - sqlPoolName, - vulnerabilityAssessmentName, - ruleId, - baselineName, - context); + public Response deleteWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, + VulnerabilityAssessmentPolicyBaselineName baselineName, Context context) { + return this.serviceClient().deleteWithResponse(resourceGroupName, workspaceName, sqlPoolName, + vulnerabilityAssessmentName, ruleId, baselineName, context); } - public void delete( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String ruleId, + public void delete(String resourceGroupName, String workspaceName, String sqlPoolName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName) { - this - .serviceClient() - .delete(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, ruleId, baselineName); + this.serviceClient().delete(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, ruleId, + baselineName); } - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String ruleId, - VulnerabilityAssessmentPolicyBaselineName baselineName, - Context context) { - Response inner = - this - .serviceClient() - .getWithResponse( - resourceGroupName, - workspaceName, - sqlPoolName, - vulnerabilityAssessmentName, - ruleId, - baselineName, - context); + public Response getWithResponse(String resourceGroupName, + String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, + String ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName, Context context) { + Response inner = this.serviceClient().getWithResponse( + resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, ruleId, baselineName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new SqlPoolVulnerabilityAssessmentRuleBaselineImpl(inner.getValue(), this.manager())); } else { return null; } } - public SqlPoolVulnerabilityAssessmentRuleBaseline get( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String ruleId, + public SqlPoolVulnerabilityAssessmentRuleBaseline get(String resourceGroupName, String workspaceName, + String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName) { - SqlPoolVulnerabilityAssessmentRuleBaselineInner inner = - this - .serviceClient() - .get(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, ruleId, baselineName); + SqlPoolVulnerabilityAssessmentRuleBaselineInner inner = this.serviceClient().get(resourceGroupName, + workspaceName, sqlPoolName, vulnerabilityAssessmentName, ruleId, baselineName); if (inner != null) { return new SqlPoolVulnerabilityAssessmentRuleBaselineImpl(inner, this.manager()); } else { @@ -111,252 +70,163 @@ public SqlPoolVulnerabilityAssessmentRuleBaseline get( } public SqlPoolVulnerabilityAssessmentRuleBaseline getById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); + String sqlPoolName = ResourceManagerUtils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } - String vulnerabilityAssessmentNameLocal = Utils.getValueFromIdByName(id, "vulnerabilityAssessments"); + String vulnerabilityAssessmentNameLocal + = ResourceManagerUtils.getValueFromIdByName(id, "vulnerabilityAssessments"); if (vulnerabilityAssessmentNameLocal == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'vulnerabilityAssessments'.", - id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String + .format("The resource ID '%s' is not valid. Missing path segment 'vulnerabilityAssessments'.", id))); } - VulnerabilityAssessmentName vulnerabilityAssessmentName = - VulnerabilityAssessmentName.fromString(vulnerabilityAssessmentNameLocal); - String ruleId = Utils.getValueFromIdByName(id, "rules"); + VulnerabilityAssessmentName vulnerabilityAssessmentName + = VulnerabilityAssessmentName.fromString(vulnerabilityAssessmentNameLocal); + String ruleId = ResourceManagerUtils.getValueFromIdByName(id, "rules"); if (ruleId == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'rules'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'rules'.", id))); } - String baselineNameLocal = Utils.getValueFromIdByName(id, "baselines"); + String baselineNameLocal = ResourceManagerUtils.getValueFromIdByName(id, "baselines"); if (baselineNameLocal == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'baselines'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'baselines'.", id))); } - VulnerabilityAssessmentPolicyBaselineName baselineName = - VulnerabilityAssessmentPolicyBaselineName.fromString(baselineNameLocal); - return this - .getWithResponse( - resourceGroupName, - workspaceName, - sqlPoolName, - vulnerabilityAssessmentName, - ruleId, - baselineName, - Context.NONE) - .getValue(); + VulnerabilityAssessmentPolicyBaselineName baselineName + = VulnerabilityAssessmentPolicyBaselineName.fromString(baselineNameLocal); + return this.getWithResponse(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, ruleId, + baselineName, Context.NONE).getValue(); } public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); + String sqlPoolName = ResourceManagerUtils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } - String vulnerabilityAssessmentNameLocal = Utils.getValueFromIdByName(id, "vulnerabilityAssessments"); + String vulnerabilityAssessmentNameLocal + = ResourceManagerUtils.getValueFromIdByName(id, "vulnerabilityAssessments"); if (vulnerabilityAssessmentNameLocal == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'vulnerabilityAssessments'.", - id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String + .format("The resource ID '%s' is not valid. Missing path segment 'vulnerabilityAssessments'.", id))); } - VulnerabilityAssessmentName vulnerabilityAssessmentName = - VulnerabilityAssessmentName.fromString(vulnerabilityAssessmentNameLocal); - String ruleId = Utils.getValueFromIdByName(id, "rules"); + VulnerabilityAssessmentName vulnerabilityAssessmentName + = VulnerabilityAssessmentName.fromString(vulnerabilityAssessmentNameLocal); + String ruleId = ResourceManagerUtils.getValueFromIdByName(id, "rules"); if (ruleId == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'rules'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'rules'.", id))); } - String baselineNameLocal = Utils.getValueFromIdByName(id, "baselines"); + String baselineNameLocal = ResourceManagerUtils.getValueFromIdByName(id, "baselines"); if (baselineNameLocal == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'baselines'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'baselines'.", id))); } - VulnerabilityAssessmentPolicyBaselineName baselineName = - VulnerabilityAssessmentPolicyBaselineName.fromString(baselineNameLocal); - return this - .getWithResponse( - resourceGroupName, - workspaceName, - sqlPoolName, - vulnerabilityAssessmentName, - ruleId, - baselineName, - context); + VulnerabilityAssessmentPolicyBaselineName baselineName + = VulnerabilityAssessmentPolicyBaselineName.fromString(baselineNameLocal); + return this.getWithResponse(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, ruleId, + baselineName, context); } public void deleteById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); + String sqlPoolName = ResourceManagerUtils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } - String vulnerabilityAssessmentNameLocal = Utils.getValueFromIdByName(id, "vulnerabilityAssessments"); + String vulnerabilityAssessmentNameLocal + = ResourceManagerUtils.getValueFromIdByName(id, "vulnerabilityAssessments"); if (vulnerabilityAssessmentNameLocal == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'vulnerabilityAssessments'.", - id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String + .format("The resource ID '%s' is not valid. Missing path segment 'vulnerabilityAssessments'.", id))); } - VulnerabilityAssessmentName vulnerabilityAssessmentName = - VulnerabilityAssessmentName.fromString(vulnerabilityAssessmentNameLocal); - String ruleId = Utils.getValueFromIdByName(id, "rules"); + VulnerabilityAssessmentName vulnerabilityAssessmentName + = VulnerabilityAssessmentName.fromString(vulnerabilityAssessmentNameLocal); + String ruleId = ResourceManagerUtils.getValueFromIdByName(id, "rules"); if (ruleId == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'rules'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'rules'.", id))); } - String baselineNameLocal = Utils.getValueFromIdByName(id, "baselines"); + String baselineNameLocal = ResourceManagerUtils.getValueFromIdByName(id, "baselines"); if (baselineNameLocal == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'baselines'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'baselines'.", id))); } - VulnerabilityAssessmentPolicyBaselineName baselineName = - VulnerabilityAssessmentPolicyBaselineName.fromString(baselineNameLocal); - this - .deleteWithResponse( - resourceGroupName, - workspaceName, - sqlPoolName, - vulnerabilityAssessmentName, - ruleId, - baselineName, - Context.NONE); + VulnerabilityAssessmentPolicyBaselineName baselineName + = VulnerabilityAssessmentPolicyBaselineName.fromString(baselineNameLocal); + this.deleteWithResponse(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, ruleId, + baselineName, Context.NONE); } public Response deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); + String sqlPoolName = ResourceManagerUtils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } - String vulnerabilityAssessmentNameLocal = Utils.getValueFromIdByName(id, "vulnerabilityAssessments"); + String vulnerabilityAssessmentNameLocal + = ResourceManagerUtils.getValueFromIdByName(id, "vulnerabilityAssessments"); if (vulnerabilityAssessmentNameLocal == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'vulnerabilityAssessments'.", - id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String + .format("The resource ID '%s' is not valid. Missing path segment 'vulnerabilityAssessments'.", id))); } - VulnerabilityAssessmentName vulnerabilityAssessmentName = - VulnerabilityAssessmentName.fromString(vulnerabilityAssessmentNameLocal); - String ruleId = Utils.getValueFromIdByName(id, "rules"); + VulnerabilityAssessmentName vulnerabilityAssessmentName + = VulnerabilityAssessmentName.fromString(vulnerabilityAssessmentNameLocal); + String ruleId = ResourceManagerUtils.getValueFromIdByName(id, "rules"); if (ruleId == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'rules'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'rules'.", id))); } - String baselineNameLocal = Utils.getValueFromIdByName(id, "baselines"); + String baselineNameLocal = ResourceManagerUtils.getValueFromIdByName(id, "baselines"); if (baselineNameLocal == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'baselines'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'baselines'.", id))); } - VulnerabilityAssessmentPolicyBaselineName baselineName = - VulnerabilityAssessmentPolicyBaselineName.fromString(baselineNameLocal); - return this - .deleteWithResponse( - resourceGroupName, - workspaceName, - sqlPoolName, - vulnerabilityAssessmentName, - ruleId, - baselineName, - context); + VulnerabilityAssessmentPolicyBaselineName baselineName + = VulnerabilityAssessmentPolicyBaselineName.fromString(baselineNameLocal); + return this.deleteWithResponse(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, + ruleId, baselineName, context); } private SqlPoolVulnerabilityAssessmentRuleBaselinesClient serviceClient() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentScansClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentScansClientImpl.java index a89c029ec8b4..2db12f03555a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentScansClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentScansClientImpl.java @@ -39,127 +39,96 @@ import reactor.core.publisher.Mono; /** - * An instance of this class provides access to all the operations defined in SqlPoolVulnerabilityAssessmentScansClient. + * An instance of this class provides access to all the operations defined in + * SqlPoolVulnerabilityAssessmentScansClient. */ public final class SqlPoolVulnerabilityAssessmentScansClientImpl implements SqlPoolVulnerabilityAssessmentScansClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final SqlPoolVulnerabilityAssessmentScansService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of SqlPoolVulnerabilityAssessmentScansClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ SqlPoolVulnerabilityAssessmentScansClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy - .create( - SqlPoolVulnerabilityAssessmentScansService.class, - client.getHttpPipeline(), - client.getSerializerAdapter()); + this.service = RestProxy.create(SqlPoolVulnerabilityAssessmentScansService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for SynapseManagementClientSqlPoolVulnerabilityAssessmentScans to be used - * by the proxy service to perform REST calls. + * The interface defining all the services for SynapseManagementClientSqlPoolVulnerabilityAssessmentScans to be + * used by the proxy service to perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface SqlPoolVulnerabilityAssessmentScansService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}" - + "/scans") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono> list(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("sqlPoolName") String sqlPoolName, @PathParam("vulnerabilityAssessmentName") VulnerabilityAssessmentName vulnerabilityAssessmentName, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans" - + "/{scanId}/initiateScan") - @ExpectedResponses({200, 202}) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}/initiateScan") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> initiateScan( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono>> initiateScan(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("sqlPoolName") String sqlPoolName, @PathParam("vulnerabilityAssessmentName") VulnerabilityAssessmentName vulnerabilityAssessmentName, - @PathParam("scanId") String scanId, - Context context); + @PathParam("scanId") String scanId, Context context); - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans" - + "/{scanId}/export") - @ExpectedResponses({200, 201}) + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}/export") + @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> export( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono> export(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("sqlPoolName") String sqlPoolName, @PathParam("vulnerabilityAssessmentName") VulnerabilityAssessmentName vulnerabilityAssessmentName, - @PathParam("scanId") String scanId, - @HeaderParam("Accept") String accept, - Context context); + @PathParam("scanId") String scanId, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans" - + "/{scanId}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono> get(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("sqlPoolName") String sqlPoolName, @PathParam("vulnerabilityAssessmentName") VulnerabilityAssessmentName vulnerabilityAssessmentName, - @PathParam("scanId") String scanId, - @HeaderParam("Accept") String accept, - Context context); + @PathParam("scanId") String scanId, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** * Lists the vulnerability assessment scans of a SQL pool - * - *

Lists the vulnerability assessment scans of a SQL pool. - * + * + * Lists the vulnerability assessment scans of a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -168,25 +137,18 @@ Mono> listNext( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of vulnerability assessment scan records along with {@link PagedResponse} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName) { + private Mono> listSinglePageAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -199,44 +161,24 @@ private Mono> listSinglePa return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } if (vulnerabilityAssessmentName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter vulnerabilityAssessmentName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter vulnerabilityAssessmentName is required and cannot be null.")); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - vulnerabilityAssessmentName, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Lists the vulnerability assessment scans of a SQL pool - * - *

Lists the vulnerability assessment scans of a SQL pool. - * + * + * Lists the vulnerability assessment scans of a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -246,26 +188,19 @@ private Mono> listSinglePa * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of vulnerability assessment scan records along with {@link PagedResponse} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, + private Mono> listSinglePageAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -278,41 +213,24 @@ private Mono> listSinglePa return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } if (vulnerabilityAssessmentName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter vulnerabilityAssessmentName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter vulnerabilityAssessmentName is required and cannot be null.")); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - vulnerabilityAssessmentName, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, vulnerabilityAssessmentName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * Lists the vulnerability assessment scans of a SQL pool - * - *

Lists the vulnerability assessment scans of a SQL pool. - * + * + * Lists the vulnerability assessment scans of a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -323,11 +241,8 @@ private Mono> listSinglePa * @return a list of vulnerability assessment scan records as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName) { + private PagedFlux listAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { return new PagedFlux<>( () -> listSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName), nextLink -> listNextSinglePageAsync(nextLink)); @@ -335,9 +250,9 @@ private PagedFlux listAsync( /** * Lists the vulnerability assessment scans of a SQL pool - * - *

Lists the vulnerability assessment scans of a SQL pool. - * + * + * Lists the vulnerability assessment scans of a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -349,24 +264,17 @@ private PagedFlux listAsync( * @return a list of vulnerability assessment scan records as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - Context context) { - return new PagedFlux<>( - () -> - listSinglePageAsync( - resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, context), - nextLink -> listNextSinglePageAsync(nextLink, context)); + private PagedFlux listAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName, + vulnerabilityAssessmentName, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } /** * Lists the vulnerability assessment scans of a SQL pool - * - *

Lists the vulnerability assessment scans of a SQL pool. - * + * + * Lists the vulnerability assessment scans of a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -377,20 +285,17 @@ private PagedFlux listAsync( * @return a list of vulnerability assessment scan records as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName) { + public PagedIterable list(String resourceGroupName, String workspaceName, + String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { return new PagedIterable<>( listAsync(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName)); } /** * Lists the vulnerability assessment scans of a SQL pool - * - *

Lists the vulnerability assessment scans of a SQL pool. - * + * + * Lists the vulnerability assessment scans of a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -402,19 +307,15 @@ public PagedIterable list( * @return a list of vulnerability assessment scan records as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - Context context) { + public PagedIterable list(String resourceGroupName, String workspaceName, + String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, Context context) { return new PagedIterable<>( listAsync(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, context)); } /** * Executes a Vulnerability Assessment database scan. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -426,23 +327,16 @@ public PagedIterable list( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> initiateScanWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, + private Mono>> initiateScanWithResponseAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String scanId) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -455,10 +349,8 @@ private Mono>> initiateScanWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } if (vulnerabilityAssessmentName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter vulnerabilityAssessmentName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter vulnerabilityAssessmentName is required and cannot be null.")); } if (scanId == null) { return Mono.error(new IllegalArgumentException("Parameter scanId is required and cannot be null.")); @@ -466,24 +358,14 @@ private Mono>> initiateScanWithResponseAsync( final String apiVersion = "2021-06-01"; return FluxUtil .withContext( - context -> - service - .initiateScan( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - vulnerabilityAssessmentName, - scanId, - context)) + context -> service.initiateScan(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Executes a Vulnerability Assessment database scan. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -496,24 +378,16 @@ private Mono>> initiateScanWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> initiateScanWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String scanId, - Context context) { + private Mono>> initiateScanWithResponseAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, + String scanId, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -526,32 +400,21 @@ private Mono>> initiateScanWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } if (vulnerabilityAssessmentName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter vulnerabilityAssessmentName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter vulnerabilityAssessmentName is required and cannot be null.")); } if (scanId == null) { return Mono.error(new IllegalArgumentException("Parameter scanId is required and cannot be null.")); } final String apiVersion = "2021-06-01"; context = this.client.mergeContext(context); - return service - .initiateScan( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - vulnerabilityAssessmentName, - scanId, - context); + return service.initiateScan(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId, context); } /** * Executes a Vulnerability Assessment database scan. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -563,24 +426,17 @@ private Mono>> initiateScanWithResponseAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginInitiateScanAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String scanId) { - Mono>> mono = - initiateScanWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + private PollerFlux, Void> beginInitiateScanAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String scanId) { + Mono>> mono = initiateScanWithResponseAsync(resourceGroupName, workspaceName, + sqlPoolName, vulnerabilityAssessmentName, scanId); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Executes a Vulnerability Assessment database scan. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -593,25 +449,18 @@ private PollerFlux, Void> beginInitiateScanAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginInitiateScanAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String scanId, - Context context) { + private PollerFlux, Void> beginInitiateScanAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String scanId, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - initiateScanWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + Mono>> mono = initiateScanWithResponseAsync(resourceGroupName, workspaceName, + sqlPoolName, vulnerabilityAssessmentName, scanId, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * Executes a Vulnerability Assessment database scan. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -623,12 +472,8 @@ private PollerFlux, Void> beginInitiateScanAsync( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginInitiateScan( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String scanId) { + public SyncPoller, Void> beginInitiateScan(String resourceGroupName, String workspaceName, + String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String scanId) { return this .beginInitiateScanAsync(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId) .getSyncPoller(); @@ -636,7 +481,7 @@ public SyncPoller, Void> beginInitiateScan( /** * Executes a Vulnerability Assessment database scan. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -649,22 +494,15 @@ public SyncPoller, Void> beginInitiateScan( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginInitiateScan( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String scanId, - Context context) { - return this - .beginInitiateScanAsync( - resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId, context) - .getSyncPoller(); + public SyncPoller, Void> beginInitiateScan(String resourceGroupName, String workspaceName, + String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String scanId, Context context) { + return this.beginInitiateScanAsync(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, + scanId, context).getSyncPoller(); } /** * Executes a Vulnerability Assessment database scan. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -676,21 +514,15 @@ public SyncPoller, Void> beginInitiateScan( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono initiateScanAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String scanId) { - return beginInitiateScanAsync( - resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId) - .last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono initiateScanAsync(String resourceGroupName, String workspaceName, String sqlPoolName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, String scanId) { + return beginInitiateScanAsync(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, + scanId).last().flatMap(this.client::getLroFinalResultOrError); } /** * Executes a Vulnerability Assessment database scan. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -703,22 +535,15 @@ private Mono initiateScanAsync( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono initiateScanAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String scanId, - Context context) { - return beginInitiateScanAsync( - resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono initiateScanAsync(String resourceGroupName, String workspaceName, String sqlPoolName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, String scanId, Context context) { + return beginInitiateScanAsync(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, + scanId, context).last().flatMap(this.client::getLroFinalResultOrError); } /** * Executes a Vulnerability Assessment database scan. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -729,18 +554,14 @@ private Mono initiateScanAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void initiateScan( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String scanId) { + public void initiateScan(String resourceGroupName, String workspaceName, String sqlPoolName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, String scanId) { initiateScanAsync(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId).block(); } /** * Executes a Vulnerability Assessment database scan. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -752,20 +573,15 @@ public void initiateScan( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void initiateScan( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String scanId, - Context context) { + public void initiateScan(String resourceGroupName, String workspaceName, String sqlPoolName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, String scanId, Context context) { initiateScanAsync(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId, context) .block(); } /** * Convert an existing scan result to a human readable format. If already exists nothing happens. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -775,26 +591,19 @@ public void initiateScan( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Sql pool Vulnerability Assessment scan export resource along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> exportWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String scanId) { + String resourceGroupName, String workspaceName, String sqlPoolName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, String scanId) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -807,10 +616,8 @@ private Mono> exportWit return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } if (vulnerabilityAssessmentName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter vulnerabilityAssessmentName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter vulnerabilityAssessmentName is required and cannot be null.")); } if (scanId == null) { return Mono.error(new IllegalArgumentException("Parameter scanId is required and cannot be null.")); @@ -818,26 +625,15 @@ private Mono> exportWit final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .export( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - vulnerabilityAssessmentName, - scanId, - accept, - context)) + .withContext(context -> service.export(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, + vulnerabilityAssessmentName, scanId, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Convert an existing scan result to a human readable format. If already exists nothing happens. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -848,27 +644,19 @@ private Mono> exportWit * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Sql pool Vulnerability Assessment scan export resource along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> exportWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String scanId, - Context context) { + String resourceGroupName, String workspaceName, String sqlPoolName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, String scanId, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -881,10 +669,8 @@ private Mono> exportWit return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } if (vulnerabilityAssessmentName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter vulnerabilityAssessmentName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter vulnerabilityAssessmentName is required and cannot be null.")); } if (scanId == null) { return Mono.error(new IllegalArgumentException("Parameter scanId is required and cannot be null.")); @@ -892,23 +678,13 @@ private Mono> exportWit final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .export( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - vulnerabilityAssessmentName, - scanId, - accept, - context); + return service.export(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId, accept, context); } /** * Convert an existing scan result to a human readable format. If already exists nothing happens. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -920,20 +696,16 @@ private Mono> exportWit * @return a Sql pool Vulnerability Assessment scan export resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono exportAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, + private Mono exportAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String scanId) { - return exportWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + return exportWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, + scanId).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Convert an existing scan result to a human readable format. If already exists nothing happens. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -946,21 +718,16 @@ private Mono exportAsync( * @return a Sql pool Vulnerability Assessment scan export resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response exportWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String scanId, - Context context) { - return exportWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId, context) - .block(); + public Response exportWithResponse(String resourceGroupName, + String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, + String scanId, Context context) { + return exportWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, + scanId, context).block(); } /** * Convert an existing scan result to a human readable format. If already exists nothing happens. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -972,20 +739,15 @@ public Response exportWithRespon * @return a Sql pool Vulnerability Assessment scan export resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SqlPoolVulnerabilityAssessmentScansExportInner export( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String scanId) { - return exportWithResponse( - resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId, Context.NONE) - .getValue(); + public SqlPoolVulnerabilityAssessmentScansExportInner export(String resourceGroupName, String workspaceName, + String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String scanId) { + return exportWithResponse(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId, + Context.NONE).getValue(); } /** * Gets a vulnerability assessment scan record of a Sql pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -995,26 +757,19 @@ public SqlPoolVulnerabilityAssessmentScansExportInner export( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a vulnerability assessment scan record of a Sql pool along with {@link Response} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String scanId) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1027,10 +782,8 @@ private Mono> getWithResponseAs return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } if (vulnerabilityAssessmentName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter vulnerabilityAssessmentName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter vulnerabilityAssessmentName is required and cannot be null.")); } if (scanId == null) { return Mono.error(new IllegalArgumentException("Parameter scanId is required and cannot be null.")); @@ -1038,26 +791,14 @@ private Mono> getWithResponseAs final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - vulnerabilityAssessmentName, - scanId, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets a vulnerability assessment scan record of a Sql pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1068,27 +809,19 @@ private Mono> getWithResponseAs * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a vulnerability assessment scan record of a Sql pool along with {@link Response} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String scanId, - Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, + String scanId, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1101,10 +834,8 @@ private Mono> getWithResponseAs return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } if (vulnerabilityAssessmentName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter vulnerabilityAssessmentName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter vulnerabilityAssessmentName is required and cannot be null.")); } if (scanId == null) { return Mono.error(new IllegalArgumentException("Parameter scanId is required and cannot be null.")); @@ -1112,23 +843,13 @@ private Mono> getWithResponseAs final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - vulnerabilityAssessmentName, - scanId, - accept, - context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId, accept, context); } /** * Gets a vulnerability assessment scan record of a Sql pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1140,19 +861,15 @@ private Mono> getWithResponseAs * @return a vulnerability assessment scan record of a Sql pool on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String scanId) { + private Mono getAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String scanId) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Gets a vulnerability assessment scan record of a Sql pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1165,21 +882,16 @@ private Mono getAsync( * @return a vulnerability assessment scan record of a Sql pool along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String scanId, - Context context) { - return getWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId, context) - .block(); + public Response getWithResponse(String resourceGroupName, + String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, + String scanId, Context context) { + return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId, + context).block(); } /** * Gets a vulnerability assessment scan record of a Sql pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1191,27 +903,23 @@ public Response getWithResponse( * @return a vulnerability assessment scan record of a Sql pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - public VulnerabilityAssessmentScanRecordInner get( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String scanId) { - return getWithResponse( - resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId, Context.NONE) - .getValue(); + public VulnerabilityAssessmentScanRecordInner get(String resourceGroupName, String workspaceName, + String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String scanId) { + return getWithResponse(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId, + Context.NONE).getValue(); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of vulnerability assessment scan records along with {@link PagedResponse} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -1219,62 +927,43 @@ private Mono> listNextSing return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of vulnerability assessment scan records along with {@link PagedResponse} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync( - String nextLink, Context context) { + private Mono> listNextSinglePageAsync(String nextLink, + Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentScansExportImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentScansExportImpl.java index 597f6481ce13..0ef5665e0f95 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentScansExportImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentScansExportImpl.java @@ -12,8 +12,7 @@ public final class SqlPoolVulnerabilityAssessmentScansExportImpl implements SqlP private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - SqlPoolVulnerabilityAssessmentScansExportImpl( - SqlPoolVulnerabilityAssessmentScansExportInner innerObject, + SqlPoolVulnerabilityAssessmentScansExportImpl(SqlPoolVulnerabilityAssessmentScansExportInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentScansImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentScansImpl.java index 948ac08f6c6d..caac12a504b7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentScansImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentScansImpl.java @@ -24,92 +24,57 @@ public final class SqlPoolVulnerabilityAssessmentScansImpl implements SqlPoolVul private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public SqlPoolVulnerabilityAssessmentScansImpl( - SqlPoolVulnerabilityAssessmentScansClient innerClient, + public SqlPoolVulnerabilityAssessmentScansImpl(SqlPoolVulnerabilityAssessmentScansClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public PagedIterable list( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName) { - PagedIterable inner = - this.serviceClient().list(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName); - return Utils.mapPage(inner, inner1 -> new VulnerabilityAssessmentScanRecordImpl(inner1, this.manager())); + public PagedIterable list(String resourceGroupName, String workspaceName, + String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new VulnerabilityAssessmentScanRecordImpl(inner1, this.manager())); } - public PagedIterable list( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - Context context) { - PagedIterable inner = - this - .serviceClient() - .list(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, context); - return Utils.mapPage(inner, inner1 -> new VulnerabilityAssessmentScanRecordImpl(inner1, this.manager())); + public PagedIterable list(String resourceGroupName, String workspaceName, + String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, Context context) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, + workspaceName, sqlPoolName, vulnerabilityAssessmentName, context); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new VulnerabilityAssessmentScanRecordImpl(inner1, this.manager())); } - public void initiateScan( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String scanId) { - this - .serviceClient() - .initiateScan(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId); + public void initiateScan(String resourceGroupName, String workspaceName, String sqlPoolName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, String scanId) { + this.serviceClient().initiateScan(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, + scanId); } - public void initiateScan( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String scanId, - Context context) { - this - .serviceClient() - .initiateScan(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId, context); + public void initiateScan(String resourceGroupName, String workspaceName, String sqlPoolName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, String scanId, Context context) { + this.serviceClient().initiateScan(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, + scanId, context); } - public Response exportWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String scanId, - Context context) { - Response inner = - this - .serviceClient() - .exportWithResponse( - resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId, context); + public Response exportWithResponse(String resourceGroupName, + String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, + String scanId, Context context) { + Response inner = this.serviceClient().exportWithResponse( + resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new SqlPoolVulnerabilityAssessmentScansExportImpl(inner.getValue(), this.manager())); } else { return null; } } - public SqlPoolVulnerabilityAssessmentScansExport export( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String scanId) { - SqlPoolVulnerabilityAssessmentScansExportInner inner = - this - .serviceClient() - .export(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId); + public SqlPoolVulnerabilityAssessmentScansExport export(String resourceGroupName, String workspaceName, + String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String scanId) { + SqlPoolVulnerabilityAssessmentScansExportInner inner = this.serviceClient().export(resourceGroupName, + workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId); if (inner != null) { return new SqlPoolVulnerabilityAssessmentScansExportImpl(inner, this.manager()); } else { @@ -117,39 +82,22 @@ public SqlPoolVulnerabilityAssessmentScansExport export( } } - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String scanId, - Context context) { - Response inner = - this - .serviceClient() - .getWithResponse( - resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId, context); + public Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String scanId, Context context) { + Response inner = this.serviceClient().getWithResponse(resourceGroupName, + workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new VulnerabilityAssessmentScanRecordImpl(inner.getValue(), this.manager())); } else { return null; } } - public VulnerabilityAssessmentScanRecord get( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String scanId) { - VulnerabilityAssessmentScanRecordInner inner = - this - .serviceClient() - .get(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanId); + public VulnerabilityAssessmentScanRecord get(String resourceGroupName, String workspaceName, String sqlPoolName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, String scanId) { + VulnerabilityAssessmentScanRecordInner inner = this.serviceClient().get(resourceGroupName, workspaceName, + sqlPoolName, vulnerabilityAssessmentName, scanId); if (inner != null) { return new VulnerabilityAssessmentScanRecordImpl(inner, this.manager()); } else { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentsClientImpl.java index c2399230c3e6..a37818226295 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentsClientImpl.java @@ -34,26 +34,28 @@ import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in SqlPoolVulnerabilityAssessmentsClient. */ +/** + * An instance of this class provides access to all the operations defined in SqlPoolVulnerabilityAssessmentsClient. + */ public final class SqlPoolVulnerabilityAssessmentsClientImpl implements SqlPoolVulnerabilityAssessmentsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final SqlPoolVulnerabilityAssessmentsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of SqlPoolVulnerabilityAssessmentsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ SqlPoolVulnerabilityAssessmentsClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy - .create( - SqlPoolVulnerabilityAssessmentsService.class, - client.getHttpPipeline(), - client.getSerializerAdapter()); + this.service = RestProxy.create(SqlPoolVulnerabilityAssessmentsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } @@ -64,89 +66,63 @@ public final class SqlPoolVulnerabilityAssessmentsClientImpl implements SqlPoolV @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface SqlPoolVulnerabilityAssessmentsService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("sqlPoolName") String sqlPoolName, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}") - @ExpectedResponses({200}) + Mono> list(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("sqlPoolName") String sqlPoolName, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono> get(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("sqlPoolName") String sqlPoolName, @PathParam("vulnerabilityAssessmentName") VulnerabilityAssessmentName vulnerabilityAssessmentName, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}") - @ExpectedResponses({200, 201}) + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}") + @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono> createOrUpdate(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("sqlPoolName") String sqlPoolName, @PathParam("vulnerabilityAssessmentName") VulnerabilityAssessmentName vulnerabilityAssessmentName, @BodyParam("application/json") SqlPoolVulnerabilityAssessmentInner parameters, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}") - @ExpectedResponses({200, 204}) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}") + @ExpectedResponses({ 200, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> delete( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, + Mono> delete(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("sqlPoolName") String sqlPoolName, @PathParam("vulnerabilityAssessmentName") VulnerabilityAssessmentName vulnerabilityAssessmentName, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** * Lists the vulnerability assessment policies associated with a SQL pool - * - *

Lists the vulnerability assessment policies associated with a SQL pool. - * + * + * Lists the vulnerability assessment policies associated with a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -154,22 +130,18 @@ Mono> listNext( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of the Sql pool's vulnerability assessments along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String workspaceName, String sqlPoolName) { + private Mono> listSinglePageAsync(String resourceGroupName, + String workspaceName, String sqlPoolName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -184,35 +156,18 @@ private Mono> listSinglePageA final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Lists the vulnerability assessment policies associated with a SQL pool - * - *

Lists the vulnerability assessment policies associated with a SQL pool. - * + * + * Lists the vulnerability assessment policies associated with a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -221,22 +176,18 @@ private Mono> listSinglePageA * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of the Sql pool's vulnerability assessments along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + private Mono> listSinglePageAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -252,31 +203,17 @@ private Mono> listSinglePageA final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * Lists the vulnerability assessment policies associated with a SQL pool - * - *

Lists the vulnerability assessment policies associated with a SQL pool. - * + * + * Lists the vulnerability assessment policies associated with a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -286,18 +223,17 @@ private Mono> listSinglePageA * @return a list of the Sql pool's vulnerability assessments as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( - String resourceGroupName, String workspaceName, String sqlPoolName) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName), + private PagedFlux listAsync(String resourceGroupName, String workspaceName, + String sqlPoolName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName), nextLink -> listNextSinglePageAsync(nextLink)); } /** * Lists the vulnerability assessment policies associated with a SQL pool - * - *

Lists the vulnerability assessment policies associated with a SQL pool. - * + * + * Lists the vulnerability assessment policies associated with a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -308,18 +244,17 @@ private PagedFlux listAsync( * @return a list of the Sql pool's vulnerability assessments as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName, context), + private PagedFlux listAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } /** * Lists the vulnerability assessment policies associated with a SQL pool - * - *

Lists the vulnerability assessment policies associated with a SQL pool. - * + * + * Lists the vulnerability assessment policies associated with a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -329,16 +264,16 @@ private PagedFlux listAsync( * @return a list of the Sql pool's vulnerability assessments as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName) { + public PagedIterable list(String resourceGroupName, String workspaceName, + String sqlPoolName) { return new PagedIterable<>(listAsync(resourceGroupName, workspaceName, sqlPoolName)); } /** * Lists the vulnerability assessment policies associated with a SQL pool - * - *

Lists the vulnerability assessment policies associated with a SQL pool. - * + * + * Lists the vulnerability assessment policies associated with a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -349,16 +284,16 @@ public PagedIterable list( * @return a list of the Sql pool's vulnerability assessments as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + public PagedIterable list(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context) { return new PagedIterable<>(listAsync(resourceGroupName, workspaceName, sqlPoolName, context)); } /** * Gets the Sql pool's vulnerability assessment - * - *

Gets the Sql pool's vulnerability assessment. - * + * + * Gets the Sql pool's vulnerability assessment. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -366,26 +301,19 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Sql pool's vulnerability assessment along with {@link Response} on successful completion of {@link - * Mono}. + * @return the Sql pool's vulnerability assessment along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -398,35 +326,22 @@ private Mono> getWithResponseAsync return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } if (vulnerabilityAssessmentName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter vulnerabilityAssessmentName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter vulnerabilityAssessmentName is required and cannot be null.")); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - vulnerabilityAssessmentName, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets the Sql pool's vulnerability assessment - * - *

Gets the Sql pool's vulnerability assessment. - * + * + * Gets the Sql pool's vulnerability assessment. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -435,27 +350,20 @@ private Mono> getWithResponseAsync * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Sql pool's vulnerability assessment along with {@link Response} on successful completion of {@link - * Mono}. + * @return the Sql pool's vulnerability assessment along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -468,32 +376,21 @@ private Mono> getWithResponseAsync return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } if (vulnerabilityAssessmentName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter vulnerabilityAssessmentName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter vulnerabilityAssessmentName is required and cannot be null.")); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - vulnerabilityAssessmentName, - accept, - context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, vulnerabilityAssessmentName, accept, context); } /** * Gets the Sql pool's vulnerability assessment - * - *

Gets the Sql pool's vulnerability assessment. - * + * + * Gets the Sql pool's vulnerability assessment. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -504,20 +401,17 @@ private Mono> getWithResponseAsync * @return the Sql pool's vulnerability assessment on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName) { + private Mono getAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Gets the Sql pool's vulnerability assessment - * - *

Gets the Sql pool's vulnerability assessment. - * + * + * Gets the Sql pool's vulnerability assessment. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -529,21 +423,17 @@ private Mono getAsync( * @return the Sql pool's vulnerability assessment along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - Context context) { + public Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, Context context) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, context) .block(); } /** * Gets the Sql pool's vulnerability assessment - * - *

Gets the Sql pool's vulnerability assessment. - * + * + * Gets the Sql pool's vulnerability assessment. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -554,10 +444,7 @@ public Response getWithResponse( * @return the Sql pool's vulnerability assessment. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SqlPoolVulnerabilityAssessmentInner get( - String resourceGroupName, - String workspaceName, - String sqlPoolName, + public SqlPoolVulnerabilityAssessmentInner get(String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { return getWithResponse(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, Context.NONE) .getValue(); @@ -565,9 +452,9 @@ public SqlPoolVulnerabilityAssessmentInner get( /** * Creates or updates the Sql pool vulnerability assessment - * - *

Creates or updates the Sql pool vulnerability assessment. - * + * + * Creates or updates the Sql pool vulnerability assessment. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -580,22 +467,15 @@ public SqlPoolVulnerabilityAssessmentInner get( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - SqlPoolVulnerabilityAssessmentInner parameters) { + String resourceGroupName, String workspaceName, String sqlPoolName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, SqlPoolVulnerabilityAssessmentInner parameters) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -608,10 +488,8 @@ private Mono> createOrUpdateWithRe return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } if (vulnerabilityAssessmentName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter vulnerabilityAssessmentName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter vulnerabilityAssessmentName is required and cannot be null.")); } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); @@ -621,28 +499,17 @@ private Mono> createOrUpdateWithRe final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - vulnerabilityAssessmentName, - parameters, - accept, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, + vulnerabilityAssessmentName, parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates the Sql pool vulnerability assessment - * - *

Creates or updates the Sql pool vulnerability assessment. - * + * + * Creates or updates the Sql pool vulnerability assessment. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -656,23 +523,16 @@ private Mono> createOrUpdateWithRe */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - SqlPoolVulnerabilityAssessmentInner parameters, + String resourceGroupName, String workspaceName, String sqlPoolName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, SqlPoolVulnerabilityAssessmentInner parameters, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -685,10 +545,8 @@ private Mono> createOrUpdateWithRe return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } if (vulnerabilityAssessmentName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter vulnerabilityAssessmentName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter vulnerabilityAssessmentName is required and cannot be null.")); } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); @@ -698,25 +556,15 @@ private Mono> createOrUpdateWithRe final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - vulnerabilityAssessmentName, - parameters, - accept, - context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, parameters, accept, context); } /** * Creates or updates the Sql pool vulnerability assessment - * - *

Creates or updates the Sql pool vulnerability assessment. - * + * + * Creates or updates the Sql pool vulnerability assessment. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -728,22 +576,18 @@ private Mono> createOrUpdateWithRe * @return a Sql pool vulnerability assessment on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, + private Mono createOrUpdateAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, SqlPoolVulnerabilityAssessmentInner parameters) { - return createOrUpdateWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, parameters) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + return createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, + vulnerabilityAssessmentName, parameters).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Creates or updates the Sql pool vulnerability assessment - * - *

Creates or updates the Sql pool vulnerability assessment. - * + * + * Creates or updates the Sql pool vulnerability assessment. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -756,23 +600,18 @@ private Mono createOrUpdateAsync( * @return a Sql pool vulnerability assessment along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - SqlPoolVulnerabilityAssessmentInner parameters, - Context context) { - return createOrUpdateWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, parameters, context) - .block(); + public Response createOrUpdateWithResponse(String resourceGroupName, + String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, + SqlPoolVulnerabilityAssessmentInner parameters, Context context) { + return createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, + vulnerabilityAssessmentName, parameters, context).block(); } /** * Creates or updates the Sql pool vulnerability assessment - * - *

Creates or updates the Sql pool vulnerability assessment. - * + * + * Creates or updates the Sql pool vulnerability assessment. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -784,22 +623,18 @@ public Response createOrUpdateWithResponse( * @return a Sql pool vulnerability assessment. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SqlPoolVulnerabilityAssessmentInner createOrUpdate( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, + public SqlPoolVulnerabilityAssessmentInner createOrUpdate(String resourceGroupName, String workspaceName, + String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, SqlPoolVulnerabilityAssessmentInner parameters) { - return createOrUpdateWithResponse( - resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, parameters, Context.NONE) - .getValue(); + return createOrUpdateWithResponse(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, + parameters, Context.NONE).getValue(); } /** * Removes the database's vulnerability assessment - * - *

Removes the database's vulnerability assessment. - * + * + * Removes the database's vulnerability assessment. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -810,22 +645,15 @@ public SqlPoolVulnerabilityAssessmentInner createOrUpdate( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName) { + private Mono> deleteWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -838,33 +666,22 @@ private Mono> deleteWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } if (vulnerabilityAssessmentName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter vulnerabilityAssessmentName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter vulnerabilityAssessmentName is required and cannot be null.")); } final String apiVersion = "2021-06-01"; return FluxUtil .withContext( - context -> - service - .delete( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - vulnerabilityAssessmentName, - context)) + context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Removes the database's vulnerability assessment - * - *

Removes the database's vulnerability assessment. - * + * + * Removes the database's vulnerability assessment. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -876,23 +693,15 @@ private Mono> deleteWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - Context context) { + private Mono> deleteWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -905,30 +714,20 @@ private Mono> deleteWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); } if (vulnerabilityAssessmentName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter vulnerabilityAssessmentName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter vulnerabilityAssessmentName is required and cannot be null.")); } final String apiVersion = "2021-06-01"; context = this.client.mergeContext(context); - return service - .delete( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - vulnerabilityAssessmentName, - context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, vulnerabilityAssessmentName, context); } /** * Removes the database's vulnerability assessment - * - *

Removes the database's vulnerability assessment. - * + * + * Removes the database's vulnerability assessment. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -939,10 +738,7 @@ private Mono> deleteWithResponseAsync( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, + private Mono deleteAsync(String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { return deleteWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName) .flatMap(ignored -> Mono.empty()); @@ -950,9 +746,9 @@ private Mono deleteAsync( /** * Removes the database's vulnerability assessment - * - *

Removes the database's vulnerability assessment. - * + * + * Removes the database's vulnerability assessment. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -964,22 +760,17 @@ private Mono deleteAsync( * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - Context context) { - return deleteWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, context) - .block(); + public Response deleteWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, Context context) { + return deleteWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, + context).block(); } /** * Removes the database's vulnerability assessment - * - *

Removes the database's vulnerability assessment. - * + * + * Removes the database's vulnerability assessment. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -989,24 +780,22 @@ public Response deleteWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete( - String resourceGroupName, - String workspaceName, - String sqlPoolName, + public void delete(String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { deleteWithResponse(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, Context.NONE); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of the Sql pool's vulnerability assessments along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -1014,62 +803,43 @@ private Mono> listNextSingleP return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of the Sql pool's vulnerability assessments along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync( - String nextLink, Context context) { + private Mono> listNextSinglePageAsync(String nextLink, + Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentsImpl.java index fbb907fe76dd..25e6028daec9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolVulnerabilityAssessmentsImpl.java @@ -22,55 +22,44 @@ public final class SqlPoolVulnerabilityAssessmentsImpl implements SqlPoolVulnera private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public SqlPoolVulnerabilityAssessmentsImpl( - SqlPoolVulnerabilityAssessmentsClient innerClient, + public SqlPoolVulnerabilityAssessmentsImpl(SqlPoolVulnerabilityAssessmentsClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName) { - PagedIterable inner = - this.serviceClient().list(resourceGroupName, workspaceName, sqlPoolName); - return Utils.mapPage(inner, inner1 -> new SqlPoolVulnerabilityAssessmentImpl(inner1, this.manager())); + public PagedIterable list(String resourceGroupName, String workspaceName, + String sqlPoolName) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, workspaceName, sqlPoolName); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new SqlPoolVulnerabilityAssessmentImpl(inner1, this.manager())); } - public PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { - PagedIterable inner = - this.serviceClient().list(resourceGroupName, workspaceName, sqlPoolName, context); - return Utils.mapPage(inner, inner1 -> new SqlPoolVulnerabilityAssessmentImpl(inner1, this.manager())); + public PagedIterable list(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, workspaceName, sqlPoolName, context); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new SqlPoolVulnerabilityAssessmentImpl(inner1, this.manager())); } - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - Context context) { - Response inner = - this - .serviceClient() - .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, context); + public Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, Context context) { + Response inner = this.serviceClient().getWithResponse(resourceGroupName, + workspaceName, sqlPoolName, vulnerabilityAssessmentName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new SqlPoolVulnerabilityAssessmentImpl(inner.getValue(), this.manager())); } else { return null; } } - public SqlPoolVulnerabilityAssessment get( - String resourceGroupName, - String workspaceName, - String sqlPoolName, + public SqlPoolVulnerabilityAssessment get(String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { - SqlPoolVulnerabilityAssessmentInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName); + SqlPoolVulnerabilityAssessmentInner inner + = this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName); if (inner != null) { return new SqlPoolVulnerabilityAssessmentImpl(inner, this.manager()); } else { @@ -78,181 +67,128 @@ public SqlPoolVulnerabilityAssessment get( } } - public Response deleteWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - Context context) { - return this - .serviceClient() - .deleteWithResponse(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, context); + public Response deleteWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, Context context) { + return this.serviceClient().deleteWithResponse(resourceGroupName, workspaceName, sqlPoolName, + vulnerabilityAssessmentName, context); } - public void delete( - String resourceGroupName, - String workspaceName, - String sqlPoolName, + public void delete(String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { this.serviceClient().delete(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName); } public SqlPoolVulnerabilityAssessment getById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); + String sqlPoolName = ResourceManagerUtils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } - String vulnerabilityAssessmentNameLocal = Utils.getValueFromIdByName(id, "vulnerabilityAssessments"); + String vulnerabilityAssessmentNameLocal + = ResourceManagerUtils.getValueFromIdByName(id, "vulnerabilityAssessments"); if (vulnerabilityAssessmentNameLocal == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'vulnerabilityAssessments'.", - id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String + .format("The resource ID '%s' is not valid. Missing path segment 'vulnerabilityAssessments'.", id))); } - VulnerabilityAssessmentName vulnerabilityAssessmentName = - VulnerabilityAssessmentName.fromString(vulnerabilityAssessmentNameLocal); + VulnerabilityAssessmentName vulnerabilityAssessmentName + = VulnerabilityAssessmentName.fromString(vulnerabilityAssessmentNameLocal); return this .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, Context.NONE) .getValue(); } public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); + String sqlPoolName = ResourceManagerUtils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } - String vulnerabilityAssessmentNameLocal = Utils.getValueFromIdByName(id, "vulnerabilityAssessments"); + String vulnerabilityAssessmentNameLocal + = ResourceManagerUtils.getValueFromIdByName(id, "vulnerabilityAssessments"); if (vulnerabilityAssessmentNameLocal == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'vulnerabilityAssessments'.", - id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String + .format("The resource ID '%s' is not valid. Missing path segment 'vulnerabilityAssessments'.", id))); } - VulnerabilityAssessmentName vulnerabilityAssessmentName = - VulnerabilityAssessmentName.fromString(vulnerabilityAssessmentNameLocal); - return this - .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, context); + VulnerabilityAssessmentName vulnerabilityAssessmentName + = VulnerabilityAssessmentName.fromString(vulnerabilityAssessmentNameLocal); + return this.getWithResponse(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, + context); } public void deleteById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); + String sqlPoolName = ResourceManagerUtils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } - String vulnerabilityAssessmentNameLocal = Utils.getValueFromIdByName(id, "vulnerabilityAssessments"); + String vulnerabilityAssessmentNameLocal + = ResourceManagerUtils.getValueFromIdByName(id, "vulnerabilityAssessments"); if (vulnerabilityAssessmentNameLocal == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'vulnerabilityAssessments'.", - id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String + .format("The resource ID '%s' is not valid. Missing path segment 'vulnerabilityAssessments'.", id))); } - VulnerabilityAssessmentName vulnerabilityAssessmentName = - VulnerabilityAssessmentName.fromString(vulnerabilityAssessmentNameLocal); - this - .deleteWithResponse( - resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, Context.NONE); + VulnerabilityAssessmentName vulnerabilityAssessmentName + = VulnerabilityAssessmentName.fromString(vulnerabilityAssessmentNameLocal); + this.deleteWithResponse(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, + Context.NONE); } public Response deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); + String sqlPoolName = ResourceManagerUtils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } - String vulnerabilityAssessmentNameLocal = Utils.getValueFromIdByName(id, "vulnerabilityAssessments"); + String vulnerabilityAssessmentNameLocal + = ResourceManagerUtils.getValueFromIdByName(id, "vulnerabilityAssessments"); if (vulnerabilityAssessmentNameLocal == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'vulnerabilityAssessments'.", - id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String + .format("The resource ID '%s' is not valid. Missing path segment 'vulnerabilityAssessments'.", id))); } - VulnerabilityAssessmentName vulnerabilityAssessmentName = - VulnerabilityAssessmentName.fromString(vulnerabilityAssessmentNameLocal); - return this - .deleteWithResponse(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, context); + VulnerabilityAssessmentName vulnerabilityAssessmentName + = VulnerabilityAssessmentName.fromString(vulnerabilityAssessmentNameLocal); + return this.deleteWithResponse(resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, + context); } private SqlPoolVulnerabilityAssessmentsClient serviceClient() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadClassifiersClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadClassifiersClientImpl.java index a9198f11742a..120427e1016d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadClassifiersClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadClassifiersClientImpl.java @@ -38,24 +38,28 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in SqlPoolWorkloadClassifiersClient. */ +/** + * An instance of this class provides access to all the operations defined in SqlPoolWorkloadClassifiersClient. + */ public final class SqlPoolWorkloadClassifiersClientImpl implements SqlPoolWorkloadClassifiersClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final SqlPoolWorkloadClassifiersService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of SqlPoolWorkloadClassifiersClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ SqlPoolWorkloadClassifiersClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy - .create( - SqlPoolWorkloadClassifiersService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service = RestProxy.create(SqlPoolWorkloadClassifiersService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } @@ -66,96 +70,63 @@ public final class SqlPoolWorkloadClassifiersClientImpl implements SqlPoolWorklo @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface SqlPoolWorkloadClassifiersService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/workloadGroups/{workloadGroupName}/workloadClassifiers" - + "/{workloadClassifierName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/workloadGroups/{workloadGroupName}/workloadClassifiers/{workloadClassifierName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("sqlPoolName") String sqlPoolName, - @PathParam("workloadGroupName") String workloadGroupName, - @PathParam("workloadClassifierName") String workloadClassifierName, - @HeaderParam("Accept") String accept, + Mono> get(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("sqlPoolName") String sqlPoolName, @PathParam("workloadGroupName") String workloadGroupName, + @PathParam("workloadClassifierName") String workloadClassifierName, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/workloadGroups/{workloadGroupName}/workloadClassifiers" - + "/{workloadClassifierName}") - @ExpectedResponses({200, 201, 202}) + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/workloadGroups/{workloadGroupName}/workloadClassifiers/{workloadClassifierName}") + @ExpectedResponses({ 200, 201, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("sqlPoolName") String sqlPoolName, - @PathParam("workloadGroupName") String workloadGroupName, + Mono>> createOrUpdate(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("sqlPoolName") String sqlPoolName, @PathParam("workloadGroupName") String workloadGroupName, @PathParam("workloadClassifierName") String workloadClassifierName, - @BodyParam("application/json") WorkloadClassifierInner parameters, - @HeaderParam("Accept") String accept, + @BodyParam("application/json") WorkloadClassifierInner parameters, @HeaderParam("Accept") String accept, Context context); - @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/workloadGroups/{workloadGroupName}/workloadClassifiers" - + "/{workloadClassifierName}") - @ExpectedResponses({200, 202, 204}) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/workloadGroups/{workloadGroupName}/workloadClassifiers/{workloadClassifierName}") + @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("sqlPoolName") String sqlPoolName, - @PathParam("workloadGroupName") String workloadGroupName, - @PathParam("workloadClassifierName") String workloadClassifierName, - Context context); + Mono>> delete(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("sqlPoolName") String sqlPoolName, @PathParam("workloadGroupName") String workloadGroupName, + @PathParam("workloadClassifierName") String workloadClassifierName, Context context); - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/workloadGroups/{workloadGroupName}/workloadClassifiers") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/workloadGroups/{workloadGroupName}/workloadClassifiers") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("sqlPoolName") String sqlPoolName, - @PathParam("workloadGroupName") String workloadGroupName, - @HeaderParam("Accept") String accept, - Context context); + Mono> list(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("sqlPoolName") String sqlPoolName, @PathParam("workloadGroupName") String workloadGroupName, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** * Get workload classifier - * - *

Get a workload classifier of Sql pool's workload group. - * + * + * Get a workload classifier of Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -165,26 +136,18 @@ Mono> listNext( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a workload classifier of Sql pool's workload group along with {@link Response} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, - String workloadClassifierName) { + private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String workloadGroupName, String workloadClassifierName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -201,35 +164,23 @@ private Mono> getWithResponseAsync( .error(new IllegalArgumentException("Parameter workloadGroupName is required and cannot be null.")); } if (workloadClassifierName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter workloadClassifierName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter workloadClassifierName is required and cannot be null.")); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - workloadGroupName, - workloadClassifierName, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, accept, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get workload classifier - * - *

Get a workload classifier of Sql pool's workload group. - * + * + * Get a workload classifier of Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -240,27 +191,18 @@ private Mono> getWithResponseAsync( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a workload classifier of Sql pool's workload group along with {@link Response} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, - String workloadClassifierName, - Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String workloadGroupName, String workloadClassifierName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -277,32 +219,21 @@ private Mono> getWithResponseAsync( .error(new IllegalArgumentException("Parameter workloadGroupName is required and cannot be null.")); } if (workloadClassifierName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter workloadClassifierName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter workloadClassifierName is required and cannot be null.")); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - workloadGroupName, - workloadClassifierName, - accept, - context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, accept, context); } /** * Get workload classifier - * - *

Get a workload classifier of Sql pool's workload group. - * + * + * Get a workload classifier of Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -314,22 +245,17 @@ private Mono> getWithResponseAsync( * @return a workload classifier of Sql pool's workload group on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, - String workloadClassifierName) { - return getWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + private Mono getAsync(String resourceGroupName, String workspaceName, String sqlPoolName, + String workloadGroupName, String workloadClassifierName) { + return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, + workloadClassifierName).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Get workload classifier - * - *

Get a workload classifier of Sql pool's workload group. - * + * + * Get a workload classifier of Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -342,23 +268,17 @@ private Mono getAsync( * @return a workload classifier of Sql pool's workload group along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, - String workloadClassifierName, - Context context) { - return getWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, context) - .block(); + public Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, String workloadGroupName, String workloadClassifierName, Context context) { + return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, + workloadClassifierName, context).block(); } /** * Get workload classifier - * - *

Get a workload classifier of Sql pool's workload group. - * + * + * Get a workload classifier of Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -370,22 +290,17 @@ public Response getWithResponse( * @return a workload classifier of Sql pool's workload group. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkloadClassifierInner get( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, - String workloadClassifierName) { - return getWithResponse( - resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, Context.NONE) - .getValue(); + public WorkloadClassifierInner get(String resourceGroupName, String workspaceName, String sqlPoolName, + String workloadGroupName, String workloadClassifierName) { + return getWithResponse(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, + Context.NONE).getValue(); } /** * Create Or Update workload classifier - * - *

Create Or Update workload classifier for a Sql pool's workload group. - * + * + * Create Or Update workload classifier for a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -396,27 +311,19 @@ public WorkloadClassifierInner get( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return workload classifier operations for a data warehouse along with {@link Response} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, - String workloadClassifierName, + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, String workloadGroupName, String workloadClassifierName, WorkloadClassifierInner parameters) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -433,9 +340,8 @@ private Mono>> createOrUpdateWithResponseAsync( .error(new IllegalArgumentException("Parameter workloadGroupName is required and cannot be null.")); } if (workloadClassifierName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter workloadClassifierName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter workloadClassifierName is required and cannot be null.")); } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); @@ -445,29 +351,17 @@ private Mono>> createOrUpdateWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - workloadGroupName, - workloadClassifierName, - parameters, - accept, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, + workloadClassifierName, parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Create Or Update workload classifier - * - *

Create Or Update workload classifier for a Sql pool's workload group. - * + * + * Create Or Update workload classifier for a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -479,28 +373,19 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return workload classifier operations for a data warehouse along with {@link Response} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, - String workloadClassifierName, - WorkloadClassifierInner parameters, - Context context) { + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, String workloadGroupName, String workloadClassifierName, + WorkloadClassifierInner parameters, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -517,9 +402,8 @@ private Mono>> createOrUpdateWithResponseAsync( .error(new IllegalArgumentException("Parameter workloadGroupName is required and cannot be null.")); } if (workloadClassifierName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter workloadClassifierName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter workloadClassifierName is required and cannot be null.")); } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); @@ -529,26 +413,16 @@ private Mono>> createOrUpdateWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - workloadGroupName, - workloadClassifierName, - parameters, - accept, - context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, parameters, + accept, context); } /** * Create Or Update workload classifier - * - *

Create Or Update workload classifier for a Sql pool's workload group. - * + * + * Create Or Update workload classifier for a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -562,30 +436,20 @@ private Mono>> createOrUpdateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, WorkloadClassifierInner> beginCreateOrUpdateAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, - String workloadClassifierName, - WorkloadClassifierInner parameters) { - Mono>> mono = - createOrUpdateWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, parameters); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - WorkloadClassifierInner.class, - WorkloadClassifierInner.class, - this.client.getContext()); + String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, + String workloadClassifierName, WorkloadClassifierInner parameters) { + Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, + sqlPoolName, workloadGroupName, workloadClassifierName, parameters); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), WorkloadClassifierInner.class, WorkloadClassifierInner.class, + this.client.getContext()); } /** * Create Or Update workload classifier - * - *

Create Or Update workload classifier for a Sql pool's workload group. - * + * + * Create Or Update workload classifier for a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -600,38 +464,20 @@ private PollerFlux, WorkloadClassifierInner> */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, WorkloadClassifierInner> beginCreateOrUpdateAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, - String workloadClassifierName, - WorkloadClassifierInner parameters, - Context context) { + String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, + String workloadClassifierName, WorkloadClassifierInner parameters, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - createOrUpdateWithResponseAsync( - resourceGroupName, - workspaceName, - sqlPoolName, - workloadGroupName, - workloadClassifierName, - parameters, - context); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - WorkloadClassifierInner.class, - WorkloadClassifierInner.class, - context); + Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, + sqlPoolName, workloadGroupName, workloadClassifierName, parameters, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), WorkloadClassifierInner.class, WorkloadClassifierInner.class, context); } /** * Create Or Update workload classifier - * - *

Create Or Update workload classifier for a Sql pool's workload group. - * + * + * Create Or Update workload classifier for a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -645,23 +491,17 @@ private PollerFlux, WorkloadClassifierInner> */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, WorkloadClassifierInner> beginCreateOrUpdate( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, - String workloadClassifierName, - WorkloadClassifierInner parameters) { - return this - .beginCreateOrUpdateAsync( - resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, parameters) - .getSyncPoller(); + String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, + String workloadClassifierName, WorkloadClassifierInner parameters) { + return this.beginCreateOrUpdateAsync(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, + workloadClassifierName, parameters).getSyncPoller(); } /** * Create Or Update workload classifier - * - *

Create Or Update workload classifier for a Sql pool's workload group. - * + * + * Create Or Update workload classifier for a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -676,30 +516,17 @@ public SyncPoller, WorkloadClassifierInner> */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, WorkloadClassifierInner> beginCreateOrUpdate( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, - String workloadClassifierName, - WorkloadClassifierInner parameters, - Context context) { - return this - .beginCreateOrUpdateAsync( - resourceGroupName, - workspaceName, - sqlPoolName, - workloadGroupName, - workloadClassifierName, - parameters, - context) - .getSyncPoller(); + String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, + String workloadClassifierName, WorkloadClassifierInner parameters, Context context) { + return this.beginCreateOrUpdateAsync(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, + workloadClassifierName, parameters, context).getSyncPoller(); } /** * Create Or Update workload classifier - * - *

Create Or Update workload classifier for a Sql pool's workload group. - * + * + * Create Or Update workload classifier for a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -712,24 +539,18 @@ public SyncPoller, WorkloadClassifierInner> * @return workload classifier operations for a data warehouse on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, - String workloadClassifierName, + private Mono createOrUpdateAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String workloadGroupName, String workloadClassifierName, WorkloadClassifierInner parameters) { - return beginCreateOrUpdateAsync( - resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, parameters) - .last() - .flatMap(this.client::getLroFinalResultOrError); + return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, + workloadClassifierName, parameters).last().flatMap(this.client::getLroFinalResultOrError); } /** * Create Or Update workload classifier - * - *

Create Or Update workload classifier for a Sql pool's workload group. - * + * + * Create Or Update workload classifier for a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -743,31 +564,18 @@ private Mono createOrUpdateAsync( * @return workload classifier operations for a data warehouse on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, - String workloadClassifierName, - WorkloadClassifierInner parameters, + private Mono createOrUpdateAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String workloadGroupName, String workloadClassifierName, WorkloadClassifierInner parameters, Context context) { - return beginCreateOrUpdateAsync( - resourceGroupName, - workspaceName, - sqlPoolName, - workloadGroupName, - workloadClassifierName, - parameters, - context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, + workloadClassifierName, parameters, context).last().flatMap(this.client::getLroFinalResultOrError); } /** * Create Or Update workload classifier - * - *

Create Or Update workload classifier for a Sql pool's workload group. - * + * + * Create Or Update workload classifier for a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -780,23 +588,17 @@ private Mono createOrUpdateAsync( * @return workload classifier operations for a data warehouse. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkloadClassifierInner createOrUpdate( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, - String workloadClassifierName, - WorkloadClassifierInner parameters) { - return createOrUpdateAsync( - resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, parameters) - .block(); + public WorkloadClassifierInner createOrUpdate(String resourceGroupName, String workspaceName, String sqlPoolName, + String workloadGroupName, String workloadClassifierName, WorkloadClassifierInner parameters) { + return createOrUpdateAsync(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, + workloadClassifierName, parameters).block(); } /** * Create Or Update workload classifier - * - *

Create Or Update workload classifier for a Sql pool's workload group. - * + * + * Create Or Update workload classifier for a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -810,30 +612,17 @@ public WorkloadClassifierInner createOrUpdate( * @return workload classifier operations for a data warehouse. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkloadClassifierInner createOrUpdate( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, - String workloadClassifierName, - WorkloadClassifierInner parameters, - Context context) { - return createOrUpdateAsync( - resourceGroupName, - workspaceName, - sqlPoolName, - workloadGroupName, - workloadClassifierName, - parameters, - context) - .block(); + public WorkloadClassifierInner createOrUpdate(String resourceGroupName, String workspaceName, String sqlPoolName, + String workloadGroupName, String workloadClassifierName, WorkloadClassifierInner parameters, Context context) { + return createOrUpdateAsync(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, + workloadClassifierName, parameters, context).block(); } /** * Remove workload classifier - * - *

Remove workload classifier of a Sql pool's workload group. - * + * + * Remove workload classifier of a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -845,23 +634,15 @@ public WorkloadClassifierInner createOrUpdate( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, - String workloadClassifierName) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String workloadGroupName, String workloadClassifierName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -878,33 +659,22 @@ private Mono>> deleteWithResponseAsync( .error(new IllegalArgumentException("Parameter workloadGroupName is required and cannot be null.")); } if (workloadClassifierName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter workloadClassifierName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter workloadClassifierName is required and cannot be null.")); } final String apiVersion = "2021-06-01"; return FluxUtil .withContext( - context -> - service - .delete( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - workloadGroupName, - workloadClassifierName, - context)) + context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Remove workload classifier - * - *

Remove workload classifier of a Sql pool's workload group. - * + * + * Remove workload classifier of a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -917,24 +687,15 @@ private Mono>> deleteWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, - String workloadClassifierName, - Context context) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String workloadGroupName, String workloadClassifierName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -951,30 +712,20 @@ private Mono>> deleteWithResponseAsync( .error(new IllegalArgumentException("Parameter workloadGroupName is required and cannot be null.")); } if (workloadClassifierName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter workloadClassifierName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter workloadClassifierName is required and cannot be null.")); } final String apiVersion = "2021-06-01"; context = this.client.mergeContext(context); - return service - .delete( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - workloadGroupName, - workloadClassifierName, - context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, context); } /** * Remove workload classifier - * - *

Remove workload classifier of a Sql pool's workload group. - * + * + * Remove workload classifier of a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -986,26 +737,19 @@ private Mono>> deleteWithResponseAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, - String workloadClassifierName) { - Mono>> mono = - deleteWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String workloadGroupName, String workloadClassifierName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, + workloadGroupName, workloadClassifierName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Remove workload classifier - * - *

Remove workload classifier of a Sql pool's workload group. - * + * + * Remove workload classifier of a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1018,27 +762,20 @@ private PollerFlux, Void> beginDeleteAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, - String workloadClassifierName, - Context context) { + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String workloadGroupName, String workloadClassifierName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - deleteWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + Mono>> mono = deleteWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, + workloadGroupName, workloadClassifierName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * Remove workload classifier - * - *

Remove workload classifier of a Sql pool's workload group. - * + * + * Remove workload classifier of a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1050,12 +787,8 @@ private PollerFlux, Void> beginDeleteAsync( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, - String workloadClassifierName) { + public SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, + String sqlPoolName, String workloadGroupName, String workloadClassifierName) { return this .beginDeleteAsync(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName) .getSyncPoller(); @@ -1063,9 +796,9 @@ public SyncPoller, Void> beginDelete( /** * Remove workload classifier - * - *

Remove workload classifier of a Sql pool's workload group. - * + * + * Remove workload classifier of a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1078,24 +811,17 @@ public SyncPoller, Void> beginDelete( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, - String workloadClassifierName, - Context context) { - return this - .beginDeleteAsync( - resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, context) - .getSyncPoller(); + public SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, + String sqlPoolName, String workloadGroupName, String workloadClassifierName, Context context) { + return this.beginDeleteAsync(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, + workloadClassifierName, context).getSyncPoller(); } /** * Remove workload classifier - * - *

Remove workload classifier of a Sql pool's workload group. - * + * + * Remove workload classifier of a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1107,23 +833,17 @@ public SyncPoller, Void> beginDelete( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, - String workloadClassifierName) { - return beginDeleteAsync( - resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName) - .last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono deleteAsync(String resourceGroupName, String workspaceName, String sqlPoolName, + String workloadGroupName, String workloadClassifierName) { + return beginDeleteAsync(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, + workloadClassifierName).last().flatMap(this.client::getLroFinalResultOrError); } /** * Remove workload classifier - * - *

Remove workload classifier of a Sql pool's workload group. - * + * + * Remove workload classifier of a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1136,24 +856,17 @@ private Mono deleteAsync( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, - String workloadClassifierName, - Context context) { - return beginDeleteAsync( - resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono deleteAsync(String resourceGroupName, String workspaceName, String sqlPoolName, + String workloadGroupName, String workloadClassifierName, Context context) { + return beginDeleteAsync(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, + workloadClassifierName, context).last().flatMap(this.client::getLroFinalResultOrError); } /** * Remove workload classifier - * - *

Remove workload classifier of a Sql pool's workload group. - * + * + * Remove workload classifier of a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1164,20 +877,16 @@ private Mono deleteAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, + public void delete(String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, String workloadClassifierName) { deleteAsync(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName).block(); } /** * Remove workload classifier - * - *

Remove workload classifier of a Sql pool's workload group. - * + * + * Remove workload classifier of a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1189,22 +898,17 @@ public void delete( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, - String workloadClassifierName, - Context context) { + public void delete(String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, + String workloadClassifierName, Context context) { deleteAsync(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, context) .block(); } /** * Sql pool's workload classifier - * - *

Get list of Sql pool's workload classifier for workload groups. - * + * + * Get list of Sql pool's workload classifier for workload groups. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1213,22 +917,18 @@ public void delete( * @throws 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 Sql pool's workload classifier for workload groups along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName) { + private Mono> listSinglePageAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, String workloadGroupName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1247,36 +947,18 @@ private Mono> listSinglePageAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - workloadGroupName, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Sql pool's workload classifier - * - *

Get list of Sql pool's workload classifier for workload groups. - * + * + * Get list of Sql pool's workload classifier for workload groups. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1286,22 +968,18 @@ private Mono> listSinglePageAsync( * @throws 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 Sql pool's workload classifier for workload groups along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, Context context) { + private Mono> listSinglePageAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, String workloadGroupName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1321,32 +999,17 @@ private Mono> listSinglePageAsync( final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - workloadGroupName, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, workloadGroupName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * Sql pool's workload classifier - * - *

Get list of Sql pool's workload classifier for workload groups. - * + * + * Get list of Sql pool's workload classifier for workload groups. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1357,8 +1020,8 @@ private Mono> listSinglePageAsync( * @return list of Sql pool's workload classifier for workload groups as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName) { + private PagedFlux listAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String workloadGroupName) { return new PagedFlux<>( () -> listSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName), nextLink -> listNextSinglePageAsync(nextLink)); @@ -1366,9 +1029,9 @@ private PagedFlux listAsync( /** * Sql pool's workload classifier - * - *

Get list of Sql pool's workload classifier for workload groups. - * + * + * Get list of Sql pool's workload classifier for workload groups. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1380,8 +1043,8 @@ private PagedFlux listAsync( * @return list of Sql pool's workload classifier for workload groups as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, Context context) { + private PagedFlux listAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String workloadGroupName, Context context) { return new PagedFlux<>( () -> listSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, context), nextLink -> listNextSinglePageAsync(nextLink, context)); @@ -1389,9 +1052,9 @@ private PagedFlux listAsync( /** * Sql pool's workload classifier - * - *

Get list of Sql pool's workload classifier for workload groups. - * + * + * Get list of Sql pool's workload classifier for workload groups. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1399,20 +1062,20 @@ private PagedFlux listAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Sql pool's workload classifier for workload groups as paginated response with {@link - * PagedIterable}. + * @return list of Sql pool's workload classifier for workload groups as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName) { + public PagedIterable list(String resourceGroupName, String workspaceName, + String sqlPoolName, String workloadGroupName) { return new PagedIterable<>(listAsync(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName)); } /** * Sql pool's workload classifier - * - *

Get list of Sql pool's workload classifier for workload groups. - * + * + * Get list of Sql pool's workload classifier for workload groups. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1421,26 +1084,27 @@ public PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Sql pool's workload classifier for workload groups as paginated response with {@link - * PagedIterable}. + * @return list of Sql pool's workload classifier for workload groups as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, Context context) { + public PagedIterable list(String resourceGroupName, String workspaceName, + String sqlPoolName, String workloadGroupName, Context context) { return new PagedIterable<>( listAsync(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, context)); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of workload classifiers for a workload group along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -1448,37 +1112,28 @@ private Mono> listNextSinglePageAsync(Str return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of workload classifiers for a workload group along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { @@ -1486,23 +1141,13 @@ private Mono> listNextSinglePageAsync(Str return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadClassifiersImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadClassifiersImpl.java index 2ad41d58698c..db915b75c6d2 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadClassifiersImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadClassifiersImpl.java @@ -21,45 +21,28 @@ public final class SqlPoolWorkloadClassifiersImpl implements SqlPoolWorkloadClas private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public SqlPoolWorkloadClassifiersImpl( - SqlPoolWorkloadClassifiersClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + public SqlPoolWorkloadClassifiersImpl(SqlPoolWorkloadClassifiersClient innerClient, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, - String workloadClassifierName, - Context context) { - Response inner = - this - .serviceClient() - .getWithResponse( - resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, context); + public Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, String workloadGroupName, String workloadClassifierName, Context context) { + Response inner = this.serviceClient().getWithResponse(resourceGroupName, workspaceName, + sqlPoolName, workloadGroupName, workloadClassifierName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new WorkloadClassifierImpl(inner.getValue(), this.manager())); } else { return null; } } - public WorkloadClassifier get( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, - String workloadClassifierName) { - WorkloadClassifierInner inner = - this - .serviceClient() - .get(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName); + public WorkloadClassifier get(String resourceGroupName, String workspaceName, String sqlPoolName, + String workloadGroupName, String workloadClassifierName) { + WorkloadClassifierInner inner = this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, + workloadGroupName, workloadClassifierName); if (inner != null) { return new WorkloadClassifierImpl(inner, this.manager()); } else { @@ -67,218 +50,147 @@ public WorkloadClassifier get( } } - public void delete( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, + public void delete(String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, String workloadClassifierName) { - this - .serviceClient() - .delete(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName); + this.serviceClient().delete(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, + workloadClassifierName); } - public void delete( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, - String workloadClassifierName, - Context context) { - this - .serviceClient() - .delete(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, context); + public void delete(String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, + String workloadClassifierName, Context context) { + this.serviceClient().delete(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, + workloadClassifierName, context); } - public PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName) { - PagedIterable inner = - this.serviceClient().list(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName); - return Utils.mapPage(inner, inner1 -> new WorkloadClassifierImpl(inner1, this.manager())); + public PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName, + String workloadGroupName) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkloadClassifierImpl(inner1, this.manager())); } - public PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, Context context) { - PagedIterable inner = - this.serviceClient().list(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, context); - return Utils.mapPage(inner, inner1 -> new WorkloadClassifierImpl(inner1, this.manager())); + public PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName, + String workloadGroupName, Context context) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkloadClassifierImpl(inner1, this.manager())); } public WorkloadClassifier getById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); + String sqlPoolName = ResourceManagerUtils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } - String workloadGroupName = Utils.getValueFromIdByName(id, "workloadGroups"); + String workloadGroupName = ResourceManagerUtils.getValueFromIdByName(id, "workloadGroups"); if (workloadGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'workloadGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workloadGroups'.", id))); } - String workloadClassifierName = Utils.getValueFromIdByName(id, "workloadClassifiers"); + String workloadClassifierName = ResourceManagerUtils.getValueFromIdByName(id, "workloadClassifiers"); if (workloadClassifierName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'workloadClassifiers'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workloadClassifiers'.", id))); } - return this - .getWithResponse( - resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, Context.NONE) - .getValue(); + return this.getWithResponse(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, + workloadClassifierName, Context.NONE).getValue(); } public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); + String sqlPoolName = ResourceManagerUtils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } - String workloadGroupName = Utils.getValueFromIdByName(id, "workloadGroups"); + String workloadGroupName = ResourceManagerUtils.getValueFromIdByName(id, "workloadGroups"); if (workloadGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'workloadGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workloadGroups'.", id))); } - String workloadClassifierName = Utils.getValueFromIdByName(id, "workloadClassifiers"); + String workloadClassifierName = ResourceManagerUtils.getValueFromIdByName(id, "workloadClassifiers"); if (workloadClassifierName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'workloadClassifiers'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workloadClassifiers'.", id))); } - return this - .getWithResponse( - resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, context); + return this.getWithResponse(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, + workloadClassifierName, context); } public void deleteById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); + String sqlPoolName = ResourceManagerUtils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } - String workloadGroupName = Utils.getValueFromIdByName(id, "workloadGroups"); + String workloadGroupName = ResourceManagerUtils.getValueFromIdByName(id, "workloadGroups"); if (workloadGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'workloadGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workloadGroups'.", id))); } - String workloadClassifierName = Utils.getValueFromIdByName(id, "workloadClassifiers"); + String workloadClassifierName = ResourceManagerUtils.getValueFromIdByName(id, "workloadClassifiers"); if (workloadClassifierName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'workloadClassifiers'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workloadClassifiers'.", id))); } - this - .delete( - resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, Context.NONE); + this.delete(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, + Context.NONE); } public void deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); + String sqlPoolName = ResourceManagerUtils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } - String workloadGroupName = Utils.getValueFromIdByName(id, "workloadGroups"); + String workloadGroupName = ResourceManagerUtils.getValueFromIdByName(id, "workloadGroups"); if (workloadGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'workloadGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workloadGroups'.", id))); } - String workloadClassifierName = Utils.getValueFromIdByName(id, "workloadClassifiers"); + String workloadClassifierName = ResourceManagerUtils.getValueFromIdByName(id, "workloadClassifiers"); if (workloadClassifierName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'workloadClassifiers'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workloadClassifiers'.", id))); } this.delete(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadGroupsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadGroupsClientImpl.java index 101ee9a592fa..a494c3d33f10 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadGroupsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadGroupsClientImpl.java @@ -38,23 +38,28 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in SqlPoolWorkloadGroupsClient. */ +/** + * An instance of this class provides access to all the operations defined in SqlPoolWorkloadGroupsClient. + */ public final class SqlPoolWorkloadGroupsClientImpl implements SqlPoolWorkloadGroupsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final SqlPoolWorkloadGroupsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of SqlPoolWorkloadGroupsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ SqlPoolWorkloadGroupsClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy - .create(SqlPoolWorkloadGroupsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service = RestProxy.create(SqlPoolWorkloadGroupsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } @@ -65,89 +70,59 @@ public final class SqlPoolWorkloadGroupsClientImpl implements SqlPoolWorkloadGro @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface SqlPoolWorkloadGroupsService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/workloadGroups/{workloadGroupName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/workloadGroups/{workloadGroupName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("sqlPoolName") String sqlPoolName, - @PathParam("workloadGroupName") String workloadGroupName, - @HeaderParam("Accept") String accept, - Context context); + Mono> get(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("sqlPoolName") String sqlPoolName, @PathParam("workloadGroupName") String workloadGroupName, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/workloadGroups/{workloadGroupName}") - @ExpectedResponses({200, 201, 202}) + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/workloadGroups/{workloadGroupName}") + @ExpectedResponses({ 200, 201, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("sqlPoolName") String sqlPoolName, - @PathParam("workloadGroupName") String workloadGroupName, - @BodyParam("application/json") WorkloadGroupInner parameters, - @HeaderParam("Accept") String accept, + Mono>> createOrUpdate(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("sqlPoolName") String sqlPoolName, @PathParam("workloadGroupName") String workloadGroupName, + @BodyParam("application/json") WorkloadGroupInner parameters, @HeaderParam("Accept") String accept, Context context); - @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/workloadGroups/{workloadGroupName}") - @ExpectedResponses({200, 202, 204}) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/workloadGroups/{workloadGroupName}") + @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("sqlPoolName") String sqlPoolName, - @PathParam("workloadGroupName") String workloadGroupName, + Mono>> delete(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("sqlPoolName") String sqlPoolName, @PathParam("workloadGroupName") String workloadGroupName, Context context); - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/workloadGroups") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/workloadGroups") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("sqlPoolName") String sqlPoolName, - @HeaderParam("Accept") String accept, - Context context); + Mono> list(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("sqlPoolName") String sqlPoolName, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Sql pool's workload group - * - *

Get a Sql pool's workload group. - * + * + * Get a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -158,19 +133,15 @@ Mono> listNext( * @return a Sql pool's workload group along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName) { + private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String workloadGroupName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -189,27 +160,16 @@ private Mono> getWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - workloadGroupName, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Sql pool's workload group - * - *

Get a Sql pool's workload group. - * + * + * Get a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -221,19 +181,15 @@ private Mono> getWithResponseAsync( * @return a Sql pool's workload group along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String workloadGroupName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -252,24 +208,15 @@ private Mono> getWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - workloadGroupName, - accept, - context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, workloadGroupName, accept, context); } /** * Sql pool's workload group - * - *

Get a Sql pool's workload group. - * + * + * Get a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -280,17 +227,17 @@ private Mono> getWithResponseAsync( * @return a Sql pool's workload group on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName) { + private Mono getAsync(String resourceGroupName, String workspaceName, String sqlPoolName, + String workloadGroupName) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Sql pool's workload group - * - *

Get a Sql pool's workload group. - * + * + * Get a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -302,16 +249,16 @@ private Mono getAsync( * @return a Sql pool's workload group along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, Context context) { + public Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, String workloadGroupName, Context context) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, context).block(); } /** * Sql pool's workload group - * - *

Get a Sql pool's workload group. - * + * + * Get a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -322,17 +269,17 @@ public Response getWithResponse( * @return a Sql pool's workload group. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkloadGroupInner get( - String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName) { + public WorkloadGroupInner get(String resourceGroupName, String workspaceName, String sqlPoolName, + String workloadGroupName) { return getWithResponse(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, Context.NONE) .getValue(); } /** * Create Or Update workload group - * - *

Create Or Update a Sql pool's workload group. - * + * + * Create Or Update a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -341,27 +288,19 @@ public WorkloadGroupInner get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workload group operations for a sql pool along with {@link Response} on successful completion of {@link - * Mono}. + * @return workload group operations for a sql pool along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, - WorkloadGroupInner parameters) { + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, String workloadGroupName, WorkloadGroupInner parameters) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -385,28 +324,17 @@ private Mono>> createOrUpdateWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - workloadGroupName, - parameters, - accept, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, + parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Create Or Update workload group - * - *

Create Or Update a Sql pool's workload group. - * + * + * Create Or Update a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -416,28 +344,20 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workload group operations for a sql pool along with {@link Response} on successful completion of {@link - * Mono}. + * @return workload group operations for a sql pool along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, - WorkloadGroupInner parameters, + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, String workloadGroupName, WorkloadGroupInner parameters, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -461,25 +381,15 @@ private Mono>> createOrUpdateWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - workloadGroupName, - parameters, - accept, - context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, parameters, accept, context); } /** * Create Or Update workload group - * - *

Create Or Update a Sql pool's workload group. - * + * + * Create Or Update a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -492,29 +402,19 @@ private Mono>> createOrUpdateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, WorkloadGroupInner> beginCreateOrUpdateAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, + String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, WorkloadGroupInner parameters) { - Mono>> mono = - createOrUpdateWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, parameters); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - WorkloadGroupInner.class, - WorkloadGroupInner.class, - this.client.getContext()); + Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, + sqlPoolName, workloadGroupName, parameters); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + WorkloadGroupInner.class, WorkloadGroupInner.class, this.client.getContext()); } /** * Create Or Update workload group - * - *

Create Or Update a Sql pool's workload group. - * + * + * Create Or Update a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -528,27 +428,20 @@ private PollerFlux, WorkloadGroupInner> beginCrea */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, WorkloadGroupInner> beginCreateOrUpdateAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, - WorkloadGroupInner parameters, - Context context) { + String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, + WorkloadGroupInner parameters, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - createOrUpdateWithResponseAsync( - resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, parameters, context); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), WorkloadGroupInner.class, WorkloadGroupInner.class, context); + Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, + sqlPoolName, workloadGroupName, parameters, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + WorkloadGroupInner.class, WorkloadGroupInner.class, context); } /** * Create Or Update workload group - * - *

Create Or Update a Sql pool's workload group. - * + * + * Create Or Update a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -560,12 +453,8 @@ private PollerFlux, WorkloadGroupInner> beginCrea * @return the {@link SyncPoller} for polling of workload group operations for a sql pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, WorkloadGroupInner> beginCreateOrUpdate( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, - WorkloadGroupInner parameters) { + public SyncPoller, WorkloadGroupInner> beginCreateOrUpdate(String resourceGroupName, + String workspaceName, String sqlPoolName, String workloadGroupName, WorkloadGroupInner parameters) { return this .beginCreateOrUpdateAsync(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, parameters) .getSyncPoller(); @@ -573,9 +462,9 @@ public SyncPoller, WorkloadGroupInner> beginCreat /** * Create Or Update workload group - * - *

Create Or Update a Sql pool's workload group. - * + * + * Create Or Update a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -588,24 +477,18 @@ public SyncPoller, WorkloadGroupInner> beginCreat * @return the {@link SyncPoller} for polling of workload group operations for a sql pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, WorkloadGroupInner> beginCreateOrUpdate( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, - WorkloadGroupInner parameters, + public SyncPoller, WorkloadGroupInner> beginCreateOrUpdate(String resourceGroupName, + String workspaceName, String sqlPoolName, String workloadGroupName, WorkloadGroupInner parameters, Context context) { - return this - .beginCreateOrUpdateAsync( - resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, parameters, context) - .getSyncPoller(); + return this.beginCreateOrUpdateAsync(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, + parameters, context).getSyncPoller(); } /** * Create Or Update workload group - * - *

Create Or Update a Sql pool's workload group. - * + * + * Create Or Update a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -617,22 +500,17 @@ public SyncPoller, WorkloadGroupInner> beginCreat * @return workload group operations for a sql pool on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, - WorkloadGroupInner parameters) { + private Mono createOrUpdateAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String workloadGroupName, WorkloadGroupInner parameters) { return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, parameters) - .last() - .flatMap(this.client::getLroFinalResultOrError); + .last().flatMap(this.client::getLroFinalResultOrError); } /** * Create Or Update workload group - * - *

Create Or Update a Sql pool's workload group. - * + * + * Create Or Update a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -645,24 +523,17 @@ private Mono createOrUpdateAsync( * @return workload group operations for a sql pool on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, - WorkloadGroupInner parameters, - Context context) { - return beginCreateOrUpdateAsync( - resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, parameters, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + private Mono createOrUpdateAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String workloadGroupName, WorkloadGroupInner parameters, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, parameters, + context).last().flatMap(this.client::getLroFinalResultOrError); } /** * Create Or Update workload group - * - *

Create Or Update a Sql pool's workload group. - * + * + * Create Or Update a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -674,21 +545,17 @@ private Mono createOrUpdateAsync( * @return workload group operations for a sql pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkloadGroupInner createOrUpdate( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, - WorkloadGroupInner parameters) { + public WorkloadGroupInner createOrUpdate(String resourceGroupName, String workspaceName, String sqlPoolName, + String workloadGroupName, WorkloadGroupInner parameters) { return createOrUpdateAsync(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, parameters) .block(); } /** * Create Or Update workload group - * - *

Create Or Update a Sql pool's workload group. - * + * + * Create Or Update a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -701,23 +568,17 @@ public WorkloadGroupInner createOrUpdate( * @return workload group operations for a sql pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkloadGroupInner createOrUpdate( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, - WorkloadGroupInner parameters, - Context context) { - return createOrUpdateAsync( - resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, parameters, context) - .block(); + public WorkloadGroupInner createOrUpdate(String resourceGroupName, String workspaceName, String sqlPoolName, + String workloadGroupName, WorkloadGroupInner parameters, Context context) { + return createOrUpdateAsync(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, parameters, + context).block(); } /** * Remove workload group - * - *

Remove Sql pool's workload group. - * + * + * Remove Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -728,19 +589,15 @@ public WorkloadGroupInner createOrUpdate( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String workloadGroupName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -759,25 +616,16 @@ private Mono>> deleteWithResponseAsync( final String apiVersion = "2021-06-01"; return FluxUtil .withContext( - context -> - service - .delete( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - workloadGroupName, - context)) + context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Remove workload group - * - *

Remove Sql pool's workload group. - * + * + * Remove Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -789,19 +637,15 @@ private Mono>> deleteWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, Context context) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String workloadGroupName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -819,23 +663,15 @@ private Mono>> deleteWithResponseAsync( } final String apiVersion = "2021-06-01"; context = this.client.mergeContext(context); - return service - .delete( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - workloadGroupName, - context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, workloadGroupName, context); } /** * Remove workload group - * - *

Remove Sql pool's workload group. - * + * + * Remove Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -846,21 +682,19 @@ private Mono>> deleteWithResponseAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName) { - Mono>> mono = - deleteWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String workloadGroupName) { + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Remove workload group - * - *

Remove Sql pool's workload group. - * + * + * Remove Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -872,21 +706,20 @@ private PollerFlux, Void> beginDeleteAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, Context context) { + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, String workloadGroupName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - deleteWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * Remove workload group - * - *

Remove Sql pool's workload group. - * + * + * Remove Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -897,16 +730,16 @@ private PollerFlux, Void> beginDeleteAsync( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete( - String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName) { + public SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, + String sqlPoolName, String workloadGroupName) { return this.beginDeleteAsync(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName).getSyncPoller(); } /** * Remove workload group - * - *

Remove Sql pool's workload group. - * + * + * Remove Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -918,18 +751,17 @@ public SyncPoller, Void> beginDelete( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete( - String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, Context context) { - return this - .beginDeleteAsync(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, context) + public SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, + String sqlPoolName, String workloadGroupName, Context context) { + return this.beginDeleteAsync(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, context) .getSyncPoller(); } /** * Remove workload group - * - *

Remove Sql pool's workload group. - * + * + * Remove Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -940,18 +772,17 @@ public SyncPoller, Void> beginDelete( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName) { - return beginDeleteAsync(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName) - .last() + private Mono deleteAsync(String resourceGroupName, String workspaceName, String sqlPoolName, + String workloadGroupName) { + return beginDeleteAsync(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Remove workload group - * - *

Remove Sql pool's workload group. - * + * + * Remove Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -963,18 +794,17 @@ private Mono deleteAsync( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, Context context) { - return beginDeleteAsync(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, context) - .last() + private Mono deleteAsync(String resourceGroupName, String workspaceName, String sqlPoolName, + String workloadGroupName, Context context) { + return beginDeleteAsync(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Remove workload group - * - *

Remove Sql pool's workload group. - * + * + * Remove Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -990,9 +820,9 @@ public void delete(String resourceGroupName, String workspaceName, String sqlPoo /** * Remove workload group - * - *

Remove Sql pool's workload group. - * + * + * Remove Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1003,39 +833,35 @@ public void delete(String resourceGroupName, String workspaceName, String sqlPoo * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete( - String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, Context context) { + public void delete(String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, + Context context) { deleteAsync(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, context).block(); } /** * Sql pool's workload groups - * - *

Get list of Sql pool's workload groups. - * + * + * Get list of Sql pool's workload groups. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Sql pool's workload groups along with {@link PagedResponse} on successful completion of {@link - * Mono}. + * @return list of Sql pool's workload groups along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String workspaceName, String sqlPoolName) { + private Mono> listSinglePageAsync(String resourceGroupName, String workspaceName, + String sqlPoolName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1050,35 +876,18 @@ private Mono> listSinglePageAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Sql pool's workload groups - * - *

Get list of Sql pool's workload groups. - * + * + * Get list of Sql pool's workload groups. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1086,23 +895,19 @@ private Mono> listSinglePageAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Sql pool's workload groups along with {@link PagedResponse} on successful completion of {@link - * Mono}. + * @return list of Sql pool's workload groups along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + private Mono> listSinglePageAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1118,31 +923,17 @@ private Mono> listSinglePageAsync( final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * Sql pool's workload groups - * - *

Get list of Sql pool's workload groups. - * + * + * Get list of Sql pool's workload groups. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1152,18 +943,17 @@ private Mono> listSinglePageAsync( * @return list of Sql pool's workload groups as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( - String resourceGroupName, String workspaceName, String sqlPoolName) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName), + private PagedFlux listAsync(String resourceGroupName, String workspaceName, + String sqlPoolName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName), nextLink -> listNextSinglePageAsync(nextLink)); } /** * Sql pool's workload groups - * - *

Get list of Sql pool's workload groups. - * + * + * Get list of Sql pool's workload groups. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1174,18 +964,17 @@ private PagedFlux listAsync( * @return list of Sql pool's workload groups as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName, context), + private PagedFlux listAsync(String resourceGroupName, String workspaceName, String sqlPoolName, + Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } /** * Sql pool's workload groups - * - *

Get list of Sql pool's workload groups. - * + * + * Get list of Sql pool's workload groups. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1201,9 +990,9 @@ public PagedIterable list(String resourceGroupName, String w /** * Sql pool's workload groups - * - *

Get list of Sql pool's workload groups. - * + * + * Get list of Sql pool's workload groups. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1214,16 +1003,17 @@ public PagedIterable list(String resourceGroupName, String w * @return list of Sql pool's workload groups as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + public PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName, + Context context) { return new PagedIterable<>(listAsync(resourceGroupName, workspaceName, sqlPoolName, context)); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1235,31 +1025,22 @@ private Mono> listNextSinglePageAsync(String n return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1272,23 +1053,13 @@ private Mono> listNextSinglePageAsync(String n return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadGroupsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadGroupsImpl.java index 5edf3ac2d8c1..9b0ebad84f8c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadGroupsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolWorkloadGroupsImpl.java @@ -21,33 +21,28 @@ public final class SqlPoolWorkloadGroupsImpl implements SqlPoolWorkloadGroups { private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public SqlPoolWorkloadGroupsImpl( - SqlPoolWorkloadGroupsClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + public SqlPoolWorkloadGroupsImpl(SqlPoolWorkloadGroupsClient innerClient, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, Context context) { - Response inner = - this - .serviceClient() - .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, context); + public Response getWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + String workloadGroupName, Context context) { + Response inner = this.serviceClient().getWithResponse(resourceGroupName, workspaceName, + sqlPoolName, workloadGroupName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new WorkloadGroupImpl(inner.getValue(), this.manager())); } else { return null; } } - public WorkloadGroup get( - String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName) { - WorkloadGroupInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName); + public WorkloadGroup get(String resourceGroupName, String workspaceName, String sqlPoolName, + String workloadGroupName) { + WorkloadGroupInner inner + = this.serviceClient().get(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName); if (inner != null) { return new WorkloadGroupImpl(inner, this.manager()); } else { @@ -59,158 +54,117 @@ public void delete(String resourceGroupName, String workspaceName, String sqlPoo this.serviceClient().delete(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName); } - public void delete( - String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, Context context) { + public void delete(String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, + Context context) { this.serviceClient().delete(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, context); } public PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName) { - PagedIterable inner = - this.serviceClient().list(resourceGroupName, workspaceName, sqlPoolName); - return Utils.mapPage(inner, inner1 -> new WorkloadGroupImpl(inner1, this.manager())); + PagedIterable inner + = this.serviceClient().list(resourceGroupName, workspaceName, sqlPoolName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkloadGroupImpl(inner1, this.manager())); } - public PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { - PagedIterable inner = - this.serviceClient().list(resourceGroupName, workspaceName, sqlPoolName, context); - return Utils.mapPage(inner, inner1 -> new WorkloadGroupImpl(inner1, this.manager())); + public PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName, + Context context) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, workspaceName, sqlPoolName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkloadGroupImpl(inner1, this.manager())); } public WorkloadGroup getById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); + String sqlPoolName = ResourceManagerUtils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } - String workloadGroupName = Utils.getValueFromIdByName(id, "workloadGroups"); + String workloadGroupName = ResourceManagerUtils.getValueFromIdByName(id, "workloadGroups"); if (workloadGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'workloadGroups'.", id))); - } - return this - .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, Context.NONE) + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workloadGroups'.", id))); + } + return this.getWithResponse(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, Context.NONE) .getValue(); } public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); + String sqlPoolName = ResourceManagerUtils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } - String workloadGroupName = Utils.getValueFromIdByName(id, "workloadGroups"); + String workloadGroupName = ResourceManagerUtils.getValueFromIdByName(id, "workloadGroups"); if (workloadGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'workloadGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workloadGroups'.", id))); } return this.getWithResponse(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, context); } public void deleteById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); + String sqlPoolName = ResourceManagerUtils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } - String workloadGroupName = Utils.getValueFromIdByName(id, "workloadGroups"); + String workloadGroupName = ResourceManagerUtils.getValueFromIdByName(id, "workloadGroups"); if (workloadGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'workloadGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workloadGroups'.", id))); } this.delete(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, Context.NONE); } public void deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); + String sqlPoolName = ResourceManagerUtils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } - String workloadGroupName = Utils.getValueFromIdByName(id, "workloadGroups"); + String workloadGroupName = ResourceManagerUtils.getValueFromIdByName(id, "workloadGroups"); if (workloadGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'workloadGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workloadGroups'.", id))); } this.delete(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolsClientImpl.java index 6c6830caf7b3..3953d106382c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolsClientImpl.java @@ -35,24 +35,29 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.synapse.fluent.SqlPoolsClient; import com.azure.resourcemanager.synapse.fluent.models.SqlPoolInner; -import com.azure.resourcemanager.synapse.models.ResourceMoveDefinition; import com.azure.resourcemanager.synapse.models.SqlPoolInfoListResult; import com.azure.resourcemanager.synapse.models.SqlPoolPatchInfo; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in SqlPoolsClient. */ +/** + * An instance of this class provides access to all the operations defined in SqlPoolsClient. + */ public final class SqlPoolsClientImpl implements SqlPoolsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final SqlPoolsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of SqlPoolsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ SqlPoolsClientImpl(SynapseManagementClientImpl client) { @@ -67,151 +72,86 @@ public final class SqlPoolsClientImpl implements SqlPoolsClient { @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface SqlPoolsService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("sqlPoolName") String sqlPoolName, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Patch( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}") - @ExpectedResponses({200, 202}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> update( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("sqlPoolName") String sqlPoolName, - @BodyParam("application/json") SqlPoolPatchInfo sqlPoolInfo, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}") - @ExpectedResponses({200, 202}) + Mono> get(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("sqlPoolName") String sqlPoolName, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> create( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("sqlPoolName") String sqlPoolName, - @BodyParam("application/json") SqlPoolInner sqlPoolInfo, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}") - @ExpectedResponses({200, 202, 204}) + Mono>> update(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("sqlPoolName") String sqlPoolName, @BodyParam("application/json") SqlPoolPatchInfo sqlPoolInfo, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(value = ManagementException.class, code = { 404 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("sqlPoolName") String sqlPoolName, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools") - @ExpectedResponses({200}) + Mono>> create(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("sqlPoolName") String sqlPoolName, @BodyParam("application/json") SqlPoolInner sqlPoolInfo, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}") + @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByWorkspace( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/pause") - @ExpectedResponses({200, 202}) + Mono>> delete(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("sqlPoolName") String sqlPoolName, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> pause( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("sqlPoolName") String sqlPoolName, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/resume") - @ExpectedResponses({200, 202}) + Mono> listByWorkspace(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/pause") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> resume( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("sqlPoolName") String sqlPoolName, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlPools/{sqlPoolName}/move") - @ExpectedResponses({200}) + Mono>> pause(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("sqlPoolName") String sqlPoolName, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/resume") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> rename( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("sqlPoolName") String sqlPoolName, - @BodyParam("application/json") ResourceMoveDefinition parameters, - Context context); - - @Headers({"Content-Type: application/json"}) + Mono>> resume(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("sqlPoolName") String sqlPoolName, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByWorkspaceNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** * Get SQL pool - * - *

Get SQL pool properties. - * + * + * Get SQL pool properties. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -221,19 +161,15 @@ Mono> listByWorkspaceNext( * @return sQL pool properties along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, String sqlPoolName) { + private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -248,26 +184,16 @@ private Mono> getWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get SQL pool - * - *

Get SQL pool properties. - * + * + * Get SQL pool properties. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -278,19 +204,15 @@ private Mono> getWithResponseAsync( * @return sQL pool properties along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -305,23 +227,15 @@ private Mono> getWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - accept, - context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, accept, context); } /** * Get SQL pool - * - *

Get SQL pool properties. - * + * + * Get SQL pool properties. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -338,9 +252,9 @@ private Mono getAsync(String resourceGroupName, String workspaceNa /** * Get SQL pool - * - *

Get SQL pool properties. - * + * + * Get SQL pool properties. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -351,16 +265,16 @@ private Mono getAsync(String resourceGroupName, String workspaceNa * @return sQL pool properties along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + public Response getWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + Context context) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, context).block(); } /** * Get SQL pool - * - *

Get SQL pool properties. - * + * + * Get SQL pool properties. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -376,9 +290,9 @@ public SqlPoolInner get(String resourceGroupName, String workspaceName, String s /** * Update SQL pool - * - *

Apply a partial update to a SQL pool. - * + * + * Apply a partial update to a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -389,19 +303,15 @@ public SqlPoolInner get(String resourceGroupName, String workspaceName, String s * @return sQL pool along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, SqlPoolPatchInfo sqlPoolInfo) { + private Mono>> updateWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, SqlPoolPatchInfo sqlPoolInfo) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -422,26 +332,16 @@ private Mono>> updateWithResponseAsync( final String accept = "application/json"; return FluxUtil .withContext( - context -> - service - .update( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - sqlPoolInfo, - accept, - context)) + context -> service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Update SQL pool - * - *

Apply a partial update to a SQL pool. - * + * + * Apply a partial update to a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -453,23 +353,15 @@ private Mono>> updateWithResponseAsync( * @return sQL pool along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - SqlPoolPatchInfo sqlPoolInfo, - Context context) { + private Mono>> updateWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, SqlPoolPatchInfo sqlPoolInfo, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -489,24 +381,15 @@ private Mono>> updateWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .update( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - sqlPoolInfo, - accept, - context); + return service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, sqlPoolInfo, accept, context); } /** * Update SQL pool - * - *

Apply a partial update to a SQL pool. - * + * + * Apply a partial update to a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -517,21 +400,19 @@ private Mono>> updateWithResponseAsync( * @return the {@link PollerFlux} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, SqlPoolInner> beginUpdateAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, SqlPoolPatchInfo sqlPoolInfo) { - Mono>> mono = - updateWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), SqlPoolInner.class, SqlPoolInner.class, this.client.getContext()); + private PollerFlux, SqlPoolInner> beginUpdateAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, SqlPoolPatchInfo sqlPoolInfo) { + Mono>> mono + = updateWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + SqlPoolInner.class, SqlPoolInner.class, this.client.getContext()); } /** * Update SQL pool - * - *

Apply a partial update to a SQL pool. - * + * + * Apply a partial update to a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -543,26 +424,20 @@ private PollerFlux, SqlPoolInner> beginUpdateAsync( * @return the {@link PollerFlux} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, SqlPoolInner> beginUpdateAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - SqlPoolPatchInfo sqlPoolInfo, - Context context) { + private PollerFlux, SqlPoolInner> beginUpdateAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, SqlPoolPatchInfo sqlPoolInfo, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - updateWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo, context); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), SqlPoolInner.class, SqlPoolInner.class, context); + Mono>> mono + = updateWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + SqlPoolInner.class, SqlPoolInner.class, context); } /** * Update SQL pool - * - *

Apply a partial update to a SQL pool. - * + * + * Apply a partial update to a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -573,16 +448,16 @@ private PollerFlux, SqlPoolInner> beginUpdateAsync( * @return the {@link SyncPoller} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, SqlPoolInner> beginUpdate( - String resourceGroupName, String workspaceName, String sqlPoolName, SqlPoolPatchInfo sqlPoolInfo) { + public SyncPoller, SqlPoolInner> beginUpdate(String resourceGroupName, + String workspaceName, String sqlPoolName, SqlPoolPatchInfo sqlPoolInfo) { return this.beginUpdateAsync(resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo).getSyncPoller(); } /** * Update SQL pool - * - *

Apply a partial update to a SQL pool. - * + * + * Apply a partial update to a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -594,22 +469,17 @@ public SyncPoller, SqlPoolInner> beginUpdate( * @return the {@link SyncPoller} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, SqlPoolInner> beginUpdate( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - SqlPoolPatchInfo sqlPoolInfo, - Context context) { - return this - .beginUpdateAsync(resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo, context) + public SyncPoller, SqlPoolInner> beginUpdate(String resourceGroupName, + String workspaceName, String sqlPoolName, SqlPoolPatchInfo sqlPoolInfo, Context context) { + return this.beginUpdateAsync(resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo, context) .getSyncPoller(); } /** * Update SQL pool - * - *

Apply a partial update to a SQL pool. - * + * + * Apply a partial update to a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -620,18 +490,17 @@ public SyncPoller, SqlPoolInner> beginUpdate( * @return sQL pool on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, SqlPoolPatchInfo sqlPoolInfo) { - return beginUpdateAsync(resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo) - .last() + private Mono updateAsync(String resourceGroupName, String workspaceName, String sqlPoolName, + SqlPoolPatchInfo sqlPoolInfo) { + return beginUpdateAsync(resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Update SQL pool - * - *

Apply a partial update to a SQL pool. - * + * + * Apply a partial update to a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -643,22 +512,17 @@ private Mono updateAsync( * @return sQL pool on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - SqlPoolPatchInfo sqlPoolInfo, - Context context) { - return beginUpdateAsync(resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo, context) - .last() + private Mono updateAsync(String resourceGroupName, String workspaceName, String sqlPoolName, + SqlPoolPatchInfo sqlPoolInfo, Context context) { + return beginUpdateAsync(resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Update SQL pool - * - *

Apply a partial update to a SQL pool. - * + * + * Apply a partial update to a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -669,16 +533,16 @@ private Mono updateAsync( * @return sQL pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SqlPoolInner update( - String resourceGroupName, String workspaceName, String sqlPoolName, SqlPoolPatchInfo sqlPoolInfo) { + public SqlPoolInner update(String resourceGroupName, String workspaceName, String sqlPoolName, + SqlPoolPatchInfo sqlPoolInfo) { return updateAsync(resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo).block(); } /** * Update SQL pool - * - *

Apply a partial update to a SQL pool. - * + * + * Apply a partial update to a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -690,43 +554,36 @@ public SqlPoolInner update( * @return sQL pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SqlPoolInner update( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - SqlPoolPatchInfo sqlPoolInfo, - Context context) { + public SqlPoolInner update(String resourceGroupName, String workspaceName, String sqlPoolName, + SqlPoolPatchInfo sqlPoolInfo, Context context) { return updateAsync(resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo, context).block(); } /** * Create SQL pool - * - *

Create a SQL pool. - * + * + * Create a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param sqlPoolInfo The SQL pool to create. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. + * @throws ManagementException thrown if the request is rejected by server on status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return sQL pool along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createWithResponseAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, SqlPoolInner sqlPoolInfo) { + private Mono>> createWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, SqlPoolInner sqlPoolInfo) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -747,26 +604,16 @@ private Mono>> createWithResponseAsync( final String accept = "application/json"; return FluxUtil .withContext( - context -> - service - .create( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - sqlPoolInfo, - accept, - context)) + context -> service.create(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Create SQL pool - * - *

Create a SQL pool. - * + * + * Create a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -774,23 +621,20 @@ private Mono>> createWithResponseAsync( * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. + * @throws ManagementException thrown if the request is rejected by server on status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return sQL pool along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createWithResponseAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, SqlPoolInner sqlPoolInfo, Context context) { + private Mono>> createWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, SqlPoolInner sqlPoolInfo, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -810,49 +654,39 @@ private Mono>> createWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .create( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - sqlPoolInfo, - accept, - context); + return service.create(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, sqlPoolInfo, accept, context); } /** * Create SQL pool - * - *

Create a SQL pool. - * + * + * Create a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param sqlPoolInfo The SQL pool to create. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. + * @throws ManagementException thrown if the request is rejected by server on status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, SqlPoolInner> beginCreateAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, SqlPoolInner sqlPoolInfo) { - Mono>> mono = - createWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), SqlPoolInner.class, SqlPoolInner.class, this.client.getContext()); + private PollerFlux, SqlPoolInner> beginCreateAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, SqlPoolInner sqlPoolInfo) { + Mono>> mono + = createWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + SqlPoolInner.class, SqlPoolInner.class, this.client.getContext()); } /** * Create SQL pool - * - *

Create a SQL pool. - * + * + * Create a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -860,46 +694,46 @@ private PollerFlux, SqlPoolInner> beginCreateAsync( * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. + * @throws ManagementException thrown if the request is rejected by server on status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link PollerFlux} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, SqlPoolInner> beginCreateAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, SqlPoolInner sqlPoolInfo, Context context) { + private PollerFlux, SqlPoolInner> beginCreateAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, SqlPoolInner sqlPoolInfo, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - createWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo, context); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), SqlPoolInner.class, SqlPoolInner.class, context); + Mono>> mono + = createWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + SqlPoolInner.class, SqlPoolInner.class, context); } /** * Create SQL pool - * - *

Create a SQL pool. - * + * + * Create a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param sqlPoolInfo The SQL pool to create. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. + * @throws ManagementException thrown if the request is rejected by server on status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, SqlPoolInner> beginCreate( - String resourceGroupName, String workspaceName, String sqlPoolName, SqlPoolInner sqlPoolInfo) { + public SyncPoller, SqlPoolInner> beginCreate(String resourceGroupName, + String workspaceName, String sqlPoolName, SqlPoolInner sqlPoolInfo) { return this.beginCreateAsync(resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo).getSyncPoller(); } /** * Create SQL pool - * - *

Create a SQL pool. - * + * + * Create a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -907,44 +741,44 @@ public SyncPoller, SqlPoolInner> beginCreate( * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. + * @throws ManagementException thrown if the request is rejected by server on status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, SqlPoolInner> beginCreate( - String resourceGroupName, String workspaceName, String sqlPoolName, SqlPoolInner sqlPoolInfo, Context context) { - return this - .beginCreateAsync(resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo, context) + public SyncPoller, SqlPoolInner> beginCreate(String resourceGroupName, + String workspaceName, String sqlPoolName, SqlPoolInner sqlPoolInfo, Context context) { + return this.beginCreateAsync(resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo, context) .getSyncPoller(); } /** * Create SQL pool - * - *

Create a SQL pool. - * + * + * Create a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param sqlPoolInfo The SQL pool to create. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. + * @throws ManagementException thrown if the request is rejected by server on status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return sQL pool on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, SqlPoolInner sqlPoolInfo) { - return beginCreateAsync(resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo) - .last() + private Mono createAsync(String resourceGroupName, String workspaceName, String sqlPoolName, + SqlPoolInner sqlPoolInfo) { + return beginCreateAsync(resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Create SQL pool - * - *

Create a SQL pool. - * + * + * Create a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -952,42 +786,43 @@ private Mono createAsync( * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. + * @throws ManagementException thrown if the request is rejected by server on status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return sQL pool on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, SqlPoolInner sqlPoolInfo, Context context) { - return beginCreateAsync(resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo, context) - .last() + private Mono createAsync(String resourceGroupName, String workspaceName, String sqlPoolName, + SqlPoolInner sqlPoolInfo, Context context) { + return beginCreateAsync(resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Create SQL pool - * - *

Create a SQL pool. - * + * + * Create a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param sqlPoolInfo The SQL pool to create. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. + * @throws ManagementException thrown if the request is rejected by server on status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return sQL pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SqlPoolInner create( - String resourceGroupName, String workspaceName, String sqlPoolName, SqlPoolInner sqlPoolInfo) { + public SqlPoolInner create(String resourceGroupName, String workspaceName, String sqlPoolName, + SqlPoolInner sqlPoolInfo) { return createAsync(resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo).block(); } /** * Create SQL pool - * - *

Create a SQL pool. - * + * + * Create a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -995,20 +830,21 @@ public SqlPoolInner create( * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. + * @throws ManagementException thrown if the request is rejected by server on status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return sQL pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SqlPoolInner create( - String resourceGroupName, String workspaceName, String sqlPoolName, SqlPoolInner sqlPoolInfo, Context context) { + public SqlPoolInner create(String resourceGroupName, String workspaceName, String sqlPoolName, + SqlPoolInner sqlPoolInfo, Context context) { return createAsync(resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo, context).block(); } /** * Delete SQL pool - * - *

Delete a SQL pool. - * + * + * Delete a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1018,19 +854,15 @@ public SqlPoolInner create( * @return sQL pool along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync( - String resourceGroupName, String workspaceName, String sqlPoolName) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1045,26 +877,16 @@ private Mono>> deleteWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .delete( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - accept, - context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Delete SQL pool - * - *

Delete a SQL pool. - * + * + * Delete a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1075,19 +897,15 @@ private Mono>> deleteWithResponseAsync( * @return sQL pool along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1102,23 +920,15 @@ private Mono>> deleteWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .delete( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - accept, - context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, accept, context); } /** * Delete SQL pool - * - *

Delete a SQL pool. - * + * + * Delete a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1128,20 +938,18 @@ private Mono>> deleteWithResponseAsync( * @return the {@link PollerFlux} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, SqlPoolInner> beginDeleteAsync( - String resourceGroupName, String workspaceName, String sqlPoolName) { + private PollerFlux, SqlPoolInner> beginDeleteAsync(String resourceGroupName, + String workspaceName, String sqlPoolName) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), SqlPoolInner.class, SqlPoolInner.class, this.client.getContext()); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + SqlPoolInner.class, SqlPoolInner.class, this.client.getContext()); } /** * Delete SQL pool - * - *

Delete a SQL pool. - * + * + * Delete a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1152,22 +960,20 @@ private PollerFlux, SqlPoolInner> beginDeleteAsync( * @return the {@link PollerFlux} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, SqlPoolInner> beginDeleteAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + private PollerFlux, SqlPoolInner> beginDeleteAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - deleteWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, context); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), SqlPoolInner.class, SqlPoolInner.class, context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + SqlPoolInner.class, SqlPoolInner.class, context); } /** * Delete SQL pool - * - *

Delete a SQL pool. - * + * + * Delete a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1177,16 +983,16 @@ private PollerFlux, SqlPoolInner> beginDeleteAsync( * @return the {@link SyncPoller} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, SqlPoolInner> beginDelete( - String resourceGroupName, String workspaceName, String sqlPoolName) { + public SyncPoller, SqlPoolInner> beginDelete(String resourceGroupName, + String workspaceName, String sqlPoolName) { return this.beginDeleteAsync(resourceGroupName, workspaceName, sqlPoolName).getSyncPoller(); } /** * Delete SQL pool - * - *

Delete a SQL pool. - * + * + * Delete a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1197,16 +1003,16 @@ public SyncPoller, SqlPoolInner> beginDelete( * @return the {@link SyncPoller} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, SqlPoolInner> beginDelete( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + public SyncPoller, SqlPoolInner> beginDelete(String resourceGroupName, + String workspaceName, String sqlPoolName, Context context) { return this.beginDeleteAsync(resourceGroupName, workspaceName, sqlPoolName, context).getSyncPoller(); } /** * Delete SQL pool - * - *

Delete a SQL pool. - * + * + * Delete a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1217,16 +1023,15 @@ public SyncPoller, SqlPoolInner> beginDelete( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String workspaceName, String sqlPoolName) { - return beginDeleteAsync(resourceGroupName, workspaceName, sqlPoolName) - .last() + return beginDeleteAsync(resourceGroupName, workspaceName, sqlPoolName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete SQL pool - * - *

Delete a SQL pool. - * + * + * Delete a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1237,18 +1042,17 @@ private Mono deleteAsync(String resourceGroupName, String workspac * @return sQL pool on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { - return beginDeleteAsync(resourceGroupName, workspaceName, sqlPoolName, context) - .last() + private Mono deleteAsync(String resourceGroupName, String workspaceName, String sqlPoolName, + Context context) { + return beginDeleteAsync(resourceGroupName, workspaceName, sqlPoolName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Delete SQL pool - * - *

Delete a SQL pool. - * + * + * Delete a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1264,9 +1068,9 @@ public SqlPoolInner delete(String resourceGroupName, String workspaceName, Strin /** * Delete SQL pool - * - *

Delete a SQL pool. - * + * + * Delete a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1283,9 +1087,9 @@ public SqlPoolInner delete(String resourceGroupName, String workspaceName, Strin /** * List SQL pools - * - *

List all SQL pools. - * + * + * List all SQL pools. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1294,19 +1098,15 @@ public SqlPoolInner delete(String resourceGroupName, String workspaceName, Strin * @return sQL pool collection along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByWorkspaceSinglePageAsync( - String resourceGroupName, String workspaceName) { + private Mono> listByWorkspaceSinglePageAsync(String resourceGroupName, + String workspaceName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1318,34 +1118,18 @@ private Mono> listByWorkspaceSinglePageAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .listByWorkspace( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .withContext(context -> service.listByWorkspace(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * List SQL pools - * - *

List all SQL pools. - * + * + * List all SQL pools. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -1355,19 +1139,15 @@ private Mono> listByWorkspaceSinglePageAsync( * @return sQL pool collection along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByWorkspaceSinglePageAsync( - String resourceGroupName, String workspaceName, Context context) { + private Mono> listByWorkspaceSinglePageAsync(String resourceGroupName, + String workspaceName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1380,30 +1160,17 @@ private Mono> listByWorkspaceSinglePageAsync( final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByWorkspace( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + .listByWorkspace(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * List SQL pools - * - *

List all SQL pools. - * + * + * List all SQL pools. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1413,16 +1180,15 @@ private Mono> listByWorkspaceSinglePageAsync( */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByWorkspaceAsync(String resourceGroupName, String workspaceName) { - return new PagedFlux<>( - () -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName), + return new PagedFlux<>(() -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName), nextLink -> listByWorkspaceNextSinglePageAsync(nextLink)); } /** * List SQL pools - * - *

List all SQL pools. - * + * + * List all SQL pools. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -1432,18 +1198,17 @@ private PagedFlux listByWorkspaceAsync(String resourceGroupName, S * @return sQL pool collection as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByWorkspaceAsync( - String resourceGroupName, String workspaceName, Context context) { - return new PagedFlux<>( - () -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName, context), + private PagedFlux listByWorkspaceAsync(String resourceGroupName, String workspaceName, + Context context) { + return new PagedFlux<>(() -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName, context), nextLink -> listByWorkspaceNextSinglePageAsync(nextLink, context)); } /** * List SQL pools - * - *

List all SQL pools. - * + * + * List all SQL pools. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1458,9 +1223,9 @@ public PagedIterable listByWorkspace(String resourceGroupName, Str /** * List SQL pools - * - *

List all SQL pools. - * + * + * List all SQL pools. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -1470,16 +1235,16 @@ public PagedIterable listByWorkspace(String resourceGroupName, Str * @return sQL pool collection as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByWorkspace( - String resourceGroupName, String workspaceName, Context context) { + public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, + Context context) { return new PagedIterable<>(listByWorkspaceAsync(resourceGroupName, workspaceName, context)); } /** * Pause SQL pool - * - *

Pause a SQL pool. - * + * + * Pause a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1489,19 +1254,15 @@ public PagedIterable listByWorkspace( * @return sQL pool along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> pauseWithResponseAsync( - String resourceGroupName, String workspaceName, String sqlPoolName) { + private Mono>> pauseWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1516,26 +1277,16 @@ private Mono>> pauseWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .pause( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - accept, - context)) + .withContext(context -> service.pause(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Pause SQL pool - * - *

Pause a SQL pool. - * + * + * Pause a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1546,19 +1297,15 @@ private Mono>> pauseWithResponseAsync( * @return sQL pool along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> pauseWithResponseAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + private Mono>> pauseWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1573,23 +1320,15 @@ private Mono>> pauseWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .pause( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - accept, - context); + return service.pause(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, accept, context); } /** * Pause SQL pool - * - *

Pause a SQL pool. - * + * + * Pause a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1599,20 +1338,18 @@ private Mono>> pauseWithResponseAsync( * @return the {@link PollerFlux} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, SqlPoolInner> beginPauseAsync( - String resourceGroupName, String workspaceName, String sqlPoolName) { + private PollerFlux, SqlPoolInner> beginPauseAsync(String resourceGroupName, + String workspaceName, String sqlPoolName) { Mono>> mono = pauseWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), SqlPoolInner.class, SqlPoolInner.class, this.client.getContext()); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + SqlPoolInner.class, SqlPoolInner.class, this.client.getContext()); } /** * Pause SQL pool - * - *

Pause a SQL pool. - * + * + * Pause a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1623,22 +1360,20 @@ private PollerFlux, SqlPoolInner> beginPauseAsync( * @return the {@link PollerFlux} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, SqlPoolInner> beginPauseAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + private PollerFlux, SqlPoolInner> beginPauseAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - pauseWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, context); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), SqlPoolInner.class, SqlPoolInner.class, context); + Mono>> mono + = pauseWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + SqlPoolInner.class, SqlPoolInner.class, context); } /** * Pause SQL pool - * - *

Pause a SQL pool. - * + * + * Pause a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1648,16 +1383,16 @@ private PollerFlux, SqlPoolInner> beginPauseAsync( * @return the {@link SyncPoller} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, SqlPoolInner> beginPause( - String resourceGroupName, String workspaceName, String sqlPoolName) { + public SyncPoller, SqlPoolInner> beginPause(String resourceGroupName, String workspaceName, + String sqlPoolName) { return this.beginPauseAsync(resourceGroupName, workspaceName, sqlPoolName).getSyncPoller(); } /** * Pause SQL pool - * - *

Pause a SQL pool. - * + * + * Pause a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1668,16 +1403,16 @@ public SyncPoller, SqlPoolInner> beginPause( * @return the {@link SyncPoller} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, SqlPoolInner> beginPause( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + public SyncPoller, SqlPoolInner> beginPause(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context) { return this.beginPauseAsync(resourceGroupName, workspaceName, sqlPoolName, context).getSyncPoller(); } /** * Pause SQL pool - * - *

Pause a SQL pool. - * + * + * Pause a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1688,16 +1423,15 @@ public SyncPoller, SqlPoolInner> beginPause( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono pauseAsync(String resourceGroupName, String workspaceName, String sqlPoolName) { - return beginPauseAsync(resourceGroupName, workspaceName, sqlPoolName) - .last() + return beginPauseAsync(resourceGroupName, workspaceName, sqlPoolName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Pause SQL pool - * - *

Pause a SQL pool. - * + * + * Pause a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1708,18 +1442,17 @@ private Mono pauseAsync(String resourceGroupName, String workspace * @return sQL pool on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono pauseAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { - return beginPauseAsync(resourceGroupName, workspaceName, sqlPoolName, context) - .last() + private Mono pauseAsync(String resourceGroupName, String workspaceName, String sqlPoolName, + Context context) { + return beginPauseAsync(resourceGroupName, workspaceName, sqlPoolName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Pause SQL pool - * - *

Pause a SQL pool. - * + * + * Pause a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1735,9 +1468,9 @@ public SqlPoolInner pause(String resourceGroupName, String workspaceName, String /** * Pause SQL pool - * - *

Pause a SQL pool. - * + * + * Pause a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1754,9 +1487,9 @@ public SqlPoolInner pause(String resourceGroupName, String workspaceName, String /** * Resume SQL pool - * - *

Resume a SQL pool. - * + * + * Resume a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1766,19 +1499,15 @@ public SqlPoolInner pause(String resourceGroupName, String workspaceName, String * @return sQL pool along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> resumeWithResponseAsync( - String resourceGroupName, String workspaceName, String sqlPoolName) { + private Mono>> resumeWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1793,26 +1522,16 @@ private Mono>> resumeWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .resume( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - accept, - context)) + .withContext(context -> service.resume(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, sqlPoolName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Resume SQL pool - * - *

Resume a SQL pool. - * + * + * Resume a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1823,19 +1542,15 @@ private Mono>> resumeWithResponseAsync( * @return sQL pool along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> resumeWithResponseAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + private Mono>> resumeWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1850,23 +1565,15 @@ private Mono>> resumeWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .resume( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - accept, - context); + return service.resume(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, accept, context); } /** * Resume SQL pool - * - *

Resume a SQL pool. - * + * + * Resume a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1876,20 +1583,18 @@ private Mono>> resumeWithResponseAsync( * @return the {@link PollerFlux} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, SqlPoolInner> beginResumeAsync( - String resourceGroupName, String workspaceName, String sqlPoolName) { + private PollerFlux, SqlPoolInner> beginResumeAsync(String resourceGroupName, + String workspaceName, String sqlPoolName) { Mono>> mono = resumeWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), SqlPoolInner.class, SqlPoolInner.class, this.client.getContext()); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + SqlPoolInner.class, SqlPoolInner.class, this.client.getContext()); } /** * Resume SQL pool - * - *

Resume a SQL pool. - * + * + * Resume a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1900,22 +1605,20 @@ private PollerFlux, SqlPoolInner> beginResumeAsync( * @return the {@link PollerFlux} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, SqlPoolInner> beginResumeAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + private PollerFlux, SqlPoolInner> beginResumeAsync(String resourceGroupName, + String workspaceName, String sqlPoolName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - resumeWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, context); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), SqlPoolInner.class, SqlPoolInner.class, context); + Mono>> mono + = resumeWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + SqlPoolInner.class, SqlPoolInner.class, context); } /** * Resume SQL pool - * - *

Resume a SQL pool. - * + * + * Resume a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1925,16 +1628,16 @@ private PollerFlux, SqlPoolInner> beginResumeAsync( * @return the {@link SyncPoller} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, SqlPoolInner> beginResume( - String resourceGroupName, String workspaceName, String sqlPoolName) { + public SyncPoller, SqlPoolInner> beginResume(String resourceGroupName, + String workspaceName, String sqlPoolName) { return this.beginResumeAsync(resourceGroupName, workspaceName, sqlPoolName).getSyncPoller(); } /** * Resume SQL pool - * - *

Resume a SQL pool. - * + * + * Resume a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1945,16 +1648,16 @@ public SyncPoller, SqlPoolInner> beginResume( * @return the {@link SyncPoller} for polling of sQL pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, SqlPoolInner> beginResume( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + public SyncPoller, SqlPoolInner> beginResume(String resourceGroupName, + String workspaceName, String sqlPoolName, Context context) { return this.beginResumeAsync(resourceGroupName, workspaceName, sqlPoolName, context).getSyncPoller(); } /** * Resume SQL pool - * - *

Resume a SQL pool. - * + * + * Resume a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1965,16 +1668,15 @@ public SyncPoller, SqlPoolInner> beginResume( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono resumeAsync(String resourceGroupName, String workspaceName, String sqlPoolName) { - return beginResumeAsync(resourceGroupName, workspaceName, sqlPoolName) - .last() + return beginResumeAsync(resourceGroupName, workspaceName, sqlPoolName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Resume SQL pool - * - *

Resume a SQL pool. - * + * + * Resume a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -1985,18 +1687,17 @@ private Mono resumeAsync(String resourceGroupName, String workspac * @return sQL pool on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono resumeAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { - return beginResumeAsync(resourceGroupName, workspaceName, sqlPoolName, context) - .last() + private Mono resumeAsync(String resourceGroupName, String workspaceName, String sqlPoolName, + Context context) { + return beginResumeAsync(resourceGroupName, workspaceName, sqlPoolName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Resume SQL pool - * - *

Resume a SQL pool. - * + * + * Resume a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -2012,9 +1713,9 @@ public SqlPoolInner resume(String resourceGroupName, String workspaceName, Strin /** * Resume SQL pool - * - *

Resume a SQL pool. - * + * + * Resume a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -2029,200 +1730,12 @@ public SqlPoolInner resume(String resourceGroupName, String workspaceName, Strin return resumeAsync(resourceGroupName, workspaceName, sqlPoolName, context).block(); } - /** - * Rename a SQL pool - * - *

Rename a SQL pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param sqlPoolName SQL pool name. - * @param parameters The resource move definition for renaming this Sql pool. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown 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> renameWithResponseAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, ResourceMoveDefinition parameters) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (sqlPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2021-06-01"; - return FluxUtil - .withContext( - context -> - service - .rename( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - parameters, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Rename a SQL pool - * - *

Rename a SQL pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param sqlPoolName SQL pool name. - * @param parameters The resource move definition for renaming this Sql pool. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown 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> renameWithResponseAsync( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - ResourceMoveDefinition parameters, - Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (workspaceName == null) { - return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); - } - if (sqlPoolName == null) { - return Mono.error(new IllegalArgumentException("Parameter sqlPoolName is required and cannot be null.")); - } - if (parameters == null) { - return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); - } else { - parameters.validate(); - } - final String apiVersion = "2021-06-01"; - context = this.client.mergeContext(context); - return service - .rename( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - parameters, - context); - } - - /** - * Rename a SQL pool - * - *

Rename a SQL pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param sqlPoolName SQL pool name. - * @param parameters The resource move definition for renaming this Sql pool. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException 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 renameAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, ResourceMoveDefinition parameters) { - return renameWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, parameters) - .flatMap(ignored -> Mono.empty()); - } - - /** - * Rename a SQL pool - * - *

Rename a SQL pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param sqlPoolName SQL pool name. - * @param parameters The resource move definition for renaming this Sql pool. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown 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 renameWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - ResourceMoveDefinition parameters, - Context context) { - return renameWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, parameters, context).block(); - } - - /** - * Rename a SQL pool - * - *

Rename a SQL pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param sqlPoolName SQL pool name. - * @param parameters The resource move definition for renaming this Sql pool. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @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 rename( - String resourceGroupName, String workspaceName, String sqlPoolName, ResourceMoveDefinition parameters) { - renameWithResponse(resourceGroupName, workspaceName, sqlPoolName, parameters, Context.NONE); - } - /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2234,31 +1747,23 @@ private Mono> listByWorkspaceNextSinglePageAsync(Str return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByWorkspaceNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2271,23 +1776,13 @@ private Mono> listByWorkspaceNextSinglePageAsync(Str return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listByWorkspaceNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listByWorkspaceNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolsImpl.java index 6507627bb05a..87ded5c32cce 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolsImpl.java @@ -11,7 +11,6 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.synapse.fluent.SqlPoolsClient; import com.azure.resourcemanager.synapse.fluent.models.SqlPoolInner; -import com.azure.resourcemanager.synapse.models.ResourceMoveDefinition; import com.azure.resourcemanager.synapse.models.SqlPool; import com.azure.resourcemanager.synapse.models.SqlPools; @@ -27,15 +26,12 @@ public SqlPoolsImpl(SqlPoolsClient innerClient, com.azure.resourcemanager.synaps this.serviceManager = serviceManager; } - public Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { - Response inner = - this.serviceClient().getWithResponse(resourceGroupName, workspaceName, sqlPoolName, context); + public Response getWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, workspaceName, sqlPoolName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new SqlPoolImpl(inner.getValue(), this.manager())); } else { return null; @@ -71,13 +67,13 @@ public SqlPool delete(String resourceGroupName, String workspaceName, String sql public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName) { PagedIterable inner = this.serviceClient().listByWorkspace(resourceGroupName, workspaceName); - return Utils.mapPage(inner, inner1 -> new SqlPoolImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SqlPoolImpl(inner1, this.manager())); } public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, Context context) { - PagedIterable inner = - this.serviceClient().listByWorkspace(resourceGroupName, workspaceName, context); - return Utils.mapPage(inner, inner1 -> new SqlPoolImpl(inner1, this.manager())); + PagedIterable inner + = this.serviceClient().listByWorkspace(resourceGroupName, workspaceName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new SqlPoolImpl(inner1, this.manager())); } public SqlPool pause(String resourceGroupName, String workspaceName, String sqlPoolName) { @@ -116,122 +112,78 @@ public SqlPool resume(String resourceGroupName, String workspaceName, String sql } } - public Response renameWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - ResourceMoveDefinition parameters, - Context context) { - return this - .serviceClient() - .renameWithResponse(resourceGroupName, workspaceName, sqlPoolName, parameters, context); - } - - public void rename( - String resourceGroupName, String workspaceName, String sqlPoolName, ResourceMoveDefinition parameters) { - this.serviceClient().rename(resourceGroupName, workspaceName, sqlPoolName, parameters); - } - public SqlPool getById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); + String sqlPoolName = ResourceManagerUtils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } return this.getWithResponse(resourceGroupName, workspaceName, sqlPoolName, Context.NONE).getValue(); } public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); + String sqlPoolName = ResourceManagerUtils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } return this.getWithResponse(resourceGroupName, workspaceName, sqlPoolName, context); } public SqlPool deleteById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); + String sqlPoolName = ResourceManagerUtils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } return this.delete(resourceGroupName, workspaceName, sqlPoolName, Context.NONE); } public SqlPool deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String sqlPoolName = Utils.getValueFromIdByName(id, "sqlPools"); + String sqlPoolName = ResourceManagerUtils.getValueFromIdByName(id, "sqlPools"); if (sqlPoolName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'sqlPools'.", id))); } return this.delete(resourceGroupName, workspaceName, sqlPoolName, context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SsisObjectMetadataListResponseImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SsisObjectMetadataListResponseImpl.java index fd5186caba76..811bc01c44bc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SsisObjectMetadataListResponseImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SsisObjectMetadataListResponseImpl.java @@ -15,8 +15,7 @@ public final class SsisObjectMetadataListResponseImpl implements SsisObjectMetad private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - SsisObjectMetadataListResponseImpl( - SsisObjectMetadataListResponseInner innerObject, + SsisObjectMetadataListResponseImpl(SsisObjectMetadataListResponseInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SsisObjectMetadataStatusResponseImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SsisObjectMetadataStatusResponseImpl.java index 23037ec87788..7afbac682c82 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SsisObjectMetadataStatusResponseImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SsisObjectMetadataStatusResponseImpl.java @@ -12,8 +12,7 @@ public final class SsisObjectMetadataStatusResponseImpl implements SsisObjectMet private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - SsisObjectMetadataStatusResponseImpl( - SsisObjectMetadataStatusResponseInner innerObject, + SsisObjectMetadataStatusResponseImpl(SsisObjectMetadataStatusResponseInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SynapseManagementClientBuilder.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SynapseManagementClientBuilder.java index b99a53702554..3136217f103e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SynapseManagementClientBuilder.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SynapseManagementClientBuilder.java @@ -14,8 +14,10 @@ import com.azure.core.util.serializer.SerializerAdapter; import java.time.Duration; -/** A builder for creating a new instance of the SynapseManagementClientImpl type. */ -@ServiceClientBuilder(serviceClients = {SynapseManagementClientImpl.class}) +/** + * A builder for creating a new instance of the SynapseManagementClientImpl type. + */ +@ServiceClientBuilder(serviceClients = { SynapseManagementClientImpl.class }) public final class SynapseManagementClientBuilder { /* * The ID of the target subscription. @@ -24,7 +26,7 @@ public final class SynapseManagementClientBuilder { /** * Sets The ID of the target subscription. - * + * * @param subscriptionId the subscriptionId value. * @return the SynapseManagementClientBuilder. */ @@ -40,7 +42,7 @@ public SynapseManagementClientBuilder subscriptionId(String subscriptionId) { /** * Sets server parameter. - * + * * @param endpoint the endpoint value. * @return the SynapseManagementClientBuilder. */ @@ -56,7 +58,7 @@ public SynapseManagementClientBuilder endpoint(String endpoint) { /** * Sets The environment to connect to. - * + * * @param environment the environment value. * @return the SynapseManagementClientBuilder. */ @@ -72,7 +74,7 @@ public SynapseManagementClientBuilder environment(AzureEnvironment environment) /** * Sets The HTTP pipeline to send requests through. - * + * * @param pipeline the pipeline value. * @return the SynapseManagementClientBuilder. */ @@ -88,7 +90,7 @@ public SynapseManagementClientBuilder pipeline(HttpPipeline pipeline) { /** * Sets The default poll interval for long-running operation. - * + * * @param defaultPollInterval the defaultPollInterval value. * @return the SynapseManagementClientBuilder. */ @@ -104,7 +106,7 @@ public SynapseManagementClientBuilder defaultPollInterval(Duration defaultPollIn /** * Sets The serializer to serialize an object into a string. - * + * * @param serializerAdapter the serializerAdapter value. * @return the SynapseManagementClientBuilder. */ @@ -115,30 +117,20 @@ public SynapseManagementClientBuilder serializerAdapter(SerializerAdapter serial /** * Builds an instance of SynapseManagementClientImpl with the provided parameters. - * + * * @return an instance of SynapseManagementClientImpl. */ public SynapseManagementClientImpl buildClient() { String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com"; AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE; - 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 - : SerializerFactory.createDefaultManagementSerializerAdapter(); - SynapseManagementClientImpl client = - new SynapseManagementClientImpl( - localPipeline, - localSerializerAdapter, - localDefaultPollInterval, - localEnvironment, - subscriptionId, - localEndpoint); + 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 + : SerializerFactory.createDefaultManagementSerializerAdapter(); + SynapseManagementClientImpl client = new SynapseManagementClientImpl(localPipeline, localSerializerAdapter, + localDefaultPollInterval, localEnvironment, this.subscriptionId, localEndpoint); return client; } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SynapseManagementClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SynapseManagementClientImpl.java index b85053487a39..096a2120e5d8 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SynapseManagementClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SynapseManagementClientImpl.java @@ -107,544 +107,635 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** Initializes a new instance of the SynapseManagementClientImpl type. */ +/** + * Initializes a new instance of the SynapseManagementClientImpl type. + */ @ServiceClient(builder = SynapseManagementClientBuilder.class) public final class SynapseManagementClientImpl implements SynapseManagementClient { - /** The ID of the target subscription. */ + /** + * The ID of the target subscription. + */ private final String subscriptionId; /** * Gets The ID of the target subscription. - * + * * @return the subscriptionId value. */ public String getSubscriptionId() { return this.subscriptionId; } - /** server parameter. */ + /** + * server parameter. + */ private final String endpoint; /** * Gets server parameter. - * + * * @return the endpoint value. */ public String getEndpoint() { return this.endpoint; } - /** The HTTP pipeline to send requests through. */ + /** + * The HTTP pipeline to send requests through. + */ private final HttpPipeline httpPipeline; /** * Gets The HTTP pipeline to send requests through. - * + * * @return the httpPipeline value. */ public HttpPipeline getHttpPipeline() { return this.httpPipeline; } - /** The serializer to serialize an object into a string. */ + /** + * The serializer to serialize an object into a string. + */ private final SerializerAdapter serializerAdapter; /** * Gets The serializer to serialize an object into a string. - * + * * @return the serializerAdapter value. */ SerializerAdapter getSerializerAdapter() { return this.serializerAdapter; } - /** The default poll interval for long-running operation. */ + /** + * The default poll interval for long-running operation. + */ private final Duration defaultPollInterval; /** * Gets The default poll interval for long-running operation. - * + * * @return the defaultPollInterval value. */ public Duration getDefaultPollInterval() { return this.defaultPollInterval; } - /** The AzureADOnlyAuthenticationsClient object to access its operations. */ + /** + * The AzureADOnlyAuthenticationsClient object to access its operations. + */ private final AzureADOnlyAuthenticationsClient azureADOnlyAuthentications; /** * Gets the AzureADOnlyAuthenticationsClient object to access its operations. - * + * * @return the AzureADOnlyAuthenticationsClient object. */ public AzureADOnlyAuthenticationsClient getAzureADOnlyAuthentications() { return this.azureADOnlyAuthentications; } - /** The OperationsClient object to access its operations. */ + /** + * The OperationsClient object to access its operations. + */ private final OperationsClient operations; /** * Gets the OperationsClient object to access its operations. - * + * * @return the OperationsClient object. */ public OperationsClient getOperations() { return this.operations; } - /** The IpFirewallRulesClient object to access its operations. */ + /** + * The IpFirewallRulesClient object to access its operations. + */ private final IpFirewallRulesClient ipFirewallRules; /** * Gets the IpFirewallRulesClient object to access its operations. - * + * * @return the IpFirewallRulesClient object. */ public IpFirewallRulesClient getIpFirewallRules() { return this.ipFirewallRules; } - /** The KeysClient object to access its operations. */ + /** + * The KeysClient object to access its operations. + */ private final KeysClient keys; /** * Gets the KeysClient object to access its operations. - * + * * @return the KeysClient object. */ public KeysClient getKeys() { return this.keys; } - /** The PrivateEndpointConnectionsClient object to access its operations. */ + /** + * The PrivateEndpointConnectionsClient object to access its operations. + */ private final PrivateEndpointConnectionsClient privateEndpointConnections; /** * Gets the PrivateEndpointConnectionsClient object to access its operations. - * + * * @return the PrivateEndpointConnectionsClient object. */ public PrivateEndpointConnectionsClient getPrivateEndpointConnections() { return this.privateEndpointConnections; } - /** The PrivateLinkResourcesOperationsClient object to access its operations. */ + /** + * The PrivateLinkResourcesOperationsClient object to access its operations. + */ private final PrivateLinkResourcesOperationsClient privateLinkResourcesOperations; /** * Gets the PrivateLinkResourcesOperationsClient object to access its operations. - * + * * @return the PrivateLinkResourcesOperationsClient object. */ public PrivateLinkResourcesOperationsClient getPrivateLinkResourcesOperations() { return this.privateLinkResourcesOperations; } - /** The PrivateLinkHubPrivateLinkResourcesClient object to access its operations. */ + /** + * The PrivateLinkHubPrivateLinkResourcesClient object to access its operations. + */ private final PrivateLinkHubPrivateLinkResourcesClient privateLinkHubPrivateLinkResources; /** * Gets the PrivateLinkHubPrivateLinkResourcesClient object to access its operations. - * + * * @return the PrivateLinkHubPrivateLinkResourcesClient object. */ public PrivateLinkHubPrivateLinkResourcesClient getPrivateLinkHubPrivateLinkResources() { return this.privateLinkHubPrivateLinkResources; } - /** The PrivateLinkHubsClient object to access its operations. */ + /** + * The PrivateLinkHubsClient object to access its operations. + */ private final PrivateLinkHubsClient privateLinkHubs; /** * Gets the PrivateLinkHubsClient object to access its operations. - * + * * @return the PrivateLinkHubsClient object. */ public PrivateLinkHubsClient getPrivateLinkHubs() { return this.privateLinkHubs; } - /** The PrivateEndpointConnectionsPrivateLinkHubsClient object to access its operations. */ + /** + * The PrivateEndpointConnectionsPrivateLinkHubsClient object to access its operations. + */ private final PrivateEndpointConnectionsPrivateLinkHubsClient privateEndpointConnectionsPrivateLinkHubs; /** * Gets the PrivateEndpointConnectionsPrivateLinkHubsClient object to access its operations. - * + * * @return the PrivateEndpointConnectionsPrivateLinkHubsClient object. */ public PrivateEndpointConnectionsPrivateLinkHubsClient getPrivateEndpointConnectionsPrivateLinkHubs() { return this.privateEndpointConnectionsPrivateLinkHubs; } - /** The SqlPoolsClient object to access its operations. */ + /** + * The SqlPoolsClient object to access its operations. + */ private final SqlPoolsClient sqlPools; /** * Gets the SqlPoolsClient object to access its operations. - * + * * @return the SqlPoolsClient object. */ public SqlPoolsClient getSqlPools() { return this.sqlPools; } - /** The SqlPoolMetadataSyncConfigsClient object to access its operations. */ + /** + * The SqlPoolMetadataSyncConfigsClient object to access its operations. + */ private final SqlPoolMetadataSyncConfigsClient sqlPoolMetadataSyncConfigs; /** * Gets the SqlPoolMetadataSyncConfigsClient object to access its operations. - * + * * @return the SqlPoolMetadataSyncConfigsClient object. */ public SqlPoolMetadataSyncConfigsClient getSqlPoolMetadataSyncConfigs() { return this.sqlPoolMetadataSyncConfigs; } - /** The SqlPoolOperationResultsClient object to access its operations. */ + /** + * The SqlPoolOperationResultsClient object to access its operations. + */ private final SqlPoolOperationResultsClient sqlPoolOperationResults; /** * Gets the SqlPoolOperationResultsClient object to access its operations. - * + * * @return the SqlPoolOperationResultsClient object. */ public SqlPoolOperationResultsClient getSqlPoolOperationResults() { return this.sqlPoolOperationResults; } - /** The SqlPoolGeoBackupPoliciesClient object to access its operations. */ + /** + * The SqlPoolGeoBackupPoliciesClient object to access its operations. + */ private final SqlPoolGeoBackupPoliciesClient sqlPoolGeoBackupPolicies; /** * Gets the SqlPoolGeoBackupPoliciesClient object to access its operations. - * + * * @return the SqlPoolGeoBackupPoliciesClient object. */ public SqlPoolGeoBackupPoliciesClient getSqlPoolGeoBackupPolicies() { return this.sqlPoolGeoBackupPolicies; } - /** The SqlPoolDataWarehouseUserActivitiesClient object to access its operations. */ + /** + * The SqlPoolDataWarehouseUserActivitiesClient object to access its operations. + */ private final SqlPoolDataWarehouseUserActivitiesClient sqlPoolDataWarehouseUserActivities; /** * Gets the SqlPoolDataWarehouseUserActivitiesClient object to access its operations. - * + * * @return the SqlPoolDataWarehouseUserActivitiesClient object. */ public SqlPoolDataWarehouseUserActivitiesClient getSqlPoolDataWarehouseUserActivities() { return this.sqlPoolDataWarehouseUserActivities; } - /** The SqlPoolRestorePointsClient object to access its operations. */ + /** + * The SqlPoolRestorePointsClient object to access its operations. + */ private final SqlPoolRestorePointsClient sqlPoolRestorePoints; /** * Gets the SqlPoolRestorePointsClient object to access its operations. - * + * * @return the SqlPoolRestorePointsClient object. */ public SqlPoolRestorePointsClient getSqlPoolRestorePoints() { return this.sqlPoolRestorePoints; } - /** The SqlPoolReplicationLinksClient object to access its operations. */ + /** + * The SqlPoolReplicationLinksClient object to access its operations. + */ private final SqlPoolReplicationLinksClient sqlPoolReplicationLinks; /** * Gets the SqlPoolReplicationLinksClient object to access its operations. - * + * * @return the SqlPoolReplicationLinksClient object. */ public SqlPoolReplicationLinksClient getSqlPoolReplicationLinks() { return this.sqlPoolReplicationLinks; } - /** The SqlPoolMaintenanceWindowsClient object to access its operations. */ + /** + * The SqlPoolMaintenanceWindowsClient object to access its operations. + */ private final SqlPoolMaintenanceWindowsClient sqlPoolMaintenanceWindows; /** * Gets the SqlPoolMaintenanceWindowsClient object to access its operations. - * + * * @return the SqlPoolMaintenanceWindowsClient object. */ public SqlPoolMaintenanceWindowsClient getSqlPoolMaintenanceWindows() { return this.sqlPoolMaintenanceWindows; } - /** The SqlPoolMaintenanceWindowOptionsClient object to access its operations. */ + /** + * The SqlPoolMaintenanceWindowOptionsClient object to access its operations. + */ private final SqlPoolMaintenanceWindowOptionsClient sqlPoolMaintenanceWindowOptions; /** * Gets the SqlPoolMaintenanceWindowOptionsClient object to access its operations. - * + * * @return the SqlPoolMaintenanceWindowOptionsClient object. */ public SqlPoolMaintenanceWindowOptionsClient getSqlPoolMaintenanceWindowOptions() { return this.sqlPoolMaintenanceWindowOptions; } - /** The SqlPoolTransparentDataEncryptionsClient object to access its operations. */ + /** + * The SqlPoolTransparentDataEncryptionsClient object to access its operations. + */ private final SqlPoolTransparentDataEncryptionsClient sqlPoolTransparentDataEncryptions; /** * Gets the SqlPoolTransparentDataEncryptionsClient object to access its operations. - * + * * @return the SqlPoolTransparentDataEncryptionsClient object. */ public SqlPoolTransparentDataEncryptionsClient getSqlPoolTransparentDataEncryptions() { return this.sqlPoolTransparentDataEncryptions; } - /** The SqlPoolBlobAuditingPoliciesClient object to access its operations. */ + /** + * The SqlPoolBlobAuditingPoliciesClient object to access its operations. + */ private final SqlPoolBlobAuditingPoliciesClient sqlPoolBlobAuditingPolicies; /** * Gets the SqlPoolBlobAuditingPoliciesClient object to access its operations. - * + * * @return the SqlPoolBlobAuditingPoliciesClient object. */ public SqlPoolBlobAuditingPoliciesClient getSqlPoolBlobAuditingPolicies() { return this.sqlPoolBlobAuditingPolicies; } - /** The SqlPoolOperationsClient object to access its operations. */ + /** + * The SqlPoolOperationsClient object to access its operations. + */ private final SqlPoolOperationsClient sqlPoolOperations; /** * Gets the SqlPoolOperationsClient object to access its operations. - * + * * @return the SqlPoolOperationsClient object. */ public SqlPoolOperationsClient getSqlPoolOperations() { return this.sqlPoolOperations; } - /** The SqlPoolUsagesClient object to access its operations. */ + /** + * The SqlPoolUsagesClient object to access its operations. + */ private final SqlPoolUsagesClient sqlPoolUsages; /** * Gets the SqlPoolUsagesClient object to access its operations. - * + * * @return the SqlPoolUsagesClient object. */ public SqlPoolUsagesClient getSqlPoolUsages() { return this.sqlPoolUsages; } - /** The SqlPoolSensitivityLabelsClient object to access its operations. */ + /** + * The SqlPoolSensitivityLabelsClient object to access its operations. + */ private final SqlPoolSensitivityLabelsClient sqlPoolSensitivityLabels; /** * Gets the SqlPoolSensitivityLabelsClient object to access its operations. - * + * * @return the SqlPoolSensitivityLabelsClient object. */ public SqlPoolSensitivityLabelsClient getSqlPoolSensitivityLabels() { return this.sqlPoolSensitivityLabels; } - /** The SqlPoolRecommendedSensitivityLabelsClient object to access its operations. */ + /** + * The SqlPoolRecommendedSensitivityLabelsClient object to access its operations. + */ private final SqlPoolRecommendedSensitivityLabelsClient sqlPoolRecommendedSensitivityLabels; /** * Gets the SqlPoolRecommendedSensitivityLabelsClient object to access its operations. - * + * * @return the SqlPoolRecommendedSensitivityLabelsClient object. */ public SqlPoolRecommendedSensitivityLabelsClient getSqlPoolRecommendedSensitivityLabels() { return this.sqlPoolRecommendedSensitivityLabels; } - /** The SqlPoolSchemasClient object to access its operations. */ + /** + * The SqlPoolSchemasClient object to access its operations. + */ private final SqlPoolSchemasClient sqlPoolSchemas; /** * Gets the SqlPoolSchemasClient object to access its operations. - * + * * @return the SqlPoolSchemasClient object. */ public SqlPoolSchemasClient getSqlPoolSchemas() { return this.sqlPoolSchemas; } - /** The SqlPoolTablesClient object to access its operations. */ + /** + * The SqlPoolTablesClient object to access its operations. + */ private final SqlPoolTablesClient sqlPoolTables; /** * Gets the SqlPoolTablesClient object to access its operations. - * + * * @return the SqlPoolTablesClient object. */ public SqlPoolTablesClient getSqlPoolTables() { return this.sqlPoolTables; } - /** The SqlPoolTableColumnsClient object to access its operations. */ + /** + * The SqlPoolTableColumnsClient object to access its operations. + */ private final SqlPoolTableColumnsClient sqlPoolTableColumns; /** * Gets the SqlPoolTableColumnsClient object to access its operations. - * + * * @return the SqlPoolTableColumnsClient object. */ public SqlPoolTableColumnsClient getSqlPoolTableColumns() { return this.sqlPoolTableColumns; } - /** The SqlPoolConnectionPoliciesClient object to access its operations. */ + /** + * The SqlPoolConnectionPoliciesClient object to access its operations. + */ private final SqlPoolConnectionPoliciesClient sqlPoolConnectionPolicies; /** * Gets the SqlPoolConnectionPoliciesClient object to access its operations. - * + * * @return the SqlPoolConnectionPoliciesClient object. */ public SqlPoolConnectionPoliciesClient getSqlPoolConnectionPolicies() { return this.sqlPoolConnectionPolicies; } - /** The SqlPoolVulnerabilityAssessmentsClient object to access its operations. */ + /** + * The SqlPoolVulnerabilityAssessmentsClient object to access its operations. + */ private final SqlPoolVulnerabilityAssessmentsClient sqlPoolVulnerabilityAssessments; /** * Gets the SqlPoolVulnerabilityAssessmentsClient object to access its operations. - * + * * @return the SqlPoolVulnerabilityAssessmentsClient object. */ public SqlPoolVulnerabilityAssessmentsClient getSqlPoolVulnerabilityAssessments() { return this.sqlPoolVulnerabilityAssessments; } - /** The SqlPoolVulnerabilityAssessmentScansClient object to access its operations. */ + /** + * The SqlPoolVulnerabilityAssessmentScansClient object to access its operations. + */ private final SqlPoolVulnerabilityAssessmentScansClient sqlPoolVulnerabilityAssessmentScans; /** * Gets the SqlPoolVulnerabilityAssessmentScansClient object to access its operations. - * + * * @return the SqlPoolVulnerabilityAssessmentScansClient object. */ public SqlPoolVulnerabilityAssessmentScansClient getSqlPoolVulnerabilityAssessmentScans() { return this.sqlPoolVulnerabilityAssessmentScans; } - /** The SqlPoolSecurityAlertPoliciesClient object to access its operations. */ + /** + * The SqlPoolSecurityAlertPoliciesClient object to access its operations. + */ private final SqlPoolSecurityAlertPoliciesClient sqlPoolSecurityAlertPolicies; /** * Gets the SqlPoolSecurityAlertPoliciesClient object to access its operations. - * + * * @return the SqlPoolSecurityAlertPoliciesClient object. */ public SqlPoolSecurityAlertPoliciesClient getSqlPoolSecurityAlertPolicies() { return this.sqlPoolSecurityAlertPolicies; } - /** The SqlPoolVulnerabilityAssessmentRuleBaselinesClient object to access its operations. */ + /** + * The SqlPoolVulnerabilityAssessmentRuleBaselinesClient object to access its operations. + */ private final SqlPoolVulnerabilityAssessmentRuleBaselinesClient sqlPoolVulnerabilityAssessmentRuleBaselines; /** * Gets the SqlPoolVulnerabilityAssessmentRuleBaselinesClient object to access its operations. - * + * * @return the SqlPoolVulnerabilityAssessmentRuleBaselinesClient object. */ public SqlPoolVulnerabilityAssessmentRuleBaselinesClient getSqlPoolVulnerabilityAssessmentRuleBaselines() { return this.sqlPoolVulnerabilityAssessmentRuleBaselines; } - /** The ExtendedSqlPoolBlobAuditingPoliciesClient object to access its operations. */ + /** + * The ExtendedSqlPoolBlobAuditingPoliciesClient object to access its operations. + */ private final ExtendedSqlPoolBlobAuditingPoliciesClient extendedSqlPoolBlobAuditingPolicies; /** * Gets the ExtendedSqlPoolBlobAuditingPoliciesClient object to access its operations. - * + * * @return the ExtendedSqlPoolBlobAuditingPoliciesClient object. */ public ExtendedSqlPoolBlobAuditingPoliciesClient getExtendedSqlPoolBlobAuditingPolicies() { return this.extendedSqlPoolBlobAuditingPolicies; } - /** The DataMaskingPoliciesClient object to access its operations. */ + /** + * The DataMaskingPoliciesClient object to access its operations. + */ private final DataMaskingPoliciesClient dataMaskingPolicies; /** * Gets the DataMaskingPoliciesClient object to access its operations. - * + * * @return the DataMaskingPoliciesClient object. */ public DataMaskingPoliciesClient getDataMaskingPolicies() { return this.dataMaskingPolicies; } - /** The DataMaskingRulesClient object to access its operations. */ + /** + * The DataMaskingRulesClient object to access its operations. + */ private final DataMaskingRulesClient dataMaskingRules; /** * Gets the DataMaskingRulesClient object to access its operations. - * + * * @return the DataMaskingRulesClient object. */ public DataMaskingRulesClient getDataMaskingRules() { return this.dataMaskingRules; } - /** The SqlPoolColumnsClient object to access its operations. */ + /** + * The SqlPoolColumnsClient object to access its operations. + */ private final SqlPoolColumnsClient sqlPoolColumns; /** * Gets the SqlPoolColumnsClient object to access its operations. - * + * * @return the SqlPoolColumnsClient object. */ public SqlPoolColumnsClient getSqlPoolColumns() { return this.sqlPoolColumns; } - /** The SqlPoolWorkloadGroupsClient object to access its operations. */ + /** + * The SqlPoolWorkloadGroupsClient object to access its operations. + */ private final SqlPoolWorkloadGroupsClient sqlPoolWorkloadGroups; /** * Gets the SqlPoolWorkloadGroupsClient object to access its operations. - * + * * @return the SqlPoolWorkloadGroupsClient object. */ public SqlPoolWorkloadGroupsClient getSqlPoolWorkloadGroups() { return this.sqlPoolWorkloadGroups; } - /** The SqlPoolWorkloadClassifiersClient object to access its operations. */ + /** + * The SqlPoolWorkloadClassifiersClient object to access its operations. + */ private final SqlPoolWorkloadClassifiersClient sqlPoolWorkloadClassifiers; /** * Gets the SqlPoolWorkloadClassifiersClient object to access its operations. - * + * * @return the SqlPoolWorkloadClassifiersClient object. */ public SqlPoolWorkloadClassifiersClient getSqlPoolWorkloadClassifiers() { return this.sqlPoolWorkloadClassifiers; } - /** The WorkspaceManagedSqlServerBlobAuditingPoliciesClient object to access its operations. */ + /** + * The WorkspaceManagedSqlServerBlobAuditingPoliciesClient object to access its operations. + */ private final WorkspaceManagedSqlServerBlobAuditingPoliciesClient workspaceManagedSqlServerBlobAuditingPolicies; /** * Gets the WorkspaceManagedSqlServerBlobAuditingPoliciesClient object to access its operations. - * + * * @return the WorkspaceManagedSqlServerBlobAuditingPoliciesClient object. */ public WorkspaceManagedSqlServerBlobAuditingPoliciesClient getWorkspaceManagedSqlServerBlobAuditingPolicies() { return this.workspaceManagedSqlServerBlobAuditingPolicies; } - /** The WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClient object to access its operations. */ - private final WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClient - workspaceManagedSqlServerExtendedBlobAuditingPolicies; + /** + * The WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClient object to access its operations. + */ + private final WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClient workspaceManagedSqlServerExtendedBlobAuditingPolicies; /** * Gets the WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClient object to access its operations. - * + * * @return the WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClient object. */ public WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClient @@ -652,25 +743,28 @@ public WorkspaceManagedSqlServerBlobAuditingPoliciesClient getWorkspaceManagedSq return this.workspaceManagedSqlServerExtendedBlobAuditingPolicies; } - /** The WorkspaceManagedSqlServerSecurityAlertPoliciesClient object to access its operations. */ + /** + * The WorkspaceManagedSqlServerSecurityAlertPoliciesClient object to access its operations. + */ private final WorkspaceManagedSqlServerSecurityAlertPoliciesClient workspaceManagedSqlServerSecurityAlertPolicies; /** * Gets the WorkspaceManagedSqlServerSecurityAlertPoliciesClient object to access its operations. - * + * * @return the WorkspaceManagedSqlServerSecurityAlertPoliciesClient object. */ public WorkspaceManagedSqlServerSecurityAlertPoliciesClient getWorkspaceManagedSqlServerSecurityAlertPolicies() { return this.workspaceManagedSqlServerSecurityAlertPolicies; } - /** The WorkspaceManagedSqlServerVulnerabilityAssessmentsClient object to access its operations. */ - private final WorkspaceManagedSqlServerVulnerabilityAssessmentsClient - workspaceManagedSqlServerVulnerabilityAssessments; + /** + * The WorkspaceManagedSqlServerVulnerabilityAssessmentsClient object to access its operations. + */ + private final WorkspaceManagedSqlServerVulnerabilityAssessmentsClient workspaceManagedSqlServerVulnerabilityAssessments; /** * Gets the WorkspaceManagedSqlServerVulnerabilityAssessmentsClient object to access its operations. - * + * * @return the WorkspaceManagedSqlServerVulnerabilityAssessmentsClient object. */ public WorkspaceManagedSqlServerVulnerabilityAssessmentsClient @@ -678,49 +772,56 @@ public WorkspaceManagedSqlServerSecurityAlertPoliciesClient getWorkspaceManagedS return this.workspaceManagedSqlServerVulnerabilityAssessments; } - /** The WorkspaceManagedSqlServerEncryptionProtectorsClient object to access its operations. */ + /** + * The WorkspaceManagedSqlServerEncryptionProtectorsClient object to access its operations. + */ private final WorkspaceManagedSqlServerEncryptionProtectorsClient workspaceManagedSqlServerEncryptionProtectors; /** * Gets the WorkspaceManagedSqlServerEncryptionProtectorsClient object to access its operations. - * + * * @return the WorkspaceManagedSqlServerEncryptionProtectorsClient object. */ public WorkspaceManagedSqlServerEncryptionProtectorsClient getWorkspaceManagedSqlServerEncryptionProtectors() { return this.workspaceManagedSqlServerEncryptionProtectors; } - /** The WorkspaceManagedSqlServerUsagesClient object to access its operations. */ + /** + * The WorkspaceManagedSqlServerUsagesClient object to access its operations. + */ private final WorkspaceManagedSqlServerUsagesClient workspaceManagedSqlServerUsages; /** * Gets the WorkspaceManagedSqlServerUsagesClient object to access its operations. - * + * * @return the WorkspaceManagedSqlServerUsagesClient object. */ public WorkspaceManagedSqlServerUsagesClient getWorkspaceManagedSqlServerUsages() { return this.workspaceManagedSqlServerUsages; } - /** The WorkspaceManagedSqlServerRecoverableSqlPoolsClient object to access its operations. */ + /** + * The WorkspaceManagedSqlServerRecoverableSqlPoolsClient object to access its operations. + */ private final WorkspaceManagedSqlServerRecoverableSqlPoolsClient workspaceManagedSqlServerRecoverableSqlPools; /** * Gets the WorkspaceManagedSqlServerRecoverableSqlPoolsClient object to access its operations. - * + * * @return the WorkspaceManagedSqlServerRecoverableSqlPoolsClient object. */ public WorkspaceManagedSqlServerRecoverableSqlPoolsClient getWorkspaceManagedSqlServerRecoverableSqlPools() { return this.workspaceManagedSqlServerRecoverableSqlPools; } - /** The WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient object to access its operations. */ - private final WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient - workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings; + /** + * The WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient object to access its operations. + */ + private final WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings; /** * Gets the WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient object to access its operations. - * + * * @return the WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient object. */ public WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient @@ -728,348 +829,406 @@ public WorkspaceManagedSqlServerRecoverableSqlPoolsClient getWorkspaceManagedSql return this.workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings; } - /** The WorkspacesClient object to access its operations. */ + /** + * The WorkspacesClient object to access its operations. + */ private final WorkspacesClient workspaces; /** * Gets the WorkspacesClient object to access its operations. - * + * * @return the WorkspacesClient object. */ public WorkspacesClient getWorkspaces() { return this.workspaces; } - /** The WorkspaceAadAdminsClient object to access its operations. */ + /** + * The WorkspaceAadAdminsClient object to access its operations. + */ private final WorkspaceAadAdminsClient workspaceAadAdmins; /** * Gets the WorkspaceAadAdminsClient object to access its operations. - * + * * @return the WorkspaceAadAdminsClient object. */ public WorkspaceAadAdminsClient getWorkspaceAadAdmins() { return this.workspaceAadAdmins; } - /** The WorkspaceSqlAadAdminsClient object to access its operations. */ + /** + * The WorkspaceSqlAadAdminsClient object to access its operations. + */ private final WorkspaceSqlAadAdminsClient workspaceSqlAadAdmins; /** * Gets the WorkspaceSqlAadAdminsClient object to access its operations. - * + * * @return the WorkspaceSqlAadAdminsClient object. */ public WorkspaceSqlAadAdminsClient getWorkspaceSqlAadAdmins() { return this.workspaceSqlAadAdmins; } - /** The WorkspaceManagedIdentitySqlControlSettingsClient object to access its operations. */ + /** + * The WorkspaceManagedIdentitySqlControlSettingsClient object to access its operations. + */ private final WorkspaceManagedIdentitySqlControlSettingsClient workspaceManagedIdentitySqlControlSettings; /** * Gets the WorkspaceManagedIdentitySqlControlSettingsClient object to access its operations. - * + * * @return the WorkspaceManagedIdentitySqlControlSettingsClient object. */ public WorkspaceManagedIdentitySqlControlSettingsClient getWorkspaceManagedIdentitySqlControlSettings() { return this.workspaceManagedIdentitySqlControlSettings; } - /** The RestorableDroppedSqlPoolsClient object to access its operations. */ + /** + * The RestorableDroppedSqlPoolsClient object to access its operations. + */ private final RestorableDroppedSqlPoolsClient restorableDroppedSqlPools; /** * Gets the RestorableDroppedSqlPoolsClient object to access its operations. - * + * * @return the RestorableDroppedSqlPoolsClient object. */ public RestorableDroppedSqlPoolsClient getRestorableDroppedSqlPools() { return this.restorableDroppedSqlPools; } - /** The BigDataPoolsClient object to access its operations. */ + /** + * The BigDataPoolsClient object to access its operations. + */ private final BigDataPoolsClient bigDataPools; /** * Gets the BigDataPoolsClient object to access its operations. - * + * * @return the BigDataPoolsClient object. */ public BigDataPoolsClient getBigDataPools() { return this.bigDataPools; } - /** The LibrariesClient object to access its operations. */ + /** + * The LibrariesClient object to access its operations. + */ private final LibrariesClient libraries; /** * Gets the LibrariesClient object to access its operations. - * + * * @return the LibrariesClient object. */ public LibrariesClient getLibraries() { return this.libraries; } - /** The LibrariesOperationsClient object to access its operations. */ + /** + * The LibrariesOperationsClient object to access its operations. + */ private final LibrariesOperationsClient librariesOperations; /** * Gets the LibrariesOperationsClient object to access its operations. - * + * * @return the LibrariesOperationsClient object. */ public LibrariesOperationsClient getLibrariesOperations() { return this.librariesOperations; } - /** The IntegrationRuntimesClient object to access its operations. */ + /** + * The IntegrationRuntimesClient object to access its operations. + */ private final IntegrationRuntimesClient integrationRuntimes; /** * Gets the IntegrationRuntimesClient object to access its operations. - * + * * @return the IntegrationRuntimesClient object. */ public IntegrationRuntimesClient getIntegrationRuntimes() { return this.integrationRuntimes; } - /** The IntegrationRuntimeNodeIpAddressOperationsClient object to access its operations. */ + /** + * The IntegrationRuntimeNodeIpAddressOperationsClient object to access its operations. + */ private final IntegrationRuntimeNodeIpAddressOperationsClient integrationRuntimeNodeIpAddressOperations; /** * Gets the IntegrationRuntimeNodeIpAddressOperationsClient object to access its operations. - * + * * @return the IntegrationRuntimeNodeIpAddressOperationsClient object. */ public IntegrationRuntimeNodeIpAddressOperationsClient getIntegrationRuntimeNodeIpAddressOperations() { return this.integrationRuntimeNodeIpAddressOperations; } - /** The IntegrationRuntimeObjectMetadatasClient object to access its operations. */ + /** + * The IntegrationRuntimeObjectMetadatasClient object to access its operations. + */ private final IntegrationRuntimeObjectMetadatasClient integrationRuntimeObjectMetadatas; /** * Gets the IntegrationRuntimeObjectMetadatasClient object to access its operations. - * + * * @return the IntegrationRuntimeObjectMetadatasClient object. */ public IntegrationRuntimeObjectMetadatasClient getIntegrationRuntimeObjectMetadatas() { return this.integrationRuntimeObjectMetadatas; } - /** The IntegrationRuntimeNodesClient object to access its operations. */ + /** + * The IntegrationRuntimeNodesClient object to access its operations. + */ private final IntegrationRuntimeNodesClient integrationRuntimeNodes; /** * Gets the IntegrationRuntimeNodesClient object to access its operations. - * + * * @return the IntegrationRuntimeNodesClient object. */ public IntegrationRuntimeNodesClient getIntegrationRuntimeNodes() { return this.integrationRuntimeNodes; } - /** The IntegrationRuntimeCredentialsClient object to access its operations. */ + /** + * The IntegrationRuntimeCredentialsClient object to access its operations. + */ private final IntegrationRuntimeCredentialsClient integrationRuntimeCredentials; /** * Gets the IntegrationRuntimeCredentialsClient object to access its operations. - * + * * @return the IntegrationRuntimeCredentialsClient object. */ public IntegrationRuntimeCredentialsClient getIntegrationRuntimeCredentials() { return this.integrationRuntimeCredentials; } - /** The IntegrationRuntimeConnectionInfosClient object to access its operations. */ + /** + * The IntegrationRuntimeConnectionInfosClient object to access its operations. + */ private final IntegrationRuntimeConnectionInfosClient integrationRuntimeConnectionInfos; /** * Gets the IntegrationRuntimeConnectionInfosClient object to access its operations. - * + * * @return the IntegrationRuntimeConnectionInfosClient object. */ public IntegrationRuntimeConnectionInfosClient getIntegrationRuntimeConnectionInfos() { return this.integrationRuntimeConnectionInfos; } - /** The IntegrationRuntimeAuthKeysOperationsClient object to access its operations. */ + /** + * The IntegrationRuntimeAuthKeysOperationsClient object to access its operations. + */ private final IntegrationRuntimeAuthKeysOperationsClient integrationRuntimeAuthKeysOperations; /** * Gets the IntegrationRuntimeAuthKeysOperationsClient object to access its operations. - * + * * @return the IntegrationRuntimeAuthKeysOperationsClient object. */ public IntegrationRuntimeAuthKeysOperationsClient getIntegrationRuntimeAuthKeysOperations() { return this.integrationRuntimeAuthKeysOperations; } - /** The IntegrationRuntimeMonitoringDatasClient object to access its operations. */ + /** + * The IntegrationRuntimeMonitoringDatasClient object to access its operations. + */ private final IntegrationRuntimeMonitoringDatasClient integrationRuntimeMonitoringDatas; /** * Gets the IntegrationRuntimeMonitoringDatasClient object to access its operations. - * + * * @return the IntegrationRuntimeMonitoringDatasClient object. */ public IntegrationRuntimeMonitoringDatasClient getIntegrationRuntimeMonitoringDatas() { return this.integrationRuntimeMonitoringDatas; } - /** The IntegrationRuntimeStatusOperationsClient object to access its operations. */ + /** + * The IntegrationRuntimeStatusOperationsClient object to access its operations. + */ private final IntegrationRuntimeStatusOperationsClient integrationRuntimeStatusOperations; /** * Gets the IntegrationRuntimeStatusOperationsClient object to access its operations. - * + * * @return the IntegrationRuntimeStatusOperationsClient object. */ public IntegrationRuntimeStatusOperationsClient getIntegrationRuntimeStatusOperations() { return this.integrationRuntimeStatusOperations; } - /** The GetsClient object to access its operations. */ + /** + * The GetsClient object to access its operations. + */ private final GetsClient gets; /** * Gets the GetsClient object to access its operations. - * + * * @return the GetsClient object. */ public GetsClient getGets() { return this.gets; } - /** The SparkConfigurationsClient object to access its operations. */ + /** + * The SparkConfigurationsClient object to access its operations. + */ private final SparkConfigurationsClient sparkConfigurations; /** * Gets the SparkConfigurationsClient object to access its operations. - * + * * @return the SparkConfigurationsClient object. */ public SparkConfigurationsClient getSparkConfigurations() { return this.sparkConfigurations; } - /** The SparkConfigurationsOperationsClient object to access its operations. */ + /** + * The SparkConfigurationsOperationsClient object to access its operations. + */ private final SparkConfigurationsOperationsClient sparkConfigurationsOperations; /** * Gets the SparkConfigurationsOperationsClient object to access its operations. - * + * * @return the SparkConfigurationsOperationsClient object. */ public SparkConfigurationsOperationsClient getSparkConfigurationsOperations() { return this.sparkConfigurationsOperations; } - /** The KustoOperationsClient object to access its operations. */ + /** + * The KustoOperationsClient object to access its operations. + */ private final KustoOperationsClient kustoOperations; /** * Gets the KustoOperationsClient object to access its operations. - * + * * @return the KustoOperationsClient object. */ public KustoOperationsClient getKustoOperations() { return this.kustoOperations; } - /** The KustoPoolsClient object to access its operations. */ + /** + * The KustoPoolsClient object to access its operations. + */ private final KustoPoolsClient kustoPools; /** * Gets the KustoPoolsClient object to access its operations. - * + * * @return the KustoPoolsClient object. */ public KustoPoolsClient getKustoPools() { return this.kustoPools; } - /** The KustoPoolChildResourcesClient object to access its operations. */ + /** + * The KustoPoolChildResourcesClient object to access its operations. + */ private final KustoPoolChildResourcesClient kustoPoolChildResources; /** * Gets the KustoPoolChildResourcesClient object to access its operations. - * + * * @return the KustoPoolChildResourcesClient object. */ public KustoPoolChildResourcesClient getKustoPoolChildResources() { return this.kustoPoolChildResources; } - /** The KustoPoolAttachedDatabaseConfigurationsClient object to access its operations. */ + /** + * The KustoPoolAttachedDatabaseConfigurationsClient object to access its operations. + */ private final KustoPoolAttachedDatabaseConfigurationsClient kustoPoolAttachedDatabaseConfigurations; /** * Gets the KustoPoolAttachedDatabaseConfigurationsClient object to access its operations. - * + * * @return the KustoPoolAttachedDatabaseConfigurationsClient object. */ public KustoPoolAttachedDatabaseConfigurationsClient getKustoPoolAttachedDatabaseConfigurations() { return this.kustoPoolAttachedDatabaseConfigurations; } - /** The KustoPoolDatabasesClient object to access its operations. */ + /** + * The KustoPoolDatabasesClient object to access its operations. + */ private final KustoPoolDatabasesClient kustoPoolDatabases; /** * Gets the KustoPoolDatabasesClient object to access its operations. - * + * * @return the KustoPoolDatabasesClient object. */ public KustoPoolDatabasesClient getKustoPoolDatabases() { return this.kustoPoolDatabases; } - /** The KustoPoolDataConnectionsClient object to access its operations. */ + /** + * The KustoPoolDataConnectionsClient object to access its operations. + */ private final KustoPoolDataConnectionsClient kustoPoolDataConnections; /** * Gets the KustoPoolDataConnectionsClient object to access its operations. - * + * * @return the KustoPoolDataConnectionsClient object. */ public KustoPoolDataConnectionsClient getKustoPoolDataConnections() { return this.kustoPoolDataConnections; } - /** The KustoPoolPrincipalAssignmentsClient object to access its operations. */ + /** + * The KustoPoolPrincipalAssignmentsClient object to access its operations. + */ private final KustoPoolPrincipalAssignmentsClient kustoPoolPrincipalAssignments; /** * Gets the KustoPoolPrincipalAssignmentsClient object to access its operations. - * + * * @return the KustoPoolPrincipalAssignmentsClient object. */ public KustoPoolPrincipalAssignmentsClient getKustoPoolPrincipalAssignments() { return this.kustoPoolPrincipalAssignments; } - /** The KustoPoolDatabasePrincipalAssignmentsClient object to access its operations. */ + /** + * The KustoPoolDatabasePrincipalAssignmentsClient object to access its operations. + */ private final KustoPoolDatabasePrincipalAssignmentsClient kustoPoolDatabasePrincipalAssignments; /** * Gets the KustoPoolDatabasePrincipalAssignmentsClient object to access its operations. - * + * * @return the KustoPoolDatabasePrincipalAssignmentsClient object. */ public KustoPoolDatabasePrincipalAssignmentsClient getKustoPoolDatabasePrincipalAssignments() { return this.kustoPoolDatabasePrincipalAssignments; } - /** The KustoPoolPrivateLinkResourcesOperationsClient object to access its operations. */ + /** + * The KustoPoolPrivateLinkResourcesOperationsClient object to access its operations. + */ private final KustoPoolPrivateLinkResourcesOperationsClient kustoPoolPrivateLinkResourcesOperations; /** * Gets the KustoPoolPrivateLinkResourcesOperationsClient object to access its operations. - * + * * @return the KustoPoolPrivateLinkResourcesOperationsClient object. */ public KustoPoolPrivateLinkResourcesOperationsClient getKustoPoolPrivateLinkResourcesOperations() { @@ -1078,7 +1237,7 @@ public KustoPoolPrivateLinkResourcesOperationsClient getKustoPoolPrivateLinkReso /** * Initializes an instance of SynapseManagementClient client. - * + * * @param httpPipeline The HTTP pipeline to send requests through. * @param serializerAdapter The serializer to serialize an object into a string. * @param defaultPollInterval The default poll interval for long-running operation. @@ -1086,13 +1245,8 @@ public KustoPoolPrivateLinkResourcesOperationsClient getKustoPoolPrivateLinkReso * @param subscriptionId The ID of the target subscription. * @param endpoint server parameter. */ - SynapseManagementClientImpl( - HttpPipeline httpPipeline, - SerializerAdapter serializerAdapter, - Duration defaultPollInterval, - AzureEnvironment environment, - String subscriptionId, - String endpoint) { + SynapseManagementClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter, + Duration defaultPollInterval, AzureEnvironment environment, String subscriptionId, String endpoint) { this.httpPipeline = httpPipeline; this.serializerAdapter = serializerAdapter; this.defaultPollInterval = defaultPollInterval; @@ -1129,34 +1283,34 @@ public KustoPoolPrivateLinkResourcesOperationsClient getKustoPoolPrivateLinkReso this.sqlPoolVulnerabilityAssessments = new SqlPoolVulnerabilityAssessmentsClientImpl(this); this.sqlPoolVulnerabilityAssessmentScans = new SqlPoolVulnerabilityAssessmentScansClientImpl(this); this.sqlPoolSecurityAlertPolicies = new SqlPoolSecurityAlertPoliciesClientImpl(this); - this.sqlPoolVulnerabilityAssessmentRuleBaselines = - new SqlPoolVulnerabilityAssessmentRuleBaselinesClientImpl(this); + this.sqlPoolVulnerabilityAssessmentRuleBaselines + = new SqlPoolVulnerabilityAssessmentRuleBaselinesClientImpl(this); this.extendedSqlPoolBlobAuditingPolicies = new ExtendedSqlPoolBlobAuditingPoliciesClientImpl(this); this.dataMaskingPolicies = new DataMaskingPoliciesClientImpl(this); this.dataMaskingRules = new DataMaskingRulesClientImpl(this); this.sqlPoolColumns = new SqlPoolColumnsClientImpl(this); this.sqlPoolWorkloadGroups = new SqlPoolWorkloadGroupsClientImpl(this); this.sqlPoolWorkloadClassifiers = new SqlPoolWorkloadClassifiersClientImpl(this); - this.workspaceManagedSqlServerBlobAuditingPolicies = - new WorkspaceManagedSqlServerBlobAuditingPoliciesClientImpl(this); - this.workspaceManagedSqlServerExtendedBlobAuditingPolicies = - new WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClientImpl(this); - this.workspaceManagedSqlServerSecurityAlertPolicies = - new WorkspaceManagedSqlServerSecurityAlertPoliciesClientImpl(this); - this.workspaceManagedSqlServerVulnerabilityAssessments = - new WorkspaceManagedSqlServerVulnerabilityAssessmentsClientImpl(this); - this.workspaceManagedSqlServerEncryptionProtectors = - new WorkspaceManagedSqlServerEncryptionProtectorsClientImpl(this); + this.workspaceManagedSqlServerBlobAuditingPolicies + = new WorkspaceManagedSqlServerBlobAuditingPoliciesClientImpl(this); + this.workspaceManagedSqlServerExtendedBlobAuditingPolicies + = new WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClientImpl(this); + this.workspaceManagedSqlServerSecurityAlertPolicies + = new WorkspaceManagedSqlServerSecurityAlertPoliciesClientImpl(this); + this.workspaceManagedSqlServerVulnerabilityAssessments + = new WorkspaceManagedSqlServerVulnerabilityAssessmentsClientImpl(this); + this.workspaceManagedSqlServerEncryptionProtectors + = new WorkspaceManagedSqlServerEncryptionProtectorsClientImpl(this); this.workspaceManagedSqlServerUsages = new WorkspaceManagedSqlServerUsagesClientImpl(this); - this.workspaceManagedSqlServerRecoverableSqlPools = - new WorkspaceManagedSqlServerRecoverableSqlPoolsClientImpl(this); - this.workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings = - new WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClientImpl(this); + this.workspaceManagedSqlServerRecoverableSqlPools + = new WorkspaceManagedSqlServerRecoverableSqlPoolsClientImpl(this); + this.workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings + = new WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClientImpl(this); this.workspaces = new WorkspacesClientImpl(this); this.workspaceAadAdmins = new WorkspaceAadAdminsClientImpl(this); this.workspaceSqlAadAdmins = new WorkspaceSqlAadAdminsClientImpl(this); - this.workspaceManagedIdentitySqlControlSettings = - new WorkspaceManagedIdentitySqlControlSettingsClientImpl(this); + this.workspaceManagedIdentitySqlControlSettings + = new WorkspaceManagedIdentitySqlControlSettingsClientImpl(this); this.restorableDroppedSqlPools = new RestorableDroppedSqlPoolsClientImpl(this); this.bigDataPools = new BigDataPoolsClientImpl(this); this.libraries = new LibrariesClientImpl(this); @@ -1186,7 +1340,7 @@ public KustoPoolPrivateLinkResourcesOperationsClient getKustoPoolPrivateLinkReso /** * Gets default client context. - * + * * @return the default client context. */ public Context getContext() { @@ -1195,7 +1349,7 @@ public Context getContext() { /** * Merges default client context with provided context. - * + * * @param context the context to be merged with default client context. * @return the merged context. */ @@ -1205,7 +1359,7 @@ public Context mergeContext(Context context) { /** * Gets long running operation result. - * + * * @param activationResponse the response of activation operation. * @param httpPipeline the http pipeline. * @param pollResultType type of poll result. @@ -1215,26 +1369,15 @@ public Context mergeContext(Context context) { * @param type of final result. * @return poller flux for poll result and final result. */ - public PollerFlux, U> getLroResult( - Mono>> activationResponse, - HttpPipeline httpPipeline, - Type pollResultType, - Type finalResultType, - Context context) { - return PollerFactory - .create( - serializerAdapter, - httpPipeline, - pollResultType, - finalResultType, - defaultPollInterval, - activationResponse, - context); + public PollerFlux, U> getLroResult(Mono>> activationResponse, + HttpPipeline httpPipeline, Type pollResultType, Type finalResultType, Context context) { + return PollerFactory.create(serializerAdapter, httpPipeline, pollResultType, finalResultType, + defaultPollInterval, activationResponse, context); } /** * Gets the final result, or an error, based on last async poll response. - * + * * @param response the last async poll response. * @param type of poll result. * @param type of final result. @@ -1247,19 +1390,16 @@ public Mono getLroFinalResultOrError(AsyncPollResponse, HttpResponse errorResponse = null; PollResult.Error lroError = response.getValue().getError(); if (lroError != null) { - errorResponse = - new HttpResponseImpl( - lroError.getResponseStatusCode(), lroError.getResponseHeaders(), lroError.getResponseBody()); + errorResponse = new HttpResponseImpl(lroError.getResponseStatusCode(), lroError.getResponseHeaders(), + lroError.getResponseBody()); errorMessage = response.getValue().getError().getMessage(); String errorBody = response.getValue().getError().getResponseBody(); if (errorBody != null) { // try to deserialize error body to ManagementError try { - managementError = - this - .getSerializerAdapter() - .deserialize(errorBody, ManagementError.class, SerializerEncoding.JSON); + managementError = this.getSerializerAdapter().deserialize(errorBody, ManagementError.class, + SerializerEncoding.JSON); if (managementError.getCode() == null || managementError.getMessage() == null) { managementError = null; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/TransparentDataEncryptionImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/TransparentDataEncryptionImpl.java index a53bffe7de97..e003b0cc46d3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/TransparentDataEncryptionImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/TransparentDataEncryptionImpl.java @@ -65,8 +65,8 @@ private com.azure.resourcemanager.synapse.SynapseManager manager() { private TransparentDataEncryptionName transparentDataEncryptionName; - public TransparentDataEncryptionImpl withExistingSqlPool( - String resourceGroupName, String workspaceName, String sqlPoolName) { + public TransparentDataEncryptionImpl withExistingSqlPool(String resourceGroupName, String workspaceName, + String sqlPoolName) { this.resourceGroupName = resourceGroupName; this.workspaceName = workspaceName; this.sqlPoolName = sqlPoolName; @@ -74,39 +74,24 @@ public TransparentDataEncryptionImpl withExistingSqlPool( } public TransparentDataEncryption create() { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolTransparentDataEncryptions() - .createOrUpdateWithResponse( - resourceGroupName, - workspaceName, - sqlPoolName, - transparentDataEncryptionName, - this.innerModel(), - Context.NONE) + this.innerObject + = serviceManager + .serviceClient().getSqlPoolTransparentDataEncryptions().createOrUpdateWithResponse(resourceGroupName, + workspaceName, sqlPoolName, transparentDataEncryptionName, this.innerModel(), Context.NONE) .getValue(); return this; } public TransparentDataEncryption create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolTransparentDataEncryptions() - .createOrUpdateWithResponse( - resourceGroupName, - workspaceName, - sqlPoolName, - transparentDataEncryptionName, - this.innerModel(), - context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getSqlPoolTransparentDataEncryptions() + .createOrUpdateWithResponse(resourceGroupName, workspaceName, sqlPoolName, transparentDataEncryptionName, + this.innerModel(), context) + .getValue(); return this; } - TransparentDataEncryptionImpl( - TransparentDataEncryptionName name, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + TransparentDataEncryptionImpl(TransparentDataEncryptionName name, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = new TransparentDataEncryptionInner(); this.serviceManager = serviceManager; this.transparentDataEncryptionName = name; @@ -117,67 +102,44 @@ public TransparentDataEncryptionImpl update() { } public TransparentDataEncryption apply() { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolTransparentDataEncryptions() - .createOrUpdateWithResponse( - resourceGroupName, - workspaceName, - sqlPoolName, - transparentDataEncryptionName, - this.innerModel(), - Context.NONE) + this.innerObject + = serviceManager + .serviceClient().getSqlPoolTransparentDataEncryptions().createOrUpdateWithResponse(resourceGroupName, + workspaceName, sqlPoolName, transparentDataEncryptionName, this.innerModel(), Context.NONE) .getValue(); return this; } public TransparentDataEncryption apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolTransparentDataEncryptions() - .createOrUpdateWithResponse( - resourceGroupName, - workspaceName, - sqlPoolName, - transparentDataEncryptionName, - this.innerModel(), - context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getSqlPoolTransparentDataEncryptions() + .createOrUpdateWithResponse(resourceGroupName, workspaceName, sqlPoolName, transparentDataEncryptionName, + this.innerModel(), context) + .getValue(); return this; } - TransparentDataEncryptionImpl( - TransparentDataEncryptionInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + TransparentDataEncryptionImpl(TransparentDataEncryptionInner innerObject, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.workspaceName = Utils.getValueFromIdByName(innerObject.id(), "workspaces"); - this.sqlPoolName = Utils.getValueFromIdByName(innerObject.id(), "sqlPools"); - this.transparentDataEncryptionName = - TransparentDataEncryptionName - .fromString(Utils.getValueFromIdByName(innerObject.id(), "transparentDataEncryption")); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.workspaceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workspaces"); + this.sqlPoolName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "sqlPools"); + this.transparentDataEncryptionName = TransparentDataEncryptionName + .fromString(ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "transparentDataEncryption")); } public TransparentDataEncryption refresh() { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolTransparentDataEncryptions() - .getWithResponse( - resourceGroupName, workspaceName, sqlPoolName, transparentDataEncryptionName, Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getSqlPoolTransparentDataEncryptions() + .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, transparentDataEncryptionName, Context.NONE) + .getValue(); return this; } public TransparentDataEncryption refresh(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolTransparentDataEncryptions() - .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, transparentDataEncryptionName, context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getSqlPoolTransparentDataEncryptions() + .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, transparentDataEncryptionName, context) + .getValue(); return this; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/VulnerabilityAssessmentScanRecordImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/VulnerabilityAssessmentScanRecordImpl.java index b0514aa41fd4..d5927c8a81dc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/VulnerabilityAssessmentScanRecordImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/VulnerabilityAssessmentScanRecordImpl.java @@ -18,8 +18,7 @@ public final class VulnerabilityAssessmentScanRecordImpl implements Vulnerabilit private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - VulnerabilityAssessmentScanRecordImpl( - VulnerabilityAssessmentScanRecordInner innerObject, + VulnerabilityAssessmentScanRecordImpl(VulnerabilityAssessmentScanRecordInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkloadClassifierImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkloadClassifierImpl.java index b9290dba4d2d..cf21cf027905 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkloadClassifierImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkloadClassifierImpl.java @@ -72,8 +72,8 @@ private com.azure.resourcemanager.synapse.SynapseManager manager() { private String workloadClassifierName; - public WorkloadClassifierImpl withExistingWorkloadGroup( - String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName) { + public WorkloadClassifierImpl withExistingWorkloadGroup(String resourceGroupName, String workspaceName, + String sqlPoolName, String workloadGroupName) { this.resourceGroupName = resourceGroupName; this.workspaceName = workspaceName; this.sqlPoolName = sqlPoolName; @@ -82,34 +82,16 @@ public WorkloadClassifierImpl withExistingWorkloadGroup( } public WorkloadClassifier create() { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolWorkloadClassifiers() - .createOrUpdate( - resourceGroupName, - workspaceName, - sqlPoolName, - workloadGroupName, - workloadClassifierName, - this.innerModel(), - Context.NONE); + this.innerObject + = serviceManager.serviceClient().getSqlPoolWorkloadClassifiers().createOrUpdate(resourceGroupName, + workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, this.innerModel(), Context.NONE); return this; } public WorkloadClassifier create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolWorkloadClassifiers() - .createOrUpdate( - resourceGroupName, - workspaceName, - sqlPoolName, - workloadGroupName, - workloadClassifierName, - this.innerModel(), - context); + this.innerObject + = serviceManager.serviceClient().getSqlPoolWorkloadClassifiers().createOrUpdate(resourceGroupName, + workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, this.innerModel(), context); return this; } @@ -124,72 +106,42 @@ public WorkloadClassifierImpl update() { } public WorkloadClassifier apply() { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolWorkloadClassifiers() - .createOrUpdate( - resourceGroupName, - workspaceName, - sqlPoolName, - workloadGroupName, - workloadClassifierName, - this.innerModel(), - Context.NONE); + this.innerObject + = serviceManager.serviceClient().getSqlPoolWorkloadClassifiers().createOrUpdate(resourceGroupName, + workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, this.innerModel(), Context.NONE); return this; } public WorkloadClassifier apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolWorkloadClassifiers() - .createOrUpdate( - resourceGroupName, - workspaceName, - sqlPoolName, - workloadGroupName, - workloadClassifierName, - this.innerModel(), - context); + this.innerObject + = serviceManager.serviceClient().getSqlPoolWorkloadClassifiers().createOrUpdate(resourceGroupName, + workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, this.innerModel(), context); return this; } - WorkloadClassifierImpl( - WorkloadClassifierInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + WorkloadClassifierImpl(WorkloadClassifierInner innerObject, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.workspaceName = Utils.getValueFromIdByName(innerObject.id(), "workspaces"); - this.sqlPoolName = Utils.getValueFromIdByName(innerObject.id(), "sqlPools"); - this.workloadGroupName = Utils.getValueFromIdByName(innerObject.id(), "workloadGroups"); - this.workloadClassifierName = Utils.getValueFromIdByName(innerObject.id(), "workloadClassifiers"); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.workspaceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workspaces"); + this.sqlPoolName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "sqlPools"); + this.workloadGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workloadGroups"); + this.workloadClassifierName + = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workloadClassifiers"); } public WorkloadClassifier refresh() { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolWorkloadClassifiers() - .getWithResponse( - resourceGroupName, - workspaceName, - sqlPoolName, - workloadGroupName, - workloadClassifierName, - Context.NONE) - .getValue(); + this.innerObject + = serviceManager.serviceClient().getSqlPoolWorkloadClassifiers().getWithResponse(resourceGroupName, + workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, Context.NONE).getValue(); return this; } public WorkloadClassifier refresh(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolWorkloadClassifiers() - .getWithResponse( - resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, context) - .getValue(); + this.innerObject + = serviceManager.serviceClient().getSqlPoolWorkloadClassifiers().getWithResponse(resourceGroupName, + workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, context).getValue(); return this; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkloadGroupImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkloadGroupImpl.java index 46d8f4cf9110..280d8633da93 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkloadGroupImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkloadGroupImpl.java @@ -77,22 +77,14 @@ public WorkloadGroupImpl withExistingSqlPool(String resourceGroupName, String wo } public WorkloadGroup create() { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolWorkloadGroups() - .createOrUpdate( - resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, this.innerModel(), Context.NONE); + this.innerObject = serviceManager.serviceClient().getSqlPoolWorkloadGroups().createOrUpdate(resourceGroupName, + workspaceName, sqlPoolName, workloadGroupName, this.innerModel(), Context.NONE); return this; } public WorkloadGroup create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolWorkloadGroups() - .createOrUpdate( - resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, this.innerModel(), context); + this.innerObject = serviceManager.serviceClient().getSqlPoolWorkloadGroups().createOrUpdate(resourceGroupName, + workspaceName, sqlPoolName, workloadGroupName, this.innerModel(), context); return this; } @@ -107,51 +99,35 @@ public WorkloadGroupImpl update() { } public WorkloadGroup apply() { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolWorkloadGroups() - .createOrUpdate( - resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, this.innerModel(), Context.NONE); + this.innerObject = serviceManager.serviceClient().getSqlPoolWorkloadGroups().createOrUpdate(resourceGroupName, + workspaceName, sqlPoolName, workloadGroupName, this.innerModel(), Context.NONE); return this; } public WorkloadGroup apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolWorkloadGroups() - .createOrUpdate( - resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, this.innerModel(), context); + this.innerObject = serviceManager.serviceClient().getSqlPoolWorkloadGroups().createOrUpdate(resourceGroupName, + workspaceName, sqlPoolName, workloadGroupName, this.innerModel(), context); return this; } WorkloadGroupImpl(WorkloadGroupInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.workspaceName = Utils.getValueFromIdByName(innerObject.id(), "workspaces"); - this.sqlPoolName = Utils.getValueFromIdByName(innerObject.id(), "sqlPools"); - this.workloadGroupName = Utils.getValueFromIdByName(innerObject.id(), "workloadGroups"); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.workspaceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workspaces"); + this.sqlPoolName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "sqlPools"); + this.workloadGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workloadGroups"); } public WorkloadGroup refresh() { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolWorkloadGroups() - .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getSqlPoolWorkloadGroups() + .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, Context.NONE).getValue(); return this; } public WorkloadGroup refresh(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getSqlPoolWorkloadGroups() - .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getSqlPoolWorkloadGroups() + .getWithResponse(resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, context).getValue(); return this; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceAadAdminInfoImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceAadAdminInfoImpl.java index 172d006a0fe9..949a459cd89e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceAadAdminInfoImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceAadAdminInfoImpl.java @@ -12,8 +12,8 @@ public final class WorkspaceAadAdminInfoImpl implements WorkspaceAadAdminInfo { private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - WorkspaceAadAdminInfoImpl( - WorkspaceAadAdminInfoInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + WorkspaceAadAdminInfoImpl(WorkspaceAadAdminInfoInner innerObject, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceAadAdminsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceAadAdminsClientImpl.java index ade55ec6569c..3dd8dabe3dd3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceAadAdminsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceAadAdminsClientImpl.java @@ -33,22 +33,28 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in WorkspaceAadAdminsClient. */ +/** + * An instance of this class provides access to all the operations defined in WorkspaceAadAdminsClient. + */ public final class WorkspaceAadAdminsClientImpl implements WorkspaceAadAdminsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final WorkspaceAadAdminsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of WorkspaceAadAdminsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ WorkspaceAadAdminsClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy.create(WorkspaceAadAdminsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service = RestProxy.create(WorkspaceAadAdminsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } @@ -59,56 +65,38 @@ public final class WorkspaceAadAdminsClientImpl implements WorkspaceAadAdminsCli @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface WorkspaceAadAdminsService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/administrators/activeDirectory") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/administrators/activeDirectory") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/administrators/activeDirectory") - @ExpectedResponses({200, 202}) + Mono> get(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/administrators/activeDirectory") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono>> createOrUpdate(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @BodyParam("application/json") WorkspaceAadAdminInfoInner aadAdminInfo, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/administrators/activeDirectory") - @ExpectedResponses({200, 202, 204}) + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/administrators/activeDirectory") + @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @HeaderParam("Accept") String accept, - Context context); + Mono>> delete(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @HeaderParam("Accept") String accept, Context context); } /** * Gets a workspace active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -117,19 +105,15 @@ Mono>> delete( * @return a workspace active directory admin along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -141,23 +125,14 @@ private Mono> getWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets a workspace active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -167,19 +142,15 @@ private Mono> getWithResponseAsync( * @return a workspace active directory admin along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -191,20 +162,13 @@ private Mono> getWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, accept, context); } /** * Gets a workspace active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -219,7 +183,7 @@ private Mono getAsync(String resourceGroupName, Stri /** * Gets a workspace active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -229,14 +193,14 @@ private Mono getAsync(String resourceGroupName, Stri * @return a workspace active directory admin along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String workspaceName, Context context) { + public Response getWithResponse(String resourceGroupName, String workspaceName, + Context context) { return getWithResponseAsync(resourceGroupName, workspaceName, context).block(); } /** * Gets a workspace active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -251,30 +215,26 @@ public WorkspaceAadAdminInfoInner get(String resourceGroupName, String workspace /** * Creates or updates a workspace active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param aadAdminInfo Workspace active directory administrator properties. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workspace active directory administrator along with {@link Response} on successful completion of {@link - * Mono}. + * @return workspace active directory administrator along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String resourceGroupName, String workspaceName, WorkspaceAadAdminInfoInner aadAdminInfo) { + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String workspaceName, WorkspaceAadAdminInfoInner aadAdminInfo) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -291,24 +251,14 @@ private Mono>> createOrUpdateWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - aadAdminInfo, - accept, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, aadAdminInfo, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates a workspace active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param aadAdminInfo Workspace active directory administrator properties. @@ -316,23 +266,19 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workspace active directory administrator along with {@link Response} on successful completion of {@link - * Mono}. + * @return workspace active directory administrator along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String resourceGroupName, String workspaceName, WorkspaceAadAdminInfoInner aadAdminInfo, Context context) { + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String workspaceName, WorkspaceAadAdminInfoInner aadAdminInfo, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -349,21 +295,13 @@ private Mono>> createOrUpdateWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - aadAdminInfo, - accept, - context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, aadAdminInfo, accept, context); } /** * Creates or updates a workspace active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param aadAdminInfo Workspace active directory administrator properties. @@ -375,21 +313,16 @@ private Mono>> createOrUpdateWithResponseAsync( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, WorkspaceAadAdminInfoInner> beginCreateOrUpdateAsync( String resourceGroupName, String workspaceName, WorkspaceAadAdminInfoInner aadAdminInfo) { - Mono>> mono = - createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, aadAdminInfo); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - WorkspaceAadAdminInfoInner.class, - WorkspaceAadAdminInfoInner.class, - this.client.getContext()); + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, aadAdminInfo); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), WorkspaceAadAdminInfoInner.class, WorkspaceAadAdminInfoInner.class, + this.client.getContext()); } /** * Creates or updates a workspace active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param aadAdminInfo Workspace active directory administrator properties. @@ -403,21 +336,15 @@ private PollerFlux, WorkspaceAadAdminInfo private PollerFlux, WorkspaceAadAdminInfoInner> beginCreateOrUpdateAsync( String resourceGroupName, String workspaceName, WorkspaceAadAdminInfoInner aadAdminInfo, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, aadAdminInfo, context); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - WorkspaceAadAdminInfoInner.class, - WorkspaceAadAdminInfoInner.class, - context); + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, aadAdminInfo, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), WorkspaceAadAdminInfoInner.class, WorkspaceAadAdminInfoInner.class, context); } /** * Creates or updates a workspace active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param aadAdminInfo Workspace active directory administrator properties. @@ -427,14 +354,14 @@ private PollerFlux, WorkspaceAadAdminInfo * @return the {@link SyncPoller} for polling of workspace active directory administrator. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, WorkspaceAadAdminInfoInner> beginCreateOrUpdate( - String resourceGroupName, String workspaceName, WorkspaceAadAdminInfoInner aadAdminInfo) { + public SyncPoller, WorkspaceAadAdminInfoInner> + beginCreateOrUpdate(String resourceGroupName, String workspaceName, WorkspaceAadAdminInfoInner aadAdminInfo) { return this.beginCreateOrUpdateAsync(resourceGroupName, workspaceName, aadAdminInfo).getSyncPoller(); } /** * Creates or updates a workspace active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param aadAdminInfo Workspace active directory administrator properties. @@ -452,7 +379,7 @@ public SyncPoller, WorkspaceAadAdminInfoI /** * Creates or updates a workspace active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param aadAdminInfo Workspace active directory administrator properties. @@ -462,16 +389,15 @@ public SyncPoller, WorkspaceAadAdminInfoI * @return workspace active directory administrator on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, String workspaceName, WorkspaceAadAdminInfoInner aadAdminInfo) { - return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, aadAdminInfo) - .last() + private Mono createOrUpdateAsync(String resourceGroupName, String workspaceName, + WorkspaceAadAdminInfoInner aadAdminInfo) { + return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, aadAdminInfo).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Creates or updates a workspace active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param aadAdminInfo Workspace active directory administrator properties. @@ -482,16 +408,15 @@ private Mono createOrUpdateAsync( * @return workspace active directory administrator on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, String workspaceName, WorkspaceAadAdminInfoInner aadAdminInfo, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, aadAdminInfo, context) - .last() + private Mono createOrUpdateAsync(String resourceGroupName, String workspaceName, + WorkspaceAadAdminInfoInner aadAdminInfo, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, aadAdminInfo, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Creates or updates a workspace active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param aadAdminInfo Workspace active directory administrator properties. @@ -501,14 +426,14 @@ private Mono createOrUpdateAsync( * @return workspace active directory administrator. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkspaceAadAdminInfoInner createOrUpdate( - String resourceGroupName, String workspaceName, WorkspaceAadAdminInfoInner aadAdminInfo) { + public WorkspaceAadAdminInfoInner createOrUpdate(String resourceGroupName, String workspaceName, + WorkspaceAadAdminInfoInner aadAdminInfo) { return createOrUpdateAsync(resourceGroupName, workspaceName, aadAdminInfo).block(); } /** * Creates or updates a workspace active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param aadAdminInfo Workspace active directory administrator properties. @@ -519,14 +444,14 @@ public WorkspaceAadAdminInfoInner createOrUpdate( * @return workspace active directory administrator. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkspaceAadAdminInfoInner createOrUpdate( - String resourceGroupName, String workspaceName, WorkspaceAadAdminInfoInner aadAdminInfo, Context context) { + public WorkspaceAadAdminInfoInner createOrUpdate(String resourceGroupName, String workspaceName, + WorkspaceAadAdminInfoInner aadAdminInfo, Context context) { return createOrUpdateAsync(resourceGroupName, workspaceName, aadAdminInfo, context).block(); } /** * Deletes a workspace active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -537,16 +462,12 @@ public WorkspaceAadAdminInfoInner createOrUpdate( @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, String workspaceName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -558,23 +479,14 @@ private Mono>> deleteWithResponseAsync(String resource final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .delete( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes a workspace active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -584,19 +496,15 @@ private Mono>> deleteWithResponseAsync(String resource * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync( - String resourceGroupName, String workspaceName, Context context) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String workspaceName, + Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -608,20 +516,13 @@ private Mono>> deleteWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .delete( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, accept, context); } /** * Deletes a workspace active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -632,15 +533,13 @@ private Mono>> deleteWithResponseAsync( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String workspaceName) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, workspaceName); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Deletes a workspace active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -650,18 +549,17 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync( - String resourceGroupName, String workspaceName, Context context) { + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String workspaceName, + Context context) { context = this.client.mergeContext(context); Mono>> mono = deleteWithResponseAsync(resourceGroupName, workspaceName, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * Deletes a workspace active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -676,7 +574,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a workspace active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -686,14 +584,14 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete( - String resourceGroupName, String workspaceName, Context context) { + public SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, + Context context) { return this.beginDeleteAsync(resourceGroupName, workspaceName, context).getSyncPoller(); } /** * Deletes a workspace active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -708,7 +606,7 @@ private Mono deleteAsync(String resourceGroupName, String workspaceName) { /** * Deletes a workspace active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -719,14 +617,13 @@ private Mono deleteAsync(String resourceGroupName, String workspaceName) { */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String workspaceName, Context context) { - return beginDeleteAsync(resourceGroupName, workspaceName, context) - .last() + return beginDeleteAsync(resourceGroupName, workspaceName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Deletes a workspace active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -740,7 +637,7 @@ public void delete(String resourceGroupName, String workspaceName) { /** * Deletes a workspace active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceAadAdminsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceAadAdminsImpl.java index 49fe5db394b7..eb2de8df7814 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceAadAdminsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceAadAdminsImpl.java @@ -20,21 +20,18 @@ public final class WorkspaceAadAdminsImpl implements WorkspaceAadAdmins { private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public WorkspaceAadAdminsImpl( - WorkspaceAadAdminsClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + public WorkspaceAadAdminsImpl(WorkspaceAadAdminsClient innerClient, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public Response getWithResponse( - String resourceGroupName, String workspaceName, Context context) { - Response inner = - this.serviceClient().getWithResponse(resourceGroupName, workspaceName, context); + public Response getWithResponse(String resourceGroupName, String workspaceName, + Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, workspaceName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new WorkspaceAadAdminInfoImpl(inner.getValue(), this.manager())); } else { return null; @@ -50,10 +47,10 @@ public WorkspaceAadAdminInfo get(String resourceGroupName, String workspaceName) } } - public WorkspaceAadAdminInfo createOrUpdate( - String resourceGroupName, String workspaceName, WorkspaceAadAdminInfoInner aadAdminInfo) { - WorkspaceAadAdminInfoInner inner = - this.serviceClient().createOrUpdate(resourceGroupName, workspaceName, aadAdminInfo); + public WorkspaceAadAdminInfo createOrUpdate(String resourceGroupName, String workspaceName, + WorkspaceAadAdminInfoInner aadAdminInfo) { + WorkspaceAadAdminInfoInner inner + = this.serviceClient().createOrUpdate(resourceGroupName, workspaceName, aadAdminInfo); if (inner != null) { return new WorkspaceAadAdminInfoImpl(inner, this.manager()); } else { @@ -61,10 +58,10 @@ public WorkspaceAadAdminInfo createOrUpdate( } } - public WorkspaceAadAdminInfo createOrUpdate( - String resourceGroupName, String workspaceName, WorkspaceAadAdminInfoInner aadAdminInfo, Context context) { - WorkspaceAadAdminInfoInner inner = - this.serviceClient().createOrUpdate(resourceGroupName, workspaceName, aadAdminInfo, context); + public WorkspaceAadAdminInfo createOrUpdate(String resourceGroupName, String workspaceName, + WorkspaceAadAdminInfoInner aadAdminInfo, Context context) { + WorkspaceAadAdminInfoInner inner + = this.serviceClient().createOrUpdate(resourceGroupName, workspaceName, aadAdminInfo, context); if (inner != null) { return new WorkspaceAadAdminInfoImpl(inner, this.manager()); } else { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceImpl.java index d7ae3389ed17..828b607fd360 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceImpl.java @@ -100,12 +100,8 @@ public String managedVirtualNetwork() { public List privateEndpointConnections() { List inner = this.innerModel().privateEndpointConnections(); if (inner != null) { - return Collections - .unmodifiableList( - inner - .stream() - .map(inner1 -> new PrivateEndpointConnectionImpl(inner1, this.manager())) - .collect(Collectors.toList())); + return Collections.unmodifiableList(inner.stream() + .map(inner1 -> new PrivateEndpointConnectionImpl(inner1, this.manager())).collect(Collectors.toList())); } else { return Collections.emptyList(); } @@ -196,20 +192,14 @@ public WorkspaceImpl withExistingResourceGroup(String resourceGroupName) { } public Workspace create() { - this.innerObject = - serviceManager - .serviceClient() - .getWorkspaces() - .createOrUpdate(resourceGroupName, workspaceName, this.innerModel(), Context.NONE); + this.innerObject = serviceManager.serviceClient().getWorkspaces().createOrUpdate(resourceGroupName, + workspaceName, this.innerModel(), Context.NONE); return this; } public Workspace create(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getWorkspaces() - .createOrUpdate(resourceGroupName, workspaceName, this.innerModel(), context); + this.innerObject = serviceManager.serviceClient().getWorkspaces().createOrUpdate(resourceGroupName, + workspaceName, this.innerModel(), context); return this; } @@ -225,47 +215,33 @@ public WorkspaceImpl update() { } public Workspace apply() { - this.innerObject = - serviceManager - .serviceClient() - .getWorkspaces() - .update(resourceGroupName, workspaceName, updateWorkspacePatchInfo, Context.NONE); + this.innerObject = serviceManager.serviceClient().getWorkspaces().update(resourceGroupName, workspaceName, + updateWorkspacePatchInfo, Context.NONE); return this; } public Workspace apply(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getWorkspaces() - .update(resourceGroupName, workspaceName, updateWorkspacePatchInfo, context); + this.innerObject = serviceManager.serviceClient().getWorkspaces().update(resourceGroupName, workspaceName, + updateWorkspacePatchInfo, context); return this; } WorkspaceImpl(WorkspaceInner innerObject, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; - this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.workspaceName = Utils.getValueFromIdByName(innerObject.id(), "workspaces"); + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.workspaceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workspaces"); } public Workspace refresh() { - this.innerObject = - serviceManager - .serviceClient() - .getWorkspaces() - .getByResourceGroupWithResponse(resourceGroupName, workspaceName, Context.NONE) - .getValue(); + this.innerObject = serviceManager.serviceClient().getWorkspaces() + .getByResourceGroupWithResponse(resourceGroupName, workspaceName, Context.NONE).getValue(); return this; } public Workspace refresh(Context context) { - this.innerObject = - serviceManager - .serviceClient() - .getWorkspaces() - .getByResourceGroupWithResponse(resourceGroupName, workspaceName, context) - .getValue(); + this.innerObject = serviceManager.serviceClient().getWorkspaces() + .getByResourceGroupWithResponse(resourceGroupName, workspaceName, context).getValue(); return this; } @@ -334,8 +310,8 @@ public WorkspaceImpl withManagedVirtualNetwork(String managedVirtualNetwork) { return this; } - public WorkspaceImpl withPrivateEndpointConnections( - List privateEndpointConnections) { + public WorkspaceImpl + withPrivateEndpointConnections(List privateEndpointConnections) { this.innerModel().withPrivateEndpointConnections(privateEndpointConnections); return this; } @@ -350,8 +326,8 @@ public WorkspaceImpl withEncryption(EncryptionDetails encryption) { } } - public WorkspaceImpl withManagedVirtualNetworkSettings( - ManagedVirtualNetworkSettings managedVirtualNetworkSettings) { + public WorkspaceImpl + withManagedVirtualNetworkSettings(ManagedVirtualNetworkSettings managedVirtualNetworkSettings) { if (isInCreateMode()) { this.innerModel().withManagedVirtualNetworkSettings(managedVirtualNetworkSettings); return this; @@ -361,8 +337,8 @@ public WorkspaceImpl withManagedVirtualNetworkSettings( } } - public WorkspaceImpl withWorkspaceRepositoryConfiguration( - WorkspaceRepositoryConfiguration workspaceRepositoryConfiguration) { + public WorkspaceImpl + withWorkspaceRepositoryConfiguration(WorkspaceRepositoryConfiguration workspaceRepositoryConfiguration) { if (isInCreateMode()) { this.innerModel().withWorkspaceRepositoryConfiguration(workspaceRepositoryConfiguration); return this; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedIdentitySqlControlSettingsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedIdentitySqlControlSettingsClientImpl.java index af4f0e33e977..923e19bacfe6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedIdentitySqlControlSettingsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedIdentitySqlControlSettingsClientImpl.java @@ -38,24 +38,24 @@ */ public final class WorkspaceManagedIdentitySqlControlSettingsClientImpl implements WorkspaceManagedIdentitySqlControlSettingsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final WorkspaceManagedIdentitySqlControlSettingsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of WorkspaceManagedIdentitySqlControlSettingsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ WorkspaceManagedIdentitySqlControlSettingsClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy - .create( - WorkspaceManagedIdentitySqlControlSettingsService.class, - client.getHttpPipeline(), - client.getSerializerAdapter()); + this.service = RestProxy.create(WorkspaceManagedIdentitySqlControlSettingsService.class, + client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } @@ -66,64 +66,47 @@ public final class WorkspaceManagedIdentitySqlControlSettingsClientImpl @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface WorkspaceManagedIdentitySqlControlSettingsService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/managedIdentitySqlControlSettings/default") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/managedIdentitySqlControlSettings/default") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @HeaderParam("Accept") String accept, - Context context); + Mono> get(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/managedIdentitySqlControlSettings/default") - @ExpectedResponses({200, 201}) + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/managedIdentitySqlControlSettings/default") + @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @BodyParam("application/json") - ManagedIdentitySqlControlSettingsModelInner managedIdentitySqlControlSettings, - @HeaderParam("Accept") String accept, - Context context); + Mono>> createOrUpdate(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @BodyParam("application/json") ManagedIdentitySqlControlSettingsModelInner managedIdentitySqlControlSettings, + @HeaderParam("Accept") String accept, Context context); } /** * Get Managed Identity Sql Control Settings. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return managed Identity Sql Control Settings along with {@link Response} on successful completion of {@link - * Mono}. + * @return managed Identity Sql Control Settings along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -135,46 +118,33 @@ private Mono> getWithRespo final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get Managed Identity Sql Control Settings. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return managed Identity Sql Control Settings along with {@link Response} on successful completion of {@link - * Mono}. + * @return managed Identity Sql Control Settings along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -186,20 +156,13 @@ private Mono> getWithRespo final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, accept, context); } /** * Get Managed Identity Sql Control Settings. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -214,7 +177,7 @@ private Mono getAsync(String resour /** * Get Managed Identity Sql Control Settings. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -224,14 +187,14 @@ private Mono getAsync(String resour * @return managed Identity Sql Control Settings along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String workspaceName, Context context) { + public Response getWithResponse(String resourceGroupName, + String workspaceName, Context context) { return getWithResponseAsync(resourceGroupName, workspaceName, context).block(); } /** * Get Managed Identity Sql Control Settings. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -246,32 +209,26 @@ public ManagedIdentitySqlControlSettingsModelInner get(String resourceGroupName, /** * Create or update Managed Identity Sql Control Settings. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param managedIdentitySqlControlSettings Managed Identity Sql Control Settings. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return managed Identity Sql Control Settings along with {@link Response} on successful completion of {@link - * Mono}. + * @return managed Identity Sql Control Settings along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String resourceGroupName, - String workspaceName, - ManagedIdentitySqlControlSettingsModelInner managedIdentitySqlControlSettings) { + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String workspaceName, ManagedIdentitySqlControlSettingsModelInner managedIdentitySqlControlSettings) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -281,34 +238,23 @@ private Mono>> createOrUpdateWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (managedIdentitySqlControlSettings == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter managedIdentitySqlControlSettings is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter managedIdentitySqlControlSettings is required and cannot be null.")); } else { managedIdentitySqlControlSettings.validate(); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - managedIdentitySqlControlSettings, - accept, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, managedIdentitySqlControlSettings, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Create or update Managed Identity Sql Control Settings. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param managedIdentitySqlControlSettings Managed Identity Sql Control Settings. @@ -316,26 +262,20 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return managed Identity Sql Control Settings along with {@link Response} on successful completion of {@link - * Mono}. + * @return managed Identity Sql Control Settings along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String resourceGroupName, - String workspaceName, - ManagedIdentitySqlControlSettingsModelInner managedIdentitySqlControlSettings, + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String workspaceName, ManagedIdentitySqlControlSettingsModelInner managedIdentitySqlControlSettings, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -345,31 +285,21 @@ private Mono>> createOrUpdateWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (managedIdentitySqlControlSettings == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter managedIdentitySqlControlSettings is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter managedIdentitySqlControlSettings is required and cannot be null.")); } else { managedIdentitySqlControlSettings.validate(); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - managedIdentitySqlControlSettings, - accept, - context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, managedIdentitySqlControlSettings, accept, context); } /** * Create or update Managed Identity Sql Control Settings. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param managedIdentitySqlControlSettings Managed Identity Sql Control Settings. @@ -379,27 +309,21 @@ private Mono>> createOrUpdateWithResponseAsync( * @return the {@link PollerFlux} for polling of managed Identity Sql Control Settings. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux< - PollResult, ManagedIdentitySqlControlSettingsModelInner> - beginCreateOrUpdateAsync( - String resourceGroupName, - String workspaceName, + private + PollerFlux, ManagedIdentitySqlControlSettingsModelInner> + beginCreateOrUpdateAsync(String resourceGroupName, String workspaceName, ManagedIdentitySqlControlSettingsModelInner managedIdentitySqlControlSettings) { - Mono>> mono = - createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, managedIdentitySqlControlSettings); - return this - .client + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, managedIdentitySqlControlSettings); + return this.client .getLroResult( - mono, - this.client.getHttpPipeline(), - ManagedIdentitySqlControlSettingsModelInner.class, - ManagedIdentitySqlControlSettingsModelInner.class, - this.client.getContext()); + mono, this.client.getHttpPipeline(), ManagedIdentitySqlControlSettingsModelInner.class, + ManagedIdentitySqlControlSettingsModelInner.class, this.client.getContext()); } /** * Create or update Managed Identity Sql Control Settings. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param managedIdentitySqlControlSettings Managed Identity Sql Control Settings. @@ -410,30 +334,22 @@ private Mono>> createOrUpdateWithResponseAsync( * @return the {@link PollerFlux} for polling of managed Identity Sql Control Settings. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux< - PollResult, ManagedIdentitySqlControlSettingsModelInner> - beginCreateOrUpdateAsync( - String resourceGroupName, - String workspaceName, - ManagedIdentitySqlControlSettingsModelInner managedIdentitySqlControlSettings, - Context context) { + private + PollerFlux, ManagedIdentitySqlControlSettingsModelInner> + beginCreateOrUpdateAsync(String resourceGroupName, String workspaceName, + ManagedIdentitySqlControlSettingsModelInner managedIdentitySqlControlSettings, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - createOrUpdateWithResponseAsync( - resourceGroupName, workspaceName, managedIdentitySqlControlSettings, context); - return this - .client + Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, + managedIdentitySqlControlSettings, context); + return this.client .getLroResult( - mono, - this.client.getHttpPipeline(), - ManagedIdentitySqlControlSettingsModelInner.class, - ManagedIdentitySqlControlSettingsModelInner.class, - context); + mono, this.client.getHttpPipeline(), ManagedIdentitySqlControlSettingsModelInner.class, + ManagedIdentitySqlControlSettingsModelInner.class, context); } /** * Create or update Managed Identity Sql Control Settings. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param managedIdentitySqlControlSettings Managed Identity Sql Control Settings. @@ -443,20 +359,17 @@ private Mono>> createOrUpdateWithResponseAsync( * @return the {@link SyncPoller} for polling of managed Identity Sql Control Settings. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller< - PollResult, ManagedIdentitySqlControlSettingsModelInner> - beginCreateOrUpdate( - String resourceGroupName, - String workspaceName, + public + SyncPoller, ManagedIdentitySqlControlSettingsModelInner> + beginCreateOrUpdate(String resourceGroupName, String workspaceName, ManagedIdentitySqlControlSettingsModelInner managedIdentitySqlControlSettings) { - return this - .beginCreateOrUpdateAsync(resourceGroupName, workspaceName, managedIdentitySqlControlSettings) + return this.beginCreateOrUpdateAsync(resourceGroupName, workspaceName, managedIdentitySqlControlSettings) .getSyncPoller(); } /** * Create or update Managed Identity Sql Control Settings. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param managedIdentitySqlControlSettings Managed Identity Sql Control Settings. @@ -467,13 +380,10 @@ private Mono>> createOrUpdateWithResponseAsync( * @return the {@link SyncPoller} for polling of managed Identity Sql Control Settings. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller< - PollResult, ManagedIdentitySqlControlSettingsModelInner> - beginCreateOrUpdate( - String resourceGroupName, - String workspaceName, - ManagedIdentitySqlControlSettingsModelInner managedIdentitySqlControlSettings, - Context context) { + public + SyncPoller, ManagedIdentitySqlControlSettingsModelInner> + beginCreateOrUpdate(String resourceGroupName, String workspaceName, + ManagedIdentitySqlControlSettingsModelInner managedIdentitySqlControlSettings, Context context) { return this .beginCreateOrUpdateAsync(resourceGroupName, workspaceName, managedIdentitySqlControlSettings, context) .getSyncPoller(); @@ -481,7 +391,7 @@ private Mono>> createOrUpdateWithResponseAsync( /** * Create or update Managed Identity Sql Control Settings. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param managedIdentitySqlControlSettings Managed Identity Sql Control Settings. @@ -491,18 +401,15 @@ private Mono>> createOrUpdateWithResponseAsync( * @return managed Identity Sql Control Settings on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, - String workspaceName, - ManagedIdentitySqlControlSettingsModelInner managedIdentitySqlControlSettings) { - return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, managedIdentitySqlControlSettings) - .last() + private Mono createOrUpdateAsync(String resourceGroupName, + String workspaceName, ManagedIdentitySqlControlSettingsModelInner managedIdentitySqlControlSettings) { + return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, managedIdentitySqlControlSettings).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Create or update Managed Identity Sql Control Settings. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param managedIdentitySqlControlSettings Managed Identity Sql Control Settings. @@ -513,19 +420,16 @@ private Mono createOrUpdateAsync( * @return managed Identity Sql Control Settings on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, - String workspaceName, - ManagedIdentitySqlControlSettingsModelInner managedIdentitySqlControlSettings, + private Mono createOrUpdateAsync(String resourceGroupName, + String workspaceName, ManagedIdentitySqlControlSettingsModelInner managedIdentitySqlControlSettings, Context context) { return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, managedIdentitySqlControlSettings, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + .last().flatMap(this.client::getLroFinalResultOrError); } /** * Create or update Managed Identity Sql Control Settings. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param managedIdentitySqlControlSettings Managed Identity Sql Control Settings. @@ -535,16 +439,14 @@ private Mono createOrUpdateAsync( * @return managed Identity Sql Control Settings. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ManagedIdentitySqlControlSettingsModelInner createOrUpdate( - String resourceGroupName, - String workspaceName, + public ManagedIdentitySqlControlSettingsModelInner createOrUpdate(String resourceGroupName, String workspaceName, ManagedIdentitySqlControlSettingsModelInner managedIdentitySqlControlSettings) { return createOrUpdateAsync(resourceGroupName, workspaceName, managedIdentitySqlControlSettings).block(); } /** * Create or update Managed Identity Sql Control Settings. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param managedIdentitySqlControlSettings Managed Identity Sql Control Settings. @@ -555,11 +457,8 @@ public ManagedIdentitySqlControlSettingsModelInner createOrUpdate( * @return managed Identity Sql Control Settings. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ManagedIdentitySqlControlSettingsModelInner createOrUpdate( - String resourceGroupName, - String workspaceName, - ManagedIdentitySqlControlSettingsModelInner managedIdentitySqlControlSettings, - Context context) { + public ManagedIdentitySqlControlSettingsModelInner createOrUpdate(String resourceGroupName, String workspaceName, + ManagedIdentitySqlControlSettingsModelInner managedIdentitySqlControlSettings, Context context) { return createOrUpdateAsync(resourceGroupName, workspaceName, managedIdentitySqlControlSettings, context) .block(); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedIdentitySqlControlSettingsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedIdentitySqlControlSettingsImpl.java index ca1b2e8efd10..e6702b7f1f78 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedIdentitySqlControlSettingsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedIdentitySqlControlSettingsImpl.java @@ -21,22 +21,18 @@ public final class WorkspaceManagedIdentitySqlControlSettingsImpl private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public WorkspaceManagedIdentitySqlControlSettingsImpl( - WorkspaceManagedIdentitySqlControlSettingsClient innerClient, + public WorkspaceManagedIdentitySqlControlSettingsImpl(WorkspaceManagedIdentitySqlControlSettingsClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public Response getWithResponse( - String resourceGroupName, String workspaceName, Context context) { - Response inner = - this.serviceClient().getWithResponse(resourceGroupName, workspaceName, context); + public Response getWithResponse(String resourceGroupName, + String workspaceName, Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, workspaceName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new ManagedIdentitySqlControlSettingsModelImpl(inner.getValue(), this.manager())); } else { return null; @@ -52,12 +48,10 @@ public ManagedIdentitySqlControlSettingsModel get(String resourceGroupName, Stri } } - public ManagedIdentitySqlControlSettingsModel createOrUpdate( - String resourceGroupName, - String workspaceName, + public ManagedIdentitySqlControlSettingsModel createOrUpdate(String resourceGroupName, String workspaceName, ManagedIdentitySqlControlSettingsModelInner managedIdentitySqlControlSettings) { - ManagedIdentitySqlControlSettingsModelInner inner = - this.serviceClient().createOrUpdate(resourceGroupName, workspaceName, managedIdentitySqlControlSettings); + ManagedIdentitySqlControlSettingsModelInner inner + = this.serviceClient().createOrUpdate(resourceGroupName, workspaceName, managedIdentitySqlControlSettings); if (inner != null) { return new ManagedIdentitySqlControlSettingsModelImpl(inner, this.manager()); } else { @@ -65,15 +59,10 @@ public ManagedIdentitySqlControlSettingsModel createOrUpdate( } } - public ManagedIdentitySqlControlSettingsModel createOrUpdate( - String resourceGroupName, - String workspaceName, - ManagedIdentitySqlControlSettingsModelInner managedIdentitySqlControlSettings, - Context context) { - ManagedIdentitySqlControlSettingsModelInner inner = - this - .serviceClient() - .createOrUpdate(resourceGroupName, workspaceName, managedIdentitySqlControlSettings, context); + public ManagedIdentitySqlControlSettingsModel createOrUpdate(String resourceGroupName, String workspaceName, + ManagedIdentitySqlControlSettingsModelInner managedIdentitySqlControlSettings, Context context) { + ManagedIdentitySqlControlSettingsModelInner inner = this.serviceClient().createOrUpdate(resourceGroupName, + workspaceName, managedIdentitySqlControlSettings, context); if (inner != null) { return new ManagedIdentitySqlControlSettingsModelImpl(inner, this.manager()); } else { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerBlobAuditingPoliciesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerBlobAuditingPoliciesClientImpl.java index b0f7bb113f1b..c6d72bd3e613 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerBlobAuditingPoliciesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerBlobAuditingPoliciesClientImpl.java @@ -44,24 +44,24 @@ */ public final class WorkspaceManagedSqlServerBlobAuditingPoliciesClientImpl implements WorkspaceManagedSqlServerBlobAuditingPoliciesClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final WorkspaceManagedSqlServerBlobAuditingPoliciesService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of WorkspaceManagedSqlServerBlobAuditingPoliciesClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ WorkspaceManagedSqlServerBlobAuditingPoliciesClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy - .create( - WorkspaceManagedSqlServerBlobAuditingPoliciesService.class, - client.getHttpPipeline(), - client.getSerializerAdapter()); + this.service = RestProxy.create(WorkspaceManagedSqlServerBlobAuditingPoliciesService.class, + client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } @@ -72,70 +72,50 @@ public final class WorkspaceManagedSqlServerBlobAuditingPoliciesClientImpl @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface WorkspaceManagedSqlServerBlobAuditingPoliciesService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/auditingSettings/{blobAuditingPolicyName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/auditingSettings/{blobAuditingPolicyName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono> get(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("blobAuditingPolicyName") BlobAuditingPolicyName blobAuditingPolicyName, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/auditingSettings/{blobAuditingPolicyName}") - @ExpectedResponses({200, 202}) + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/auditingSettings/{blobAuditingPolicyName}") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono>> createOrUpdate(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("blobAuditingPolicyName") BlobAuditingPolicyName blobAuditingPolicyName, @BodyParam("application/json") ServerBlobAuditingPolicyInner parameters, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/auditingSettings") - @ExpectedResponses({200}) + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/auditingSettings") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByWorkspace( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) + Mono> listByWorkspace(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByWorkspaceNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** * Get server's blob auditing policy. - * - *

Get a workspace managed sql server's blob auditing policy. - * + * + * Get a workspace managed sql server's blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. @@ -143,22 +123,18 @@ Mono> listByWorkspaceNext( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a workspace managed sql server's blob auditing policy along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -168,33 +144,22 @@ private Mono> getWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (blobAuditingPolicyName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter blobAuditingPolicyName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter blobAuditingPolicyName is required and cannot be null.")); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - blobAuditingPolicyName, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, blobAuditingPolicyName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get server's blob auditing policy. - * - *

Get a workspace managed sql server's blob auditing policy. - * + * + * Get a workspace managed sql server's blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. @@ -203,25 +168,18 @@ private Mono> getWithResponseAsync( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a workspace managed sql server's blob auditing policy along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, - String workspaceName, - BlobAuditingPolicyName blobAuditingPolicyName, - Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -231,30 +189,21 @@ private Mono> getWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (blobAuditingPolicyName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter blobAuditingPolicyName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter blobAuditingPolicyName is required and cannot be null.")); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - blobAuditingPolicyName, - accept, - context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, blobAuditingPolicyName, accept, context); } /** * Get server's blob auditing policy. - * - *

Get a workspace managed sql server's blob auditing policy. - * + * + * Get a workspace managed sql server's blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. @@ -264,17 +213,17 @@ private Mono> getWithResponseAsync( * @return a workspace managed sql server's blob auditing policy on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName) { + private Mono getAsync(String resourceGroupName, String workspaceName, + BlobAuditingPolicyName blobAuditingPolicyName) { return getWithResponseAsync(resourceGroupName, workspaceName, blobAuditingPolicyName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Get server's blob auditing policy. - * - *

Get a workspace managed sql server's blob auditing policy. - * + * + * Get a workspace managed sql server's blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. @@ -285,19 +234,16 @@ private Mono getAsync( * @return a workspace managed sql server's blob auditing policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - BlobAuditingPolicyName blobAuditingPolicyName, - Context context) { + public Response getWithResponse(String resourceGroupName, String workspaceName, + BlobAuditingPolicyName blobAuditingPolicyName, Context context) { return getWithResponseAsync(resourceGroupName, workspaceName, blobAuditingPolicyName, context).block(); } /** * Get server's blob auditing policy. - * - *

Get a workspace managed sql server's blob auditing policy. - * + * + * Get a workspace managed sql server's blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. @@ -307,16 +253,16 @@ public Response getWithResponse( * @return a workspace managed sql server's blob auditing policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ServerBlobAuditingPolicyInner get( - String resourceGroupName, String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName) { + public ServerBlobAuditingPolicyInner get(String resourceGroupName, String workspaceName, + BlobAuditingPolicyName blobAuditingPolicyName) { return getWithResponse(resourceGroupName, workspaceName, blobAuditingPolicyName, Context.NONE).getValue(); } /** * Create or Update server's blob auditing policy. - * - *

Create or Update a workspace managed sql server's blob auditing policy. - * + * + * Create or Update a workspace managed sql server's blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. @@ -327,22 +273,15 @@ public ServerBlobAuditingPolicyInner get( * @return a server blob auditing policy along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String resourceGroupName, - String workspaceName, - BlobAuditingPolicyName blobAuditingPolicyName, - ServerBlobAuditingPolicyInner parameters) { + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName, ServerBlobAuditingPolicyInner parameters) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -352,9 +291,8 @@ private Mono>> createOrUpdateWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (blobAuditingPolicyName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter blobAuditingPolicyName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter blobAuditingPolicyName is required and cannot be null.")); } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); @@ -364,27 +302,17 @@ private Mono>> createOrUpdateWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - blobAuditingPolicyName, - parameters, - accept, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, blobAuditingPolicyName, parameters, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Create or Update server's blob auditing policy. - * - *

Create or Update a workspace managed sql server's blob auditing policy. - * + * + * Create or Update a workspace managed sql server's blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. @@ -396,23 +324,16 @@ private Mono>> createOrUpdateWithResponseAsync( * @return a server blob auditing policy along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String resourceGroupName, - String workspaceName, - BlobAuditingPolicyName blobAuditingPolicyName, - ServerBlobAuditingPolicyInner parameters, + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName, ServerBlobAuditingPolicyInner parameters, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -422,9 +343,8 @@ private Mono>> createOrUpdateWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (blobAuditingPolicyName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter blobAuditingPolicyName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter blobAuditingPolicyName is required and cannot be null.")); } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); @@ -434,24 +354,15 @@ private Mono>> createOrUpdateWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - blobAuditingPolicyName, - parameters, - accept, - context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, blobAuditingPolicyName, parameters, accept, context); } /** * Create or Update server's blob auditing policy. - * - *

Create or Update a workspace managed sql server's blob auditing policy. - * + * + * Create or Update a workspace managed sql server's blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. @@ -463,28 +374,20 @@ private Mono>> createOrUpdateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ServerBlobAuditingPolicyInner> - beginCreateOrUpdateAsync( - String resourceGroupName, - String workspaceName, - BlobAuditingPolicyName blobAuditingPolicyName, - ServerBlobAuditingPolicyInner parameters) { - Mono>> mono = - createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, blobAuditingPolicyName, parameters); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - ServerBlobAuditingPolicyInner.class, - ServerBlobAuditingPolicyInner.class, - this.client.getContext()); + beginCreateOrUpdateAsync(String resourceGroupName, String workspaceName, + BlobAuditingPolicyName blobAuditingPolicyName, ServerBlobAuditingPolicyInner parameters) { + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, blobAuditingPolicyName, parameters); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), ServerBlobAuditingPolicyInner.class, ServerBlobAuditingPolicyInner.class, + this.client.getContext()); } /** * Create or Update server's blob auditing policy. - * - *

Create or Update a workspace managed sql server's blob auditing policy. - * + * + * Create or Update a workspace managed sql server's blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. @@ -497,31 +400,21 @@ private Mono>> createOrUpdateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ServerBlobAuditingPolicyInner> - beginCreateOrUpdateAsync( - String resourceGroupName, - String workspaceName, - BlobAuditingPolicyName blobAuditingPolicyName, - ServerBlobAuditingPolicyInner parameters, - Context context) { + beginCreateOrUpdateAsync(String resourceGroupName, String workspaceName, + BlobAuditingPolicyName blobAuditingPolicyName, ServerBlobAuditingPolicyInner parameters, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - createOrUpdateWithResponseAsync( - resourceGroupName, workspaceName, blobAuditingPolicyName, parameters, context); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - ServerBlobAuditingPolicyInner.class, - ServerBlobAuditingPolicyInner.class, - context); + Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, + blobAuditingPolicyName, parameters, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), ServerBlobAuditingPolicyInner.class, ServerBlobAuditingPolicyInner.class, + context); } /** * Create or Update server's blob auditing policy. - * - *

Create or Update a workspace managed sql server's blob auditing policy. - * + * + * Create or Update a workspace managed sql server's blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. @@ -533,20 +426,17 @@ private Mono>> createOrUpdateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ServerBlobAuditingPolicyInner> beginCreateOrUpdate( - String resourceGroupName, - String workspaceName, - BlobAuditingPolicyName blobAuditingPolicyName, + String resourceGroupName, String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName, ServerBlobAuditingPolicyInner parameters) { - return this - .beginCreateOrUpdateAsync(resourceGroupName, workspaceName, blobAuditingPolicyName, parameters) + return this.beginCreateOrUpdateAsync(resourceGroupName, workspaceName, blobAuditingPolicyName, parameters) .getSyncPoller(); } /** * Create or Update server's blob auditing policy. - * - *

Create or Update a workspace managed sql server's blob auditing policy. - * + * + * Create or Update a workspace managed sql server's blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. @@ -559,11 +449,8 @@ public SyncPoller, ServerBlobAuditingP */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ServerBlobAuditingPolicyInner> beginCreateOrUpdate( - String resourceGroupName, - String workspaceName, - BlobAuditingPolicyName blobAuditingPolicyName, - ServerBlobAuditingPolicyInner parameters, - Context context) { + String resourceGroupName, String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName, + ServerBlobAuditingPolicyInner parameters, Context context) { return this .beginCreateOrUpdateAsync(resourceGroupName, workspaceName, blobAuditingPolicyName, parameters, context) .getSyncPoller(); @@ -571,9 +458,9 @@ public SyncPoller, ServerBlobAuditingP /** * Create or Update server's blob auditing policy. - * - *

Create or Update a workspace managed sql server's blob auditing policy. - * + * + * Create or Update a workspace managed sql server's blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. @@ -584,21 +471,17 @@ public SyncPoller, ServerBlobAuditingP * @return a server blob auditing policy on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, - String workspaceName, - BlobAuditingPolicyName blobAuditingPolicyName, - ServerBlobAuditingPolicyInner parameters) { - return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, blobAuditingPolicyName, parameters) - .last() + private Mono createOrUpdateAsync(String resourceGroupName, String workspaceName, + BlobAuditingPolicyName blobAuditingPolicyName, ServerBlobAuditingPolicyInner parameters) { + return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, blobAuditingPolicyName, parameters).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Create or Update server's blob auditing policy. - * - *

Create or Update a workspace managed sql server's blob auditing policy. - * + * + * Create or Update a workspace managed sql server's blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. @@ -610,22 +493,17 @@ private Mono createOrUpdateAsync( * @return a server blob auditing policy on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, - String workspaceName, - BlobAuditingPolicyName blobAuditingPolicyName, - ServerBlobAuditingPolicyInner parameters, - Context context) { + private Mono createOrUpdateAsync(String resourceGroupName, String workspaceName, + BlobAuditingPolicyName blobAuditingPolicyName, ServerBlobAuditingPolicyInner parameters, Context context) { return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, blobAuditingPolicyName, parameters, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + .last().flatMap(this.client::getLroFinalResultOrError); } /** * Create or Update server's blob auditing policy. - * - *

Create or Update a workspace managed sql server's blob auditing policy. - * + * + * Create or Update a workspace managed sql server's blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. @@ -636,19 +514,16 @@ private Mono createOrUpdateAsync( * @return a server blob auditing policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ServerBlobAuditingPolicyInner createOrUpdate( - String resourceGroupName, - String workspaceName, - BlobAuditingPolicyName blobAuditingPolicyName, - ServerBlobAuditingPolicyInner parameters) { + public ServerBlobAuditingPolicyInner createOrUpdate(String resourceGroupName, String workspaceName, + BlobAuditingPolicyName blobAuditingPolicyName, ServerBlobAuditingPolicyInner parameters) { return createOrUpdateAsync(resourceGroupName, workspaceName, blobAuditingPolicyName, parameters).block(); } /** * Create or Update server's blob auditing policy. - * - *

Create or Update a workspace managed sql server's blob auditing policy. - * + * + * Create or Update a workspace managed sql server's blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. @@ -660,43 +535,35 @@ public ServerBlobAuditingPolicyInner createOrUpdate( * @return a server blob auditing policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ServerBlobAuditingPolicyInner createOrUpdate( - String resourceGroupName, - String workspaceName, - BlobAuditingPolicyName blobAuditingPolicyName, - ServerBlobAuditingPolicyInner parameters, - Context context) { + public ServerBlobAuditingPolicyInner createOrUpdate(String resourceGroupName, String workspaceName, + BlobAuditingPolicyName blobAuditingPolicyName, ServerBlobAuditingPolicyInner parameters, Context context) { return createOrUpdateAsync(resourceGroupName, workspaceName, blobAuditingPolicyName, parameters, context) .block(); } /** * List workspace server's blob auditing policies. - * - *

List workspace managed sql server's blob auditing policies. - * + * + * List workspace managed sql server's blob auditing policies. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of server auditing settings along with {@link PagedResponse} on successful completion of {@link - * Mono}. + * @return a list of server auditing settings along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByWorkspaceSinglePageAsync( - String resourceGroupName, String workspaceName) { + private Mono> listByWorkspaceSinglePageAsync(String resourceGroupName, + String workspaceName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -708,57 +575,37 @@ private Mono> listByWorkspaceSingle final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .listByWorkspace( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .withContext(context -> service.listByWorkspace(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * List workspace server's blob auditing policies. - * - *

List workspace managed sql server's blob auditing policies. - * + * + * List workspace managed sql server's blob auditing policies. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of server auditing settings along with {@link PagedResponse} on successful completion of {@link - * Mono}. + * @return a list of server auditing settings along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByWorkspaceSinglePageAsync( - String resourceGroupName, String workspaceName, Context context) { + private Mono> listByWorkspaceSinglePageAsync(String resourceGroupName, + String workspaceName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -771,30 +618,17 @@ private Mono> listByWorkspaceSingle final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByWorkspace( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + .listByWorkspace(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * List workspace server's blob auditing policies. - * - *

List workspace managed sql server's blob auditing policies. - * + * + * List workspace managed sql server's blob auditing policies. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -803,18 +637,17 @@ private Mono> listByWorkspaceSingle * @return a list of server auditing settings as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByWorkspaceAsync( - String resourceGroupName, String workspaceName) { - return new PagedFlux<>( - () -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName), + private PagedFlux listByWorkspaceAsync(String resourceGroupName, + String workspaceName) { + return new PagedFlux<>(() -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName), nextLink -> listByWorkspaceNextSinglePageAsync(nextLink)); } /** * List workspace server's blob auditing policies. - * - *

List workspace managed sql server's blob auditing policies. - * + * + * List workspace managed sql server's blob auditing policies. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -824,18 +657,17 @@ private PagedFlux listByWorkspaceAsync( * @return a list of server auditing settings as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByWorkspaceAsync( - String resourceGroupName, String workspaceName, Context context) { - return new PagedFlux<>( - () -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName, context), + private PagedFlux listByWorkspaceAsync(String resourceGroupName, + String workspaceName, Context context) { + return new PagedFlux<>(() -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName, context), nextLink -> listByWorkspaceNextSinglePageAsync(nextLink, context)); } /** * List workspace server's blob auditing policies. - * - *

List workspace managed sql server's blob auditing policies. - * + * + * List workspace managed sql server's blob auditing policies. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -844,16 +676,16 @@ private PagedFlux listByWorkspaceAsync( * @return a list of server auditing settings as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByWorkspace( - String resourceGroupName, String workspaceName) { + public PagedIterable listByWorkspace(String resourceGroupName, + String workspaceName) { return new PagedIterable<>(listByWorkspaceAsync(resourceGroupName, workspaceName)); } /** * List workspace server's blob auditing policies. - * - *

List workspace managed sql server's blob auditing policies. - * + * + * List workspace managed sql server's blob auditing policies. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -863,21 +695,22 @@ public PagedIterable listByWorkspace( * @return a list of server auditing settings as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByWorkspace( - String resourceGroupName, String workspaceName, Context context) { + public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, + Context context) { return new PagedIterable<>(listByWorkspaceAsync(resourceGroupName, workspaceName, context)); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of server auditing settings along with {@link PagedResponse} on successful completion of {@link - * Mono}. + * @return a list of server auditing settings along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByWorkspaceNextSinglePageAsync(String nextLink) { @@ -885,62 +718,44 @@ private Mono> listByWorkspaceNextSi return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByWorkspaceNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of server auditing settings along with {@link PagedResponse} on successful completion of {@link - * Mono}. + * @return a list of server auditing settings along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByWorkspaceNextSinglePageAsync( - String nextLink, Context context) { + private Mono> listByWorkspaceNextSinglePageAsync(String nextLink, + Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listByWorkspaceNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listByWorkspaceNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerBlobAuditingPoliciesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerBlobAuditingPoliciesImpl.java index 4c6b6ce5cfd9..505b1445aa29 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerBlobAuditingPoliciesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerBlobAuditingPoliciesImpl.java @@ -17,8 +17,8 @@ public final class WorkspaceManagedSqlServerBlobAuditingPoliciesImpl implements WorkspaceManagedSqlServerBlobAuditingPolicies { - private static final ClientLogger LOGGER = - new ClientLogger(WorkspaceManagedSqlServerBlobAuditingPoliciesImpl.class); + private static final ClientLogger LOGGER + = new ClientLogger(WorkspaceManagedSqlServerBlobAuditingPoliciesImpl.class); private final WorkspaceManagedSqlServerBlobAuditingPoliciesClient innerClient; @@ -31,28 +31,22 @@ public WorkspaceManagedSqlServerBlobAuditingPoliciesImpl( this.serviceManager = serviceManager; } - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - BlobAuditingPolicyName blobAuditingPolicyName, - Context context) { - Response inner = - this.serviceClient().getWithResponse(resourceGroupName, workspaceName, blobAuditingPolicyName, context); + public Response getWithResponse(String resourceGroupName, String workspaceName, + BlobAuditingPolicyName blobAuditingPolicyName, Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, workspaceName, blobAuditingPolicyName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new ServerBlobAuditingPolicyImpl(inner.getValue(), this.manager())); } else { return null; } } - public ServerBlobAuditingPolicy get( - String resourceGroupName, String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName) { - ServerBlobAuditingPolicyInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, blobAuditingPolicyName); + public ServerBlobAuditingPolicy get(String resourceGroupName, String workspaceName, + BlobAuditingPolicyName blobAuditingPolicyName) { + ServerBlobAuditingPolicyInner inner + = this.serviceClient().get(resourceGroupName, workspaceName, blobAuditingPolicyName); if (inner != null) { return new ServerBlobAuditingPolicyImpl(inner, this.manager()); } else { @@ -61,71 +55,53 @@ public ServerBlobAuditingPolicy get( } public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName) { - PagedIterable inner = - this.serviceClient().listByWorkspace(resourceGroupName, workspaceName); - return Utils.mapPage(inner, inner1 -> new ServerBlobAuditingPolicyImpl(inner1, this.manager())); + PagedIterable inner + = this.serviceClient().listByWorkspace(resourceGroupName, workspaceName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ServerBlobAuditingPolicyImpl(inner1, this.manager())); } - public PagedIterable listByWorkspace( - String resourceGroupName, String workspaceName, Context context) { - PagedIterable inner = - this.serviceClient().listByWorkspace(resourceGroupName, workspaceName, context); - return Utils.mapPage(inner, inner1 -> new ServerBlobAuditingPolicyImpl(inner1, this.manager())); + public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, + Context context) { + PagedIterable inner + = this.serviceClient().listByWorkspace(resourceGroupName, workspaceName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ServerBlobAuditingPolicyImpl(inner1, this.manager())); } public ServerBlobAuditingPolicy getById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String blobAuditingPolicyNameLocal = Utils.getValueFromIdByName(id, "auditingSettings"); + String blobAuditingPolicyNameLocal = ResourceManagerUtils.getValueFromIdByName(id, "auditingSettings"); if (blobAuditingPolicyNameLocal == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'auditingSettings'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'auditingSettings'.", id))); } BlobAuditingPolicyName blobAuditingPolicyName = BlobAuditingPolicyName.fromString(blobAuditingPolicyNameLocal); return this.getWithResponse(resourceGroupName, workspaceName, blobAuditingPolicyName, Context.NONE).getValue(); } public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String blobAuditingPolicyNameLocal = Utils.getValueFromIdByName(id, "auditingSettings"); + String blobAuditingPolicyNameLocal = ResourceManagerUtils.getValueFromIdByName(id, "auditingSettings"); if (blobAuditingPolicyNameLocal == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'auditingSettings'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'auditingSettings'.", id))); } BlobAuditingPolicyName blobAuditingPolicyName = BlobAuditingPolicyName.fromString(blobAuditingPolicyNameLocal); return this.getWithResponse(resourceGroupName, workspaceName, blobAuditingPolicyName, context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClientImpl.java index 9cf74c2cab74..e321ee1d7c93 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClientImpl.java @@ -44,100 +44,79 @@ */ public final class WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClientImpl implements WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy - .create( - WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsService.class, - client.getHttpPipeline(), - client.getSerializerAdapter()); + this.service = RestProxy.create(WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsService.class, + client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** * The interface defining all the services for - * SynapseManagementClientWorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings to be used by the proxy service to - * perform REST calls. + * SynapseManagementClientWorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings to be used by the proxy service + * to perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsService { - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/dedicatedSQLminimalTlsSettings/{dedicatedSQLminimalTlsSettingsName}") - @ExpectedResponses({200, 202}) + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/dedicatedSQLminimalTlsSettings/{dedicatedSQLminimalTlsSettingsName}") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> update( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("dedicatedSQLminimalTlsSettingsName") - DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, + Mono>> update(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("dedicatedSQLminimalTlsSettingsName") DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, @BodyParam("application/json") DedicatedSQLminimalTlsSettingsInner parameters, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/dedicatedSQLminimalTlsSettings/{dedicatedSQLminimalTlsSettingsName}") - @ExpectedResponses({200}) + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/dedicatedSQLminimalTlsSettings/{dedicatedSQLminimalTlsSettingsName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono> get(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("dedicatedSQLminimalTlsSettingsName") String dedicatedSQLminimalTlsSettingsName, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/dedicatedSQLminimalTlsSettings") - @ExpectedResponses({200}) + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/dedicatedSQLminimalTlsSettings") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) + Mono> list(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** * Update server's tls settings. - * - *

Update workspace managed sql server's minimal tls settings. - * + * + * Update workspace managed sql server's minimal tls settings. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. @@ -145,26 +124,20 @@ Mono> listNext( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return dedicated Sql Minimal Tls Settings Info along with {@link Response} on successful completion of {@link - * Mono}. + * @return dedicated Sql Minimal Tls Settings Info along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync( - String resourceGroupName, - String workspaceName, + private Mono>> updateWithResponseAsync(String resourceGroupName, String workspaceName, DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, DedicatedSQLminimalTlsSettingsInner parameters) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -174,10 +147,8 @@ private Mono>> updateWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (dedicatedSQLminimalTlsSettingsName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter dedicatedSQLminimalTlsSettingsName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter dedicatedSQLminimalTlsSettingsName is required and cannot be null.")); } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); @@ -188,26 +159,16 @@ private Mono>> updateWithResponseAsync( final String accept = "application/json"; return FluxUtil .withContext( - context -> - service - .update( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - dedicatedSQLminimalTlsSettingsName, - parameters, - accept, - context)) + context -> service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName, parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Update server's tls settings. - * - *

Update workspace managed sql server's minimal tls settings. - * + * + * Update workspace managed sql server's minimal tls settings. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. @@ -216,27 +177,20 @@ private Mono>> updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return dedicated Sql Minimal Tls Settings Info along with {@link Response} on successful completion of {@link - * Mono}. + * @return dedicated Sql Minimal Tls Settings Info along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync( - String resourceGroupName, - String workspaceName, + private Mono>> updateWithResponseAsync(String resourceGroupName, String workspaceName, DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, - DedicatedSQLminimalTlsSettingsInner parameters, - Context context) { + DedicatedSQLminimalTlsSettingsInner parameters, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -246,10 +200,8 @@ private Mono>> updateWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (dedicatedSQLminimalTlsSettingsName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter dedicatedSQLminimalTlsSettingsName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter dedicatedSQLminimalTlsSettingsName is required and cannot be null.")); } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); @@ -259,24 +211,15 @@ private Mono>> updateWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .update( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - dedicatedSQLminimalTlsSettingsName, - parameters, - accept, - context); + return service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, dedicatedSQLminimalTlsSettingsName, parameters, accept, context); } /** * Update server's tls settings. - * - *

Update workspace managed sql server's minimal tls settings. - * + * + * Update workspace managed sql server's minimal tls settings. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. @@ -288,28 +231,21 @@ private Mono>> updateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, DedicatedSQLminimalTlsSettingsInner> - beginUpdateAsync( - String resourceGroupName, - String workspaceName, + beginUpdateAsync(String resourceGroupName, String workspaceName, DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, DedicatedSQLminimalTlsSettingsInner parameters) { - Mono>> mono = - updateWithResponseAsync(resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName, parameters); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - DedicatedSQLminimalTlsSettingsInner.class, - DedicatedSQLminimalTlsSettingsInner.class, - this.client.getContext()); + Mono>> mono + = updateWithResponseAsync(resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName, parameters); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), DedicatedSQLminimalTlsSettingsInner.class, + DedicatedSQLminimalTlsSettingsInner.class, this.client.getContext()); } /** * Update server's tls settings. - * - *

Update workspace managed sql server's minimal tls settings. - * + * + * Update workspace managed sql server's minimal tls settings. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. @@ -322,31 +258,22 @@ private Mono>> updateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, DedicatedSQLminimalTlsSettingsInner> - beginUpdateAsync( - String resourceGroupName, - String workspaceName, + beginUpdateAsync(String resourceGroupName, String workspaceName, DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, - DedicatedSQLminimalTlsSettingsInner parameters, - Context context) { + DedicatedSQLminimalTlsSettingsInner parameters, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - updateWithResponseAsync( - resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName, parameters, context); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - DedicatedSQLminimalTlsSettingsInner.class, - DedicatedSQLminimalTlsSettingsInner.class, - context); + Mono>> mono = updateWithResponseAsync(resourceGroupName, workspaceName, + dedicatedSQLminimalTlsSettingsName, parameters, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), DedicatedSQLminimalTlsSettingsInner.class, + DedicatedSQLminimalTlsSettingsInner.class, context); } /** * Update server's tls settings. - * - *

Update workspace managed sql server's minimal tls settings. - * + * + * Update workspace managed sql server's minimal tls settings. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. @@ -358,20 +285,18 @@ private Mono>> updateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, DedicatedSQLminimalTlsSettingsInner> beginUpdate( - String resourceGroupName, - String workspaceName, + String resourceGroupName, String workspaceName, DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, DedicatedSQLminimalTlsSettingsInner parameters) { - return this - .beginUpdateAsync(resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName, parameters) + return this.beginUpdateAsync(resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName, parameters) .getSyncPoller(); } /** * Update server's tls settings. - * - *

Update workspace managed sql server's minimal tls settings. - * + * + * Update workspace managed sql server's minimal tls settings. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. @@ -384,11 +309,9 @@ public SyncPoller, DedicatedSQLm */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, DedicatedSQLminimalTlsSettingsInner> beginUpdate( - String resourceGroupName, - String workspaceName, + String resourceGroupName, String workspaceName, DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, - DedicatedSQLminimalTlsSettingsInner parameters, - Context context) { + DedicatedSQLminimalTlsSettingsInner parameters, Context context) { return this .beginUpdateAsync(resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName, parameters, context) .getSyncPoller(); @@ -396,9 +319,9 @@ public SyncPoller, DedicatedSQLm /** * Update server's tls settings. - * - *

Update workspace managed sql server's minimal tls settings. - * + * + * Update workspace managed sql server's minimal tls settings. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. @@ -409,21 +332,18 @@ public SyncPoller, DedicatedSQLm * @return dedicated Sql Minimal Tls Settings Info on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync( - String resourceGroupName, - String workspaceName, + private Mono updateAsync(String resourceGroupName, String workspaceName, DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, DedicatedSQLminimalTlsSettingsInner parameters) { - return beginUpdateAsync(resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName, parameters) - .last() + return beginUpdateAsync(resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName, parameters).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Update server's tls settings. - * - *

Update workspace managed sql server's minimal tls settings. - * + * + * Update workspace managed sql server's minimal tls settings. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. @@ -435,23 +355,18 @@ private Mono updateAsync( * @return dedicated Sql Minimal Tls Settings Info on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync( - String resourceGroupName, - String workspaceName, + private Mono updateAsync(String resourceGroupName, String workspaceName, DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, - DedicatedSQLminimalTlsSettingsInner parameters, - Context context) { - return beginUpdateAsync( - resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName, parameters, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + DedicatedSQLminimalTlsSettingsInner parameters, Context context) { + return beginUpdateAsync(resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName, parameters, + context).last().flatMap(this.client::getLroFinalResultOrError); } /** * Update server's tls settings. - * - *

Update workspace managed sql server's minimal tls settings. - * + * + * Update workspace managed sql server's minimal tls settings. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. @@ -462,9 +377,7 @@ private Mono updateAsync( * @return dedicated Sql Minimal Tls Settings Info. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DedicatedSQLminimalTlsSettingsInner update( - String resourceGroupName, - String workspaceName, + public DedicatedSQLminimalTlsSettingsInner update(String resourceGroupName, String workspaceName, DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, DedicatedSQLminimalTlsSettingsInner parameters) { return updateAsync(resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName, parameters).block(); @@ -472,9 +385,9 @@ public DedicatedSQLminimalTlsSettingsInner update( /** * Update server's tls settings. - * - *

Update workspace managed sql server's minimal tls settings. - * + * + * Update workspace managed sql server's minimal tls settings. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. @@ -486,21 +399,18 @@ public DedicatedSQLminimalTlsSettingsInner update( * @return dedicated Sql Minimal Tls Settings Info. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DedicatedSQLminimalTlsSettingsInner update( - String resourceGroupName, - String workspaceName, + public DedicatedSQLminimalTlsSettingsInner update(String resourceGroupName, String workspaceName, DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, - DedicatedSQLminimalTlsSettingsInner parameters, - Context context) { + DedicatedSQLminimalTlsSettingsInner parameters, Context context) { return updateAsync(resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName, parameters, context) .block(); } /** * Get server's minimal tls settings. - * - *

Get workspace managed sql server's minimal tls settings. - * + * + * Get workspace managed sql server's minimal tls settings. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. @@ -508,22 +418,18 @@ public DedicatedSQLminimalTlsSettingsInner update( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return workspace managed sql server's minimal tls settings along with {@link Response} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, String dedicatedSQLminimalTlsSettingsName) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, String dedicatedSQLminimalTlsSettingsName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -533,34 +439,22 @@ private Mono> getWithResponseAsync return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (dedicatedSQLminimalTlsSettingsName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter dedicatedSQLminimalTlsSettingsName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter dedicatedSQLminimalTlsSettingsName is required and cannot be null.")); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - dedicatedSQLminimalTlsSettingsName, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get server's minimal tls settings. - * - *

Get workspace managed sql server's minimal tls settings. - * + * + * Get workspace managed sql server's minimal tls settings. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. @@ -569,22 +463,18 @@ private Mono> getWithResponseAsync * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return workspace managed sql server's minimal tls settings along with {@link Response} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, String dedicatedSQLminimalTlsSettingsName, Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, String dedicatedSQLminimalTlsSettingsName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -594,31 +484,21 @@ private Mono> getWithResponseAsync return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (dedicatedSQLminimalTlsSettingsName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter dedicatedSQLminimalTlsSettingsName is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter dedicatedSQLminimalTlsSettingsName is required and cannot be null.")); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - dedicatedSQLminimalTlsSettingsName, - accept, - context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, dedicatedSQLminimalTlsSettingsName, accept, context); } /** * Get server's minimal tls settings. - * - *

Get workspace managed sql server's minimal tls settings. - * + * + * Get workspace managed sql server's minimal tls settings. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. @@ -628,17 +508,17 @@ private Mono> getWithResponseAsync * @return workspace managed sql server's minimal tls settings on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String workspaceName, String dedicatedSQLminimalTlsSettingsName) { + private Mono getAsync(String resourceGroupName, String workspaceName, + String dedicatedSQLminimalTlsSettingsName) { return getWithResponseAsync(resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Get server's minimal tls settings. - * - *

Get workspace managed sql server's minimal tls settings. - * + * + * Get workspace managed sql server's minimal tls settings. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. @@ -649,17 +529,17 @@ private Mono getAsync( * @return workspace managed sql server's minimal tls settings along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String workspaceName, String dedicatedSQLminimalTlsSettingsName, Context context) { + public Response getWithResponse(String resourceGroupName, String workspaceName, + String dedicatedSQLminimalTlsSettingsName, Context context) { return getWithResponseAsync(resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName, context) .block(); } /** * Get server's minimal tls settings. - * - *

Get workspace managed sql server's minimal tls settings. - * + * + * Get workspace managed sql server's minimal tls settings. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. @@ -669,39 +549,35 @@ public Response getWithResponse( * @return workspace managed sql server's minimal tls settings. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DedicatedSQLminimalTlsSettingsInner get( - String resourceGroupName, String workspaceName, String dedicatedSQLminimalTlsSettingsName) { + public DedicatedSQLminimalTlsSettingsInner get(String resourceGroupName, String workspaceName, + String dedicatedSQLminimalTlsSettingsName) { return getWithResponse(resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName, Context.NONE) .getValue(); } /** * List workspace server's minimal tls settings. - * - *

List workspace managed sql server's minimal tls settings. - * + * + * List workspace managed sql server's minimal tls settings. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of the server's dedicated sql minimal tls settings along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String workspaceName) { + private Mono> listSinglePageAsync(String resourceGroupName, + String workspaceName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -713,34 +589,18 @@ private Mono> listSinglePageA final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * List workspace server's minimal tls settings. - * - *

List workspace managed sql server's minimal tls settings. - * + * + * List workspace managed sql server's minimal tls settings. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -748,22 +608,18 @@ private Mono> listSinglePageA * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of the server's dedicated sql minimal tls settings along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String workspaceName, Context context) { + private Mono> listSinglePageAsync(String resourceGroupName, + String workspaceName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -776,30 +632,17 @@ private Mono> listSinglePageA final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * List workspace server's minimal tls settings. - * - *

List workspace managed sql server's minimal tls settings. - * + * + * List workspace managed sql server's minimal tls settings. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -809,15 +652,15 @@ private Mono> listSinglePageA */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String workspaceName) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, workspaceName), nextLink -> listNextSinglePageAsync(nextLink)); + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName), + nextLink -> listNextSinglePageAsync(nextLink)); } /** * List workspace server's minimal tls settings. - * - *

List workspace managed sql server's minimal tls settings. - * + * + * List workspace managed sql server's minimal tls settings. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -827,25 +670,24 @@ private PagedFlux listAsync(String resource * @return a list of the server's dedicated sql minimal tls settings as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( - String resourceGroupName, String workspaceName, Context context) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, workspaceName, context), + private PagedFlux listAsync(String resourceGroupName, String workspaceName, + Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } /** * List workspace server's minimal tls settings. - * - *

List workspace managed sql server's minimal tls settings. - * + * + * List workspace managed sql server's minimal tls settings. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of the server's dedicated sql minimal tls settings as paginated response with {@link - * PagedIterable}. + * @return a list of the server's dedicated sql minimal tls settings as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String workspaceName) { @@ -854,34 +696,35 @@ public PagedIterable list(String resourceGr /** * List workspace server's minimal tls settings. - * - *

List workspace managed sql server's minimal tls settings. - * + * + * List workspace managed sql server's minimal tls settings. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of the server's dedicated sql minimal tls settings as paginated response with {@link - * PagedIterable}. + * @return a list of the server's dedicated sql minimal tls settings as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list( - String resourceGroupName, String workspaceName, Context context) { + public PagedIterable list(String resourceGroupName, String workspaceName, + Context context) { return new PagedIterable<>(listAsync(resourceGroupName, workspaceName, context)); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of the server's dedicated sql minimal tls settings along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -889,62 +732,43 @@ private Mono> listNextSingleP return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of the server's dedicated sql minimal tls settings along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync( - String nextLink, Context context) { + private Mono> listNextSinglePageAsync(String nextLink, + Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsImpl.java index 714c9f9a4da8..840cc1582287 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsImpl.java @@ -17,8 +17,8 @@ public final class WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsImpl implements WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings { - private static final ClientLogger LOGGER = - new ClientLogger(WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsImpl.class); + private static final ClientLogger LOGGER + = new ClientLogger(WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsImpl.class); private final WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient innerClient; @@ -31,15 +31,11 @@ public WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsImpl( this.serviceManager = serviceManager; } - public DedicatedSQLminimalTlsSettings update( - String resourceGroupName, - String workspaceName, + public DedicatedSQLminimalTlsSettings update(String resourceGroupName, String workspaceName, DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, DedicatedSQLminimalTlsSettingsInner parameters) { - DedicatedSQLminimalTlsSettingsInner inner = - this - .serviceClient() - .update(resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName, parameters); + DedicatedSQLminimalTlsSettingsInner inner = this.serviceClient().update(resourceGroupName, workspaceName, + dedicatedSQLminimalTlsSettingsName, parameters); if (inner != null) { return new DedicatedSQLminimalTlsSettingsImpl(inner, this.manager()); } else { @@ -47,16 +43,11 @@ public DedicatedSQLminimalTlsSettings update( } } - public DedicatedSQLminimalTlsSettings update( - String resourceGroupName, - String workspaceName, + public DedicatedSQLminimalTlsSettings update(String resourceGroupName, String workspaceName, DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, - DedicatedSQLminimalTlsSettingsInner parameters, - Context context) { - DedicatedSQLminimalTlsSettingsInner inner = - this - .serviceClient() - .update(resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName, parameters, context); + DedicatedSQLminimalTlsSettingsInner parameters, Context context) { + DedicatedSQLminimalTlsSettingsInner inner = this.serviceClient().update(resourceGroupName, workspaceName, + dedicatedSQLminimalTlsSettingsName, parameters, context); if (inner != null) { return new DedicatedSQLminimalTlsSettingsImpl(inner, this.manager()); } else { @@ -64,27 +55,22 @@ public DedicatedSQLminimalTlsSettings update( } } - public Response getWithResponse( - String resourceGroupName, String workspaceName, String dedicatedSQLminimalTlsSettingsName, Context context) { - Response inner = - this - .serviceClient() - .getWithResponse(resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName, context); + public Response getWithResponse(String resourceGroupName, String workspaceName, + String dedicatedSQLminimalTlsSettingsName, Context context) { + Response inner = this.serviceClient().getWithResponse(resourceGroupName, + workspaceName, dedicatedSQLminimalTlsSettingsName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new DedicatedSQLminimalTlsSettingsImpl(inner.getValue(), this.manager())); } else { return null; } } - public DedicatedSQLminimalTlsSettings get( - String resourceGroupName, String workspaceName, String dedicatedSQLminimalTlsSettingsName) { - DedicatedSQLminimalTlsSettingsInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName); + public DedicatedSQLminimalTlsSettings get(String resourceGroupName, String workspaceName, + String dedicatedSQLminimalTlsSettingsName) { + DedicatedSQLminimalTlsSettingsInner inner + = this.serviceClient().get(resourceGroupName, workspaceName, dedicatedSQLminimalTlsSettingsName); if (inner != null) { return new DedicatedSQLminimalTlsSettingsImpl(inner, this.manager()); } else { @@ -93,16 +79,18 @@ public DedicatedSQLminimalTlsSettings get( } public PagedIterable list(String resourceGroupName, String workspaceName) { - PagedIterable inner = - this.serviceClient().list(resourceGroupName, workspaceName); - return Utils.mapPage(inner, inner1 -> new DedicatedSQLminimalTlsSettingsImpl(inner1, this.manager())); + PagedIterable inner + = this.serviceClient().list(resourceGroupName, workspaceName); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new DedicatedSQLminimalTlsSettingsImpl(inner1, this.manager())); } - public PagedIterable list( - String resourceGroupName, String workspaceName, Context context) { - PagedIterable inner = - this.serviceClient().list(resourceGroupName, workspaceName, context); - return Utils.mapPage(inner, inner1 -> new DedicatedSQLminimalTlsSettingsImpl(inner1, this.manager())); + public PagedIterable list(String resourceGroupName, String workspaceName, + Context context) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, workspaceName, context); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new DedicatedSQLminimalTlsSettingsImpl(inner1, this.manager())); } private WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClient serviceClient() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerEncryptionProtectorsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerEncryptionProtectorsClientImpl.java index 0a156d3e9907..c29d65c843f1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerEncryptionProtectorsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerEncryptionProtectorsClientImpl.java @@ -45,24 +45,24 @@ */ public final class WorkspaceManagedSqlServerEncryptionProtectorsClientImpl implements WorkspaceManagedSqlServerEncryptionProtectorsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final WorkspaceManagedSqlServerEncryptionProtectorsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of WorkspaceManagedSqlServerEncryptionProtectorsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ WorkspaceManagedSqlServerEncryptionProtectorsClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy - .create( - WorkspaceManagedSqlServerEncryptionProtectorsService.class, - client.getHttpPipeline(), - client.getSerializerAdapter()); + this.service = RestProxy.create(WorkspaceManagedSqlServerEncryptionProtectorsService.class, + client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } @@ -73,85 +73,59 @@ public final class WorkspaceManagedSqlServerEncryptionProtectorsClientImpl @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface WorkspaceManagedSqlServerEncryptionProtectorsService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/encryptionProtector/{encryptionProtectorName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/encryptionProtector/{encryptionProtectorName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono> get(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("encryptionProtectorName") EncryptionProtectorName encryptionProtectorName, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/encryptionProtector/{encryptionProtectorName}") - @ExpectedResponses({200, 202}) + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/encryptionProtector/{encryptionProtectorName}") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono>> createOrUpdate(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("encryptionProtectorName") EncryptionProtectorName encryptionProtectorName, - @BodyParam("application/json") EncryptionProtectorInner parameters, - @HeaderParam("Accept") String accept, + @BodyParam("application/json") EncryptionProtectorInner parameters, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/encryptionProtector") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/encryptionProtector") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) - @Post( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/encryptionProtector/{encryptionProtectorName}/revalidate") - @ExpectedResponses({200, 202}) + Mono> list(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/encryptionProtector/{encryptionProtectorName}/revalidate") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> revalidate( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("encryptionProtectorName") EncryptionProtectorName encryptionProtectorName, - Context context); + Mono>> revalidate(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("encryptionProtectorName") EncryptionProtectorName encryptionProtectorName, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** * Get workspace server's encryption protector. - * - *

Get workspace managed sql server's encryption protector. - * + * + * Get workspace managed sql server's encryption protector. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param encryptionProtectorName The name of the encryption protector. @@ -159,22 +133,18 @@ Mono> listNext( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return workspace managed sql server's encryption protector along with {@link Response} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, EncryptionProtectorName encryptionProtectorName) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, EncryptionProtectorName encryptionProtectorName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -184,33 +154,22 @@ private Mono> getWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (encryptionProtectorName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter encryptionProtectorName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter encryptionProtectorName is required and cannot be null.")); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - encryptionProtectorName, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, encryptionProtectorName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get workspace server's encryption protector. - * - *

Get workspace managed sql server's encryption protector. - * + * + * Get workspace managed sql server's encryption protector. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param encryptionProtectorName The name of the encryption protector. @@ -219,25 +178,18 @@ private Mono> getWithResponseAsync( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return workspace managed sql server's encryption protector along with {@link Response} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, - String workspaceName, - EncryptionProtectorName encryptionProtectorName, - Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, EncryptionProtectorName encryptionProtectorName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -247,30 +199,21 @@ private Mono> getWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (encryptionProtectorName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter encryptionProtectorName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter encryptionProtectorName is required and cannot be null.")); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - encryptionProtectorName, - accept, - context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, encryptionProtectorName, accept, context); } /** * Get workspace server's encryption protector. - * - *

Get workspace managed sql server's encryption protector. - * + * + * Get workspace managed sql server's encryption protector. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param encryptionProtectorName The name of the encryption protector. @@ -280,17 +223,17 @@ private Mono> getWithResponseAsync( * @return workspace managed sql server's encryption protector on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String workspaceName, EncryptionProtectorName encryptionProtectorName) { + private Mono getAsync(String resourceGroupName, String workspaceName, + EncryptionProtectorName encryptionProtectorName) { return getWithResponseAsync(resourceGroupName, workspaceName, encryptionProtectorName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Get workspace server's encryption protector. - * - *

Get workspace managed sql server's encryption protector. - * + * + * Get workspace managed sql server's encryption protector. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param encryptionProtectorName The name of the encryption protector. @@ -301,19 +244,16 @@ private Mono getAsync( * @return workspace managed sql server's encryption protector along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - EncryptionProtectorName encryptionProtectorName, - Context context) { + public Response getWithResponse(String resourceGroupName, String workspaceName, + EncryptionProtectorName encryptionProtectorName, Context context) { return getWithResponseAsync(resourceGroupName, workspaceName, encryptionProtectorName, context).block(); } /** * Get workspace server's encryption protector. - * - *

Get workspace managed sql server's encryption protector. - * + * + * Get workspace managed sql server's encryption protector. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param encryptionProtectorName The name of the encryption protector. @@ -323,16 +263,16 @@ public Response getWithResponse( * @return workspace managed sql server's encryption protector. */ @ServiceMethod(returns = ReturnType.SINGLE) - public EncryptionProtectorInner get( - String resourceGroupName, String workspaceName, EncryptionProtectorName encryptionProtectorName) { + public EncryptionProtectorInner get(String resourceGroupName, String workspaceName, + EncryptionProtectorName encryptionProtectorName) { return getWithResponse(resourceGroupName, workspaceName, encryptionProtectorName, Context.NONE).getValue(); } /** * Updates workspace server's encryption protector. - * - *

Updates workspace managed sql server's encryption protector. - * + * + * Updates workspace managed sql server's encryption protector. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param encryptionProtectorName The name of the encryption protector. @@ -343,22 +283,15 @@ public EncryptionProtectorInner get( * @return the server encryption protector along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String resourceGroupName, - String workspaceName, - EncryptionProtectorName encryptionProtectorName, - EncryptionProtectorInner parameters) { + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String workspaceName, EncryptionProtectorName encryptionProtectorName, EncryptionProtectorInner parameters) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -368,9 +301,8 @@ private Mono>> createOrUpdateWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (encryptionProtectorName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter encryptionProtectorName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter encryptionProtectorName is required and cannot be null.")); } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); @@ -380,27 +312,17 @@ private Mono>> createOrUpdateWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - encryptionProtectorName, - parameters, - accept, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, encryptionProtectorName, parameters, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Updates workspace server's encryption protector. - * - *

Updates workspace managed sql server's encryption protector. - * + * + * Updates workspace managed sql server's encryption protector. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param encryptionProtectorName The name of the encryption protector. @@ -412,23 +334,16 @@ private Mono>> createOrUpdateWithResponseAsync( * @return the server encryption protector along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String resourceGroupName, - String workspaceName, - EncryptionProtectorName encryptionProtectorName, - EncryptionProtectorInner parameters, + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String workspaceName, EncryptionProtectorName encryptionProtectorName, EncryptionProtectorInner parameters, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -438,9 +353,8 @@ private Mono>> createOrUpdateWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (encryptionProtectorName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter encryptionProtectorName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter encryptionProtectorName is required and cannot be null.")); } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); @@ -450,24 +364,15 @@ private Mono>> createOrUpdateWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - encryptionProtectorName, - parameters, - accept, - context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, encryptionProtectorName, parameters, accept, context); } /** * Updates workspace server's encryption protector. - * - *

Updates workspace managed sql server's encryption protector. - * + * + * Updates workspace managed sql server's encryption protector. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param encryptionProtectorName The name of the encryption protector. @@ -479,27 +384,20 @@ private Mono>> createOrUpdateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, EncryptionProtectorInner> beginCreateOrUpdateAsync( - String resourceGroupName, - String workspaceName, - EncryptionProtectorName encryptionProtectorName, + String resourceGroupName, String workspaceName, EncryptionProtectorName encryptionProtectorName, EncryptionProtectorInner parameters) { - Mono>> mono = - createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, encryptionProtectorName, parameters); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - EncryptionProtectorInner.class, - EncryptionProtectorInner.class, - this.client.getContext()); + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, encryptionProtectorName, parameters); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), EncryptionProtectorInner.class, EncryptionProtectorInner.class, + this.client.getContext()); } /** * Updates workspace server's encryption protector. - * - *

Updates workspace managed sql server's encryption protector. - * + * + * Updates workspace managed sql server's encryption protector. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param encryptionProtectorName The name of the encryption protector. @@ -512,30 +410,20 @@ private PollerFlux, EncryptionProtectorInne */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, EncryptionProtectorInner> beginCreateOrUpdateAsync( - String resourceGroupName, - String workspaceName, - EncryptionProtectorName encryptionProtectorName, - EncryptionProtectorInner parameters, - Context context) { + String resourceGroupName, String workspaceName, EncryptionProtectorName encryptionProtectorName, + EncryptionProtectorInner parameters, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - createOrUpdateWithResponseAsync( - resourceGroupName, workspaceName, encryptionProtectorName, parameters, context); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - EncryptionProtectorInner.class, - EncryptionProtectorInner.class, - context); + Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, + encryptionProtectorName, parameters, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), EncryptionProtectorInner.class, EncryptionProtectorInner.class, context); } /** * Updates workspace server's encryption protector. - * - *

Updates workspace managed sql server's encryption protector. - * + * + * Updates workspace managed sql server's encryption protector. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param encryptionProtectorName The name of the encryption protector. @@ -547,20 +435,17 @@ private PollerFlux, EncryptionProtectorInne */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, EncryptionProtectorInner> beginCreateOrUpdate( - String resourceGroupName, - String workspaceName, - EncryptionProtectorName encryptionProtectorName, + String resourceGroupName, String workspaceName, EncryptionProtectorName encryptionProtectorName, EncryptionProtectorInner parameters) { - return this - .beginCreateOrUpdateAsync(resourceGroupName, workspaceName, encryptionProtectorName, parameters) + return this.beginCreateOrUpdateAsync(resourceGroupName, workspaceName, encryptionProtectorName, parameters) .getSyncPoller(); } /** * Updates workspace server's encryption protector. - * - *

Updates workspace managed sql server's encryption protector. - * + * + * Updates workspace managed sql server's encryption protector. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param encryptionProtectorName The name of the encryption protector. @@ -573,11 +458,8 @@ public SyncPoller, EncryptionProtectorInner */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, EncryptionProtectorInner> beginCreateOrUpdate( - String resourceGroupName, - String workspaceName, - EncryptionProtectorName encryptionProtectorName, - EncryptionProtectorInner parameters, - Context context) { + String resourceGroupName, String workspaceName, EncryptionProtectorName encryptionProtectorName, + EncryptionProtectorInner parameters, Context context) { return this .beginCreateOrUpdateAsync(resourceGroupName, workspaceName, encryptionProtectorName, parameters, context) .getSyncPoller(); @@ -585,9 +467,9 @@ public SyncPoller, EncryptionProtectorInner /** * Updates workspace server's encryption protector. - * - *

Updates workspace managed sql server's encryption protector. - * + * + * Updates workspace managed sql server's encryption protector. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param encryptionProtectorName The name of the encryption protector. @@ -598,21 +480,17 @@ public SyncPoller, EncryptionProtectorInner * @return the server encryption protector on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, - String workspaceName, - EncryptionProtectorName encryptionProtectorName, - EncryptionProtectorInner parameters) { - return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, encryptionProtectorName, parameters) - .last() + private Mono createOrUpdateAsync(String resourceGroupName, String workspaceName, + EncryptionProtectorName encryptionProtectorName, EncryptionProtectorInner parameters) { + return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, encryptionProtectorName, parameters).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Updates workspace server's encryption protector. - * - *

Updates workspace managed sql server's encryption protector. - * + * + * Updates workspace managed sql server's encryption protector. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param encryptionProtectorName The name of the encryption protector. @@ -624,22 +502,17 @@ private Mono createOrUpdateAsync( * @return the server encryption protector on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, - String workspaceName, - EncryptionProtectorName encryptionProtectorName, - EncryptionProtectorInner parameters, - Context context) { + private Mono createOrUpdateAsync(String resourceGroupName, String workspaceName, + EncryptionProtectorName encryptionProtectorName, EncryptionProtectorInner parameters, Context context) { return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, encryptionProtectorName, parameters, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + .last().flatMap(this.client::getLroFinalResultOrError); } /** * Updates workspace server's encryption protector. - * - *

Updates workspace managed sql server's encryption protector. - * + * + * Updates workspace managed sql server's encryption protector. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param encryptionProtectorName The name of the encryption protector. @@ -650,19 +523,16 @@ private Mono createOrUpdateAsync( * @return the server encryption protector. */ @ServiceMethod(returns = ReturnType.SINGLE) - public EncryptionProtectorInner createOrUpdate( - String resourceGroupName, - String workspaceName, - EncryptionProtectorName encryptionProtectorName, - EncryptionProtectorInner parameters) { + public EncryptionProtectorInner createOrUpdate(String resourceGroupName, String workspaceName, + EncryptionProtectorName encryptionProtectorName, EncryptionProtectorInner parameters) { return createOrUpdateAsync(resourceGroupName, workspaceName, encryptionProtectorName, parameters).block(); } /** * Updates workspace server's encryption protector. - * - *

Updates workspace managed sql server's encryption protector. - * + * + * Updates workspace managed sql server's encryption protector. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param encryptionProtectorName The name of the encryption protector. @@ -674,43 +544,35 @@ public EncryptionProtectorInner createOrUpdate( * @return the server encryption protector. */ @ServiceMethod(returns = ReturnType.SINGLE) - public EncryptionProtectorInner createOrUpdate( - String resourceGroupName, - String workspaceName, - EncryptionProtectorName encryptionProtectorName, - EncryptionProtectorInner parameters, - Context context) { + public EncryptionProtectorInner createOrUpdate(String resourceGroupName, String workspaceName, + EncryptionProtectorName encryptionProtectorName, EncryptionProtectorInner parameters, Context context) { return createOrUpdateAsync(resourceGroupName, workspaceName, encryptionProtectorName, parameters, context) .block(); } /** * Get list of encryption protectors for the server. - * - *

Get list of encryption protectors for workspace managed sql server. - * + * + * Get list of encryption protectors for workspace managed sql server. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 encryption protectors for workspace managed sql server along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String workspaceName) { + private Mono> listSinglePageAsync(String resourceGroupName, + String workspaceName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -722,34 +584,18 @@ private Mono> listSinglePageAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get list of encryption protectors for the server. - * - *

Get list of encryption protectors for workspace managed sql server. - * + * + * Get list of encryption protectors for workspace managed sql server. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -757,22 +603,18 @@ private Mono> listSinglePageAsync( * @throws 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 encryption protectors for workspace managed sql server along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String workspaceName, Context context) { + private Mono> listSinglePageAsync(String resourceGroupName, + String workspaceName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -785,78 +627,64 @@ private Mono> listSinglePageAsync( final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * Get list of encryption protectors for the server. - * - *

Get list of encryption protectors for workspace managed sql server. - * + * + * Get list of encryption protectors for workspace managed sql server. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 encryption protectors for workspace managed sql server as paginated response with {@link - * PagedFlux}. + * @return list of encryption protectors for workspace managed sql server as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String workspaceName) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, workspaceName), nextLink -> listNextSinglePageAsync(nextLink)); + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName), + nextLink -> listNextSinglePageAsync(nextLink)); } /** * Get list of encryption protectors for the server. - * - *

Get list of encryption protectors for workspace managed sql server. - * + * + * Get list of encryption protectors for workspace managed sql server. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 encryption protectors for workspace managed sql server as paginated response with {@link - * PagedFlux}. + * @return list of encryption protectors for workspace managed sql server as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( - String resourceGroupName, String workspaceName, Context context) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, workspaceName, context), + private PagedFlux listAsync(String resourceGroupName, String workspaceName, + Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } /** * Get list of encryption protectors for the server. - * - *

Get list of encryption protectors for workspace managed sql server. - * + * + * Get list of encryption protectors for workspace managed sql server. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 encryption protectors for workspace managed sql server as paginated response with {@link - * PagedIterable}. + * @return list of encryption protectors for workspace managed sql server as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String workspaceName) { @@ -865,29 +693,29 @@ public PagedIterable list(String resourceGroupName, St /** * Get list of encryption protectors for the server. - * - *

Get list of encryption protectors for workspace managed sql server. - * + * + * Get list of encryption protectors for workspace managed sql server. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 encryption protectors for workspace managed sql server as paginated response with {@link - * PagedIterable}. + * @return list of encryption protectors for workspace managed sql server as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list( - String resourceGroupName, String workspaceName, Context context) { + public PagedIterable list(String resourceGroupName, String workspaceName, + Context context) { return new PagedIterable<>(listAsync(resourceGroupName, workspaceName, context)); } /** * Revalidates server's existing encryption protector. - * - *

Revalidates workspace managed sql server's existing encryption protector. - * + * + * Revalidates workspace managed sql server's existing encryption protector. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param encryptionProtectorName The name of the encryption protector. @@ -897,19 +725,15 @@ public PagedIterable list( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> revalidateWithResponseAsync( - String resourceGroupName, String workspaceName, EncryptionProtectorName encryptionProtectorName) { + private Mono>> revalidateWithResponseAsync(String resourceGroupName, String workspaceName, + EncryptionProtectorName encryptionProtectorName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -919,31 +743,21 @@ private Mono>> revalidateWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (encryptionProtectorName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter encryptionProtectorName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter encryptionProtectorName is required and cannot be null.")); } final String apiVersion = "2021-06-01"; return FluxUtil - .withContext( - context -> - service - .revalidate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - encryptionProtectorName, - context)) + .withContext(context -> service.revalidate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, encryptionProtectorName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Revalidates server's existing encryption protector. - * - *

Revalidates workspace managed sql server's existing encryption protector. - * + * + * Revalidates workspace managed sql server's existing encryption protector. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param encryptionProtectorName The name of the encryption protector. @@ -954,22 +768,15 @@ private Mono>> revalidateWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> revalidateWithResponseAsync( - String resourceGroupName, - String workspaceName, - EncryptionProtectorName encryptionProtectorName, - Context context) { + private Mono>> revalidateWithResponseAsync(String resourceGroupName, String workspaceName, + EncryptionProtectorName encryptionProtectorName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -979,28 +786,20 @@ private Mono>> revalidateWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (encryptionProtectorName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter encryptionProtectorName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter encryptionProtectorName is required and cannot be null.")); } final String apiVersion = "2021-06-01"; context = this.client.mergeContext(context); - return service - .revalidate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - encryptionProtectorName, - context); + return service.revalidate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, encryptionProtectorName, context); } /** * Revalidates server's existing encryption protector. - * - *

Revalidates workspace managed sql server's existing encryption protector. - * + * + * Revalidates workspace managed sql server's existing encryption protector. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param encryptionProtectorName The name of the encryption protector. @@ -1010,21 +809,19 @@ private Mono>> revalidateWithResponseAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginRevalidateAsync( - String resourceGroupName, String workspaceName, EncryptionProtectorName encryptionProtectorName) { - Mono>> mono = - revalidateWithResponseAsync(resourceGroupName, workspaceName, encryptionProtectorName); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + private PollerFlux, Void> beginRevalidateAsync(String resourceGroupName, String workspaceName, + EncryptionProtectorName encryptionProtectorName) { + Mono>> mono + = revalidateWithResponseAsync(resourceGroupName, workspaceName, encryptionProtectorName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Revalidates server's existing encryption protector. - * - *

Revalidates workspace managed sql server's existing encryption protector. - * + * + * Revalidates workspace managed sql server's existing encryption protector. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param encryptionProtectorName The name of the encryption protector. @@ -1035,24 +832,20 @@ private PollerFlux, Void> beginRevalidateAsync( * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginRevalidateAsync( - String resourceGroupName, - String workspaceName, - EncryptionProtectorName encryptionProtectorName, - Context context) { + private PollerFlux, Void> beginRevalidateAsync(String resourceGroupName, String workspaceName, + EncryptionProtectorName encryptionProtectorName, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - revalidateWithResponseAsync(resourceGroupName, workspaceName, encryptionProtectorName, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + Mono>> mono + = revalidateWithResponseAsync(resourceGroupName, workspaceName, encryptionProtectorName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * Revalidates server's existing encryption protector. - * - *

Revalidates workspace managed sql server's existing encryption protector. - * + * + * Revalidates workspace managed sql server's existing encryption protector. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param encryptionProtectorName The name of the encryption protector. @@ -1062,16 +855,16 @@ private PollerFlux, Void> beginRevalidateAsync( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginRevalidate( - String resourceGroupName, String workspaceName, EncryptionProtectorName encryptionProtectorName) { + public SyncPoller, Void> beginRevalidate(String resourceGroupName, String workspaceName, + EncryptionProtectorName encryptionProtectorName) { return this.beginRevalidateAsync(resourceGroupName, workspaceName, encryptionProtectorName).getSyncPoller(); } /** * Revalidates server's existing encryption protector. - * - *

Revalidates workspace managed sql server's existing encryption protector. - * + * + * Revalidates workspace managed sql server's existing encryption protector. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param encryptionProtectorName The name of the encryption protector. @@ -1082,21 +875,17 @@ public SyncPoller, Void> beginRevalidate( * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginRevalidate( - String resourceGroupName, - String workspaceName, - EncryptionProtectorName encryptionProtectorName, - Context context) { - return this - .beginRevalidateAsync(resourceGroupName, workspaceName, encryptionProtectorName, context) + public SyncPoller, Void> beginRevalidate(String resourceGroupName, String workspaceName, + EncryptionProtectorName encryptionProtectorName, Context context) { + return this.beginRevalidateAsync(resourceGroupName, workspaceName, encryptionProtectorName, context) .getSyncPoller(); } /** * Revalidates server's existing encryption protector. - * - *

Revalidates workspace managed sql server's existing encryption protector. - * + * + * Revalidates workspace managed sql server's existing encryption protector. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param encryptionProtectorName The name of the encryption protector. @@ -1106,18 +895,17 @@ public SyncPoller, Void> beginRevalidate( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono revalidateAsync( - String resourceGroupName, String workspaceName, EncryptionProtectorName encryptionProtectorName) { - return beginRevalidateAsync(resourceGroupName, workspaceName, encryptionProtectorName) - .last() + private Mono revalidateAsync(String resourceGroupName, String workspaceName, + EncryptionProtectorName encryptionProtectorName) { + return beginRevalidateAsync(resourceGroupName, workspaceName, encryptionProtectorName).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Revalidates server's existing encryption protector. - * - *

Revalidates workspace managed sql server's existing encryption protector. - * + * + * Revalidates workspace managed sql server's existing encryption protector. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param encryptionProtectorName The name of the encryption protector. @@ -1128,21 +916,17 @@ private Mono revalidateAsync( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono revalidateAsync( - String resourceGroupName, - String workspaceName, - EncryptionProtectorName encryptionProtectorName, - Context context) { - return beginRevalidateAsync(resourceGroupName, workspaceName, encryptionProtectorName, context) - .last() + private Mono revalidateAsync(String resourceGroupName, String workspaceName, + EncryptionProtectorName encryptionProtectorName, Context context) { + return beginRevalidateAsync(resourceGroupName, workspaceName, encryptionProtectorName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Revalidates server's existing encryption protector. - * - *

Revalidates workspace managed sql server's existing encryption protector. - * + * + * Revalidates workspace managed sql server's existing encryption protector. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param encryptionProtectorName The name of the encryption protector. @@ -1151,16 +935,16 @@ private Mono revalidateAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void revalidate( - String resourceGroupName, String workspaceName, EncryptionProtectorName encryptionProtectorName) { + public void revalidate(String resourceGroupName, String workspaceName, + EncryptionProtectorName encryptionProtectorName) { revalidateAsync(resourceGroupName, workspaceName, encryptionProtectorName).block(); } /** * Revalidates server's existing encryption protector. - * - *

Revalidates workspace managed sql server's existing encryption protector. - * + * + * Revalidates workspace managed sql server's existing encryption protector. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param encryptionProtectorName The name of the encryption protector. @@ -1170,24 +954,22 @@ public void revalidate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void revalidate( - String resourceGroupName, - String workspaceName, - EncryptionProtectorName encryptionProtectorName, - Context context) { + public void revalidate(String resourceGroupName, String workspaceName, + EncryptionProtectorName encryptionProtectorName, Context context) { revalidateAsync(resourceGroupName, workspaceName, encryptionProtectorName, context).block(); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of server encryption protectors along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -1195,37 +977,28 @@ private Mono> listNextSinglePageAsync(St return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of server encryption protectors along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { @@ -1233,23 +1006,13 @@ private Mono> listNextSinglePageAsync(St return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerEncryptionProtectorsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerEncryptionProtectorsImpl.java index 692aa8f97f86..cc0e1c1a1584 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerEncryptionProtectorsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerEncryptionProtectorsImpl.java @@ -17,8 +17,8 @@ public final class WorkspaceManagedSqlServerEncryptionProtectorsImpl implements WorkspaceManagedSqlServerEncryptionProtectors { - private static final ClientLogger LOGGER = - new ClientLogger(WorkspaceManagedSqlServerEncryptionProtectorsImpl.class); + private static final ClientLogger LOGGER + = new ClientLogger(WorkspaceManagedSqlServerEncryptionProtectorsImpl.class); private final WorkspaceManagedSqlServerEncryptionProtectorsClient innerClient; @@ -31,28 +31,22 @@ public WorkspaceManagedSqlServerEncryptionProtectorsImpl( this.serviceManager = serviceManager; } - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - EncryptionProtectorName encryptionProtectorName, - Context context) { - Response inner = - this.serviceClient().getWithResponse(resourceGroupName, workspaceName, encryptionProtectorName, context); + public Response getWithResponse(String resourceGroupName, String workspaceName, + EncryptionProtectorName encryptionProtectorName, Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, workspaceName, encryptionProtectorName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new EncryptionProtectorImpl(inner.getValue(), this.manager())); } else { return null; } } - public EncryptionProtector get( - String resourceGroupName, String workspaceName, EncryptionProtectorName encryptionProtectorName) { - EncryptionProtectorInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, encryptionProtectorName); + public EncryptionProtector get(String resourceGroupName, String workspaceName, + EncryptionProtectorName encryptionProtectorName) { + EncryptionProtectorInner inner + = this.serviceClient().get(resourceGroupName, workspaceName, encryptionProtectorName); if (inner != null) { return new EncryptionProtectorImpl(inner, this.manager()); } else { @@ -62,85 +56,64 @@ public EncryptionProtector get( public PagedIterable list(String resourceGroupName, String workspaceName) { PagedIterable inner = this.serviceClient().list(resourceGroupName, workspaceName); - return Utils.mapPage(inner, inner1 -> new EncryptionProtectorImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new EncryptionProtectorImpl(inner1, this.manager())); } public PagedIterable list(String resourceGroupName, String workspaceName, Context context) { - PagedIterable inner = - this.serviceClient().list(resourceGroupName, workspaceName, context); - return Utils.mapPage(inner, inner1 -> new EncryptionProtectorImpl(inner1, this.manager())); + PagedIterable inner + = this.serviceClient().list(resourceGroupName, workspaceName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new EncryptionProtectorImpl(inner1, this.manager())); } - public void revalidate( - String resourceGroupName, String workspaceName, EncryptionProtectorName encryptionProtectorName) { + public void revalidate(String resourceGroupName, String workspaceName, + EncryptionProtectorName encryptionProtectorName) { this.serviceClient().revalidate(resourceGroupName, workspaceName, encryptionProtectorName); } - public void revalidate( - String resourceGroupName, - String workspaceName, - EncryptionProtectorName encryptionProtectorName, - Context context) { + public void revalidate(String resourceGroupName, String workspaceName, + EncryptionProtectorName encryptionProtectorName, Context context) { this.serviceClient().revalidate(resourceGroupName, workspaceName, encryptionProtectorName, context); } public EncryptionProtector getById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String encryptionProtectorNameLocal = Utils.getValueFromIdByName(id, "encryptionProtector"); + String encryptionProtectorNameLocal = ResourceManagerUtils.getValueFromIdByName(id, "encryptionProtector"); if (encryptionProtectorNameLocal == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'encryptionProtector'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'encryptionProtector'.", id))); } - EncryptionProtectorName encryptionProtectorName = - EncryptionProtectorName.fromString(encryptionProtectorNameLocal); + EncryptionProtectorName encryptionProtectorName + = EncryptionProtectorName.fromString(encryptionProtectorNameLocal); return this.getWithResponse(resourceGroupName, workspaceName, encryptionProtectorName, Context.NONE).getValue(); } public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String encryptionProtectorNameLocal = Utils.getValueFromIdByName(id, "encryptionProtector"); + String encryptionProtectorNameLocal = ResourceManagerUtils.getValueFromIdByName(id, "encryptionProtector"); if (encryptionProtectorNameLocal == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'encryptionProtector'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'encryptionProtector'.", id))); } - EncryptionProtectorName encryptionProtectorName = - EncryptionProtectorName.fromString(encryptionProtectorNameLocal); + EncryptionProtectorName encryptionProtectorName + = EncryptionProtectorName.fromString(encryptionProtectorNameLocal); return this.getWithResponse(resourceGroupName, workspaceName, encryptionProtectorName, context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClientImpl.java index 1679cfc507c3..c6a5a6902a94 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClientImpl.java @@ -44,24 +44,24 @@ */ public final class WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClientImpl implements WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy - .create( - WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesService.class, - client.getHttpPipeline(), - client.getSerializerAdapter()); + this.service = RestProxy.create(WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesService.class, + client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } @@ -73,70 +73,50 @@ public final class WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClientIm @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/extendedAuditingSettings/{blobAuditingPolicyName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/extendedAuditingSettings/{blobAuditingPolicyName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono> get(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("blobAuditingPolicyName") BlobAuditingPolicyName blobAuditingPolicyName, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/extendedAuditingSettings/{blobAuditingPolicyName}") - @ExpectedResponses({200, 202}) + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/extendedAuditingSettings/{blobAuditingPolicyName}") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono>> createOrUpdate(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("blobAuditingPolicyName") BlobAuditingPolicyName blobAuditingPolicyName, @BodyParam("application/json") ExtendedServerBlobAuditingPolicyInner parameters, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/extendedAuditingSettings") - @ExpectedResponses({200}) + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/extendedAuditingSettings") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByWorkspace( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) + Mono> listByWorkspace(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByWorkspaceNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** * Get server's extended blob auditing policy. - * - *

Get a workspace SQL server's extended blob auditing policy. - * + * + * Get a workspace SQL server's extended blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. @@ -144,22 +124,18 @@ Mono> listByWorkspaceNext( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a workspace SQL server's extended blob auditing policy along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -169,33 +145,22 @@ private Mono> getWithResponseAsy return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (blobAuditingPolicyName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter blobAuditingPolicyName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter blobAuditingPolicyName is required and cannot be null.")); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - blobAuditingPolicyName, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, blobAuditingPolicyName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get server's extended blob auditing policy. - * - *

Get a workspace SQL server's extended blob auditing policy. - * + * + * Get a workspace SQL server's extended blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. @@ -204,25 +169,18 @@ private Mono> getWithResponseAsy * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a workspace SQL server's extended blob auditing policy along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, - String workspaceName, - BlobAuditingPolicyName blobAuditingPolicyName, - Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -232,30 +190,21 @@ private Mono> getWithResponseAsy return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (blobAuditingPolicyName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter blobAuditingPolicyName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter blobAuditingPolicyName is required and cannot be null.")); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - blobAuditingPolicyName, - accept, - context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, blobAuditingPolicyName, accept, context); } /** * Get server's extended blob auditing policy. - * - *

Get a workspace SQL server's extended blob auditing policy. - * + * + * Get a workspace SQL server's extended blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. @@ -265,17 +214,17 @@ private Mono> getWithResponseAsy * @return a workspace SQL server's extended blob auditing policy on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName) { + private Mono getAsync(String resourceGroupName, String workspaceName, + BlobAuditingPolicyName blobAuditingPolicyName) { return getWithResponseAsync(resourceGroupName, workspaceName, blobAuditingPolicyName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Get server's extended blob auditing policy. - * - *

Get a workspace SQL server's extended blob auditing policy. - * + * + * Get a workspace SQL server's extended blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. @@ -286,19 +235,16 @@ private Mono getAsync( * @return a workspace SQL server's extended blob auditing policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - BlobAuditingPolicyName blobAuditingPolicyName, - Context context) { + public Response getWithResponse(String resourceGroupName, + String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName, Context context) { return getWithResponseAsync(resourceGroupName, workspaceName, blobAuditingPolicyName, context).block(); } /** * Get server's extended blob auditing policy. - * - *

Get a workspace SQL server's extended blob auditing policy. - * + * + * Get a workspace SQL server's extended blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. @@ -308,16 +254,16 @@ public Response getWithResponse( * @return a workspace SQL server's extended blob auditing policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ExtendedServerBlobAuditingPolicyInner get( - String resourceGroupName, String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName) { + public ExtendedServerBlobAuditingPolicyInner get(String resourceGroupName, String workspaceName, + BlobAuditingPolicyName blobAuditingPolicyName) { return getWithResponse(resourceGroupName, workspaceName, blobAuditingPolicyName, Context.NONE).getValue(); } /** * Create or Update server's extended blob auditing policy. - * - *

Create or Update a workspace managed sql server's extended blob auditing policy. - * + * + * Create or Update a workspace managed sql server's extended blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. @@ -325,26 +271,20 @@ public ExtendedServerBlobAuditingPolicyInner get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an extended server blob auditing policy along with {@link Response} on successful completion of {@link - * Mono}. + * @return an extended server blob auditing policy along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String resourceGroupName, - String workspaceName, - BlobAuditingPolicyName blobAuditingPolicyName, + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName, ExtendedServerBlobAuditingPolicyInner parameters) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -354,9 +294,8 @@ private Mono>> createOrUpdateWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (blobAuditingPolicyName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter blobAuditingPolicyName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter blobAuditingPolicyName is required and cannot be null.")); } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); @@ -366,27 +305,17 @@ private Mono>> createOrUpdateWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - blobAuditingPolicyName, - parameters, - accept, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, blobAuditingPolicyName, parameters, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Create or Update server's extended blob auditing policy. - * - *

Create or Update a workspace managed sql server's extended blob auditing policy. - * + * + * Create or Update a workspace managed sql server's extended blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. @@ -395,27 +324,20 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an extended server blob auditing policy along with {@link Response} on successful completion of {@link - * Mono}. + * @return an extended server blob auditing policy along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String resourceGroupName, - String workspaceName, - BlobAuditingPolicyName blobAuditingPolicyName, - ExtendedServerBlobAuditingPolicyInner parameters, - Context context) { + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName, + ExtendedServerBlobAuditingPolicyInner parameters, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -425,9 +347,8 @@ private Mono>> createOrUpdateWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (blobAuditingPolicyName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter blobAuditingPolicyName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter blobAuditingPolicyName is required and cannot be null.")); } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); @@ -437,24 +358,15 @@ private Mono>> createOrUpdateWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - blobAuditingPolicyName, - parameters, - accept, - context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, blobAuditingPolicyName, parameters, accept, context); } /** * Create or Update server's extended blob auditing policy. - * - *

Create or Update a workspace managed sql server's extended blob auditing policy. - * + * + * Create or Update a workspace managed sql server's extended blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. @@ -466,28 +378,20 @@ private Mono>> createOrUpdateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ExtendedServerBlobAuditingPolicyInner> - beginCreateOrUpdateAsync( - String resourceGroupName, - String workspaceName, - BlobAuditingPolicyName blobAuditingPolicyName, - ExtendedServerBlobAuditingPolicyInner parameters) { - Mono>> mono = - createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, blobAuditingPolicyName, parameters); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - ExtendedServerBlobAuditingPolicyInner.class, - ExtendedServerBlobAuditingPolicyInner.class, - this.client.getContext()); + beginCreateOrUpdateAsync(String resourceGroupName, String workspaceName, + BlobAuditingPolicyName blobAuditingPolicyName, ExtendedServerBlobAuditingPolicyInner parameters) { + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, blobAuditingPolicyName, parameters); + return this.client.getLroResult( + mono, this.client.getHttpPipeline(), ExtendedServerBlobAuditingPolicyInner.class, + ExtendedServerBlobAuditingPolicyInner.class, this.client.getContext()); } /** * Create or Update server's extended blob auditing policy. - * - *

Create or Update a workspace managed sql server's extended blob auditing policy. - * + * + * Create or Update a workspace managed sql server's extended blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. @@ -500,31 +404,22 @@ private Mono>> createOrUpdateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ExtendedServerBlobAuditingPolicyInner> - beginCreateOrUpdateAsync( - String resourceGroupName, - String workspaceName, - BlobAuditingPolicyName blobAuditingPolicyName, - ExtendedServerBlobAuditingPolicyInner parameters, + beginCreateOrUpdateAsync(String resourceGroupName, String workspaceName, + BlobAuditingPolicyName blobAuditingPolicyName, ExtendedServerBlobAuditingPolicyInner parameters, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - createOrUpdateWithResponseAsync( - resourceGroupName, workspaceName, blobAuditingPolicyName, parameters, context); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - ExtendedServerBlobAuditingPolicyInner.class, - ExtendedServerBlobAuditingPolicyInner.class, - context); + Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, + blobAuditingPolicyName, parameters, context); + return this.client.getLroResult( + mono, this.client.getHttpPipeline(), ExtendedServerBlobAuditingPolicyInner.class, + ExtendedServerBlobAuditingPolicyInner.class, context); } /** * Create or Update server's extended blob auditing policy. - * - *

Create or Update a workspace managed sql server's extended blob auditing policy. - * + * + * Create or Update a workspace managed sql server's extended blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. @@ -536,21 +431,17 @@ private Mono>> createOrUpdateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ExtendedServerBlobAuditingPolicyInner> - beginCreateOrUpdate( - String resourceGroupName, - String workspaceName, - BlobAuditingPolicyName blobAuditingPolicyName, - ExtendedServerBlobAuditingPolicyInner parameters) { - return this - .beginCreateOrUpdateAsync(resourceGroupName, workspaceName, blobAuditingPolicyName, parameters) + beginCreateOrUpdate(String resourceGroupName, String workspaceName, + BlobAuditingPolicyName blobAuditingPolicyName, ExtendedServerBlobAuditingPolicyInner parameters) { + return this.beginCreateOrUpdateAsync(resourceGroupName, workspaceName, blobAuditingPolicyName, parameters) .getSyncPoller(); } /** * Create or Update server's extended blob auditing policy. - * - *

Create or Update a workspace managed sql server's extended blob auditing policy. - * + * + * Create or Update a workspace managed sql server's extended blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. @@ -563,11 +454,8 @@ private Mono>> createOrUpdateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ExtendedServerBlobAuditingPolicyInner> - beginCreateOrUpdate( - String resourceGroupName, - String workspaceName, - BlobAuditingPolicyName blobAuditingPolicyName, - ExtendedServerBlobAuditingPolicyInner parameters, + beginCreateOrUpdate(String resourceGroupName, String workspaceName, + BlobAuditingPolicyName blobAuditingPolicyName, ExtendedServerBlobAuditingPolicyInner parameters, Context context) { return this .beginCreateOrUpdateAsync(resourceGroupName, workspaceName, blobAuditingPolicyName, parameters, context) @@ -576,9 +464,9 @@ private Mono>> createOrUpdateWithResponseAsync( /** * Create or Update server's extended blob auditing policy. - * - *

Create or Update a workspace managed sql server's extended blob auditing policy. - * + * + * Create or Update a workspace managed sql server's extended blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. @@ -589,21 +477,18 @@ private Mono>> createOrUpdateWithResponseAsync( * @return an extended server blob auditing policy on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, - String workspaceName, - BlobAuditingPolicyName blobAuditingPolicyName, + private Mono createOrUpdateAsync(String resourceGroupName, + String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName, ExtendedServerBlobAuditingPolicyInner parameters) { - return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, blobAuditingPolicyName, parameters) - .last() + return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, blobAuditingPolicyName, parameters).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Create or Update server's extended blob auditing policy. - * - *

Create or Update a workspace managed sql server's extended blob auditing policy. - * + * + * Create or Update a workspace managed sql server's extended blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. @@ -615,22 +500,18 @@ private Mono createOrUpdateAsync( * @return an extended server blob auditing policy on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, - String workspaceName, - BlobAuditingPolicyName blobAuditingPolicyName, - ExtendedServerBlobAuditingPolicyInner parameters, - Context context) { + private Mono createOrUpdateAsync(String resourceGroupName, + String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName, + ExtendedServerBlobAuditingPolicyInner parameters, Context context) { return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, blobAuditingPolicyName, parameters, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + .last().flatMap(this.client::getLroFinalResultOrError); } /** * Create or Update server's extended blob auditing policy. - * - *

Create or Update a workspace managed sql server's extended blob auditing policy. - * + * + * Create or Update a workspace managed sql server's extended blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. @@ -641,19 +522,16 @@ private Mono createOrUpdateAsync( * @return an extended server blob auditing policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ExtendedServerBlobAuditingPolicyInner createOrUpdate( - String resourceGroupName, - String workspaceName, - BlobAuditingPolicyName blobAuditingPolicyName, - ExtendedServerBlobAuditingPolicyInner parameters) { + public ExtendedServerBlobAuditingPolicyInner createOrUpdate(String resourceGroupName, String workspaceName, + BlobAuditingPolicyName blobAuditingPolicyName, ExtendedServerBlobAuditingPolicyInner parameters) { return createOrUpdateAsync(resourceGroupName, workspaceName, blobAuditingPolicyName, parameters).block(); } /** * Create or Update server's extended blob auditing policy. - * - *

Create or Update a workspace managed sql server's extended blob auditing policy. - * + * + * Create or Update a workspace managed sql server's extended blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. @@ -665,11 +543,8 @@ public ExtendedServerBlobAuditingPolicyInner createOrUpdate( * @return an extended server blob auditing policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ExtendedServerBlobAuditingPolicyInner createOrUpdate( - String resourceGroupName, - String workspaceName, - BlobAuditingPolicyName blobAuditingPolicyName, - ExtendedServerBlobAuditingPolicyInner parameters, + public ExtendedServerBlobAuditingPolicyInner createOrUpdate(String resourceGroupName, String workspaceName, + BlobAuditingPolicyName blobAuditingPolicyName, ExtendedServerBlobAuditingPolicyInner parameters, Context context) { return createOrUpdateAsync(resourceGroupName, workspaceName, blobAuditingPolicyName, parameters, context) .block(); @@ -677,31 +552,27 @@ public ExtendedServerBlobAuditingPolicyInner createOrUpdate( /** * List server's extended blob auditing policies. - * - *

List workspace managed sql server's extended blob auditing policies. - * + * + * List workspace managed sql server's extended blob auditing policies. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of server extended auditing settings along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByWorkspaceSinglePageAsync( - String resourceGroupName, String workspaceName) { + private Mono> + listByWorkspaceSinglePageAsync(String resourceGroupName, String workspaceName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -713,34 +584,18 @@ private Mono> listByWorkspa final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .listByWorkspace( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .withContext(context -> service.listByWorkspace(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * List server's extended blob auditing policies. - * - *

List workspace managed sql server's extended blob auditing policies. - * + * + * List workspace managed sql server's extended blob auditing policies. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -748,22 +603,18 @@ private Mono> listByWorkspa * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of server extended auditing settings along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByWorkspaceSinglePageAsync( - String resourceGroupName, String workspaceName, Context context) { + private Mono> + listByWorkspaceSinglePageAsync(String resourceGroupName, String workspaceName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -776,30 +627,17 @@ private Mono> listByWorkspa final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByWorkspace( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + .listByWorkspace(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * List server's extended blob auditing policies. - * - *

List workspace managed sql server's extended blob auditing policies. - * + * + * List workspace managed sql server's extended blob auditing policies. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -808,18 +646,17 @@ private Mono> listByWorkspa * @return a list of server extended auditing settings as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByWorkspaceAsync( - String resourceGroupName, String workspaceName) { - return new PagedFlux<>( - () -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName), + private PagedFlux listByWorkspaceAsync(String resourceGroupName, + String workspaceName) { + return new PagedFlux<>(() -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName), nextLink -> listByWorkspaceNextSinglePageAsync(nextLink)); } /** * List server's extended blob auditing policies. - * - *

List workspace managed sql server's extended blob auditing policies. - * + * + * List workspace managed sql server's extended blob auditing policies. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -829,18 +666,17 @@ private PagedFlux listByWorkspaceAsync( * @return a list of server extended auditing settings as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByWorkspaceAsync( - String resourceGroupName, String workspaceName, Context context) { - return new PagedFlux<>( - () -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName, context), + private PagedFlux listByWorkspaceAsync(String resourceGroupName, + String workspaceName, Context context) { + return new PagedFlux<>(() -> listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName, context), nextLink -> listByWorkspaceNextSinglePageAsync(nextLink, context)); } /** * List server's extended blob auditing policies. - * - *

List workspace managed sql server's extended blob auditing policies. - * + * + * List workspace managed sql server's extended blob auditing policies. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -849,16 +685,16 @@ private PagedFlux listByWorkspaceAsync( * @return a list of server extended auditing settings as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByWorkspace( - String resourceGroupName, String workspaceName) { + public PagedIterable listByWorkspace(String resourceGroupName, + String workspaceName) { return new PagedIterable<>(listByWorkspaceAsync(resourceGroupName, workspaceName)); } /** * List server's extended blob auditing policies. - * - *

List workspace managed sql server's extended blob auditing policies. - * + * + * List workspace managed sql server's extended blob auditing policies. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -868,85 +704,68 @@ public PagedIterable listByWorkspace( * @return a list of server extended auditing settings as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByWorkspace( - String resourceGroupName, String workspaceName, Context context) { + public PagedIterable listByWorkspace(String resourceGroupName, + String workspaceName, Context context) { return new PagedIterable<>(listByWorkspaceAsync(resourceGroupName, workspaceName, context)); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of server extended auditing settings along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByWorkspaceNextSinglePageAsync( - String nextLink) { + private Mono> + listByWorkspaceNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByWorkspaceNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of server extended auditing settings along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByWorkspaceNextSinglePageAsync( - String nextLink, Context context) { + private Mono> + listByWorkspaceNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listByWorkspaceNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listByWorkspaceNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesImpl.java index f99018ec1242..2f2a42feac79 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesImpl.java @@ -17,8 +17,8 @@ public final class WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesImpl implements WorkspaceManagedSqlServerExtendedBlobAuditingPolicies { - private static final ClientLogger LOGGER = - new ClientLogger(WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesImpl.class); + private static final ClientLogger LOGGER + = new ClientLogger(WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesImpl.class); private final WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClient innerClient; @@ -31,28 +31,22 @@ public WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesImpl( this.serviceManager = serviceManager; } - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - BlobAuditingPolicyName blobAuditingPolicyName, - Context context) { - Response inner = - this.serviceClient().getWithResponse(resourceGroupName, workspaceName, blobAuditingPolicyName, context); + public Response getWithResponse(String resourceGroupName, String workspaceName, + BlobAuditingPolicyName blobAuditingPolicyName, Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, workspaceName, blobAuditingPolicyName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new ExtendedServerBlobAuditingPolicyImpl(inner.getValue(), this.manager())); } else { return null; } } - public ExtendedServerBlobAuditingPolicy get( - String resourceGroupName, String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName) { - ExtendedServerBlobAuditingPolicyInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, blobAuditingPolicyName); + public ExtendedServerBlobAuditingPolicy get(String resourceGroupName, String workspaceName, + BlobAuditingPolicyName blobAuditingPolicyName) { + ExtendedServerBlobAuditingPolicyInner inner + = this.serviceClient().get(resourceGroupName, workspaceName, blobAuditingPolicyName); if (inner != null) { return new ExtendedServerBlobAuditingPolicyImpl(inner, this.manager()); } else { @@ -60,75 +54,57 @@ public ExtendedServerBlobAuditingPolicy get( } } - public PagedIterable listByWorkspace( - String resourceGroupName, String workspaceName) { - PagedIterable inner = - this.serviceClient().listByWorkspace(resourceGroupName, workspaceName); - return Utils.mapPage(inner, inner1 -> new ExtendedServerBlobAuditingPolicyImpl(inner1, this.manager())); + public PagedIterable listByWorkspace(String resourceGroupName, + String workspaceName) { + PagedIterable inner + = this.serviceClient().listByWorkspace(resourceGroupName, workspaceName); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new ExtendedServerBlobAuditingPolicyImpl(inner1, this.manager())); } - public PagedIterable listByWorkspace( - String resourceGroupName, String workspaceName, Context context) { - PagedIterable inner = - this.serviceClient().listByWorkspace(resourceGroupName, workspaceName, context); - return Utils.mapPage(inner, inner1 -> new ExtendedServerBlobAuditingPolicyImpl(inner1, this.manager())); + public PagedIterable listByWorkspace(String resourceGroupName, + String workspaceName, Context context) { + PagedIterable inner + = this.serviceClient().listByWorkspace(resourceGroupName, workspaceName, context); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new ExtendedServerBlobAuditingPolicyImpl(inner1, this.manager())); } public ExtendedServerBlobAuditingPolicy getById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String blobAuditingPolicyNameLocal = Utils.getValueFromIdByName(id, "extendedAuditingSettings"); + String blobAuditingPolicyNameLocal = ResourceManagerUtils.getValueFromIdByName(id, "extendedAuditingSettings"); if (blobAuditingPolicyNameLocal == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'extendedAuditingSettings'.", - id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String + .format("The resource ID '%s' is not valid. Missing path segment 'extendedAuditingSettings'.", id))); } BlobAuditingPolicyName blobAuditingPolicyName = BlobAuditingPolicyName.fromString(blobAuditingPolicyNameLocal); return this.getWithResponse(resourceGroupName, workspaceName, blobAuditingPolicyName, Context.NONE).getValue(); } public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String blobAuditingPolicyNameLocal = Utils.getValueFromIdByName(id, "extendedAuditingSettings"); + String blobAuditingPolicyNameLocal = ResourceManagerUtils.getValueFromIdByName(id, "extendedAuditingSettings"); if (blobAuditingPolicyNameLocal == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'extendedAuditingSettings'.", - id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String + .format("The resource ID '%s' is not valid. Missing path segment 'extendedAuditingSettings'.", id))); } BlobAuditingPolicyName blobAuditingPolicyName = BlobAuditingPolicyName.fromString(blobAuditingPolicyNameLocal); return this.getWithResponse(resourceGroupName, workspaceName, blobAuditingPolicyName, context); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerRecoverableSqlPoolsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerRecoverableSqlPoolsClientImpl.java index 923ed7eca9a3..6670fe7aee6c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerRecoverableSqlPoolsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerRecoverableSqlPoolsClientImpl.java @@ -36,24 +36,24 @@ */ public final class WorkspaceManagedSqlServerRecoverableSqlPoolsClientImpl implements WorkspaceManagedSqlServerRecoverableSqlPoolsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final WorkspaceManagedSqlServerRecoverableSqlPoolsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of WorkspaceManagedSqlServerRecoverableSqlPoolsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ WorkspaceManagedSqlServerRecoverableSqlPoolsClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy - .create( - WorkspaceManagedSqlServerRecoverableSqlPoolsService.class, - client.getHttpPipeline(), - client.getSerializerAdapter()); + this.service = RestProxy.create(WorkspaceManagedSqlServerRecoverableSqlPoolsService.class, + client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } @@ -64,75 +64,56 @@ public final class WorkspaceManagedSqlServerRecoverableSqlPoolsClientImpl @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface WorkspaceManagedSqlServerRecoverableSqlPoolsService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/recoverableSqlPools") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/recoverableSqlPools") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @HeaderParam("Accept") String accept, - Context context); + Mono> list(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/recoverableSqlPools/{sqlPoolName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/recoverableSqlPools/{sqlPoolName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @PathParam("sqlPoolName") String sqlPoolName, - @HeaderParam("Accept") String accept, - Context context); + Mono> get(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @PathParam("sqlPoolName") String sqlPoolName, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** * Get list of recoverable sql pools for the server. - * - *

Get list of recoverable sql pools for workspace managed sql server. - * + * + * Get list of recoverable sql pools for workspace managed sql server. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 recoverable sql pools for workspace managed sql server along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String workspaceName) { + private Mono> listSinglePageAsync(String resourceGroupName, + String workspaceName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -144,34 +125,18 @@ private Mono> listSinglePageAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get list of recoverable sql pools for the server. - * - *

Get list of recoverable sql pools for workspace managed sql server. - * + * + * Get list of recoverable sql pools for workspace managed sql server. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -179,22 +144,18 @@ private Mono> listSinglePageAsync( * @throws 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 recoverable sql pools for workspace managed sql server along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String workspaceName, Context context) { + private Mono> listSinglePageAsync(String resourceGroupName, + String workspaceName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -207,78 +168,64 @@ private Mono> listSinglePageAsync( final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * Get list of recoverable sql pools for the server. - * - *

Get list of recoverable sql pools for workspace managed sql server. - * + * + * Get list of recoverable sql pools for workspace managed sql server. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 recoverable sql pools for workspace managed sql server as paginated response with {@link - * PagedFlux}. + * @return list of recoverable sql pools for workspace managed sql server as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String workspaceName) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, workspaceName), nextLink -> listNextSinglePageAsync(nextLink)); + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName), + nextLink -> listNextSinglePageAsync(nextLink)); } /** * Get list of recoverable sql pools for the server. - * - *

Get list of recoverable sql pools for workspace managed sql server. - * + * + * Get list of recoverable sql pools for workspace managed sql server. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 recoverable sql pools for workspace managed sql server as paginated response with {@link - * PagedFlux}. + * @return list of recoverable sql pools for workspace managed sql server as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( - String resourceGroupName, String workspaceName, Context context) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, workspaceName, context), + private PagedFlux listAsync(String resourceGroupName, String workspaceName, + Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } /** * Get list of recoverable sql pools for the server. - * - *

Get list of recoverable sql pools for workspace managed sql server. - * + * + * Get list of recoverable sql pools for workspace managed sql server. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 recoverable sql pools for workspace managed sql server as paginated response with {@link - * PagedIterable}. + * @return list of recoverable sql pools for workspace managed sql server as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String workspaceName) { @@ -287,29 +234,29 @@ public PagedIterable list(String resourceGroupName, Str /** * Get list of recoverable sql pools for the server. - * - *

Get list of recoverable sql pools for workspace managed sql server. - * + * + * Get list of recoverable sql pools for workspace managed sql server. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 recoverable sql pools for workspace managed sql server as paginated response with {@link - * PagedIterable}. + * @return list of recoverable sql pools for workspace managed sql server as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list( - String resourceGroupName, String workspaceName, Context context) { + public PagedIterable list(String resourceGroupName, String workspaceName, + Context context) { return new PagedIterable<>(listAsync(resourceGroupName, workspaceName, context)); } /** * Get recoverable sql pools for the server. - * - *

Get recoverable sql pools for workspace managed sql server. - * + * + * Get recoverable sql pools for workspace managed sql server. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName The name of the sql pool. @@ -317,22 +264,18 @@ public PagedIterable list( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return recoverable sql pools for workspace managed sql server along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, String sqlPoolName) { + private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -347,26 +290,16 @@ private Mono> getWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, sqlPoolName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get recoverable sql pools for the server. - * - *

Get recoverable sql pools for workspace managed sql server. - * + * + * Get recoverable sql pools for workspace managed sql server. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName The name of the sql pool. @@ -375,22 +308,18 @@ private Mono> getWithResponseAsync( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return recoverable sql pools for workspace managed sql server along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -405,23 +334,15 @@ private Mono> getWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - sqlPoolName, - accept, - context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, sqlPoolName, accept, context); } /** * Get recoverable sql pools for the server. - * - *

Get recoverable sql pools for workspace managed sql server. - * + * + * Get recoverable sql pools for workspace managed sql server. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName The name of the sql pool. @@ -438,9 +359,9 @@ private Mono getAsync(String resourceGroupName, String /** * Get recoverable sql pools for the server. - * - *

Get recoverable sql pools for workspace managed sql server. - * + * + * Get recoverable sql pools for workspace managed sql server. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName The name of the sql pool. @@ -451,16 +372,16 @@ private Mono getAsync(String resourceGroupName, String * @return recoverable sql pools for workspace managed sql server along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { + public Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context) { return getWithResponseAsync(resourceGroupName, workspaceName, sqlPoolName, context).block(); } /** * Get recoverable sql pools for the server. - * - *

Get recoverable sql pools for workspace managed sql server. - * + * + * Get recoverable sql pools for workspace managed sql server. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName The name of the sql pool. @@ -476,14 +397,15 @@ public RecoverableSqlPoolInner get(String resourceGroupName, String workspaceNam /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response to a list recoverable sql pools request along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -491,37 +413,28 @@ private Mono> listNextSinglePageAsync(Str return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response to a list recoverable sql pools request along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { @@ -529,23 +442,13 @@ private Mono> listNextSinglePageAsync(Str return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerRecoverableSqlPoolsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerRecoverableSqlPoolsImpl.java index 550189cb1f8a..2d7606285638 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerRecoverableSqlPoolsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerRecoverableSqlPoolsImpl.java @@ -31,24 +31,21 @@ public WorkspaceManagedSqlServerRecoverableSqlPoolsImpl( public PagedIterable list(String resourceGroupName, String workspaceName) { PagedIterable inner = this.serviceClient().list(resourceGroupName, workspaceName); - return Utils.mapPage(inner, inner1 -> new RecoverableSqlPoolImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new RecoverableSqlPoolImpl(inner1, this.manager())); } public PagedIterable list(String resourceGroupName, String workspaceName, Context context) { - PagedIterable inner = - this.serviceClient().list(resourceGroupName, workspaceName, context); - return Utils.mapPage(inner, inner1 -> new RecoverableSqlPoolImpl(inner1, this.manager())); + PagedIterable inner + = this.serviceClient().list(resourceGroupName, workspaceName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new RecoverableSqlPoolImpl(inner1, this.manager())); } - public Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context) { - Response inner = - this.serviceClient().getWithResponse(resourceGroupName, workspaceName, sqlPoolName, context); + public Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, workspaceName, sqlPoolName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new RecoverableSqlPoolImpl(inner.getValue(), this.manager())); } else { return null; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerSecurityAlertPoliciesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerSecurityAlertPoliciesClientImpl.java index 26c48e5c7ea9..c2914c4565cc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerSecurityAlertPoliciesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerSecurityAlertPoliciesClientImpl.java @@ -44,98 +44,79 @@ */ public final class WorkspaceManagedSqlServerSecurityAlertPoliciesClientImpl implements WorkspaceManagedSqlServerSecurityAlertPoliciesClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final WorkspaceManagedSqlServerSecurityAlertPoliciesService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of WorkspaceManagedSqlServerSecurityAlertPoliciesClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ WorkspaceManagedSqlServerSecurityAlertPoliciesClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy - .create( - WorkspaceManagedSqlServerSecurityAlertPoliciesService.class, - client.getHttpPipeline(), - client.getSerializerAdapter()); + this.service = RestProxy.create(WorkspaceManagedSqlServerSecurityAlertPoliciesService.class, + client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for SynapseManagementClientWorkspaceManagedSqlServerSecurityAlertPolicies - * to be used by the proxy service to perform REST calls. + * The interface defining all the services for + * SynapseManagementClientWorkspaceManagedSqlServerSecurityAlertPolicies to be used by the proxy service to perform + * REST calls. */ @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface WorkspaceManagedSqlServerSecurityAlertPoliciesService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/securityAlertPolicies/{securityAlertPolicyName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/securityAlertPolicies/{securityAlertPolicyName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono> get(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("securityAlertPolicyName") SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/securityAlertPolicies/{securityAlertPolicyName}") - @ExpectedResponses({200, 202}) + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/securityAlertPolicies/{securityAlertPolicyName}") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono>> createOrUpdate(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("securityAlertPolicyName") SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName, @BodyParam("application/json") ServerSecurityAlertPolicyInner parameters, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/securityAlertPolicies") - @ExpectedResponses({200}) + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/securityAlertPolicies") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) + Mono> list(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** * Get server's security alert policy. - * - *

Get a workspace managed sql server's security alert policy. - * + * + * Get a workspace managed sql server's security alert policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param securityAlertPolicyName The name of the security alert policy. @@ -143,22 +124,18 @@ Mono> listNext( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a workspace managed sql server's security alert policy along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -168,33 +145,22 @@ private Mono> getWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (securityAlertPolicyName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter securityAlertPolicyName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter securityAlertPolicyName is required and cannot be null.")); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - securityAlertPolicyName, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, securityAlertPolicyName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get server's security alert policy. - * - *

Get a workspace managed sql server's security alert policy. - * + * + * Get a workspace managed sql server's security alert policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param securityAlertPolicyName The name of the security alert policy. @@ -203,25 +169,18 @@ private Mono> getWithResponseAsync( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a workspace managed sql server's security alert policy along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, - String workspaceName, - SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName, - Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -231,30 +190,21 @@ private Mono> getWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (securityAlertPolicyName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter securityAlertPolicyName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter securityAlertPolicyName is required and cannot be null.")); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - securityAlertPolicyName, - accept, - context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, securityAlertPolicyName, accept, context); } /** * Get server's security alert policy. - * - *

Get a workspace managed sql server's security alert policy. - * + * + * Get a workspace managed sql server's security alert policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param securityAlertPolicyName The name of the security alert policy. @@ -264,17 +214,17 @@ private Mono> getWithResponseAsync( * @return a workspace managed sql server's security alert policy on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String workspaceName, SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName) { + private Mono getAsync(String resourceGroupName, String workspaceName, + SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName) { return getWithResponseAsync(resourceGroupName, workspaceName, securityAlertPolicyName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Get server's security alert policy. - * - *

Get a workspace managed sql server's security alert policy. - * + * + * Get a workspace managed sql server's security alert policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param securityAlertPolicyName The name of the security alert policy. @@ -285,19 +235,16 @@ private Mono getAsync( * @return a workspace managed sql server's security alert policy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName, - Context context) { + public Response getWithResponse(String resourceGroupName, String workspaceName, + SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName, Context context) { return getWithResponseAsync(resourceGroupName, workspaceName, securityAlertPolicyName, context).block(); } /** * Get server's security alert policy. - * - *

Get a workspace managed sql server's security alert policy. - * + * + * Get a workspace managed sql server's security alert policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param securityAlertPolicyName The name of the security alert policy. @@ -307,16 +254,16 @@ public Response getWithResponse( * @return a workspace managed sql server's security alert policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ServerSecurityAlertPolicyInner get( - String resourceGroupName, String workspaceName, SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName) { + public ServerSecurityAlertPolicyInner get(String resourceGroupName, String workspaceName, + SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName) { return getWithResponse(resourceGroupName, workspaceName, securityAlertPolicyName, Context.NONE).getValue(); } /** * Create or Update server's threat detection policy. - * - *

Create or Update a workspace managed sql server's threat detection policy. - * + * + * Create or Update a workspace managed sql server's threat detection policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param securityAlertPolicyName The name of the security alert policy. @@ -325,25 +272,19 @@ public ServerSecurityAlertPolicyInner get( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return workspace managed Sql server security alert policy along with {@link Response} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String resourceGroupName, - String workspaceName, - SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName, + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String workspaceName, SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName, ServerSecurityAlertPolicyInner parameters) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -353,9 +294,8 @@ private Mono>> createOrUpdateWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (securityAlertPolicyName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter securityAlertPolicyName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter securityAlertPolicyName is required and cannot be null.")); } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); @@ -365,27 +305,17 @@ private Mono>> createOrUpdateWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - securityAlertPolicyName, - parameters, - accept, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, securityAlertPolicyName, parameters, + accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Create or Update server's threat detection policy. - * - *

Create or Update a workspace managed sql server's threat detection policy. - * + * + * Create or Update a workspace managed sql server's threat detection policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param securityAlertPolicyName The name of the security alert policy. @@ -395,26 +325,19 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return workspace managed Sql server security alert policy along with {@link Response} on successful completion - * of {@link Mono}. + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String resourceGroupName, - String workspaceName, - SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName, - ServerSecurityAlertPolicyInner parameters, - Context context) { + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String workspaceName, SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName, + ServerSecurityAlertPolicyInner parameters, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -424,9 +347,8 @@ private Mono>> createOrUpdateWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (securityAlertPolicyName == null) { - return Mono - .error( - new IllegalArgumentException("Parameter securityAlertPolicyName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter securityAlertPolicyName is required and cannot be null.")); } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); @@ -436,24 +358,15 @@ private Mono>> createOrUpdateWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - securityAlertPolicyName, - parameters, - accept, - context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, securityAlertPolicyName, parameters, accept, context); } /** * Create or Update server's threat detection policy. - * - *

Create or Update a workspace managed sql server's threat detection policy. - * + * + * Create or Update a workspace managed sql server's threat detection policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param securityAlertPolicyName The name of the security alert policy. @@ -465,28 +378,20 @@ private Mono>> createOrUpdateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ServerSecurityAlertPolicyInner> - beginCreateOrUpdateAsync( - String resourceGroupName, - String workspaceName, - SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName, - ServerSecurityAlertPolicyInner parameters) { - Mono>> mono = - createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, securityAlertPolicyName, parameters); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - ServerSecurityAlertPolicyInner.class, - ServerSecurityAlertPolicyInner.class, - this.client.getContext()); + beginCreateOrUpdateAsync(String resourceGroupName, String workspaceName, + SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName, ServerSecurityAlertPolicyInner parameters) { + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, securityAlertPolicyName, parameters); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), ServerSecurityAlertPolicyInner.class, ServerSecurityAlertPolicyInner.class, + this.client.getContext()); } /** * Create or Update server's threat detection policy. - * - *

Create or Update a workspace managed sql server's threat detection policy. - * + * + * Create or Update a workspace managed sql server's threat detection policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param securityAlertPolicyName The name of the security alert policy. @@ -499,31 +404,22 @@ private Mono>> createOrUpdateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, ServerSecurityAlertPolicyInner> - beginCreateOrUpdateAsync( - String resourceGroupName, - String workspaceName, - SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName, - ServerSecurityAlertPolicyInner parameters, + beginCreateOrUpdateAsync(String resourceGroupName, String workspaceName, + SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName, ServerSecurityAlertPolicyInner parameters, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - createOrUpdateWithResponseAsync( - resourceGroupName, workspaceName, securityAlertPolicyName, parameters, context); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - ServerSecurityAlertPolicyInner.class, - ServerSecurityAlertPolicyInner.class, - context); + Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, + securityAlertPolicyName, parameters, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), ServerSecurityAlertPolicyInner.class, ServerSecurityAlertPolicyInner.class, + context); } /** * Create or Update server's threat detection policy. - * - *

Create or Update a workspace managed sql server's threat detection policy. - * + * + * Create or Update a workspace managed sql server's threat detection policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param securityAlertPolicyName The name of the security alert policy. @@ -535,20 +431,17 @@ private Mono>> createOrUpdateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ServerSecurityAlertPolicyInner> beginCreateOrUpdate( - String resourceGroupName, - String workspaceName, - SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName, + String resourceGroupName, String workspaceName, SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName, ServerSecurityAlertPolicyInner parameters) { - return this - .beginCreateOrUpdateAsync(resourceGroupName, workspaceName, securityAlertPolicyName, parameters) + return this.beginCreateOrUpdateAsync(resourceGroupName, workspaceName, securityAlertPolicyName, parameters) .getSyncPoller(); } /** * Create or Update server's threat detection policy. - * - *

Create or Update a workspace managed sql server's threat detection policy. - * + * + * Create or Update a workspace managed sql server's threat detection policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param securityAlertPolicyName The name of the security alert policy. @@ -561,11 +454,8 @@ public SyncPoller, ServerSecurityAler */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ServerSecurityAlertPolicyInner> beginCreateOrUpdate( - String resourceGroupName, - String workspaceName, - SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName, - ServerSecurityAlertPolicyInner parameters, - Context context) { + String resourceGroupName, String workspaceName, SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName, + ServerSecurityAlertPolicyInner parameters, Context context) { return this .beginCreateOrUpdateAsync(resourceGroupName, workspaceName, securityAlertPolicyName, parameters, context) .getSyncPoller(); @@ -573,9 +463,9 @@ public SyncPoller, ServerSecurityAler /** * Create or Update server's threat detection policy. - * - *

Create or Update a workspace managed sql server's threat detection policy. - * + * + * Create or Update a workspace managed sql server's threat detection policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param securityAlertPolicyName The name of the security alert policy. @@ -586,21 +476,17 @@ public SyncPoller, ServerSecurityAler * @return workspace managed Sql server security alert policy on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, - String workspaceName, - SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName, - ServerSecurityAlertPolicyInner parameters) { - return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, securityAlertPolicyName, parameters) - .last() + private Mono createOrUpdateAsync(String resourceGroupName, String workspaceName, + SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName, ServerSecurityAlertPolicyInner parameters) { + return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, securityAlertPolicyName, parameters).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Create or Update server's threat detection policy. - * - *

Create or Update a workspace managed sql server's threat detection policy. - * + * + * Create or Update a workspace managed sql server's threat detection policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param securityAlertPolicyName The name of the security alert policy. @@ -612,22 +498,18 @@ private Mono createOrUpdateAsync( * @return workspace managed Sql server security alert policy on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, - String workspaceName, - SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName, - ServerSecurityAlertPolicyInner parameters, + private Mono createOrUpdateAsync(String resourceGroupName, String workspaceName, + SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName, ServerSecurityAlertPolicyInner parameters, Context context) { return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, securityAlertPolicyName, parameters, context) - .last() - .flatMap(this.client::getLroFinalResultOrError); + .last().flatMap(this.client::getLroFinalResultOrError); } /** * Create or Update server's threat detection policy. - * - *

Create or Update a workspace managed sql server's threat detection policy. - * + * + * Create or Update a workspace managed sql server's threat detection policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param securityAlertPolicyName The name of the security alert policy. @@ -638,19 +520,16 @@ private Mono createOrUpdateAsync( * @return workspace managed Sql server security alert policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ServerSecurityAlertPolicyInner createOrUpdate( - String resourceGroupName, - String workspaceName, - SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName, - ServerSecurityAlertPolicyInner parameters) { + public ServerSecurityAlertPolicyInner createOrUpdate(String resourceGroupName, String workspaceName, + SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName, ServerSecurityAlertPolicyInner parameters) { return createOrUpdateAsync(resourceGroupName, workspaceName, securityAlertPolicyName, parameters).block(); } /** * Create or Update server's threat detection policy. - * - *

Create or Update a workspace managed sql server's threat detection policy. - * + * + * Create or Update a workspace managed sql server's threat detection policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param securityAlertPolicyName The name of the security alert policy. @@ -662,11 +541,8 @@ public ServerSecurityAlertPolicyInner createOrUpdate( * @return workspace managed Sql server security alert policy. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ServerSecurityAlertPolicyInner createOrUpdate( - String resourceGroupName, - String workspaceName, - SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName, - ServerSecurityAlertPolicyInner parameters, + public ServerSecurityAlertPolicyInner createOrUpdate(String resourceGroupName, String workspaceName, + SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName, ServerSecurityAlertPolicyInner parameters, Context context) { return createOrUpdateAsync(resourceGroupName, workspaceName, securityAlertPolicyName, parameters, context) .block(); @@ -674,31 +550,27 @@ public ServerSecurityAlertPolicyInner createOrUpdate( /** * Get server's threat detection policies. - * - *

Get workspace managed sql server's threat detection policies. - * + * + * Get workspace managed sql server's threat detection policies. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return workspace managed sql server's threat detection policies along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String workspaceName) { + private Mono> listSinglePageAsync(String resourceGroupName, + String workspaceName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -710,34 +582,18 @@ private Mono> listSinglePageAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get server's threat detection policies. - * - *

Get workspace managed sql server's threat detection policies. - * + * + * Get workspace managed sql server's threat detection policies. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -745,22 +601,18 @@ private Mono> listSinglePageAsync( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return workspace managed sql server's threat detection policies along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String workspaceName, Context context) { + private Mono> listSinglePageAsync(String resourceGroupName, + String workspaceName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -773,30 +625,17 @@ private Mono> listSinglePageAsync( final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * Get server's threat detection policies. - * - *

Get workspace managed sql server's threat detection policies. - * + * + * Get workspace managed sql server's threat detection policies. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -806,15 +645,15 @@ private Mono> listSinglePageAsync( */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String workspaceName) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, workspaceName), nextLink -> listNextSinglePageAsync(nextLink)); + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName), + nextLink -> listNextSinglePageAsync(nextLink)); } /** * Get server's threat detection policies. - * - *

Get workspace managed sql server's threat detection policies. - * + * + * Get workspace managed sql server's threat detection policies. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -824,25 +663,24 @@ private PagedFlux listAsync(String resourceGroup * @return workspace managed sql server's threat detection policies as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( - String resourceGroupName, String workspaceName, Context context) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, workspaceName, context), + private PagedFlux listAsync(String resourceGroupName, String workspaceName, + Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } /** * Get server's threat detection policies. - * - *

Get workspace managed sql server's threat detection policies. - * + * + * Get workspace managed sql server's threat detection policies. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workspace managed sql server's threat detection policies as paginated response with {@link - * PagedIterable}. + * @return workspace managed sql server's threat detection policies as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String workspaceName) { @@ -851,34 +689,35 @@ public PagedIterable list(String resourceGroupNa /** * Get server's threat detection policies. - * - *

Get workspace managed sql server's threat detection policies. - * + * + * Get workspace managed sql server's threat detection policies. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workspace managed sql server's threat detection policies as paginated response with {@link - * PagedIterable}. + * @return workspace managed sql server's threat detection policies as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list( - String resourceGroupName, String workspaceName, Context context) { + public PagedIterable list(String resourceGroupName, String workspaceName, + Context context) { return new PagedIterable<>(listAsync(resourceGroupName, workspaceName, context)); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of the workspace managed sql server's security alert policies along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -886,62 +725,43 @@ private Mono> listNextSinglePageAs return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of the workspace managed sql server's security alert policies along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync( - String nextLink, Context context) { + private Mono> listNextSinglePageAsync(String nextLink, + Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerSecurityAlertPoliciesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerSecurityAlertPoliciesImpl.java index f3a6436283f7..8a6454f7a445 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerSecurityAlertPoliciesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerSecurityAlertPoliciesImpl.java @@ -17,8 +17,8 @@ public final class WorkspaceManagedSqlServerSecurityAlertPoliciesImpl implements WorkspaceManagedSqlServerSecurityAlertPolicies { - private static final ClientLogger LOGGER = - new ClientLogger(WorkspaceManagedSqlServerSecurityAlertPoliciesImpl.class); + private static final ClientLogger LOGGER + = new ClientLogger(WorkspaceManagedSqlServerSecurityAlertPoliciesImpl.class); private final WorkspaceManagedSqlServerSecurityAlertPoliciesClient innerClient; @@ -31,28 +31,22 @@ public WorkspaceManagedSqlServerSecurityAlertPoliciesImpl( this.serviceManager = serviceManager; } - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName, - Context context) { - Response inner = - this.serviceClient().getWithResponse(resourceGroupName, workspaceName, securityAlertPolicyName, context); + public Response getWithResponse(String resourceGroupName, String workspaceName, + SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName, Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, workspaceName, securityAlertPolicyName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new ServerSecurityAlertPolicyImpl(inner.getValue(), this.manager())); } else { return null; } } - public ServerSecurityAlertPolicy get( - String resourceGroupName, String workspaceName, SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName) { - ServerSecurityAlertPolicyInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, securityAlertPolicyName); + public ServerSecurityAlertPolicy get(String resourceGroupName, String workspaceName, + SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName) { + ServerSecurityAlertPolicyInner inner + = this.serviceClient().get(resourceGroupName, workspaceName, securityAlertPolicyName); if (inner != null) { return new ServerSecurityAlertPolicyImpl(inner, this.manager()); } else { @@ -61,77 +55,57 @@ public ServerSecurityAlertPolicy get( } public PagedIterable list(String resourceGroupName, String workspaceName) { - PagedIterable inner = - this.serviceClient().list(resourceGroupName, workspaceName); - return Utils.mapPage(inner, inner1 -> new ServerSecurityAlertPolicyImpl(inner1, this.manager())); + PagedIterable inner + = this.serviceClient().list(resourceGroupName, workspaceName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ServerSecurityAlertPolicyImpl(inner1, this.manager())); } - public PagedIterable list( - String resourceGroupName, String workspaceName, Context context) { - PagedIterable inner = - this.serviceClient().list(resourceGroupName, workspaceName, context); - return Utils.mapPage(inner, inner1 -> new ServerSecurityAlertPolicyImpl(inner1, this.manager())); + public PagedIterable list(String resourceGroupName, String workspaceName, + Context context) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, workspaceName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ServerSecurityAlertPolicyImpl(inner1, this.manager())); } public ServerSecurityAlertPolicy getById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String securityAlertPolicyNameLocal = Utils.getValueFromIdByName(id, "securityAlertPolicies"); + String securityAlertPolicyNameLocal = ResourceManagerUtils.getValueFromIdByName(id, "securityAlertPolicies"); if (securityAlertPolicyNameLocal == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'securityAlertPolicies'.", - id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'securityAlertPolicies'.", id))); } - SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName = - SecurityAlertPolicyNameAutoGenerated.fromString(securityAlertPolicyNameLocal); + SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName + = SecurityAlertPolicyNameAutoGenerated.fromString(securityAlertPolicyNameLocal); return this.getWithResponse(resourceGroupName, workspaceName, securityAlertPolicyName, Context.NONE).getValue(); } public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String securityAlertPolicyNameLocal = Utils.getValueFromIdByName(id, "securityAlertPolicies"); + String securityAlertPolicyNameLocal = ResourceManagerUtils.getValueFromIdByName(id, "securityAlertPolicies"); if (securityAlertPolicyNameLocal == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'securityAlertPolicies'.", - id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'securityAlertPolicies'.", id))); } - SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName = - SecurityAlertPolicyNameAutoGenerated.fromString(securityAlertPolicyNameLocal); + SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName + = SecurityAlertPolicyNameAutoGenerated.fromString(securityAlertPolicyNameLocal); return this.getWithResponse(resourceGroupName, workspaceName, securityAlertPolicyName, context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerUsagesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerUsagesClientImpl.java index 56dabad3e24f..a6e88bb6755d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerUsagesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerUsagesClientImpl.java @@ -30,26 +30,28 @@ import com.azure.resourcemanager.synapse.models.ServerUsageListResult; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in WorkspaceManagedSqlServerUsagesClient. */ +/** + * An instance of this class provides access to all the operations defined in WorkspaceManagedSqlServerUsagesClient. + */ public final class WorkspaceManagedSqlServerUsagesClientImpl implements WorkspaceManagedSqlServerUsagesClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final WorkspaceManagedSqlServerUsagesService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of WorkspaceManagedSqlServerUsagesClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ WorkspaceManagedSqlServerUsagesClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy - .create( - WorkspaceManagedSqlServerUsagesService.class, - client.getHttpPipeline(), - client.getSerializerAdapter()); + this.service = RestProxy.create(WorkspaceManagedSqlServerUsagesService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } @@ -60,58 +62,45 @@ public final class WorkspaceManagedSqlServerUsagesClientImpl implements Workspac @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface WorkspaceManagedSqlServerUsagesService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlUsages") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlUsages") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @HeaderParam("Accept") String accept, - Context context); + Mono> list(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Get list of usages metric for the server. - * - *

Get list of server usages metric for workspace managed sql server. - * + * + * Get list of server usages metric for workspace managed sql server. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 server usages metric for workspace managed sql server along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(String resourceGroupName, String workspaceName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -123,34 +112,18 @@ private Mono> listSinglePageAsync(String resourc final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get list of usages metric for the server. - * - *

Get list of server usages metric for workspace managed sql server. - * + * + * Get list of server usages metric for workspace managed sql server. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -158,22 +131,18 @@ private Mono> listSinglePageAsync(String resourc * @throws 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 server usages metric for workspace managed sql server along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String workspaceName, Context context) { + private Mono> listSinglePageAsync(String resourceGroupName, String workspaceName, + Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -186,77 +155,63 @@ private Mono> listSinglePageAsync( final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * Get list of usages metric for the server. - * - *

Get list of server usages metric for workspace managed sql server. - * + * + * Get list of server usages metric for workspace managed sql server. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 server usages metric for workspace managed sql server as paginated response with {@link - * PagedFlux}. + * @return list of server usages metric for workspace managed sql server as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String workspaceName) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, workspaceName), nextLink -> listNextSinglePageAsync(nextLink)); + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName), + nextLink -> listNextSinglePageAsync(nextLink)); } /** * Get list of usages metric for the server. - * - *

Get list of server usages metric for workspace managed sql server. - * + * + * Get list of server usages metric for workspace managed sql server. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 server usages metric for workspace managed sql server as paginated response with {@link - * PagedFlux}. + * @return list of server usages metric for workspace managed sql server as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String workspaceName, Context context) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, workspaceName, context), + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } /** * Get list of usages metric for the server. - * - *

Get list of server usages metric for workspace managed sql server. - * + * + * Get list of server usages metric for workspace managed sql server. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 server usages metric for workspace managed sql server as paginated response with {@link - * PagedIterable}. + * @return list of server usages metric for workspace managed sql server as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String workspaceName) { @@ -265,17 +220,17 @@ public PagedIterable list(String resourceGroupName, String wor /** * Get list of usages metric for the server. - * - *

Get list of server usages metric for workspace managed sql server. - * + * + * Get list of server usages metric for workspace managed sql server. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws 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 server usages metric for workspace managed sql server as paginated response with {@link - * PagedIterable}. + * @return list of server usages metric for workspace managed sql server as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(String resourceGroupName, String workspaceName, Context context) { @@ -284,14 +239,15 @@ public PagedIterable list(String resourceGroupName, String wor /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents the response to a list server metrics request along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -299,37 +255,28 @@ private Mono> listNextSinglePageAsync(String nex return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return represents the response to a list server metrics request along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { @@ -337,23 +284,13 @@ private Mono> listNextSinglePageAsync(String nex return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerUsagesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerUsagesImpl.java index da33af3b436f..c6e502a62fda 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerUsagesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerUsagesImpl.java @@ -19,8 +19,7 @@ public final class WorkspaceManagedSqlServerUsagesImpl implements WorkspaceManag private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public WorkspaceManagedSqlServerUsagesImpl( - WorkspaceManagedSqlServerUsagesClient innerClient, + public WorkspaceManagedSqlServerUsagesImpl(WorkspaceManagedSqlServerUsagesClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; @@ -28,12 +27,12 @@ public WorkspaceManagedSqlServerUsagesImpl( public PagedIterable list(String resourceGroupName, String workspaceName) { PagedIterable inner = this.serviceClient().list(resourceGroupName, workspaceName); - return Utils.mapPage(inner, inner1 -> new ServerUsageImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ServerUsageImpl(inner1, this.manager())); } public PagedIterable list(String resourceGroupName, String workspaceName, Context context) { PagedIterable inner = this.serviceClient().list(resourceGroupName, workspaceName, context); - return Utils.mapPage(inner, inner1 -> new ServerUsageImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ServerUsageImpl(inner1, this.manager())); } private WorkspaceManagedSqlServerUsagesClient serviceClient() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerVulnerabilityAssessmentsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerVulnerabilityAssessmentsClientImpl.java index 239e13d658b2..d66efd134a43 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerVulnerabilityAssessmentsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerVulnerabilityAssessmentsClientImpl.java @@ -40,24 +40,24 @@ */ public final class WorkspaceManagedSqlServerVulnerabilityAssessmentsClientImpl implements WorkspaceManagedSqlServerVulnerabilityAssessmentsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final WorkspaceManagedSqlServerVulnerabilityAssessmentsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of WorkspaceManagedSqlServerVulnerabilityAssessmentsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ WorkspaceManagedSqlServerVulnerabilityAssessmentsClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy - .create( - WorkspaceManagedSqlServerVulnerabilityAssessmentsService.class, - client.getHttpPipeline(), - client.getSerializerAdapter()); + this.service = RestProxy.create(WorkspaceManagedSqlServerVulnerabilityAssessmentsService.class, + client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } @@ -69,85 +69,60 @@ public final class WorkspaceManagedSqlServerVulnerabilityAssessmentsClientImpl @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface WorkspaceManagedSqlServerVulnerabilityAssessmentsService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono> get(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("vulnerabilityAssessmentName") VulnerabilityAssessmentName vulnerabilityAssessmentName, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}") - @ExpectedResponses({200, 201}) + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}") + @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> createOrUpdate( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono> createOrUpdate(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("vulnerabilityAssessmentName") VulnerabilityAssessmentName vulnerabilityAssessmentName, @BodyParam("application/json") ServerVulnerabilityAssessmentInner parameters, - @HeaderParam("Accept") String accept, - Context context); + @HeaderParam("Accept") String accept, Context context); - @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}") - @ExpectedResponses({200, 204}) + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}") + @ExpectedResponses({ 200, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> delete( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, + Mono> delete(@HostParam("$host") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @PathParam("vulnerabilityAssessmentName") VulnerabilityAssessmentName vulnerabilityAssessmentName, Context context); - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/vulnerabilityAssessments") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/vulnerabilityAssessments") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @HeaderParam("Accept") String accept, - Context context); + Mono> list(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** * Get server's vulnerability assessment. - * - *

Get workspace managed sql server's vulnerability assessment. - * + * + * Get workspace managed sql server's vulnerability assessment. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. @@ -155,22 +130,18 @@ Mono> listNext( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return workspace managed sql server's vulnerability assessment along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -180,34 +151,22 @@ private Mono> getWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (vulnerabilityAssessmentName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter vulnerabilityAssessmentName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter vulnerabilityAssessmentName is required and cannot be null.")); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - vulnerabilityAssessmentName, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, vulnerabilityAssessmentName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get server's vulnerability assessment. - * - *

Get workspace managed sql server's vulnerability assessment. - * + * + * Get workspace managed sql server's vulnerability assessment. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. @@ -216,25 +175,18 @@ private Mono> getWithResponseAsync( * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return workspace managed sql server's vulnerability assessment along with {@link Response} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, - String workspaceName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -244,31 +196,21 @@ private Mono> getWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (vulnerabilityAssessmentName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter vulnerabilityAssessmentName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter vulnerabilityAssessmentName is required and cannot be null.")); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - vulnerabilityAssessmentName, - accept, - context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, vulnerabilityAssessmentName, accept, context); } /** * Get server's vulnerability assessment. - * - *

Get workspace managed sql server's vulnerability assessment. - * + * + * Get workspace managed sql server's vulnerability assessment. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. @@ -278,17 +220,17 @@ private Mono> getWithResponseAsync( * @return workspace managed sql server's vulnerability assessment on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync( - String resourceGroupName, String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { + private Mono getAsync(String resourceGroupName, String workspaceName, + VulnerabilityAssessmentName vulnerabilityAssessmentName) { return getWithResponseAsync(resourceGroupName, workspaceName, vulnerabilityAssessmentName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Get server's vulnerability assessment. - * - *

Get workspace managed sql server's vulnerability assessment. - * + * + * Get workspace managed sql server's vulnerability assessment. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. @@ -299,19 +241,16 @@ private Mono getAsync( * @return workspace managed sql server's vulnerability assessment along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - Context context) { + public Response getWithResponse(String resourceGroupName, String workspaceName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, Context context) { return getWithResponseAsync(resourceGroupName, workspaceName, vulnerabilityAssessmentName, context).block(); } /** * Get server's vulnerability assessment. - * - *

Get workspace managed sql server's vulnerability assessment. - * + * + * Get workspace managed sql server's vulnerability assessment. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. @@ -321,16 +260,16 @@ public Response getWithResponse( * @return workspace managed sql server's vulnerability assessment. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ServerVulnerabilityAssessmentInner get( - String resourceGroupName, String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { + public ServerVulnerabilityAssessmentInner get(String resourceGroupName, String workspaceName, + VulnerabilityAssessmentName vulnerabilityAssessmentName) { return getWithResponse(resourceGroupName, workspaceName, vulnerabilityAssessmentName, Context.NONE).getValue(); } /** * Create or Update server's vulnerability assessment. - * - *

Create or Update workspace managed sql server's vulnerability assessment. - * + * + * Create or Update workspace managed sql server's vulnerability assessment. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. @@ -341,22 +280,16 @@ public ServerVulnerabilityAssessmentInner get( * @return a server vulnerability assessment along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, - String workspaceName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, + private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName, ServerVulnerabilityAssessmentInner parameters) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -366,10 +299,8 @@ private Mono> createOrUpdateWithRes return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (vulnerabilityAssessmentName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter vulnerabilityAssessmentName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter vulnerabilityAssessmentName is required and cannot be null.")); } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); @@ -379,27 +310,17 @@ private Mono> createOrUpdateWithRes final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - vulnerabilityAssessmentName, - parameters, - accept, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, vulnerabilityAssessmentName, + parameters, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Create or Update server's vulnerability assessment. - * - *

Create or Update workspace managed sql server's vulnerability assessment. - * + * + * Create or Update workspace managed sql server's vulnerability assessment. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. @@ -411,23 +332,16 @@ private Mono> createOrUpdateWithRes * @return a server vulnerability assessment along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> createOrUpdateWithResponseAsync( - String resourceGroupName, - String workspaceName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - ServerVulnerabilityAssessmentInner parameters, - Context context) { + private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName, + ServerVulnerabilityAssessmentInner parameters, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -437,10 +351,8 @@ private Mono> createOrUpdateWithRes return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (vulnerabilityAssessmentName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter vulnerabilityAssessmentName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter vulnerabilityAssessmentName is required and cannot be null.")); } if (parameters == null) { return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); @@ -450,24 +362,15 @@ private Mono> createOrUpdateWithRes final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - vulnerabilityAssessmentName, - parameters, - accept, - context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, vulnerabilityAssessmentName, parameters, accept, context); } /** * Create or Update server's vulnerability assessment. - * - *

Create or Update workspace managed sql server's vulnerability assessment. - * + * + * Create or Update workspace managed sql server's vulnerability assessment. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. @@ -478,21 +381,17 @@ private Mono> createOrUpdateWithRes * @return a server vulnerability assessment on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, - String workspaceName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - ServerVulnerabilityAssessmentInner parameters) { - return createOrUpdateWithResponseAsync( - resourceGroupName, workspaceName, vulnerabilityAssessmentName, parameters) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + private Mono createOrUpdateAsync(String resourceGroupName, String workspaceName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, ServerVulnerabilityAssessmentInner parameters) { + return createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, vulnerabilityAssessmentName, + parameters).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** * Create or Update server's vulnerability assessment. - * - *

Create or Update workspace managed sql server's vulnerability assessment. - * + * + * Create or Update workspace managed sql server's vulnerability assessment. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. @@ -504,22 +403,18 @@ private Mono createOrUpdateAsync( * @return a server vulnerability assessment along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String resourceGroupName, - String workspaceName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - ServerVulnerabilityAssessmentInner parameters, - Context context) { - return createOrUpdateWithResponseAsync( - resourceGroupName, workspaceName, vulnerabilityAssessmentName, parameters, context) - .block(); + public Response createOrUpdateWithResponse(String resourceGroupName, + String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName, + ServerVulnerabilityAssessmentInner parameters, Context context) { + return createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, vulnerabilityAssessmentName, + parameters, context).block(); } /** * Create or Update server's vulnerability assessment. - * - *

Create or Update workspace managed sql server's vulnerability assessment. - * + * + * Create or Update workspace managed sql server's vulnerability assessment. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. @@ -530,21 +425,17 @@ public Response createOrUpdateWithResponse( * @return a server vulnerability assessment. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ServerVulnerabilityAssessmentInner createOrUpdate( - String resourceGroupName, - String workspaceName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - ServerVulnerabilityAssessmentInner parameters) { - return createOrUpdateWithResponse( - resourceGroupName, workspaceName, vulnerabilityAssessmentName, parameters, Context.NONE) - .getValue(); + public ServerVulnerabilityAssessmentInner createOrUpdate(String resourceGroupName, String workspaceName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, ServerVulnerabilityAssessmentInner parameters) { + return createOrUpdateWithResponse(resourceGroupName, workspaceName, vulnerabilityAssessmentName, parameters, + Context.NONE).getValue(); } /** * Remove server's vulnerability assessment. - * - *

Remove workspace managed sql server's vulnerability assessment. - * + * + * Remove workspace managed sql server's vulnerability assessment. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. @@ -554,19 +445,15 @@ public ServerVulnerabilityAssessmentInner createOrUpdate( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync( - String resourceGroupName, String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { + private Mono> deleteWithResponseAsync(String resourceGroupName, String workspaceName, + VulnerabilityAssessmentName vulnerabilityAssessmentName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -576,32 +463,22 @@ private Mono> deleteWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (vulnerabilityAssessmentName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter vulnerabilityAssessmentName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter vulnerabilityAssessmentName is required and cannot be null.")); } final String apiVersion = "2021-06-01"; return FluxUtil .withContext( - context -> - service - .delete( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - vulnerabilityAssessmentName, - context)) + context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, vulnerabilityAssessmentName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Remove server's vulnerability assessment. - * - *

Remove workspace managed sql server's vulnerability assessment. - * + * + * Remove workspace managed sql server's vulnerability assessment. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. @@ -612,22 +489,15 @@ private Mono> deleteWithResponseAsync( * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync( - String resourceGroupName, - String workspaceName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - Context context) { + private Mono> deleteWithResponseAsync(String resourceGroupName, String workspaceName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -637,29 +507,20 @@ private Mono> deleteWithResponseAsync( return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } if (vulnerabilityAssessmentName == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter vulnerabilityAssessmentName is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter vulnerabilityAssessmentName is required and cannot be null.")); } final String apiVersion = "2021-06-01"; context = this.client.mergeContext(context); - return service - .delete( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - vulnerabilityAssessmentName, - context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, vulnerabilityAssessmentName, context); } /** * Remove server's vulnerability assessment. - * - *

Remove workspace managed sql server's vulnerability assessment. - * + * + * Remove workspace managed sql server's vulnerability assessment. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. @@ -669,17 +530,17 @@ private Mono> deleteWithResponseAsync( * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync( - String resourceGroupName, String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { + private Mono deleteAsync(String resourceGroupName, String workspaceName, + VulnerabilityAssessmentName vulnerabilityAssessmentName) { return deleteWithResponseAsync(resourceGroupName, workspaceName, vulnerabilityAssessmentName) .flatMap(ignored -> Mono.empty()); } /** * Remove server's vulnerability assessment. - * - *

Remove workspace managed sql server's vulnerability assessment. - * + * + * Remove workspace managed sql server's vulnerability assessment. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. @@ -690,19 +551,16 @@ private Mono deleteAsync( * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse( - String resourceGroupName, - String workspaceName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - Context context) { + public Response deleteWithResponse(String resourceGroupName, String workspaceName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, Context context) { return deleteWithResponseAsync(resourceGroupName, workspaceName, vulnerabilityAssessmentName, context).block(); } /** * Remove server's vulnerability assessment. - * - *

Remove workspace managed sql server's vulnerability assessment. - * + * + * Remove workspace managed sql server's vulnerability assessment. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. @@ -711,38 +569,34 @@ public Response deleteWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete( - String resourceGroupName, String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { + public void delete(String resourceGroupName, String workspaceName, + VulnerabilityAssessmentName vulnerabilityAssessmentName) { deleteWithResponse(resourceGroupName, workspaceName, vulnerabilityAssessmentName, Context.NONE); } /** * Lists the vulnerability assessment policies associated with a server. - * - *

Lists the vulnerability assessment policies associated with a workspace managed sql server. - * + * + * Lists the vulnerability assessment policies associated with a workspace managed sql server. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of the server's vulnerability assessments along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String workspaceName) { + private Mono> listSinglePageAsync(String resourceGroupName, + String workspaceName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -754,34 +608,18 @@ private Mono> listSinglePageAs final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Lists the vulnerability assessment policies associated with a server. - * - *

Lists the vulnerability assessment policies associated with a workspace managed sql server. - * + * + * Lists the vulnerability assessment policies associated with a workspace managed sql server. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -789,22 +627,18 @@ private Mono> listSinglePageAs * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of the server's vulnerability assessments along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync( - String resourceGroupName, String workspaceName, Context context) { + private Mono> listSinglePageAsync(String resourceGroupName, + String workspaceName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -817,30 +651,17 @@ private Mono> listSinglePageAs final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * Lists the vulnerability assessment policies associated with a server. - * - *

Lists the vulnerability assessment policies associated with a workspace managed sql server. - * + * + * Lists the vulnerability assessment policies associated with a workspace managed sql server. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -850,15 +671,15 @@ private Mono> listSinglePageAs */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(String resourceGroupName, String workspaceName) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, workspaceName), nextLink -> listNextSinglePageAsync(nextLink)); + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName), + nextLink -> listNextSinglePageAsync(nextLink)); } /** * Lists the vulnerability assessment policies associated with a server. - * - *

Lists the vulnerability assessment policies associated with a workspace managed sql server. - * + * + * Lists the vulnerability assessment policies associated with a workspace managed sql server. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -868,18 +689,17 @@ private PagedFlux listAsync(String resourceG * @return a list of the server's vulnerability assessments as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync( - String resourceGroupName, String workspaceName, Context context) { - return new PagedFlux<>( - () -> listSinglePageAsync(resourceGroupName, workspaceName, context), + private PagedFlux listAsync(String resourceGroupName, String workspaceName, + Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName, context), nextLink -> listNextSinglePageAsync(nextLink, context)); } /** * Lists the vulnerability assessment policies associated with a server. - * - *

Lists the vulnerability assessment policies associated with a workspace managed sql server. - * + * + * Lists the vulnerability assessment policies associated with a workspace managed sql server. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -894,9 +714,9 @@ public PagedIterable list(String resourceGro /** * Lists the vulnerability assessment policies associated with a server. - * - *

Lists the vulnerability assessment policies associated with a workspace managed sql server. - * + * + * Lists the vulnerability assessment policies associated with a workspace managed sql server. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -906,21 +726,22 @@ public PagedIterable list(String resourceGro * @return a list of the server's vulnerability assessments as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list( - String resourceGroupName, String workspaceName, Context context) { + public PagedIterable list(String resourceGroupName, String workspaceName, + Context context) { return new PagedIterable<>(listAsync(resourceGroupName, workspaceName, context)); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of the server's vulnerability assessments along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -928,62 +749,43 @@ private Mono> listNextSinglePa return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of the server's vulnerability assessments along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync( - String nextLink, Context context) { + private Mono> listNextSinglePageAsync(String nextLink, + Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerVulnerabilityAssessmentsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerVulnerabilityAssessmentsImpl.java index 68a0bc915146..cb1ca1403081 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerVulnerabilityAssessmentsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceManagedSqlServerVulnerabilityAssessmentsImpl.java @@ -17,8 +17,8 @@ public final class WorkspaceManagedSqlServerVulnerabilityAssessmentsImpl implements WorkspaceManagedSqlServerVulnerabilityAssessments { - private static final ClientLogger LOGGER = - new ClientLogger(WorkspaceManagedSqlServerVulnerabilityAssessmentsImpl.class); + private static final ClientLogger LOGGER + = new ClientLogger(WorkspaceManagedSqlServerVulnerabilityAssessmentsImpl.class); private final WorkspaceManagedSqlServerVulnerabilityAssessmentsClient innerClient; @@ -31,30 +31,22 @@ public WorkspaceManagedSqlServerVulnerabilityAssessmentsImpl( this.serviceManager = serviceManager; } - public Response getWithResponse( - String resourceGroupName, - String workspaceName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - Context context) { - Response inner = - this - .serviceClient() - .getWithResponse(resourceGroupName, workspaceName, vulnerabilityAssessmentName, context); + public Response getWithResponse(String resourceGroupName, String workspaceName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, Context context) { + Response inner = this.serviceClient().getWithResponse(resourceGroupName, + workspaceName, vulnerabilityAssessmentName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new ServerVulnerabilityAssessmentImpl(inner.getValue(), this.manager())); } else { return null; } } - public ServerVulnerabilityAssessment get( - String resourceGroupName, String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { - ServerVulnerabilityAssessmentInner inner = - this.serviceClient().get(resourceGroupName, workspaceName, vulnerabilityAssessmentName); + public ServerVulnerabilityAssessment get(String resourceGroupName, String workspaceName, + VulnerabilityAssessmentName vulnerabilityAssessmentName) { + ServerVulnerabilityAssessmentInner inner + = this.serviceClient().get(resourceGroupName, workspaceName, vulnerabilityAssessmentName); if (inner != null) { return new ServerVulnerabilityAssessmentImpl(inner, this.manager()); } else { @@ -62,157 +54,118 @@ public ServerVulnerabilityAssessment get( } } - public Response deleteWithResponse( - String resourceGroupName, - String workspaceName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - Context context) { - return this - .serviceClient() - .deleteWithResponse(resourceGroupName, workspaceName, vulnerabilityAssessmentName, context); + public Response deleteWithResponse(String resourceGroupName, String workspaceName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, Context context) { + return this.serviceClient().deleteWithResponse(resourceGroupName, workspaceName, vulnerabilityAssessmentName, + context); } - public void delete( - String resourceGroupName, String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName) { + public void delete(String resourceGroupName, String workspaceName, + VulnerabilityAssessmentName vulnerabilityAssessmentName) { this.serviceClient().delete(resourceGroupName, workspaceName, vulnerabilityAssessmentName); } public PagedIterable list(String resourceGroupName, String workspaceName) { - PagedIterable inner = - this.serviceClient().list(resourceGroupName, workspaceName); - return Utils.mapPage(inner, inner1 -> new ServerVulnerabilityAssessmentImpl(inner1, this.manager())); + PagedIterable inner + = this.serviceClient().list(resourceGroupName, workspaceName); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new ServerVulnerabilityAssessmentImpl(inner1, this.manager())); } - public PagedIterable list( - String resourceGroupName, String workspaceName, Context context) { - PagedIterable inner = - this.serviceClient().list(resourceGroupName, workspaceName, context); - return Utils.mapPage(inner, inner1 -> new ServerVulnerabilityAssessmentImpl(inner1, this.manager())); + public PagedIterable list(String resourceGroupName, String workspaceName, + Context context) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, workspaceName, context); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new ServerVulnerabilityAssessmentImpl(inner1, this.manager())); } public ServerVulnerabilityAssessment getById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String vulnerabilityAssessmentNameLocal = Utils.getValueFromIdByName(id, "vulnerabilityAssessments"); + String vulnerabilityAssessmentNameLocal + = ResourceManagerUtils.getValueFromIdByName(id, "vulnerabilityAssessments"); if (vulnerabilityAssessmentNameLocal == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'vulnerabilityAssessments'.", - id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String + .format("The resource ID '%s' is not valid. Missing path segment 'vulnerabilityAssessments'.", id))); } - VulnerabilityAssessmentName vulnerabilityAssessmentName = - VulnerabilityAssessmentName.fromString(vulnerabilityAssessmentNameLocal); - return this - .getWithResponse(resourceGroupName, workspaceName, vulnerabilityAssessmentName, Context.NONE) + VulnerabilityAssessmentName vulnerabilityAssessmentName + = VulnerabilityAssessmentName.fromString(vulnerabilityAssessmentNameLocal); + return this.getWithResponse(resourceGroupName, workspaceName, vulnerabilityAssessmentName, Context.NONE) .getValue(); } public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String vulnerabilityAssessmentNameLocal = Utils.getValueFromIdByName(id, "vulnerabilityAssessments"); + String vulnerabilityAssessmentNameLocal + = ResourceManagerUtils.getValueFromIdByName(id, "vulnerabilityAssessments"); if (vulnerabilityAssessmentNameLocal == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'vulnerabilityAssessments'.", - id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String + .format("The resource ID '%s' is not valid. Missing path segment 'vulnerabilityAssessments'.", id))); } - VulnerabilityAssessmentName vulnerabilityAssessmentName = - VulnerabilityAssessmentName.fromString(vulnerabilityAssessmentNameLocal); + VulnerabilityAssessmentName vulnerabilityAssessmentName + = VulnerabilityAssessmentName.fromString(vulnerabilityAssessmentNameLocal); return this.getWithResponse(resourceGroupName, workspaceName, vulnerabilityAssessmentName, context); } public void deleteById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String vulnerabilityAssessmentNameLocal = Utils.getValueFromIdByName(id, "vulnerabilityAssessments"); + String vulnerabilityAssessmentNameLocal + = ResourceManagerUtils.getValueFromIdByName(id, "vulnerabilityAssessments"); if (vulnerabilityAssessmentNameLocal == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'vulnerabilityAssessments'.", - id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String + .format("The resource ID '%s' is not valid. Missing path segment 'vulnerabilityAssessments'.", id))); } - VulnerabilityAssessmentName vulnerabilityAssessmentName = - VulnerabilityAssessmentName.fromString(vulnerabilityAssessmentNameLocal); + VulnerabilityAssessmentName vulnerabilityAssessmentName + = VulnerabilityAssessmentName.fromString(vulnerabilityAssessmentNameLocal); this.deleteWithResponse(resourceGroupName, workspaceName, vulnerabilityAssessmentName, Context.NONE); } public Response deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } - String vulnerabilityAssessmentNameLocal = Utils.getValueFromIdByName(id, "vulnerabilityAssessments"); + String vulnerabilityAssessmentNameLocal + = ResourceManagerUtils.getValueFromIdByName(id, "vulnerabilityAssessments"); if (vulnerabilityAssessmentNameLocal == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format( - "The resource ID '%s' is not valid. Missing path segment 'vulnerabilityAssessments'.", - id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String + .format("The resource ID '%s' is not valid. Missing path segment 'vulnerabilityAssessments'.", id))); } - VulnerabilityAssessmentName vulnerabilityAssessmentName = - VulnerabilityAssessmentName.fromString(vulnerabilityAssessmentNameLocal); + VulnerabilityAssessmentName vulnerabilityAssessmentName + = VulnerabilityAssessmentName.fromString(vulnerabilityAssessmentNameLocal); return this.deleteWithResponse(resourceGroupName, workspaceName, vulnerabilityAssessmentName, context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceSqlAadAdminsClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceSqlAadAdminsClientImpl.java index c2498c0d7bc1..15de88328ccf 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceSqlAadAdminsClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceSqlAadAdminsClientImpl.java @@ -33,23 +33,28 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in WorkspaceSqlAadAdminsClient. */ +/** + * An instance of this class provides access to all the operations defined in WorkspaceSqlAadAdminsClient. + */ public final class WorkspaceSqlAadAdminsClientImpl implements WorkspaceSqlAadAdminsClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final WorkspaceSqlAadAdminsService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of WorkspaceSqlAadAdminsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ WorkspaceSqlAadAdminsClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy - .create(WorkspaceSqlAadAdminsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service = RestProxy.create(WorkspaceSqlAadAdminsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } @@ -60,78 +65,56 @@ public final class WorkspaceSqlAadAdminsClientImpl implements WorkspaceSqlAadAdm @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface WorkspaceSqlAadAdminsService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlAdministrators/activeDirectory") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlAdministrators/activeDirectory") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlAdministrators/activeDirectory") - @ExpectedResponses({200, 202}) + Mono> get(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlAdministrators/activeDirectory") + @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, + Mono>> createOrUpdate(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, @BodyParam("application/json") WorkspaceAadAdminInfoInner aadAdminInfo, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}/sqlAdministrators/activeDirectory") - @ExpectedResponses({200, 202, 204}) + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlAdministrators/activeDirectory") + @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @HeaderParam("Accept") String accept, - Context context); + Mono>> delete(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @HeaderParam("Accept") String accept, Context context); } /** * Gets a workspace SQL active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workspace SQL active directory admin along with {@link Response} on successful completion of {@link - * Mono}. + * @return a workspace SQL active directory admin along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -143,46 +126,33 @@ private Mono> getWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context)) + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets a workspace SQL active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a workspace SQL active directory admin along with {@link Response} on successful completion of {@link - * Mono}. + * @return a workspace SQL active directory admin along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String resourceGroupName, String workspaceName, Context context) { + private Mono> getWithResponseAsync(String resourceGroupName, + String workspaceName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -194,20 +164,13 @@ private Mono> getWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, accept, context); } /** * Gets a workspace SQL active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -222,7 +185,7 @@ private Mono getAsync(String resourceGroupName, Stri /** * Gets a workspace SQL active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -232,14 +195,14 @@ private Mono getAsync(String resourceGroupName, Stri * @return a workspace SQL active directory admin along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String workspaceName, Context context) { + public Response getWithResponse(String resourceGroupName, String workspaceName, + Context context) { return getWithResponseAsync(resourceGroupName, workspaceName, context).block(); } /** * Gets a workspace SQL active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -254,30 +217,26 @@ public WorkspaceAadAdminInfoInner get(String resourceGroupName, String workspace /** * Creates or updates a workspace SQL active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param aadAdminInfo Workspace active directory administrator properties. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workspace active directory administrator along with {@link Response} on successful completion of {@link - * Mono}. + * @return workspace active directory administrator along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String resourceGroupName, String workspaceName, WorkspaceAadAdminInfoInner aadAdminInfo) { + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String workspaceName, WorkspaceAadAdminInfoInner aadAdminInfo) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -294,24 +253,14 @@ private Mono>> createOrUpdateWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - aadAdminInfo, - accept, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, aadAdminInfo, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates a workspace SQL active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param aadAdminInfo Workspace active directory administrator properties. @@ -319,23 +268,19 @@ private Mono>> createOrUpdateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workspace active directory administrator along with {@link Response} on successful completion of {@link - * Mono}. + * @return workspace active directory administrator along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String resourceGroupName, String workspaceName, WorkspaceAadAdminInfoInner aadAdminInfo, Context context) { + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String workspaceName, WorkspaceAadAdminInfoInner aadAdminInfo, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -352,21 +297,13 @@ private Mono>> createOrUpdateWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - aadAdminInfo, - accept, - context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, aadAdminInfo, accept, context); } /** * Creates or updates a workspace SQL active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param aadAdminInfo Workspace active directory administrator properties. @@ -378,21 +315,16 @@ private Mono>> createOrUpdateWithResponseAsync( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, WorkspaceAadAdminInfoInner> beginCreateOrUpdateAsync( String resourceGroupName, String workspaceName, WorkspaceAadAdminInfoInner aadAdminInfo) { - Mono>> mono = - createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, aadAdminInfo); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - WorkspaceAadAdminInfoInner.class, - WorkspaceAadAdminInfoInner.class, - this.client.getContext()); + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, aadAdminInfo); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), WorkspaceAadAdminInfoInner.class, WorkspaceAadAdminInfoInner.class, + this.client.getContext()); } /** * Creates or updates a workspace SQL active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param aadAdminInfo Workspace active directory administrator properties. @@ -406,21 +338,15 @@ private PollerFlux, WorkspaceAadAdminInfo private PollerFlux, WorkspaceAadAdminInfoInner> beginCreateOrUpdateAsync( String resourceGroupName, String workspaceName, WorkspaceAadAdminInfoInner aadAdminInfo, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, aadAdminInfo, context); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - WorkspaceAadAdminInfoInner.class, - WorkspaceAadAdminInfoInner.class, - context); + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, aadAdminInfo, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), WorkspaceAadAdminInfoInner.class, WorkspaceAadAdminInfoInner.class, context); } /** * Creates or updates a workspace SQL active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param aadAdminInfo Workspace active directory administrator properties. @@ -430,14 +356,14 @@ private PollerFlux, WorkspaceAadAdminInfo * @return the {@link SyncPoller} for polling of workspace active directory administrator. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, WorkspaceAadAdminInfoInner> beginCreateOrUpdate( - String resourceGroupName, String workspaceName, WorkspaceAadAdminInfoInner aadAdminInfo) { + public SyncPoller, WorkspaceAadAdminInfoInner> + beginCreateOrUpdate(String resourceGroupName, String workspaceName, WorkspaceAadAdminInfoInner aadAdminInfo) { return this.beginCreateOrUpdateAsync(resourceGroupName, workspaceName, aadAdminInfo).getSyncPoller(); } /** * Creates or updates a workspace SQL active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param aadAdminInfo Workspace active directory administrator properties. @@ -455,7 +381,7 @@ public SyncPoller, WorkspaceAadAdminInfoI /** * Creates or updates a workspace SQL active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param aadAdminInfo Workspace active directory administrator properties. @@ -465,16 +391,15 @@ public SyncPoller, WorkspaceAadAdminInfoI * @return workspace active directory administrator on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, String workspaceName, WorkspaceAadAdminInfoInner aadAdminInfo) { - return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, aadAdminInfo) - .last() + private Mono createOrUpdateAsync(String resourceGroupName, String workspaceName, + WorkspaceAadAdminInfoInner aadAdminInfo) { + return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, aadAdminInfo).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Creates or updates a workspace SQL active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param aadAdminInfo Workspace active directory administrator properties. @@ -485,16 +410,15 @@ private Mono createOrUpdateAsync( * @return workspace active directory administrator on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, String workspaceName, WorkspaceAadAdminInfoInner aadAdminInfo, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, aadAdminInfo, context) - .last() + private Mono createOrUpdateAsync(String resourceGroupName, String workspaceName, + WorkspaceAadAdminInfoInner aadAdminInfo, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, aadAdminInfo, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Creates or updates a workspace SQL active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param aadAdminInfo Workspace active directory administrator properties. @@ -504,14 +428,14 @@ private Mono createOrUpdateAsync( * @return workspace active directory administrator. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkspaceAadAdminInfoInner createOrUpdate( - String resourceGroupName, String workspaceName, WorkspaceAadAdminInfoInner aadAdminInfo) { + public WorkspaceAadAdminInfoInner createOrUpdate(String resourceGroupName, String workspaceName, + WorkspaceAadAdminInfoInner aadAdminInfo) { return createOrUpdateAsync(resourceGroupName, workspaceName, aadAdminInfo).block(); } /** * Creates or updates a workspace SQL active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param aadAdminInfo Workspace active directory administrator properties. @@ -522,14 +446,14 @@ public WorkspaceAadAdminInfoInner createOrUpdate( * @return workspace active directory administrator. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkspaceAadAdminInfoInner createOrUpdate( - String resourceGroupName, String workspaceName, WorkspaceAadAdminInfoInner aadAdminInfo, Context context) { + public WorkspaceAadAdminInfoInner createOrUpdate(String resourceGroupName, String workspaceName, + WorkspaceAadAdminInfoInner aadAdminInfo, Context context) { return createOrUpdateAsync(resourceGroupName, workspaceName, aadAdminInfo, context).block(); } /** * Deletes a workspace SQL active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -540,16 +464,12 @@ public WorkspaceAadAdminInfoInner createOrUpdate( @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, String workspaceName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -561,23 +481,14 @@ private Mono>> deleteWithResponseAsync(String resource final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .delete( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes a workspace SQL active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -587,19 +498,15 @@ private Mono>> deleteWithResponseAsync(String resource * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync( - String resourceGroupName, String workspaceName, Context context) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String workspaceName, + Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -611,20 +518,13 @@ private Mono>> deleteWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .delete( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, accept, context); } /** * Deletes a workspace SQL active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -635,15 +535,13 @@ private Mono>> deleteWithResponseAsync( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String workspaceName) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, workspaceName); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** * Deletes a workspace SQL active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -653,18 +551,17 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, Void> beginDeleteAsync( - String resourceGroupName, String workspaceName, Context context) { + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String workspaceName, + Context context) { context = this.client.mergeContext(context); Mono>> mono = deleteWithResponseAsync(resourceGroupName, workspaceName, context); - return this - .client - .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); } /** * Deletes a workspace SQL active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -679,7 +576,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a workspace SQL active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -689,14 +586,14 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete( - String resourceGroupName, String workspaceName, Context context) { + public SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, + Context context) { return this.beginDeleteAsync(resourceGroupName, workspaceName, context).getSyncPoller(); } /** * Deletes a workspace SQL active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -711,7 +608,7 @@ private Mono deleteAsync(String resourceGroupName, String workspaceName) { /** * Deletes a workspace SQL active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -722,14 +619,13 @@ private Mono deleteAsync(String resourceGroupName, String workspaceName) { */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String workspaceName, Context context) { - return beginDeleteAsync(resourceGroupName, workspaceName, context) - .last() + return beginDeleteAsync(resourceGroupName, workspaceName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Deletes a workspace SQL active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -743,7 +639,7 @@ public void delete(String resourceGroupName, String workspaceName) { /** * Deletes a workspace SQL active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceSqlAadAdminsImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceSqlAadAdminsImpl.java index fc1f75150985..3c193eec6a31 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceSqlAadAdminsImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceSqlAadAdminsImpl.java @@ -20,21 +20,18 @@ public final class WorkspaceSqlAadAdminsImpl implements WorkspaceSqlAadAdmins { private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public WorkspaceSqlAadAdminsImpl( - WorkspaceSqlAadAdminsClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + public WorkspaceSqlAadAdminsImpl(WorkspaceSqlAadAdminsClient innerClient, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public Response getWithResponse( - String resourceGroupName, String workspaceName, Context context) { - Response inner = - this.serviceClient().getWithResponse(resourceGroupName, workspaceName, context); + public Response getWithResponse(String resourceGroupName, String workspaceName, + Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, workspaceName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new WorkspaceAadAdminInfoImpl(inner.getValue(), this.manager())); } else { return null; @@ -50,10 +47,10 @@ public WorkspaceAadAdminInfo get(String resourceGroupName, String workspaceName) } } - public WorkspaceAadAdminInfo createOrUpdate( - String resourceGroupName, String workspaceName, WorkspaceAadAdminInfoInner aadAdminInfo) { - WorkspaceAadAdminInfoInner inner = - this.serviceClient().createOrUpdate(resourceGroupName, workspaceName, aadAdminInfo); + public WorkspaceAadAdminInfo createOrUpdate(String resourceGroupName, String workspaceName, + WorkspaceAadAdminInfoInner aadAdminInfo) { + WorkspaceAadAdminInfoInner inner + = this.serviceClient().createOrUpdate(resourceGroupName, workspaceName, aadAdminInfo); if (inner != null) { return new WorkspaceAadAdminInfoImpl(inner, this.manager()); } else { @@ -61,10 +58,10 @@ public WorkspaceAadAdminInfo createOrUpdate( } } - public WorkspaceAadAdminInfo createOrUpdate( - String resourceGroupName, String workspaceName, WorkspaceAadAdminInfoInner aadAdminInfo, Context context) { - WorkspaceAadAdminInfoInner inner = - this.serviceClient().createOrUpdate(resourceGroupName, workspaceName, aadAdminInfo, context); + public WorkspaceAadAdminInfo createOrUpdate(String resourceGroupName, String workspaceName, + WorkspaceAadAdminInfoInner aadAdminInfo, Context context) { + WorkspaceAadAdminInfoInner inner + = this.serviceClient().createOrUpdate(resourceGroupName, workspaceName, aadAdminInfo, context); if (inner != null) { return new WorkspaceAadAdminInfoImpl(inner, this.manager()); } else { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceUsageQuotaResponseImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceUsageQuotaResponseImpl.java new file mode 100644 index 000000000000..e3026ff3be2f --- /dev/null +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspaceUsageQuotaResponseImpl.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.synapse.implementation; + +import com.azure.resourcemanager.synapse.fluent.models.WorkspaceUsageQuotaResponseInner; +import com.azure.resourcemanager.synapse.models.WorkspaceUsageQuotaResponse; + +public final class WorkspaceUsageQuotaResponseImpl implements WorkspaceUsageQuotaResponse { + private WorkspaceUsageQuotaResponseInner innerObject; + + private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; + + WorkspaceUsageQuotaResponseImpl(WorkspaceUsageQuotaResponseInner innerObject, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String name() { + return this.innerModel().name(); + } + + public Double currentValue() { + return this.innerModel().currentValue(); + } + + public Double limit() { + return this.innerModel().limit(); + } + + public String unit() { + return this.innerModel().unit(); + } + + public WorkspaceUsageQuotaResponseInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.synapse.SynapseManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspacesClientImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspacesClientImpl.java index 6bbb2598ebe3..9709d6146d86 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspacesClientImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspacesClientImpl.java @@ -40,22 +40,28 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -/** An instance of this class provides access to all the operations defined in WorkspacesClient. */ +/** + * An instance of this class provides access to all the operations defined in WorkspacesClient. + */ public final class WorkspacesClientImpl implements WorkspacesClient { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final WorkspacesService service; - /** The service client containing this operation class. */ + /** + * The service client containing this operation class. + */ private final SynapseManagementClientImpl client; /** * Initializes an instance of WorkspacesClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ WorkspacesClientImpl(SynapseManagementClientImpl client) { - this.service = - RestProxy.create(WorkspacesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.service + = RestProxy.create(WorkspacesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } @@ -66,116 +72,80 @@ public final class WorkspacesClientImpl implements WorkspacesClient { @Host("{$host}") @ServiceInterface(name = "SynapseManagementCli") public interface WorkspacesService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @HeaderParam("Accept") String accept, + Mono> listByResourceGroup(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}") - @ExpectedResponses({200}) + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}") + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @HeaderParam("Accept") String accept, - Context context); - - @Headers({"Content-Type: application/json"}) - @Patch( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}") - @ExpectedResponses({200, 201}) + Mono> getByResourceGroup(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}") + @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> update( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @BodyParam("application/json") WorkspacePatchInfo workspacePatchInfo, - @HeaderParam("Accept") String accept, + Mono>> update(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @BodyParam("application/json") WorkspacePatchInfo workspacePatchInfo, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Put( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}") - @ExpectedResponses({200, 201}) + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}") + @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @BodyParam("application/json") WorkspaceInner workspaceInfo, - @HeaderParam("Accept") String accept, + Mono>> createOrUpdate(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @BodyParam("application/json") WorkspaceInner workspaceInfo, @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Delete( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces" - + "/{workspaceName}") - @ExpectedResponses({200, 202, 204}) + @Headers({ "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}") + @ExpectedResponses({ 200, 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("workspaceName") String workspaceName, - @HeaderParam("Accept") String accept, - Context context); + Mono>> delete(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Synapse/workspaces") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list( - @HostParam("$host") String endpoint, - @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, - Context context); + Mono> list(@HostParam("$host") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> listByResourceGroupNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint, + @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") - @ExpectedResponses({200}) + @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); + Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("$host") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** * Returns a list of workspaces in a resource group. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -185,16 +155,12 @@ Mono> listNext( @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -203,31 +169,16 @@ private Mono> listByResourceGroupSinglePageAsync(S final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .listByResourceGroup( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Returns a list of workspaces in a resource group. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -236,19 +187,15 @@ private Mono> listByResourceGroupSinglePageAsync(S * @return list of workspaces along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupSinglePageAsync( - String resourceGroupName, Context context) { + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, + Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -258,27 +205,15 @@ private Mono> listByResourceGroupSinglePageAsync( final String accept = "application/json"; context = this.client.mergeContext(context); return service - .listByResourceGroup( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * Returns a list of workspaces in a resource group. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -287,14 +222,13 @@ private Mono> listByResourceGroupSinglePageAsync( */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName) { - return new PagedFlux<>( - () -> listByResourceGroupSinglePageAsync(resourceGroupName), + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); } /** * Returns a list of workspaces in a resource group. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -304,14 +238,13 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupN */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { - return new PagedFlux<>( - () -> listByResourceGroupSinglePageAsync(resourceGroupName, context), + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context)); } /** * Returns a list of workspaces in a resource group. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -325,7 +258,7 @@ public PagedIterable listByResourceGroup(String resourceGroupNam /** * Returns a list of workspaces in a resource group. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -340,7 +273,7 @@ public PagedIterable listByResourceGroup(String resourceGroupNam /** * Gets a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -349,19 +282,15 @@ public PagedIterable listByResourceGroup(String resourceGroupNam * @return a workspace along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getByResourceGroupWithResponseAsync( - String resourceGroupName, String workspaceName) { + private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String workspaceName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -373,23 +302,14 @@ private Mono> getByResourceGroupWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .getByResourceGroup( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context)) + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Gets a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -399,19 +319,15 @@ private Mono> getByResourceGroupWithResponseAsync( * @return a workspace along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getByResourceGroupWithResponseAsync( - String resourceGroupName, String workspaceName, Context context) { + private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String workspaceName, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -423,20 +339,13 @@ private Mono> getByResourceGroupWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .getByResourceGroup( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context); + return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, accept, context); } /** * Gets a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -452,7 +361,7 @@ private Mono getByResourceGroupAsync(String resourceGroupName, S /** * Gets a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -462,14 +371,14 @@ private Mono getByResourceGroupAsync(String resourceGroupName, S * @return a workspace along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse( - String resourceGroupName, String workspaceName, Context context) { + public Response getByResourceGroupWithResponse(String resourceGroupName, String workspaceName, + Context context) { return getByResourceGroupWithResponseAsync(resourceGroupName, workspaceName, context).block(); } /** * Gets a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -484,7 +393,7 @@ public WorkspaceInner getByResourceGroup(String resourceGroupName, String worksp /** * Updates a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param workspacePatchInfo Workspace patch request properties. @@ -494,19 +403,15 @@ public WorkspaceInner getByResourceGroup(String resourceGroupName, String worksp * @return a workspace along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync( - String resourceGroupName, String workspaceName, WorkspacePatchInfo workspacePatchInfo) { + private Mono>> updateWithResponseAsync(String resourceGroupName, String workspaceName, + WorkspacePatchInfo workspacePatchInfo) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -524,24 +429,14 @@ private Mono>> updateWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .update( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - workspacePatchInfo, - accept, - context)) + .withContext(context -> service.update(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, workspacePatchInfo, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Updates a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param workspacePatchInfo Workspace patch request properties. @@ -552,19 +447,15 @@ private Mono>> updateWithResponseAsync( * @return a workspace along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync( - String resourceGroupName, String workspaceName, WorkspacePatchInfo workspacePatchInfo, Context context) { + private Mono>> updateWithResponseAsync(String resourceGroupName, String workspaceName, + WorkspacePatchInfo workspacePatchInfo, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -582,21 +473,13 @@ private Mono>> updateWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .update( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - workspacePatchInfo, - accept, - context); + return service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, workspacePatchInfo, accept, context); } /** * Updates a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param workspacePatchInfo Workspace patch request properties. @@ -606,23 +489,17 @@ private Mono>> updateWithResponseAsync( * @return the {@link PollerFlux} for polling of a workspace. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, WorkspaceInner> beginUpdateAsync( - String resourceGroupName, String workspaceName, WorkspacePatchInfo workspacePatchInfo) { - Mono>> mono = - updateWithResponseAsync(resourceGroupName, workspaceName, workspacePatchInfo); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - WorkspaceInner.class, - WorkspaceInner.class, - this.client.getContext()); + private PollerFlux, WorkspaceInner> beginUpdateAsync(String resourceGroupName, + String workspaceName, WorkspacePatchInfo workspacePatchInfo) { + Mono>> mono + = updateWithResponseAsync(resourceGroupName, workspaceName, workspacePatchInfo); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + WorkspaceInner.class, WorkspaceInner.class, this.client.getContext()); } /** * Updates a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param workspacePatchInfo Workspace patch request properties. @@ -633,20 +510,18 @@ private PollerFlux, WorkspaceInner> beginUpdateAsync( * @return the {@link PollerFlux} for polling of a workspace. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, WorkspaceInner> beginUpdateAsync( - String resourceGroupName, String workspaceName, WorkspacePatchInfo workspacePatchInfo, Context context) { + private PollerFlux, WorkspaceInner> beginUpdateAsync(String resourceGroupName, + String workspaceName, WorkspacePatchInfo workspacePatchInfo, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - updateWithResponseAsync(resourceGroupName, workspaceName, workspacePatchInfo, context); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), WorkspaceInner.class, WorkspaceInner.class, context); + Mono>> mono + = updateWithResponseAsync(resourceGroupName, workspaceName, workspacePatchInfo, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + WorkspaceInner.class, WorkspaceInner.class, context); } /** * Updates a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param workspacePatchInfo Workspace patch request properties. @@ -656,14 +531,14 @@ private PollerFlux, WorkspaceInner> beginUpdateAsync( * @return the {@link SyncPoller} for polling of a workspace. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, WorkspaceInner> beginUpdate( - String resourceGroupName, String workspaceName, WorkspacePatchInfo workspacePatchInfo) { + public SyncPoller, WorkspaceInner> beginUpdate(String resourceGroupName, + String workspaceName, WorkspacePatchInfo workspacePatchInfo) { return this.beginUpdateAsync(resourceGroupName, workspaceName, workspacePatchInfo).getSyncPoller(); } /** * Updates a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param workspacePatchInfo Workspace patch request properties. @@ -674,14 +549,14 @@ public SyncPoller, WorkspaceInner> beginUpdate( * @return the {@link SyncPoller} for polling of a workspace. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, WorkspaceInner> beginUpdate( - String resourceGroupName, String workspaceName, WorkspacePatchInfo workspacePatchInfo, Context context) { + public SyncPoller, WorkspaceInner> beginUpdate(String resourceGroupName, + String workspaceName, WorkspacePatchInfo workspacePatchInfo, Context context) { return this.beginUpdateAsync(resourceGroupName, workspaceName, workspacePatchInfo, context).getSyncPoller(); } /** * Updates a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param workspacePatchInfo Workspace patch request properties. @@ -691,16 +566,15 @@ public SyncPoller, WorkspaceInner> beginUpdate( * @return a workspace on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync( - String resourceGroupName, String workspaceName, WorkspacePatchInfo workspacePatchInfo) { - return beginUpdateAsync(resourceGroupName, workspaceName, workspacePatchInfo) - .last() + private Mono updateAsync(String resourceGroupName, String workspaceName, + WorkspacePatchInfo workspacePatchInfo) { + return beginUpdateAsync(resourceGroupName, workspaceName, workspacePatchInfo).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Updates a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param workspacePatchInfo Workspace patch request properties. @@ -711,16 +585,15 @@ private Mono updateAsync( * @return a workspace on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync( - String resourceGroupName, String workspaceName, WorkspacePatchInfo workspacePatchInfo, Context context) { - return beginUpdateAsync(resourceGroupName, workspaceName, workspacePatchInfo, context) - .last() + private Mono updateAsync(String resourceGroupName, String workspaceName, + WorkspacePatchInfo workspacePatchInfo, Context context) { + return beginUpdateAsync(resourceGroupName, workspaceName, workspacePatchInfo, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Updates a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param workspacePatchInfo Workspace patch request properties. @@ -730,14 +603,14 @@ private Mono updateAsync( * @return a workspace. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkspaceInner update( - String resourceGroupName, String workspaceName, WorkspacePatchInfo workspacePatchInfo) { + public WorkspaceInner update(String resourceGroupName, String workspaceName, + WorkspacePatchInfo workspacePatchInfo) { return updateAsync(resourceGroupName, workspaceName, workspacePatchInfo).block(); } /** * Updates a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param workspacePatchInfo Workspace patch request properties. @@ -748,14 +621,14 @@ public WorkspaceInner update( * @return a workspace. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkspaceInner update( - String resourceGroupName, String workspaceName, WorkspacePatchInfo workspacePatchInfo, Context context) { + public WorkspaceInner update(String resourceGroupName, String workspaceName, WorkspacePatchInfo workspacePatchInfo, + Context context) { return updateAsync(resourceGroupName, workspaceName, workspacePatchInfo, context).block(); } /** * Creates or updates a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param workspaceInfo Workspace create or update request properties. @@ -765,19 +638,15 @@ public WorkspaceInner update( * @return a workspace along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String resourceGroupName, String workspaceName, WorkspaceInner workspaceInfo) { + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String workspaceName, WorkspaceInner workspaceInfo) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -794,24 +663,14 @@ private Mono>> createOrUpdateWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - workspaceInfo, - accept, - context)) + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, workspaceInfo, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Creates or updates a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param workspaceInfo Workspace create or update request properties. @@ -822,19 +681,15 @@ private Mono>> createOrUpdateWithResponseAsync( * @return a workspace along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync( - String resourceGroupName, String workspaceName, WorkspaceInner workspaceInfo, Context context) { + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String workspaceName, WorkspaceInner workspaceInfo, Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -851,21 +706,13 @@ private Mono>> createOrUpdateWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .createOrUpdate( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - workspaceInfo, - accept, - context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, workspaceName, workspaceInfo, accept, context); } /** * Creates or updates a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param workspaceInfo Workspace create or update request properties. @@ -875,23 +722,17 @@ private Mono>> createOrUpdateWithResponseAsync( * @return the {@link PollerFlux} for polling of a workspace. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, WorkspaceInner> beginCreateOrUpdateAsync( - String resourceGroupName, String workspaceName, WorkspaceInner workspaceInfo) { - Mono>> mono = - createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, workspaceInfo); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - WorkspaceInner.class, - WorkspaceInner.class, - this.client.getContext()); + private PollerFlux, WorkspaceInner> beginCreateOrUpdateAsync(String resourceGroupName, + String workspaceName, WorkspaceInner workspaceInfo) { + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, workspaceInfo); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + WorkspaceInner.class, WorkspaceInner.class, this.client.getContext()); } /** * Creates or updates a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param workspaceInfo Workspace create or update request properties. @@ -902,20 +743,18 @@ private PollerFlux, WorkspaceInner> beginCreateOrUpda * @return the {@link PollerFlux} for polling of a workspace. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, WorkspaceInner> beginCreateOrUpdateAsync( - String resourceGroupName, String workspaceName, WorkspaceInner workspaceInfo, Context context) { + private PollerFlux, WorkspaceInner> beginCreateOrUpdateAsync(String resourceGroupName, + String workspaceName, WorkspaceInner workspaceInfo, Context context) { context = this.client.mergeContext(context); - Mono>> mono = - createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, workspaceInfo, context); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), WorkspaceInner.class, WorkspaceInner.class, context); + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, workspaceName, workspaceInfo, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + WorkspaceInner.class, WorkspaceInner.class, context); } /** * Creates or updates a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param workspaceInfo Workspace create or update request properties. @@ -925,14 +764,14 @@ private PollerFlux, WorkspaceInner> beginCreateOrUpda * @return the {@link SyncPoller} for polling of a workspace. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, WorkspaceInner> beginCreateOrUpdate( - String resourceGroupName, String workspaceName, WorkspaceInner workspaceInfo) { + public SyncPoller, WorkspaceInner> beginCreateOrUpdate(String resourceGroupName, + String workspaceName, WorkspaceInner workspaceInfo) { return this.beginCreateOrUpdateAsync(resourceGroupName, workspaceName, workspaceInfo).getSyncPoller(); } /** * Creates or updates a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param workspaceInfo Workspace create or update request properties. @@ -943,14 +782,14 @@ public SyncPoller, WorkspaceInner> beginCreateOrUpdat * @return the {@link SyncPoller} for polling of a workspace. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, WorkspaceInner> beginCreateOrUpdate( - String resourceGroupName, String workspaceName, WorkspaceInner workspaceInfo, Context context) { + public SyncPoller, WorkspaceInner> beginCreateOrUpdate(String resourceGroupName, + String workspaceName, WorkspaceInner workspaceInfo, Context context) { return this.beginCreateOrUpdateAsync(resourceGroupName, workspaceName, workspaceInfo, context).getSyncPoller(); } /** * Creates or updates a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param workspaceInfo Workspace create or update request properties. @@ -960,16 +799,15 @@ public SyncPoller, WorkspaceInner> beginCreateOrUpdat * @return a workspace on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, String workspaceName, WorkspaceInner workspaceInfo) { - return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, workspaceInfo) - .last() + private Mono createOrUpdateAsync(String resourceGroupName, String workspaceName, + WorkspaceInner workspaceInfo) { + return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, workspaceInfo).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Creates or updates a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param workspaceInfo Workspace create or update request properties. @@ -980,16 +818,15 @@ private Mono createOrUpdateAsync( * @return a workspace on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, String workspaceName, WorkspaceInner workspaceInfo, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, workspaceInfo, context) - .last() + private Mono createOrUpdateAsync(String resourceGroupName, String workspaceName, + WorkspaceInner workspaceInfo, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, workspaceName, workspaceInfo, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Creates or updates a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param workspaceInfo Workspace create or update request properties. @@ -1005,7 +842,7 @@ public WorkspaceInner createOrUpdate(String resourceGroupName, String workspaceN /** * Creates or updates a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param workspaceInfo Workspace create or update request properties. @@ -1016,14 +853,14 @@ public WorkspaceInner createOrUpdate(String resourceGroupName, String workspaceN * @return a workspace. */ @ServiceMethod(returns = ReturnType.SINGLE) - public WorkspaceInner createOrUpdate( - String resourceGroupName, String workspaceName, WorkspaceInner workspaceInfo, Context context) { + public WorkspaceInner createOrUpdate(String resourceGroupName, String workspaceName, WorkspaceInner workspaceInfo, + Context context) { return createOrUpdateAsync(resourceGroupName, workspaceName, workspaceInfo, context).block(); } /** * Deletes a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1034,16 +871,12 @@ public WorkspaceInner createOrUpdate( @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, String workspaceName) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1055,23 +888,14 @@ private Mono>> deleteWithResponseAsync(String resource final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .delete( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context)) + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, workspaceName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Deletes a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -1081,19 +905,15 @@ private Mono>> deleteWithResponseAsync(String resource * @return a workspace along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> deleteWithResponseAsync( - String resourceGroupName, String workspaceName, Context context) { + private Mono>> deleteWithResponseAsync(String resourceGroupName, String workspaceName, + Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } if (resourceGroupName == null) { return Mono @@ -1105,20 +925,13 @@ private Mono>> deleteWithResponseAsync( final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .delete( - this.client.getEndpoint(), - apiVersion, - this.client.getSubscriptionId(), - resourceGroupName, - workspaceName, - accept, - context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + workspaceName, accept, context); } /** * Deletes a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1127,22 +940,16 @@ private Mono>> deleteWithResponseAsync( * @return the {@link PollerFlux} for polling of a workspace. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, WorkspaceInner> beginDeleteAsync( - String resourceGroupName, String workspaceName) { + private PollerFlux, WorkspaceInner> beginDeleteAsync(String resourceGroupName, + String workspaceName) { Mono>> mono = deleteWithResponseAsync(resourceGroupName, workspaceName); - return this - .client - .getLroResult( - mono, - this.client.getHttpPipeline(), - WorkspaceInner.class, - WorkspaceInner.class, - this.client.getContext()); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + WorkspaceInner.class, WorkspaceInner.class, this.client.getContext()); } /** * Deletes a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -1152,19 +959,17 @@ private PollerFlux, WorkspaceInner> beginDeleteAsync( * @return the {@link PollerFlux} for polling of a workspace. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, WorkspaceInner> beginDeleteAsync( - String resourceGroupName, String workspaceName, Context context) { + private PollerFlux, WorkspaceInner> beginDeleteAsync(String resourceGroupName, + String workspaceName, Context context) { context = this.client.mergeContext(context); Mono>> mono = deleteWithResponseAsync(resourceGroupName, workspaceName, context); - return this - .client - .getLroResult( - mono, this.client.getHttpPipeline(), WorkspaceInner.class, WorkspaceInner.class, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + WorkspaceInner.class, WorkspaceInner.class, context); } /** * Deletes a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1173,14 +978,14 @@ private PollerFlux, WorkspaceInner> beginDeleteAsync( * @return the {@link SyncPoller} for polling of a workspace. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, WorkspaceInner> beginDelete( - String resourceGroupName, String workspaceName) { + public SyncPoller, WorkspaceInner> beginDelete(String resourceGroupName, + String workspaceName) { return this.beginDeleteAsync(resourceGroupName, workspaceName).getSyncPoller(); } /** * Deletes a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -1190,14 +995,14 @@ public SyncPoller, WorkspaceInner> beginDelete( * @return the {@link SyncPoller} for polling of a workspace. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, WorkspaceInner> beginDelete( - String resourceGroupName, String workspaceName, Context context) { + public SyncPoller, WorkspaceInner> beginDelete(String resourceGroupName, + String workspaceName, Context context) { return this.beginDeleteAsync(resourceGroupName, workspaceName, context).getSyncPoller(); } /** * Deletes a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1212,7 +1017,7 @@ private Mono deleteAsync(String resourceGroupName, String worksp /** * Deletes a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -1223,14 +1028,13 @@ private Mono deleteAsync(String resourceGroupName, String worksp */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String workspaceName, Context context) { - return beginDeleteAsync(resourceGroupName, workspaceName, context) - .last() + return beginDeleteAsync(resourceGroupName, workspaceName, context).last() .flatMap(this.client::getLroFinalResultOrError); } /** * Deletes a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1245,7 +1049,7 @@ public WorkspaceInner delete(String resourceGroupName, String workspaceName) { /** * Deletes a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -1261,7 +1065,7 @@ public WorkspaceInner delete(String resourceGroupName, String workspaceName, Con /** * Returns a list of workspaces 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 list of workspaces along with {@link PagedResponse} on successful completion of {@link Mono}. @@ -1269,39 +1073,26 @@ public WorkspaceInner delete(String resourceGroupName, String workspaceName, Con @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync() { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> - service - .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Returns a list of workspaces 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. @@ -1311,36 +1102,24 @@ private Mono> listSinglePageAsync() { @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(Context context) { if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } final String apiVersion = "2021-06-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * Returns a list of workspaces 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 list of workspaces as paginated response with {@link PagedFlux}. @@ -1352,7 +1131,7 @@ private PagedFlux listAsync() { /** * Returns a list of workspaces 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. @@ -1361,13 +1140,13 @@ private PagedFlux listAsync() { */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(Context context) { - return new PagedFlux<>( - () -> listSinglePageAsync(context), nextLink -> listNextSinglePageAsync(nextLink, context)); + return new PagedFlux<>(() -> listSinglePageAsync(context), + nextLink -> listNextSinglePageAsync(nextLink, context)); } /** * Returns a list of workspaces 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 list of workspaces as paginated response with {@link PagedIterable}. @@ -1379,7 +1158,7 @@ public PagedIterable list() { /** * Returns a list of workspaces 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. @@ -1393,9 +1172,10 @@ 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. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1407,32 +1187,24 @@ private Mono> listByResourceGroupNextSinglePageAsy return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil .withContext( context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1440,37 +1212,28 @@ private Mono> listByResourceGroupNextSinglePageAsy * @return list of workspaces along with {@link PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupNextSinglePageAsync( - String nextLink, Context context) { + private Mono> listByResourceGroupNextSinglePageAsync(String nextLink, + Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1482,31 +1245,22 @@ private Mono> listNextSinglePageAsync(String nextL return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - *

The nextLink parameter. + * + * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1519,23 +1273,13 @@ private Mono> listNextSinglePageAsync(String nextL return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service - .listNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspacesImpl.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspacesImpl.java index 788f3fb86c76..188cfcd8b989 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspacesImpl.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/WorkspacesImpl.java @@ -21,31 +21,28 @@ public final class WorkspacesImpl implements Workspaces { private final com.azure.resourcemanager.synapse.SynapseManager serviceManager; - public WorkspacesImpl( - WorkspacesClient innerClient, com.azure.resourcemanager.synapse.SynapseManager serviceManager) { + public WorkspacesImpl(WorkspacesClient innerClient, + com.azure.resourcemanager.synapse.SynapseManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } public PagedIterable listByResourceGroup(String resourceGroupName) { PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName); - return Utils.mapPage(inner, inner1 -> new WorkspaceImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkspaceImpl(inner1, this.manager())); } public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName, context); - return Utils.mapPage(inner, inner1 -> new WorkspaceImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkspaceImpl(inner1, this.manager())); } - public Response getByResourceGroupWithResponse( - String resourceGroupName, String workspaceName, Context context) { - Response inner = - this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, workspaceName, context); + public Response getByResourceGroupWithResponse(String resourceGroupName, String workspaceName, + Context context) { + Response inner + = this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, workspaceName, context); if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new WorkspaceImpl(inner.getValue(), this.manager())); } else { return null; @@ -81,86 +78,66 @@ public Workspace delete(String resourceGroupName, String workspaceName, Context public PagedIterable list() { PagedIterable inner = this.serviceClient().list(); - return Utils.mapPage(inner, inner1 -> new WorkspaceImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkspaceImpl(inner1, this.manager())); } public PagedIterable list(Context context) { PagedIterable inner = this.serviceClient().list(context); - return Utils.mapPage(inner, inner1 -> new WorkspaceImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkspaceImpl(inner1, this.manager())); } public Workspace getById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } return this.getByResourceGroupWithResponse(resourceGroupName, workspaceName, Context.NONE).getValue(); } public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } return this.getByResourceGroupWithResponse(resourceGroupName, workspaceName, context); } public Workspace deleteById(String id) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } return this.delete(resourceGroupName, workspaceName, Context.NONE); } public Workspace deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String - .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } - String workspaceName = Utils.getValueFromIdByName(id, "workspaces"); + String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces"); if (workspaceName == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id))); } return this.delete(resourceGroupName, workspaceName, context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/package-info.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/package-info.java index 1d626563f0a9..30c4b9ed0dc7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/package-info.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/package-info.java @@ -2,5 +2,8 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -/** Package containing the implementations for SynapseManagementClient. Azure Synapse Analytics Management Client. */ +/** + * Package containing the implementations for SynapseManagementClient. + * Azure Synapse Analytics Management Client. + */ package com.azure.resourcemanager.synapse.implementation; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ActualState.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ActualState.java index 7d745091344b..d66ffcc39de0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ActualState.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ActualState.java @@ -7,24 +7,38 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -/** Actual state. */ +/** + * Actual state. + */ public enum ActualState { - /** Enum value Enabling. */ + /** + * Enum value Enabling. + */ ENABLING("Enabling"), - /** Enum value Enabled. */ + /** + * Enum value Enabled. + */ ENABLED("Enabled"), - /** Enum value Disabling. */ + /** + * Enum value Disabling. + */ DISABLING("Disabling"), - /** Enum value Disabled. */ + /** + * Enum value Disabled. + */ DISABLED("Disabled"), - /** Enum value Unknown. */ + /** + * Enum value Unknown. + */ UNKNOWN("Unknown"); - /** The actual serialized value for a ActualState instance. */ + /** + * The actual serialized value for a ActualState instance. + */ private final String value; ActualState(String value) { @@ -33,7 +47,7 @@ public enum ActualState { /** * Parses a serialized value to a ActualState instance. - * + * * @param value the serialized value to parse. * @return the parsed ActualState object, or null if unable to parse. */ @@ -51,7 +65,9 @@ public static ActualState fromString(String value) { return null; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @JsonValue @Override public String toString() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AttachedDatabaseConfiguration.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AttachedDatabaseConfiguration.java index 31fb6d19e07a..ae4534dc990f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AttachedDatabaseConfiguration.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AttachedDatabaseConfiguration.java @@ -10,46 +10,48 @@ import com.azure.resourcemanager.synapse.fluent.models.AttachedDatabaseConfigurationInner; import java.util.List; -/** An immutable client-side representation of AttachedDatabaseConfiguration. */ +/** + * An immutable client-side representation of AttachedDatabaseConfiguration. + */ public interface AttachedDatabaseConfiguration { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the location property: Resource location. - * + * * @return the location value. */ String location(); /** * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ SystemData systemData(); /** * Gets the provisioningState property: The provisioned state of the resource. - * + * * @return the provisioningState value. */ ResourceProvisioningState provisioningState(); @@ -57,7 +59,7 @@ public interface AttachedDatabaseConfiguration { /** * Gets the databaseName property: The name of the database which you would like to attach, use * if you want to * follow all current and future databases. - * + * * @return the databaseName value. */ String databaseName(); @@ -65,7 +67,7 @@ public interface AttachedDatabaseConfiguration { /** * Gets the kustoPoolResourceId property: The resource id of the kusto pool where the databases you would like to * attach reside. - * + * * @return the kustoPoolResourceId value. */ String kustoPoolResourceId(); @@ -73,67 +75,77 @@ public interface AttachedDatabaseConfiguration { /** * Gets the attachedDatabaseNames property: The list of databases from the clusterResourceId which are currently * attached to the kusto pool. - * + * * @return the attachedDatabaseNames value. */ List attachedDatabaseNames(); /** * Gets the defaultPrincipalsModificationKind property: The default principals modification kind. - * + * * @return the defaultPrincipalsModificationKind value. */ DefaultPrincipalsModificationKind defaultPrincipalsModificationKind(); /** * Gets the tableLevelSharingProperties property: Table level sharing specifications. - * + * * @return the tableLevelSharingProperties value. */ TableLevelSharingProperties tableLevelSharingProperties(); /** * Gets the region of the resource. - * + * * @return the region of the resource. */ Region region(); /** * Gets the name of the resource region. - * + * * @return the name of the resource region. */ String regionName(); /** * Gets the name of the resource group. - * + * * @return the name of the resource group. */ String resourceGroupName(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.AttachedDatabaseConfigurationInner object. - * + * * @return the inner object. */ AttachedDatabaseConfigurationInner innerModel(); - /** The entirety of the AttachedDatabaseConfiguration definition. */ + /** + * The entirety of the AttachedDatabaseConfiguration definition. + */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { } - /** The AttachedDatabaseConfiguration definition stages. */ + + /** + * The AttachedDatabaseConfiguration definition stages. + */ interface DefinitionStages { - /** The first stage of the AttachedDatabaseConfiguration definition. */ + /** + * The first stage of the AttachedDatabaseConfiguration definition. + */ interface Blank extends WithParentResource { } - /** The stage of the AttachedDatabaseConfiguration definition allowing to specify parent resource. */ + + /** + * The stage of the AttachedDatabaseConfiguration definition allowing to specify parent resource. + */ interface WithParentResource { /** * Specifies workspaceName, kustoPoolName, resourceGroupName. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -141,36 +153,37 @@ interface WithParentResource { */ WithCreate withExistingKustoPool(String workspaceName, String kustoPoolName, String resourceGroupName); } + /** * The stage of the AttachedDatabaseConfiguration definition which contains all the minimum required properties * for the resource to be created, but also allows for any other optional properties to be specified. */ - interface WithCreate - extends DefinitionStages.WithLocation, - DefinitionStages.WithDatabaseName, - DefinitionStages.WithKustoPoolResourceId, - DefinitionStages.WithDefaultPrincipalsModificationKind, - DefinitionStages.WithTableLevelSharingProperties { + interface WithCreate extends DefinitionStages.WithLocation, DefinitionStages.WithDatabaseName, + DefinitionStages.WithKustoPoolResourceId, DefinitionStages.WithDefaultPrincipalsModificationKind, + DefinitionStages.WithTableLevelSharingProperties { /** * Executes the create request. - * + * * @return the created resource. */ AttachedDatabaseConfiguration create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ AttachedDatabaseConfiguration create(Context context); } - /** The stage of the AttachedDatabaseConfiguration definition allowing to specify location. */ + + /** + * The stage of the AttachedDatabaseConfiguration definition allowing to specify location. + */ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location Resource location. * @return the next definition stage. */ @@ -178,36 +191,43 @@ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location Resource location. * @return the next definition stage. */ WithCreate withRegion(String location); } - /** The stage of the AttachedDatabaseConfiguration definition allowing to specify databaseName. */ + + /** + * The stage of the AttachedDatabaseConfiguration definition allowing to specify databaseName. + */ interface WithDatabaseName { /** * Specifies the databaseName property: The name of the database which you would like to attach, use * if * you want to follow all current and future databases.. - * + * * @param databaseName The name of the database which you would like to attach, use * if you want to follow - * all current and future databases. + * all current and future databases. * @return the next definition stage. */ WithCreate withDatabaseName(String databaseName); } - /** The stage of the AttachedDatabaseConfiguration definition allowing to specify kustoPoolResourceId. */ + + /** + * The stage of the AttachedDatabaseConfiguration definition allowing to specify kustoPoolResourceId. + */ interface WithKustoPoolResourceId { /** * Specifies the kustoPoolResourceId property: The resource id of the kusto pool where the databases you * would like to attach reside.. - * + * * @param kustoPoolResourceId The resource id of the kusto pool where the databases you would like to attach - * reside. + * reside. * @return the next definition stage. */ WithCreate withKustoPoolResourceId(String kustoPoolResourceId); } + /** * The stage of the AttachedDatabaseConfiguration definition allowing to specify * defaultPrincipalsModificationKind. @@ -215,114 +235,128 @@ interface WithKustoPoolResourceId { interface WithDefaultPrincipalsModificationKind { /** * Specifies the defaultPrincipalsModificationKind property: The default principals modification kind. - * + * * @param defaultPrincipalsModificationKind The default principals modification kind. * @return the next definition stage. */ WithCreate withDefaultPrincipalsModificationKind( DefaultPrincipalsModificationKind defaultPrincipalsModificationKind); } + /** * The stage of the AttachedDatabaseConfiguration definition allowing to specify tableLevelSharingProperties. */ interface WithTableLevelSharingProperties { /** * Specifies the tableLevelSharingProperties property: Table level sharing specifications. - * + * * @param tableLevelSharingProperties Table level sharing specifications. * @return the next definition stage. */ WithCreate withTableLevelSharingProperties(TableLevelSharingProperties tableLevelSharingProperties); } } + /** * Begins update for the AttachedDatabaseConfiguration resource. - * + * * @return the stage of resource update. */ AttachedDatabaseConfiguration.Update update(); - /** The template for AttachedDatabaseConfiguration update. */ - interface Update - extends UpdateStages.WithDatabaseName, - UpdateStages.WithKustoPoolResourceId, - UpdateStages.WithDefaultPrincipalsModificationKind, - UpdateStages.WithTableLevelSharingProperties { + /** + * The template for AttachedDatabaseConfiguration update. + */ + interface Update extends UpdateStages.WithDatabaseName, UpdateStages.WithKustoPoolResourceId, + UpdateStages.WithDefaultPrincipalsModificationKind, UpdateStages.WithTableLevelSharingProperties { /** * Executes the update request. - * + * * @return the updated resource. */ AttachedDatabaseConfiguration apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ AttachedDatabaseConfiguration apply(Context context); } - /** The AttachedDatabaseConfiguration update stages. */ + + /** + * The AttachedDatabaseConfiguration update stages. + */ interface UpdateStages { - /** The stage of the AttachedDatabaseConfiguration update allowing to specify databaseName. */ + /** + * The stage of the AttachedDatabaseConfiguration update allowing to specify databaseName. + */ interface WithDatabaseName { /** * Specifies the databaseName property: The name of the database which you would like to attach, use * if * you want to follow all current and future databases.. - * + * * @param databaseName The name of the database which you would like to attach, use * if you want to follow - * all current and future databases. + * all current and future databases. * @return the next definition stage. */ Update withDatabaseName(String databaseName); } - /** The stage of the AttachedDatabaseConfiguration update allowing to specify kustoPoolResourceId. */ + + /** + * The stage of the AttachedDatabaseConfiguration update allowing to specify kustoPoolResourceId. + */ interface WithKustoPoolResourceId { /** * Specifies the kustoPoolResourceId property: The resource id of the kusto pool where the databases you * would like to attach reside.. - * + * * @param kustoPoolResourceId The resource id of the kusto pool where the databases you would like to attach - * reside. + * reside. * @return the next definition stage. */ Update withKustoPoolResourceId(String kustoPoolResourceId); } + /** * The stage of the AttachedDatabaseConfiguration update allowing to specify defaultPrincipalsModificationKind. */ interface WithDefaultPrincipalsModificationKind { /** * Specifies the defaultPrincipalsModificationKind property: The default principals modification kind. - * + * * @param defaultPrincipalsModificationKind The default principals modification kind. * @return the next definition stage. */ Update withDefaultPrincipalsModificationKind( DefaultPrincipalsModificationKind defaultPrincipalsModificationKind); } - /** The stage of the AttachedDatabaseConfiguration update allowing to specify tableLevelSharingProperties. */ + + /** + * The stage of the AttachedDatabaseConfiguration update allowing to specify tableLevelSharingProperties. + */ interface WithTableLevelSharingProperties { /** * Specifies the tableLevelSharingProperties property: Table level sharing specifications. - * + * * @param tableLevelSharingProperties Table level sharing specifications. * @return the next definition stage. */ Update withTableLevelSharingProperties(TableLevelSharingProperties tableLevelSharingProperties); } } + /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ AttachedDatabaseConfiguration refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AttachedDatabaseConfigurationListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AttachedDatabaseConfigurationListResult.java index ed8bb9c18549..40759504256a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AttachedDatabaseConfigurationListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AttachedDatabaseConfigurationListResult.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The list attached database configurations operation response. */ +/** + * The list attached database configurations operation response. + */ @Fluent public final class AttachedDatabaseConfigurationListResult { /* @@ -18,13 +20,15 @@ public final class AttachedDatabaseConfigurationListResult { @JsonProperty(value = "value") private List value; - /** Creates an instance of AttachedDatabaseConfigurationListResult class. */ + /** + * Creates an instance of AttachedDatabaseConfigurationListResult class. + */ public AttachedDatabaseConfigurationListResult() { } /** * Get the value property: The list of attached database configurations. - * + * * @return the value value. */ public List value() { @@ -33,7 +37,7 @@ public List value() { /** * Set the value property: The list of attached database configurations. - * + * * @param value the value value to set. * @return the AttachedDatabaseConfigurationListResult object itself. */ @@ -44,7 +48,7 @@ public AttachedDatabaseConfigurationListResult withValue(ListAuto-pausing properties of a Big Data pool powered by Apache Spark. + * + * Auto-pausing properties of a Big Data pool powered by Apache Spark. */ @Fluent public final class AutoPauseProperties { @@ -26,13 +26,16 @@ public final class AutoPauseProperties { @JsonProperty(value = "enabled") private Boolean enabled; - /** Creates an instance of AutoPauseProperties class. */ + /** + * Creates an instance of AutoPauseProperties class. + */ public AutoPauseProperties() { } /** - * Get the delayInMinutes property: Number of minutes of idle time before the Big Data pool is automatically paused. - * + * Get the delayInMinutes property: Number of minutes of idle time before the Big Data pool is automatically + * paused. + * * @return the delayInMinutes value. */ public Integer delayInMinutes() { @@ -40,8 +43,9 @@ public Integer delayInMinutes() { } /** - * Set the delayInMinutes property: Number of minutes of idle time before the Big Data pool is automatically paused. - * + * Set the delayInMinutes property: Number of minutes of idle time before the Big Data pool is automatically + * paused. + * * @param delayInMinutes the delayInMinutes value to set. * @return the AutoPauseProperties object itself. */ @@ -52,7 +56,7 @@ public AutoPauseProperties withDelayInMinutes(Integer delayInMinutes) { /** * Get the enabled property: Whether auto-pausing is enabled for the Big Data pool. - * + * * @return the enabled value. */ public Boolean enabled() { @@ -61,7 +65,7 @@ public Boolean enabled() { /** * Set the enabled property: Whether auto-pausing is enabled for the Big Data pool. - * + * * @param enabled the enabled value to set. * @return the AutoPauseProperties object itself. */ @@ -72,7 +76,7 @@ public AutoPauseProperties withEnabled(Boolean enabled) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AutoScaleProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AutoScaleProperties.java index 216afaa00f86..27928c15f42d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AutoScaleProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AutoScaleProperties.java @@ -9,8 +9,8 @@ /** * Spark pool auto-scaling properties - * - *

Auto-scaling properties of a Big Data pool powered by Apache Spark. + * + * Auto-scaling properties of a Big Data pool powered by Apache Spark. */ @Fluent public final class AutoScaleProperties { @@ -32,13 +32,15 @@ public final class AutoScaleProperties { @JsonProperty(value = "maxNodeCount") private Integer maxNodeCount; - /** Creates an instance of AutoScaleProperties class. */ + /** + * Creates an instance of AutoScaleProperties class. + */ public AutoScaleProperties() { } /** * Get the minNodeCount property: The minimum number of nodes the Big Data pool can support. - * + * * @return the minNodeCount value. */ public Integer minNodeCount() { @@ -47,7 +49,7 @@ public Integer minNodeCount() { /** * Set the minNodeCount property: The minimum number of nodes the Big Data pool can support. - * + * * @param minNodeCount the minNodeCount value to set. * @return the AutoScaleProperties object itself. */ @@ -58,7 +60,7 @@ public AutoScaleProperties withMinNodeCount(Integer minNodeCount) { /** * Get the enabled property: Whether automatic scaling is enabled for the Big Data pool. - * + * * @return the enabled value. */ public Boolean enabled() { @@ -67,7 +69,7 @@ public Boolean enabled() { /** * Set the enabled property: Whether automatic scaling is enabled for the Big Data pool. - * + * * @param enabled the enabled value to set. * @return the AutoScaleProperties object itself. */ @@ -78,7 +80,7 @@ public AutoScaleProperties withEnabled(Boolean enabled) { /** * Get the maxNodeCount property: The maximum number of nodes the Big Data pool can support. - * + * * @return the maxNodeCount value. */ public Integer maxNodeCount() { @@ -87,7 +89,7 @@ public Integer maxNodeCount() { /** * Set the maxNodeCount property: The maximum number of nodes the Big Data pool can support. - * + * * @param maxNodeCount the maxNodeCount value to set. * @return the AutoScaleProperties object itself. */ @@ -98,7 +100,7 @@ public AutoScaleProperties withMaxNodeCount(Integer maxNodeCount) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AvailableRpOperation.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AvailableRpOperation.java index e517ee996749..736476813809 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AvailableRpOperation.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AvailableRpOperation.java @@ -6,46 +6,48 @@ import com.azure.resourcemanager.synapse.fluent.models.AvailableRpOperationInner; -/** An immutable client-side representation of AvailableRpOperation. */ +/** + * An immutable client-side representation of AvailableRpOperation. + */ public interface AvailableRpOperation { /** * Gets the display property: Display properties of the operation. - * + * * @return the display value. */ AvailableRpOperationDisplayInfo display(); /** * Gets the isDataAction property: Whether this operation is a data action. - * + * * @return the isDataAction value. */ String isDataAction(); /** * Gets the name property: Operation name. - * + * * @return the name value. */ String name(); /** * Gets the origin property: Operation origin. - * + * * @return the origin value. */ String origin(); /** * Gets the serviceSpecification property: Operation service specification. - * + * * @return the serviceSpecification value. */ OperationMetaServiceSpecification serviceSpecification(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.AvailableRpOperationInner object. - * + * * @return the inner object. */ AvailableRpOperationInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AvailableRpOperationDisplayInfo.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AvailableRpOperationDisplayInfo.java index 530466f7ff57..28c112f43e37 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AvailableRpOperationDisplayInfo.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AvailableRpOperationDisplayInfo.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Description of an available operation. */ +/** + * Description of an available operation. + */ @Fluent public final class AvailableRpOperationDisplayInfo { /* @@ -34,13 +36,15 @@ public final class AvailableRpOperationDisplayInfo { @JsonProperty(value = "operation") private String operation; - /** Creates an instance of AvailableRpOperationDisplayInfo class. */ + /** + * Creates an instance of AvailableRpOperationDisplayInfo class. + */ public AvailableRpOperationDisplayInfo() { } /** * Get the description property: Operation description. - * + * * @return the description value. */ public String description() { @@ -49,7 +53,7 @@ public String description() { /** * Set the description property: Operation description. - * + * * @param description the description value to set. * @return the AvailableRpOperationDisplayInfo object itself. */ @@ -60,7 +64,7 @@ public AvailableRpOperationDisplayInfo withDescription(String description) { /** * Get the resource property: Resource type. - * + * * @return the resource value. */ public String resource() { @@ -69,7 +73,7 @@ public String resource() { /** * Set the resource property: Resource type. - * + * * @param resource the resource value to set. * @return the AvailableRpOperationDisplayInfo object itself. */ @@ -80,7 +84,7 @@ public AvailableRpOperationDisplayInfo withResource(String resource) { /** * Get the provider property: Resource provider name. - * + * * @return the provider value. */ public String provider() { @@ -89,7 +93,7 @@ public String provider() { /** * Set the provider property: Resource provider name. - * + * * @param provider the provider value to set. * @return the AvailableRpOperationDisplayInfo object itself. */ @@ -100,7 +104,7 @@ public AvailableRpOperationDisplayInfo withProvider(String provider) { /** * Get the operation property: Operation name. - * + * * @return the operation value. */ public String operation() { @@ -109,7 +113,7 @@ public String operation() { /** * Set the operation property: Operation name. - * + * * @param operation the operation value to set. * @return the AvailableRpOperationDisplayInfo object itself. */ @@ -120,7 +124,7 @@ public AvailableRpOperationDisplayInfo withOperation(String operation) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureADOnlyAuthentication.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureADOnlyAuthentication.java index b05b3f9a1e12..52b820ac5a51 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureADOnlyAuthentication.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureADOnlyAuthentication.java @@ -8,77 +8,90 @@ import com.azure.resourcemanager.synapse.fluent.models.AzureADOnlyAuthenticationInner; import java.time.OffsetDateTime; -/** An immutable client-side representation of AzureADOnlyAuthentication. */ +/** + * An immutable client-side representation of AzureADOnlyAuthentication. + */ public interface AzureADOnlyAuthentication { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the azureADOnlyAuthentication property: Azure Active Directory only Authentication enabled. - * + * * @return the azureADOnlyAuthentication value. */ boolean azureADOnlyAuthentication(); /** * Gets the state property: property configuration state. - * + * * @return the state value. */ StateValue state(); /** * Gets the creationDate property: property configuration date. - * + * * @return the creationDate value. */ OffsetDateTime creationDate(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.AzureADOnlyAuthenticationInner object. - * + * * @return the inner object. */ AzureADOnlyAuthenticationInner innerModel(); - /** The entirety of the AzureADOnlyAuthentication definition. */ + /** + * The entirety of the AzureADOnlyAuthentication definition. + */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { } - /** The AzureADOnlyAuthentication definition stages. */ + + /** + * The AzureADOnlyAuthentication definition stages. + */ interface DefinitionStages { - /** The first stage of the AzureADOnlyAuthentication definition. */ + /** + * The first stage of the AzureADOnlyAuthentication definition. + */ interface Blank extends WithParentResource { } - /** The stage of the AzureADOnlyAuthentication definition allowing to specify parent resource. */ + + /** + * The stage of the AzureADOnlyAuthentication definition allowing to specify parent resource. + */ interface WithParentResource { /** * Specifies resourceGroupName, workspaceName. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @return the next definition stage. */ WithCreate withExistingWorkspace(String resourceGroupName, String workspaceName); } + /** * The stage of the AzureADOnlyAuthentication definition which contains all the minimum required properties for * the resource to be created, but also allows for any other optional properties to be specified. @@ -86,40 +99,44 @@ interface WithParentResource { interface WithCreate extends DefinitionStages.WithAzureADOnlyAuthentication { /** * Executes the create request. - * + * * @return the created resource. */ AzureADOnlyAuthentication create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ AzureADOnlyAuthentication create(Context context); } - /** The stage of the AzureADOnlyAuthentication definition allowing to specify azureADOnlyAuthentication. */ + + /** + * The stage of the AzureADOnlyAuthentication definition allowing to specify azureADOnlyAuthentication. + */ interface WithAzureADOnlyAuthentication { /** * Specifies the azureADOnlyAuthentication property: Azure Active Directory only Authentication enabled.. - * + * * @param azureADOnlyAuthentication Azure Active Directory only Authentication enabled. * @return the next definition stage. */ WithCreate withAzureADOnlyAuthentication(boolean azureADOnlyAuthentication); } } + /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ AzureADOnlyAuthentication refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureADOnlyAuthenticationListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureADOnlyAuthenticationListResult.java index fe2e8aef3d6e..749343be3768 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureADOnlyAuthenticationListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureADOnlyAuthenticationListResult.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** A list of active directory only authentications. */ +/** + * A list of active directory only authentications. + */ @Immutable public final class AzureADOnlyAuthenticationListResult { /* @@ -24,13 +26,15 @@ public final class AzureADOnlyAuthenticationListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; - /** Creates an instance of AzureADOnlyAuthenticationListResult class. */ + /** + * Creates an instance of AzureADOnlyAuthenticationListResult class. + */ public AzureADOnlyAuthenticationListResult() { } /** * Get the value property: Array of results. - * + * * @return the value value. */ public List value() { @@ -39,7 +43,7 @@ public List value() { /** * Get the nextLink property: Link to retrieve next page of results. - * + * * @return the nextLink value. */ public String nextLink() { @@ -48,7 +52,7 @@ public String nextLink() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureADOnlyAuthenticationName.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureADOnlyAuthenticationName.java index 2219dc81c20b..b164aed10b75 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureADOnlyAuthenticationName.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureADOnlyAuthenticationName.java @@ -8,14 +8,18 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for AzureADOnlyAuthenticationName. */ +/** + * Defines values for AzureADOnlyAuthenticationName. + */ public final class AzureADOnlyAuthenticationName extends ExpandableStringEnum { - /** Static value default for AzureADOnlyAuthenticationName. */ + /** + * Static value default for AzureADOnlyAuthenticationName. + */ public static final AzureADOnlyAuthenticationName DEFAULT = fromString("default"); /** * Creates a new instance of AzureADOnlyAuthenticationName value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -24,7 +28,7 @@ public AzureADOnlyAuthenticationName() { /** * Creates or finds a AzureADOnlyAuthenticationName from its string representation. - * + * * @param name a name to look for. * @return the corresponding AzureADOnlyAuthenticationName. */ @@ -35,7 +39,7 @@ public static AzureADOnlyAuthenticationName fromString(String name) { /** * Gets known AzureADOnlyAuthenticationName values. - * + * * @return known AzureADOnlyAuthenticationName values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureADOnlyAuthentications.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureADOnlyAuthentications.java index b51ce9badd2e..c18fa9faa485 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureADOnlyAuthentications.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureADOnlyAuthentications.java @@ -8,13 +8,15 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of AzureADOnlyAuthentications. */ +/** + * Resource collection API of AzureADOnlyAuthentications. + */ public interface AzureADOnlyAuthentications { /** * Get Azure Active Directory only authentication property - * - *

Gets a Azure Active Directory only authentication property. - * + * + * Gets a Azure Active Directory only authentication property. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param azureADOnlyAuthenticationName name of the property. @@ -24,17 +26,14 @@ public interface AzureADOnlyAuthentications { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Azure Active Directory only authentication property along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, - String workspaceName, - AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, - Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + AzureADOnlyAuthenticationName azureADOnlyAuthenticationName, Context context); /** * Get Azure Active Directory only authentication property - * - *

Gets a Azure Active Directory only authentication property. - * + * + * Gets a Azure Active Directory only authentication property. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param azureADOnlyAuthenticationName name of the property. @@ -43,29 +42,29 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Azure Active Directory only authentication property. */ - AzureADOnlyAuthentication get( - String resourceGroupName, String workspaceName, AzureADOnlyAuthenticationName azureADOnlyAuthenticationName); + AzureADOnlyAuthentication get(String resourceGroupName, String workspaceName, + AzureADOnlyAuthenticationName azureADOnlyAuthenticationName); /** * Gets a list of Azure Active Directory only authentication property - * - *

Gets a list of Azure Active Directory only authentication property for a workspace. - * + * + * Gets a list of Azure Active Directory only authentication property for a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of Azure Active Directory only authentication property for a workspace as paginated response with - * {@link PagedIterable}. + * {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String workspaceName); /** * Gets a list of Azure Active Directory only authentication property - * - *

Gets a list of Azure Active Directory only authentication property for a workspace. - * + * + * Gets a list of Azure Active Directory only authentication property for a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -73,15 +72,15 @@ AzureADOnlyAuthentication get( * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of Azure Active Directory only authentication property for a workspace as paginated response with - * {@link PagedIterable}. + * {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String workspaceName, Context context); /** * Get Azure Active Directory only authentication property - * - *

Gets a Azure Active Directory only authentication property. - * + * + * Gets a Azure Active Directory only authentication property. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -92,9 +91,9 @@ AzureADOnlyAuthentication get( /** * Get Azure Active Directory only authentication property - * - *

Gets a Azure Active Directory only authentication property. - * + * + * Gets a Azure Active Directory only authentication property. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -106,7 +105,7 @@ AzureADOnlyAuthentication get( /** * Begins definition for a new AzureADOnlyAuthentication resource. - * + * * @param name resource name. * @return the first stage of the new AzureADOnlyAuthentication definition. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureCapacity.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureCapacity.java index 4cabc69c4d14..b6508082732b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureCapacity.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureCapacity.java @@ -8,7 +8,9 @@ import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonProperty; -/** Azure capacity definition. */ +/** + * Azure capacity definition. + */ @Fluent public final class AzureCapacity { /* @@ -35,13 +37,15 @@ public final class AzureCapacity { @JsonProperty(value = "default", required = true) private int defaultProperty; - /** Creates an instance of AzureCapacity class. */ + /** + * Creates an instance of AzureCapacity class. + */ public AzureCapacity() { } /** * Get the scaleType property: Scale type. - * + * * @return the scaleType value. */ public AzureScaleType scaleType() { @@ -50,7 +54,7 @@ public AzureScaleType scaleType() { /** * Set the scaleType property: Scale type. - * + * * @param scaleType the scaleType value to set. * @return the AzureCapacity object itself. */ @@ -61,7 +65,7 @@ public AzureCapacity withScaleType(AzureScaleType scaleType) { /** * Get the minimum property: Minimum allowed capacity. - * + * * @return the minimum value. */ public int minimum() { @@ -70,7 +74,7 @@ public int minimum() { /** * Set the minimum property: Minimum allowed capacity. - * + * * @param minimum the minimum value to set. * @return the AzureCapacity object itself. */ @@ -81,7 +85,7 @@ public AzureCapacity withMinimum(int minimum) { /** * Get the maximum property: Maximum allowed capacity. - * + * * @return the maximum value. */ public int maximum() { @@ -90,7 +94,7 @@ public int maximum() { /** * Set the maximum property: Maximum allowed capacity. - * + * * @param maximum the maximum value to set. * @return the AzureCapacity object itself. */ @@ -101,7 +105,7 @@ public AzureCapacity withMaximum(int maximum) { /** * Get the defaultProperty property: The default capacity that would be used. - * + * * @return the defaultProperty value. */ public int defaultProperty() { @@ -110,7 +114,7 @@ public int defaultProperty() { /** * Set the defaultProperty property: The default capacity that would be used. - * + * * @param defaultProperty the defaultProperty value to set. * @return the AzureCapacity object itself. */ @@ -121,14 +125,13 @@ public AzureCapacity withDefaultProperty(int defaultProperty) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (scaleType() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property scaleType in model AzureCapacity")); + throw LOGGER.logExceptionAsError( + new IllegalArgumentException("Missing required property scaleType in model AzureCapacity")); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureEntityResource.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureEntityResource.java index 413d98316e09..dc79c56cba9c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureEntityResource.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureEntityResource.java @@ -10,8 +10,8 @@ /** * Entity Resource - * - *

The resource model definition for an Azure Resource Manager resource with an etag. + * + * The resource model definition for an Azure Resource Manager resource with an etag. */ @Immutable public class AzureEntityResource extends ProxyResource { @@ -21,13 +21,15 @@ public class AzureEntityResource extends ProxyResource { @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) private String etag; - /** Creates an instance of AzureEntityResource class. */ + /** + * Creates an instance of AzureEntityResource class. + */ public AzureEntityResource() { } /** * Get the etag property: Resource Etag. - * + * * @return the etag value. */ public String etag() { @@ -36,7 +38,7 @@ public String etag() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureResourceSku.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureResourceSku.java index 3b9b289d0aed..5c41e1e5685a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureResourceSku.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureResourceSku.java @@ -6,32 +6,34 @@ import com.azure.resourcemanager.synapse.fluent.models.AzureResourceSkuInner; -/** An immutable client-side representation of AzureResourceSku. */ +/** + * An immutable client-side representation of AzureResourceSku. + */ public interface AzureResourceSku { /** * Gets the resourceType property: Resource Namespace and Type. - * + * * @return the resourceType value. */ String resourceType(); /** * Gets the sku property: The SKU details. - * + * * @return the sku value. */ AzureSku sku(); /** * Gets the capacity property: The number of instances of the cluster. - * + * * @return the capacity value. */ AzureCapacity capacity(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.AzureResourceSkuInner object. - * + * * @return the inner object. */ AzureResourceSkuInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureScaleType.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureScaleType.java index 07ced942076b..609730a02d78 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureScaleType.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureScaleType.java @@ -8,20 +8,28 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Scale type. */ +/** + * Scale type. + */ public final class AzureScaleType extends ExpandableStringEnum { - /** Static value automatic for AzureScaleType. */ + /** + * Static value automatic for AzureScaleType. + */ public static final AzureScaleType AUTOMATIC = fromString("automatic"); - /** Static value manual for AzureScaleType. */ + /** + * Static value manual for AzureScaleType. + */ public static final AzureScaleType MANUAL = fromString("manual"); - /** Static value none for AzureScaleType. */ + /** + * Static value none for AzureScaleType. + */ public static final AzureScaleType NONE = fromString("none"); /** * Creates a new instance of AzureScaleType value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -30,7 +38,7 @@ public AzureScaleType() { /** * Creates or finds a AzureScaleType from its string representation. - * + * * @param name a name to look for. * @return the corresponding AzureScaleType. */ @@ -41,7 +49,7 @@ public static AzureScaleType fromString(String name) { /** * Gets known AzureScaleType values. - * + * * @return known AzureScaleType values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureSku.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureSku.java index a20b56d4f505..ae146342d04b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureSku.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/AzureSku.java @@ -8,7 +8,9 @@ import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonProperty; -/** Azure SKU definition. */ +/** + * Azure SKU definition. + */ @Fluent public final class AzureSku { /* @@ -29,13 +31,15 @@ public final class AzureSku { @JsonProperty(value = "size", required = true) private SkuSize size; - /** Creates an instance of AzureSku class. */ + /** + * Creates an instance of AzureSku class. + */ public AzureSku() { } /** * Get the name property: SKU name. - * + * * @return the name value. */ public SkuName name() { @@ -44,7 +48,7 @@ public SkuName name() { /** * Set the name property: SKU name. - * + * * @param name the name value to set. * @return the AzureSku object itself. */ @@ -55,7 +59,7 @@ public AzureSku withName(SkuName name) { /** * Get the capacity property: The number of instances of the cluster. - * + * * @return the capacity value. */ public Integer capacity() { @@ -64,7 +68,7 @@ public Integer capacity() { /** * Set the capacity property: The number of instances of the cluster. - * + * * @param capacity the capacity value to set. * @return the AzureSku object itself. */ @@ -75,7 +79,7 @@ public AzureSku withCapacity(Integer capacity) { /** * Get the size property: SKU size. - * + * * @return the size value. */ public SkuSize size() { @@ -84,7 +88,7 @@ public SkuSize size() { /** * Set the size property: SKU size. - * + * * @param size the size value to set. * @return the AzureSku object itself. */ @@ -95,7 +99,7 @@ public AzureSku withSize(SkuSize size) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BigDataPoolPatchInfo.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BigDataPoolPatchInfo.java index d8b580d5a165..9f8f134e8729 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BigDataPoolPatchInfo.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BigDataPoolPatchInfo.java @@ -11,8 +11,8 @@ /** * Patch for a Big Data pool - * - *

Properties patch for a Big Data pool. + * + * Properties patch for a Big Data pool. */ @Fluent public final class BigDataPoolPatchInfo { @@ -23,13 +23,15 @@ public final class BigDataPoolPatchInfo { @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map tags; - /** Creates an instance of BigDataPoolPatchInfo class. */ + /** + * Creates an instance of BigDataPoolPatchInfo class. + */ public BigDataPoolPatchInfo() { } /** * Get the tags property: Updated tags for the Big Data pool. - * + * * @return the tags value. */ public Map tags() { @@ -38,7 +40,7 @@ public Map tags() { /** * Set the tags property: Updated tags for the Big Data pool. - * + * * @param tags the tags value to set. * @return the BigDataPoolPatchInfo object itself. */ @@ -49,7 +51,7 @@ public BigDataPoolPatchInfo withTags(Map tags) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BigDataPoolResourceInfo.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BigDataPoolResourceInfo.java index 083f8477e90a..2b85163c520a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BigDataPoolResourceInfo.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BigDataPoolResourceInfo.java @@ -12,231 +12,240 @@ import java.util.List; import java.util.Map; -/** An immutable client-side representation of BigDataPoolResourceInfo. */ +/** + * An immutable client-side representation of BigDataPoolResourceInfo. + */ public interface BigDataPoolResourceInfo { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the location property: The geo-location where the resource lives. - * + * * @return the location value. */ String location(); /** * Gets the tags property: Resource tags. - * + * * @return the tags value. */ Map tags(); /** * Gets the provisioningState property: The state of the Big Data pool. - * + * * @return the provisioningState value. */ String provisioningState(); /** * Gets the autoScale property: Spark pool auto-scaling properties - * - *

Auto-scaling properties. - * + * + * Auto-scaling properties. + * * @return the autoScale value. */ AutoScaleProperties autoScale(); /** * Gets the creationDate property: The time when the Big Data pool was created. - * + * * @return the creationDate value. */ OffsetDateTime creationDate(); /** * Gets the autoPause property: Spark pool auto-pausing properties - * - *

Auto-pausing properties. - * + * + * Auto-pausing properties. + * * @return the autoPause value. */ AutoPauseProperties autoPause(); /** * Gets the isComputeIsolationEnabled property: Whether compute isolation is required or not. - * + * * @return the isComputeIsolationEnabled value. */ Boolean isComputeIsolationEnabled(); /** * Gets the isAutotuneEnabled property: Enable Autotune - * - *

Whether autotune is required or not. - * + * + * Whether autotune is required or not. + * * @return the isAutotuneEnabled value. */ Boolean isAutotuneEnabled(); /** * Gets the sessionLevelPackagesEnabled property: Whether session level packages enabled. - * + * * @return the sessionLevelPackagesEnabled value. */ Boolean sessionLevelPackagesEnabled(); /** * Gets the cacheSize property: The cache size. - * + * * @return the cacheSize value. */ Integer cacheSize(); /** * Gets the dynamicExecutorAllocation property: Dynamic Executor Allocation. - * + * * @return the dynamicExecutorAllocation value. */ DynamicExecutorAllocation dynamicExecutorAllocation(); /** * Gets the sparkEventsFolder property: The Spark events folder. - * + * * @return the sparkEventsFolder value. */ String sparkEventsFolder(); /** * Gets the nodeCount property: The number of nodes in the Big Data pool. - * + * * @return the nodeCount value. */ Integer nodeCount(); /** * Gets the libraryRequirements property: Spark pool library version requirements - * - *

Library version requirements. - * + * + * Library version requirements. + * * @return the libraryRequirements value. */ LibraryRequirements libraryRequirements(); /** * Gets the customLibraries property: List of custom libraries/packages associated with the spark pool. - * + * * @return the customLibraries value. */ List customLibraries(); /** * Gets the sparkConfigProperties property: Spark pool Config Properties - * - *

Spark configuration file to specify additional properties. - * + * + * Spark configuration file to specify additional properties. + * * @return the sparkConfigProperties value. */ SparkConfigProperties sparkConfigProperties(); /** * Gets the sparkVersion property: The Apache Spark version. - * + * * @return the sparkVersion value. */ String sparkVersion(); /** * Gets the defaultSparkLogFolder property: The default folder where Spark logs will be written. - * + * * @return the defaultSparkLogFolder value. */ String defaultSparkLogFolder(); /** * Gets the nodeSize property: The level of compute power that each node in the Big Data pool has. - * + * * @return the nodeSize value. */ NodeSize nodeSize(); /** * Gets the nodeSizeFamily property: The kind of nodes that the Big Data pool provides. - * + * * @return the nodeSizeFamily value. */ NodeSizeFamily nodeSizeFamily(); /** * Gets the lastSucceededTimestamp property: The time when the Big Data pool was updated successfully. - * + * * @return the lastSucceededTimestamp value. */ OffsetDateTime lastSucceededTimestamp(); /** * Gets the region of the resource. - * + * * @return the region of the resource. */ Region region(); /** * Gets the name of the resource region. - * + * * @return the name of the resource region. */ String regionName(); /** * Gets the name of the resource group. - * + * * @return the name of the resource group. */ String resourceGroupName(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.BigDataPoolResourceInfoInner object. - * + * * @return the inner object. */ BigDataPoolResourceInfoInner innerModel(); - /** The entirety of the BigDataPoolResourceInfo definition. */ - interface Definition - extends DefinitionStages.Blank, - DefinitionStages.WithLocation, - DefinitionStages.WithParentResource, - DefinitionStages.WithCreate { + /** + * The entirety of the BigDataPoolResourceInfo definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, + DefinitionStages.WithParentResource, DefinitionStages.WithCreate { } - /** The BigDataPoolResourceInfo definition stages. */ + + /** + * The BigDataPoolResourceInfo definition stages. + */ interface DefinitionStages { - /** The first stage of the BigDataPoolResourceInfo definition. */ + /** + * The first stage of the BigDataPoolResourceInfo definition. + */ interface Blank extends WithLocation { } - /** The stage of the BigDataPoolResourceInfo definition allowing to specify location. */ + + /** + * The stage of the BigDataPoolResourceInfo definition allowing to specify location. + */ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ @@ -244,305 +253,380 @@ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ WithParentResource withRegion(String location); } - /** The stage of the BigDataPoolResourceInfo definition allowing to specify parent resource. */ + + /** + * The stage of the BigDataPoolResourceInfo definition allowing to specify parent resource. + */ interface WithParentResource { /** * Specifies resourceGroupName, workspaceName. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @return the next definition stage. */ WithCreate withExistingWorkspace(String resourceGroupName, String workspaceName); } + /** * The stage of the BigDataPoolResourceInfo definition which contains all the minimum required properties for * the resource to be created, but also allows for any other optional properties to be specified. */ - interface WithCreate - extends DefinitionStages.WithTags, - DefinitionStages.WithProvisioningState, - DefinitionStages.WithAutoScale, - DefinitionStages.WithAutoPause, - DefinitionStages.WithIsComputeIsolationEnabled, - DefinitionStages.WithIsAutotuneEnabled, - DefinitionStages.WithSessionLevelPackagesEnabled, - DefinitionStages.WithDynamicExecutorAllocation, - DefinitionStages.WithSparkEventsFolder, - DefinitionStages.WithNodeCount, - DefinitionStages.WithLibraryRequirements, - DefinitionStages.WithCustomLibraries, - DefinitionStages.WithSparkConfigProperties, - DefinitionStages.WithSparkVersion, - DefinitionStages.WithDefaultSparkLogFolder, - DefinitionStages.WithNodeSize, - DefinitionStages.WithNodeSizeFamily, - DefinitionStages.WithForce { + interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithProvisioningState, + DefinitionStages.WithAutoScale, DefinitionStages.WithAutoPause, + DefinitionStages.WithIsComputeIsolationEnabled, DefinitionStages.WithIsAutotuneEnabled, + DefinitionStages.WithSessionLevelPackagesEnabled, DefinitionStages.WithCacheSize, + DefinitionStages.WithDynamicExecutorAllocation, DefinitionStages.WithSparkEventsFolder, + DefinitionStages.WithNodeCount, DefinitionStages.WithLibraryRequirements, + DefinitionStages.WithCustomLibraries, DefinitionStages.WithSparkConfigProperties, + DefinitionStages.WithSparkVersion, DefinitionStages.WithDefaultSparkLogFolder, + DefinitionStages.WithNodeSize, DefinitionStages.WithNodeSizeFamily, DefinitionStages.WithForce { /** * Executes the create request. - * + * * @return the created resource. */ BigDataPoolResourceInfo create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ BigDataPoolResourceInfo create(Context context); } - /** The stage of the BigDataPoolResourceInfo definition allowing to specify tags. */ + + /** + * The stage of the BigDataPoolResourceInfo definition allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: Resource tags.. - * + * * @param tags Resource tags. * @return the next definition stage. */ WithCreate withTags(Map tags); } - /** The stage of the BigDataPoolResourceInfo definition allowing to specify provisioningState. */ + + /** + * The stage of the BigDataPoolResourceInfo definition allowing to specify provisioningState. + */ interface WithProvisioningState { /** * Specifies the provisioningState property: The state of the Big Data pool.. - * + * * @param provisioningState The state of the Big Data pool. * @return the next definition stage. */ WithCreate withProvisioningState(String provisioningState); } - /** The stage of the BigDataPoolResourceInfo definition allowing to specify autoScale. */ + + /** + * The stage of the BigDataPoolResourceInfo definition allowing to specify autoScale. + */ interface WithAutoScale { /** * Specifies the autoScale property: Spark pool auto-scaling properties - * - *

Auto-scaling properties. - * + * + * Auto-scaling properties. + * * @param autoScale Spark pool auto-scaling properties - *

Auto-scaling properties. + * + * Auto-scaling properties. * @return the next definition stage. */ WithCreate withAutoScale(AutoScaleProperties autoScale); } - /** The stage of the BigDataPoolResourceInfo definition allowing to specify autoPause. */ + + /** + * The stage of the BigDataPoolResourceInfo definition allowing to specify autoPause. + */ interface WithAutoPause { /** * Specifies the autoPause property: Spark pool auto-pausing properties - * - *

Auto-pausing properties. - * + * + * Auto-pausing properties. + * * @param autoPause Spark pool auto-pausing properties - *

Auto-pausing properties. + * + * Auto-pausing properties. * @return the next definition stage. */ WithCreate withAutoPause(AutoPauseProperties autoPause); } - /** The stage of the BigDataPoolResourceInfo definition allowing to specify isComputeIsolationEnabled. */ + + /** + * The stage of the BigDataPoolResourceInfo definition allowing to specify isComputeIsolationEnabled. + */ interface WithIsComputeIsolationEnabled { /** * Specifies the isComputeIsolationEnabled property: Whether compute isolation is required or not.. - * + * * @param isComputeIsolationEnabled Whether compute isolation is required or not. * @return the next definition stage. */ WithCreate withIsComputeIsolationEnabled(Boolean isComputeIsolationEnabled); } - /** The stage of the BigDataPoolResourceInfo definition allowing to specify isAutotuneEnabled. */ + + /** + * The stage of the BigDataPoolResourceInfo definition allowing to specify isAutotuneEnabled. + */ interface WithIsAutotuneEnabled { /** * Specifies the isAutotuneEnabled property: Enable Autotune - * - *

Whether autotune is required or not.. - * + * + * Whether autotune is required or not.. + * * @param isAutotuneEnabled Enable Autotune - *

Whether autotune is required or not. + * + * Whether autotune is required or not. * @return the next definition stage. */ WithCreate withIsAutotuneEnabled(Boolean isAutotuneEnabled); } - /** The stage of the BigDataPoolResourceInfo definition allowing to specify sessionLevelPackagesEnabled. */ + + /** + * The stage of the BigDataPoolResourceInfo definition allowing to specify sessionLevelPackagesEnabled. + */ interface WithSessionLevelPackagesEnabled { /** * Specifies the sessionLevelPackagesEnabled property: Whether session level packages enabled.. - * + * * @param sessionLevelPackagesEnabled Whether session level packages enabled. * @return the next definition stage. */ WithCreate withSessionLevelPackagesEnabled(Boolean sessionLevelPackagesEnabled); } - /** The stage of the BigDataPoolResourceInfo definition allowing to specify dynamicExecutorAllocation. */ + + /** + * The stage of the BigDataPoolResourceInfo definition allowing to specify cacheSize. + */ + interface WithCacheSize { + /** + * Specifies the cacheSize property: The cache size. + * + * @param cacheSize The cache size. + * @return the next definition stage. + */ + WithCreate withCacheSize(Integer cacheSize); + } + + /** + * The stage of the BigDataPoolResourceInfo definition allowing to specify dynamicExecutorAllocation. + */ interface WithDynamicExecutorAllocation { /** * Specifies the dynamicExecutorAllocation property: Dynamic Executor Allocation. - * + * * @param dynamicExecutorAllocation Dynamic Executor Allocation. * @return the next definition stage. */ WithCreate withDynamicExecutorAllocation(DynamicExecutorAllocation dynamicExecutorAllocation); } - /** The stage of the BigDataPoolResourceInfo definition allowing to specify sparkEventsFolder. */ + + /** + * The stage of the BigDataPoolResourceInfo definition allowing to specify sparkEventsFolder. + */ interface WithSparkEventsFolder { /** * Specifies the sparkEventsFolder property: The Spark events folder. - * + * * @param sparkEventsFolder The Spark events folder. * @return the next definition stage. */ WithCreate withSparkEventsFolder(String sparkEventsFolder); } - /** The stage of the BigDataPoolResourceInfo definition allowing to specify nodeCount. */ + + /** + * The stage of the BigDataPoolResourceInfo definition allowing to specify nodeCount. + */ interface WithNodeCount { /** * Specifies the nodeCount property: The number of nodes in the Big Data pool.. - * + * * @param nodeCount The number of nodes in the Big Data pool. * @return the next definition stage. */ WithCreate withNodeCount(Integer nodeCount); } - /** The stage of the BigDataPoolResourceInfo definition allowing to specify libraryRequirements. */ + + /** + * The stage of the BigDataPoolResourceInfo definition allowing to specify libraryRequirements. + */ interface WithLibraryRequirements { /** * Specifies the libraryRequirements property: Spark pool library version requirements - * - *

Library version requirements. - * + * + * Library version requirements. + * * @param libraryRequirements Spark pool library version requirements - *

Library version requirements. + * + * Library version requirements. * @return the next definition stage. */ WithCreate withLibraryRequirements(LibraryRequirements libraryRequirements); } - /** The stage of the BigDataPoolResourceInfo definition allowing to specify customLibraries. */ + + /** + * The stage of the BigDataPoolResourceInfo definition allowing to specify customLibraries. + */ interface WithCustomLibraries { /** * Specifies the customLibraries property: List of custom libraries/packages associated with the spark * pool.. - * + * * @param customLibraries List of custom libraries/packages associated with the spark pool. * @return the next definition stage. */ WithCreate withCustomLibraries(List customLibraries); } - /** The stage of the BigDataPoolResourceInfo definition allowing to specify sparkConfigProperties. */ + + /** + * The stage of the BigDataPoolResourceInfo definition allowing to specify sparkConfigProperties. + */ interface WithSparkConfigProperties { /** * Specifies the sparkConfigProperties property: Spark pool Config Properties - * - *

Spark configuration file to specify additional properties. - * + * + * Spark configuration file to specify additional properties. + * * @param sparkConfigProperties Spark pool Config Properties - *

Spark configuration file to specify additional properties. + * + * Spark configuration file to specify additional properties. * @return the next definition stage. */ WithCreate withSparkConfigProperties(SparkConfigProperties sparkConfigProperties); } - /** The stage of the BigDataPoolResourceInfo definition allowing to specify sparkVersion. */ + + /** + * The stage of the BigDataPoolResourceInfo definition allowing to specify sparkVersion. + */ interface WithSparkVersion { /** * Specifies the sparkVersion property: The Apache Spark version.. - * + * * @param sparkVersion The Apache Spark version. * @return the next definition stage. */ WithCreate withSparkVersion(String sparkVersion); } - /** The stage of the BigDataPoolResourceInfo definition allowing to specify defaultSparkLogFolder. */ + + /** + * The stage of the BigDataPoolResourceInfo definition allowing to specify defaultSparkLogFolder. + */ interface WithDefaultSparkLogFolder { /** * Specifies the defaultSparkLogFolder property: The default folder where Spark logs will be written.. - * + * * @param defaultSparkLogFolder The default folder where Spark logs will be written. * @return the next definition stage. */ WithCreate withDefaultSparkLogFolder(String defaultSparkLogFolder); } - /** The stage of the BigDataPoolResourceInfo definition allowing to specify nodeSize. */ + + /** + * The stage of the BigDataPoolResourceInfo definition allowing to specify nodeSize. + */ interface WithNodeSize { /** * Specifies the nodeSize property: The level of compute power that each node in the Big Data pool has.. - * + * * @param nodeSize The level of compute power that each node in the Big Data pool has. * @return the next definition stage. */ WithCreate withNodeSize(NodeSize nodeSize); } - /** The stage of the BigDataPoolResourceInfo definition allowing to specify nodeSizeFamily. */ + + /** + * The stage of the BigDataPoolResourceInfo definition allowing to specify nodeSizeFamily. + */ interface WithNodeSizeFamily { /** * Specifies the nodeSizeFamily property: The kind of nodes that the Big Data pool provides.. - * + * * @param nodeSizeFamily The kind of nodes that the Big Data pool provides. * @return the next definition stage. */ WithCreate withNodeSizeFamily(NodeSizeFamily nodeSizeFamily); } - /** The stage of the BigDataPoolResourceInfo definition allowing to specify force. */ + + /** + * The stage of the BigDataPoolResourceInfo definition allowing to specify force. + */ interface WithForce { /** * Specifies the force property: Whether to stop any running jobs in the Big Data pool. - * + * * @param force Whether to stop any running jobs in the Big Data pool. * @return the next definition stage. */ WithCreate withForce(Boolean force); } } + /** * Begins update for the BigDataPoolResourceInfo resource. - * + * * @return the stage of resource update. */ BigDataPoolResourceInfo.Update update(); - /** The template for BigDataPoolResourceInfo update. */ + /** + * The template for BigDataPoolResourceInfo update. + */ interface Update extends UpdateStages.WithTags { /** * Executes the update request. - * + * * @return the updated resource. */ BigDataPoolResourceInfo apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ BigDataPoolResourceInfo apply(Context context); } - /** The BigDataPoolResourceInfo update stages. */ + + /** + * The BigDataPoolResourceInfo update stages. + */ interface UpdateStages { - /** The stage of the BigDataPoolResourceInfo update allowing to specify tags. */ + /** + * The stage of the BigDataPoolResourceInfo update allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: Updated tags for the Big Data pool. - * + * * @param tags Updated tags for the Big Data pool. * @return the next definition stage. */ Update withTags(Map tags); } } + /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ BigDataPoolResourceInfo refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BigDataPoolResourceInfoListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BigDataPoolResourceInfoListResult.java index f25891b4d9bd..32c638123526 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BigDataPoolResourceInfoListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BigDataPoolResourceInfoListResult.java @@ -11,8 +11,8 @@ /** * Collection of Big Data pools - * - *

Collection of Big Data pool information. + * + * Collection of Big Data pool information. */ @Fluent public final class BigDataPoolResourceInfoListResult { @@ -28,13 +28,15 @@ public final class BigDataPoolResourceInfoListResult { @JsonProperty(value = "value") private List value; - /** Creates an instance of BigDataPoolResourceInfoListResult class. */ + /** + * Creates an instance of BigDataPoolResourceInfoListResult class. + */ public BigDataPoolResourceInfoListResult() { } /** * Get the nextLink property: Link to the next page of results. - * + * * @return the nextLink value. */ public String nextLink() { @@ -43,7 +45,7 @@ public String nextLink() { /** * Set the nextLink property: Link to the next page of results. - * + * * @param nextLink the nextLink value to set. * @return the BigDataPoolResourceInfoListResult object itself. */ @@ -54,7 +56,7 @@ public BigDataPoolResourceInfoListResult withNextLink(String nextLink) { /** * Get the value property: List of Big Data pools. - * + * * @return the value value. */ public List value() { @@ -63,7 +65,7 @@ public List value() { /** * Set the value property: List of Big Data pools. - * + * * @param value the value value to set. * @return the BigDataPoolResourceInfoListResult object itself. */ @@ -74,7 +76,7 @@ public BigDataPoolResourceInfoListResult withValue(ListGet a Big Data pool. - * + * + * Get a Big Data pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. @@ -24,14 +26,14 @@ public interface BigDataPools { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Big Data pool along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, String workspaceName, String bigDataPoolName, Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + String bigDataPoolName, Context context); /** * Get Big Data pool - * - *

Get a Big Data pool. - * + * + * Get a Big Data pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. @@ -44,9 +46,9 @@ Response getWithResponse( /** * Delete a Big Data pool. - * - *

Delete a Big Data pool from the workspace. - * + * + * Delete a Big Data pool from the workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. @@ -59,9 +61,9 @@ Response getWithResponse( /** * Delete a Big Data pool. - * - *

Delete a Big Data pool from the workspace. - * + * + * Delete a Big Data pool from the workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name. @@ -71,14 +73,14 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return big Data pool. */ - BigDataPoolResourceInfo delete( - String resourceGroupName, String workspaceName, String bigDataPoolName, Context context); + BigDataPoolResourceInfo delete(String resourceGroupName, String workspaceName, String bigDataPoolName, + Context context); /** * List the Big Data pools in a workspace. - * - *

List Big Data pools in a workspace. - * + * + * List Big Data pools in a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -90,9 +92,9 @@ BigDataPoolResourceInfo delete( /** * List the Big Data pools in a workspace. - * - *

List Big Data pools in a workspace. - * + * + * List Big Data pools in a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -101,14 +103,14 @@ BigDataPoolResourceInfo delete( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return collection of Big Data pools as paginated response with {@link PagedIterable}. */ - PagedIterable listByWorkspace( - String resourceGroupName, String workspaceName, Context context); + PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, + Context context); /** * Get Big Data pool - * - *

Get a Big Data pool. - * + * + * Get a Big Data pool. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -119,9 +121,9 @@ PagedIterable listByWorkspace( /** * Get Big Data pool - * - *

Get a Big Data pool. - * + * + * Get a Big Data pool. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -133,9 +135,9 @@ PagedIterable listByWorkspace( /** * Delete a Big Data pool. - * - *

Delete a Big Data pool from the workspace. - * + * + * Delete a Big Data pool from the workspace. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -146,9 +148,9 @@ PagedIterable listByWorkspace( /** * Delete a Big Data pool. - * - *

Delete a Big Data pool from the workspace. - * + * + * Delete a Big Data pool from the workspace. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -160,7 +162,7 @@ PagedIterable listByWorkspace( /** * Begins definition for a new BigDataPoolResourceInfo resource. - * + * * @param name resource name. * @return the first stage of the new BigDataPoolResourceInfo definition. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BlobAuditingPolicyName.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BlobAuditingPolicyName.java index d597c14d6b82..6b344adf686d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BlobAuditingPolicyName.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BlobAuditingPolicyName.java @@ -8,14 +8,18 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for BlobAuditingPolicyName. */ +/** + * Defines values for BlobAuditingPolicyName. + */ public final class BlobAuditingPolicyName extends ExpandableStringEnum { - /** Static value default for BlobAuditingPolicyName. */ + /** + * Static value default for BlobAuditingPolicyName. + */ public static final BlobAuditingPolicyName DEFAULT = fromString("default"); /** * Creates a new instance of BlobAuditingPolicyName value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -24,7 +28,7 @@ public BlobAuditingPolicyName() { /** * Creates or finds a BlobAuditingPolicyName from its string representation. - * + * * @param name a name to look for. * @return the corresponding BlobAuditingPolicyName. */ @@ -35,7 +39,7 @@ public static BlobAuditingPolicyName fromString(String name) { /** * Gets known BlobAuditingPolicyName values. - * + * * @return known BlobAuditingPolicyName values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BlobAuditingPolicyState.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BlobAuditingPolicyState.java index 690aeed17c79..a9359ad7d68c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BlobAuditingPolicyState.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BlobAuditingPolicyState.java @@ -11,13 +11,19 @@ * Specifies the state of the policy. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. */ public enum BlobAuditingPolicyState { - /** Enum value Enabled. */ + /** + * Enum value Enabled. + */ ENABLED("Enabled"), - /** Enum value Disabled. */ + /** + * Enum value Disabled. + */ DISABLED("Disabled"); - /** The actual serialized value for a BlobAuditingPolicyState instance. */ + /** + * The actual serialized value for a BlobAuditingPolicyState instance. + */ private final String value; BlobAuditingPolicyState(String value) { @@ -26,7 +32,7 @@ public enum BlobAuditingPolicyState { /** * Parses a serialized value to a BlobAuditingPolicyState instance. - * + * * @param value the serialized value to parse. * @return the parsed BlobAuditingPolicyState object, or null if unable to parse. */ @@ -44,7 +50,9 @@ public static BlobAuditingPolicyState fromString(String value) { return null; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @JsonValue @Override public String toString() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BlobStorageEventType.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BlobStorageEventType.java index b31632b2105d..43b904e4b0e0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BlobStorageEventType.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/BlobStorageEventType.java @@ -8,19 +8,25 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The name of blob storage event type to process. */ +/** + * The name of blob storage event type to process. + */ public final class BlobStorageEventType extends ExpandableStringEnum { - /** Static value Microsoft.Storage.BlobCreated for BlobStorageEventType. */ - public static final BlobStorageEventType MICROSOFT_STORAGE_BLOB_CREATED = - fromString("Microsoft.Storage.BlobCreated"); + /** + * Static value Microsoft.Storage.BlobCreated for BlobStorageEventType. + */ + public static final BlobStorageEventType MICROSOFT_STORAGE_BLOB_CREATED + = fromString("Microsoft.Storage.BlobCreated"); - /** Static value Microsoft.Storage.BlobRenamed for BlobStorageEventType. */ - public static final BlobStorageEventType MICROSOFT_STORAGE_BLOB_RENAMED = - fromString("Microsoft.Storage.BlobRenamed"); + /** + * Static value Microsoft.Storage.BlobRenamed for BlobStorageEventType. + */ + public static final BlobStorageEventType MICROSOFT_STORAGE_BLOB_RENAMED + = fromString("Microsoft.Storage.BlobRenamed"); /** * Creates a new instance of BlobStorageEventType value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -29,7 +35,7 @@ public BlobStorageEventType() { /** * Creates or finds a BlobStorageEventType from its string representation. - * + * * @param name a name to look for. * @return the corresponding BlobStorageEventType. */ @@ -40,7 +46,7 @@ public static BlobStorageEventType fromString(String name) { /** * Gets known BlobStorageEventType values. - * + * * @return known BlobStorageEventType values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CheckNameAvailabilityRequest.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CheckNameAvailabilityRequest.java index 451217c8c745..eab2a4795c63 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CheckNameAvailabilityRequest.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CheckNameAvailabilityRequest.java @@ -9,8 +9,8 @@ /** * Check name availability request - * - *

A request about whether a workspace name is available. + * + * A request about whether a workspace name is available. */ @Fluent public final class CheckNameAvailabilityRequest { @@ -26,13 +26,15 @@ public final class CheckNameAvailabilityRequest { @JsonProperty(value = "type") private String type; - /** Creates an instance of CheckNameAvailabilityRequest class. */ + /** + * Creates an instance of CheckNameAvailabilityRequest class. + */ public CheckNameAvailabilityRequest() { } /** * Get the name property: Workspace name. - * + * * @return the name value. */ public String name() { @@ -41,7 +43,7 @@ public String name() { /** * Set the name property: Workspace name. - * + * * @param name the name value to set. * @return the CheckNameAvailabilityRequest object itself. */ @@ -52,7 +54,7 @@ public CheckNameAvailabilityRequest withName(String name) { /** * Get the type property: Type: workspace. - * + * * @return the type value. */ public String type() { @@ -61,7 +63,7 @@ public String type() { /** * Set the type property: Type: workspace. - * + * * @param type the type value to set. * @return the CheckNameAvailabilityRequest object itself. */ @@ -72,7 +74,7 @@ public CheckNameAvailabilityRequest withType(String type) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CheckNameAvailabilityResponse.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CheckNameAvailabilityResponse.java index d8e8f3a9579c..e9088286d30c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CheckNameAvailabilityResponse.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CheckNameAvailabilityResponse.java @@ -6,39 +6,41 @@ import com.azure.resourcemanager.synapse.fluent.models.CheckNameAvailabilityResponseInner; -/** An immutable client-side representation of CheckNameAvailabilityResponse. */ +/** + * An immutable client-side representation of CheckNameAvailabilityResponse. + */ public interface CheckNameAvailabilityResponse { /** * Gets the message property: Validation message. - * + * * @return the message value. */ String message(); /** * Gets the available property: Whether the workspace name is available. - * + * * @return the available value. */ Boolean available(); /** * Gets the reason property: Reason the workspace name is or is not available. - * + * * @return the reason value. */ String reason(); /** * Gets the name property: Workspace name. - * + * * @return the name value. */ String name(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.CheckNameAvailabilityResponseInner object. - * + * * @return the inner object. */ CheckNameAvailabilityResponseInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CheckNameResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CheckNameResult.java index 28cccea7dbe4..30f54c6b1d80 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CheckNameResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CheckNameResult.java @@ -6,18 +6,20 @@ import com.azure.resourcemanager.synapse.fluent.models.CheckNameResultInner; -/** An immutable client-side representation of CheckNameResult. */ +/** + * An immutable client-side representation of CheckNameResult. + */ public interface CheckNameResult { /** * Gets the nameAvailable property: Specifies a Boolean value that indicates if the name is available. - * + * * @return the nameAvailable value. */ Boolean nameAvailable(); /** * Gets the name property: The name that was checked. - * + * * @return the name value. */ String name(); @@ -25,21 +27,21 @@ public interface CheckNameResult { /** * Gets the message property: Message indicating an unavailable name due to a conflict, or a description of the * naming rules that are violated. - * + * * @return the message value. */ String message(); /** * Gets the reason property: Message providing the reason why the given name is invalid. - * + * * @return the reason value. */ Reason reason(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.CheckNameResultInner object. - * + * * @return the inner object. */ CheckNameResultInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ClusterPrincipalAssignment.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ClusterPrincipalAssignment.java index 5a700d471805..d0c84949812a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ClusterPrincipalAssignment.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ClusterPrincipalAssignment.java @@ -8,32 +8,34 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.synapse.fluent.models.ClusterPrincipalAssignmentInner; -/** An immutable client-side representation of ClusterPrincipalAssignment. */ +/** + * An immutable client-side representation of ClusterPrincipalAssignment. + */ public interface ClusterPrincipalAssignment { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ SystemData systemData(); @@ -41,88 +43,98 @@ public interface ClusterPrincipalAssignment { /** * Gets the principalId property: The principal ID assigned to the cluster principal. It can be a user email, * application ID, or security group name. - * + * * @return the principalId value. */ String principalId(); /** * Gets the role property: Cluster principal role. - * + * * @return the role value. */ ClusterPrincipalRole role(); /** * Gets the tenantId property: The tenant id of the principal. - * + * * @return the tenantId value. */ String tenantId(); /** * Gets the principalType property: Principal type. - * + * * @return the principalType value. */ PrincipalType principalType(); /** * Gets the tenantName property: The tenant name of the principal. - * + * * @return the tenantName value. */ String tenantName(); /** * Gets the principalName property: The principal name. - * + * * @return the principalName value. */ String principalName(); /** * Gets the provisioningState property: The provisioned state of the resource. - * + * * @return the provisioningState value. */ ResourceProvisioningState provisioningState(); /** * Gets the aadObjectId property: The service principal object id in AAD (Azure active directory). - * + * * @return the aadObjectId value. */ String aadObjectId(); /** * Gets the name of the resource group. - * + * * @return the name of the resource group. */ String resourceGroupName(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.ClusterPrincipalAssignmentInner object. - * + * * @return the inner object. */ ClusterPrincipalAssignmentInner innerModel(); - /** The entirety of the ClusterPrincipalAssignment definition. */ + /** + * The entirety of the ClusterPrincipalAssignment definition. + */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { } - /** The ClusterPrincipalAssignment definition stages. */ + + /** + * The ClusterPrincipalAssignment definition stages. + */ interface DefinitionStages { - /** The first stage of the ClusterPrincipalAssignment definition. */ + /** + * The first stage of the ClusterPrincipalAssignment definition. + */ interface Blank extends WithParentResource { } - /** The stage of the ClusterPrincipalAssignment definition allowing to specify parent resource. */ + + /** + * The stage of the ClusterPrincipalAssignment definition allowing to specify parent resource. + */ interface WithParentResource { /** * Specifies workspaceName, kustoPoolName, resourceGroupName. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -130,156 +142,181 @@ interface WithParentResource { */ WithCreate withExistingKustoPool(String workspaceName, String kustoPoolName, String resourceGroupName); } + /** * The stage of the ClusterPrincipalAssignment definition which contains all the minimum required properties for * the resource to be created, but also allows for any other optional properties to be specified. */ - interface WithCreate - extends DefinitionStages.WithPrincipalId, - DefinitionStages.WithRole, - DefinitionStages.WithTenantId, - DefinitionStages.WithPrincipalType { + interface WithCreate extends DefinitionStages.WithPrincipalId, DefinitionStages.WithRole, + DefinitionStages.WithTenantId, DefinitionStages.WithPrincipalType { /** * Executes the create request. - * + * * @return the created resource. */ ClusterPrincipalAssignment create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ ClusterPrincipalAssignment create(Context context); } - /** The stage of the ClusterPrincipalAssignment definition allowing to specify principalId. */ + + /** + * The stage of the ClusterPrincipalAssignment definition allowing to specify principalId. + */ interface WithPrincipalId { /** * Specifies the principalId property: The principal ID assigned to the cluster principal. It can be a user * email, application ID, or security group name.. - * + * * @param principalId The principal ID assigned to the cluster principal. It can be a user email, - * application ID, or security group name. + * application ID, or security group name. * @return the next definition stage. */ WithCreate withPrincipalId(String principalId); } - /** The stage of the ClusterPrincipalAssignment definition allowing to specify role. */ + + /** + * The stage of the ClusterPrincipalAssignment definition allowing to specify role. + */ interface WithRole { /** * Specifies the role property: Cluster principal role.. - * + * * @param role Cluster principal role. * @return the next definition stage. */ WithCreate withRole(ClusterPrincipalRole role); } - /** The stage of the ClusterPrincipalAssignment definition allowing to specify tenantId. */ + + /** + * The stage of the ClusterPrincipalAssignment definition allowing to specify tenantId. + */ interface WithTenantId { /** * Specifies the tenantId property: The tenant id of the principal. - * + * * @param tenantId The tenant id of the principal. * @return the next definition stage. */ WithCreate withTenantId(String tenantId); } - /** The stage of the ClusterPrincipalAssignment definition allowing to specify principalType. */ + + /** + * The stage of the ClusterPrincipalAssignment definition allowing to specify principalType. + */ interface WithPrincipalType { /** * Specifies the principalType property: Principal type.. - * + * * @param principalType Principal type. * @return the next definition stage. */ WithCreate withPrincipalType(PrincipalType principalType); } } + /** * Begins update for the ClusterPrincipalAssignment resource. - * + * * @return the stage of resource update. */ ClusterPrincipalAssignment.Update update(); - /** The template for ClusterPrincipalAssignment update. */ - interface Update - extends UpdateStages.WithPrincipalId, - UpdateStages.WithRole, - UpdateStages.WithTenantId, - UpdateStages.WithPrincipalType { + /** + * The template for ClusterPrincipalAssignment update. + */ + interface Update extends UpdateStages.WithPrincipalId, UpdateStages.WithRole, UpdateStages.WithTenantId, + UpdateStages.WithPrincipalType { /** * Executes the update request. - * + * * @return the updated resource. */ ClusterPrincipalAssignment apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ ClusterPrincipalAssignment apply(Context context); } - /** The ClusterPrincipalAssignment update stages. */ + + /** + * The ClusterPrincipalAssignment update stages. + */ interface UpdateStages { - /** The stage of the ClusterPrincipalAssignment update allowing to specify principalId. */ + /** + * The stage of the ClusterPrincipalAssignment update allowing to specify principalId. + */ interface WithPrincipalId { /** * Specifies the principalId property: The principal ID assigned to the cluster principal. It can be a user * email, application ID, or security group name.. - * + * * @param principalId The principal ID assigned to the cluster principal. It can be a user email, - * application ID, or security group name. + * application ID, or security group name. * @return the next definition stage. */ Update withPrincipalId(String principalId); } - /** The stage of the ClusterPrincipalAssignment update allowing to specify role. */ + + /** + * The stage of the ClusterPrincipalAssignment update allowing to specify role. + */ interface WithRole { /** * Specifies the role property: Cluster principal role.. - * + * * @param role Cluster principal role. * @return the next definition stage. */ Update withRole(ClusterPrincipalRole role); } - /** The stage of the ClusterPrincipalAssignment update allowing to specify tenantId. */ + + /** + * The stage of the ClusterPrincipalAssignment update allowing to specify tenantId. + */ interface WithTenantId { /** * Specifies the tenantId property: The tenant id of the principal. - * + * * @param tenantId The tenant id of the principal. * @return the next definition stage. */ Update withTenantId(String tenantId); } - /** The stage of the ClusterPrincipalAssignment update allowing to specify principalType. */ + + /** + * The stage of the ClusterPrincipalAssignment update allowing to specify principalType. + */ interface WithPrincipalType { /** * Specifies the principalType property: Principal type.. - * + * * @param principalType Principal type. * @return the next definition stage. */ Update withPrincipalType(PrincipalType principalType); } } + /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ ClusterPrincipalAssignment refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ClusterPrincipalAssignmentCheckNameRequest.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ClusterPrincipalAssignmentCheckNameRequest.java index d0fc61aeb826..ab2337c29b5a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ClusterPrincipalAssignmentCheckNameRequest.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ClusterPrincipalAssignmentCheckNameRequest.java @@ -8,7 +8,9 @@ import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonProperty; -/** A principal assignment check name availability request. */ +/** + * A principal assignment check name availability request. + */ @Fluent public final class ClusterPrincipalAssignmentCheckNameRequest { /* @@ -23,14 +25,15 @@ public final class ClusterPrincipalAssignmentCheckNameRequest { @JsonProperty(value = "type", required = true) private String type = "Microsoft.Synapse/workspaces/kustoPools/principalAssignments"; - /** Creates an instance of ClusterPrincipalAssignmentCheckNameRequest class. */ + /** + * Creates an instance of ClusterPrincipalAssignmentCheckNameRequest class. + */ public ClusterPrincipalAssignmentCheckNameRequest() { - type = "Microsoft.Synapse/workspaces/kustoPools/principalAssignments"; } /** * Get the name property: Principal Assignment resource name. - * + * * @return the name value. */ public String name() { @@ -39,7 +42,7 @@ public String name() { /** * Set the name property: Principal Assignment resource name. - * + * * @param name the name value to set. * @return the ClusterPrincipalAssignmentCheckNameRequest object itself. */ @@ -50,7 +53,7 @@ public ClusterPrincipalAssignmentCheckNameRequest withName(String name) { /** * Get the type property: The type of resource, Microsoft.Synapse/workspaces/kustoPools/principalAssignments. - * + * * @return the type value. */ public String type() { @@ -59,7 +62,7 @@ public String type() { /** * Set the type property: The type of resource, Microsoft.Synapse/workspaces/kustoPools/principalAssignments. - * + * * @param type the type value to set. * @return the ClusterPrincipalAssignmentCheckNameRequest object itself. */ @@ -70,15 +73,13 @@ public ClusterPrincipalAssignmentCheckNameRequest withType(String type) { /** * 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 ClusterPrincipalAssignmentCheckNameRequest")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property name in model ClusterPrincipalAssignmentCheckNameRequest")); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ClusterPrincipalAssignmentListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ClusterPrincipalAssignmentListResult.java index d968aef6b2f2..18631c7bb879 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ClusterPrincipalAssignmentListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ClusterPrincipalAssignmentListResult.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The list Kusto cluster principal assignments operation response. */ +/** + * The list Kusto cluster principal assignments operation response. + */ @Fluent public final class ClusterPrincipalAssignmentListResult { /* @@ -18,13 +20,15 @@ public final class ClusterPrincipalAssignmentListResult { @JsonProperty(value = "value") private List value; - /** Creates an instance of ClusterPrincipalAssignmentListResult class. */ + /** + * Creates an instance of ClusterPrincipalAssignmentListResult class. + */ public ClusterPrincipalAssignmentListResult() { } /** * Get the value property: The list of Kusto cluster principal assignments. - * + * * @return the value value. */ public List value() { @@ -33,7 +37,7 @@ public List value() { /** * Set the value property: The list of Kusto cluster principal assignments. - * + * * @param value the value value to set. * @return the ClusterPrincipalAssignmentListResult object itself. */ @@ -44,7 +48,7 @@ public ClusterPrincipalAssignmentListResult withValue(List { - /** Static value AllDatabasesAdmin for ClusterPrincipalRole. */ + /** + * Static value AllDatabasesAdmin for ClusterPrincipalRole. + */ public static final ClusterPrincipalRole ALL_DATABASES_ADMIN = fromString("AllDatabasesAdmin"); - /** Static value AllDatabasesViewer for ClusterPrincipalRole. */ + /** + * Static value AllDatabasesViewer for ClusterPrincipalRole. + */ public static final ClusterPrincipalRole ALL_DATABASES_VIEWER = fromString("AllDatabasesViewer"); /** * Creates a new instance of ClusterPrincipalRole value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,7 +33,7 @@ public ClusterPrincipalRole() { /** * Creates or finds a ClusterPrincipalRole from its string representation. - * + * * @param name a name to look for. * @return the corresponding ClusterPrincipalRole. */ @@ -38,7 +44,7 @@ public static ClusterPrincipalRole fromString(String name) { /** * Gets known ClusterPrincipalRole values. - * + * * @return known ClusterPrincipalRole values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CmdkeySetup.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CmdkeySetup.java index a06492325ed9..46e210321dfa 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CmdkeySetup.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CmdkeySetup.java @@ -11,7 +11,9 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; -/** The custom setup of running cmdkey commands. */ +/** + * The custom setup of running cmdkey commands. + */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("CmdkeySetup") @Fluent @@ -22,13 +24,15 @@ public final class CmdkeySetup extends CustomSetupBase { @JsonProperty(value = "typeProperties", required = true) private CmdkeySetupTypeProperties innerTypeProperties = new CmdkeySetupTypeProperties(); - /** Creates an instance of CmdkeySetup class. */ + /** + * Creates an instance of CmdkeySetup class. + */ public CmdkeySetup() { } /** * Get the innerTypeProperties property: Cmdkey command custom setup type properties. - * + * * @return the innerTypeProperties value. */ private CmdkeySetupTypeProperties innerTypeProperties() { @@ -37,7 +41,7 @@ private CmdkeySetupTypeProperties innerTypeProperties() { /** * Get the targetName property: The server name of data source access. - * + * * @return the targetName value. */ public Object targetName() { @@ -46,7 +50,7 @@ public Object targetName() { /** * Set the targetName property: The server name of data source access. - * + * * @param targetName the targetName value to set. * @return the CmdkeySetup object itself. */ @@ -60,7 +64,7 @@ public CmdkeySetup withTargetName(Object targetName) { /** * Get the username property: The user name of data source access. - * + * * @return the username value. */ public Object username() { @@ -69,7 +73,7 @@ public Object username() { /** * Set the username property: The user name of data source access. - * + * * @param username the username value to set. * @return the CmdkeySetup object itself. */ @@ -83,7 +87,7 @@ public CmdkeySetup withUsername(Object username) { /** * Get the password property: The password of data source access. - * + * * @return the password value. */ public SecretBase password() { @@ -92,7 +96,7 @@ public SecretBase password() { /** * Set the password property: The password of data source access. - * + * * @param password the password value to set. * @return the CmdkeySetup object itself. */ @@ -106,16 +110,15 @@ public CmdkeySetup withPassword(SecretBase password) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ @Override public void validate() { super.validate(); if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property innerTypeProperties in model CmdkeySetup")); + throw LOGGER.logExceptionAsError( + new IllegalArgumentException("Missing required property innerTypeProperties in model CmdkeySetup")); } else { innerTypeProperties().validate(); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ColumnDataType.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ColumnDataType.java index 3c22679de848..959cac595959 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ColumnDataType.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ColumnDataType.java @@ -8,113 +8,183 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The column data type. */ +/** + * The column data type. + */ public final class ColumnDataType extends ExpandableStringEnum { - /** Static value image for ColumnDataType. */ + /** + * Static value image for ColumnDataType. + */ public static final ColumnDataType IMAGE = fromString("image"); - /** Static value text for ColumnDataType. */ + /** + * Static value text for ColumnDataType. + */ public static final ColumnDataType TEXT = fromString("text"); - /** Static value uniqueidentifier for ColumnDataType. */ + /** + * Static value uniqueidentifier for ColumnDataType. + */ public static final ColumnDataType UNIQUEIDENTIFIER = fromString("uniqueidentifier"); - /** Static value date for ColumnDataType. */ + /** + * Static value date for ColumnDataType. + */ public static final ColumnDataType DATE = fromString("date"); - /** Static value time for ColumnDataType. */ + /** + * Static value time for ColumnDataType. + */ public static final ColumnDataType TIME = fromString("time"); - /** Static value datetime2 for ColumnDataType. */ + /** + * Static value datetime2 for ColumnDataType. + */ public static final ColumnDataType DATETIME2 = fromString("datetime2"); - /** Static value datetimeoffset for ColumnDataType. */ + /** + * Static value datetimeoffset for ColumnDataType. + */ public static final ColumnDataType DATETIMEOFFSET = fromString("datetimeoffset"); - /** Static value tinyint for ColumnDataType. */ + /** + * Static value tinyint for ColumnDataType. + */ public static final ColumnDataType TINYINT = fromString("tinyint"); - /** Static value smallint for ColumnDataType. */ + /** + * Static value smallint for ColumnDataType. + */ public static final ColumnDataType SMALLINT = fromString("smallint"); - /** Static value int for ColumnDataType. */ + /** + * Static value int for ColumnDataType. + */ public static final ColumnDataType INT = fromString("int"); - /** Static value smalldatetime for ColumnDataType. */ + /** + * Static value smalldatetime for ColumnDataType. + */ public static final ColumnDataType SMALLDATETIME = fromString("smalldatetime"); - /** Static value real for ColumnDataType. */ + /** + * Static value real for ColumnDataType. + */ public static final ColumnDataType REAL = fromString("real"); - /** Static value money for ColumnDataType. */ + /** + * Static value money for ColumnDataType. + */ public static final ColumnDataType MONEY = fromString("money"); - /** Static value datetime for ColumnDataType. */ + /** + * Static value datetime for ColumnDataType. + */ public static final ColumnDataType DATETIME = fromString("datetime"); - /** Static value float for ColumnDataType. */ + /** + * Static value float for ColumnDataType. + */ public static final ColumnDataType FLOAT = fromString("float"); - /** Static value sql_variant for ColumnDataType. */ + /** + * Static value sql_variant for ColumnDataType. + */ public static final ColumnDataType SQL_VARIANT = fromString("sql_variant"); - /** Static value ntext for ColumnDataType. */ + /** + * Static value ntext for ColumnDataType. + */ public static final ColumnDataType NTEXT = fromString("ntext"); - /** Static value bit for ColumnDataType. */ + /** + * Static value bit for ColumnDataType. + */ public static final ColumnDataType BIT = fromString("bit"); - /** Static value decimal for ColumnDataType. */ + /** + * Static value decimal for ColumnDataType. + */ public static final ColumnDataType DECIMAL = fromString("decimal"); - /** Static value numeric for ColumnDataType. */ + /** + * Static value numeric for ColumnDataType. + */ public static final ColumnDataType NUMERIC = fromString("numeric"); - /** Static value smallmoney for ColumnDataType. */ + /** + * Static value smallmoney for ColumnDataType. + */ public static final ColumnDataType SMALLMONEY = fromString("smallmoney"); - /** Static value bigint for ColumnDataType. */ + /** + * Static value bigint for ColumnDataType. + */ public static final ColumnDataType BIGINT = fromString("bigint"); - /** Static value hierarchyid for ColumnDataType. */ + /** + * Static value hierarchyid for ColumnDataType. + */ public static final ColumnDataType HIERARCHYID = fromString("hierarchyid"); - /** Static value geometry for ColumnDataType. */ + /** + * Static value geometry for ColumnDataType. + */ public static final ColumnDataType GEOMETRY = fromString("geometry"); - /** Static value geography for ColumnDataType. */ + /** + * Static value geography for ColumnDataType. + */ public static final ColumnDataType GEOGRAPHY = fromString("geography"); - /** Static value varbinary for ColumnDataType. */ + /** + * Static value varbinary for ColumnDataType. + */ public static final ColumnDataType VARBINARY = fromString("varbinary"); - /** Static value varchar for ColumnDataType. */ + /** + * Static value varchar for ColumnDataType. + */ public static final ColumnDataType VARCHAR = fromString("varchar"); - /** Static value binary for ColumnDataType. */ + /** + * Static value binary for ColumnDataType. + */ public static final ColumnDataType BINARY = fromString("binary"); - /** Static value char for ColumnDataType. */ + /** + * Static value char for ColumnDataType. + */ public static final ColumnDataType CHAR = fromString("char"); - /** Static value timestamp for ColumnDataType. */ + /** + * Static value timestamp for ColumnDataType. + */ public static final ColumnDataType TIMESTAMP = fromString("timestamp"); - /** Static value nvarchar for ColumnDataType. */ + /** + * Static value nvarchar for ColumnDataType. + */ public static final ColumnDataType NVARCHAR = fromString("nvarchar"); - /** Static value nchar for ColumnDataType. */ + /** + * Static value nchar for ColumnDataType. + */ public static final ColumnDataType NCHAR = fromString("nchar"); - /** Static value xml for ColumnDataType. */ + /** + * Static value xml for ColumnDataType. + */ public static final ColumnDataType XML = fromString("xml"); - /** Static value sysname for ColumnDataType. */ + /** + * Static value sysname for ColumnDataType. + */ public static final ColumnDataType SYSNAME = fromString("sysname"); /** * Creates a new instance of ColumnDataType value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -123,7 +193,7 @@ public ColumnDataType() { /** * Creates or finds a ColumnDataType from its string representation. - * + * * @param name a name to look for. * @return the corresponding ColumnDataType. */ @@ -134,7 +204,7 @@ public static ColumnDataType fromString(String name) { /** * Gets known ColumnDataType values. - * + * * @return known ColumnDataType values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ComponentSetup.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ComponentSetup.java index a60b7729c277..034303f23fe5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ComponentSetup.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ComponentSetup.java @@ -11,7 +11,9 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; -/** The custom setup of installing 3rd party components. */ +/** + * The custom setup of installing 3rd party components. + */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("ComponentSetup") @Fluent @@ -22,13 +24,15 @@ public final class ComponentSetup extends CustomSetupBase { @JsonProperty(value = "typeProperties", required = true) private LicensedComponentSetupTypeProperties innerTypeProperties = new LicensedComponentSetupTypeProperties(); - /** Creates an instance of ComponentSetup class. */ + /** + * Creates an instance of ComponentSetup class. + */ public ComponentSetup() { } /** * Get the innerTypeProperties property: Install 3rd party component type properties. - * + * * @return the innerTypeProperties value. */ private LicensedComponentSetupTypeProperties innerTypeProperties() { @@ -37,7 +41,7 @@ private LicensedComponentSetupTypeProperties innerTypeProperties() { /** * Get the componentName property: The name of the 3rd party component. - * + * * @return the componentName value. */ public String componentName() { @@ -46,7 +50,7 @@ public String componentName() { /** * Set the componentName property: The name of the 3rd party component. - * + * * @param componentName the componentName value to set. * @return the ComponentSetup object itself. */ @@ -60,7 +64,7 @@ public ComponentSetup withComponentName(String componentName) { /** * Get the licenseKey property: The license key to activate the component. - * + * * @return the licenseKey value. */ public SecretBase licenseKey() { @@ -69,7 +73,7 @@ public SecretBase licenseKey() { /** * Set the licenseKey property: The license key to activate the component. - * + * * @param licenseKey the licenseKey value to set. * @return the ComponentSetup object itself. */ @@ -83,17 +87,15 @@ public ComponentSetup withLicenseKey(SecretBase licenseKey) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ @Override public void validate() { super.validate(); if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model ComponentSetup")); + throw LOGGER.logExceptionAsError( + new IllegalArgumentException("Missing required property innerTypeProperties in model ComponentSetup")); } else { innerTypeProperties().validate(); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Compression.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Compression.java index 798b4986bcd6..8a14a42c7515 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Compression.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Compression.java @@ -8,17 +8,23 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The compression type. */ +/** + * The compression type. + */ public final class Compression extends ExpandableStringEnum { - /** Static value None for Compression. */ + /** + * Static value None for Compression. + */ public static final Compression NONE = fromString("None"); - /** Static value GZip for Compression. */ + /** + * Static value GZip for Compression. + */ public static final Compression GZIP = fromString("GZip"); /** * Creates a new instance of Compression value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,7 +33,7 @@ public Compression() { /** * Creates or finds a Compression from its string representation. - * + * * @param name a name to look for. * @return the corresponding Compression. */ @@ -38,7 +44,7 @@ public static Compression fromString(String name) { /** * Gets known Compression values. - * + * * @return known Compression values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ConfigurationType.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ConfigurationType.java index 778bf85ed43b..e4172c652d80 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ConfigurationType.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ConfigurationType.java @@ -8,17 +8,23 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The type of the spark config properties file. */ +/** + * The type of the spark config properties file. + */ public final class ConfigurationType extends ExpandableStringEnum { - /** Static value File for ConfigurationType. */ + /** + * Static value File for ConfigurationType. + */ public static final ConfigurationType FILE = fromString("File"); - /** Static value Artifact for ConfigurationType. */ + /** + * Static value Artifact for ConfigurationType. + */ public static final ConfigurationType ARTIFACT = fromString("Artifact"); /** * Creates a new instance of ConfigurationType value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,7 +33,7 @@ public ConfigurationType() { /** * Creates or finds a ConfigurationType from its string representation. - * + * * @param name a name to look for. * @return the corresponding ConfigurationType. */ @@ -38,7 +44,7 @@ public static ConfigurationType fromString(String name) { /** * Gets known ConfigurationType values. - * + * * @return known ConfigurationType values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ConnectionPolicyName.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ConnectionPolicyName.java index 8c63e7404353..3bbb41bcf65c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ConnectionPolicyName.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ConnectionPolicyName.java @@ -8,14 +8,18 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for ConnectionPolicyName. */ +/** + * Defines values for ConnectionPolicyName. + */ public final class ConnectionPolicyName extends ExpandableStringEnum { - /** Static value default for ConnectionPolicyName. */ + /** + * Static value default for ConnectionPolicyName. + */ public static final ConnectionPolicyName DEFAULT = fromString("default"); /** * Creates a new instance of ConnectionPolicyName value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -24,7 +28,7 @@ public ConnectionPolicyName() { /** * Creates or finds a ConnectionPolicyName from its string representation. - * + * * @param name a name to look for. * @return the corresponding ConnectionPolicyName. */ @@ -35,7 +39,7 @@ public static ConnectionPolicyName fromString(String name) { /** * Gets known ConnectionPolicyName values. - * + * * @return known ConnectionPolicyName values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CreateMode.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CreateMode.java index fabd130ac1b8..2b6dfce29da4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CreateMode.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CreateMode.java @@ -10,35 +10,42 @@ /** * Specifies the mode of sql pool creation. - * - *

Default: regular sql pool creation. - * - *

PointInTimeRestore: Creates a sql pool by restoring a point in time backup of an existing sql pool. - * sourceDatabaseId must be specified as the resource ID of the existing sql pool, and restorePointInTime must be - * specified. - * - *

Recovery: Creates a sql pool by a geo-replicated backup. sourceDatabaseId must be specified as the + * + * Default: regular sql pool creation. + * + * PointInTimeRestore: Creates a sql pool by restoring a point in time backup of an existing sql pool. sourceDatabaseId + * must be specified as the resource ID of the existing sql pool, and restorePointInTime must be specified. + * + * Recovery: Creates a sql pool by a geo-replicated backup. sourceDatabaseId must be specified as the * recoverableDatabaseId to restore. - * - *

Restore: Creates a sql pool by restoring a backup of a deleted sql pool. SourceDatabaseId should be the sql pool's + * + * Restore: Creates a sql pool by restoring a backup of a deleted sql pool. SourceDatabaseId should be the sql pool's * original resource ID. SourceDatabaseId and sourceDatabaseDeletionDate must be specified. */ public final class CreateMode extends ExpandableStringEnum { - /** Static value Default for CreateMode. */ + /** + * Static value Default for CreateMode. + */ public static final CreateMode DEFAULT = fromString("Default"); - /** Static value PointInTimeRestore for CreateMode. */ + /** + * Static value PointInTimeRestore for CreateMode. + */ public static final CreateMode POINT_IN_TIME_RESTORE = fromString("PointInTimeRestore"); - /** Static value Recovery for CreateMode. */ + /** + * Static value Recovery for CreateMode. + */ public static final CreateMode RECOVERY = fromString("Recovery"); - /** Static value Restore for CreateMode. */ + /** + * Static value Restore for CreateMode. + */ public static final CreateMode RESTORE = fromString("Restore"); /** * Creates a new instance of CreateMode value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -47,7 +54,7 @@ public CreateMode() { /** * Creates or finds a CreateMode from its string representation. - * + * * @param name a name to look for. * @return the corresponding CreateMode. */ @@ -58,7 +65,7 @@ public static CreateMode fromString(String name) { /** * Gets known CreateMode values. - * + * * @return known CreateMode values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CreateSqlPoolRestorePointDefinition.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CreateSqlPoolRestorePointDefinition.java index dadc8db339a4..a6561c5e57b8 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CreateSqlPoolRestorePointDefinition.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CreateSqlPoolRestorePointDefinition.java @@ -8,7 +8,9 @@ import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonProperty; -/** Contains the information necessary to perform a create Sql pool restore point operation. */ +/** + * Contains the information necessary to perform a create Sql pool restore point operation. + */ @Fluent public final class CreateSqlPoolRestorePointDefinition { /* @@ -17,13 +19,15 @@ public final class CreateSqlPoolRestorePointDefinition { @JsonProperty(value = "restorePointLabel", required = true) private String restorePointLabel; - /** Creates an instance of CreateSqlPoolRestorePointDefinition class. */ + /** + * Creates an instance of CreateSqlPoolRestorePointDefinition class. + */ public CreateSqlPoolRestorePointDefinition() { } /** * Get the restorePointLabel property: The restore point label to apply. - * + * * @return the restorePointLabel value. */ public String restorePointLabel() { @@ -32,7 +36,7 @@ public String restorePointLabel() { /** * Set the restorePointLabel property: The restore point label to apply. - * + * * @param restorePointLabel the restorePointLabel value to set. * @return the CreateSqlPoolRestorePointDefinition object itself. */ @@ -43,15 +47,13 @@ public CreateSqlPoolRestorePointDefinition withRestorePointLabel(String restoreP /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (restorePointLabel() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property restorePointLabel in model CreateSqlPoolRestorePointDefinition")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property restorePointLabel in model CreateSqlPoolRestorePointDefinition")); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CspWorkspaceAdminProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CspWorkspaceAdminProperties.java index efe76b26dab3..d0dd80d90601 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CspWorkspaceAdminProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CspWorkspaceAdminProperties.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Initial workspace AAD admin properties for a CSP subscription. */ +/** + * Initial workspace AAD admin properties for a CSP subscription. + */ @Fluent public final class CspWorkspaceAdminProperties { /* @@ -16,13 +18,15 @@ public final class CspWorkspaceAdminProperties { @JsonProperty(value = "initialWorkspaceAdminObjectId") private String initialWorkspaceAdminObjectId; - /** Creates an instance of CspWorkspaceAdminProperties class. */ + /** + * Creates an instance of CspWorkspaceAdminProperties class. + */ public CspWorkspaceAdminProperties() { } /** * Get the initialWorkspaceAdminObjectId property: AAD object ID of initial workspace admin. - * + * * @return the initialWorkspaceAdminObjectId value. */ public String initialWorkspaceAdminObjectId() { @@ -31,7 +35,7 @@ public String initialWorkspaceAdminObjectId() { /** * Set the initialWorkspaceAdminObjectId property: AAD object ID of initial workspace admin. - * + * * @param initialWorkspaceAdminObjectId the initialWorkspaceAdminObjectId value to set. * @return the CspWorkspaceAdminProperties object itself. */ @@ -42,7 +46,7 @@ public CspWorkspaceAdminProperties withInitialWorkspaceAdminObjectId(String init /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CustomSetupBase.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CustomSetupBase.java index dc12b87552ad..d128e4e9a441 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CustomSetupBase.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CustomSetupBase.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; -/** The base definition of the custom setup. */ +/** + * The base definition of the custom setup. + */ @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, @@ -19,17 +21,18 @@ @JsonSubTypes({ @JsonSubTypes.Type(name = "CmdkeySetup", value = CmdkeySetup.class), @JsonSubTypes.Type(name = "EnvironmentVariableSetup", value = EnvironmentVariableSetup.class), - @JsonSubTypes.Type(name = "ComponentSetup", value = ComponentSetup.class) -}) + @JsonSubTypes.Type(name = "ComponentSetup", value = ComponentSetup.class) }) @Immutable public class CustomSetupBase { - /** Creates an instance of CustomSetupBase class. */ + /** + * Creates an instance of CustomSetupBase class. + */ public CustomSetupBase() { } /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CustomerManagedKeyDetails.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CustomerManagedKeyDetails.java index 2137b6958c78..8fbd56bc46e4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CustomerManagedKeyDetails.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/CustomerManagedKeyDetails.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Details of the customer managed key associated with the workspace. */ +/** + * Details of the customer managed key associated with the workspace. + */ @Fluent public final class CustomerManagedKeyDetails { /* @@ -28,13 +30,15 @@ public final class CustomerManagedKeyDetails { @JsonProperty(value = "kekIdentity") private KekIdentityProperties kekIdentity; - /** Creates an instance of CustomerManagedKeyDetails class. */ + /** + * Creates an instance of CustomerManagedKeyDetails class. + */ public CustomerManagedKeyDetails() { } /** * Get the status property: The customer managed key status on the workspace. - * + * * @return the status value. */ public String status() { @@ -43,7 +47,7 @@ public String status() { /** * Get the key property: The key object of the workspace. - * + * * @return the key value. */ public WorkspaceKeyDetails key() { @@ -52,7 +56,7 @@ public WorkspaceKeyDetails key() { /** * Set the key property: The key object of the workspace. - * + * * @param key the key value to set. * @return the CustomerManagedKeyDetails object itself. */ @@ -63,7 +67,7 @@ public CustomerManagedKeyDetails withKey(WorkspaceKeyDetails key) { /** * Get the kekIdentity property: Key encryption key. - * + * * @return the kekIdentity value. */ public KekIdentityProperties kekIdentity() { @@ -72,7 +76,7 @@ public KekIdentityProperties kekIdentity() { /** * Set the kekIdentity property: Key encryption key. - * + * * @param kekIdentity the kekIdentity value to set. * @return the CustomerManagedKeyDetails object itself. */ @@ -83,7 +87,7 @@ public CustomerManagedKeyDetails withKekIdentity(KekIdentityProperties kekIdenti /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnection.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnection.java index 1aad365bb707..9cab6f76126b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnection.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnection.java @@ -7,46 +7,48 @@ import com.azure.core.management.SystemData; import com.azure.resourcemanager.synapse.fluent.models.DataConnectionInner; -/** An immutable client-side representation of DataConnection. */ +/** + * An immutable client-side representation of DataConnection. + */ public interface DataConnection { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the location property: Resource location. - * + * * @return the location value. */ String location(); /** * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ SystemData systemData(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.DataConnectionInner object. - * + * * @return the inner object. */ DataConnectionInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionCheckNameRequest.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionCheckNameRequest.java index ec20463ba725..07d7d1d68045 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionCheckNameRequest.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionCheckNameRequest.java @@ -8,7 +8,9 @@ import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonProperty; -/** A data connection check name availability request. */ +/** + * A data connection check name availability request. + */ @Fluent public final class DataConnectionCheckNameRequest { /* @@ -23,14 +25,15 @@ public final class DataConnectionCheckNameRequest { @JsonProperty(value = "type", required = true) private String type = "Microsoft.Synapse/workspaces/kustoPools/databases/dataConnections"; - /** Creates an instance of DataConnectionCheckNameRequest class. */ + /** + * Creates an instance of DataConnectionCheckNameRequest class. + */ public DataConnectionCheckNameRequest() { - type = "Microsoft.Synapse/workspaces/kustoPools/databases/dataConnections"; } /** * Get the name property: Data Connection name. - * + * * @return the name value. */ public String name() { @@ -39,7 +42,7 @@ public String name() { /** * Set the name property: Data Connection name. - * + * * @param name the name value to set. * @return the DataConnectionCheckNameRequest object itself. */ @@ -50,7 +53,7 @@ public DataConnectionCheckNameRequest withName(String name) { /** * Get the type property: The type of resource, Microsoft.Synapse/workspaces/kustoPools/databases/dataConnections. - * + * * @return the type value. */ public String type() { @@ -59,7 +62,7 @@ public String type() { /** * Set the type property: The type of resource, Microsoft.Synapse/workspaces/kustoPools/databases/dataConnections. - * + * * @param type the type value to set. * @return the DataConnectionCheckNameRequest object itself. */ @@ -70,15 +73,13 @@ public DataConnectionCheckNameRequest withType(String type) { /** * 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 DataConnectionCheckNameRequest")); + throw LOGGER.logExceptionAsError( + new IllegalArgumentException("Missing required property name in model DataConnectionCheckNameRequest")); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionKind.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionKind.java index 1b4de2dae475..0b0c6675c349 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionKind.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionKind.java @@ -8,20 +8,28 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Kind of the endpoint for the data connection. */ +/** + * Kind of the endpoint for the data connection. + */ public final class DataConnectionKind extends ExpandableStringEnum { - /** Static value EventHub for DataConnectionKind. */ + /** + * Static value EventHub for DataConnectionKind. + */ public static final DataConnectionKind EVENT_HUB = fromString("EventHub"); - /** Static value EventGrid for DataConnectionKind. */ + /** + * Static value EventGrid for DataConnectionKind. + */ public static final DataConnectionKind EVENT_GRID = fromString("EventGrid"); - /** Static value IotHub for DataConnectionKind. */ + /** + * Static value IotHub for DataConnectionKind. + */ public static final DataConnectionKind IOT_HUB = fromString("IotHub"); /** * Creates a new instance of DataConnectionKind value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -30,7 +38,7 @@ public DataConnectionKind() { /** * Creates or finds a DataConnectionKind from its string representation. - * + * * @param name a name to look for. * @return the corresponding DataConnectionKind. */ @@ -41,7 +49,7 @@ public static DataConnectionKind fromString(String name) { /** * Gets known DataConnectionKind values. - * + * * @return known DataConnectionKind values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionListResult.java index ca377e7030fc..d943a8bbe438 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionListResult.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The list Kusto data connections operation response. */ +/** + * The list Kusto data connections operation response. + */ @Fluent public final class DataConnectionListResult { /* @@ -18,13 +20,15 @@ public final class DataConnectionListResult { @JsonProperty(value = "value") private List value; - /** Creates an instance of DataConnectionListResult class. */ + /** + * Creates an instance of DataConnectionListResult class. + */ public DataConnectionListResult() { } /** * Get the value property: The list of Kusto data connections. - * + * * @return the value value. */ public List value() { @@ -33,7 +37,7 @@ public List value() { /** * Set the value property: The list of Kusto data connections. - * + * * @param value the value value to set. * @return the DataConnectionListResult object itself. */ @@ -44,7 +48,7 @@ public DataConnectionListResult withValue(List value) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionValidation.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionValidation.java index d34cec916258..a76aad23f8b7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionValidation.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionValidation.java @@ -6,25 +6,27 @@ import com.azure.resourcemanager.synapse.fluent.models.DataConnectionValidationInner; -/** An immutable client-side representation of DataConnectionValidation. */ +/** + * An immutable client-side representation of DataConnectionValidation. + */ public interface DataConnectionValidation { /** * Gets the dataConnectionName property: The name of the data connection. - * + * * @return the dataConnectionName value. */ String dataConnectionName(); /** * Gets the properties property: The data connection properties to validate. - * + * * @return the properties value. */ DataConnection properties(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.DataConnectionValidationInner object. - * + * * @return the inner object. */ DataConnectionValidationInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionValidationListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionValidationListResult.java index b62ec5bec285..887596eda835 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionValidationListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionValidationListResult.java @@ -7,18 +7,20 @@ import com.azure.resourcemanager.synapse.fluent.models.DataConnectionValidationListResultInner; import java.util.List; -/** An immutable client-side representation of DataConnectionValidationListResult. */ +/** + * An immutable client-side representation of DataConnectionValidationListResult. + */ public interface DataConnectionValidationListResult { /** * Gets the value property: The list of Kusto data connection validation errors. - * + * * @return the value value. */ List value(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.DataConnectionValidationListResultInner object. - * + * * @return the inner object. */ DataConnectionValidationListResultInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionValidationResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionValidationResult.java index 54129954904d..6c11c9364b59 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionValidationResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataConnectionValidationResult.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** The result returned from a data connection validation request. */ +/** + * The result returned from a data connection validation request. + */ @Fluent public final class DataConnectionValidationResult { /* @@ -16,13 +18,15 @@ public final class DataConnectionValidationResult { @JsonProperty(value = "errorMessage") private String errorMessage; - /** Creates an instance of DataConnectionValidationResult class. */ + /** + * Creates an instance of DataConnectionValidationResult class. + */ public DataConnectionValidationResult() { } /** * Get the errorMessage property: A message which indicates a problem in data connection validation. - * + * * @return the errorMessage value. */ public String errorMessage() { @@ -31,7 +35,7 @@ public String errorMessage() { /** * Set the errorMessage property: A message which indicates a problem in data connection validation. - * + * * @param errorMessage the errorMessage value to set. * @return the DataConnectionValidationResult object itself. */ @@ -42,7 +46,7 @@ public DataConnectionValidationResult withErrorMessage(String errorMessage) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataFlowComputeType.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataFlowComputeType.java index 8a4ad996ace4..cc0d0b190ff5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataFlowComputeType.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataFlowComputeType.java @@ -8,20 +8,28 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Compute type of the cluster which will execute data flow job. */ +/** + * Compute type of the cluster which will execute data flow job. + */ public final class DataFlowComputeType extends ExpandableStringEnum { - /** Static value General for DataFlowComputeType. */ + /** + * Static value General for DataFlowComputeType. + */ public static final DataFlowComputeType GENERAL = fromString("General"); - /** Static value MemoryOptimized for DataFlowComputeType. */ + /** + * Static value MemoryOptimized for DataFlowComputeType. + */ public static final DataFlowComputeType MEMORY_OPTIMIZED = fromString("MemoryOptimized"); - /** Static value ComputeOptimized for DataFlowComputeType. */ + /** + * Static value ComputeOptimized for DataFlowComputeType. + */ public static final DataFlowComputeType COMPUTE_OPTIMIZED = fromString("ComputeOptimized"); /** * Creates a new instance of DataFlowComputeType value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -30,7 +38,7 @@ public DataFlowComputeType() { /** * Creates or finds a DataFlowComputeType from its string representation. - * + * * @param name a name to look for. * @return the corresponding DataFlowComputeType. */ @@ -41,7 +49,7 @@ public static DataFlowComputeType fromString(String name) { /** * Gets known DataFlowComputeType values. - * + * * @return known DataFlowComputeType values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataLakeStorageAccountDetails.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataLakeStorageAccountDetails.java index b0a31638d236..b8560aa36832 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataLakeStorageAccountDetails.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataLakeStorageAccountDetails.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Details of the data lake storage account associated with the workspace. */ +/** + * Details of the data lake storage account associated with the workspace. + */ @Fluent public final class DataLakeStorageAccountDetails { /* @@ -34,13 +36,15 @@ public final class DataLakeStorageAccountDetails { @JsonProperty(value = "createManagedPrivateEndpoint") private Boolean createManagedPrivateEndpoint; - /** Creates an instance of DataLakeStorageAccountDetails class. */ + /** + * Creates an instance of DataLakeStorageAccountDetails class. + */ public DataLakeStorageAccountDetails() { } /** * Get the accountUrl property: Account URL. - * + * * @return the accountUrl value. */ public String accountUrl() { @@ -49,7 +53,7 @@ public String accountUrl() { /** * Set the accountUrl property: Account URL. - * + * * @param accountUrl the accountUrl value to set. * @return the DataLakeStorageAccountDetails object itself. */ @@ -60,7 +64,7 @@ public DataLakeStorageAccountDetails withAccountUrl(String accountUrl) { /** * Get the filesystem property: Filesystem name. - * + * * @return the filesystem value. */ public String filesystem() { @@ -69,7 +73,7 @@ public String filesystem() { /** * Set the filesystem property: Filesystem name. - * + * * @param filesystem the filesystem value to set. * @return the DataLakeStorageAccountDetails object itself. */ @@ -80,7 +84,7 @@ public DataLakeStorageAccountDetails withFilesystem(String filesystem) { /** * Get the resourceId property: ARM resource Id of this storage account. - * + * * @return the resourceId value. */ public String resourceId() { @@ -89,7 +93,7 @@ public String resourceId() { /** * Set the resourceId property: ARM resource Id of this storage account. - * + * * @param resourceId the resourceId value to set. * @return the DataLakeStorageAccountDetails object itself. */ @@ -100,7 +104,7 @@ public DataLakeStorageAccountDetails withResourceId(String resourceId) { /** * Get the createManagedPrivateEndpoint property: Create managed private endpoint to this storage account or not. - * + * * @return the createManagedPrivateEndpoint value. */ public Boolean createManagedPrivateEndpoint() { @@ -109,7 +113,7 @@ public Boolean createManagedPrivateEndpoint() { /** * Set the createManagedPrivateEndpoint property: Create managed private endpoint to this storage account or not. - * + * * @param createManagedPrivateEndpoint the createManagedPrivateEndpoint value to set. * @return the DataLakeStorageAccountDetails object itself. */ @@ -120,7 +124,7 @@ public DataLakeStorageAccountDetails withCreateManagedPrivateEndpoint(Boolean cr /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingFunction.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingFunction.java index 450723a9dedb..1a7089bc44b4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingFunction.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingFunction.java @@ -7,27 +7,43 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -/** The masking function that is used for the data masking rule. */ +/** + * The masking function that is used for the data masking rule. + */ public enum DataMaskingFunction { - /** Enum value Default. */ + /** + * Enum value Default. + */ DEFAULT("Default"), - /** Enum value CCN. */ + /** + * Enum value CCN. + */ CCN("CCN"), - /** Enum value Email. */ + /** + * Enum value Email. + */ EMAIL("Email"), - /** Enum value Number. */ + /** + * Enum value Number. + */ NUMBER("Number"), - /** Enum value SSN. */ + /** + * Enum value SSN. + */ SSN("SSN"), - /** Enum value Text. */ + /** + * Enum value Text. + */ TEXT("Text"); - /** The actual serialized value for a DataMaskingFunction instance. */ + /** + * The actual serialized value for a DataMaskingFunction instance. + */ private final String value; DataMaskingFunction(String value) { @@ -36,7 +52,7 @@ public enum DataMaskingFunction { /** * Parses a serialized value to a DataMaskingFunction instance. - * + * * @param value the serialized value to parse. * @return the parsed DataMaskingFunction object, or null if unable to parse. */ @@ -54,7 +70,9 @@ public static DataMaskingFunction fromString(String value) { return null; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @JsonValue @Override public String toString() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingPolicies.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingPolicies.java index e56b02124883..7b94fd87ef60 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingPolicies.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingPolicies.java @@ -7,11 +7,13 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of DataMaskingPolicies. */ +/** + * Resource collection API of DataMaskingPolicies. + */ public interface DataMaskingPolicies { /** * Gets a Sql pool data masking policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -21,12 +23,12 @@ public interface DataMaskingPolicies { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Sql pool data masking policy along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + Context context); /** * Gets a Sql pool data masking policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -39,7 +41,7 @@ Response getWithResponse( /** * Gets a Sql pool data masking policy. - * + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -50,7 +52,7 @@ Response getWithResponse( /** * Gets a Sql pool data masking policy. - * + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -62,7 +64,7 @@ Response getWithResponse( /** * Begins definition for a new DataMaskingPolicy resource. - * + * * @return the first stage of the new DataMaskingPolicy definition. */ DataMaskingPolicy.DefinitionStages.Blank define(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingPolicy.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingPolicy.java index d0a918383289..112a5bb64656 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingPolicy.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingPolicy.java @@ -8,53 +8,55 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.synapse.fluent.models.DataMaskingPolicyInner; -/** An immutable client-side representation of DataMaskingPolicy. */ +/** + * An immutable client-side representation of DataMaskingPolicy. + */ public interface DataMaskingPolicy { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the location property: The location of the data masking policy. - * + * * @return the location value. */ String location(); /** * Gets the kind property: The kind of data masking policy. Metadata, used for Azure portal. - * + * * @return the kind value. */ String kind(); /** * Gets the managedBy property: Fully qualified resource ID of the sql pool. - * + * * @return the managedBy value. */ String managedBy(); /** * Gets the dataMaskingState property: The state of the data masking policy. - * + * * @return the dataMaskingState value. */ DataMaskingState dataMaskingState(); @@ -63,7 +65,7 @@ public interface DataMaskingPolicy { * Gets the exemptPrincipals property: The list of the exempt principals. Specifies the semicolon-separated list of * database users for which the data masking policy does not apply. The specified users receive data results without * masking for all of the database queries. - * + * * @return the exemptPrincipals value. */ String exemptPrincipals(); @@ -71,60 +73,70 @@ public interface DataMaskingPolicy { /** * Gets the applicationPrincipals property: The list of the application principals. This is a legacy parameter and * is no longer used. - * + * * @return the applicationPrincipals value. */ String applicationPrincipals(); /** * Gets the maskingLevel property: The masking level. This is a legacy parameter and is no longer used. - * + * * @return the maskingLevel value. */ String maskingLevel(); /** * Gets the region of the resource. - * + * * @return the region of the resource. */ Region region(); /** * Gets the name of the resource region. - * + * * @return the name of the resource region. */ String regionName(); /** * Gets the name of the resource group. - * + * * @return the name of the resource group. */ String resourceGroupName(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.DataMaskingPolicyInner object. - * + * * @return the inner object. */ DataMaskingPolicyInner innerModel(); - /** The entirety of the DataMaskingPolicy definition. */ + /** + * The entirety of the DataMaskingPolicy definition. + */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { } - /** The DataMaskingPolicy definition stages. */ + + /** + * The DataMaskingPolicy definition stages. + */ interface DefinitionStages { - /** The first stage of the DataMaskingPolicy definition. */ + /** + * The first stage of the DataMaskingPolicy definition. + */ interface Blank extends WithParentResource { } - /** The stage of the DataMaskingPolicy definition allowing to specify parent resource. */ + + /** + * The stage of the DataMaskingPolicy definition allowing to specify parent resource. + */ interface WithParentResource { /** * Specifies resourceGroupName, workspaceName, sqlPoolName. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -132,6 +144,7 @@ interface WithParentResource { */ WithCreate withExistingSqlPool(String resourceGroupName, String workspaceName, String sqlPoolName); } + /** * The stage of the DataMaskingPolicy definition which contains all the minimum required properties for the * resource to be created, but also allows for any other optional properties to be specified. @@ -139,105 +152,123 @@ interface WithParentResource { interface WithCreate extends DefinitionStages.WithDataMaskingState, DefinitionStages.WithExemptPrincipals { /** * Executes the create request. - * + * * @return the created resource. */ DataMaskingPolicy create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ DataMaskingPolicy create(Context context); } - /** The stage of the DataMaskingPolicy definition allowing to specify dataMaskingState. */ + + /** + * The stage of the DataMaskingPolicy definition allowing to specify dataMaskingState. + */ interface WithDataMaskingState { /** * Specifies the dataMaskingState property: The state of the data masking policy.. - * + * * @param dataMaskingState The state of the data masking policy. * @return the next definition stage. */ WithCreate withDataMaskingState(DataMaskingState dataMaskingState); } - /** The stage of the DataMaskingPolicy definition allowing to specify exemptPrincipals. */ + + /** + * The stage of the DataMaskingPolicy definition allowing to specify exemptPrincipals. + */ interface WithExemptPrincipals { /** * Specifies the exemptPrincipals property: The list of the exempt principals. Specifies the * semicolon-separated list of database users for which the data masking policy does not apply. The * specified users receive data results without masking for all of the database queries.. - * + * * @param exemptPrincipals The list of the exempt principals. Specifies the semicolon-separated list of - * database users for which the data masking policy does not apply. The specified users receive data - * results without masking for all of the database queries. + * database users for which the data masking policy does not apply. The specified users receive data results + * without masking for all of the database queries. * @return the next definition stage. */ WithCreate withExemptPrincipals(String exemptPrincipals); } } + /** * Begins update for the DataMaskingPolicy resource. - * + * * @return the stage of resource update. */ DataMaskingPolicy.Update update(); - /** The template for DataMaskingPolicy update. */ + /** + * The template for DataMaskingPolicy update. + */ interface Update extends UpdateStages.WithDataMaskingState, UpdateStages.WithExemptPrincipals { /** * Executes the update request. - * + * * @return the updated resource. */ DataMaskingPolicy apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ DataMaskingPolicy apply(Context context); } - /** The DataMaskingPolicy update stages. */ + + /** + * The DataMaskingPolicy update stages. + */ interface UpdateStages { - /** The stage of the DataMaskingPolicy update allowing to specify dataMaskingState. */ + /** + * The stage of the DataMaskingPolicy update allowing to specify dataMaskingState. + */ interface WithDataMaskingState { /** * Specifies the dataMaskingState property: The state of the data masking policy.. - * + * * @param dataMaskingState The state of the data masking policy. * @return the next definition stage. */ Update withDataMaskingState(DataMaskingState dataMaskingState); } - /** The stage of the DataMaskingPolicy update allowing to specify exemptPrincipals. */ + + /** + * The stage of the DataMaskingPolicy update allowing to specify exemptPrincipals. + */ interface WithExemptPrincipals { /** * Specifies the exemptPrincipals property: The list of the exempt principals. Specifies the * semicolon-separated list of database users for which the data masking policy does not apply. The * specified users receive data results without masking for all of the database queries.. - * + * * @param exemptPrincipals The list of the exempt principals. Specifies the semicolon-separated list of - * database users for which the data masking policy does not apply. The specified users receive data - * results without masking for all of the database queries. + * database users for which the data masking policy does not apply. The specified users receive data results + * without masking for all of the database queries. * @return the next definition stage. */ Update withExemptPrincipals(String exemptPrincipals); } } + /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ DataMaskingPolicy refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingRule.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingRule.java index 7600c8e154b3..122accf421db 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingRule.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingRule.java @@ -8,53 +8,55 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.synapse.fluent.models.DataMaskingRuleInner; -/** An immutable client-side representation of DataMaskingRule. */ +/** + * An immutable client-side representation of DataMaskingRule. + */ public interface DataMaskingRule { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the location property: The location of the data masking rule. - * + * * @return the location value. */ String location(); /** * Gets the kind property: The kind of Data Masking Rule. Metadata, used for Azure portal. - * + * * @return the kind value. */ String kind(); /** * Gets the idPropertiesId property: The rule Id. - * + * * @return the idPropertiesId value. */ String idPropertiesId(); /** * Gets the aliasName property: The alias name. This is a legacy parameter and is no longer used. - * + * * @return the aliasName value. */ String aliasName(); @@ -64,35 +66,35 @@ public interface DataMaskingRule { * schemaName, tableName, columnName, maskingFunction, and specify ruleState as disabled. However, if the rule * doesn't already exist, the rule will be created with ruleState set to enabled, regardless of the provided value * of ruleState. - * + * * @return the ruleState value. */ DataMaskingRuleState ruleState(); /** * Gets the schemaName property: The schema name on which the data masking rule is applied. - * + * * @return the schemaName value. */ String schemaName(); /** * Gets the tableName property: The table name on which the data masking rule is applied. - * + * * @return the tableName value. */ String tableName(); /** * Gets the columnName property: The column name on which the data masking rule is applied. - * + * * @return the columnName value. */ String columnName(); /** * Gets the maskingFunction property: The masking function that is used for the data masking rule. - * + * * @return the maskingFunction value. */ DataMaskingFunction maskingFunction(); @@ -100,7 +102,7 @@ public interface DataMaskingRule { /** * Gets the numberFrom property: The numberFrom property of the masking rule. Required if maskingFunction is set to * Number, otherwise this parameter will be ignored. - * + * * @return the numberFrom value. */ String numberFrom(); @@ -108,7 +110,7 @@ public interface DataMaskingRule { /** * Gets the numberTo property: The numberTo property of the data masking rule. Required if maskingFunction is set to * Number, otherwise this parameter will be ignored. - * + * * @return the numberTo value. */ String numberTo(); @@ -116,7 +118,7 @@ public interface DataMaskingRule { /** * Gets the prefixSize property: If maskingFunction is set to Text, the number of characters to show unmasked in the * beginning of the string. Otherwise, this parameter will be ignored. - * + * * @return the prefixSize value. */ String prefixSize(); @@ -124,7 +126,7 @@ public interface DataMaskingRule { /** * Gets the suffixSize property: If maskingFunction is set to Text, the number of characters to show unmasked at the * end of the string. Otherwise, this parameter will be ignored. - * + * * @return the suffixSize value. */ String suffixSize(); @@ -132,53 +134,63 @@ public interface DataMaskingRule { /** * Gets the replacementString property: If maskingFunction is set to Text, the character to use for masking the * unexposed part of the string. Otherwise, this parameter will be ignored. - * + * * @return the replacementString value. */ String replacementString(); /** * Gets the region of the resource. - * + * * @return the region of the resource. */ Region region(); /** * Gets the name of the resource region. - * + * * @return the name of the resource region. */ String regionName(); /** * Gets the name of the resource group. - * + * * @return the name of the resource group. */ String resourceGroupName(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.DataMaskingRuleInner object. - * + * * @return the inner object. */ DataMaskingRuleInner innerModel(); - /** The entirety of the DataMaskingRule definition. */ + /** + * The entirety of the DataMaskingRule definition. + */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { } - /** The DataMaskingRule definition stages. */ + + /** + * The DataMaskingRule definition stages. + */ interface DefinitionStages { - /** The first stage of the DataMaskingRule definition. */ + /** + * The first stage of the DataMaskingRule definition. + */ interface Blank extends WithParentResource { } - /** The stage of the DataMaskingRule definition allowing to specify parent resource. */ + + /** + * The stage of the DataMaskingRule definition allowing to specify parent resource. + */ interface WithParentResource { /** * Specifies resourceGroupName, workspaceName, sqlPoolName. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -186,338 +198,395 @@ interface WithParentResource { */ WithCreate withExistingSqlPool(String resourceGroupName, String workspaceName, String sqlPoolName); } + /** * The stage of the DataMaskingRule definition which contains all the minimum required properties for the * resource to be created, but also allows for any other optional properties to be specified. */ - interface WithCreate - extends DefinitionStages.WithAliasName, - DefinitionStages.WithRuleState, - DefinitionStages.WithSchemaName, - DefinitionStages.WithTableName, - DefinitionStages.WithColumnName, - DefinitionStages.WithMaskingFunction, - DefinitionStages.WithNumberFrom, - DefinitionStages.WithNumberTo, - DefinitionStages.WithPrefixSize, - DefinitionStages.WithSuffixSize, - DefinitionStages.WithReplacementString { + interface WithCreate extends DefinitionStages.WithAliasName, DefinitionStages.WithRuleState, + DefinitionStages.WithSchemaName, DefinitionStages.WithTableName, DefinitionStages.WithColumnName, + DefinitionStages.WithMaskingFunction, DefinitionStages.WithNumberFrom, DefinitionStages.WithNumberTo, + DefinitionStages.WithPrefixSize, DefinitionStages.WithSuffixSize, DefinitionStages.WithReplacementString { /** * Executes the create request. - * + * * @return the created resource. */ DataMaskingRule create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ DataMaskingRule create(Context context); } - /** The stage of the DataMaskingRule definition allowing to specify aliasName. */ + + /** + * The stage of the DataMaskingRule definition allowing to specify aliasName. + */ interface WithAliasName { /** * Specifies the aliasName property: The alias name. This is a legacy parameter and is no longer used.. - * + * * @param aliasName The alias name. This is a legacy parameter and is no longer used. * @return the next definition stage. */ WithCreate withAliasName(String aliasName); } - /** The stage of the DataMaskingRule definition allowing to specify ruleState. */ + + /** + * The stage of the DataMaskingRule definition allowing to specify ruleState. + */ interface WithRuleState { /** * Specifies the ruleState property: The rule state. Used to delete a rule. To delete an existing rule, * specify the schemaName, tableName, columnName, maskingFunction, and specify ruleState as disabled. * However, if the rule doesn't already exist, the rule will be created with ruleState set to enabled, * regardless of the provided value of ruleState.. - * + * * @param ruleState The rule state. Used to delete a rule. To delete an existing rule, specify the - * schemaName, tableName, columnName, maskingFunction, and specify ruleState as disabled. However, if - * the rule doesn't already exist, the rule will be created with ruleState set to enabled, regardless of - * the provided value of ruleState. + * schemaName, tableName, columnName, maskingFunction, and specify ruleState as disabled. However, if the + * rule doesn't already exist, the rule will be created with ruleState set to enabled, regardless of the + * provided value of ruleState. * @return the next definition stage. */ WithCreate withRuleState(DataMaskingRuleState ruleState); } - /** The stage of the DataMaskingRule definition allowing to specify schemaName. */ + + /** + * The stage of the DataMaskingRule definition allowing to specify schemaName. + */ interface WithSchemaName { /** * Specifies the schemaName property: The schema name on which the data masking rule is applied.. - * + * * @param schemaName The schema name on which the data masking rule is applied. * @return the next definition stage. */ WithCreate withSchemaName(String schemaName); } - /** The stage of the DataMaskingRule definition allowing to specify tableName. */ + + /** + * The stage of the DataMaskingRule definition allowing to specify tableName. + */ interface WithTableName { /** * Specifies the tableName property: The table name on which the data masking rule is applied.. - * + * * @param tableName The table name on which the data masking rule is applied. * @return the next definition stage. */ WithCreate withTableName(String tableName); } - /** The stage of the DataMaskingRule definition allowing to specify columnName. */ + + /** + * The stage of the DataMaskingRule definition allowing to specify columnName. + */ interface WithColumnName { /** * Specifies the columnName property: The column name on which the data masking rule is applied.. - * + * * @param columnName The column name on which the data masking rule is applied. * @return the next definition stage. */ WithCreate withColumnName(String columnName); } - /** The stage of the DataMaskingRule definition allowing to specify maskingFunction. */ + + /** + * The stage of the DataMaskingRule definition allowing to specify maskingFunction. + */ interface WithMaskingFunction { /** * Specifies the maskingFunction property: The masking function that is used for the data masking rule.. - * + * * @param maskingFunction The masking function that is used for the data masking rule. * @return the next definition stage. */ WithCreate withMaskingFunction(DataMaskingFunction maskingFunction); } - /** The stage of the DataMaskingRule definition allowing to specify numberFrom. */ + + /** + * The stage of the DataMaskingRule definition allowing to specify numberFrom. + */ interface WithNumberFrom { /** * Specifies the numberFrom property: The numberFrom property of the masking rule. Required if * maskingFunction is set to Number, otherwise this parameter will be ignored.. - * + * * @param numberFrom The numberFrom property of the masking rule. Required if maskingFunction is set to - * Number, otherwise this parameter will be ignored. + * Number, otherwise this parameter will be ignored. * @return the next definition stage. */ WithCreate withNumberFrom(String numberFrom); } - /** The stage of the DataMaskingRule definition allowing to specify numberTo. */ + + /** + * The stage of the DataMaskingRule definition allowing to specify numberTo. + */ interface WithNumberTo { /** * Specifies the numberTo property: The numberTo property of the data masking rule. Required if * maskingFunction is set to Number, otherwise this parameter will be ignored.. - * + * * @param numberTo The numberTo property of the data masking rule. Required if maskingFunction is set to - * Number, otherwise this parameter will be ignored. + * Number, otherwise this parameter will be ignored. * @return the next definition stage. */ WithCreate withNumberTo(String numberTo); } - /** The stage of the DataMaskingRule definition allowing to specify prefixSize. */ + + /** + * The stage of the DataMaskingRule definition allowing to specify prefixSize. + */ interface WithPrefixSize { /** * Specifies the prefixSize property: If maskingFunction is set to Text, the number of characters to show * unmasked in the beginning of the string. Otherwise, this parameter will be ignored.. - * + * * @param prefixSize If maskingFunction is set to Text, the number of characters to show unmasked in the - * beginning of the string. Otherwise, this parameter will be ignored. + * beginning of the string. Otherwise, this parameter will be ignored. * @return the next definition stage. */ WithCreate withPrefixSize(String prefixSize); } - /** The stage of the DataMaskingRule definition allowing to specify suffixSize. */ + + /** + * The stage of the DataMaskingRule definition allowing to specify suffixSize. + */ interface WithSuffixSize { /** * Specifies the suffixSize property: If maskingFunction is set to Text, the number of characters to show * unmasked at the end of the string. Otherwise, this parameter will be ignored.. - * + * * @param suffixSize If maskingFunction is set to Text, the number of characters to show unmasked at the end - * of the string. Otherwise, this parameter will be ignored. + * of the string. Otherwise, this parameter will be ignored. * @return the next definition stage. */ WithCreate withSuffixSize(String suffixSize); } - /** The stage of the DataMaskingRule definition allowing to specify replacementString. */ + + /** + * The stage of the DataMaskingRule definition allowing to specify replacementString. + */ interface WithReplacementString { /** * Specifies the replacementString property: If maskingFunction is set to Text, the character to use for * masking the unexposed part of the string. Otherwise, this parameter will be ignored.. - * + * * @param replacementString If maskingFunction is set to Text, the character to use for masking the - * unexposed part of the string. Otherwise, this parameter will be ignored. + * unexposed part of the string. Otherwise, this parameter will be ignored. * @return the next definition stage. */ WithCreate withReplacementString(String replacementString); } } + /** * Begins update for the DataMaskingRule resource. - * + * * @return the stage of resource update. */ DataMaskingRule.Update update(); - /** The template for DataMaskingRule update. */ - interface Update - extends UpdateStages.WithAliasName, - UpdateStages.WithRuleState, - UpdateStages.WithSchemaName, - UpdateStages.WithTableName, - UpdateStages.WithColumnName, - UpdateStages.WithMaskingFunction, - UpdateStages.WithNumberFrom, - UpdateStages.WithNumberTo, - UpdateStages.WithPrefixSize, - UpdateStages.WithSuffixSize, - UpdateStages.WithReplacementString { + /** + * The template for DataMaskingRule update. + */ + interface Update extends UpdateStages.WithAliasName, UpdateStages.WithRuleState, UpdateStages.WithSchemaName, + UpdateStages.WithTableName, UpdateStages.WithColumnName, UpdateStages.WithMaskingFunction, + UpdateStages.WithNumberFrom, UpdateStages.WithNumberTo, UpdateStages.WithPrefixSize, + UpdateStages.WithSuffixSize, UpdateStages.WithReplacementString { /** * Executes the update request. - * + * * @return the updated resource. */ DataMaskingRule apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ DataMaskingRule apply(Context context); } - /** The DataMaskingRule update stages. */ + + /** + * The DataMaskingRule update stages. + */ interface UpdateStages { - /** The stage of the DataMaskingRule update allowing to specify aliasName. */ + /** + * The stage of the DataMaskingRule update allowing to specify aliasName. + */ interface WithAliasName { /** * Specifies the aliasName property: The alias name. This is a legacy parameter and is no longer used.. - * + * * @param aliasName The alias name. This is a legacy parameter and is no longer used. * @return the next definition stage. */ Update withAliasName(String aliasName); } - /** The stage of the DataMaskingRule update allowing to specify ruleState. */ + + /** + * The stage of the DataMaskingRule update allowing to specify ruleState. + */ interface WithRuleState { /** * Specifies the ruleState property: The rule state. Used to delete a rule. To delete an existing rule, * specify the schemaName, tableName, columnName, maskingFunction, and specify ruleState as disabled. * However, if the rule doesn't already exist, the rule will be created with ruleState set to enabled, * regardless of the provided value of ruleState.. - * + * * @param ruleState The rule state. Used to delete a rule. To delete an existing rule, specify the - * schemaName, tableName, columnName, maskingFunction, and specify ruleState as disabled. However, if - * the rule doesn't already exist, the rule will be created with ruleState set to enabled, regardless of - * the provided value of ruleState. + * schemaName, tableName, columnName, maskingFunction, and specify ruleState as disabled. However, if the + * rule doesn't already exist, the rule will be created with ruleState set to enabled, regardless of the + * provided value of ruleState. * @return the next definition stage. */ Update withRuleState(DataMaskingRuleState ruleState); } - /** The stage of the DataMaskingRule update allowing to specify schemaName. */ + + /** + * The stage of the DataMaskingRule update allowing to specify schemaName. + */ interface WithSchemaName { /** * Specifies the schemaName property: The schema name on which the data masking rule is applied.. - * + * * @param schemaName The schema name on which the data masking rule is applied. * @return the next definition stage. */ Update withSchemaName(String schemaName); } - /** The stage of the DataMaskingRule update allowing to specify tableName. */ + + /** + * The stage of the DataMaskingRule update allowing to specify tableName. + */ interface WithTableName { /** * Specifies the tableName property: The table name on which the data masking rule is applied.. - * + * * @param tableName The table name on which the data masking rule is applied. * @return the next definition stage. */ Update withTableName(String tableName); } - /** The stage of the DataMaskingRule update allowing to specify columnName. */ + + /** + * The stage of the DataMaskingRule update allowing to specify columnName. + */ interface WithColumnName { /** * Specifies the columnName property: The column name on which the data masking rule is applied.. - * + * * @param columnName The column name on which the data masking rule is applied. * @return the next definition stage. */ Update withColumnName(String columnName); } - /** The stage of the DataMaskingRule update allowing to specify maskingFunction. */ + + /** + * The stage of the DataMaskingRule update allowing to specify maskingFunction. + */ interface WithMaskingFunction { /** * Specifies the maskingFunction property: The masking function that is used for the data masking rule.. - * + * * @param maskingFunction The masking function that is used for the data masking rule. * @return the next definition stage. */ Update withMaskingFunction(DataMaskingFunction maskingFunction); } - /** The stage of the DataMaskingRule update allowing to specify numberFrom. */ + + /** + * The stage of the DataMaskingRule update allowing to specify numberFrom. + */ interface WithNumberFrom { /** * Specifies the numberFrom property: The numberFrom property of the masking rule. Required if * maskingFunction is set to Number, otherwise this parameter will be ignored.. - * + * * @param numberFrom The numberFrom property of the masking rule. Required if maskingFunction is set to - * Number, otherwise this parameter will be ignored. + * Number, otherwise this parameter will be ignored. * @return the next definition stage. */ Update withNumberFrom(String numberFrom); } - /** The stage of the DataMaskingRule update allowing to specify numberTo. */ + + /** + * The stage of the DataMaskingRule update allowing to specify numberTo. + */ interface WithNumberTo { /** * Specifies the numberTo property: The numberTo property of the data masking rule. Required if * maskingFunction is set to Number, otherwise this parameter will be ignored.. - * + * * @param numberTo The numberTo property of the data masking rule. Required if maskingFunction is set to - * Number, otherwise this parameter will be ignored. + * Number, otherwise this parameter will be ignored. * @return the next definition stage. */ Update withNumberTo(String numberTo); } - /** The stage of the DataMaskingRule update allowing to specify prefixSize. */ + + /** + * The stage of the DataMaskingRule update allowing to specify prefixSize. + */ interface WithPrefixSize { /** * Specifies the prefixSize property: If maskingFunction is set to Text, the number of characters to show * unmasked in the beginning of the string. Otherwise, this parameter will be ignored.. - * + * * @param prefixSize If maskingFunction is set to Text, the number of characters to show unmasked in the - * beginning of the string. Otherwise, this parameter will be ignored. + * beginning of the string. Otherwise, this parameter will be ignored. * @return the next definition stage. */ Update withPrefixSize(String prefixSize); } - /** The stage of the DataMaskingRule update allowing to specify suffixSize. */ + + /** + * The stage of the DataMaskingRule update allowing to specify suffixSize. + */ interface WithSuffixSize { /** * Specifies the suffixSize property: If maskingFunction is set to Text, the number of characters to show * unmasked at the end of the string. Otherwise, this parameter will be ignored.. - * + * * @param suffixSize If maskingFunction is set to Text, the number of characters to show unmasked at the end - * of the string. Otherwise, this parameter will be ignored. + * of the string. Otherwise, this parameter will be ignored. * @return the next definition stage. */ Update withSuffixSize(String suffixSize); } - /** The stage of the DataMaskingRule update allowing to specify replacementString. */ + + /** + * The stage of the DataMaskingRule update allowing to specify replacementString. + */ interface WithReplacementString { /** * Specifies the replacementString property: If maskingFunction is set to Text, the character to use for * masking the unexposed part of the string. Otherwise, this parameter will be ignored.. - * + * * @param replacementString If maskingFunction is set to Text, the character to use for masking the - * unexposed part of the string. Otherwise, this parameter will be ignored. + * unexposed part of the string. Otherwise, this parameter will be ignored. * @return the next definition stage. */ Update withReplacementString(String replacementString); } } + /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ DataMaskingRule refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingRuleListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingRuleListResult.java index ea6e2625b9f3..2a5adb925ddc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingRuleListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingRuleListResult.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The response to a list data masking rules request. */ +/** + * The response to a list data masking rules request. + */ @Fluent public final class DataMaskingRuleListResult { /* @@ -18,13 +20,15 @@ public final class DataMaskingRuleListResult { @JsonProperty(value = "value") private List value; - /** Creates an instance of DataMaskingRuleListResult class. */ + /** + * Creates an instance of DataMaskingRuleListResult class. + */ public DataMaskingRuleListResult() { } /** * Get the value property: The list of Sql pool data masking rules. - * + * * @return the value value. */ public List value() { @@ -33,7 +37,7 @@ public List value() { /** * Set the value property: The list of Sql pool data masking rules. - * + * * @param value the value value to set. * @return the DataMaskingRuleListResult object itself. */ @@ -44,7 +48,7 @@ public DataMaskingRuleListResult withValue(List value) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingRuleState.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingRuleState.java index f0c90fed605e..c37ff744046e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingRuleState.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingRuleState.java @@ -13,13 +13,19 @@ * created with ruleState set to enabled, regardless of the provided value of ruleState. */ public enum DataMaskingRuleState { - /** Enum value Disabled. */ + /** + * Enum value Disabled. + */ DISABLED("Disabled"), - /** Enum value Enabled. */ + /** + * Enum value Enabled. + */ ENABLED("Enabled"); - /** The actual serialized value for a DataMaskingRuleState instance. */ + /** + * The actual serialized value for a DataMaskingRuleState instance. + */ private final String value; DataMaskingRuleState(String value) { @@ -28,7 +34,7 @@ public enum DataMaskingRuleState { /** * Parses a serialized value to a DataMaskingRuleState instance. - * + * * @param value the serialized value to parse. * @return the parsed DataMaskingRuleState object, or null if unable to parse. */ @@ -46,7 +52,9 @@ public static DataMaskingRuleState fromString(String value) { return null; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @JsonValue @Override public String toString() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingRules.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingRules.java index 98379c34bef3..02ce031396ea 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingRules.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingRules.java @@ -8,11 +8,13 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of DataMaskingRules. */ +/** + * Resource collection API of DataMaskingRules. + */ public interface DataMaskingRules { /** * Gets the specific Sql pool data masking rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -23,16 +25,12 @@ public interface DataMaskingRules { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the specific Sql pool data masking rule along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String dataMaskingRuleName, - Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + String dataMaskingRuleName, Context context); /** * Gets the specific Sql pool data masking rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -46,7 +44,7 @@ Response getWithResponse( /** * Gets a list of Sql pool data masking rules. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -59,7 +57,7 @@ Response getWithResponse( /** * Gets a list of Sql pool data masking rules. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -69,12 +67,12 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of Sql pool data masking rules as paginated response with {@link PagedIterable}. */ - PagedIterable listBySqlPool( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + PagedIterable listBySqlPool(String resourceGroupName, String workspaceName, String sqlPoolName, + Context context); /** * Gets the specific Sql pool data masking rule. - * + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -85,7 +83,7 @@ PagedIterable listBySqlPool( /** * Gets the specific Sql pool data masking rule. - * + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -97,7 +95,7 @@ PagedIterable listBySqlPool( /** * Begins definition for a new DataMaskingRule resource. - * + * * @param name resource name. * @return the first stage of the new DataMaskingRule definition. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingState.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingState.java index 5e4d54852547..207d178aebe9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingState.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataMaskingState.java @@ -7,15 +7,23 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -/** The state of the data masking policy. */ +/** + * The state of the data masking policy. + */ public enum DataMaskingState { - /** Enum value Disabled. */ + /** + * Enum value Disabled. + */ DISABLED("Disabled"), - /** Enum value Enabled. */ + /** + * Enum value Enabled. + */ ENABLED("Enabled"); - /** The actual serialized value for a DataMaskingState instance. */ + /** + * The actual serialized value for a DataMaskingState instance. + */ private final String value; DataMaskingState(String value) { @@ -24,7 +32,7 @@ public enum DataMaskingState { /** * Parses a serialized value to a DataMaskingState instance. - * + * * @param value the serialized value to parse. * @return the parsed DataMaskingState object, or null if unable to parse. */ @@ -42,7 +50,9 @@ public static DataMaskingState fromString(String value) { return null; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @JsonValue @Override public String toString() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataWarehouseUserActivities.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataWarehouseUserActivities.java index e890ba3de13c..73f520a45212 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataWarehouseUserActivities.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataWarehouseUserActivities.java @@ -6,39 +6,41 @@ import com.azure.resourcemanager.synapse.fluent.models.DataWarehouseUserActivitiesInner; -/** An immutable client-side representation of DataWarehouseUserActivities. */ +/** + * An immutable client-side representation of DataWarehouseUserActivities. + */ public interface DataWarehouseUserActivities { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the activeQueriesCount property: Count of running and suspended queries. - * + * * @return the activeQueriesCount value. */ Integer activeQueriesCount(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.DataWarehouseUserActivitiesInner object. - * + * * @return the inner object. */ DataWarehouseUserActivitiesInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataWarehouseUserActivityName.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataWarehouseUserActivityName.java index f85a465ceabb..65d602710a06 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataWarehouseUserActivityName.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DataWarehouseUserActivityName.java @@ -8,14 +8,18 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for DataWarehouseUserActivityName. */ +/** + * Defines values for DataWarehouseUserActivityName. + */ public final class DataWarehouseUserActivityName extends ExpandableStringEnum { - /** Static value current for DataWarehouseUserActivityName. */ + /** + * Static value current for DataWarehouseUserActivityName. + */ public static final DataWarehouseUserActivityName CURRENT = fromString("current"); /** * Creates a new instance of DataWarehouseUserActivityName value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -24,7 +28,7 @@ public DataWarehouseUserActivityName() { /** * Creates or finds a DataWarehouseUserActivityName from its string representation. - * + * * @param name a name to look for. * @return the corresponding DataWarehouseUserActivityName. */ @@ -35,7 +39,7 @@ public static DataWarehouseUserActivityName fromString(String name) { /** * Gets known DataWarehouseUserActivityName values. - * + * * @return known DataWarehouseUserActivityName values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Database.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Database.java index 44aae1458b90..bea60799da9a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Database.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Database.java @@ -7,46 +7,48 @@ import com.azure.core.management.SystemData; import com.azure.resourcemanager.synapse.fluent.models.DatabaseInner; -/** An immutable client-side representation of Database. */ +/** + * An immutable client-side representation of Database. + */ public interface Database { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the location property: Resource location. - * + * * @return the location value. */ String location(); /** * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ SystemData systemData(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.DatabaseInner object. - * + * * @return the inner object. */ DatabaseInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabaseCheckNameRequest.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabaseCheckNameRequest.java index 2ccafa11f61d..de508502eb17 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabaseCheckNameRequest.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabaseCheckNameRequest.java @@ -8,7 +8,9 @@ import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonProperty; -/** The result returned from a database check name availability request. */ +/** + * The result returned from a database check name availability request. + */ @Fluent public final class DatabaseCheckNameRequest { /* @@ -23,13 +25,15 @@ public final class DatabaseCheckNameRequest { @JsonProperty(value = "type", required = true) private Type type; - /** Creates an instance of DatabaseCheckNameRequest class. */ + /** + * Creates an instance of DatabaseCheckNameRequest class. + */ public DatabaseCheckNameRequest() { } /** * Get the name property: Resource name. - * + * * @return the name value. */ public String name() { @@ -38,7 +42,7 @@ public String name() { /** * Set the name property: Resource name. - * + * * @param name the name value to set. * @return the DatabaseCheckNameRequest object itself. */ @@ -49,7 +53,7 @@ public DatabaseCheckNameRequest withName(String name) { /** * Get the type property: The type of resource, for instance Microsoft.Synapse/workspaces/kustoPools/databases. - * + * * @return the type value. */ public Type type() { @@ -58,7 +62,7 @@ public Type type() { /** * Set the type property: The type of resource, for instance Microsoft.Synapse/workspaces/kustoPools/databases. - * + * * @param type the type value to set. * @return the DatabaseCheckNameRequest object itself. */ @@ -69,19 +73,17 @@ public DatabaseCheckNameRequest withType(Type type) { /** * 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 DatabaseCheckNameRequest")); + throw LOGGER.logExceptionAsError( + new IllegalArgumentException("Missing required property name in model DatabaseCheckNameRequest")); } if (type() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property type in model DatabaseCheckNameRequest")); + throw LOGGER.logExceptionAsError( + new IllegalArgumentException("Missing required property type in model DatabaseCheckNameRequest")); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabaseListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabaseListResult.java index b4f1a4ddaa91..73e8a604db9d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabaseListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabaseListResult.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The list Kusto databases operation response. */ +/** + * The list Kusto databases operation response. + */ @Fluent public final class DatabaseListResult { /* @@ -18,13 +20,15 @@ public final class DatabaseListResult { @JsonProperty(value = "value") private List value; - /** Creates an instance of DatabaseListResult class. */ + /** + * Creates an instance of DatabaseListResult class. + */ public DatabaseListResult() { } /** * Get the value property: The list of Kusto databases. - * + * * @return the value value. */ public List value() { @@ -33,7 +37,7 @@ public List value() { /** * Set the value property: The list of Kusto databases. - * + * * @param value the value value to set. * @return the DatabaseListResult object itself. */ @@ -44,7 +48,7 @@ public DatabaseListResult withValue(List value) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabasePrincipalAssignment.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabasePrincipalAssignment.java index f85523763186..7fc9c764d433 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabasePrincipalAssignment.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabasePrincipalAssignment.java @@ -8,32 +8,34 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.synapse.fluent.models.DatabasePrincipalAssignmentInner; -/** An immutable client-side representation of DatabasePrincipalAssignment. */ +/** + * An immutable client-side representation of DatabasePrincipalAssignment. + */ public interface DatabasePrincipalAssignment { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ SystemData systemData(); @@ -41,247 +43,282 @@ public interface DatabasePrincipalAssignment { /** * Gets the principalId property: The principal ID assigned to the database principal. It can be a user email, * application ID, or security group name. - * + * * @return the principalId value. */ String principalId(); /** * Gets the role property: Database principal role. - * + * * @return the role value. */ DatabasePrincipalRole role(); /** * Gets the tenantId property: The tenant id of the principal. - * + * * @return the tenantId value. */ String tenantId(); /** * Gets the principalType property: Principal type. - * + * * @return the principalType value. */ PrincipalType principalType(); /** * Gets the tenantName property: The tenant name of the principal. - * + * * @return the tenantName value. */ String tenantName(); /** * Gets the principalName property: The principal name. - * + * * @return the principalName value. */ String principalName(); /** * Gets the provisioningState property: The provisioned state of the resource. - * + * * @return the provisioningState value. */ ResourceProvisioningState provisioningState(); /** * Gets the aadObjectId property: The service principal object id in AAD (Azure active directory). - * + * * @return the aadObjectId value. */ String aadObjectId(); /** * Gets the name of the resource group. - * + * * @return the name of the resource group. */ String resourceGroupName(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.DatabasePrincipalAssignmentInner object. - * + * * @return the inner object. */ DatabasePrincipalAssignmentInner innerModel(); - /** The entirety of the DatabasePrincipalAssignment definition. */ + /** + * The entirety of the DatabasePrincipalAssignment definition. + */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { } - /** The DatabasePrincipalAssignment definition stages. */ + + /** + * The DatabasePrincipalAssignment definition stages. + */ interface DefinitionStages { - /** The first stage of the DatabasePrincipalAssignment definition. */ + /** + * The first stage of the DatabasePrincipalAssignment definition. + */ interface Blank extends WithParentResource { } - /** The stage of the DatabasePrincipalAssignment definition allowing to specify parent resource. */ + + /** + * The stage of the DatabasePrincipalAssignment definition allowing to specify parent resource. + */ interface WithParentResource { /** * Specifies workspaceName, kustoPoolName, databaseName, resourceGroupName. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @return the next definition stage. */ - WithCreate withExistingDatabase( - String workspaceName, String kustoPoolName, String databaseName, String resourceGroupName); + WithCreate withExistingDatabase(String workspaceName, String kustoPoolName, String databaseName, + String resourceGroupName); } + /** * The stage of the DatabasePrincipalAssignment definition which contains all the minimum required properties * for the resource to be created, but also allows for any other optional properties to be specified. */ - interface WithCreate - extends DefinitionStages.WithPrincipalId, - DefinitionStages.WithRole, - DefinitionStages.WithTenantId, - DefinitionStages.WithPrincipalType { + interface WithCreate extends DefinitionStages.WithPrincipalId, DefinitionStages.WithRole, + DefinitionStages.WithTenantId, DefinitionStages.WithPrincipalType { /** * Executes the create request. - * + * * @return the created resource. */ DatabasePrincipalAssignment create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ DatabasePrincipalAssignment create(Context context); } - /** The stage of the DatabasePrincipalAssignment definition allowing to specify principalId. */ + + /** + * The stage of the DatabasePrincipalAssignment definition allowing to specify principalId. + */ interface WithPrincipalId { /** * Specifies the principalId property: The principal ID assigned to the database principal. It can be a user * email, application ID, or security group name.. - * + * * @param principalId The principal ID assigned to the database principal. It can be a user email, - * application ID, or security group name. + * application ID, or security group name. * @return the next definition stage. */ WithCreate withPrincipalId(String principalId); } - /** The stage of the DatabasePrincipalAssignment definition allowing to specify role. */ + + /** + * The stage of the DatabasePrincipalAssignment definition allowing to specify role. + */ interface WithRole { /** * Specifies the role property: Database principal role.. - * + * * @param role Database principal role. * @return the next definition stage. */ WithCreate withRole(DatabasePrincipalRole role); } - /** The stage of the DatabasePrincipalAssignment definition allowing to specify tenantId. */ + + /** + * The stage of the DatabasePrincipalAssignment definition allowing to specify tenantId. + */ interface WithTenantId { /** * Specifies the tenantId property: The tenant id of the principal. - * + * * @param tenantId The tenant id of the principal. * @return the next definition stage. */ WithCreate withTenantId(String tenantId); } - /** The stage of the DatabasePrincipalAssignment definition allowing to specify principalType. */ + + /** + * The stage of the DatabasePrincipalAssignment definition allowing to specify principalType. + */ interface WithPrincipalType { /** * Specifies the principalType property: Principal type.. - * + * * @param principalType Principal type. * @return the next definition stage. */ WithCreate withPrincipalType(PrincipalType principalType); } } + /** * Begins update for the DatabasePrincipalAssignment resource. - * + * * @return the stage of resource update. */ DatabasePrincipalAssignment.Update update(); - /** The template for DatabasePrincipalAssignment update. */ - interface Update - extends UpdateStages.WithPrincipalId, - UpdateStages.WithRole, - UpdateStages.WithTenantId, - UpdateStages.WithPrincipalType { + /** + * The template for DatabasePrincipalAssignment update. + */ + interface Update extends UpdateStages.WithPrincipalId, UpdateStages.WithRole, UpdateStages.WithTenantId, + UpdateStages.WithPrincipalType { /** * Executes the update request. - * + * * @return the updated resource. */ DatabasePrincipalAssignment apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ DatabasePrincipalAssignment apply(Context context); } - /** The DatabasePrincipalAssignment update stages. */ + + /** + * The DatabasePrincipalAssignment update stages. + */ interface UpdateStages { - /** The stage of the DatabasePrincipalAssignment update allowing to specify principalId. */ + /** + * The stage of the DatabasePrincipalAssignment update allowing to specify principalId. + */ interface WithPrincipalId { /** * Specifies the principalId property: The principal ID assigned to the database principal. It can be a user * email, application ID, or security group name.. - * + * * @param principalId The principal ID assigned to the database principal. It can be a user email, - * application ID, or security group name. + * application ID, or security group name. * @return the next definition stage. */ Update withPrincipalId(String principalId); } - /** The stage of the DatabasePrincipalAssignment update allowing to specify role. */ + + /** + * The stage of the DatabasePrincipalAssignment update allowing to specify role. + */ interface WithRole { /** * Specifies the role property: Database principal role.. - * + * * @param role Database principal role. * @return the next definition stage. */ Update withRole(DatabasePrincipalRole role); } - /** The stage of the DatabasePrincipalAssignment update allowing to specify tenantId. */ + + /** + * The stage of the DatabasePrincipalAssignment update allowing to specify tenantId. + */ interface WithTenantId { /** * Specifies the tenantId property: The tenant id of the principal. - * + * * @param tenantId The tenant id of the principal. * @return the next definition stage. */ Update withTenantId(String tenantId); } - /** The stage of the DatabasePrincipalAssignment update allowing to specify principalType. */ + + /** + * The stage of the DatabasePrincipalAssignment update allowing to specify principalType. + */ interface WithPrincipalType { /** * Specifies the principalType property: Principal type.. - * + * * @param principalType Principal type. * @return the next definition stage. */ Update withPrincipalType(PrincipalType principalType); } } + /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ DatabasePrincipalAssignment refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabasePrincipalAssignmentCheckNameRequest.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabasePrincipalAssignmentCheckNameRequest.java index ecd2aa9be2e6..5865cbbcc702 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabasePrincipalAssignmentCheckNameRequest.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabasePrincipalAssignmentCheckNameRequest.java @@ -8,7 +8,9 @@ import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonProperty; -/** A principal assignment check name availability request. */ +/** + * A principal assignment check name availability request. + */ @Fluent public final class DatabasePrincipalAssignmentCheckNameRequest { /* @@ -23,14 +25,15 @@ public final class DatabasePrincipalAssignmentCheckNameRequest { @JsonProperty(value = "type", required = true) private String type = "Microsoft.Synapse/workspaces/kustoPools/databases/principalAssignments"; - /** Creates an instance of DatabasePrincipalAssignmentCheckNameRequest class. */ + /** + * Creates an instance of DatabasePrincipalAssignmentCheckNameRequest class. + */ public DatabasePrincipalAssignmentCheckNameRequest() { - type = "Microsoft.Synapse/workspaces/kustoPools/databases/principalAssignments"; } /** * Get the name property: Principal Assignment resource name. - * + * * @return the name value. */ public String name() { @@ -39,7 +42,7 @@ public String name() { /** * Set the name property: Principal Assignment resource name. - * + * * @param name the name value to set. * @return the DatabasePrincipalAssignmentCheckNameRequest object itself. */ @@ -51,7 +54,7 @@ public DatabasePrincipalAssignmentCheckNameRequest withName(String name) { /** * Get the type property: The type of resource, * Microsoft.Synapse/workspaces/kustoPools/databases/principalAssignments. - * + * * @return the type value. */ public String type() { @@ -61,7 +64,7 @@ public String type() { /** * Set the type property: The type of resource, * Microsoft.Synapse/workspaces/kustoPools/databases/principalAssignments. - * + * * @param type the type value to set. * @return the DatabasePrincipalAssignmentCheckNameRequest object itself. */ @@ -72,15 +75,13 @@ public DatabasePrincipalAssignmentCheckNameRequest withType(String type) { /** * 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 DatabasePrincipalAssignmentCheckNameRequest")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property name in model DatabasePrincipalAssignmentCheckNameRequest")); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabasePrincipalAssignmentListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabasePrincipalAssignmentListResult.java index 8ef473f34e16..f3323a9e60db 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabasePrincipalAssignmentListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabasePrincipalAssignmentListResult.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The list Kusto database principal assignments operation response. */ +/** + * The list Kusto database principal assignments operation response. + */ @Fluent public final class DatabasePrincipalAssignmentListResult { /* @@ -18,13 +20,15 @@ public final class DatabasePrincipalAssignmentListResult { @JsonProperty(value = "value") private List value; - /** Creates an instance of DatabasePrincipalAssignmentListResult class. */ + /** + * Creates an instance of DatabasePrincipalAssignmentListResult class. + */ public DatabasePrincipalAssignmentListResult() { } /** * Get the value property: The list of Kusto database principal assignments. - * + * * @return the value value. */ public List value() { @@ -33,7 +37,7 @@ public List value() { /** * Set the value property: The list of Kusto database principal assignments. - * + * * @param value the value value to set. * @return the DatabasePrincipalAssignmentListResult object itself. */ @@ -44,7 +48,7 @@ public DatabasePrincipalAssignmentListResult withValue(List { - /** Static value Admin for DatabasePrincipalRole. */ + /** + * Static value Admin for DatabasePrincipalRole. + */ public static final DatabasePrincipalRole ADMIN = fromString("Admin"); - /** Static value Ingestor for DatabasePrincipalRole. */ + /** + * Static value Ingestor for DatabasePrincipalRole. + */ public static final DatabasePrincipalRole INGESTOR = fromString("Ingestor"); - /** Static value Monitor for DatabasePrincipalRole. */ + /** + * Static value Monitor for DatabasePrincipalRole. + */ public static final DatabasePrincipalRole MONITOR = fromString("Monitor"); - /** Static value User for DatabasePrincipalRole. */ + /** + * Static value User for DatabasePrincipalRole. + */ public static final DatabasePrincipalRole USER = fromString("User"); - /** Static value UnrestrictedViewer for DatabasePrincipalRole. */ + /** + * Static value UnrestrictedViewer for DatabasePrincipalRole. + */ public static final DatabasePrincipalRole UNRESTRICTED_VIEWER = fromString("UnrestrictedViewer"); - /** Static value Viewer for DatabasePrincipalRole. */ + /** + * Static value Viewer for DatabasePrincipalRole. + */ public static final DatabasePrincipalRole VIEWER = fromString("Viewer"); /** * Creates a new instance of DatabasePrincipalRole value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -39,7 +53,7 @@ public DatabasePrincipalRole() { /** * Creates or finds a DatabasePrincipalRole from its string representation. - * + * * @param name a name to look for. * @return the corresponding DatabasePrincipalRole. */ @@ -50,7 +64,7 @@ public static DatabasePrincipalRole fromString(String name) { /** * Gets known DatabasePrincipalRole values. - * + * * @return known DatabasePrincipalRole values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabaseStatistics.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabaseStatistics.java index 4b111f72055d..83076f962c3e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabaseStatistics.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DatabaseStatistics.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** A class that contains database statistics information. */ +/** + * A class that contains database statistics information. + */ @Fluent public final class DatabaseStatistics { /* @@ -16,13 +18,15 @@ public final class DatabaseStatistics { @JsonProperty(value = "size") private Float size; - /** Creates an instance of DatabaseStatistics class. */ + /** + * Creates an instance of DatabaseStatistics class. + */ public DatabaseStatistics() { } /** * Get the size property: The database size - the total size of compressed data and index in bytes. - * + * * @return the size value. */ public Float size() { @@ -31,7 +35,7 @@ public Float size() { /** * Set the size property: The database size - the total size of compressed data and index in bytes. - * + * * @param size the size value to set. * @return the DatabaseStatistics object itself. */ @@ -42,7 +46,7 @@ public DatabaseStatistics withSize(Float size) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DayOfWeek.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DayOfWeek.java index 0d828faf2684..ac9e5490be46 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DayOfWeek.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DayOfWeek.java @@ -8,32 +8,48 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Day of maintenance window. */ +/** + * Day of maintenance window. + */ public final class DayOfWeek extends ExpandableStringEnum { - /** Static value Sunday for DayOfWeek. */ + /** + * Static value Sunday for DayOfWeek. + */ public static final DayOfWeek SUNDAY = fromString("Sunday"); - /** Static value Monday for DayOfWeek. */ + /** + * Static value Monday for DayOfWeek. + */ public static final DayOfWeek MONDAY = fromString("Monday"); - /** Static value Tuesday for DayOfWeek. */ + /** + * Static value Tuesday for DayOfWeek. + */ public static final DayOfWeek TUESDAY = fromString("Tuesday"); - /** Static value Wednesday for DayOfWeek. */ + /** + * Static value Wednesday for DayOfWeek. + */ public static final DayOfWeek WEDNESDAY = fromString("Wednesday"); - /** Static value Thursday for DayOfWeek. */ + /** + * Static value Thursday for DayOfWeek. + */ public static final DayOfWeek THURSDAY = fromString("Thursday"); - /** Static value Friday for DayOfWeek. */ + /** + * Static value Friday for DayOfWeek. + */ public static final DayOfWeek FRIDAY = fromString("Friday"); - /** Static value Saturday for DayOfWeek. */ + /** + * Static value Saturday for DayOfWeek. + */ public static final DayOfWeek SATURDAY = fromString("Saturday"); /** * Creates a new instance of DayOfWeek value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -42,7 +58,7 @@ public DayOfWeek() { /** * Creates or finds a DayOfWeek from its string representation. - * + * * @param name a name to look for. * @return the corresponding DayOfWeek. */ @@ -53,7 +69,7 @@ public static DayOfWeek fromString(String name) { /** * Gets known DayOfWeek values. - * + * * @return known DayOfWeek values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DedicatedSQLminimalTlsSettings.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DedicatedSQLminimalTlsSettings.java index 420ca640b325..c972e82893ce 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DedicatedSQLminimalTlsSettings.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DedicatedSQLminimalTlsSettings.java @@ -6,46 +6,48 @@ import com.azure.resourcemanager.synapse.fluent.models.DedicatedSQLminimalTlsSettingsInner; -/** An immutable client-side representation of DedicatedSQLminimalTlsSettings. */ +/** + * An immutable client-side representation of DedicatedSQLminimalTlsSettings. + */ public interface DedicatedSQLminimalTlsSettings { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the location property: Resource location. - * + * * @return the location value. */ String location(); /** * Gets the minimalTlsVersion property: The minimal tls version of the sql server. - * + * * @return the minimalTlsVersion value. */ String minimalTlsVersion(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.DedicatedSQLminimalTlsSettingsInner object. - * + * * @return the inner object. */ DedicatedSQLminimalTlsSettingsInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DedicatedSQLminimalTlsSettingsListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DedicatedSQLminimalTlsSettingsListResult.java index d45c7f7de3e0..ad87cdead0ba 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DedicatedSQLminimalTlsSettingsListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DedicatedSQLminimalTlsSettingsListResult.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** A list of the server's dedicated sql minimal tls settings. */ +/** + * A list of the server's dedicated sql minimal tls settings. + */ @Immutable public final class DedicatedSQLminimalTlsSettingsListResult { /* @@ -24,13 +26,15 @@ public final class DedicatedSQLminimalTlsSettingsListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; - /** Creates an instance of DedicatedSQLminimalTlsSettingsListResult class. */ + /** + * Creates an instance of DedicatedSQLminimalTlsSettingsListResult class. + */ public DedicatedSQLminimalTlsSettingsListResult() { } /** * Get the value property: Array of results. - * + * * @return the value value. */ public List value() { @@ -39,7 +43,7 @@ public List value() { /** * Get the nextLink property: Link to retrieve next page of results. - * + * * @return the nextLink value. */ public String nextLink() { @@ -48,7 +52,7 @@ public String nextLink() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DedicatedSqlMinimalTlsSettingsName.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DedicatedSqlMinimalTlsSettingsName.java index 8440e16594e2..e9b0b08dd237 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DedicatedSqlMinimalTlsSettingsName.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DedicatedSqlMinimalTlsSettingsName.java @@ -8,14 +8,18 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for DedicatedSqlMinimalTlsSettingsName. */ +/** + * Defines values for DedicatedSqlMinimalTlsSettingsName. + */ public final class DedicatedSqlMinimalTlsSettingsName extends ExpandableStringEnum { - /** Static value default for DedicatedSqlMinimalTlsSettingsName. */ + /** + * Static value default for DedicatedSqlMinimalTlsSettingsName. + */ public static final DedicatedSqlMinimalTlsSettingsName DEFAULT = fromString("default"); /** * Creates a new instance of DedicatedSqlMinimalTlsSettingsName value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -24,7 +28,7 @@ public DedicatedSqlMinimalTlsSettingsName() { /** * Creates or finds a DedicatedSqlMinimalTlsSettingsName from its string representation. - * + * * @param name a name to look for. * @return the corresponding DedicatedSqlMinimalTlsSettingsName. */ @@ -35,7 +39,7 @@ public static DedicatedSqlMinimalTlsSettingsName fromString(String name) { /** * Gets known DedicatedSqlMinimalTlsSettingsName values. - * + * * @return known DedicatedSqlMinimalTlsSettingsName values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DefaultPrincipalsModificationKind.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DefaultPrincipalsModificationKind.java index 35af1990bb42..876a9b7c417d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DefaultPrincipalsModificationKind.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DefaultPrincipalsModificationKind.java @@ -8,20 +8,28 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The default principals modification kind. */ +/** + * The default principals modification kind. + */ public final class DefaultPrincipalsModificationKind extends ExpandableStringEnum { - /** Static value Union for DefaultPrincipalsModificationKind. */ + /** + * Static value Union for DefaultPrincipalsModificationKind. + */ public static final DefaultPrincipalsModificationKind UNION = fromString("Union"); - /** Static value Replace for DefaultPrincipalsModificationKind. */ + /** + * Static value Replace for DefaultPrincipalsModificationKind. + */ public static final DefaultPrincipalsModificationKind REPLACE = fromString("Replace"); - /** Static value None for DefaultPrincipalsModificationKind. */ + /** + * Static value None for DefaultPrincipalsModificationKind. + */ public static final DefaultPrincipalsModificationKind NONE = fromString("None"); /** * Creates a new instance of DefaultPrincipalsModificationKind value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -30,7 +38,7 @@ public DefaultPrincipalsModificationKind() { /** * Creates or finds a DefaultPrincipalsModificationKind from its string representation. - * + * * @param name a name to look for. * @return the corresponding DefaultPrincipalsModificationKind. */ @@ -41,7 +49,7 @@ public static DefaultPrincipalsModificationKind fromString(String name) { /** * Gets known DefaultPrincipalsModificationKind values. - * + * * @return known DefaultPrincipalsModificationKind values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DesiredState.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DesiredState.java index 7c54a078f825..824ab4a03ebb 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DesiredState.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DesiredState.java @@ -7,15 +7,23 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -/** Desired state. */ +/** + * Desired state. + */ public enum DesiredState { - /** Enum value Enabled. */ + /** + * Enum value Enabled. + */ ENABLED("Enabled"), - /** Enum value Disabled. */ + /** + * Enum value Disabled. + */ DISABLED("Disabled"); - /** The actual serialized value for a DesiredState instance. */ + /** + * The actual serialized value for a DesiredState instance. + */ private final String value; DesiredState(String value) { @@ -24,7 +32,7 @@ public enum DesiredState { /** * Parses a serialized value to a DesiredState instance. - * + * * @param value the serialized value to parse. * @return the parsed DesiredState object, or null if unable to parse. */ @@ -42,7 +50,9 @@ public static DesiredState fromString(String value) { return null; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @JsonValue @Override public String toString() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DynamicExecutorAllocation.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DynamicExecutorAllocation.java index efa01292aa1c..017f6af1dbf6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DynamicExecutorAllocation.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/DynamicExecutorAllocation.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Dynamic Executor Allocation Properties. */ +/** + * Dynamic Executor Allocation Properties. + */ @Fluent public final class DynamicExecutorAllocation { /* @@ -28,13 +30,15 @@ public final class DynamicExecutorAllocation { @JsonProperty(value = "maxExecutors") private Integer maxExecutors; - /** Creates an instance of DynamicExecutorAllocation class. */ + /** + * Creates an instance of DynamicExecutorAllocation class. + */ public DynamicExecutorAllocation() { } /** * Get the enabled property: Indicates whether Dynamic Executor Allocation is enabled or not. - * + * * @return the enabled value. */ public Boolean enabled() { @@ -43,7 +47,7 @@ public Boolean enabled() { /** * Set the enabled property: Indicates whether Dynamic Executor Allocation is enabled or not. - * + * * @param enabled the enabled value to set. * @return the DynamicExecutorAllocation object itself. */ @@ -54,7 +58,7 @@ public DynamicExecutorAllocation withEnabled(Boolean enabled) { /** * Get the minExecutors property: The minimum number of executors alloted. - * + * * @return the minExecutors value. */ public Integer minExecutors() { @@ -63,7 +67,7 @@ public Integer minExecutors() { /** * Set the minExecutors property: The minimum number of executors alloted. - * + * * @param minExecutors the minExecutors value to set. * @return the DynamicExecutorAllocation object itself. */ @@ -74,7 +78,7 @@ public DynamicExecutorAllocation withMinExecutors(Integer minExecutors) { /** * Get the maxExecutors property: The maximum number of executors alloted. - * + * * @return the maxExecutors value. */ public Integer maxExecutors() { @@ -83,7 +87,7 @@ public Integer maxExecutors() { /** * Set the maxExecutors property: The maximum number of executors alloted. - * + * * @param maxExecutors the maxExecutors value to set. * @return the DynamicExecutorAllocation object itself. */ @@ -94,7 +98,7 @@ public DynamicExecutorAllocation withMaxExecutors(Integer maxExecutors) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EncryptionDetails.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EncryptionDetails.java index 7d964d17eda4..447170c6e272 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EncryptionDetails.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EncryptionDetails.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Details of the encryption associated with the workspace. */ +/** + * Details of the encryption associated with the workspace. + */ @Fluent public final class EncryptionDetails { /* @@ -22,13 +24,15 @@ public final class EncryptionDetails { @JsonProperty(value = "cmk") private CustomerManagedKeyDetails cmk; - /** Creates an instance of EncryptionDetails class. */ + /** + * Creates an instance of EncryptionDetails class. + */ public EncryptionDetails() { } /** * Get the doubleEncryptionEnabled property: Double Encryption enabled. - * + * * @return the doubleEncryptionEnabled value. */ public Boolean doubleEncryptionEnabled() { @@ -37,7 +41,7 @@ public Boolean doubleEncryptionEnabled() { /** * Get the cmk property: Customer Managed Key Details. - * + * * @return the cmk value. */ public CustomerManagedKeyDetails cmk() { @@ -46,7 +50,7 @@ public CustomerManagedKeyDetails cmk() { /** * Set the cmk property: Customer Managed Key Details. - * + * * @param cmk the cmk value to set. * @return the EncryptionDetails object itself. */ @@ -57,7 +61,7 @@ public EncryptionDetails withCmk(CustomerManagedKeyDetails cmk) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EncryptionProtector.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EncryptionProtector.java index 40f1688b71d9..eee88c80adac 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EncryptionProtector.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EncryptionProtector.java @@ -8,126 +8,139 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.synapse.fluent.models.EncryptionProtectorInner; -/** An immutable client-side representation of EncryptionProtector. */ +/** + * An immutable client-side representation of EncryptionProtector. + */ public interface EncryptionProtector { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the kind property: Kind of encryption protector. This is metadata used for the Azure portal experience. - * + * * @return the kind value. */ String kind(); /** * Gets the location property: Resource location. - * + * * @return the location value. */ String location(); /** * Gets the subregion property: Subregion of the encryption protector. - * + * * @return the subregion value. */ String subregion(); /** * Gets the serverKeyName property: The name of the server key. - * + * * @return the serverKeyName value. */ String serverKeyName(); /** * Gets the serverKeyType property: The encryption protector type like 'ServiceManaged', 'AzureKeyVault'. - * + * * @return the serverKeyType value. */ ServerKeyType serverKeyType(); /** * Gets the uri property: The URI of the server key. - * + * * @return the uri value. */ String uri(); /** * Gets the thumbprint property: Thumbprint of the server key. - * + * * @return the thumbprint value. */ String thumbprint(); /** * Gets the region of the resource. - * + * * @return the region of the resource. */ Region region(); /** * Gets the name of the resource region. - * + * * @return the name of the resource region. */ String regionName(); /** * Gets the name of the resource group. - * + * * @return the name of the resource group. */ String resourceGroupName(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.EncryptionProtectorInner object. - * + * * @return the inner object. */ EncryptionProtectorInner innerModel(); - /** The entirety of the EncryptionProtector definition. */ + /** + * The entirety of the EncryptionProtector definition. + */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { } - /** The EncryptionProtector definition stages. */ + + /** + * The EncryptionProtector definition stages. + */ interface DefinitionStages { - /** The first stage of the EncryptionProtector definition. */ + /** + * The first stage of the EncryptionProtector definition. + */ interface Blank extends WithParentResource { } - /** The stage of the EncryptionProtector definition allowing to specify parent resource. */ + + /** + * The stage of the EncryptionProtector definition allowing to specify parent resource. + */ interface WithParentResource { /** * Specifies resourceGroupName, workspaceName. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @return the next definition stage. */ WithCreate withExistingWorkspace(String resourceGroupName, String workspaceName); } + /** * The stage of the EncryptionProtector definition which contains all the minimum required properties for the * resource to be created, but also allows for any other optional properties to be specified. @@ -135,99 +148,117 @@ interface WithParentResource { interface WithCreate extends DefinitionStages.WithServerKeyName, DefinitionStages.WithServerKeyType { /** * Executes the create request. - * + * * @return the created resource. */ EncryptionProtector create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ EncryptionProtector create(Context context); } - /** The stage of the EncryptionProtector definition allowing to specify serverKeyName. */ + + /** + * The stage of the EncryptionProtector definition allowing to specify serverKeyName. + */ interface WithServerKeyName { /** * Specifies the serverKeyName property: The name of the server key.. - * + * * @param serverKeyName The name of the server key. * @return the next definition stage. */ WithCreate withServerKeyName(String serverKeyName); } - /** The stage of the EncryptionProtector definition allowing to specify serverKeyType. */ + + /** + * The stage of the EncryptionProtector definition allowing to specify serverKeyType. + */ interface WithServerKeyType { /** * Specifies the serverKeyType property: The encryption protector type like 'ServiceManaged', * 'AzureKeyVault'.. - * + * * @param serverKeyType The encryption protector type like 'ServiceManaged', 'AzureKeyVault'. * @return the next definition stage. */ WithCreate withServerKeyType(ServerKeyType serverKeyType); } } + /** * Begins update for the EncryptionProtector resource. - * + * * @return the stage of resource update. */ EncryptionProtector.Update update(); - /** The template for EncryptionProtector update. */ + /** + * The template for EncryptionProtector update. + */ interface Update extends UpdateStages.WithServerKeyName, UpdateStages.WithServerKeyType { /** * Executes the update request. - * + * * @return the updated resource. */ EncryptionProtector apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ EncryptionProtector apply(Context context); } - /** The EncryptionProtector update stages. */ + + /** + * The EncryptionProtector update stages. + */ interface UpdateStages { - /** The stage of the EncryptionProtector update allowing to specify serverKeyName. */ + /** + * The stage of the EncryptionProtector update allowing to specify serverKeyName. + */ interface WithServerKeyName { /** * Specifies the serverKeyName property: The name of the server key.. - * + * * @param serverKeyName The name of the server key. * @return the next definition stage. */ Update withServerKeyName(String serverKeyName); } - /** The stage of the EncryptionProtector update allowing to specify serverKeyType. */ + + /** + * The stage of the EncryptionProtector update allowing to specify serverKeyType. + */ interface WithServerKeyType { /** * Specifies the serverKeyType property: The encryption protector type like 'ServiceManaged', * 'AzureKeyVault'.. - * + * * @param serverKeyType The encryption protector type like 'ServiceManaged', 'AzureKeyVault'. * @return the next definition stage. */ Update withServerKeyType(ServerKeyType serverKeyType); } } + /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ EncryptionProtector refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ @@ -235,9 +266,9 @@ interface WithServerKeyType { /** * Revalidates server's existing encryption protector. - * - *

Revalidates workspace managed sql server's existing encryption protector. - * + * + * Revalidates workspace managed sql server's existing encryption protector. + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @@ -245,9 +276,9 @@ interface WithServerKeyType { /** * Revalidates server's existing encryption protector. - * - *

Revalidates workspace managed sql server's existing encryption protector. - * + * + * Revalidates workspace managed sql server's existing encryption protector. + * * @param context The context to associate with this 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/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EncryptionProtectorListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EncryptionProtectorListResult.java index cd13b34f0836..cc83a2953102 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EncryptionProtectorListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EncryptionProtectorListResult.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** A list of server encryption protectors. */ +/** + * A list of server encryption protectors. + */ @Immutable public final class EncryptionProtectorListResult { /* @@ -24,13 +26,15 @@ public final class EncryptionProtectorListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; - /** Creates an instance of EncryptionProtectorListResult class. */ + /** + * Creates an instance of EncryptionProtectorListResult class. + */ public EncryptionProtectorListResult() { } /** * Get the value property: Array of results. - * + * * @return the value value. */ public List value() { @@ -39,7 +43,7 @@ public List value() { /** * Get the nextLink property: Link to retrieve next page of results. - * + * * @return the nextLink value. */ public String nextLink() { @@ -48,7 +52,7 @@ public String nextLink() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EncryptionProtectorName.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EncryptionProtectorName.java index 8f833fd4af81..1cb803949c3e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EncryptionProtectorName.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EncryptionProtectorName.java @@ -8,14 +8,18 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for EncryptionProtectorName. */ +/** + * Defines values for EncryptionProtectorName. + */ public final class EncryptionProtectorName extends ExpandableStringEnum { - /** Static value current for EncryptionProtectorName. */ + /** + * Static value current for EncryptionProtectorName. + */ public static final EncryptionProtectorName CURRENT = fromString("current"); /** * Creates a new instance of EncryptionProtectorName value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -24,7 +28,7 @@ public EncryptionProtectorName() { /** * Creates or finds a EncryptionProtectorName from its string representation. - * + * * @param name a name to look for. * @return the corresponding EncryptionProtectorName. */ @@ -35,7 +39,7 @@ public static EncryptionProtectorName fromString(String name) { /** * Gets known EncryptionProtectorName values. - * + * * @return known EncryptionProtectorName values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EntityReference.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EntityReference.java index 01207ba7c229..6c07cd6ba5f7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EntityReference.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EntityReference.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** The entity reference. */ +/** + * The entity reference. + */ @Fluent public final class EntityReference { /* @@ -22,13 +24,15 @@ public final class EntityReference { @JsonProperty(value = "referenceName") private String referenceName; - /** Creates an instance of EntityReference class. */ + /** + * Creates an instance of EntityReference class. + */ public EntityReference() { } /** * Get the type property: The type of this referenced entity. - * + * * @return the type value. */ public IntegrationRuntimeEntityReferenceType type() { @@ -37,7 +41,7 @@ public IntegrationRuntimeEntityReferenceType type() { /** * Set the type property: The type of this referenced entity. - * + * * @param type the type value to set. * @return the EntityReference object itself. */ @@ -48,7 +52,7 @@ public EntityReference withType(IntegrationRuntimeEntityReferenceType type) { /** * Get the referenceName property: The name of this referenced entity. - * + * * @return the referenceName value. */ public String referenceName() { @@ -57,7 +61,7 @@ public String referenceName() { /** * Set the referenceName property: The name of this referenced entity. - * + * * @param referenceName the referenceName value to set. * @return the EntityReference object itself. */ @@ -68,7 +72,7 @@ public EntityReference withReferenceName(String referenceName) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EntityResource.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EntityResource.java index d9f0af1415d4..eaccb86f4a97 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EntityResource.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EntityResource.java @@ -6,16 +6,20 @@ import com.azure.core.annotation.Immutable; -/** Azure Synapse nested resource, which belongs to a workspace. */ +/** + * Azure Synapse nested resource, which belongs to a workspace. + */ @Immutable public class EntityResource extends AzureEntityResource { - /** Creates an instance of EntityResource class. */ + /** + * Creates an instance of EntityResource class. + */ public EntityResource() { } /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ @Override diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EnvironmentVariableSetup.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EnvironmentVariableSetup.java index 4840ffd2c383..5b2a732061de 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EnvironmentVariableSetup.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EnvironmentVariableSetup.java @@ -11,7 +11,9 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; -/** The custom setup of setting environment variable. */ +/** + * The custom setup of setting environment variable. + */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("EnvironmentVariableSetup") @Fluent @@ -22,13 +24,15 @@ public final class EnvironmentVariableSetup extends CustomSetupBase { @JsonProperty(value = "typeProperties", required = true) private EnvironmentVariableSetupTypeProperties innerTypeProperties = new EnvironmentVariableSetupTypeProperties(); - /** Creates an instance of EnvironmentVariableSetup class. */ + /** + * Creates an instance of EnvironmentVariableSetup class. + */ public EnvironmentVariableSetup() { } /** * Get the innerTypeProperties property: Add environment variable type properties. - * + * * @return the innerTypeProperties value. */ private EnvironmentVariableSetupTypeProperties innerTypeProperties() { @@ -37,7 +41,7 @@ private EnvironmentVariableSetupTypeProperties innerTypeProperties() { /** * Get the variableName property: The name of the environment variable. - * + * * @return the variableName value. */ public String variableName() { @@ -46,7 +50,7 @@ public String variableName() { /** * Set the variableName property: The name of the environment variable. - * + * * @param variableName the variableName value to set. * @return the EnvironmentVariableSetup object itself. */ @@ -60,7 +64,7 @@ public EnvironmentVariableSetup withVariableName(String variableName) { /** * Get the variableValue property: The value of the environment variable. - * + * * @return the variableValue value. */ public String variableValue() { @@ -69,7 +73,7 @@ public String variableValue() { /** * Set the variableValue property: The value of the environment variable. - * + * * @param variableValue the variableValue value to set. * @return the EnvironmentVariableSetup object itself. */ @@ -83,17 +87,15 @@ public EnvironmentVariableSetup withVariableValue(String variableValue) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ @Override public void validate() { super.validate(); if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model EnvironmentVariableSetup")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property innerTypeProperties in model EnvironmentVariableSetup")); } else { innerTypeProperties().validate(); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EventGridDataConnection.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EventGridDataConnection.java index d84c0095bfbc..f26edc8f8ec9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EventGridDataConnection.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EventGridDataConnection.java @@ -11,7 +11,9 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; -/** Class representing an Event Grid data connection. */ +/** + * Class representing an Event Grid data connection. + */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "kind") @JsonTypeName("EventGrid") @Fluent @@ -22,20 +24,24 @@ public final class EventGridDataConnection extends DataConnectionInner { @JsonProperty(value = "properties") private EventGridConnectionProperties innerProperties; - /** Creates an instance of EventGridDataConnection class. */ + /** + * Creates an instance of EventGridDataConnection class. + */ public EventGridDataConnection() { } /** * Get the innerProperties property: The properties of the Event Grid data connection. - * + * * @return the innerProperties value. */ private EventGridConnectionProperties innerProperties() { return this.innerProperties; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public EventGridDataConnection withLocation(String location) { super.withLocation(location); @@ -44,7 +50,7 @@ public EventGridDataConnection withLocation(String location) { /** * Get the storageAccountResourceId property: The resource ID of the storage account where the data resides. - * + * * @return the storageAccountResourceId value. */ public String storageAccountResourceId() { @@ -53,7 +59,7 @@ public String storageAccountResourceId() { /** * Set the storageAccountResourceId property: The resource ID of the storage account where the data resides. - * + * * @param storageAccountResourceId the storageAccountResourceId value to set. * @return the EventGridDataConnection object itself. */ @@ -67,7 +73,7 @@ public EventGridDataConnection withStorageAccountResourceId(String storageAccoun /** * Get the eventHubResourceId property: The resource ID where the event grid is configured to send events. - * + * * @return the eventHubResourceId value. */ public String eventHubResourceId() { @@ -76,7 +82,7 @@ public String eventHubResourceId() { /** * Set the eventHubResourceId property: The resource ID where the event grid is configured to send events. - * + * * @param eventHubResourceId the eventHubResourceId value to set. * @return the EventGridDataConnection object itself. */ @@ -90,7 +96,7 @@ public EventGridDataConnection withEventHubResourceId(String eventHubResourceId) /** * Get the consumerGroup property: The event hub consumer group. - * + * * @return the consumerGroup value. */ public String consumerGroup() { @@ -99,7 +105,7 @@ public String consumerGroup() { /** * Set the consumerGroup property: The event hub consumer group. - * + * * @param consumerGroup the consumerGroup value to set. * @return the EventGridDataConnection object itself. */ @@ -114,7 +120,7 @@ public EventGridDataConnection withConsumerGroup(String consumerGroup) { /** * Get the tableName property: The table where the data should be ingested. Optionally the table information can be * added to each message. - * + * * @return the tableName value. */ public String tableName() { @@ -124,7 +130,7 @@ public String tableName() { /** * Set the tableName property: The table where the data should be ingested. Optionally the table information can be * added to each message. - * + * * @param tableName the tableName value to set. * @return the EventGridDataConnection object itself. */ @@ -139,7 +145,7 @@ public EventGridDataConnection withTableName(String tableName) { /** * Get the mappingRuleName property: The mapping rule to be used to ingest the data. Optionally the mapping * information can be added to each message. - * + * * @return the mappingRuleName value. */ public String mappingRuleName() { @@ -149,7 +155,7 @@ public String mappingRuleName() { /** * Set the mappingRuleName property: The mapping rule to be used to ingest the data. Optionally the mapping * information can be added to each message. - * + * * @param mappingRuleName the mappingRuleName value to set. * @return the EventGridDataConnection object itself. */ @@ -164,7 +170,7 @@ public EventGridDataConnection withMappingRuleName(String mappingRuleName) { /** * Get the dataFormat property: The data format of the message. Optionally the data format can be added to each * message. - * + * * @return the dataFormat value. */ public EventGridDataFormat dataFormat() { @@ -174,7 +180,7 @@ public EventGridDataFormat dataFormat() { /** * Set the dataFormat property: The data format of the message. Optionally the data format can be added to each * message. - * + * * @param dataFormat the dataFormat value to set. * @return the EventGridDataConnection object itself. */ @@ -189,7 +195,7 @@ public EventGridDataConnection withDataFormat(EventGridDataFormat dataFormat) { /** * Get the ignoreFirstRecord property: A Boolean value that, if set to true, indicates that ingestion should ignore * the first record of every file. - * + * * @return the ignoreFirstRecord value. */ public Boolean ignoreFirstRecord() { @@ -199,7 +205,7 @@ public Boolean ignoreFirstRecord() { /** * Set the ignoreFirstRecord property: A Boolean value that, if set to true, indicates that ingestion should ignore * the first record of every file. - * + * * @param ignoreFirstRecord the ignoreFirstRecord value to set. * @return the EventGridDataConnection object itself. */ @@ -213,7 +219,7 @@ public EventGridDataConnection withIgnoreFirstRecord(Boolean ignoreFirstRecord) /** * Get the blobStorageEventType property: The name of blob storage event type to process. - * + * * @return the blobStorageEventType value. */ public BlobStorageEventType blobStorageEventType() { @@ -222,7 +228,7 @@ public BlobStorageEventType blobStorageEventType() { /** * Set the blobStorageEventType property: The name of blob storage event type to process. - * + * * @param blobStorageEventType the blobStorageEventType value to set. * @return the EventGridDataConnection object itself. */ @@ -236,7 +242,7 @@ public EventGridDataConnection withBlobStorageEventType(BlobStorageEventType blo /** * Get the provisioningState property: The provisioned state of the resource. - * + * * @return the provisioningState value. */ public ResourceProvisioningState provisioningState() { @@ -245,7 +251,7 @@ public ResourceProvisioningState provisioningState() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ @Override diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EventGridDataFormat.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EventGridDataFormat.java index 64a3dd755a9c..d1e67603a2bf 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EventGridDataFormat.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EventGridDataFormat.java @@ -8,59 +8,93 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The data format of the message. Optionally the data format can be added to each message. */ +/** + * The data format of the message. Optionally the data format can be added to each message. + */ public final class EventGridDataFormat extends ExpandableStringEnum { - /** Static value MULTIJSON for EventGridDataFormat. */ + /** + * Static value MULTIJSON for EventGridDataFormat. + */ public static final EventGridDataFormat MULTIJSON = fromString("MULTIJSON"); - /** Static value JSON for EventGridDataFormat. */ + /** + * Static value JSON for EventGridDataFormat. + */ public static final EventGridDataFormat JSON = fromString("JSON"); - /** Static value CSV for EventGridDataFormat. */ + /** + * Static value CSV for EventGridDataFormat. + */ public static final EventGridDataFormat CSV = fromString("CSV"); - /** Static value TSV for EventGridDataFormat. */ + /** + * Static value TSV for EventGridDataFormat. + */ public static final EventGridDataFormat TSV = fromString("TSV"); - /** Static value SCSV for EventGridDataFormat. */ + /** + * Static value SCSV for EventGridDataFormat. + */ public static final EventGridDataFormat SCSV = fromString("SCSV"); - /** Static value SOHSV for EventGridDataFormat. */ + /** + * Static value SOHSV for EventGridDataFormat. + */ public static final EventGridDataFormat SOHSV = fromString("SOHSV"); - /** Static value PSV for EventGridDataFormat. */ + /** + * Static value PSV for EventGridDataFormat. + */ public static final EventGridDataFormat PSV = fromString("PSV"); - /** Static value TXT for EventGridDataFormat. */ + /** + * Static value TXT for EventGridDataFormat. + */ public static final EventGridDataFormat TXT = fromString("TXT"); - /** Static value RAW for EventGridDataFormat. */ + /** + * Static value RAW for EventGridDataFormat. + */ public static final EventGridDataFormat RAW = fromString("RAW"); - /** Static value SINGLEJSON for EventGridDataFormat. */ + /** + * Static value SINGLEJSON for EventGridDataFormat. + */ public static final EventGridDataFormat SINGLEJSON = fromString("SINGLEJSON"); - /** Static value AVRO for EventGridDataFormat. */ + /** + * Static value AVRO for EventGridDataFormat. + */ public static final EventGridDataFormat AVRO = fromString("AVRO"); - /** Static value TSVE for EventGridDataFormat. */ + /** + * Static value TSVE for EventGridDataFormat. + */ public static final EventGridDataFormat TSVE = fromString("TSVE"); - /** Static value PARQUET for EventGridDataFormat. */ + /** + * Static value PARQUET for EventGridDataFormat. + */ public static final EventGridDataFormat PARQUET = fromString("PARQUET"); - /** Static value ORC for EventGridDataFormat. */ + /** + * Static value ORC for EventGridDataFormat. + */ public static final EventGridDataFormat ORC = fromString("ORC"); - /** Static value APACHEAVRO for EventGridDataFormat. */ + /** + * Static value APACHEAVRO for EventGridDataFormat. + */ public static final EventGridDataFormat APACHEAVRO = fromString("APACHEAVRO"); - /** Static value W3CLOGFILE for EventGridDataFormat. */ + /** + * Static value W3CLOGFILE for EventGridDataFormat. + */ public static final EventGridDataFormat W3CLOGFILE = fromString("W3CLOGFILE"); /** * Creates a new instance of EventGridDataFormat value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -69,7 +103,7 @@ public EventGridDataFormat() { /** * Creates or finds a EventGridDataFormat from its string representation. - * + * * @param name a name to look for. * @return the corresponding EventGridDataFormat. */ @@ -80,7 +114,7 @@ public static EventGridDataFormat fromString(String name) { /** * Gets known EventGridDataFormat values. - * + * * @return known EventGridDataFormat values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EventHubDataConnection.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EventHubDataConnection.java index 60944612e953..53cb2ae5e145 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EventHubDataConnection.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EventHubDataConnection.java @@ -12,7 +12,9 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import java.util.List; -/** Class representing an event hub data connection. */ +/** + * Class representing an event hub data connection. + */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "kind") @JsonTypeName("EventHub") @Fluent @@ -23,20 +25,24 @@ public final class EventHubDataConnection extends DataConnectionInner { @JsonProperty(value = "properties") private EventHubConnectionProperties innerProperties; - /** Creates an instance of EventHubDataConnection class. */ + /** + * Creates an instance of EventHubDataConnection class. + */ public EventHubDataConnection() { } /** * Get the innerProperties property: The Event Hub data connection properties to validate. - * + * * @return the innerProperties value. */ private EventHubConnectionProperties innerProperties() { return this.innerProperties; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public EventHubDataConnection withLocation(String location) { super.withLocation(location); @@ -45,7 +51,7 @@ public EventHubDataConnection withLocation(String location) { /** * Get the eventHubResourceId property: The resource ID of the event hub to be used to create a data connection. - * + * * @return the eventHubResourceId value. */ public String eventHubResourceId() { @@ -54,7 +60,7 @@ public String eventHubResourceId() { /** * Set the eventHubResourceId property: The resource ID of the event hub to be used to create a data connection. - * + * * @param eventHubResourceId the eventHubResourceId value to set. * @return the EventHubDataConnection object itself. */ @@ -68,7 +74,7 @@ public EventHubDataConnection withEventHubResourceId(String eventHubResourceId) /** * Get the consumerGroup property: The event hub consumer group. - * + * * @return the consumerGroup value. */ public String consumerGroup() { @@ -77,7 +83,7 @@ public String consumerGroup() { /** * Set the consumerGroup property: The event hub consumer group. - * + * * @param consumerGroup the consumerGroup value to set. * @return the EventHubDataConnection object itself. */ @@ -92,7 +98,7 @@ public EventHubDataConnection withConsumerGroup(String consumerGroup) { /** * Get the tableName property: The table where the data should be ingested. Optionally the table information can be * added to each message. - * + * * @return the tableName value. */ public String tableName() { @@ -102,7 +108,7 @@ public String tableName() { /** * Set the tableName property: The table where the data should be ingested. Optionally the table information can be * added to each message. - * + * * @param tableName the tableName value to set. * @return the EventHubDataConnection object itself. */ @@ -117,7 +123,7 @@ public EventHubDataConnection withTableName(String tableName) { /** * Get the mappingRuleName property: The mapping rule to be used to ingest the data. Optionally the mapping * information can be added to each message. - * + * * @return the mappingRuleName value. */ public String mappingRuleName() { @@ -127,7 +133,7 @@ public String mappingRuleName() { /** * Set the mappingRuleName property: The mapping rule to be used to ingest the data. Optionally the mapping * information can be added to each message. - * + * * @param mappingRuleName the mappingRuleName value to set. * @return the EventHubDataConnection object itself. */ @@ -142,7 +148,7 @@ public EventHubDataConnection withMappingRuleName(String mappingRuleName) { /** * Get the dataFormat property: The data format of the message. Optionally the data format can be added to each * message. - * + * * @return the dataFormat value. */ public EventHubDataFormat dataFormat() { @@ -152,7 +158,7 @@ public EventHubDataFormat dataFormat() { /** * Set the dataFormat property: The data format of the message. Optionally the data format can be added to each * message. - * + * * @param dataFormat the dataFormat value to set. * @return the EventHubDataConnection object itself. */ @@ -166,7 +172,7 @@ public EventHubDataConnection withDataFormat(EventHubDataFormat dataFormat) { /** * Get the eventSystemProperties property: System properties of the event hub. - * + * * @return the eventSystemProperties value. */ public List eventSystemProperties() { @@ -175,7 +181,7 @@ public List eventSystemProperties() { /** * Set the eventSystemProperties property: System properties of the event hub. - * + * * @param eventSystemProperties the eventSystemProperties value to set. * @return the EventHubDataConnection object itself. */ @@ -189,7 +195,7 @@ public EventHubDataConnection withEventSystemProperties(List eventSystem /** * Get the compression property: The event hub messages compression type. - * + * * @return the compression value. */ public Compression compression() { @@ -198,7 +204,7 @@ public Compression compression() { /** * Set the compression property: The event hub messages compression type. - * + * * @param compression the compression value to set. * @return the EventHubDataConnection object itself. */ @@ -212,7 +218,7 @@ public EventHubDataConnection withCompression(Compression compression) { /** * Get the provisioningState property: The provisioned state of the resource. - * + * * @return the provisioningState value. */ public ResourceProvisioningState provisioningState() { @@ -220,9 +226,9 @@ public ResourceProvisioningState provisioningState() { } /** - * Get the managedIdentityResourceId property: The resource ID of a managed identity (system or user assigned) to be - * used to authenticate with event hub. - * + * Get the managedIdentityResourceId property: The resource ID of a managed identity (system or user assigned) to + * be used to authenticate with event hub. + * * @return the managedIdentityResourceId value. */ public String managedIdentityResourceId() { @@ -230,9 +236,9 @@ public String managedIdentityResourceId() { } /** - * Set the managedIdentityResourceId property: The resource ID of a managed identity (system or user assigned) to be - * used to authenticate with event hub. - * + * Set the managedIdentityResourceId property: The resource ID of a managed identity (system or user assigned) to + * be used to authenticate with event hub. + * * @param managedIdentityResourceId the managedIdentityResourceId value to set. * @return the EventHubDataConnection object itself. */ @@ -246,7 +252,7 @@ public EventHubDataConnection withManagedIdentityResourceId(String managedIdenti /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ @Override diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EventHubDataFormat.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EventHubDataFormat.java index 146c759f27f0..985e1a799535 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EventHubDataFormat.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/EventHubDataFormat.java @@ -8,59 +8,93 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The data format of the message. Optionally the data format can be added to each message. */ +/** + * The data format of the message. Optionally the data format can be added to each message. + */ public final class EventHubDataFormat extends ExpandableStringEnum { - /** Static value MULTIJSON for EventHubDataFormat. */ + /** + * Static value MULTIJSON for EventHubDataFormat. + */ public static final EventHubDataFormat MULTIJSON = fromString("MULTIJSON"); - /** Static value JSON for EventHubDataFormat. */ + /** + * Static value JSON for EventHubDataFormat. + */ public static final EventHubDataFormat JSON = fromString("JSON"); - /** Static value CSV for EventHubDataFormat. */ + /** + * Static value CSV for EventHubDataFormat. + */ public static final EventHubDataFormat CSV = fromString("CSV"); - /** Static value TSV for EventHubDataFormat. */ + /** + * Static value TSV for EventHubDataFormat. + */ public static final EventHubDataFormat TSV = fromString("TSV"); - /** Static value SCSV for EventHubDataFormat. */ + /** + * Static value SCSV for EventHubDataFormat. + */ public static final EventHubDataFormat SCSV = fromString("SCSV"); - /** Static value SOHSV for EventHubDataFormat. */ + /** + * Static value SOHSV for EventHubDataFormat. + */ public static final EventHubDataFormat SOHSV = fromString("SOHSV"); - /** Static value PSV for EventHubDataFormat. */ + /** + * Static value PSV for EventHubDataFormat. + */ public static final EventHubDataFormat PSV = fromString("PSV"); - /** Static value TXT for EventHubDataFormat. */ + /** + * Static value TXT for EventHubDataFormat. + */ public static final EventHubDataFormat TXT = fromString("TXT"); - /** Static value RAW for EventHubDataFormat. */ + /** + * Static value RAW for EventHubDataFormat. + */ public static final EventHubDataFormat RAW = fromString("RAW"); - /** Static value SINGLEJSON for EventHubDataFormat. */ + /** + * Static value SINGLEJSON for EventHubDataFormat. + */ public static final EventHubDataFormat SINGLEJSON = fromString("SINGLEJSON"); - /** Static value AVRO for EventHubDataFormat. */ + /** + * Static value AVRO for EventHubDataFormat. + */ public static final EventHubDataFormat AVRO = fromString("AVRO"); - /** Static value TSVE for EventHubDataFormat. */ + /** + * Static value TSVE for EventHubDataFormat. + */ public static final EventHubDataFormat TSVE = fromString("TSVE"); - /** Static value PARQUET for EventHubDataFormat. */ + /** + * Static value PARQUET for EventHubDataFormat. + */ public static final EventHubDataFormat PARQUET = fromString("PARQUET"); - /** Static value ORC for EventHubDataFormat. */ + /** + * Static value ORC for EventHubDataFormat. + */ public static final EventHubDataFormat ORC = fromString("ORC"); - /** Static value APACHEAVRO for EventHubDataFormat. */ + /** + * Static value APACHEAVRO for EventHubDataFormat. + */ public static final EventHubDataFormat APACHEAVRO = fromString("APACHEAVRO"); - /** Static value W3CLOGFILE for EventHubDataFormat. */ + /** + * Static value W3CLOGFILE for EventHubDataFormat. + */ public static final EventHubDataFormat W3CLOGFILE = fromString("W3CLOGFILE"); /** * Creates a new instance of EventHubDataFormat value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -69,7 +103,7 @@ public EventHubDataFormat() { /** * Creates or finds a EventHubDataFormat from its string representation. - * + * * @param name a name to look for. * @return the corresponding EventHubDataFormat. */ @@ -80,7 +114,7 @@ public static EventHubDataFormat fromString(String name) { /** * Gets known EventHubDataFormat values. - * + * * @return known EventHubDataFormat values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedServerBlobAuditingPolicy.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedServerBlobAuditingPolicy.java index 3b89356d5a6f..a27da6ba535a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedServerBlobAuditingPolicy.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedServerBlobAuditingPolicy.java @@ -9,32 +9,34 @@ import java.util.List; import java.util.UUID; -/** An immutable client-side representation of ExtendedServerBlobAuditingPolicy. */ +/** + * An immutable client-side representation of ExtendedServerBlobAuditingPolicy. + */ public interface ExtendedServerBlobAuditingPolicy { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the predicateExpression property: Specifies condition of where clause when creating an audit. - * + * * @return the predicateExpression value. */ String predicateExpression(); @@ -42,7 +44,7 @@ public interface ExtendedServerBlobAuditingPolicy { /** * Gets the state property: Specifies the state of the policy. If state is Enabled, storageEndpoint or * isAzureMonitorTargetEnabled are required. - * + * * @return the state value. */ BlobAuditingPolicyState state(); @@ -51,81 +53,108 @@ public interface ExtendedServerBlobAuditingPolicy { * Gets the storageEndpoint property: Specifies the blob storage endpoint (e.g. * https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is * required. - * + * * @return the storageEndpoint value. */ String storageEndpoint(); /** - * Gets the storageAccountAccessKey property: Specifies the identifier key of the auditing storage account. If state - * is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server - * system-assigned managed identity to access the storage. Prerequisites for using managed identity authentication: - * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). 2. Grant SQL Server - * identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server - * identity. For more information, see [Auditing to storage using Managed Identity + * Gets the storageAccountAccessKey property: Specifies the identifier key of the auditing storage account. + * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL + * server system-assigned managed identity to access the storage. + * Prerequisites for using managed identity authentication: + * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). + * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to + * the server identity. + * For more information, see [Auditing to storage using Managed Identity * authentication](https://go.microsoft.com/fwlink/?linkid=2114355). - * + * * @return the storageAccountAccessKey value. */ String storageAccountAccessKey(); /** * Gets the retentionDays property: Specifies the number of days to keep in the audit logs in the storage account. - * + * * @return the retentionDays value. */ Integer retentionDays(); /** * Gets the auditActionsAndGroups property: Specifies the Actions-Groups and Actions to audit. - * - *

The recommended set of action groups to use is the following combination - this will audit all the queries and + * + * The recommended set of action groups to use is the following combination - this will audit all the queries and * stored procedures executed against the database, as well as successful and failed logins: - * - *

BATCH_COMPLETED_GROUP, SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, FAILED_DATABASE_AUTHENTICATION_GROUP. - * - *

This above combination is also the set that is configured by default when enabling auditing from the Azure + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing from the Azure * portal. - * - *

The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. - * Using unnecessary groups could lead to very large quantities of audit records): - * - *

APPLICATION_ROLE_CHANGE_PASSWORD_GROUP BACKUP_RESTORE_GROUP DATABASE_LOGOUT_GROUP DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP DATABASE_OBJECT_PERMISSION_CHANGE_GROUP DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP DATABASE_PRINCIPAL_CHANGE_GROUP DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP FAILED_DATABASE_AUTHENTICATION_GROUP SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP USER_CHANGE_PASSWORD_GROUP BATCH_STARTED_GROUP BATCH_COMPLETED_GROUP - * - *

These are groups that cover all sql statements and stored procedures executed against the database, and should + * + * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. Using + * unnecessary groups could lead to very large quantities of audit records): + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP + * BATCH_COMPLETED_GROUP + * + * These are groups that cover all sql statements and stored procedures executed against the database, and should * not be used in combination with other groups as this will result in duplicate audit logs. - * - *

For more information, see [Database-Level Audit Action + * + * For more information, see [Database-Level Audit Action * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - *

For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified - * for Server auditing policy). The supported actions to audit are: SELECT UPDATE INSERT DELETE EXECUTE RECEIVE + * + * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for + * Server auditing policy). The supported actions to audit are: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE * REFERENCES - * - *

The general form for defining an action to be audited is: {action} ON {object} BY {principal} - * - *

Note that <object> in the above format can refer to an object like a table, view, or stored procedure, - * or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} - * are used, respectively. - * - *

For example: SELECT on dbo.myTable by public SELECT on DATABASE::myDatabase by public SELECT on - * SCHEMA::mySchema by public - * - *

For more information, see [Database-Level Audit + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note that <object> in the above format can refer to an object like a table, view, or stored procedure, or + * an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are + * used, respectively. + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For more information, see [Database-Level Audit * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions). - * + * * @return the auditActionsAndGroups value. */ List auditActionsAndGroups(); /** * Gets the storageAccountSubscriptionId property: Specifies the blob storage subscription Id. - * + * * @return the storageAccountSubscriptionId value. */ UUID storageAccountSubscriptionId(); @@ -133,273 +162,363 @@ public interface ExtendedServerBlobAuditingPolicy { /** * Gets the isStorageSecondaryKeyInUse property: Specifies whether storageAccountAccessKey value is the storage's * secondary key. - * + * * @return the isStorageSecondaryKeyInUse value. */ Boolean isStorageSecondaryKeyInUse(); /** - * Gets the isAzureMonitorTargetEnabled property: Specifies whether audit events are sent to Azure Monitor. In order - * to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as true. - * - *

When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs - * category on the database should be also created. Note that for server level audit you should use the 'master' - * database as {databaseName}. - * - *

Diagnostic Settings URI format: PUT + * Gets the isAzureMonitorTargetEnabled property: Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as + * true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs + * category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - *

For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) or - * [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). - * + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * * @return the isAzureMonitorTargetEnabled value. */ Boolean isAzureMonitorTargetEnabled(); /** * Gets the queueDelayMs property: Specifies the amount of time in milliseconds that can elapse before audit actions - * are forced to be processed. The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. - * + * are forced to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. + * * @return the queueDelayMs value. */ Integer queueDelayMs(); /** * Gets the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, devops logs - * will be sent to Azure Monitor. In order to send the events to Azure Monitor, specify 'State' as 'Enabled', - * 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true - * - *

When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs + * will be sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' as true + * and 'IsDevopsAuditEnabled' as true + * + * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs * category on the master database should also be created. - * - *

Diagnostic Settings URI format: PUT + * + * Diagnostic Settings URI format: + * PUT * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - *

For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) or - * [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). - * + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * * @return the isDevopsAuditEnabled value. */ Boolean isDevopsAuditEnabled(); /** * Gets the name of the resource group. - * + * * @return the name of the resource group. */ String resourceGroupName(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.ExtendedServerBlobAuditingPolicyInner object. - * + * * @return the inner object. */ ExtendedServerBlobAuditingPolicyInner innerModel(); - /** The entirety of the ExtendedServerBlobAuditingPolicy definition. */ + /** + * The entirety of the ExtendedServerBlobAuditingPolicy definition. + */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { } - /** The ExtendedServerBlobAuditingPolicy definition stages. */ + + /** + * The ExtendedServerBlobAuditingPolicy definition stages. + */ interface DefinitionStages { - /** The first stage of the ExtendedServerBlobAuditingPolicy definition. */ + /** + * The first stage of the ExtendedServerBlobAuditingPolicy definition. + */ interface Blank extends WithParentResource { } - /** The stage of the ExtendedServerBlobAuditingPolicy definition allowing to specify parent resource. */ + + /** + * The stage of the ExtendedServerBlobAuditingPolicy definition allowing to specify parent resource. + */ interface WithParentResource { /** * Specifies resourceGroupName, workspaceName. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @return the next definition stage. */ WithCreate withExistingWorkspace(String resourceGroupName, String workspaceName); } + /** * The stage of the ExtendedServerBlobAuditingPolicy definition which contains all the minimum required * properties for the resource to be created, but also allows for any other optional properties to be specified. */ - interface WithCreate - extends DefinitionStages.WithPredicateExpression, - DefinitionStages.WithState, - DefinitionStages.WithStorageEndpoint, - DefinitionStages.WithStorageAccountAccessKey, - DefinitionStages.WithRetentionDays, - DefinitionStages.WithAuditActionsAndGroups, - DefinitionStages.WithStorageAccountSubscriptionId, - DefinitionStages.WithIsStorageSecondaryKeyInUse, - DefinitionStages.WithIsAzureMonitorTargetEnabled, - DefinitionStages.WithQueueDelayMs, - DefinitionStages.WithIsDevopsAuditEnabled { + interface WithCreate extends DefinitionStages.WithPredicateExpression, DefinitionStages.WithState, + DefinitionStages.WithStorageEndpoint, DefinitionStages.WithStorageAccountAccessKey, + DefinitionStages.WithRetentionDays, DefinitionStages.WithAuditActionsAndGroups, + DefinitionStages.WithStorageAccountSubscriptionId, DefinitionStages.WithIsStorageSecondaryKeyInUse, + DefinitionStages.WithIsAzureMonitorTargetEnabled, DefinitionStages.WithQueueDelayMs, + DefinitionStages.WithIsDevopsAuditEnabled { /** * Executes the create request. - * + * * @return the created resource. */ ExtendedServerBlobAuditingPolicy create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ ExtendedServerBlobAuditingPolicy create(Context context); } - /** The stage of the ExtendedServerBlobAuditingPolicy definition allowing to specify predicateExpression. */ + + /** + * The stage of the ExtendedServerBlobAuditingPolicy definition allowing to specify predicateExpression. + */ interface WithPredicateExpression { /** * Specifies the predicateExpression property: Specifies condition of where clause when creating an audit.. - * + * * @param predicateExpression Specifies condition of where clause when creating an audit. * @return the next definition stage. */ WithCreate withPredicateExpression(String predicateExpression); } - /** The stage of the ExtendedServerBlobAuditingPolicy definition allowing to specify state. */ + + /** + * The stage of the ExtendedServerBlobAuditingPolicy definition allowing to specify state. + */ interface WithState { /** * Specifies the state property: Specifies the state of the policy. If state is Enabled, storageEndpoint or * isAzureMonitorTargetEnabled are required.. - * + * * @param state Specifies the state of the policy. If state is Enabled, storageEndpoint or - * isAzureMonitorTargetEnabled are required. + * isAzureMonitorTargetEnabled are required. * @return the next definition stage. */ WithCreate withState(BlobAuditingPolicyState state); } - /** The stage of the ExtendedServerBlobAuditingPolicy definition allowing to specify storageEndpoint. */ + + /** + * The stage of the ExtendedServerBlobAuditingPolicy definition allowing to specify storageEndpoint. + */ interface WithStorageEndpoint { /** * Specifies the storageEndpoint property: Specifies the blob storage endpoint (e.g. * https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or * isAzureMonitorTargetEnabled is required.. - * + * * @param storageEndpoint Specifies the blob storage endpoint (e.g. - * https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or - * isAzureMonitorTargetEnabled is required. + * https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or + * isAzureMonitorTargetEnabled is required. * @return the next definition stage. */ WithCreate withStorageEndpoint(String storageEndpoint); } - /** The stage of the ExtendedServerBlobAuditingPolicy definition allowing to specify storageAccountAccessKey. */ + + /** + * The stage of the ExtendedServerBlobAuditingPolicy definition allowing to specify storageAccountAccessKey. + */ interface WithStorageAccountAccessKey { /** * Specifies the storageAccountAccessKey property: Specifies the identifier key of the auditing storage - * account. If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey - * will use SQL server system-assigned managed identity to access the storage. Prerequisites for using - * managed identity authentication: 1. Assign SQL Server a system-assigned managed identity in Azure Active - * Directory (AAD). 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data - * Contributor' RBAC role to the server identity. For more information, see [Auditing to storage using - * Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355). - * - * @param storageAccountAccessKey Specifies the identifier key of the auditing storage account. If state is - * Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL - * server system-assigned managed identity to access the storage. Prerequisites for using managed - * identity authentication: 1. Assign SQL Server a system-assigned managed identity in Azure Active - * Directory (AAD). 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob - * Data Contributor' RBAC role to the server identity. For more information, see [Auditing to storage - * using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355). + * account. + * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use + * SQL server system-assigned managed identity to access the storage. + * Prerequisites for using managed identity authentication: + * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). + * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC + * role to the server identity. + * For more information, see [Auditing to storage using Managed Identity + * authentication](https://go.microsoft.com/fwlink/?linkid=2114355). + * + * @param storageAccountAccessKey Specifies the identifier key of the auditing storage account. + * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use + * SQL server system-assigned managed identity to access the storage. + * Prerequisites for using managed identity authentication: + * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). + * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC + * role to the server identity. + * For more information, see [Auditing to storage using Managed Identity + * authentication](https://go.microsoft.com/fwlink/?linkid=2114355). * @return the next definition stage. */ WithCreate withStorageAccountAccessKey(String storageAccountAccessKey); } - /** The stage of the ExtendedServerBlobAuditingPolicy definition allowing to specify retentionDays. */ + + /** + * The stage of the ExtendedServerBlobAuditingPolicy definition allowing to specify retentionDays. + */ interface WithRetentionDays { /** * Specifies the retentionDays property: Specifies the number of days to keep in the audit logs in the * storage account.. - * + * * @param retentionDays Specifies the number of days to keep in the audit logs in the storage account. * @return the next definition stage. */ WithCreate withRetentionDays(Integer retentionDays); } - /** The stage of the ExtendedServerBlobAuditingPolicy definition allowing to specify auditActionsAndGroups. */ + + /** + * The stage of the ExtendedServerBlobAuditingPolicy definition allowing to specify auditActionsAndGroups. + */ interface WithAuditActionsAndGroups { /** * Specifies the auditActionsAndGroups property: Specifies the Actions-Groups and Actions to audit. - * - *

The recommended set of action groups to use is the following combination - this will audit all the + * + * The recommended set of action groups to use is the following combination - this will audit all the * queries and stored procedures executed against the database, as well as successful and failed logins: - * - *

BATCH_COMPLETED_GROUP, SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, FAILED_DATABASE_AUTHENTICATION_GROUP. - * - *

This above combination is also the set that is configured by default when enabling auditing from the + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing from the * Azure portal. - * - *

The supported action groups to audit are (note: choose only specific groups that cover your auditing + * + * The supported action groups to audit are (note: choose only specific groups that cover your auditing * needs. Using unnecessary groups could lead to very large quantities of audit records): - * - *

APPLICATION_ROLE_CHANGE_PASSWORD_GROUP BACKUP_RESTORE_GROUP DATABASE_LOGOUT_GROUP - * DATABASE_OBJECT_CHANGE_GROUP DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP - * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP DATABASE_OPERATION_GROUP DATABASE_PERMISSION_CHANGE_GROUP - * DATABASE_PRINCIPAL_CHANGE_GROUP DATABASE_PRINCIPAL_IMPERSONATION_GROUP DATABASE_ROLE_MEMBER_CHANGE_GROUP - * FAILED_DATABASE_AUTHENTICATION_GROUP SCHEMA_OBJECT_ACCESS_GROUP SCHEMA_OBJECT_CHANGE_GROUP - * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP USER_CHANGE_PASSWORD_GROUP BATCH_STARTED_GROUP + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP * BATCH_COMPLETED_GROUP - * - *

These are groups that cover all sql statements and stored procedures executed against the database, - * and should not be used in combination with other groups as this will result in duplicate audit logs. - * - *

For more information, see [Database-Level Audit Action + * + * These are groups that cover all sql statements and stored procedures executed against the database, and + * should not be used in combination with other groups as this will result in duplicate audit logs. + * + * For more information, see [Database-Level Audit Action * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - *

For Database auditing policy, specific Actions can also be specified (note that Actions cannot be - * specified for Server auditing policy). The supported actions to audit are: SELECT UPDATE INSERT DELETE - * EXECUTE RECEIVE REFERENCES - * - *

The general form for defining an action to be audited is: {action} ON {object} BY {principal} - * - *

Note that <object> in the above format can refer to an object like a table, view, or stored + * + * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be + * specified for Server auditing policy). The supported actions to audit are: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE + * REFERENCES + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note that <object> in the above format can refer to an object like a table, view, or stored * procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and * SCHEMA::{schema_name} are used, respectively. - * - *

For example: SELECT on dbo.myTable by public SELECT on DATABASE::myDatabase by public SELECT on - * SCHEMA::mySchema by public - * - *

For more information, see [Database-Level Audit + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For more information, see [Database-Level Audit * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions). - * + * * @param auditActionsAndGroups Specifies the Actions-Groups and Actions to audit. - *

The recommended set of action groups to use is the following combination - this will audit all the - * queries and stored procedures executed against the database, as well as successful and failed logins: - *

BATCH_COMPLETED_GROUP, SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, - * FAILED_DATABASE_AUTHENTICATION_GROUP. - *

This above combination is also the set that is configured by default when enabling auditing from - * the Azure portal. - *

The supported action groups to audit are (note: choose only specific groups that cover your - * auditing needs. Using unnecessary groups could lead to very large quantities of audit records): - *

APPLICATION_ROLE_CHANGE_PASSWORD_GROUP BACKUP_RESTORE_GROUP DATABASE_LOGOUT_GROUP - * DATABASE_OBJECT_CHANGE_GROUP DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP - * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP DATABASE_OPERATION_GROUP DATABASE_PERMISSION_CHANGE_GROUP - * DATABASE_PRINCIPAL_CHANGE_GROUP DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP FAILED_DATABASE_AUTHENTICATION_GROUP SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP USER_CHANGE_PASSWORD_GROUP BATCH_STARTED_GROUP - * BATCH_COMPLETED_GROUP - *

These are groups that cover all sql statements and stored procedures executed against the - * database, and should not be used in combination with other groups as this will result in duplicate - * audit logs. - *

For more information, see [Database-Level Audit Action - * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - *

For Database auditing policy, specific Actions can also be specified (note that Actions cannot be - * specified for Server auditing policy). The supported actions to audit are: SELECT UPDATE INSERT - * DELETE EXECUTE RECEIVE REFERENCES - *

The general form for defining an action to be audited is: {action} ON {object} BY {principal} - *

Note that <object> in the above format can refer to an object like a table, view, or stored - * procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and - * SCHEMA::{schema_name} are used, respectively. - *

For example: SELECT on dbo.myTable by public SELECT on DATABASE::myDatabase by public SELECT on - * SCHEMA::mySchema by public - *

For more information, see [Database-Level Audit - * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions). + * + * The recommended set of action groups to use is the following combination - this will audit all the + * queries and stored procedures executed against the database, as well as successful and failed logins: + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing from the + * Azure portal. + * + * The supported action groups to audit are (note: choose only specific groups that cover your auditing + * needs. Using unnecessary groups could lead to very large quantities of audit records): + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP + * BATCH_COMPLETED_GROUP + * + * These are groups that cover all sql statements and stored procedures executed against the database, and + * should not be used in combination with other groups as this will result in duplicate audit logs. + * + * For more information, see [Database-Level Audit Action + * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). + * + * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be + * specified for Server auditing policy). The supported actions to audit are: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE + * REFERENCES + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note that <object> in the above format can refer to an object like a table, view, or stored + * procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and + * SCHEMA::{schema_name} are used, respectively. + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For more information, see [Database-Level Audit + * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions). * @return the next definition stage. */ WithCreate withAuditActionsAndGroups(List auditActionsAndGroups); } + /** * The stage of the ExtendedServerBlobAuditingPolicy definition allowing to specify * storageAccountSubscriptionId. @@ -407,12 +526,13 @@ interface WithAuditActionsAndGroups { interface WithStorageAccountSubscriptionId { /** * Specifies the storageAccountSubscriptionId property: Specifies the blob storage subscription Id.. - * + * * @param storageAccountSubscriptionId Specifies the blob storage subscription Id. * @return the next definition stage. */ WithCreate withStorageAccountSubscriptionId(UUID storageAccountSubscriptionId); } + /** * The stage of the ExtendedServerBlobAuditingPolicy definition allowing to specify isStorageSecondaryKeyInUse. */ @@ -420,370 +540,490 @@ interface WithIsStorageSecondaryKeyInUse { /** * Specifies the isStorageSecondaryKeyInUse property: Specifies whether storageAccountAccessKey value is the * storage's secondary key.. - * + * * @param isStorageSecondaryKeyInUse Specifies whether storageAccountAccessKey value is the storage's - * secondary key. + * secondary key. * @return the next definition stage. */ WithCreate withIsStorageSecondaryKeyInUse(Boolean isStorageSecondaryKeyInUse); } + /** * The stage of the ExtendedServerBlobAuditingPolicy definition allowing to specify isAzureMonitorTargetEnabled. */ interface WithIsAzureMonitorTargetEnabled { /** * Specifies the isAzureMonitorTargetEnabled property: Specifies whether audit events are sent to Azure - * Monitor. In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and + * Monitor. + * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and + * 'isAzureMonitorTargetEnabled' as true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic + * logs category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT + * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + * . + * + * @param isAzureMonitorTargetEnabled Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and * 'isAzureMonitorTargetEnabled' as true. - * - *

When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' - * diagnostic logs category on the database should be also created. Note that for server level audit you - * should use the 'master' database as {databaseName}. - * - *

Diagnostic Settings URI format: PUT + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic + * logs category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - *

For more information, see [Diagnostic Settings REST - * API](https://go.microsoft.com/fwlink/?linkid=2033207) or [Diagnostic Settings - * PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) . - * - * @param isAzureMonitorTargetEnabled Specifies whether audit events are sent to Azure Monitor. In order to - * send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as - * true. - *

When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' - * diagnostic logs category on the database should be also created. Note that for server level audit you - * should use the 'master' database as {databaseName}. - *

Diagnostic Settings URI format: PUT - * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - *

For more information, see [Diagnostic Settings REST - * API](https://go.microsoft.com/fwlink/?linkid=2033207) or [Diagnostic Settings - * PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). * @return the next definition stage. */ WithCreate withIsAzureMonitorTargetEnabled(Boolean isAzureMonitorTargetEnabled); } - /** The stage of the ExtendedServerBlobAuditingPolicy definition allowing to specify queueDelayMs. */ + + /** + * The stage of the ExtendedServerBlobAuditingPolicy definition allowing to specify queueDelayMs. + */ interface WithQueueDelayMs { /** * Specifies the queueDelayMs property: Specifies the amount of time in milliseconds that can elapse before - * audit actions are forced to be processed. The default minimum value is 1000 (1 second). The maximum is - * 2,147,483,647.. - * + * audit actions are forced to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647.. + * * @param queueDelayMs Specifies the amount of time in milliseconds that can elapse before audit actions are - * forced to be processed. The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. + * forced to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. * @return the next definition stage. */ WithCreate withQueueDelayMs(Integer queueDelayMs); } - /** The stage of the ExtendedServerBlobAuditingPolicy definition allowing to specify isDevopsAuditEnabled. */ + + /** + * The stage of the ExtendedServerBlobAuditingPolicy definition allowing to specify isDevopsAuditEnabled. + */ interface WithIsDevopsAuditEnabled { /** * Specifies the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, - * devops logs will be sent to Azure Monitor. In order to send the events to Azure Monitor, specify 'State' - * as 'Enabled', 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true - * - *

When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic + * devops logs will be sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' + * as true and 'IsDevopsAuditEnabled' as true + * + * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic * logs category on the master database should also be created. - * - *

Diagnostic Settings URI format: PUT + * + * Diagnostic Settings URI format: + * PUT * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - *

For more information, see [Diagnostic Settings REST - * API](https://go.microsoft.com/fwlink/?linkid=2033207) or [Diagnostic Settings - * PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) . - * + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + * . + * * @param isDevopsAuditEnabled Specifies the state of devops audit. If state is Enabled, devops logs will be - * sent to Azure Monitor. In order to send the events to Azure Monitor, specify 'State' as 'Enabled', - * 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true - *

When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' - * diagnostic logs category on the master database should also be created. - *

Diagnostic Settings URI format: PUT - * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - *

For more information, see [Diagnostic Settings REST - * API](https://go.microsoft.com/fwlink/?linkid=2033207) or [Diagnostic Settings - * PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' + * as true and 'IsDevopsAuditEnabled' as true + * + * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic + * logs category on the master database should also be created. + * + * Diagnostic Settings URI format: + * PUT + * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). * @return the next definition stage. */ WithCreate withIsDevopsAuditEnabled(Boolean isDevopsAuditEnabled); } } + /** * Begins update for the ExtendedServerBlobAuditingPolicy resource. - * + * * @return the stage of resource update. */ ExtendedServerBlobAuditingPolicy.Update update(); - /** The template for ExtendedServerBlobAuditingPolicy update. */ + /** + * The template for ExtendedServerBlobAuditingPolicy update. + */ interface Update - extends UpdateStages.WithPredicateExpression, - UpdateStages.WithState, - UpdateStages.WithStorageEndpoint, - UpdateStages.WithStorageAccountAccessKey, - UpdateStages.WithAuditActionsAndGroups, - UpdateStages.WithIsStorageSecondaryKeyInUse, - UpdateStages.WithIsAzureMonitorTargetEnabled, - UpdateStages.WithQueueDelayMs, - UpdateStages.WithIsDevopsAuditEnabled { + extends UpdateStages.WithPredicateExpression, UpdateStages.WithState, UpdateStages.WithStorageEndpoint, + UpdateStages.WithStorageAccountAccessKey, UpdateStages.WithAuditActionsAndGroups, + UpdateStages.WithIsStorageSecondaryKeyInUse, UpdateStages.WithIsAzureMonitorTargetEnabled, + UpdateStages.WithQueueDelayMs, UpdateStages.WithIsDevopsAuditEnabled { /** * Executes the update request. - * + * * @return the updated resource. */ ExtendedServerBlobAuditingPolicy apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ ExtendedServerBlobAuditingPolicy apply(Context context); } - /** The ExtendedServerBlobAuditingPolicy update stages. */ + + /** + * The ExtendedServerBlobAuditingPolicy update stages. + */ interface UpdateStages { - /** The stage of the ExtendedServerBlobAuditingPolicy update allowing to specify predicateExpression. */ + /** + * The stage of the ExtendedServerBlobAuditingPolicy update allowing to specify predicateExpression. + */ interface WithPredicateExpression { /** * Specifies the predicateExpression property: Specifies condition of where clause when creating an audit.. - * + * * @param predicateExpression Specifies condition of where clause when creating an audit. * @return the next definition stage. */ Update withPredicateExpression(String predicateExpression); } - /** The stage of the ExtendedServerBlobAuditingPolicy update allowing to specify state. */ + + /** + * The stage of the ExtendedServerBlobAuditingPolicy update allowing to specify state. + */ interface WithState { /** * Specifies the state property: Specifies the state of the policy. If state is Enabled, storageEndpoint or * isAzureMonitorTargetEnabled are required.. - * + * * @param state Specifies the state of the policy. If state is Enabled, storageEndpoint or - * isAzureMonitorTargetEnabled are required. + * isAzureMonitorTargetEnabled are required. * @return the next definition stage. */ Update withState(BlobAuditingPolicyState state); } - /** The stage of the ExtendedServerBlobAuditingPolicy update allowing to specify storageEndpoint. */ + + /** + * The stage of the ExtendedServerBlobAuditingPolicy update allowing to specify storageEndpoint. + */ interface WithStorageEndpoint { /** * Specifies the storageEndpoint property: Specifies the blob storage endpoint (e.g. * https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or * isAzureMonitorTargetEnabled is required.. - * + * * @param storageEndpoint Specifies the blob storage endpoint (e.g. - * https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or - * isAzureMonitorTargetEnabled is required. + * https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or + * isAzureMonitorTargetEnabled is required. * @return the next definition stage. */ Update withStorageEndpoint(String storageEndpoint); } - /** The stage of the ExtendedServerBlobAuditingPolicy update allowing to specify storageAccountAccessKey. */ + + /** + * The stage of the ExtendedServerBlobAuditingPolicy update allowing to specify storageAccountAccessKey. + */ interface WithStorageAccountAccessKey { /** * Specifies the storageAccountAccessKey property: Specifies the identifier key of the auditing storage - * account. If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey - * will use SQL server system-assigned managed identity to access the storage. Prerequisites for using - * managed identity authentication: 1. Assign SQL Server a system-assigned managed identity in Azure Active - * Directory (AAD). 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data - * Contributor' RBAC role to the server identity. For more information, see [Auditing to storage using - * Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355). - * - * @param storageAccountAccessKey Specifies the identifier key of the auditing storage account. If state is - * Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL - * server system-assigned managed identity to access the storage. Prerequisites for using managed - * identity authentication: 1. Assign SQL Server a system-assigned managed identity in Azure Active - * Directory (AAD). 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob - * Data Contributor' RBAC role to the server identity. For more information, see [Auditing to storage - * using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355). + * account. + * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use + * SQL server system-assigned managed identity to access the storage. + * Prerequisites for using managed identity authentication: + * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). + * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC + * role to the server identity. + * For more information, see [Auditing to storage using Managed Identity + * authentication](https://go.microsoft.com/fwlink/?linkid=2114355). + * + * @param storageAccountAccessKey Specifies the identifier key of the auditing storage account. + * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use + * SQL server system-assigned managed identity to access the storage. + * Prerequisites for using managed identity authentication: + * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). + * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC + * role to the server identity. + * For more information, see [Auditing to storage using Managed Identity + * authentication](https://go.microsoft.com/fwlink/?linkid=2114355). * @return the next definition stage. */ Update withStorageAccountAccessKey(String storageAccountAccessKey); } - /** The stage of the ExtendedServerBlobAuditingPolicy update allowing to specify auditActionsAndGroups. */ + + /** + * The stage of the ExtendedServerBlobAuditingPolicy update allowing to specify auditActionsAndGroups. + */ interface WithAuditActionsAndGroups { /** * Specifies the auditActionsAndGroups property: Specifies the Actions-Groups and Actions to audit. - * - *

The recommended set of action groups to use is the following combination - this will audit all the + * + * The recommended set of action groups to use is the following combination - this will audit all the * queries and stored procedures executed against the database, as well as successful and failed logins: - * - *

BATCH_COMPLETED_GROUP, SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, FAILED_DATABASE_AUTHENTICATION_GROUP. - * - *

This above combination is also the set that is configured by default when enabling auditing from the + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing from the * Azure portal. - * - *

The supported action groups to audit are (note: choose only specific groups that cover your auditing + * + * The supported action groups to audit are (note: choose only specific groups that cover your auditing * needs. Using unnecessary groups could lead to very large quantities of audit records): - * - *

APPLICATION_ROLE_CHANGE_PASSWORD_GROUP BACKUP_RESTORE_GROUP DATABASE_LOGOUT_GROUP - * DATABASE_OBJECT_CHANGE_GROUP DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP - * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP DATABASE_OPERATION_GROUP DATABASE_PERMISSION_CHANGE_GROUP - * DATABASE_PRINCIPAL_CHANGE_GROUP DATABASE_PRINCIPAL_IMPERSONATION_GROUP DATABASE_ROLE_MEMBER_CHANGE_GROUP - * FAILED_DATABASE_AUTHENTICATION_GROUP SCHEMA_OBJECT_ACCESS_GROUP SCHEMA_OBJECT_CHANGE_GROUP - * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP USER_CHANGE_PASSWORD_GROUP BATCH_STARTED_GROUP + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP * BATCH_COMPLETED_GROUP - * - *

These are groups that cover all sql statements and stored procedures executed against the database, - * and should not be used in combination with other groups as this will result in duplicate audit logs. - * - *

For more information, see [Database-Level Audit Action + * + * These are groups that cover all sql statements and stored procedures executed against the database, and + * should not be used in combination with other groups as this will result in duplicate audit logs. + * + * For more information, see [Database-Level Audit Action * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - *

For Database auditing policy, specific Actions can also be specified (note that Actions cannot be - * specified for Server auditing policy). The supported actions to audit are: SELECT UPDATE INSERT DELETE - * EXECUTE RECEIVE REFERENCES - * - *

The general form for defining an action to be audited is: {action} ON {object} BY {principal} - * - *

Note that <object> in the above format can refer to an object like a table, view, or stored + * + * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be + * specified for Server auditing policy). The supported actions to audit are: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE + * REFERENCES + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note that <object> in the above format can refer to an object like a table, view, or stored * procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and * SCHEMA::{schema_name} are used, respectively. - * - *

For example: SELECT on dbo.myTable by public SELECT on DATABASE::myDatabase by public SELECT on - * SCHEMA::mySchema by public - * - *

For more information, see [Database-Level Audit + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For more information, see [Database-Level Audit * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions). - * + * * @param auditActionsAndGroups Specifies the Actions-Groups and Actions to audit. - *

The recommended set of action groups to use is the following combination - this will audit all the - * queries and stored procedures executed against the database, as well as successful and failed logins: - *

BATCH_COMPLETED_GROUP, SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, - * FAILED_DATABASE_AUTHENTICATION_GROUP. - *

This above combination is also the set that is configured by default when enabling auditing from - * the Azure portal. - *

The supported action groups to audit are (note: choose only specific groups that cover your - * auditing needs. Using unnecessary groups could lead to very large quantities of audit records): - *

APPLICATION_ROLE_CHANGE_PASSWORD_GROUP BACKUP_RESTORE_GROUP DATABASE_LOGOUT_GROUP - * DATABASE_OBJECT_CHANGE_GROUP DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP - * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP DATABASE_OPERATION_GROUP DATABASE_PERMISSION_CHANGE_GROUP - * DATABASE_PRINCIPAL_CHANGE_GROUP DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP FAILED_DATABASE_AUTHENTICATION_GROUP SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP USER_CHANGE_PASSWORD_GROUP BATCH_STARTED_GROUP - * BATCH_COMPLETED_GROUP - *

These are groups that cover all sql statements and stored procedures executed against the - * database, and should not be used in combination with other groups as this will result in duplicate - * audit logs. - *

For more information, see [Database-Level Audit Action - * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - *

For Database auditing policy, specific Actions can also be specified (note that Actions cannot be - * specified for Server auditing policy). The supported actions to audit are: SELECT UPDATE INSERT - * DELETE EXECUTE RECEIVE REFERENCES - *

The general form for defining an action to be audited is: {action} ON {object} BY {principal} - *

Note that <object> in the above format can refer to an object like a table, view, or stored - * procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and - * SCHEMA::{schema_name} are used, respectively. - *

For example: SELECT on dbo.myTable by public SELECT on DATABASE::myDatabase by public SELECT on - * SCHEMA::mySchema by public - *

For more information, see [Database-Level Audit - * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions). + * + * The recommended set of action groups to use is the following combination - this will audit all the + * queries and stored procedures executed against the database, as well as successful and failed logins: + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing from the + * Azure portal. + * + * The supported action groups to audit are (note: choose only specific groups that cover your auditing + * needs. Using unnecessary groups could lead to very large quantities of audit records): + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP + * BATCH_COMPLETED_GROUP + * + * These are groups that cover all sql statements and stored procedures executed against the database, and + * should not be used in combination with other groups as this will result in duplicate audit logs. + * + * For more information, see [Database-Level Audit Action + * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). + * + * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be + * specified for Server auditing policy). The supported actions to audit are: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE + * REFERENCES + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note that <object> in the above format can refer to an object like a table, view, or stored + * procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and + * SCHEMA::{schema_name} are used, respectively. + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For more information, see [Database-Level Audit + * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions). * @return the next definition stage. */ Update withAuditActionsAndGroups(List auditActionsAndGroups); } - /** The stage of the ExtendedServerBlobAuditingPolicy update allowing to specify isStorageSecondaryKeyInUse. */ + + /** + * The stage of the ExtendedServerBlobAuditingPolicy update allowing to specify isStorageSecondaryKeyInUse. + */ interface WithIsStorageSecondaryKeyInUse { /** * Specifies the isStorageSecondaryKeyInUse property: Specifies whether storageAccountAccessKey value is the * storage's secondary key.. - * + * * @param isStorageSecondaryKeyInUse Specifies whether storageAccountAccessKey value is the storage's - * secondary key. + * secondary key. * @return the next definition stage. */ Update withIsStorageSecondaryKeyInUse(Boolean isStorageSecondaryKeyInUse); } - /** The stage of the ExtendedServerBlobAuditingPolicy update allowing to specify isAzureMonitorTargetEnabled. */ + + /** + * The stage of the ExtendedServerBlobAuditingPolicy update allowing to specify isAzureMonitorTargetEnabled. + */ interface WithIsAzureMonitorTargetEnabled { /** * Specifies the isAzureMonitorTargetEnabled property: Specifies whether audit events are sent to Azure - * Monitor. In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and + * Monitor. + * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and + * 'isAzureMonitorTargetEnabled' as true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic + * logs category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT + * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + * . + * + * @param isAzureMonitorTargetEnabled Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and * 'isAzureMonitorTargetEnabled' as true. - * - *

When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' - * diagnostic logs category on the database should be also created. Note that for server level audit you - * should use the 'master' database as {databaseName}. - * - *

Diagnostic Settings URI format: PUT + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic + * logs category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - *

For more information, see [Diagnostic Settings REST - * API](https://go.microsoft.com/fwlink/?linkid=2033207) or [Diagnostic Settings - * PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) . - * - * @param isAzureMonitorTargetEnabled Specifies whether audit events are sent to Azure Monitor. In order to - * send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as - * true. - *

When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' - * diagnostic logs category on the database should be also created. Note that for server level audit you - * should use the 'master' database as {databaseName}. - *

Diagnostic Settings URI format: PUT - * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - *

For more information, see [Diagnostic Settings REST - * API](https://go.microsoft.com/fwlink/?linkid=2033207) or [Diagnostic Settings - * PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). * @return the next definition stage. */ Update withIsAzureMonitorTargetEnabled(Boolean isAzureMonitorTargetEnabled); } - /** The stage of the ExtendedServerBlobAuditingPolicy update allowing to specify queueDelayMs. */ + + /** + * The stage of the ExtendedServerBlobAuditingPolicy update allowing to specify queueDelayMs. + */ interface WithQueueDelayMs { /** * Specifies the queueDelayMs property: Specifies the amount of time in milliseconds that can elapse before - * audit actions are forced to be processed. The default minimum value is 1000 (1 second). The maximum is - * 2,147,483,647.. - * + * audit actions are forced to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647.. + * * @param queueDelayMs Specifies the amount of time in milliseconds that can elapse before audit actions are - * forced to be processed. The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. + * forced to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. * @return the next definition stage. */ Update withQueueDelayMs(Integer queueDelayMs); } - /** The stage of the ExtendedServerBlobAuditingPolicy update allowing to specify isDevopsAuditEnabled. */ + + /** + * The stage of the ExtendedServerBlobAuditingPolicy update allowing to specify isDevopsAuditEnabled. + */ interface WithIsDevopsAuditEnabled { /** * Specifies the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, - * devops logs will be sent to Azure Monitor. In order to send the events to Azure Monitor, specify 'State' - * as 'Enabled', 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true - * - *

When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic + * devops logs will be sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' + * as true and 'IsDevopsAuditEnabled' as true + * + * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic * logs category on the master database should also be created. - * - *

Diagnostic Settings URI format: PUT + * + * Diagnostic Settings URI format: + * PUT * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - *

For more information, see [Diagnostic Settings REST - * API](https://go.microsoft.com/fwlink/?linkid=2033207) or [Diagnostic Settings - * PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) . - * + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + * . + * * @param isDevopsAuditEnabled Specifies the state of devops audit. If state is Enabled, devops logs will be - * sent to Azure Monitor. In order to send the events to Azure Monitor, specify 'State' as 'Enabled', - * 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true - *

When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' - * diagnostic logs category on the master database should also be created. - *

Diagnostic Settings URI format: PUT - * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - *

For more information, see [Diagnostic Settings REST - * API](https://go.microsoft.com/fwlink/?linkid=2033207) or [Diagnostic Settings - * PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' + * as true and 'IsDevopsAuditEnabled' as true + * + * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic + * logs category on the master database should also be created. + * + * Diagnostic Settings URI format: + * PUT + * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). * @return the next definition stage. */ Update withIsDevopsAuditEnabled(Boolean isDevopsAuditEnabled); } } + /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ ExtendedServerBlobAuditingPolicy refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedServerBlobAuditingPolicyListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedServerBlobAuditingPolicyListResult.java index 16383a53b179..f7fa49893ef5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedServerBlobAuditingPolicyListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedServerBlobAuditingPolicyListResult.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** A list of server extended auditing settings. */ +/** + * A list of server extended auditing settings. + */ @Immutable public final class ExtendedServerBlobAuditingPolicyListResult { /* @@ -24,13 +26,15 @@ public final class ExtendedServerBlobAuditingPolicyListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; - /** Creates an instance of ExtendedServerBlobAuditingPolicyListResult class. */ + /** + * Creates an instance of ExtendedServerBlobAuditingPolicyListResult class. + */ public ExtendedServerBlobAuditingPolicyListResult() { } /** * Get the value property: Array of results. - * + * * @return the value value. */ public List value() { @@ -39,7 +43,7 @@ public List value() { /** * Get the nextLink property: Link to retrieve next page of results. - * + * * @return the nextLink value. */ public String nextLink() { @@ -48,7 +52,7 @@ public String nextLink() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedSqlPoolBlobAuditingPolicies.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedSqlPoolBlobAuditingPolicies.java index 09a02a173c33..83a9e6cc6955 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedSqlPoolBlobAuditingPolicies.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedSqlPoolBlobAuditingPolicies.java @@ -8,11 +8,13 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of ExtendedSqlPoolBlobAuditingPolicies. */ +/** + * Resource collection API of ExtendedSqlPoolBlobAuditingPolicies. + */ public interface ExtendedSqlPoolBlobAuditingPolicies { /** * Gets an extended Sql pool's blob auditing policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -22,12 +24,12 @@ public interface ExtendedSqlPoolBlobAuditingPolicies { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an extended Sql pool's blob auditing policy along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context); /** * Gets an extended Sql pool's blob auditing policy. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -40,7 +42,7 @@ Response getWithResponse( /** * Lists extended auditing settings of a Sql pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -49,12 +51,12 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of sql pool extended auditing settings as paginated response with {@link PagedIterable}. */ - PagedIterable listBySqlPool( - String resourceGroupName, String workspaceName, String sqlPoolName); + PagedIterable listBySqlPool(String resourceGroupName, String workspaceName, + String sqlPoolName); /** * Lists extended auditing settings of a Sql pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -64,12 +66,12 @@ PagedIterable listBySqlPool( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of sql pool extended auditing settings as paginated response with {@link PagedIterable}. */ - PagedIterable listBySqlPool( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + PagedIterable listBySqlPool(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context); /** * Gets an extended Sql pool's blob auditing policy. - * + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -80,7 +82,7 @@ PagedIterable listBySqlPool( /** * Gets an extended Sql pool's blob auditing policy. - * + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -92,7 +94,7 @@ PagedIterable listBySqlPool( /** * Begins definition for a new ExtendedSqlPoolBlobAuditingPolicy resource. - * + * * @return the first stage of the new ExtendedSqlPoolBlobAuditingPolicy definition. */ ExtendedSqlPoolBlobAuditingPolicy.DefinitionStages.Blank define(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedSqlPoolBlobAuditingPolicy.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedSqlPoolBlobAuditingPolicy.java index fd75bbd4001f..37900a9fcf48 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedSqlPoolBlobAuditingPolicy.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedSqlPoolBlobAuditingPolicy.java @@ -9,32 +9,34 @@ import java.util.List; import java.util.UUID; -/** An immutable client-side representation of ExtendedSqlPoolBlobAuditingPolicy. */ +/** + * An immutable client-side representation of ExtendedSqlPoolBlobAuditingPolicy. + */ public interface ExtendedSqlPoolBlobAuditingPolicy { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the predicateExpression property: Specifies condition of where clause when creating an audit. - * + * * @return the predicateExpression value. */ String predicateExpression(); @@ -42,7 +44,7 @@ public interface ExtendedSqlPoolBlobAuditingPolicy { /** * Gets the state property: Specifies the state of the policy. If state is Enabled, storageEndpoint or * isAzureMonitorTargetEnabled are required. - * + * * @return the state value. */ BlobAuditingPolicyState state(); @@ -51,81 +53,108 @@ public interface ExtendedSqlPoolBlobAuditingPolicy { * Gets the storageEndpoint property: Specifies the blob storage endpoint (e.g. * https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is * required. - * + * * @return the storageEndpoint value. */ String storageEndpoint(); /** - * Gets the storageAccountAccessKey property: Specifies the identifier key of the auditing storage account. If state - * is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL server - * system-assigned managed identity to access the storage. Prerequisites for using managed identity authentication: - * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). 2. Grant SQL Server - * identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to the server - * identity. For more information, see [Auditing to storage using Managed Identity + * Gets the storageAccountAccessKey property: Specifies the identifier key of the auditing storage account. + * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL + * server system-assigned managed identity to access the storage. + * Prerequisites for using managed identity authentication: + * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). + * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC role to + * the server identity. + * For more information, see [Auditing to storage using Managed Identity * authentication](https://go.microsoft.com/fwlink/?linkid=2114355). - * + * * @return the storageAccountAccessKey value. */ String storageAccountAccessKey(); /** * Gets the retentionDays property: Specifies the number of days to keep in the audit logs in the storage account. - * + * * @return the retentionDays value. */ Integer retentionDays(); /** * Gets the auditActionsAndGroups property: Specifies the Actions-Groups and Actions to audit. - * - *

The recommended set of action groups to use is the following combination - this will audit all the queries and + * + * The recommended set of action groups to use is the following combination - this will audit all the queries and * stored procedures executed against the database, as well as successful and failed logins: - * - *

BATCH_COMPLETED_GROUP, SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, FAILED_DATABASE_AUTHENTICATION_GROUP. - * - *

This above combination is also the set that is configured by default when enabling auditing from the Azure + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing from the Azure * portal. - * - *

The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. - * Using unnecessary groups could lead to very large quantities of audit records): - * - *

APPLICATION_ROLE_CHANGE_PASSWORD_GROUP BACKUP_RESTORE_GROUP DATABASE_LOGOUT_GROUP DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP DATABASE_OBJECT_PERMISSION_CHANGE_GROUP DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP DATABASE_PRINCIPAL_CHANGE_GROUP DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP FAILED_DATABASE_AUTHENTICATION_GROUP SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP USER_CHANGE_PASSWORD_GROUP BATCH_STARTED_GROUP BATCH_COMPLETED_GROUP - * - *

These are groups that cover all sql statements and stored procedures executed against the database, and should + * + * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. Using + * unnecessary groups could lead to very large quantities of audit records): + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP + * BATCH_COMPLETED_GROUP + * + * These are groups that cover all sql statements and stored procedures executed against the database, and should * not be used in combination with other groups as this will result in duplicate audit logs. - * - *

For more information, see [Database-Level Audit Action + * + * For more information, see [Database-Level Audit Action * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - *

For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified - * for Server auditing policy). The supported actions to audit are: SELECT UPDATE INSERT DELETE EXECUTE RECEIVE + * + * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for + * Server auditing policy). The supported actions to audit are: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE * REFERENCES - * - *

The general form for defining an action to be audited is: {action} ON {object} BY {principal} - * - *

Note that <object> in the above format can refer to an object like a table, view, or stored procedure, - * or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} - * are used, respectively. - * - *

For example: SELECT on dbo.myTable by public SELECT on DATABASE::myDatabase by public SELECT on - * SCHEMA::mySchema by public - * - *

For more information, see [Database-Level Audit + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note that <object> in the above format can refer to an object like a table, view, or stored procedure, or + * an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are + * used, respectively. + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For more information, see [Database-Level Audit * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions). - * + * * @return the auditActionsAndGroups value. */ List auditActionsAndGroups(); /** * Gets the storageAccountSubscriptionId property: Specifies the blob storage subscription Id. - * + * * @return the storageAccountSubscriptionId value. */ UUID storageAccountSubscriptionId(); @@ -133,65 +162,78 @@ public interface ExtendedSqlPoolBlobAuditingPolicy { /** * Gets the isStorageSecondaryKeyInUse property: Specifies whether storageAccountAccessKey value is the storage's * secondary key. - * + * * @return the isStorageSecondaryKeyInUse value. */ Boolean isStorageSecondaryKeyInUse(); /** - * Gets the isAzureMonitorTargetEnabled property: Specifies whether audit events are sent to Azure Monitor. In order - * to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as true. - * - *

When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs - * category on the database should be also created. Note that for server level audit you should use the 'master' - * database as {databaseName}. - * - *

Diagnostic Settings URI format: PUT + * Gets the isAzureMonitorTargetEnabled property: Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as + * true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs + * category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - *

For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) or - * [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). - * + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * * @return the isAzureMonitorTargetEnabled value. */ Boolean isAzureMonitorTargetEnabled(); /** * Gets the queueDelayMs property: Specifies the amount of time in milliseconds that can elapse before audit actions - * are forced to be processed. The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. - * + * are forced to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. + * * @return the queueDelayMs value. */ Integer queueDelayMs(); /** * Gets the name of the resource group. - * + * * @return the name of the resource group. */ String resourceGroupName(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.ExtendedSqlPoolBlobAuditingPolicyInner object. - * + * * @return the inner object. */ ExtendedSqlPoolBlobAuditingPolicyInner innerModel(); - /** The entirety of the ExtendedSqlPoolBlobAuditingPolicy definition. */ + /** + * The entirety of the ExtendedSqlPoolBlobAuditingPolicy definition. + */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { } - /** The ExtendedSqlPoolBlobAuditingPolicy definition stages. */ + + /** + * The ExtendedSqlPoolBlobAuditingPolicy definition stages. + */ interface DefinitionStages { - /** The first stage of the ExtendedSqlPoolBlobAuditingPolicy definition. */ + /** + * The first stage of the ExtendedSqlPoolBlobAuditingPolicy definition. + */ interface Blank extends WithParentResource { } - /** The stage of the ExtendedSqlPoolBlobAuditingPolicy definition allowing to specify parent resource. */ + + /** + * The stage of the ExtendedSqlPoolBlobAuditingPolicy definition allowing to specify parent resource. + */ interface WithParentResource { /** * Specifies resourceGroupName, workspaceName, sqlPoolName. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -199,191 +241,264 @@ interface WithParentResource { */ WithCreate withExistingSqlPool(String resourceGroupName, String workspaceName, String sqlPoolName); } + /** * The stage of the ExtendedSqlPoolBlobAuditingPolicy definition which contains all the minimum required * properties for the resource to be created, but also allows for any other optional properties to be specified. */ - interface WithCreate - extends DefinitionStages.WithPredicateExpression, - DefinitionStages.WithState, - DefinitionStages.WithStorageEndpoint, - DefinitionStages.WithStorageAccountAccessKey, - DefinitionStages.WithRetentionDays, - DefinitionStages.WithAuditActionsAndGroups, - DefinitionStages.WithStorageAccountSubscriptionId, - DefinitionStages.WithIsStorageSecondaryKeyInUse, - DefinitionStages.WithIsAzureMonitorTargetEnabled, - DefinitionStages.WithQueueDelayMs { + interface WithCreate extends DefinitionStages.WithPredicateExpression, DefinitionStages.WithState, + DefinitionStages.WithStorageEndpoint, DefinitionStages.WithStorageAccountAccessKey, + DefinitionStages.WithRetentionDays, DefinitionStages.WithAuditActionsAndGroups, + DefinitionStages.WithStorageAccountSubscriptionId, DefinitionStages.WithIsStorageSecondaryKeyInUse, + DefinitionStages.WithIsAzureMonitorTargetEnabled, DefinitionStages.WithQueueDelayMs { /** * Executes the create request. - * + * * @return the created resource. */ ExtendedSqlPoolBlobAuditingPolicy create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ ExtendedSqlPoolBlobAuditingPolicy create(Context context); } - /** The stage of the ExtendedSqlPoolBlobAuditingPolicy definition allowing to specify predicateExpression. */ + + /** + * The stage of the ExtendedSqlPoolBlobAuditingPolicy definition allowing to specify predicateExpression. + */ interface WithPredicateExpression { /** * Specifies the predicateExpression property: Specifies condition of where clause when creating an audit.. - * + * * @param predicateExpression Specifies condition of where clause when creating an audit. * @return the next definition stage. */ WithCreate withPredicateExpression(String predicateExpression); } - /** The stage of the ExtendedSqlPoolBlobAuditingPolicy definition allowing to specify state. */ + + /** + * The stage of the ExtendedSqlPoolBlobAuditingPolicy definition allowing to specify state. + */ interface WithState { /** * Specifies the state property: Specifies the state of the policy. If state is Enabled, storageEndpoint or * isAzureMonitorTargetEnabled are required.. - * + * * @param state Specifies the state of the policy. If state is Enabled, storageEndpoint or - * isAzureMonitorTargetEnabled are required. + * isAzureMonitorTargetEnabled are required. * @return the next definition stage. */ WithCreate withState(BlobAuditingPolicyState state); } - /** The stage of the ExtendedSqlPoolBlobAuditingPolicy definition allowing to specify storageEndpoint. */ + + /** + * The stage of the ExtendedSqlPoolBlobAuditingPolicy definition allowing to specify storageEndpoint. + */ interface WithStorageEndpoint { /** * Specifies the storageEndpoint property: Specifies the blob storage endpoint (e.g. * https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or * isAzureMonitorTargetEnabled is required.. - * + * * @param storageEndpoint Specifies the blob storage endpoint (e.g. - * https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or - * isAzureMonitorTargetEnabled is required. + * https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or + * isAzureMonitorTargetEnabled is required. * @return the next definition stage. */ WithCreate withStorageEndpoint(String storageEndpoint); } + /** * The stage of the ExtendedSqlPoolBlobAuditingPolicy definition allowing to specify storageAccountAccessKey. */ interface WithStorageAccountAccessKey { /** * Specifies the storageAccountAccessKey property: Specifies the identifier key of the auditing storage - * account. If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey - * will use SQL server system-assigned managed identity to access the storage. Prerequisites for using - * managed identity authentication: 1. Assign SQL Server a system-assigned managed identity in Azure Active - * Directory (AAD). 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data - * Contributor' RBAC role to the server identity. For more information, see [Auditing to storage using - * Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355). - * - * @param storageAccountAccessKey Specifies the identifier key of the auditing storage account. If state is - * Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL - * server system-assigned managed identity to access the storage. Prerequisites for using managed - * identity authentication: 1. Assign SQL Server a system-assigned managed identity in Azure Active - * Directory (AAD). 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob - * Data Contributor' RBAC role to the server identity. For more information, see [Auditing to storage - * using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355). + * account. + * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use + * SQL server system-assigned managed identity to access the storage. + * Prerequisites for using managed identity authentication: + * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). + * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC + * role to the server identity. + * For more information, see [Auditing to storage using Managed Identity + * authentication](https://go.microsoft.com/fwlink/?linkid=2114355). + * + * @param storageAccountAccessKey Specifies the identifier key of the auditing storage account. + * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use + * SQL server system-assigned managed identity to access the storage. + * Prerequisites for using managed identity authentication: + * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). + * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC + * role to the server identity. + * For more information, see [Auditing to storage using Managed Identity + * authentication](https://go.microsoft.com/fwlink/?linkid=2114355). * @return the next definition stage. */ WithCreate withStorageAccountAccessKey(String storageAccountAccessKey); } - /** The stage of the ExtendedSqlPoolBlobAuditingPolicy definition allowing to specify retentionDays. */ + + /** + * The stage of the ExtendedSqlPoolBlobAuditingPolicy definition allowing to specify retentionDays. + */ interface WithRetentionDays { /** * Specifies the retentionDays property: Specifies the number of days to keep in the audit logs in the * storage account.. - * + * * @param retentionDays Specifies the number of days to keep in the audit logs in the storage account. * @return the next definition stage. */ WithCreate withRetentionDays(Integer retentionDays); } - /** The stage of the ExtendedSqlPoolBlobAuditingPolicy definition allowing to specify auditActionsAndGroups. */ + + /** + * The stage of the ExtendedSqlPoolBlobAuditingPolicy definition allowing to specify auditActionsAndGroups. + */ interface WithAuditActionsAndGroups { /** * Specifies the auditActionsAndGroups property: Specifies the Actions-Groups and Actions to audit. - * - *

The recommended set of action groups to use is the following combination - this will audit all the + * + * The recommended set of action groups to use is the following combination - this will audit all the * queries and stored procedures executed against the database, as well as successful and failed logins: - * - *

BATCH_COMPLETED_GROUP, SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, FAILED_DATABASE_AUTHENTICATION_GROUP. - * - *

This above combination is also the set that is configured by default when enabling auditing from the + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing from the * Azure portal. - * - *

The supported action groups to audit are (note: choose only specific groups that cover your auditing + * + * The supported action groups to audit are (note: choose only specific groups that cover your auditing * needs. Using unnecessary groups could lead to very large quantities of audit records): - * - *

APPLICATION_ROLE_CHANGE_PASSWORD_GROUP BACKUP_RESTORE_GROUP DATABASE_LOGOUT_GROUP - * DATABASE_OBJECT_CHANGE_GROUP DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP - * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP DATABASE_OPERATION_GROUP DATABASE_PERMISSION_CHANGE_GROUP - * DATABASE_PRINCIPAL_CHANGE_GROUP DATABASE_PRINCIPAL_IMPERSONATION_GROUP DATABASE_ROLE_MEMBER_CHANGE_GROUP - * FAILED_DATABASE_AUTHENTICATION_GROUP SCHEMA_OBJECT_ACCESS_GROUP SCHEMA_OBJECT_CHANGE_GROUP - * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP USER_CHANGE_PASSWORD_GROUP BATCH_STARTED_GROUP + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP * BATCH_COMPLETED_GROUP - * - *

These are groups that cover all sql statements and stored procedures executed against the database, - * and should not be used in combination with other groups as this will result in duplicate audit logs. - * - *

For more information, see [Database-Level Audit Action + * + * These are groups that cover all sql statements and stored procedures executed against the database, and + * should not be used in combination with other groups as this will result in duplicate audit logs. + * + * For more information, see [Database-Level Audit Action * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - *

For Database auditing policy, specific Actions can also be specified (note that Actions cannot be - * specified for Server auditing policy). The supported actions to audit are: SELECT UPDATE INSERT DELETE - * EXECUTE RECEIVE REFERENCES - * - *

The general form for defining an action to be audited is: {action} ON {object} BY {principal} - * - *

Note that <object> in the above format can refer to an object like a table, view, or stored + * + * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be + * specified for Server auditing policy). The supported actions to audit are: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE + * REFERENCES + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note that <object> in the above format can refer to an object like a table, view, or stored * procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and * SCHEMA::{schema_name} are used, respectively. - * - *

For example: SELECT on dbo.myTable by public SELECT on DATABASE::myDatabase by public SELECT on - * SCHEMA::mySchema by public - * - *

For more information, see [Database-Level Audit + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For more information, see [Database-Level Audit * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions). - * + * * @param auditActionsAndGroups Specifies the Actions-Groups and Actions to audit. - *

The recommended set of action groups to use is the following combination - this will audit all the - * queries and stored procedures executed against the database, as well as successful and failed logins: - *

BATCH_COMPLETED_GROUP, SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, - * FAILED_DATABASE_AUTHENTICATION_GROUP. - *

This above combination is also the set that is configured by default when enabling auditing from - * the Azure portal. - *

The supported action groups to audit are (note: choose only specific groups that cover your - * auditing needs. Using unnecessary groups could lead to very large quantities of audit records): - *

APPLICATION_ROLE_CHANGE_PASSWORD_GROUP BACKUP_RESTORE_GROUP DATABASE_LOGOUT_GROUP - * DATABASE_OBJECT_CHANGE_GROUP DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP - * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP DATABASE_OPERATION_GROUP DATABASE_PERMISSION_CHANGE_GROUP - * DATABASE_PRINCIPAL_CHANGE_GROUP DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP FAILED_DATABASE_AUTHENTICATION_GROUP SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP USER_CHANGE_PASSWORD_GROUP BATCH_STARTED_GROUP - * BATCH_COMPLETED_GROUP - *

These are groups that cover all sql statements and stored procedures executed against the - * database, and should not be used in combination with other groups as this will result in duplicate - * audit logs. - *

For more information, see [Database-Level Audit Action - * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - *

For Database auditing policy, specific Actions can also be specified (note that Actions cannot be - * specified for Server auditing policy). The supported actions to audit are: SELECT UPDATE INSERT - * DELETE EXECUTE RECEIVE REFERENCES - *

The general form for defining an action to be audited is: {action} ON {object} BY {principal} - *

Note that <object> in the above format can refer to an object like a table, view, or stored - * procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and - * SCHEMA::{schema_name} are used, respectively. - *

For example: SELECT on dbo.myTable by public SELECT on DATABASE::myDatabase by public SELECT on - * SCHEMA::mySchema by public - *

For more information, see [Database-Level Audit - * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions). + * + * The recommended set of action groups to use is the following combination - this will audit all the + * queries and stored procedures executed against the database, as well as successful and failed logins: + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing from the + * Azure portal. + * + * The supported action groups to audit are (note: choose only specific groups that cover your auditing + * needs. Using unnecessary groups could lead to very large quantities of audit records): + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP + * BATCH_COMPLETED_GROUP + * + * These are groups that cover all sql statements and stored procedures executed against the database, and + * should not be used in combination with other groups as this will result in duplicate audit logs. + * + * For more information, see [Database-Level Audit Action + * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). + * + * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be + * specified for Server auditing policy). The supported actions to audit are: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE + * REFERENCES + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note that <object> in the above format can refer to an object like a table, view, or stored + * procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and + * SCHEMA::{schema_name} are used, respectively. + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For more information, see [Database-Level Audit + * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions). * @return the next definition stage. */ WithCreate withAuditActionsAndGroups(List auditActionsAndGroups); } + /** * The stage of the ExtendedSqlPoolBlobAuditingPolicy definition allowing to specify * storageAccountSubscriptionId. @@ -391,12 +506,13 @@ interface WithAuditActionsAndGroups { interface WithStorageAccountSubscriptionId { /** * Specifies the storageAccountSubscriptionId property: Specifies the blob storage subscription Id.. - * + * * @param storageAccountSubscriptionId Specifies the blob storage subscription Id. * @return the next definition stage. */ WithCreate withStorageAccountSubscriptionId(UUID storageAccountSubscriptionId); } + /** * The stage of the ExtendedSqlPoolBlobAuditingPolicy definition allowing to specify isStorageSecondaryKeyInUse. */ @@ -404,13 +520,14 @@ interface WithIsStorageSecondaryKeyInUse { /** * Specifies the isStorageSecondaryKeyInUse property: Specifies whether storageAccountAccessKey value is the * storage's secondary key.. - * + * * @param isStorageSecondaryKeyInUse Specifies whether storageAccountAccessKey value is the storage's - * secondary key. + * secondary key. * @return the next definition stage. */ WithCreate withIsStorageSecondaryKeyInUse(Boolean isStorageSecondaryKeyInUse); } + /** * The stage of the ExtendedSqlPoolBlobAuditingPolicy definition allowing to specify * isAzureMonitorTargetEnabled. @@ -418,321 +535,423 @@ interface WithIsStorageSecondaryKeyInUse { interface WithIsAzureMonitorTargetEnabled { /** * Specifies the isAzureMonitorTargetEnabled property: Specifies whether audit events are sent to Azure - * Monitor. In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and + * Monitor. + * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and * 'isAzureMonitorTargetEnabled' as true. - * - *

When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' - * diagnostic logs category on the database should be also created. Note that for server level audit you - * should use the 'master' database as {databaseName}. - * - *

Diagnostic Settings URI format: PUT + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic + * logs category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - *

For more information, see [Diagnostic Settings REST - * API](https://go.microsoft.com/fwlink/?linkid=2033207) or [Diagnostic Settings - * PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) . - * - * @param isAzureMonitorTargetEnabled Specifies whether audit events are sent to Azure Monitor. In order to - * send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as - * true. - *

When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' - * diagnostic logs category on the database should be also created. Note that for server level audit you - * should use the 'master' database as {databaseName}. - *

Diagnostic Settings URI format: PUT - * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - *

For more information, see [Diagnostic Settings REST - * API](https://go.microsoft.com/fwlink/?linkid=2033207) or [Diagnostic Settings - * PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + * . + * + * @param isAzureMonitorTargetEnabled Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and + * 'isAzureMonitorTargetEnabled' as true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic + * logs category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT + * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). * @return the next definition stage. */ WithCreate withIsAzureMonitorTargetEnabled(Boolean isAzureMonitorTargetEnabled); } - /** The stage of the ExtendedSqlPoolBlobAuditingPolicy definition allowing to specify queueDelayMs. */ + + /** + * The stage of the ExtendedSqlPoolBlobAuditingPolicy definition allowing to specify queueDelayMs. + */ interface WithQueueDelayMs { /** * Specifies the queueDelayMs property: Specifies the amount of time in milliseconds that can elapse before - * audit actions are forced to be processed. The default minimum value is 1000 (1 second). The maximum is - * 2,147,483,647.. - * + * audit actions are forced to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647.. + * * @param queueDelayMs Specifies the amount of time in milliseconds that can elapse before audit actions are - * forced to be processed. The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. + * forced to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. * @return the next definition stage. */ WithCreate withQueueDelayMs(Integer queueDelayMs); } } + /** * Begins update for the ExtendedSqlPoolBlobAuditingPolicy resource. - * + * * @return the stage of resource update. */ ExtendedSqlPoolBlobAuditingPolicy.Update update(); - /** The template for ExtendedSqlPoolBlobAuditingPolicy update. */ - interface Update - extends UpdateStages.WithPredicateExpression, - UpdateStages.WithState, - UpdateStages.WithStorageEndpoint, - UpdateStages.WithStorageAccountAccessKey, - UpdateStages.WithRetentionDays, - UpdateStages.WithAuditActionsAndGroups, - UpdateStages.WithStorageAccountSubscriptionId, - UpdateStages.WithIsStorageSecondaryKeyInUse, - UpdateStages.WithIsAzureMonitorTargetEnabled, - UpdateStages.WithQueueDelayMs { + /** + * The template for ExtendedSqlPoolBlobAuditingPolicy update. + */ + interface Update extends UpdateStages.WithPredicateExpression, UpdateStages.WithState, + UpdateStages.WithStorageEndpoint, UpdateStages.WithStorageAccountAccessKey, UpdateStages.WithRetentionDays, + UpdateStages.WithAuditActionsAndGroups, UpdateStages.WithStorageAccountSubscriptionId, + UpdateStages.WithIsStorageSecondaryKeyInUse, UpdateStages.WithIsAzureMonitorTargetEnabled, + UpdateStages.WithQueueDelayMs { /** * Executes the update request. - * + * * @return the updated resource. */ ExtendedSqlPoolBlobAuditingPolicy apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ ExtendedSqlPoolBlobAuditingPolicy apply(Context context); } - /** The ExtendedSqlPoolBlobAuditingPolicy update stages. */ + + /** + * The ExtendedSqlPoolBlobAuditingPolicy update stages. + */ interface UpdateStages { - /** The stage of the ExtendedSqlPoolBlobAuditingPolicy update allowing to specify predicateExpression. */ + /** + * The stage of the ExtendedSqlPoolBlobAuditingPolicy update allowing to specify predicateExpression. + */ interface WithPredicateExpression { /** * Specifies the predicateExpression property: Specifies condition of where clause when creating an audit.. - * + * * @param predicateExpression Specifies condition of where clause when creating an audit. * @return the next definition stage. */ Update withPredicateExpression(String predicateExpression); } - /** The stage of the ExtendedSqlPoolBlobAuditingPolicy update allowing to specify state. */ + + /** + * The stage of the ExtendedSqlPoolBlobAuditingPolicy update allowing to specify state. + */ interface WithState { /** * Specifies the state property: Specifies the state of the policy. If state is Enabled, storageEndpoint or * isAzureMonitorTargetEnabled are required.. - * + * * @param state Specifies the state of the policy. If state is Enabled, storageEndpoint or - * isAzureMonitorTargetEnabled are required. + * isAzureMonitorTargetEnabled are required. * @return the next definition stage. */ Update withState(BlobAuditingPolicyState state); } - /** The stage of the ExtendedSqlPoolBlobAuditingPolicy update allowing to specify storageEndpoint. */ + + /** + * The stage of the ExtendedSqlPoolBlobAuditingPolicy update allowing to specify storageEndpoint. + */ interface WithStorageEndpoint { /** * Specifies the storageEndpoint property: Specifies the blob storage endpoint (e.g. * https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or * isAzureMonitorTargetEnabled is required.. - * + * * @param storageEndpoint Specifies the blob storage endpoint (e.g. - * https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or - * isAzureMonitorTargetEnabled is required. + * https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or + * isAzureMonitorTargetEnabled is required. * @return the next definition stage. */ Update withStorageEndpoint(String storageEndpoint); } - /** The stage of the ExtendedSqlPoolBlobAuditingPolicy update allowing to specify storageAccountAccessKey. */ + + /** + * The stage of the ExtendedSqlPoolBlobAuditingPolicy update allowing to specify storageAccountAccessKey. + */ interface WithStorageAccountAccessKey { /** * Specifies the storageAccountAccessKey property: Specifies the identifier key of the auditing storage - * account. If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey - * will use SQL server system-assigned managed identity to access the storage. Prerequisites for using - * managed identity authentication: 1. Assign SQL Server a system-assigned managed identity in Azure Active - * Directory (AAD). 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data - * Contributor' RBAC role to the server identity. For more information, see [Auditing to storage using - * Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355). - * - * @param storageAccountAccessKey Specifies the identifier key of the auditing storage account. If state is - * Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL - * server system-assigned managed identity to access the storage. Prerequisites for using managed - * identity authentication: 1. Assign SQL Server a system-assigned managed identity in Azure Active - * Directory (AAD). 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob - * Data Contributor' RBAC role to the server identity. For more information, see [Auditing to storage - * using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355). + * account. + * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use + * SQL server system-assigned managed identity to access the storage. + * Prerequisites for using managed identity authentication: + * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). + * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC + * role to the server identity. + * For more information, see [Auditing to storage using Managed Identity + * authentication](https://go.microsoft.com/fwlink/?linkid=2114355). + * + * @param storageAccountAccessKey Specifies the identifier key of the auditing storage account. + * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use + * SQL server system-assigned managed identity to access the storage. + * Prerequisites for using managed identity authentication: + * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). + * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC + * role to the server identity. + * For more information, see [Auditing to storage using Managed Identity + * authentication](https://go.microsoft.com/fwlink/?linkid=2114355). * @return the next definition stage. */ Update withStorageAccountAccessKey(String storageAccountAccessKey); } - /** The stage of the ExtendedSqlPoolBlobAuditingPolicy update allowing to specify retentionDays. */ + + /** + * The stage of the ExtendedSqlPoolBlobAuditingPolicy update allowing to specify retentionDays. + */ interface WithRetentionDays { /** * Specifies the retentionDays property: Specifies the number of days to keep in the audit logs in the * storage account.. - * + * * @param retentionDays Specifies the number of days to keep in the audit logs in the storage account. * @return the next definition stage. */ Update withRetentionDays(Integer retentionDays); } - /** The stage of the ExtendedSqlPoolBlobAuditingPolicy update allowing to specify auditActionsAndGroups. */ + + /** + * The stage of the ExtendedSqlPoolBlobAuditingPolicy update allowing to specify auditActionsAndGroups. + */ interface WithAuditActionsAndGroups { /** * Specifies the auditActionsAndGroups property: Specifies the Actions-Groups and Actions to audit. - * - *

The recommended set of action groups to use is the following combination - this will audit all the + * + * The recommended set of action groups to use is the following combination - this will audit all the * queries and stored procedures executed against the database, as well as successful and failed logins: - * - *

BATCH_COMPLETED_GROUP, SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, FAILED_DATABASE_AUTHENTICATION_GROUP. - * - *

This above combination is also the set that is configured by default when enabling auditing from the + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing from the * Azure portal. - * - *

The supported action groups to audit are (note: choose only specific groups that cover your auditing + * + * The supported action groups to audit are (note: choose only specific groups that cover your auditing * needs. Using unnecessary groups could lead to very large quantities of audit records): - * - *

APPLICATION_ROLE_CHANGE_PASSWORD_GROUP BACKUP_RESTORE_GROUP DATABASE_LOGOUT_GROUP - * DATABASE_OBJECT_CHANGE_GROUP DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP - * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP DATABASE_OPERATION_GROUP DATABASE_PERMISSION_CHANGE_GROUP - * DATABASE_PRINCIPAL_CHANGE_GROUP DATABASE_PRINCIPAL_IMPERSONATION_GROUP DATABASE_ROLE_MEMBER_CHANGE_GROUP - * FAILED_DATABASE_AUTHENTICATION_GROUP SCHEMA_OBJECT_ACCESS_GROUP SCHEMA_OBJECT_CHANGE_GROUP - * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP USER_CHANGE_PASSWORD_GROUP BATCH_STARTED_GROUP + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP * BATCH_COMPLETED_GROUP - * - *

These are groups that cover all sql statements and stored procedures executed against the database, - * and should not be used in combination with other groups as this will result in duplicate audit logs. - * - *

For more information, see [Database-Level Audit Action + * + * These are groups that cover all sql statements and stored procedures executed against the database, and + * should not be used in combination with other groups as this will result in duplicate audit logs. + * + * For more information, see [Database-Level Audit Action * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - *

For Database auditing policy, specific Actions can also be specified (note that Actions cannot be - * specified for Server auditing policy). The supported actions to audit are: SELECT UPDATE INSERT DELETE - * EXECUTE RECEIVE REFERENCES - * - *

The general form for defining an action to be audited is: {action} ON {object} BY {principal} - * - *

Note that <object> in the above format can refer to an object like a table, view, or stored + * + * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be + * specified for Server auditing policy). The supported actions to audit are: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE + * REFERENCES + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note that <object> in the above format can refer to an object like a table, view, or stored * procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and * SCHEMA::{schema_name} are used, respectively. - * - *

For example: SELECT on dbo.myTable by public SELECT on DATABASE::myDatabase by public SELECT on - * SCHEMA::mySchema by public - * - *

For more information, see [Database-Level Audit + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For more information, see [Database-Level Audit * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions). - * + * * @param auditActionsAndGroups Specifies the Actions-Groups and Actions to audit. - *

The recommended set of action groups to use is the following combination - this will audit all the - * queries and stored procedures executed against the database, as well as successful and failed logins: - *

BATCH_COMPLETED_GROUP, SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, - * FAILED_DATABASE_AUTHENTICATION_GROUP. - *

This above combination is also the set that is configured by default when enabling auditing from - * the Azure portal. - *

The supported action groups to audit are (note: choose only specific groups that cover your - * auditing needs. Using unnecessary groups could lead to very large quantities of audit records): - *

APPLICATION_ROLE_CHANGE_PASSWORD_GROUP BACKUP_RESTORE_GROUP DATABASE_LOGOUT_GROUP - * DATABASE_OBJECT_CHANGE_GROUP DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP - * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP DATABASE_OPERATION_GROUP DATABASE_PERMISSION_CHANGE_GROUP - * DATABASE_PRINCIPAL_CHANGE_GROUP DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP FAILED_DATABASE_AUTHENTICATION_GROUP SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP USER_CHANGE_PASSWORD_GROUP BATCH_STARTED_GROUP - * BATCH_COMPLETED_GROUP - *

These are groups that cover all sql statements and stored procedures executed against the - * database, and should not be used in combination with other groups as this will result in duplicate - * audit logs. - *

For more information, see [Database-Level Audit Action - * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - *

For Database auditing policy, specific Actions can also be specified (note that Actions cannot be - * specified for Server auditing policy). The supported actions to audit are: SELECT UPDATE INSERT - * DELETE EXECUTE RECEIVE REFERENCES - *

The general form for defining an action to be audited is: {action} ON {object} BY {principal} - *

Note that <object> in the above format can refer to an object like a table, view, or stored - * procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and - * SCHEMA::{schema_name} are used, respectively. - *

For example: SELECT on dbo.myTable by public SELECT on DATABASE::myDatabase by public SELECT on - * SCHEMA::mySchema by public - *

For more information, see [Database-Level Audit - * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions). + * + * The recommended set of action groups to use is the following combination - this will audit all the + * queries and stored procedures executed against the database, as well as successful and failed logins: + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing from the + * Azure portal. + * + * The supported action groups to audit are (note: choose only specific groups that cover your auditing + * needs. Using unnecessary groups could lead to very large quantities of audit records): + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP + * BATCH_COMPLETED_GROUP + * + * These are groups that cover all sql statements and stored procedures executed against the database, and + * should not be used in combination with other groups as this will result in duplicate audit logs. + * + * For more information, see [Database-Level Audit Action + * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). + * + * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be + * specified for Server auditing policy). The supported actions to audit are: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE + * REFERENCES + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note that <object> in the above format can refer to an object like a table, view, or stored + * procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and + * SCHEMA::{schema_name} are used, respectively. + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For more information, see [Database-Level Audit + * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions). * @return the next definition stage. */ Update withAuditActionsAndGroups(List auditActionsAndGroups); } + /** * The stage of the ExtendedSqlPoolBlobAuditingPolicy update allowing to specify storageAccountSubscriptionId. */ interface WithStorageAccountSubscriptionId { /** * Specifies the storageAccountSubscriptionId property: Specifies the blob storage subscription Id.. - * + * * @param storageAccountSubscriptionId Specifies the blob storage subscription Id. * @return the next definition stage. */ Update withStorageAccountSubscriptionId(UUID storageAccountSubscriptionId); } - /** The stage of the ExtendedSqlPoolBlobAuditingPolicy update allowing to specify isStorageSecondaryKeyInUse. */ + + /** + * The stage of the ExtendedSqlPoolBlobAuditingPolicy update allowing to specify isStorageSecondaryKeyInUse. + */ interface WithIsStorageSecondaryKeyInUse { /** * Specifies the isStorageSecondaryKeyInUse property: Specifies whether storageAccountAccessKey value is the * storage's secondary key.. - * + * * @param isStorageSecondaryKeyInUse Specifies whether storageAccountAccessKey value is the storage's - * secondary key. + * secondary key. * @return the next definition stage. */ Update withIsStorageSecondaryKeyInUse(Boolean isStorageSecondaryKeyInUse); } + /** * The stage of the ExtendedSqlPoolBlobAuditingPolicy update allowing to specify isAzureMonitorTargetEnabled. */ interface WithIsAzureMonitorTargetEnabled { /** * Specifies the isAzureMonitorTargetEnabled property: Specifies whether audit events are sent to Azure - * Monitor. In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and + * Monitor. + * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and + * 'isAzureMonitorTargetEnabled' as true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic + * logs category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT + * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + * . + * + * @param isAzureMonitorTargetEnabled Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and * 'isAzureMonitorTargetEnabled' as true. - * - *

When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' - * diagnostic logs category on the database should be also created. Note that for server level audit you - * should use the 'master' database as {databaseName}. - * - *

Diagnostic Settings URI format: PUT + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic + * logs category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - *

For more information, see [Diagnostic Settings REST - * API](https://go.microsoft.com/fwlink/?linkid=2033207) or [Diagnostic Settings - * PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) . - * - * @param isAzureMonitorTargetEnabled Specifies whether audit events are sent to Azure Monitor. In order to - * send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as - * true. - *

When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' - * diagnostic logs category on the database should be also created. Note that for server level audit you - * should use the 'master' database as {databaseName}. - *

Diagnostic Settings URI format: PUT - * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - *

For more information, see [Diagnostic Settings REST - * API](https://go.microsoft.com/fwlink/?linkid=2033207) or [Diagnostic Settings - * PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). * @return the next definition stage. */ Update withIsAzureMonitorTargetEnabled(Boolean isAzureMonitorTargetEnabled); } - /** The stage of the ExtendedSqlPoolBlobAuditingPolicy update allowing to specify queueDelayMs. */ + + /** + * The stage of the ExtendedSqlPoolBlobAuditingPolicy update allowing to specify queueDelayMs. + */ interface WithQueueDelayMs { /** * Specifies the queueDelayMs property: Specifies the amount of time in milliseconds that can elapse before - * audit actions are forced to be processed. The default minimum value is 1000 (1 second). The maximum is - * 2,147,483,647.. - * + * audit actions are forced to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647.. + * * @param queueDelayMs Specifies the amount of time in milliseconds that can elapse before audit actions are - * forced to be processed. The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. + * forced to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. * @return the next definition stage. */ Update withQueueDelayMs(Integer queueDelayMs); } } + /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ ExtendedSqlPoolBlobAuditingPolicy refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedSqlPoolBlobAuditingPolicyListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedSqlPoolBlobAuditingPolicyListResult.java index cf57eab3af79..39a27f4dfe97 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedSqlPoolBlobAuditingPolicyListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ExtendedSqlPoolBlobAuditingPolicyListResult.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** A list of sql pool extended auditing settings. */ +/** + * A list of sql pool extended auditing settings. + */ @Immutable public final class ExtendedSqlPoolBlobAuditingPolicyListResult { /* @@ -24,13 +26,15 @@ public final class ExtendedSqlPoolBlobAuditingPolicyListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; - /** Creates an instance of ExtendedSqlPoolBlobAuditingPolicyListResult class. */ + /** + * Creates an instance of ExtendedSqlPoolBlobAuditingPolicyListResult class. + */ public ExtendedSqlPoolBlobAuditingPolicyListResult() { } /** * Get the value property: Array of results. - * + * * @return the value value. */ public List value() { @@ -39,7 +43,7 @@ public List value() { /** * Get the nextLink property: Link to retrieve next page of results. - * + * * @return the nextLink value. */ public String nextLink() { @@ -48,7 +52,7 @@ public String nextLink() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/FollowerDatabaseDefinition.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/FollowerDatabaseDefinition.java index 143d9e23adef..bbb1b75f5618 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/FollowerDatabaseDefinition.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/FollowerDatabaseDefinition.java @@ -6,11 +6,13 @@ import com.azure.resourcemanager.synapse.fluent.models.FollowerDatabaseDefinitionInner; -/** An immutable client-side representation of FollowerDatabaseDefinition. */ +/** + * An immutable client-side representation of FollowerDatabaseDefinition. + */ public interface FollowerDatabaseDefinition { /** * Gets the kustoPoolResourceId property: Resource id of the cluster that follows a database owned by this cluster. - * + * * @return the kustoPoolResourceId value. */ String kustoPoolResourceId(); @@ -18,7 +20,7 @@ public interface FollowerDatabaseDefinition { /** * Gets the attachedDatabaseConfigurationName property: Resource name of the attached database configuration in the * follower cluster. - * + * * @return the attachedDatabaseConfigurationName value. */ String attachedDatabaseConfigurationName(); @@ -26,14 +28,14 @@ public interface FollowerDatabaseDefinition { /** * Gets the databaseName property: The database name owned by this cluster that was followed. * in case following * all databases. - * + * * @return the databaseName value. */ String databaseName(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.FollowerDatabaseDefinitionInner object. - * + * * @return the inner object. */ FollowerDatabaseDefinitionInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/FollowerDatabaseListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/FollowerDatabaseListResult.java index 5bbd5b8089c5..fafeda613493 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/FollowerDatabaseListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/FollowerDatabaseListResult.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The list Kusto database principals operation response. */ +/** + * The list Kusto database principals operation response. + */ @Fluent public final class FollowerDatabaseListResult { /* @@ -18,13 +20,15 @@ public final class FollowerDatabaseListResult { @JsonProperty(value = "value") private List value; - /** Creates an instance of FollowerDatabaseListResult class. */ + /** + * Creates an instance of FollowerDatabaseListResult class. + */ public FollowerDatabaseListResult() { } /** * Get the value property: The list of follower database result. - * + * * @return the value value. */ public List value() { @@ -33,7 +37,7 @@ public List value() { /** * Set the value property: The list of follower database result. - * + * * @param value the value value to set. * @return the FollowerDatabaseListResult object itself. */ @@ -44,7 +48,7 @@ public FollowerDatabaseListResult withValue(List value; - /** Creates an instance of GeoBackupPolicyListResult class. */ + /** + * Creates an instance of GeoBackupPolicyListResult class. + */ public GeoBackupPolicyListResult() { } /** * Get the value property: The list of geo backup policies. - * + * * @return the value value. */ public List value() { @@ -33,7 +37,7 @@ public List value() { /** * Set the value property: The list of geo backup policies. - * + * * @param value the value value to set. * @return the GeoBackupPolicyListResult object itself. */ @@ -44,7 +48,7 @@ public GeoBackupPolicyListResult withValue(List value) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/GeoBackupPolicyName.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/GeoBackupPolicyName.java index 71e347a98756..9a82f1e3502e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/GeoBackupPolicyName.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/GeoBackupPolicyName.java @@ -8,14 +8,18 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for GeoBackupPolicyName. */ +/** + * Defines values for GeoBackupPolicyName. + */ public final class GeoBackupPolicyName extends ExpandableStringEnum { - /** Static value Default for GeoBackupPolicyName. */ + /** + * Static value Default for GeoBackupPolicyName. + */ public static final GeoBackupPolicyName DEFAULT = fromString("Default"); /** * Creates a new instance of GeoBackupPolicyName value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -24,7 +28,7 @@ public GeoBackupPolicyName() { /** * Creates or finds a GeoBackupPolicyName from its string representation. - * + * * @param name a name to look for. * @return the corresponding GeoBackupPolicyName. */ @@ -35,7 +39,7 @@ public static GeoBackupPolicyName fromString(String name) { /** * Gets known GeoBackupPolicyName values. - * + * * @return known GeoBackupPolicyName values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/GeoBackupPolicyState.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/GeoBackupPolicyState.java index 5ebd0222c5a0..9cee75d66d1f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/GeoBackupPolicyState.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/GeoBackupPolicyState.java @@ -7,15 +7,23 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -/** The state of the geo backup policy. */ +/** + * The state of the geo backup policy. + */ public enum GeoBackupPolicyState { - /** Enum value Disabled. */ + /** + * Enum value Disabled. + */ DISABLED("Disabled"), - /** Enum value Enabled. */ + /** + * Enum value Enabled. + */ ENABLED("Enabled"); - /** The actual serialized value for a GeoBackupPolicyState instance. */ + /** + * The actual serialized value for a GeoBackupPolicyState instance. + */ private final String value; GeoBackupPolicyState(String value) { @@ -24,7 +32,7 @@ public enum GeoBackupPolicyState { /** * Parses a serialized value to a GeoBackupPolicyState instance. - * + * * @param value the serialized value to parse. * @return the parsed GeoBackupPolicyState object, or null if unable to parse. */ @@ -42,7 +50,9 @@ public static GeoBackupPolicyState fromString(String value) { return null; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @JsonValue @Override public String toString() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/GetSsisObjectMetadataRequest.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/GetSsisObjectMetadataRequest.java index c4c448caf33a..75511ed80ef0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/GetSsisObjectMetadataRequest.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/GetSsisObjectMetadataRequest.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** The request payload of get SSIS object metadata. */ +/** + * The request payload of get SSIS object metadata. + */ @Fluent public final class GetSsisObjectMetadataRequest { /* @@ -16,13 +18,15 @@ public final class GetSsisObjectMetadataRequest { @JsonProperty(value = "metadataPath") private String metadataPath; - /** Creates an instance of GetSsisObjectMetadataRequest class. */ + /** + * Creates an instance of GetSsisObjectMetadataRequest class. + */ public GetSsisObjectMetadataRequest() { } /** * Get the metadataPath property: Metadata path. - * + * * @return the metadataPath value. */ public String metadataPath() { @@ -31,7 +35,7 @@ public String metadataPath() { /** * Set the metadataPath property: Metadata path. - * + * * @param metadataPath the metadataPath value to set. * @return the GetSsisObjectMetadataRequest object itself. */ @@ -42,7 +46,7 @@ public GetSsisObjectMetadataRequest withMetadataPath(String metadataPath) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Gets.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Gets.java index 3fa173aad40d..34b3fdad5d44 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Gets.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Gets.java @@ -7,13 +7,15 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of Gets. */ +/** + * Resource collection API of Gets. + */ public interface Gets { /** * Get integration runtime start operation status - * - *

Get an integration runtime start operation status. - * + * + * Get an integration runtime start operation status. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -24,18 +26,14 @@ public interface Gets { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an integration runtime start operation status along with {@link Response}. */ - Response integrationRuntimeStartWithResponse( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String integrationRuntimeOperationId, - Context context); + Response integrationRuntimeStartWithResponse(String resourceGroupName, + String workspaceName, String integrationRuntimeName, String integrationRuntimeOperationId, Context context); /** * Get integration runtime start operation status - * - *

Get an integration runtime start operation status. - * + * + * Get an integration runtime start operation status. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -45,17 +43,14 @@ Response integrationRuntimeStartWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an integration runtime start operation status. */ - IntegrationRuntimeOperationStatus integrationRuntimeStart( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String integrationRuntimeOperationId); + IntegrationRuntimeOperationStatus integrationRuntimeStart(String resourceGroupName, String workspaceName, + String integrationRuntimeName, String integrationRuntimeOperationId); /** * Get integration runtime stop operation status - * - *

Get an integration runtime stop operation status. - * + * + * Get an integration runtime stop operation status. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -66,18 +61,14 @@ IntegrationRuntimeOperationStatus integrationRuntimeStart( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an integration runtime stop operation status along with {@link Response}. */ - Response integrationRuntimeStopWithResponse( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String integrationRuntimeOperationId, - Context context); + Response integrationRuntimeStopWithResponse(String resourceGroupName, + String workspaceName, String integrationRuntimeName, String integrationRuntimeOperationId, Context context); /** * Get integration runtime stop operation status - * - *

Get an integration runtime stop operation status. - * + * + * Get an integration runtime stop operation status. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -87,17 +78,14 @@ Response integrationRuntimeStopWithRespon * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an integration runtime stop operation status. */ - IntegrationRuntimeStopOperationStatus integrationRuntimeStop( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String integrationRuntimeOperationId); + IntegrationRuntimeStopOperationStatus integrationRuntimeStop(String resourceGroupName, String workspaceName, + String integrationRuntimeName, String integrationRuntimeOperationId); /** * Get integration runtime enable interactivequery operation status - * - *

Get an integration runtime enable interactivequery operation status. - * + * + * Get an integration runtime enable interactivequery operation status. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -109,17 +97,14 @@ IntegrationRuntimeStopOperationStatus integrationRuntimeStop( * @return an integration runtime enable interactivequery operation status along with {@link Response}. */ Response integrationRuntimeEnableInteractivequeryWithResponse( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String integrationRuntimeOperationId, - Context context); + String resourceGroupName, String workspaceName, String integrationRuntimeName, + String integrationRuntimeOperationId, Context context); /** * Get integration runtime enable interactivequery operation status - * - *

Get an integration runtime enable interactivequery operation status. - * + * + * Get an integration runtime enable interactivequery operation status. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -129,9 +114,6 @@ Response integrationRuntimeEnableInter * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an integration runtime enable interactivequery operation status. */ - IntegrationRuntimeEnableinteractivequery integrationRuntimeEnableInteractivequery( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String integrationRuntimeOperationId); + IntegrationRuntimeEnableinteractivequery integrationRuntimeEnableInteractivequery(String resourceGroupName, + String workspaceName, String integrationRuntimeName, String integrationRuntimeOperationId); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntime.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntime.java index d09271a46474..724aecaf5164 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntime.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntime.java @@ -15,7 +15,9 @@ import java.util.HashMap; import java.util.Map; -/** Azure Synapse nested object which serves as a compute resource for activities. */ +/** + * Azure Synapse nested object which serves as a compute resource for activities. + */ @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, @@ -24,8 +26,7 @@ @JsonTypeName("IntegrationRuntime") @JsonSubTypes({ @JsonSubTypes.Type(name = "Managed", value = ManagedIntegrationRuntime.class), - @JsonSubTypes.Type(name = "SelfHosted", value = SelfHostedIntegrationRuntime.class) -}) + @JsonSubTypes.Type(name = "SelfHosted", value = SelfHostedIntegrationRuntime.class) }) @Fluent public class IntegrationRuntime { /* @@ -37,15 +38,18 @@ public class IntegrationRuntime { /* * Azure Synapse nested object which serves as a compute resource for activities. */ - @JsonIgnore private Map additionalProperties; + @JsonIgnore + private Map additionalProperties; - /** Creates an instance of IntegrationRuntime class. */ + /** + * Creates an instance of IntegrationRuntime class. + */ public IntegrationRuntime() { } /** * Get the description property: Integration runtime description. - * + * * @return the description value. */ public String description() { @@ -54,7 +58,7 @@ public String description() { /** * Set the description property: Integration runtime description. - * + * * @param description the description value to set. * @return the IntegrationRuntime object itself. */ @@ -66,7 +70,7 @@ public IntegrationRuntime withDescription(String description) { /** * Get the additionalProperties property: Azure Synapse nested object which serves as a compute resource for * activities. - * + * * @return the additionalProperties value. */ @JsonAnyGetter @@ -77,7 +81,7 @@ public Map additionalProperties() { /** * Set the additionalProperties property: Azure Synapse nested object which serves as a compute resource for * activities. - * + * * @param additionalProperties the additionalProperties value to set. * @return the IntegrationRuntime object itself. */ @@ -96,7 +100,7 @@ void withAdditionalProperties(String key, Object value) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeAuthKeyName.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeAuthKeyName.java index fa93e13b7fa3..249538b3b138 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeAuthKeyName.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeAuthKeyName.java @@ -8,17 +8,23 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The name of the authentication key to regenerate. */ +/** + * The name of the authentication key to regenerate. + */ public final class IntegrationRuntimeAuthKeyName extends ExpandableStringEnum { - /** Static value authKey1 for IntegrationRuntimeAuthKeyName. */ + /** + * Static value authKey1 for IntegrationRuntimeAuthKeyName. + */ public static final IntegrationRuntimeAuthKeyName AUTH_KEY1 = fromString("authKey1"); - /** Static value authKey2 for IntegrationRuntimeAuthKeyName. */ + /** + * Static value authKey2 for IntegrationRuntimeAuthKeyName. + */ public static final IntegrationRuntimeAuthKeyName AUTH_KEY2 = fromString("authKey2"); /** * Creates a new instance of IntegrationRuntimeAuthKeyName value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,7 +33,7 @@ public IntegrationRuntimeAuthKeyName() { /** * Creates or finds a IntegrationRuntimeAuthKeyName from its string representation. - * + * * @param name a name to look for. * @return the corresponding IntegrationRuntimeAuthKeyName. */ @@ -38,7 +44,7 @@ public static IntegrationRuntimeAuthKeyName fromString(String name) { /** * Gets known IntegrationRuntimeAuthKeyName values. - * + * * @return known IntegrationRuntimeAuthKeyName values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeAuthKeys.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeAuthKeys.java index 5393d9b26379..d2049c748eda 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeAuthKeys.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeAuthKeys.java @@ -6,25 +6,27 @@ import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeAuthKeysInner; -/** An immutable client-side representation of IntegrationRuntimeAuthKeys. */ +/** + * An immutable client-side representation of IntegrationRuntimeAuthKeys. + */ public interface IntegrationRuntimeAuthKeys { /** * Gets the authKey1 property: The primary integration runtime authentication key. - * + * * @return the authKey1 value. */ String authKey1(); /** * Gets the authKey2 property: The secondary integration runtime authentication key. - * + * * @return the authKey2 value. */ String authKey2(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeAuthKeysInner object. - * + * * @return the inner object. */ IntegrationRuntimeAuthKeysInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeAuthKeysOperations.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeAuthKeysOperations.java index 33c84bf7e764..5f942a22079a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeAuthKeysOperations.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeAuthKeysOperations.java @@ -7,13 +7,15 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of IntegrationRuntimeAuthKeysOperations. */ +/** + * Resource collection API of IntegrationRuntimeAuthKeysOperations. + */ public interface IntegrationRuntimeAuthKeysOperations { /** * Regenerate integration runtime authentication key - * - *

Regenerate the authentication key for an integration runtime. - * + * + * Regenerate the authentication key for an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -24,18 +26,15 @@ public interface IntegrationRuntimeAuthKeysOperations { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the integration runtime authentication keys along with {@link Response}. */ - Response regenerateWithResponse( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters, + Response regenerateWithResponse(String resourceGroupName, String workspaceName, + String integrationRuntimeName, IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters, Context context); /** * Regenerate integration runtime authentication key - * - *

Regenerate the authentication key for an integration runtime. - * + * + * Regenerate the authentication key for an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -45,17 +44,14 @@ Response regenerateWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the integration runtime authentication keys. */ - IntegrationRuntimeAuthKeys regenerate( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, + IntegrationRuntimeAuthKeys regenerate(String resourceGroupName, String workspaceName, String integrationRuntimeName, IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters); /** * List integration runtime authentication keys - * - *

List authentication keys in an integration runtime. - * + * + * List authentication keys in an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -65,14 +61,14 @@ IntegrationRuntimeAuthKeys regenerate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the integration runtime authentication keys along with {@link Response}. */ - Response listWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); + Response listWithResponse(String resourceGroupName, String workspaceName, + String integrationRuntimeName, Context context); /** * List integration runtime authentication keys - * - *

List authentication keys in an integration runtime. - * + * + * List authentication keys in an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeAutoUpdate.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeAutoUpdate.java index e67bd9348cdc..682ae5f06dcc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeAutoUpdate.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeAutoUpdate.java @@ -8,17 +8,23 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The state of integration runtime auto update. */ +/** + * The state of integration runtime auto update. + */ public final class IntegrationRuntimeAutoUpdate extends ExpandableStringEnum { - /** Static value On for IntegrationRuntimeAutoUpdate. */ + /** + * Static value On for IntegrationRuntimeAutoUpdate. + */ public static final IntegrationRuntimeAutoUpdate ON = fromString("On"); - /** Static value Off for IntegrationRuntimeAutoUpdate. */ + /** + * Static value Off for IntegrationRuntimeAutoUpdate. + */ public static final IntegrationRuntimeAutoUpdate OFF = fromString("Off"); /** * Creates a new instance of IntegrationRuntimeAutoUpdate value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,7 +33,7 @@ public IntegrationRuntimeAutoUpdate() { /** * Creates or finds a IntegrationRuntimeAutoUpdate from its string representation. - * + * * @param name a name to look for. * @return the corresponding IntegrationRuntimeAutoUpdate. */ @@ -38,7 +44,7 @@ public static IntegrationRuntimeAutoUpdate fromString(String name) { /** * Gets known IntegrationRuntimeAutoUpdate values. - * + * * @return known IntegrationRuntimeAutoUpdate values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeComputeProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeComputeProperties.java index f160d05a19b7..5caafa292d81 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeComputeProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeComputeProperties.java @@ -12,7 +12,9 @@ import java.util.HashMap; import java.util.Map; -/** The compute resource properties for managed integration runtime. */ +/** + * The compute resource properties for managed integration runtime. + */ @Fluent public final class IntegrationRuntimeComputeProperties { /* @@ -55,16 +57,19 @@ public final class IntegrationRuntimeComputeProperties { /* * The compute resource properties for managed integration runtime. */ - @JsonIgnore private Map additionalProperties; + @JsonIgnore + private Map additionalProperties; - /** Creates an instance of IntegrationRuntimeComputeProperties class. */ + /** + * Creates an instance of IntegrationRuntimeComputeProperties class. + */ public IntegrationRuntimeComputeProperties() { } /** * Get the location property: The location for managed integration runtime. The supported regions could be found on * https://docs.microsoft.com/en-us/azure/data-factory/data-factory-data-movement-activities. - * + * * @return the location value. */ public String location() { @@ -74,7 +79,7 @@ public String location() { /** * Set the location property: The location for managed integration runtime. The supported regions could be found on * https://docs.microsoft.com/en-us/azure/data-factory/data-factory-data-movement-activities. - * + * * @param location the location value to set. * @return the IntegrationRuntimeComputeProperties object itself. */ @@ -85,7 +90,7 @@ public IntegrationRuntimeComputeProperties withLocation(String location) { /** * Get the nodeSize property: The node size requirement to managed integration runtime. - * + * * @return the nodeSize value. */ public String nodeSize() { @@ -94,7 +99,7 @@ public String nodeSize() { /** * Set the nodeSize property: The node size requirement to managed integration runtime. - * + * * @param nodeSize the nodeSize value to set. * @return the IntegrationRuntimeComputeProperties object itself. */ @@ -105,7 +110,7 @@ public IntegrationRuntimeComputeProperties withNodeSize(String nodeSize) { /** * Get the numberOfNodes property: The required number of nodes for managed integration runtime. - * + * * @return the numberOfNodes value. */ public Integer numberOfNodes() { @@ -114,7 +119,7 @@ public Integer numberOfNodes() { /** * Set the numberOfNodes property: The required number of nodes for managed integration runtime. - * + * * @param numberOfNodes the numberOfNodes value to set. * @return the IntegrationRuntimeComputeProperties object itself. */ @@ -124,9 +129,9 @@ public IntegrationRuntimeComputeProperties withNumberOfNodes(Integer numberOfNod } /** - * Get the maxParallelExecutionsPerNode property: Maximum parallel executions count per node for managed integration - * runtime. - * + * Get the maxParallelExecutionsPerNode property: Maximum parallel executions count per node for managed + * integration runtime. + * * @return the maxParallelExecutionsPerNode value. */ public Integer maxParallelExecutionsPerNode() { @@ -134,9 +139,9 @@ public Integer maxParallelExecutionsPerNode() { } /** - * Set the maxParallelExecutionsPerNode property: Maximum parallel executions count per node for managed integration - * runtime. - * + * Set the maxParallelExecutionsPerNode property: Maximum parallel executions count per node for managed + * integration runtime. + * * @param maxParallelExecutionsPerNode the maxParallelExecutionsPerNode value to set. * @return the IntegrationRuntimeComputeProperties object itself. */ @@ -147,7 +152,7 @@ public IntegrationRuntimeComputeProperties withMaxParallelExecutionsPerNode(Inte /** * Get the dataFlowProperties property: Data flow properties for managed integration runtime. - * + * * @return the dataFlowProperties value. */ public IntegrationRuntimeDataFlowProperties dataFlowProperties() { @@ -156,19 +161,19 @@ public IntegrationRuntimeDataFlowProperties dataFlowProperties() { /** * Set the dataFlowProperties property: Data flow properties for managed integration runtime. - * + * * @param dataFlowProperties the dataFlowProperties value to set. * @return the IntegrationRuntimeComputeProperties object itself. */ - public IntegrationRuntimeComputeProperties withDataFlowProperties( - IntegrationRuntimeDataFlowProperties dataFlowProperties) { + public IntegrationRuntimeComputeProperties + withDataFlowProperties(IntegrationRuntimeDataFlowProperties dataFlowProperties) { this.dataFlowProperties = dataFlowProperties; return this; } /** * Get the vNetProperties property: VNet properties for managed integration runtime. - * + * * @return the vNetProperties value. */ public IntegrationRuntimeVNetProperties vNetProperties() { @@ -177,7 +182,7 @@ public IntegrationRuntimeVNetProperties vNetProperties() { /** * Set the vNetProperties property: VNet properties for managed integration runtime. - * + * * @param vNetProperties the vNetProperties value to set. * @return the IntegrationRuntimeComputeProperties object itself. */ @@ -188,7 +193,7 @@ public IntegrationRuntimeComputeProperties withVNetProperties(IntegrationRuntime /** * Get the additionalProperties property: The compute resource properties for managed integration runtime. - * + * * @return the additionalProperties value. */ @JsonAnyGetter @@ -198,7 +203,7 @@ public Map additionalProperties() { /** * Set the additionalProperties property: The compute resource properties for managed integration runtime. - * + * * @param additionalProperties the additionalProperties value to set. * @return the IntegrationRuntimeComputeProperties object itself. */ @@ -217,7 +222,7 @@ void withAdditionalProperties(String key, Object value) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeConnectionInfo.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeConnectionInfo.java index ed74aa837345..2bd1b7bc6ffe 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeConnectionInfo.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeConnectionInfo.java @@ -7,12 +7,14 @@ import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeConnectionInfoInner; import java.util.Map; -/** An immutable client-side representation of IntegrationRuntimeConnectionInfo. */ +/** + * An immutable client-side representation of IntegrationRuntimeConnectionInfo. + */ public interface IntegrationRuntimeConnectionInfo { /** * Gets the serviceToken property: The token generated in service. Callers use this token to authenticate to * integration runtime. - * + * * @return the serviceToken value. */ String serviceToken(); @@ -20,21 +22,21 @@ public interface IntegrationRuntimeConnectionInfo { /** * Gets the identityCertThumbprint property: The integration runtime SSL certificate thumbprint. Click-Once * application uses it to do server validation. - * + * * @return the identityCertThumbprint value. */ String identityCertThumbprint(); /** * Gets the hostServiceUri property: The on-premises integration runtime host URL. - * + * * @return the hostServiceUri value. */ String hostServiceUri(); /** * Gets the version property: The integration runtime version. - * + * * @return the version value. */ String version(); @@ -42,14 +44,14 @@ public interface IntegrationRuntimeConnectionInfo { /** * Gets the publicKey property: The public key for encrypting a credential when transferring the credential to the * integration runtime. - * + * * @return the publicKey value. */ String publicKey(); /** * Gets the isIdentityCertExprired property: Whether the identity certificate is expired. - * + * * @return the isIdentityCertExprired value. */ Boolean isIdentityCertExprired(); @@ -57,14 +59,14 @@ public interface IntegrationRuntimeConnectionInfo { /** * Gets the additionalProperties property: Connection information for encrypting the on-premises data source * credentials. - * + * * @return the additionalProperties value. */ Map additionalProperties(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeConnectionInfoInner object. - * + * * @return the inner object. */ IntegrationRuntimeConnectionInfoInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeConnectionInfos.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeConnectionInfos.java index cac7c9a27f27..48667d441d3e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeConnectionInfos.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeConnectionInfos.java @@ -7,13 +7,15 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of IntegrationRuntimeConnectionInfos. */ +/** + * Resource collection API of IntegrationRuntimeConnectionInfos. + */ public interface IntegrationRuntimeConnectionInfos { /** * Get integration runtime connection info - * - *

Get connection info for an integration runtime. - * + * + * Get connection info for an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -23,14 +25,14 @@ public interface IntegrationRuntimeConnectionInfos { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return connection info for an integration runtime along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + String integrationRuntimeName, Context context); /** * Get integration runtime connection info - * - *

Get connection info for an integration runtime. - * + * + * Get connection info for an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeCredentials.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeCredentials.java index ce26b1623070..531332a6aed0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeCredentials.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeCredentials.java @@ -7,16 +7,18 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of IntegrationRuntimeCredentials. */ +/** + * Resource collection API of IntegrationRuntimeCredentials. + */ public interface IntegrationRuntimeCredentials { /** * Sync integration runtime credentials - * - *

Force the integration runtime to synchronize credentials across integration runtime nodes, and this will - * override the credentials across all worker nodes with those available on the dispatcher node. If you already have - * the latest credential backup file, you should manually import it (preferred) on any self-hosted integration - * runtime node than using this API directly. - * + * + * Force the integration runtime to synchronize credentials across integration runtime nodes, and this will override + * the credentials across all worker nodes with those available on the dispatcher node. If you already have the + * latest credential backup file, you should manually import it (preferred) on any self-hosted integration runtime + * node than using this API directly. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -26,17 +28,17 @@ public interface IntegrationRuntimeCredentials { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ - Response syncWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); + Response syncWithResponse(String resourceGroupName, String workspaceName, String integrationRuntimeName, + Context context); /** * Sync integration runtime credentials - * - *

Force the integration runtime to synchronize credentials across integration runtime nodes, and this will - * override the credentials across all worker nodes with those available on the dispatcher node. If you already have - * the latest credential backup file, you should manually import it (preferred) on any self-hosted integration - * runtime node than using this API directly. - * + * + * Force the integration runtime to synchronize credentials across integration runtime nodes, and this will override + * the credentials across all worker nodes with those available on the dispatcher node. If you already have the + * latest credential backup file, you should manually import it (preferred) on any self-hosted integration runtime + * node than using this API directly. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeCustomSetupScriptProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeCustomSetupScriptProperties.java index 386e8de8d757..3c7e495b52ff 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeCustomSetupScriptProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeCustomSetupScriptProperties.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Custom setup script properties for a managed dedicated integration runtime. */ +/** + * Custom setup script properties for a managed dedicated integration runtime. + */ @Fluent public final class IntegrationRuntimeCustomSetupScriptProperties { /* @@ -22,13 +24,15 @@ public final class IntegrationRuntimeCustomSetupScriptProperties { @JsonProperty(value = "sasToken") private SecureString sasToken; - /** Creates an instance of IntegrationRuntimeCustomSetupScriptProperties class. */ + /** + * Creates an instance of IntegrationRuntimeCustomSetupScriptProperties class. + */ public IntegrationRuntimeCustomSetupScriptProperties() { } /** * Get the blobContainerUri property: The URI of the Azure blob container that contains the custom setup script. - * + * * @return the blobContainerUri value. */ public String blobContainerUri() { @@ -37,7 +41,7 @@ public String blobContainerUri() { /** * Set the blobContainerUri property: The URI of the Azure blob container that contains the custom setup script. - * + * * @param blobContainerUri the blobContainerUri value to set. * @return the IntegrationRuntimeCustomSetupScriptProperties object itself. */ @@ -48,7 +52,7 @@ public IntegrationRuntimeCustomSetupScriptProperties withBlobContainerUri(String /** * Get the sasToken property: The SAS token of the Azure blob container. - * + * * @return the sasToken value. */ public SecureString sasToken() { @@ -57,7 +61,7 @@ public SecureString sasToken() { /** * Set the sasToken property: The SAS token of the Azure blob container. - * + * * @param sasToken the sasToken value to set. * @return the IntegrationRuntimeCustomSetupScriptProperties object itself. */ @@ -68,7 +72,7 @@ public IntegrationRuntimeCustomSetupScriptProperties withSasToken(SecureString s /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeDataFlowProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeDataFlowProperties.java index 6cc89f280507..287546aae243 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeDataFlowProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeDataFlowProperties.java @@ -12,7 +12,9 @@ import java.util.HashMap; import java.util.Map; -/** Data flow properties for managed integration runtime. */ +/** + * Data flow properties for managed integration runtime. + */ @Fluent public final class IntegrationRuntimeDataFlowProperties { /* @@ -44,15 +46,18 @@ public final class IntegrationRuntimeDataFlowProperties { /* * Data flow properties for managed integration runtime. */ - @JsonIgnore private Map additionalProperties; + @JsonIgnore + private Map additionalProperties; - /** Creates an instance of IntegrationRuntimeDataFlowProperties class. */ + /** + * Creates an instance of IntegrationRuntimeDataFlowProperties class. + */ public IntegrationRuntimeDataFlowProperties() { } /** * Get the computeType property: Compute type of the cluster which will execute data flow job. - * + * * @return the computeType value. */ public DataFlowComputeType computeType() { @@ -61,7 +66,7 @@ public DataFlowComputeType computeType() { /** * Set the computeType property: Compute type of the cluster which will execute data flow job. - * + * * @param computeType the computeType value to set. * @return the IntegrationRuntimeDataFlowProperties object itself. */ @@ -73,7 +78,7 @@ public IntegrationRuntimeDataFlowProperties withComputeType(DataFlowComputeType /** * Get the coreCount property: Core count of the cluster which will execute data flow job. Supported values are: 8, * 16, 32, 48, 80, 144 and 272. - * + * * @return the coreCount value. */ public Integer coreCount() { @@ -83,7 +88,7 @@ public Integer coreCount() { /** * Set the coreCount property: Core count of the cluster which will execute data flow job. Supported values are: 8, * 16, 32, 48, 80, 144 and 272. - * + * * @param coreCount the coreCount value to set. * @return the IntegrationRuntimeDataFlowProperties object itself. */ @@ -94,7 +99,7 @@ public IntegrationRuntimeDataFlowProperties withCoreCount(Integer coreCount) { /** * Get the timeToLive property: Time to live (in minutes) setting of the cluster which will execute data flow job. - * + * * @return the timeToLive value. */ public Integer timeToLive() { @@ -103,7 +108,7 @@ public Integer timeToLive() { /** * Set the timeToLive property: Time to live (in minutes) setting of the cluster which will execute data flow job. - * + * * @param timeToLive the timeToLive value to set. * @return the IntegrationRuntimeDataFlowProperties object itself. */ @@ -115,7 +120,7 @@ public IntegrationRuntimeDataFlowProperties withTimeToLive(Integer timeToLive) { /** * Get the cleanup property: Cluster will not be recycled and it will be used in next data flow activity run until * TTL (time to live) is reached if this is set as false. Default is true. - * + * * @return the cleanup value. */ public Boolean cleanup() { @@ -125,7 +130,7 @@ public Boolean cleanup() { /** * Set the cleanup property: Cluster will not be recycled and it will be used in next data flow activity run until * TTL (time to live) is reached if this is set as false. Default is true. - * + * * @param cleanup the cleanup value to set. * @return the IntegrationRuntimeDataFlowProperties object itself. */ @@ -136,7 +141,7 @@ public IntegrationRuntimeDataFlowProperties withCleanup(Boolean cleanup) { /** * Get the additionalProperties property: Data flow properties for managed integration runtime. - * + * * @return the additionalProperties value. */ @JsonAnyGetter @@ -146,7 +151,7 @@ public Map additionalProperties() { /** * Set the additionalProperties property: Data flow properties for managed integration runtime. - * + * * @param additionalProperties the additionalProperties value to set. * @return the IntegrationRuntimeDataFlowProperties object itself. */ @@ -165,7 +170,7 @@ void withAdditionalProperties(String key, Object value) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeDataProxyProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeDataProxyProperties.java index 64de52554f8a..51c264234a2d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeDataProxyProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeDataProxyProperties.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Data proxy properties for a managed dedicated integration runtime. */ +/** + * Data proxy properties for a managed dedicated integration runtime. + */ @Fluent public final class IntegrationRuntimeDataProxyProperties { /* @@ -28,13 +30,15 @@ public final class IntegrationRuntimeDataProxyProperties { @JsonProperty(value = "path") private String path; - /** Creates an instance of IntegrationRuntimeDataProxyProperties class. */ + /** + * Creates an instance of IntegrationRuntimeDataProxyProperties class. + */ public IntegrationRuntimeDataProxyProperties() { } /** * Get the connectVia property: The self-hosted integration runtime reference. - * + * * @return the connectVia value. */ public EntityReference connectVia() { @@ -43,7 +47,7 @@ public EntityReference connectVia() { /** * Set the connectVia property: The self-hosted integration runtime reference. - * + * * @param connectVia the connectVia value to set. * @return the IntegrationRuntimeDataProxyProperties object itself. */ @@ -54,7 +58,7 @@ public IntegrationRuntimeDataProxyProperties withConnectVia(EntityReference conn /** * Get the stagingLinkedService property: The staging linked service reference. - * + * * @return the stagingLinkedService value. */ public EntityReference stagingLinkedService() { @@ -63,7 +67,7 @@ public EntityReference stagingLinkedService() { /** * Set the stagingLinkedService property: The staging linked service reference. - * + * * @param stagingLinkedService the stagingLinkedService value to set. * @return the IntegrationRuntimeDataProxyProperties object itself. */ @@ -74,7 +78,7 @@ public IntegrationRuntimeDataProxyProperties withStagingLinkedService(EntityRefe /** * Get the path property: The path to contain the staged data in the Blob storage. - * + * * @return the path value. */ public String path() { @@ -83,7 +87,7 @@ public String path() { /** * Set the path property: The path to contain the staged data in the Blob storage. - * + * * @param path the path value to set. * @return the IntegrationRuntimeDataProxyProperties object itself. */ @@ -94,7 +98,7 @@ public IntegrationRuntimeDataProxyProperties withPath(String path) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeEdition.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeEdition.java index a897daff0c2f..bbb7453177a2 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeEdition.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeEdition.java @@ -8,17 +8,23 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The edition for the SSIS Integration Runtime. */ +/** + * The edition for the SSIS Integration Runtime. + */ public final class IntegrationRuntimeEdition extends ExpandableStringEnum { - /** Static value Standard for IntegrationRuntimeEdition. */ + /** + * Static value Standard for IntegrationRuntimeEdition. + */ public static final IntegrationRuntimeEdition STANDARD = fromString("Standard"); - /** Static value Enterprise for IntegrationRuntimeEdition. */ + /** + * Static value Enterprise for IntegrationRuntimeEdition. + */ public static final IntegrationRuntimeEdition ENTERPRISE = fromString("Enterprise"); /** * Creates a new instance of IntegrationRuntimeEdition value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,7 +33,7 @@ public IntegrationRuntimeEdition() { /** * Creates or finds a IntegrationRuntimeEdition from its string representation. - * + * * @param name a name to look for. * @return the corresponding IntegrationRuntimeEdition. */ @@ -38,7 +44,7 @@ public static IntegrationRuntimeEdition fromString(String name) { /** * Gets known IntegrationRuntimeEdition values. - * + * * @return known IntegrationRuntimeEdition values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeEnableinteractivequery.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeEnableinteractivequery.java index e78dcf8800d8..bd8019f2d399 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeEnableinteractivequery.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeEnableinteractivequery.java @@ -6,32 +6,34 @@ import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeEnableinteractivequeryInner; -/** An immutable client-side representation of IntegrationRuntimeEnableinteractivequery. */ +/** + * An immutable client-side representation of IntegrationRuntimeEnableinteractivequery. + */ public interface IntegrationRuntimeEnableinteractivequery { /** * Gets the status property: EnableInteractivequery status of Integrationruntimes. - * + * * @return the status value. */ WorkspaceStatus status(); /** * Gets the name property: The operation name. - * + * * @return the name value. */ String name(); /** * Gets the properties property: The operation properties. - * + * * @return the properties value. */ Object properties(); /** * Gets the error property: The operation error message. - * + * * @return the error value. */ String error(); @@ -39,7 +41,7 @@ public interface IntegrationRuntimeEnableinteractivequery { /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeEnableinteractivequeryInner * object. - * + * * @return the inner object. */ IntegrationRuntimeEnableinteractivequeryInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeEntityReferenceType.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeEntityReferenceType.java index b803c8b43d0e..53b72bb36784 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeEntityReferenceType.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeEntityReferenceType.java @@ -8,20 +8,26 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The type of this referenced entity. */ +/** + * The type of this referenced entity. + */ public final class IntegrationRuntimeEntityReferenceType extends ExpandableStringEnum { - /** Static value IntegrationRuntimeReference for IntegrationRuntimeEntityReferenceType. */ - public static final IntegrationRuntimeEntityReferenceType INTEGRATION_RUNTIME_REFERENCE = - fromString("IntegrationRuntimeReference"); + /** + * Static value IntegrationRuntimeReference for IntegrationRuntimeEntityReferenceType. + */ + public static final IntegrationRuntimeEntityReferenceType INTEGRATION_RUNTIME_REFERENCE + = fromString("IntegrationRuntimeReference"); - /** Static value LinkedServiceReference for IntegrationRuntimeEntityReferenceType. */ - public static final IntegrationRuntimeEntityReferenceType LINKED_SERVICE_REFERENCE = - fromString("LinkedServiceReference"); + /** + * Static value LinkedServiceReference for IntegrationRuntimeEntityReferenceType. + */ + public static final IntegrationRuntimeEntityReferenceType LINKED_SERVICE_REFERENCE + = fromString("LinkedServiceReference"); /** * Creates a new instance of IntegrationRuntimeEntityReferenceType value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -30,7 +36,7 @@ public IntegrationRuntimeEntityReferenceType() { /** * Creates or finds a IntegrationRuntimeEntityReferenceType from its string representation. - * + * * @param name a name to look for. * @return the corresponding IntegrationRuntimeEntityReferenceType. */ @@ -41,7 +47,7 @@ public static IntegrationRuntimeEntityReferenceType fromString(String name) { /** * Gets known IntegrationRuntimeEntityReferenceType values. - * + * * @return known IntegrationRuntimeEntityReferenceType values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeInternalChannelEncryptionMode.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeInternalChannelEncryptionMode.java index 40f8f46f1416..f7dd257bb471 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeInternalChannelEncryptionMode.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeInternalChannelEncryptionMode.java @@ -14,18 +14,24 @@ */ public final class IntegrationRuntimeInternalChannelEncryptionMode extends ExpandableStringEnum { - /** Static value NotSet for IntegrationRuntimeInternalChannelEncryptionMode. */ + /** + * Static value NotSet for IntegrationRuntimeInternalChannelEncryptionMode. + */ public static final IntegrationRuntimeInternalChannelEncryptionMode NOT_SET = fromString("NotSet"); - /** Static value SslEncrypted for IntegrationRuntimeInternalChannelEncryptionMode. */ + /** + * Static value SslEncrypted for IntegrationRuntimeInternalChannelEncryptionMode. + */ public static final IntegrationRuntimeInternalChannelEncryptionMode SSL_ENCRYPTED = fromString("SslEncrypted"); - /** Static value NotEncrypted for IntegrationRuntimeInternalChannelEncryptionMode. */ + /** + * Static value NotEncrypted for IntegrationRuntimeInternalChannelEncryptionMode. + */ public static final IntegrationRuntimeInternalChannelEncryptionMode NOT_ENCRYPTED = fromString("NotEncrypted"); /** * Creates a new instance of IntegrationRuntimeInternalChannelEncryptionMode value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -34,7 +40,7 @@ public IntegrationRuntimeInternalChannelEncryptionMode() { /** * Creates or finds a IntegrationRuntimeInternalChannelEncryptionMode from its string representation. - * + * * @param name a name to look for. * @return the corresponding IntegrationRuntimeInternalChannelEncryptionMode. */ @@ -45,7 +51,7 @@ public static IntegrationRuntimeInternalChannelEncryptionMode fromString(String /** * Gets known IntegrationRuntimeInternalChannelEncryptionMode values. - * + * * @return known IntegrationRuntimeInternalChannelEncryptionMode values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeLicenseType.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeLicenseType.java index 04e3ae4b3add..0014d624cadc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeLicenseType.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeLicenseType.java @@ -8,17 +8,23 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** License type for bringing your own license scenario. */ +/** + * License type for bringing your own license scenario. + */ public final class IntegrationRuntimeLicenseType extends ExpandableStringEnum { - /** Static value BasePrice for IntegrationRuntimeLicenseType. */ + /** + * Static value BasePrice for IntegrationRuntimeLicenseType. + */ public static final IntegrationRuntimeLicenseType BASE_PRICE = fromString("BasePrice"); - /** Static value LicenseIncluded for IntegrationRuntimeLicenseType. */ + /** + * Static value LicenseIncluded for IntegrationRuntimeLicenseType. + */ public static final IntegrationRuntimeLicenseType LICENSE_INCLUDED = fromString("LicenseIncluded"); /** * Creates a new instance of IntegrationRuntimeLicenseType value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,7 +33,7 @@ public IntegrationRuntimeLicenseType() { /** * Creates or finds a IntegrationRuntimeLicenseType from its string representation. - * + * * @param name a name to look for. * @return the corresponding IntegrationRuntimeLicenseType. */ @@ -38,7 +44,7 @@ public static IntegrationRuntimeLicenseType fromString(String name) { /** * Gets known IntegrationRuntimeLicenseType values. - * + * * @return known IntegrationRuntimeLicenseType values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeListResponse.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeListResponse.java index a2dfeb3c734c..eb4053518851 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeListResponse.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeListResponse.java @@ -10,7 +10,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** A list of integration runtime resources. */ +/** + * A list of integration runtime resources. + */ @Fluent public final class IntegrationRuntimeListResponse { /* @@ -25,13 +27,15 @@ public final class IntegrationRuntimeListResponse { @JsonProperty(value = "nextLink") private String nextLink; - /** Creates an instance of IntegrationRuntimeListResponse class. */ + /** + * Creates an instance of IntegrationRuntimeListResponse class. + */ public IntegrationRuntimeListResponse() { } /** * Get the value property: List of integration runtimes. - * + * * @return the value value. */ public List value() { @@ -40,7 +44,7 @@ public List value() { /** * Set the value property: List of integration runtimes. - * + * * @param value the value value to set. * @return the IntegrationRuntimeListResponse object itself. */ @@ -51,7 +55,7 @@ public IntegrationRuntimeListResponse withValue(List e.validate()); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeMonitoringData.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeMonitoringData.java index 953f111c6b7a..01f7fe21a551 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeMonitoringData.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeMonitoringData.java @@ -7,25 +7,27 @@ import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeMonitoringDataInner; import java.util.List; -/** An immutable client-side representation of IntegrationRuntimeMonitoringData. */ +/** + * An immutable client-side representation of IntegrationRuntimeMonitoringData. + */ public interface IntegrationRuntimeMonitoringData { /** * Gets the name property: Integration runtime name. - * + * * @return the name value. */ String name(); /** * Gets the nodes property: Integration runtime node monitoring data. - * + * * @return the nodes value. */ List nodes(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeMonitoringDataInner object. - * + * * @return the inner object. */ IntegrationRuntimeMonitoringDataInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeMonitoringDatas.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeMonitoringDatas.java index b61e58538c5e..c16a8a36b086 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeMonitoringDatas.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeMonitoringDatas.java @@ -7,13 +7,15 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of IntegrationRuntimeMonitoringDatas. */ +/** + * Resource collection API of IntegrationRuntimeMonitoringDatas. + */ public interface IntegrationRuntimeMonitoringDatas { /** * Get integration runtime monitoring data - * - *

Get monitoring data for an integration runtime. - * + * + * Get monitoring data for an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -23,14 +25,14 @@ public interface IntegrationRuntimeMonitoringDatas { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return monitoring data for an integration runtime along with {@link Response}. */ - Response listWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); + Response listWithResponse(String resourceGroupName, String workspaceName, + String integrationRuntimeName, Context context); /** * Get integration runtime monitoring data - * - *

Get monitoring data for an integration runtime. - * + * + * Get monitoring data for an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -39,6 +41,6 @@ Response listWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return monitoring data for an integration runtime. */ - IntegrationRuntimeMonitoringData list( - String resourceGroupName, String workspaceName, String integrationRuntimeName); + IntegrationRuntimeMonitoringData list(String resourceGroupName, String workspaceName, + String integrationRuntimeName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeNodeIpAddress.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeNodeIpAddress.java index f5f6d90dc63d..d959b375a4e7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeNodeIpAddress.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeNodeIpAddress.java @@ -6,18 +6,20 @@ import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeNodeIpAddressInner; -/** An immutable client-side representation of IntegrationRuntimeNodeIpAddress. */ +/** + * An immutable client-side representation of IntegrationRuntimeNodeIpAddress. + */ public interface IntegrationRuntimeNodeIpAddress { /** * Gets the ipAddress property: The IP address of self-hosted integration runtime node. - * + * * @return the ipAddress value. */ String ipAddress(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeNodeIpAddressInner object. - * + * * @return the inner object. */ IntegrationRuntimeNodeIpAddressInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeNodeIpAddressOperations.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeNodeIpAddressOperations.java index 385aa1170a37..181e30623eff 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeNodeIpAddressOperations.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeNodeIpAddressOperations.java @@ -7,13 +7,15 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of IntegrationRuntimeNodeIpAddressOperations. */ +/** + * Resource collection API of IntegrationRuntimeNodeIpAddressOperations. + */ public interface IntegrationRuntimeNodeIpAddressOperations { /** * Get integration runtime node IP address - * - *

Get the IP address of an integration runtime node. - * + * + * Get the IP address of an integration runtime node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -24,18 +26,14 @@ public interface IntegrationRuntimeNodeIpAddressOperations { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the IP address of an integration runtime node along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String nodeName, - Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + String integrationRuntimeName, String nodeName, Context context); /** * Get integration runtime node IP address - * - *

Get the IP address of an integration runtime node. - * + * + * Get the IP address of an integration runtime node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -45,6 +43,6 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the IP address of an integration runtime node. */ - IntegrationRuntimeNodeIpAddress get( - String resourceGroupName, String workspaceName, String integrationRuntimeName, String nodeName); + IntegrationRuntimeNodeIpAddress get(String resourceGroupName, String workspaceName, String integrationRuntimeName, + String nodeName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeNodeMonitoringData.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeNodeMonitoringData.java index d9da093a2ccb..b35ac646c7e2 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeNodeMonitoringData.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeNodeMonitoringData.java @@ -12,7 +12,9 @@ import java.util.HashMap; import java.util.Map; -/** Monitoring data for integration runtime node. */ +/** + * Monitoring data for integration runtime node. + */ @Fluent public final class IntegrationRuntimeNodeMonitoringData { /* @@ -66,15 +68,18 @@ public final class IntegrationRuntimeNodeMonitoringData { /* * Monitoring data for integration runtime node. */ - @JsonIgnore private Map additionalProperties; + @JsonIgnore + private Map additionalProperties; - /** Creates an instance of IntegrationRuntimeNodeMonitoringData class. */ + /** + * Creates an instance of IntegrationRuntimeNodeMonitoringData class. + */ public IntegrationRuntimeNodeMonitoringData() { } /** * Get the nodeName property: Name of the integration runtime node. - * + * * @return the nodeName value. */ public String nodeName() { @@ -83,7 +88,7 @@ public String nodeName() { /** * Get the availableMemoryInMB property: Available memory (MB) on the integration runtime node. - * + * * @return the availableMemoryInMB value. */ public Integer availableMemoryInMB() { @@ -92,7 +97,7 @@ public Integer availableMemoryInMB() { /** * Get the cpuUtilization property: CPU percentage on the integration runtime node. - * + * * @return the cpuUtilization value. */ public Integer cpuUtilization() { @@ -101,7 +106,7 @@ public Integer cpuUtilization() { /** * Get the concurrentJobsLimit property: Maximum concurrent jobs on the integration runtime node. - * + * * @return the concurrentJobsLimit value. */ public Integer concurrentJobsLimit() { @@ -110,7 +115,7 @@ public Integer concurrentJobsLimit() { /** * Get the concurrentJobsRunning property: The number of jobs currently running on the integration runtime node. - * + * * @return the concurrentJobsRunning value. */ public Integer concurrentJobsRunning() { @@ -119,7 +124,7 @@ public Integer concurrentJobsRunning() { /** * Get the maxConcurrentJobs property: The maximum concurrent jobs in this integration runtime. - * + * * @return the maxConcurrentJobs value. */ public Integer maxConcurrentJobs() { @@ -128,7 +133,7 @@ public Integer maxConcurrentJobs() { /** * Get the sentBytes property: Sent bytes on the integration runtime node. - * + * * @return the sentBytes value. */ public Float sentBytes() { @@ -137,7 +142,7 @@ public Float sentBytes() { /** * Get the receivedBytes property: Received bytes on the integration runtime node. - * + * * @return the receivedBytes value. */ public Float receivedBytes() { @@ -146,7 +151,7 @@ public Float receivedBytes() { /** * Get the additionalProperties property: Monitoring data for integration runtime node. - * + * * @return the additionalProperties value. */ @JsonAnyGetter @@ -156,7 +161,7 @@ public Map additionalProperties() { /** * Set the additionalProperties property: Monitoring data for integration runtime node. - * + * * @param additionalProperties the additionalProperties value to set. * @return the IntegrationRuntimeNodeMonitoringData object itself. */ @@ -175,7 +180,7 @@ void withAdditionalProperties(String key, Object value) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeNodes.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeNodes.java index d6ae0c00328a..30b511b379e7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeNodes.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeNodes.java @@ -7,13 +7,15 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of IntegrationRuntimeNodes. */ +/** + * Resource collection API of IntegrationRuntimeNodes. + */ public interface IntegrationRuntimeNodes { /** * Get integration runtime node - * - *

Get an integration runtime node. - * + * + * Get an integration runtime node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -24,18 +26,14 @@ public interface IntegrationRuntimeNodes { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an integration runtime node along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String nodeName, - Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + String integrationRuntimeName, String nodeName, Context context); /** * Get integration runtime node - * - *

Get an integration runtime node. - * + * + * Get an integration runtime node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -45,14 +43,14 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an integration runtime node. */ - SelfHostedIntegrationRuntimeNode get( - String resourceGroupName, String workspaceName, String integrationRuntimeName, String nodeName); + SelfHostedIntegrationRuntimeNode get(String resourceGroupName, String workspaceName, String integrationRuntimeName, + String nodeName); /** * Create integration runtime node - * - *

Create an integration runtime node. - * + * + * Create an integration runtime node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -64,19 +62,15 @@ SelfHostedIntegrationRuntimeNode get( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return properties of Self-hosted integration runtime node along with {@link Response}. */ - Response updateWithResponse( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String nodeName, - UpdateIntegrationRuntimeNodeRequest updateIntegrationRuntimeNodeRequest, - Context context); + Response updateWithResponse(String resourceGroupName, String workspaceName, + String integrationRuntimeName, String nodeName, + UpdateIntegrationRuntimeNodeRequest updateIntegrationRuntimeNodeRequest, Context context); /** * Create integration runtime node - * - *

Create an integration runtime node. - * + * + * Create an integration runtime node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -87,18 +81,15 @@ Response updateWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return properties of Self-hosted integration runtime node. */ - SelfHostedIntegrationRuntimeNode update( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String nodeName, + SelfHostedIntegrationRuntimeNode update(String resourceGroupName, String workspaceName, + String integrationRuntimeName, String nodeName, UpdateIntegrationRuntimeNodeRequest updateIntegrationRuntimeNodeRequest); /** * Delete integration runtime node - * - *

Delete an integration runtime node. - * + * + * Delete an integration runtime node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -109,18 +100,14 @@ SelfHostedIntegrationRuntimeNode update( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ - Response deleteWithResponse( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String nodeName, - Context context); + Response deleteWithResponse(String resourceGroupName, String workspaceName, String integrationRuntimeName, + String nodeName, Context context); /** * Delete integration runtime node - * - *

Delete an integration runtime node. - * + * + * Delete an integration runtime node. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeObjectMetadatas.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeObjectMetadatas.java index 34777b088f55..a19075817de2 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeObjectMetadatas.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeObjectMetadatas.java @@ -7,13 +7,15 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of IntegrationRuntimeObjectMetadatas. */ +/** + * Resource collection API of IntegrationRuntimeObjectMetadatas. + */ public interface IntegrationRuntimeObjectMetadatas { /** * Get integration runtime object metadata - * - *

Get object metadata from an integration runtime. - * + * + * Get object metadata from an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -24,18 +26,14 @@ public interface IntegrationRuntimeObjectMetadatas { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return object metadata from an integration runtime along with {@link Response}. */ - Response listWithResponse( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - GetSsisObjectMetadataRequest getMetadataRequest, - Context context); + Response listWithResponse(String resourceGroupName, String workspaceName, + String integrationRuntimeName, GetSsisObjectMetadataRequest getMetadataRequest, Context context); /** * Get integration runtime object metadata - * - *

Get object metadata from an integration runtime. - * + * + * Get object metadata from an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -48,9 +46,9 @@ Response listWithResponse( /** * Refresh integration runtime object metadata - * - *

Refresh the object metadata in an integration runtime. - * + * + * Refresh the object metadata in an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -59,14 +57,14 @@ Response listWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the status of the operation. */ - SsisObjectMetadataStatusResponse refresh( - String resourceGroupName, String workspaceName, String integrationRuntimeName); + SsisObjectMetadataStatusResponse refresh(String resourceGroupName, String workspaceName, + String integrationRuntimeName); /** * Refresh integration runtime object metadata - * - *

Refresh the object metadata in an integration runtime. - * + * + * Refresh the object metadata in an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -76,6 +74,6 @@ SsisObjectMetadataStatusResponse refresh( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the status of the operation. */ - SsisObjectMetadataStatusResponse refresh( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); + SsisObjectMetadataStatusResponse refresh(String resourceGroupName, String workspaceName, + String integrationRuntimeName, Context context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeOperationStatus.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeOperationStatus.java index f41dc9fb402e..6811aac83c85 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeOperationStatus.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeOperationStatus.java @@ -6,39 +6,41 @@ import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeOperationStatusInner; -/** An immutable client-side representation of IntegrationRuntimeOperationStatus. */ +/** + * An immutable client-side representation of IntegrationRuntimeOperationStatus. + */ public interface IntegrationRuntimeOperationStatus { /** * Gets the status property: status of Start Integrationruntimes. - * + * * @return the status value. */ WorkspaceStatus status(); /** * Gets the name property: The operation name. - * + * * @return the name value. */ String name(); /** * Gets the properties property: The operation properties. - * + * * @return the properties value. */ Object properties(); /** * Gets the error property: The operation error message. - * + * * @return the error value. */ String error(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeOperationStatusInner object. - * + * * @return the inner object. */ IntegrationRuntimeOperationStatusInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint.java index c5fbc06adfb2..35511a87c2b7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Azure-SSIS integration runtime outbound network dependency endpoints for one category. */ +/** + * Azure-SSIS integration runtime outbound network dependency endpoints for one category. + */ @Fluent public final class IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint { /* @@ -23,13 +25,15 @@ public final class IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint @JsonProperty(value = "endpoints") private List endpoints; - /** Creates an instance of IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint class. */ + /** + * Creates an instance of IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint class. + */ public IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint() { } /** * Get the category property: The category of outbound network dependency. - * + * * @return the category value. */ public String category() { @@ -38,7 +42,7 @@ public String category() { /** * Set the category property: The category of outbound network dependency. - * + * * @param category the category value to set. * @return the IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint object itself. */ @@ -49,7 +53,7 @@ public IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint withCategor /** * Get the endpoints property: The endpoints for outbound network dependency. - * + * * @return the endpoints value. */ public List endpoints() { @@ -58,19 +62,19 @@ public List endpoints() { /** * Set the endpoints property: The endpoints for outbound network dependency. - * + * * @param endpoints the endpoints value to set. * @return the IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint object itself. */ - public IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint withEndpoints( - List endpoints) { + public IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint + withEndpoints(List endpoints) { this.endpoints = endpoints; return this; } /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeOutboundNetworkDependenciesEndpoint.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeOutboundNetworkDependenciesEndpoint.java index a25f96669a5c..2b37e094b7b3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeOutboundNetworkDependenciesEndpoint.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeOutboundNetworkDependenciesEndpoint.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The endpoint for Azure-SSIS integration runtime outbound network dependency. */ +/** + * The endpoint for Azure-SSIS integration runtime outbound network dependency. + */ @Fluent public final class IntegrationRuntimeOutboundNetworkDependenciesEndpoint { /* @@ -23,13 +25,15 @@ public final class IntegrationRuntimeOutboundNetworkDependenciesEndpoint { @JsonProperty(value = "endpointDetails") private List endpointDetails; - /** Creates an instance of IntegrationRuntimeOutboundNetworkDependenciesEndpoint class. */ + /** + * Creates an instance of IntegrationRuntimeOutboundNetworkDependenciesEndpoint class. + */ public IntegrationRuntimeOutboundNetworkDependenciesEndpoint() { } /** * Get the domainName property: The domain name of endpoint. - * + * * @return the domainName value. */ public String domainName() { @@ -38,7 +42,7 @@ public String domainName() { /** * Set the domainName property: The domain name of endpoint. - * + * * @param domainName the domainName value to set. * @return the IntegrationRuntimeOutboundNetworkDependenciesEndpoint object itself. */ @@ -49,7 +53,7 @@ public IntegrationRuntimeOutboundNetworkDependenciesEndpoint withDomainName(Stri /** * Get the endpointDetails property: The details of endpoint. - * + * * @return the endpointDetails value. */ public List endpointDetails() { @@ -58,19 +62,19 @@ public List endpoi /** * Set the endpointDetails property: The details of endpoint. - * + * * @param endpointDetails the endpointDetails value to set. * @return the IntegrationRuntimeOutboundNetworkDependenciesEndpoint object itself. */ - public IntegrationRuntimeOutboundNetworkDependenciesEndpoint withEndpointDetails( - List endpointDetails) { + public IntegrationRuntimeOutboundNetworkDependenciesEndpoint + withEndpointDetails(List endpointDetails) { this.endpointDetails = endpointDetails; return this; } /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails.java index 509f808cf7b6..5eba184b9ef1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** The details of Azure-SSIS integration runtime outbound network dependency endpoint. */ +/** + * The details of Azure-SSIS integration runtime outbound network dependency endpoint. + */ @Fluent public final class IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails { /* @@ -16,13 +18,15 @@ public final class IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails @JsonProperty(value = "port") private Integer port; - /** Creates an instance of IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails class. */ + /** + * Creates an instance of IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails class. + */ public IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails() { } /** * Get the port property: The port of endpoint. - * + * * @return the port value. */ public Integer port() { @@ -31,7 +35,7 @@ public Integer port() { /** * Set the port property: The port of endpoint. - * + * * @param port the port value to set. * @return the IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails object itself. */ @@ -42,7 +46,7 @@ public IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails withPort(Int /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse.java index 4b6fcc331416..02ea55ac86c9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse.java @@ -7,11 +7,13 @@ import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner; import java.util.List; -/** An immutable client-side representation of IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse. */ +/** + * An immutable client-side representation of IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse. + */ public interface IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse { /** * Gets the value property: The list of outbound network dependency endpoints. - * + * * @return the value value. */ List value(); @@ -20,7 +22,7 @@ public interface IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse * Gets the inner * com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner * object. - * + * * @return the inner object. */ IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeRegenerateKeyParameters.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeRegenerateKeyParameters.java index b43f52b59a1a..d0260ff3cf59 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeRegenerateKeyParameters.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeRegenerateKeyParameters.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Parameters to regenerate the authentication key. */ +/** + * Parameters to regenerate the authentication key. + */ @Fluent public final class IntegrationRuntimeRegenerateKeyParameters { /* @@ -16,13 +18,15 @@ public final class IntegrationRuntimeRegenerateKeyParameters { @JsonProperty(value = "keyName") private IntegrationRuntimeAuthKeyName keyName; - /** Creates an instance of IntegrationRuntimeRegenerateKeyParameters class. */ + /** + * Creates an instance of IntegrationRuntimeRegenerateKeyParameters class. + */ public IntegrationRuntimeRegenerateKeyParameters() { } /** * Get the keyName property: The name of the authentication key to regenerate. - * + * * @return the keyName value. */ public IntegrationRuntimeAuthKeyName keyName() { @@ -31,7 +35,7 @@ public IntegrationRuntimeAuthKeyName keyName() { /** * Set the keyName property: The name of the authentication key to regenerate. - * + * * @param keyName the keyName value to set. * @return the IntegrationRuntimeRegenerateKeyParameters object itself. */ @@ -42,7 +46,7 @@ public IntegrationRuntimeRegenerateKeyParameters withKeyName(IntegrationRuntimeA /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeResource.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeResource.java index 64eefb0f4af1..5cb0fdc4e50b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeResource.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeResource.java @@ -8,90 +8,103 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeResourceInner; -/** An immutable client-side representation of IntegrationRuntimeResource. */ +/** + * An immutable client-side representation of IntegrationRuntimeResource. + */ public interface IntegrationRuntimeResource { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the etag property: Resource Etag. - * + * * @return the etag value. */ String etag(); /** * Gets the properties property: Integration runtime properties. - * + * * @return the properties value. */ IntegrationRuntime properties(); /** * Gets the name of the resource group. - * + * * @return the name of the resource group. */ String resourceGroupName(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeResourceInner object. - * + * * @return the inner object. */ IntegrationRuntimeResourceInner innerModel(); - /** The entirety of the IntegrationRuntimeResource definition. */ - interface Definition - extends DefinitionStages.Blank, - DefinitionStages.WithParentResource, - DefinitionStages.WithProperties, - DefinitionStages.WithCreate { + /** + * The entirety of the IntegrationRuntimeResource definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithParentResource, + DefinitionStages.WithProperties, DefinitionStages.WithCreate { } - /** The IntegrationRuntimeResource definition stages. */ + + /** + * The IntegrationRuntimeResource definition stages. + */ interface DefinitionStages { - /** The first stage of the IntegrationRuntimeResource definition. */ + /** + * The first stage of the IntegrationRuntimeResource definition. + */ interface Blank extends WithParentResource { } - /** The stage of the IntegrationRuntimeResource definition allowing to specify parent resource. */ + + /** + * The stage of the IntegrationRuntimeResource definition allowing to specify parent resource. + */ interface WithParentResource { /** * Specifies resourceGroupName, workspaceName. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @return the next definition stage. */ WithProperties withExistingWorkspace(String resourceGroupName, String workspaceName); } - /** The stage of the IntegrationRuntimeResource definition allowing to specify properties. */ + + /** + * The stage of the IntegrationRuntimeResource definition allowing to specify properties. + */ interface WithProperties { /** * Specifies the properties property: Integration runtime properties.. - * + * * @param properties Integration runtime properties. * @return the next definition stage. */ WithCreate withProperties(IntegrationRuntime properties); } + /** * The stage of the IntegrationRuntimeResource definition which contains all the minimum required properties for * the resource to be created, but also allows for any other optional properties to be specified. @@ -99,93 +112,108 @@ interface WithProperties { interface WithCreate extends DefinitionStages.WithIfMatch { /** * Executes the create request. - * + * * @return the created resource. */ IntegrationRuntimeResource create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ IntegrationRuntimeResource create(Context context); } - /** The stage of the IntegrationRuntimeResource definition allowing to specify ifMatch. */ + + /** + * The stage of the IntegrationRuntimeResource definition allowing to specify ifMatch. + */ interface WithIfMatch { /** * Specifies the ifMatch property: ETag of the integration runtime entity. Should only be specified for * update, for which it should match existing entity or can be * for unconditional update.. - * + * * @param ifMatch ETag of the integration runtime entity. Should only be specified for update, for which it - * should match existing entity or can be * for unconditional update. + * should match existing entity or can be * for unconditional update. * @return the next definition stage. */ WithCreate withIfMatch(String ifMatch); } } + /** * Begins update for the IntegrationRuntimeResource resource. - * + * * @return the stage of resource update. */ IntegrationRuntimeResource.Update update(); - /** The template for IntegrationRuntimeResource update. */ + /** + * The template for IntegrationRuntimeResource update. + */ interface Update extends UpdateStages.WithAutoUpdate, UpdateStages.WithUpdateDelayOffset { /** * Executes the update request. - * + * * @return the updated resource. */ IntegrationRuntimeResource apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ IntegrationRuntimeResource apply(Context context); } - /** The IntegrationRuntimeResource update stages. */ + + /** + * The IntegrationRuntimeResource update stages. + */ interface UpdateStages { - /** The stage of the IntegrationRuntimeResource update allowing to specify autoUpdate. */ + /** + * The stage of the IntegrationRuntimeResource update allowing to specify autoUpdate. + */ interface WithAutoUpdate { /** * Specifies the autoUpdate property: Enables or disables the auto-update feature of the self-hosted * integration runtime. See https://go.microsoft.com/fwlink/?linkid=854189.. - * + * * @param autoUpdate Enables or disables the auto-update feature of the self-hosted integration runtime. See - * https://go.microsoft.com/fwlink/?linkid=854189. + * https://go.microsoft.com/fwlink/?linkid=854189. * @return the next definition stage. */ Update withAutoUpdate(IntegrationRuntimeAutoUpdate autoUpdate); } - /** The stage of the IntegrationRuntimeResource update allowing to specify updateDelayOffset. */ + + /** + * The stage of the IntegrationRuntimeResource update allowing to specify updateDelayOffset. + */ interface WithUpdateDelayOffset { /** * Specifies the updateDelayOffset property: The time offset (in hours) in the day, e.g., PT03H is 3 hours. * The integration runtime auto update will happen on that time.. - * + * * @param updateDelayOffset The time offset (in hours) in the day, e.g., PT03H is 3 hours. The integration - * runtime auto update will happen on that time. + * runtime auto update will happen on that time. * @return the next definition stage. */ Update withUpdateDelayOffset(String updateDelayOffset); } } + /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ IntegrationRuntimeResource refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ @@ -193,9 +221,9 @@ interface WithUpdateDelayOffset { /** * Upgrade integration runtime - * - *

Upgrade an integration runtime. - * + * + * Upgrade an integration runtime. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -206,9 +234,9 @@ interface WithUpdateDelayOffset { /** * Upgrade integration runtime - * - *

Upgrade an integration runtime. - * + * + * Upgrade an integration runtime. + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @@ -216,9 +244,9 @@ interface WithUpdateDelayOffset { /** * Start integration runtime - * - *

Start an integration runtime. - * + * + * Start an integration runtime. + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return integration runtime status response. @@ -227,9 +255,9 @@ interface WithUpdateDelayOffset { /** * Start integration runtime - * - *

Start an integration runtime. - * + * + * Start an integration runtime. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -240,9 +268,9 @@ interface WithUpdateDelayOffset { /** * Stop integration runtime - * - *

Stop an integration runtime. - * + * + * Stop an integration runtime. + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @@ -250,9 +278,9 @@ interface WithUpdateDelayOffset { /** * Stop integration runtime - * - *

Stop an integration runtime. - * + * + * Stop an integration runtime. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -262,7 +290,7 @@ interface WithUpdateDelayOffset { /** * Enable interactive query in integration runtime. - * + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @@ -270,7 +298,7 @@ interface WithUpdateDelayOffset { /** * Enable interactive query in integration runtime. - * + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -280,7 +308,7 @@ interface WithUpdateDelayOffset { /** * Disable interactive query in integration runtime. - * + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @@ -288,7 +316,7 @@ interface WithUpdateDelayOffset { /** * Disable interactive query in integration runtime. - * + * * @param context The context to associate with this 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/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeSsisCatalogInfo.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeSsisCatalogInfo.java index de9c30e26bed..0bf2435e415b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeSsisCatalogInfo.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeSsisCatalogInfo.java @@ -12,7 +12,9 @@ import java.util.HashMap; import java.util.Map; -/** Catalog information for managed dedicated integration runtime. */ +/** + * Catalog information for managed dedicated integration runtime. + */ @Fluent public final class IntegrationRuntimeSsisCatalogInfo { /* @@ -43,15 +45,18 @@ public final class IntegrationRuntimeSsisCatalogInfo { /* * Catalog information for managed dedicated integration runtime. */ - @JsonIgnore private Map additionalProperties; + @JsonIgnore + private Map additionalProperties; - /** Creates an instance of IntegrationRuntimeSsisCatalogInfo class. */ + /** + * Creates an instance of IntegrationRuntimeSsisCatalogInfo class. + */ public IntegrationRuntimeSsisCatalogInfo() { } /** * Get the catalogServerEndpoint property: The catalog database server URL. - * + * * @return the catalogServerEndpoint value. */ public String catalogServerEndpoint() { @@ -60,7 +65,7 @@ public String catalogServerEndpoint() { /** * Set the catalogServerEndpoint property: The catalog database server URL. - * + * * @param catalogServerEndpoint the catalogServerEndpoint value to set. * @return the IntegrationRuntimeSsisCatalogInfo object itself. */ @@ -71,7 +76,7 @@ public IntegrationRuntimeSsisCatalogInfo withCatalogServerEndpoint(String catalo /** * Get the catalogAdminUsername property: The administrator user name of catalog database. - * + * * @return the catalogAdminUsername value. */ public String catalogAdminUsername() { @@ -80,7 +85,7 @@ public String catalogAdminUsername() { /** * Set the catalogAdminUsername property: The administrator user name of catalog database. - * + * * @param catalogAdminUsername the catalogAdminUsername value to set. * @return the IntegrationRuntimeSsisCatalogInfo object itself. */ @@ -91,7 +96,7 @@ public IntegrationRuntimeSsisCatalogInfo withCatalogAdminUsername(String catalog /** * Get the catalogAdminPassword property: The password of the administrator user account of the catalog database. - * + * * @return the catalogAdminPassword value. */ public SecureString catalogAdminPassword() { @@ -100,7 +105,7 @@ public SecureString catalogAdminPassword() { /** * Set the catalogAdminPassword property: The password of the administrator user account of the catalog database. - * + * * @param catalogAdminPassword the catalogAdminPassword value to set. * @return the IntegrationRuntimeSsisCatalogInfo object itself. */ @@ -112,7 +117,7 @@ public IntegrationRuntimeSsisCatalogInfo withCatalogAdminPassword(SecureString c /** * Get the catalogPricingTier property: The pricing tier for the catalog database. The valid values could be found * in https://azure.microsoft.com/en-us/pricing/details/sql-database/. - * + * * @return the catalogPricingTier value. */ public IntegrationRuntimeSsisCatalogPricingTier catalogPricingTier() { @@ -122,19 +127,19 @@ public IntegrationRuntimeSsisCatalogPricingTier catalogPricingTier() { /** * Set the catalogPricingTier property: The pricing tier for the catalog database. The valid values could be found * in https://azure.microsoft.com/en-us/pricing/details/sql-database/. - * + * * @param catalogPricingTier the catalogPricingTier value to set. * @return the IntegrationRuntimeSsisCatalogInfo object itself. */ - public IntegrationRuntimeSsisCatalogInfo withCatalogPricingTier( - IntegrationRuntimeSsisCatalogPricingTier catalogPricingTier) { + public IntegrationRuntimeSsisCatalogInfo + withCatalogPricingTier(IntegrationRuntimeSsisCatalogPricingTier catalogPricingTier) { this.catalogPricingTier = catalogPricingTier; return this; } /** * Get the additionalProperties property: Catalog information for managed dedicated integration runtime. - * + * * @return the additionalProperties value. */ @JsonAnyGetter @@ -144,7 +149,7 @@ public Map additionalProperties() { /** * Set the additionalProperties property: Catalog information for managed dedicated integration runtime. - * + * * @param additionalProperties the additionalProperties value to set. * @return the IntegrationRuntimeSsisCatalogInfo object itself. */ @@ -163,7 +168,7 @@ void withAdditionalProperties(String key, Object value) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeSsisCatalogPricingTier.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeSsisCatalogPricingTier.java index 16d8125fd121..d004d5cf2ffb 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeSsisCatalogPricingTier.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeSsisCatalogPricingTier.java @@ -14,21 +14,29 @@ */ public final class IntegrationRuntimeSsisCatalogPricingTier extends ExpandableStringEnum { - /** Static value Basic for IntegrationRuntimeSsisCatalogPricingTier. */ + /** + * Static value Basic for IntegrationRuntimeSsisCatalogPricingTier. + */ public static final IntegrationRuntimeSsisCatalogPricingTier BASIC = fromString("Basic"); - /** Static value Standard for IntegrationRuntimeSsisCatalogPricingTier. */ + /** + * Static value Standard for IntegrationRuntimeSsisCatalogPricingTier. + */ public static final IntegrationRuntimeSsisCatalogPricingTier STANDARD = fromString("Standard"); - /** Static value Premium for IntegrationRuntimeSsisCatalogPricingTier. */ + /** + * Static value Premium for IntegrationRuntimeSsisCatalogPricingTier. + */ public static final IntegrationRuntimeSsisCatalogPricingTier PREMIUM = fromString("Premium"); - /** Static value PremiumRS for IntegrationRuntimeSsisCatalogPricingTier. */ + /** + * Static value PremiumRS for IntegrationRuntimeSsisCatalogPricingTier. + */ public static final IntegrationRuntimeSsisCatalogPricingTier PREMIUM_RS = fromString("PremiumRS"); /** * Creates a new instance of IntegrationRuntimeSsisCatalogPricingTier value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -37,7 +45,7 @@ public IntegrationRuntimeSsisCatalogPricingTier() { /** * Creates or finds a IntegrationRuntimeSsisCatalogPricingTier from its string representation. - * + * * @param name a name to look for. * @return the corresponding IntegrationRuntimeSsisCatalogPricingTier. */ @@ -48,7 +56,7 @@ public static IntegrationRuntimeSsisCatalogPricingTier fromString(String name) { /** * Gets known IntegrationRuntimeSsisCatalogPricingTier values. - * + * * @return known IntegrationRuntimeSsisCatalogPricingTier values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeSsisProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeSsisProperties.java index 683a0343f5cc..3310f35f9783 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeSsisProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeSsisProperties.java @@ -13,7 +13,9 @@ import java.util.List; import java.util.Map; -/** SSIS properties for managed integration runtime. */ +/** + * SSIS properties for managed integration runtime. + */ @Fluent public final class IntegrationRuntimeSsisProperties { /* @@ -55,15 +57,18 @@ public final class IntegrationRuntimeSsisProperties { /* * SSIS properties for managed integration runtime. */ - @JsonIgnore private Map additionalProperties; + @JsonIgnore + private Map additionalProperties; - /** Creates an instance of IntegrationRuntimeSsisProperties class. */ + /** + * Creates an instance of IntegrationRuntimeSsisProperties class. + */ public IntegrationRuntimeSsisProperties() { } /** * Get the catalogInfo property: Catalog information for managed dedicated integration runtime. - * + * * @return the catalogInfo value. */ public IntegrationRuntimeSsisCatalogInfo catalogInfo() { @@ -72,7 +77,7 @@ public IntegrationRuntimeSsisCatalogInfo catalogInfo() { /** * Set the catalogInfo property: Catalog information for managed dedicated integration runtime. - * + * * @param catalogInfo the catalogInfo value to set. * @return the IntegrationRuntimeSsisProperties object itself. */ @@ -83,7 +88,7 @@ public IntegrationRuntimeSsisProperties withCatalogInfo(IntegrationRuntimeSsisCa /** * Get the licenseType property: License type for bringing your own license scenario. - * + * * @return the licenseType value. */ public IntegrationRuntimeLicenseType licenseType() { @@ -92,7 +97,7 @@ public IntegrationRuntimeLicenseType licenseType() { /** * Set the licenseType property: License type for bringing your own license scenario. - * + * * @param licenseType the licenseType value to set. * @return the IntegrationRuntimeSsisProperties object itself. */ @@ -104,7 +109,7 @@ public IntegrationRuntimeSsisProperties withLicenseType(IntegrationRuntimeLicens /** * Get the customSetupScriptProperties property: Custom setup script properties for a managed dedicated integration * runtime. - * + * * @return the customSetupScriptProperties value. */ public IntegrationRuntimeCustomSetupScriptProperties customSetupScriptProperties() { @@ -114,19 +119,19 @@ public IntegrationRuntimeCustomSetupScriptProperties customSetupScriptProperties /** * Set the customSetupScriptProperties property: Custom setup script properties for a managed dedicated integration * runtime. - * + * * @param customSetupScriptProperties the customSetupScriptProperties value to set. * @return the IntegrationRuntimeSsisProperties object itself. */ - public IntegrationRuntimeSsisProperties withCustomSetupScriptProperties( - IntegrationRuntimeCustomSetupScriptProperties customSetupScriptProperties) { + public IntegrationRuntimeSsisProperties + withCustomSetupScriptProperties(IntegrationRuntimeCustomSetupScriptProperties customSetupScriptProperties) { this.customSetupScriptProperties = customSetupScriptProperties; return this; } /** * Get the dataProxyProperties property: Data proxy properties for a managed dedicated integration runtime. - * + * * @return the dataProxyProperties value. */ public IntegrationRuntimeDataProxyProperties dataProxyProperties() { @@ -135,19 +140,19 @@ public IntegrationRuntimeDataProxyProperties dataProxyProperties() { /** * Set the dataProxyProperties property: Data proxy properties for a managed dedicated integration runtime. - * + * * @param dataProxyProperties the dataProxyProperties value to set. * @return the IntegrationRuntimeSsisProperties object itself. */ - public IntegrationRuntimeSsisProperties withDataProxyProperties( - IntegrationRuntimeDataProxyProperties dataProxyProperties) { + public IntegrationRuntimeSsisProperties + withDataProxyProperties(IntegrationRuntimeDataProxyProperties dataProxyProperties) { this.dataProxyProperties = dataProxyProperties; return this; } /** * Get the edition property: The edition for the SSIS Integration Runtime. - * + * * @return the edition value. */ public IntegrationRuntimeEdition edition() { @@ -156,7 +161,7 @@ public IntegrationRuntimeEdition edition() { /** * Set the edition property: The edition for the SSIS Integration Runtime. - * + * * @param edition the edition value to set. * @return the IntegrationRuntimeSsisProperties object itself. */ @@ -168,7 +173,7 @@ public IntegrationRuntimeSsisProperties withEdition(IntegrationRuntimeEdition ed /** * Get the expressCustomSetupProperties property: Custom setup without script properties for a SSIS integration * runtime. - * + * * @return the expressCustomSetupProperties value. */ public List expressCustomSetupProperties() { @@ -178,19 +183,19 @@ public List expressCustomSetupProperties() { /** * Set the expressCustomSetupProperties property: Custom setup without script properties for a SSIS integration * runtime. - * + * * @param expressCustomSetupProperties the expressCustomSetupProperties value to set. * @return the IntegrationRuntimeSsisProperties object itself. */ - public IntegrationRuntimeSsisProperties withExpressCustomSetupProperties( - List expressCustomSetupProperties) { + public IntegrationRuntimeSsisProperties + withExpressCustomSetupProperties(List expressCustomSetupProperties) { this.expressCustomSetupProperties = expressCustomSetupProperties; return this; } /** * Get the additionalProperties property: SSIS properties for managed integration runtime. - * + * * @return the additionalProperties value. */ @JsonAnyGetter @@ -200,7 +205,7 @@ public Map additionalProperties() { /** * Set the additionalProperties property: SSIS properties for managed integration runtime. - * + * * @param additionalProperties the additionalProperties value to set. * @return the IntegrationRuntimeSsisProperties object itself. */ @@ -219,7 +224,7 @@ void withAdditionalProperties(String key, Object value) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeState.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeState.java index b4017b49f6eb..2f0d36f9cd3a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeState.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeState.java @@ -8,41 +8,63 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The state of integration runtime. */ +/** + * The state of integration runtime. + */ public final class IntegrationRuntimeState extends ExpandableStringEnum { - /** Static value Initial for IntegrationRuntimeState. */ + /** + * Static value Initial for IntegrationRuntimeState. + */ public static final IntegrationRuntimeState INITIAL = fromString("Initial"); - /** Static value Stopped for IntegrationRuntimeState. */ + /** + * Static value Stopped for IntegrationRuntimeState. + */ public static final IntegrationRuntimeState STOPPED = fromString("Stopped"); - /** Static value Started for IntegrationRuntimeState. */ + /** + * Static value Started for IntegrationRuntimeState. + */ public static final IntegrationRuntimeState STARTED = fromString("Started"); - /** Static value Starting for IntegrationRuntimeState. */ + /** + * Static value Starting for IntegrationRuntimeState. + */ public static final IntegrationRuntimeState STARTING = fromString("Starting"); - /** Static value Stopping for IntegrationRuntimeState. */ + /** + * Static value Stopping for IntegrationRuntimeState. + */ public static final IntegrationRuntimeState STOPPING = fromString("Stopping"); - /** Static value NeedRegistration for IntegrationRuntimeState. */ + /** + * Static value NeedRegistration for IntegrationRuntimeState. + */ public static final IntegrationRuntimeState NEED_REGISTRATION = fromString("NeedRegistration"); - /** Static value Online for IntegrationRuntimeState. */ + /** + * Static value Online for IntegrationRuntimeState. + */ public static final IntegrationRuntimeState ONLINE = fromString("Online"); - /** Static value Limited for IntegrationRuntimeState. */ + /** + * Static value Limited for IntegrationRuntimeState. + */ public static final IntegrationRuntimeState LIMITED = fromString("Limited"); - /** Static value Offline for IntegrationRuntimeState. */ + /** + * Static value Offline for IntegrationRuntimeState. + */ public static final IntegrationRuntimeState OFFLINE = fromString("Offline"); - /** Static value AccessDenied for IntegrationRuntimeState. */ + /** + * Static value AccessDenied for IntegrationRuntimeState. + */ public static final IntegrationRuntimeState ACCESS_DENIED = fromString("AccessDenied"); /** * Creates a new instance of IntegrationRuntimeState value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -51,7 +73,7 @@ public IntegrationRuntimeState() { /** * Creates or finds a IntegrationRuntimeState from its string representation. - * + * * @param name a name to look for. * @return the corresponding IntegrationRuntimeState. */ @@ -62,7 +84,7 @@ public static IntegrationRuntimeState fromString(String name) { /** * Gets known IntegrationRuntimeState values. - * + * * @return known IntegrationRuntimeState values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeStatus.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeStatus.java index 64cb20340d00..943669fca36f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeStatus.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeStatus.java @@ -15,7 +15,9 @@ import java.util.HashMap; import java.util.Map; -/** Integration runtime status. */ +/** + * Integration runtime status. + */ @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, @@ -24,8 +26,7 @@ @JsonTypeName("IntegrationRuntimeStatus") @JsonSubTypes({ @JsonSubTypes.Type(name = "Managed", value = ManagedIntegrationRuntimeStatus.class), - @JsonSubTypes.Type(name = "SelfHosted", value = SelfHostedIntegrationRuntimeStatus.class) -}) + @JsonSubTypes.Type(name = "SelfHosted", value = SelfHostedIntegrationRuntimeStatus.class) }) @Fluent public class IntegrationRuntimeStatus { /* @@ -43,15 +44,18 @@ public class IntegrationRuntimeStatus { /* * Integration runtime status. */ - @JsonIgnore private Map additionalProperties; + @JsonIgnore + private Map additionalProperties; - /** Creates an instance of IntegrationRuntimeStatus class. */ + /** + * Creates an instance of IntegrationRuntimeStatus class. + */ public IntegrationRuntimeStatus() { } /** * Get the dataFactoryName property: The workspace name which the integration runtime belong to. - * + * * @return the dataFactoryName value. */ public String dataFactoryName() { @@ -60,7 +64,7 @@ public String dataFactoryName() { /** * Get the state property: The state of integration runtime. - * + * * @return the state value. */ public IntegrationRuntimeState state() { @@ -69,7 +73,7 @@ public IntegrationRuntimeState state() { /** * Get the additionalProperties property: Integration runtime status. - * + * * @return the additionalProperties value. */ @JsonAnyGetter @@ -79,7 +83,7 @@ public Map additionalProperties() { /** * Set the additionalProperties property: Integration runtime status. - * + * * @param additionalProperties the additionalProperties value to set. * @return the IntegrationRuntimeStatus object itself. */ @@ -98,7 +102,7 @@ void withAdditionalProperties(String key, Object value) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeStatusOperations.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeStatusOperations.java index 9e830dca3e1d..94fdd34ca512 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeStatusOperations.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeStatusOperations.java @@ -7,13 +7,15 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of IntegrationRuntimeStatusOperations. */ +/** + * Resource collection API of IntegrationRuntimeStatusOperations. + */ public interface IntegrationRuntimeStatusOperations { /** * Get integration runtime status - * - *

Get the integration runtime status. - * + * + * Get the integration runtime status. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -23,14 +25,14 @@ public interface IntegrationRuntimeStatusOperations { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the integration runtime status along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + String integrationRuntimeName, Context context); /** * Get integration runtime status - * - *

Get the integration runtime status. - * + * + * Get the integration runtime status. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeStatusResponse.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeStatusResponse.java index 92662e7ad402..138126d23403 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeStatusResponse.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeStatusResponse.java @@ -6,25 +6,27 @@ import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeStatusResponseInner; -/** An immutable client-side representation of IntegrationRuntimeStatusResponse. */ +/** + * An immutable client-side representation of IntegrationRuntimeStatusResponse. + */ public interface IntegrationRuntimeStatusResponse { /** * Gets the name property: The integration runtime name. - * + * * @return the name value. */ String name(); /** * Gets the properties property: Integration runtime properties. - * + * * @return the properties value. */ IntegrationRuntimeStatus properties(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeStatusResponseInner object. - * + * * @return the inner object. */ IntegrationRuntimeStatusResponseInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeStopOperationStatus.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeStopOperationStatus.java index 0d466c08848a..442c04e32c3c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeStopOperationStatus.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeStopOperationStatus.java @@ -6,39 +6,41 @@ import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeStopOperationStatusInner; -/** An immutable client-side representation of IntegrationRuntimeStopOperationStatus. */ +/** + * An immutable client-side representation of IntegrationRuntimeStopOperationStatus. + */ public interface IntegrationRuntimeStopOperationStatus { /** * Gets the status property: status of Start Integrationruntimes. - * + * * @return the status value. */ WorkspaceStatus status(); /** * Gets the name property: The operation name. - * + * * @return the name value. */ String name(); /** * Gets the properties property: The operation properties. - * + * * @return the properties value. */ Object properties(); /** * Gets the error property: The operation error message. - * + * * @return the error value. */ String error(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeStopOperationStatusInner object. - * + * * @return the inner object. */ IntegrationRuntimeStopOperationStatusInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeType.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeType.java index 65018a4802c9..18f01a6c88b4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeType.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeType.java @@ -8,17 +8,23 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The type of integration runtime. */ +/** + * The type of integration runtime. + */ public final class IntegrationRuntimeType extends ExpandableStringEnum { - /** Static value Managed for IntegrationRuntimeType. */ + /** + * Static value Managed for IntegrationRuntimeType. + */ public static final IntegrationRuntimeType MANAGED = fromString("Managed"); - /** Static value SelfHosted for IntegrationRuntimeType. */ + /** + * Static value SelfHosted for IntegrationRuntimeType. + */ public static final IntegrationRuntimeType SELF_HOSTED = fromString("SelfHosted"); /** * Creates a new instance of IntegrationRuntimeType value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,7 +33,7 @@ public IntegrationRuntimeType() { /** * Creates or finds a IntegrationRuntimeType from its string representation. - * + * * @param name a name to look for. * @return the corresponding IntegrationRuntimeType. */ @@ -38,7 +44,7 @@ public static IntegrationRuntimeType fromString(String name) { /** * Gets known IntegrationRuntimeType values. - * + * * @return known IntegrationRuntimeType values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeUpdateResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeUpdateResult.java index 59350f1896f5..558b551a3f01 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeUpdateResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeUpdateResult.java @@ -8,20 +8,28 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The result of the last integration runtime node update. */ +/** + * The result of the last integration runtime node update. + */ public final class IntegrationRuntimeUpdateResult extends ExpandableStringEnum { - /** Static value None for IntegrationRuntimeUpdateResult. */ + /** + * Static value None for IntegrationRuntimeUpdateResult. + */ public static final IntegrationRuntimeUpdateResult NONE = fromString("None"); - /** Static value Succeed for IntegrationRuntimeUpdateResult. */ + /** + * Static value Succeed for IntegrationRuntimeUpdateResult. + */ public static final IntegrationRuntimeUpdateResult SUCCEED = fromString("Succeed"); - /** Static value Fail for IntegrationRuntimeUpdateResult. */ + /** + * Static value Fail for IntegrationRuntimeUpdateResult. + */ public static final IntegrationRuntimeUpdateResult FAIL = fromString("Fail"); /** * Creates a new instance of IntegrationRuntimeUpdateResult value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -30,7 +38,7 @@ public IntegrationRuntimeUpdateResult() { /** * Creates or finds a IntegrationRuntimeUpdateResult from its string representation. - * + * * @param name a name to look for. * @return the corresponding IntegrationRuntimeUpdateResult. */ @@ -41,7 +49,7 @@ public static IntegrationRuntimeUpdateResult fromString(String name) { /** * Gets known IntegrationRuntimeUpdateResult values. - * + * * @return known IntegrationRuntimeUpdateResult values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeVNetProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeVNetProperties.java index 9f33310f3213..37d87b79a543 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeVNetProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimeVNetProperties.java @@ -13,7 +13,9 @@ import java.util.List; import java.util.Map; -/** VNet properties for managed integration runtime. */ +/** + * VNet properties for managed integration runtime. + */ @Fluent public final class IntegrationRuntimeVNetProperties { /* @@ -43,15 +45,18 @@ public final class IntegrationRuntimeVNetProperties { /* * VNet properties for managed integration runtime. */ - @JsonIgnore private Map additionalProperties; + @JsonIgnore + private Map additionalProperties; - /** Creates an instance of IntegrationRuntimeVNetProperties class. */ + /** + * Creates an instance of IntegrationRuntimeVNetProperties class. + */ public IntegrationRuntimeVNetProperties() { } /** * Get the vNetId property: The ID of the VNet that this integration runtime will join. - * + * * @return the vNetId value. */ public String vNetId() { @@ -60,7 +65,7 @@ public String vNetId() { /** * Set the vNetId property: The ID of the VNet that this integration runtime will join. - * + * * @param vNetId the vNetId value to set. * @return the IntegrationRuntimeVNetProperties object itself. */ @@ -71,7 +76,7 @@ public IntegrationRuntimeVNetProperties withVNetId(String vNetId) { /** * Get the subnet property: The name of the subnet this integration runtime will join. - * + * * @return the subnet value. */ public String subnet() { @@ -80,7 +85,7 @@ public String subnet() { /** * Set the subnet property: The name of the subnet this integration runtime will join. - * + * * @param subnet the subnet value to set. * @return the IntegrationRuntimeVNetProperties object itself. */ @@ -91,7 +96,7 @@ public IntegrationRuntimeVNetProperties withSubnet(String subnet) { /** * Get the publicIPs property: Resource IDs of the public IP addresses that this integration runtime will use. - * + * * @return the publicIPs value. */ public List publicIPs() { @@ -100,7 +105,7 @@ public List publicIPs() { /** * Set the publicIPs property: Resource IDs of the public IP addresses that this integration runtime will use. - * + * * @param publicIPs the publicIPs value to set. * @return the IntegrationRuntimeVNetProperties object itself. */ @@ -111,7 +116,7 @@ public IntegrationRuntimeVNetProperties withPublicIPs(List publicIPs) { /** * Get the subnetId property: The ID of subnet, to which this Azure-SSIS integration runtime will be joined. - * + * * @return the subnetId value. */ public String subnetId() { @@ -120,7 +125,7 @@ public String subnetId() { /** * Set the subnetId property: The ID of subnet, to which this Azure-SSIS integration runtime will be joined. - * + * * @param subnetId the subnetId value to set. * @return the IntegrationRuntimeVNetProperties object itself. */ @@ -131,7 +136,7 @@ public IntegrationRuntimeVNetProperties withSubnetId(String subnetId) { /** * Get the additionalProperties property: VNet properties for managed integration runtime. - * + * * @return the additionalProperties value. */ @JsonAnyGetter @@ -141,7 +146,7 @@ public Map additionalProperties() { /** * Set the additionalProperties property: VNet properties for managed integration runtime. - * + * * @param additionalProperties the additionalProperties value to set. * @return the IntegrationRuntimeVNetProperties object itself. */ @@ -160,7 +165,7 @@ void withAdditionalProperties(String key, Object value) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimes.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimes.java index 3fb80bc53453..52fd1d21e0f6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimes.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IntegrationRuntimes.java @@ -8,36 +8,34 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of IntegrationRuntimes. */ +/** + * Resource collection API of IntegrationRuntimes. + */ public interface IntegrationRuntimes { /** * Get integration runtime - * - *

Get an integration runtime. - * + * + * Get an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. * @param ifNoneMatch ETag of the integration runtime entity. Should only be specified for get. If the ETag matches - * the existing entity tag, or if * was provided, then no content will be returned. + * the existing entity tag, or if * was provided, then no content will be returned. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an integration runtime along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String integrationRuntimeName, - String ifNoneMatch, - Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + String integrationRuntimeName, String ifNoneMatch, Context context); /** * Get integration runtime - * - *

Get an integration runtime. - * + * + * Get an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -50,9 +48,9 @@ Response getWithResponse( /** * Delete integration runtime - * - *

Delete an integration runtime. - * + * + * Delete an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -64,9 +62,9 @@ Response getWithResponse( /** * Delete integration runtime - * - *

Delete an integration runtime. - * + * + * Delete an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -79,9 +77,9 @@ Response getWithResponse( /** * Upgrade integration runtime - * - *

Upgrade an integration runtime. - * + * + * Upgrade an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -91,14 +89,14 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ - Response upgradeWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); + Response upgradeWithResponse(String resourceGroupName, String workspaceName, String integrationRuntimeName, + Context context); /** * Upgrade integration runtime - * - *

Upgrade an integration runtime. - * + * + * Upgrade an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -110,9 +108,9 @@ Response upgradeWithResponse( /** * List integration runtimes - * - *

List all integration runtimes. - * + * + * List all integration runtimes. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -124,9 +122,9 @@ Response upgradeWithResponse( /** * List integration runtimes - * - *

List all integration runtimes. - * + * + * List all integration runtimes. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -135,14 +133,14 @@ Response upgradeWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of integration runtime resources as paginated response with {@link PagedIterable}. */ - PagedIterable listByWorkspace( - String resourceGroupName, String workspaceName, Context context); + PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, + Context context); /** * Start integration runtime - * - *

Start an integration runtime. - * + * + * Start an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -151,14 +149,14 @@ PagedIterable listByWorkspace( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return integration runtime status response. */ - IntegrationRuntimeStatusResponse start( - String resourceGroupName, String workspaceName, String integrationRuntimeName); + IntegrationRuntimeStatusResponse start(String resourceGroupName, String workspaceName, + String integrationRuntimeName); /** * Start integration runtime - * - *

Start an integration runtime. - * + * + * Start an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -168,14 +166,14 @@ IntegrationRuntimeStatusResponse start( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return integration runtime status response. */ - IntegrationRuntimeStatusResponse start( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); + IntegrationRuntimeStatusResponse start(String resourceGroupName, String workspaceName, + String integrationRuntimeName, Context context); /** * Stop integration runtime - * - *

Stop an integration runtime. - * + * + * Stop an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -187,9 +185,9 @@ IntegrationRuntimeStatusResponse start( /** * Stop integration runtime - * - *

Stop an integration runtime. - * + * + * Stop an integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -202,9 +200,9 @@ IntegrationRuntimeStatusResponse start( /** * Gets list of outbound network dependencies for a given Azure-SSIS integration runtime. - * - *

Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. - * + * + * Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -212,18 +210,18 @@ IntegrationRuntimeStatusResponse start( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list of outbound network dependencies for a given Azure-SSIS integration runtime along with {@link - * Response}. + * @return the list of outbound network dependencies for a given Azure-SSIS integration runtime along with + * {@link Response}. */ Response - listOutboundNetworkDependenciesEndpointsWithResponse( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); + listOutboundNetworkDependenciesEndpointsWithResponse(String resourceGroupName, String workspaceName, + String integrationRuntimeName, Context context); /** * Gets list of outbound network dependencies for a given Azure-SSIS integration runtime. - * - *

Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. - * + * + * Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -237,7 +235,7 @@ IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse listOutboundNetwo /** * Enable interactive query in integration runtime. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -249,7 +247,7 @@ IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse listOutboundNetwo /** * Enable interactive query in integration runtime. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -258,12 +256,12 @@ IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse listOutboundNetwo * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void enableInteractiveQuery( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); + void enableInteractiveQuery(String resourceGroupName, String workspaceName, String integrationRuntimeName, + Context context); /** * Disable interactive query in integration runtime. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -275,7 +273,7 @@ void enableInteractiveQuery( /** * Disable interactive query in integration runtime. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. @@ -284,14 +282,14 @@ void enableInteractiveQuery( * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void disableInteractiveQuery( - String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context); + void disableInteractiveQuery(String resourceGroupName, String workspaceName, String integrationRuntimeName, + Context context); /** * Get integration runtime - * - *

Get an integration runtime. - * + * + * Get an integration runtime. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -302,12 +300,12 @@ void disableInteractiveQuery( /** * Get integration runtime - * - *

Get an integration runtime. - * + * + * Get an integration runtime. + * * @param id the resource ID. * @param ifNoneMatch ETag of the integration runtime entity. Should only be specified for get. If the ETag matches - * the existing entity tag, or if * was provided, then no content will be returned. + * the existing entity tag, or if * was provided, then no content will be returned. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -318,9 +316,9 @@ void disableInteractiveQuery( /** * Delete integration runtime - * - *

Delete an integration runtime. - * + * + * Delete an integration runtime. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -330,9 +328,9 @@ void disableInteractiveQuery( /** * Delete integration runtime - * - *

Delete an integration runtime. - * + * + * Delete an integration runtime. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -343,7 +341,7 @@ void disableInteractiveQuery( /** * Begins definition for a new IntegrationRuntimeResource resource. - * + * * @param name resource name. * @return the first stage of the new IntegrationRuntimeResource definition. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IotHubDataConnection.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IotHubDataConnection.java index 32ab54f18ff0..cb86b9375035 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IotHubDataConnection.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IotHubDataConnection.java @@ -12,7 +12,9 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import java.util.List; -/** Class representing an iot hub data connection. */ +/** + * Class representing an iot hub data connection. + */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "kind") @JsonTypeName("IotHub") @Fluent @@ -23,20 +25,24 @@ public final class IotHubDataConnection extends DataConnectionInner { @JsonProperty(value = "properties") private IotHubConnectionProperties innerProperties; - /** Creates an instance of IotHubDataConnection class. */ + /** + * Creates an instance of IotHubDataConnection class. + */ public IotHubDataConnection() { } /** * Get the innerProperties property: The Iot Hub data connection properties. - * + * * @return the innerProperties value. */ private IotHubConnectionProperties innerProperties() { return this.innerProperties; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public IotHubDataConnection withLocation(String location) { super.withLocation(location); @@ -45,7 +51,7 @@ public IotHubDataConnection withLocation(String location) { /** * Get the iotHubResourceId property: The resource ID of the Iot hub to be used to create a data connection. - * + * * @return the iotHubResourceId value. */ public String iotHubResourceId() { @@ -54,7 +60,7 @@ public String iotHubResourceId() { /** * Set the iotHubResourceId property: The resource ID of the Iot hub to be used to create a data connection. - * + * * @param iotHubResourceId the iotHubResourceId value to set. * @return the IotHubDataConnection object itself. */ @@ -68,7 +74,7 @@ public IotHubDataConnection withIotHubResourceId(String iotHubResourceId) { /** * Get the consumerGroup property: The iot hub consumer group. - * + * * @return the consumerGroup value. */ public String consumerGroup() { @@ -77,7 +83,7 @@ public String consumerGroup() { /** * Set the consumerGroup property: The iot hub consumer group. - * + * * @param consumerGroup the consumerGroup value to set. * @return the IotHubDataConnection object itself. */ @@ -92,7 +98,7 @@ public IotHubDataConnection withConsumerGroup(String consumerGroup) { /** * Get the tableName property: The table where the data should be ingested. Optionally the table information can be * added to each message. - * + * * @return the tableName value. */ public String tableName() { @@ -102,7 +108,7 @@ public String tableName() { /** * Set the tableName property: The table where the data should be ingested. Optionally the table information can be * added to each message. - * + * * @param tableName the tableName value to set. * @return the IotHubDataConnection object itself. */ @@ -117,7 +123,7 @@ public IotHubDataConnection withTableName(String tableName) { /** * Get the mappingRuleName property: The mapping rule to be used to ingest the data. Optionally the mapping * information can be added to each message. - * + * * @return the mappingRuleName value. */ public String mappingRuleName() { @@ -127,7 +133,7 @@ public String mappingRuleName() { /** * Set the mappingRuleName property: The mapping rule to be used to ingest the data. Optionally the mapping * information can be added to each message. - * + * * @param mappingRuleName the mappingRuleName value to set. * @return the IotHubDataConnection object itself. */ @@ -142,7 +148,7 @@ public IotHubDataConnection withMappingRuleName(String mappingRuleName) { /** * Get the dataFormat property: The data format of the message. Optionally the data format can be added to each * message. - * + * * @return the dataFormat value. */ public IotHubDataFormat dataFormat() { @@ -152,7 +158,7 @@ public IotHubDataFormat dataFormat() { /** * Set the dataFormat property: The data format of the message. Optionally the data format can be added to each * message. - * + * * @param dataFormat the dataFormat value to set. * @return the IotHubDataConnection object itself. */ @@ -166,7 +172,7 @@ public IotHubDataConnection withDataFormat(IotHubDataFormat dataFormat) { /** * Get the eventSystemProperties property: System properties of the iot hub. - * + * * @return the eventSystemProperties value. */ public List eventSystemProperties() { @@ -175,7 +181,7 @@ public List eventSystemProperties() { /** * Set the eventSystemProperties property: System properties of the iot hub. - * + * * @param eventSystemProperties the eventSystemProperties value to set. * @return the IotHubDataConnection object itself. */ @@ -189,7 +195,7 @@ public IotHubDataConnection withEventSystemProperties(List eventSystemPr /** * Get the sharedAccessPolicyName property: The name of the share access policy. - * + * * @return the sharedAccessPolicyName value. */ public String sharedAccessPolicyName() { @@ -198,7 +204,7 @@ public String sharedAccessPolicyName() { /** * Set the sharedAccessPolicyName property: The name of the share access policy. - * + * * @param sharedAccessPolicyName the sharedAccessPolicyName value to set. * @return the IotHubDataConnection object itself. */ @@ -212,7 +218,7 @@ public IotHubDataConnection withSharedAccessPolicyName(String sharedAccessPolicy /** * Get the provisioningState property: The provisioned state of the resource. - * + * * @return the provisioningState value. */ public ResourceProvisioningState provisioningState() { @@ -221,7 +227,7 @@ public ResourceProvisioningState provisioningState() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ @Override diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IotHubDataFormat.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IotHubDataFormat.java index b46eb37f6062..0cdf5e79d3b0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IotHubDataFormat.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IotHubDataFormat.java @@ -8,59 +8,93 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The data format of the message. Optionally the data format can be added to each message. */ +/** + * The data format of the message. Optionally the data format can be added to each message. + */ public final class IotHubDataFormat extends ExpandableStringEnum { - /** Static value MULTIJSON for IotHubDataFormat. */ + /** + * Static value MULTIJSON for IotHubDataFormat. + */ public static final IotHubDataFormat MULTIJSON = fromString("MULTIJSON"); - /** Static value JSON for IotHubDataFormat. */ + /** + * Static value JSON for IotHubDataFormat. + */ public static final IotHubDataFormat JSON = fromString("JSON"); - /** Static value CSV for IotHubDataFormat. */ + /** + * Static value CSV for IotHubDataFormat. + */ public static final IotHubDataFormat CSV = fromString("CSV"); - /** Static value TSV for IotHubDataFormat. */ + /** + * Static value TSV for IotHubDataFormat. + */ public static final IotHubDataFormat TSV = fromString("TSV"); - /** Static value SCSV for IotHubDataFormat. */ + /** + * Static value SCSV for IotHubDataFormat. + */ public static final IotHubDataFormat SCSV = fromString("SCSV"); - /** Static value SOHSV for IotHubDataFormat. */ + /** + * Static value SOHSV for IotHubDataFormat. + */ public static final IotHubDataFormat SOHSV = fromString("SOHSV"); - /** Static value PSV for IotHubDataFormat. */ + /** + * Static value PSV for IotHubDataFormat. + */ public static final IotHubDataFormat PSV = fromString("PSV"); - /** Static value TXT for IotHubDataFormat. */ + /** + * Static value TXT for IotHubDataFormat. + */ public static final IotHubDataFormat TXT = fromString("TXT"); - /** Static value RAW for IotHubDataFormat. */ + /** + * Static value RAW for IotHubDataFormat. + */ public static final IotHubDataFormat RAW = fromString("RAW"); - /** Static value SINGLEJSON for IotHubDataFormat. */ + /** + * Static value SINGLEJSON for IotHubDataFormat. + */ public static final IotHubDataFormat SINGLEJSON = fromString("SINGLEJSON"); - /** Static value AVRO for IotHubDataFormat. */ + /** + * Static value AVRO for IotHubDataFormat. + */ public static final IotHubDataFormat AVRO = fromString("AVRO"); - /** Static value TSVE for IotHubDataFormat. */ + /** + * Static value TSVE for IotHubDataFormat. + */ public static final IotHubDataFormat TSVE = fromString("TSVE"); - /** Static value PARQUET for IotHubDataFormat. */ + /** + * Static value PARQUET for IotHubDataFormat. + */ public static final IotHubDataFormat PARQUET = fromString("PARQUET"); - /** Static value ORC for IotHubDataFormat. */ + /** + * Static value ORC for IotHubDataFormat. + */ public static final IotHubDataFormat ORC = fromString("ORC"); - /** Static value APACHEAVRO for IotHubDataFormat. */ + /** + * Static value APACHEAVRO for IotHubDataFormat. + */ public static final IotHubDataFormat APACHEAVRO = fromString("APACHEAVRO"); - /** Static value W3CLOGFILE for IotHubDataFormat. */ + /** + * Static value W3CLOGFILE for IotHubDataFormat. + */ public static final IotHubDataFormat W3CLOGFILE = fromString("W3CLOGFILE"); /** * Creates a new instance of IotHubDataFormat value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -69,7 +103,7 @@ public IotHubDataFormat() { /** * Creates or finds a IotHubDataFormat from its string representation. - * + * * @param name a name to look for. * @return the corresponding IotHubDataFormat. */ @@ -80,7 +114,7 @@ public static IotHubDataFormat fromString(String name) { /** * Gets known IotHubDataFormat values. - * + * * @return known IotHubDataFormat values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IpFirewallRuleInfo.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IpFirewallRuleInfo.java index e408476bcd50..09996cee9e9f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IpFirewallRuleInfo.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IpFirewallRuleInfo.java @@ -7,25 +7,27 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.synapse.fluent.models.IpFirewallRuleInfoInner; -/** An immutable client-side representation of IpFirewallRuleInfo. */ +/** + * An immutable client-side representation of IpFirewallRuleInfo. + */ public interface IpFirewallRuleInfo { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); @@ -33,59 +35,70 @@ public interface IpFirewallRuleInfo { /** * Gets the endIpAddress property: The end IP address of the firewall rule. Must be IPv4 format. Must be greater * than or equal to startIpAddress. - * + * * @return the endIpAddress value. */ String endIpAddress(); /** * Gets the provisioningState property: Resource provisioning state. - * + * * @return the provisioningState value. */ ProvisioningState provisioningState(); /** * Gets the startIpAddress property: The start IP address of the firewall rule. Must be IPv4 format. - * + * * @return the startIpAddress value. */ String startIpAddress(); /** * Gets the name of the resource group. - * + * * @return the name of the resource group. */ String resourceGroupName(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.IpFirewallRuleInfoInner object. - * + * * @return the inner object. */ IpFirewallRuleInfoInner innerModel(); - /** The entirety of the IpFirewallRuleInfo definition. */ + /** + * The entirety of the IpFirewallRuleInfo definition. + */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { } - /** The IpFirewallRuleInfo definition stages. */ + + /** + * The IpFirewallRuleInfo definition stages. + */ interface DefinitionStages { - /** The first stage of the IpFirewallRuleInfo definition. */ + /** + * The first stage of the IpFirewallRuleInfo definition. + */ interface Blank extends WithParentResource { } - /** The stage of the IpFirewallRuleInfo definition allowing to specify parent resource. */ + + /** + * The stage of the IpFirewallRuleInfo definition allowing to specify parent resource. + */ interface WithParentResource { /** * Specifies resourceGroupName, workspaceName. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @return the next definition stage. */ WithCreate withExistingWorkspace(String resourceGroupName, String workspaceName); } + /** * The stage of the IpFirewallRuleInfo definition which contains all the minimum required properties for the * resource to be created, but also allows for any other optional properties to be specified. @@ -93,101 +106,119 @@ interface WithParentResource { interface WithCreate extends DefinitionStages.WithEndIpAddress, DefinitionStages.WithStartIpAddress { /** * Executes the create request. - * + * * @return the created resource. */ IpFirewallRuleInfo create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ IpFirewallRuleInfo create(Context context); } - /** The stage of the IpFirewallRuleInfo definition allowing to specify endIpAddress. */ + + /** + * The stage of the IpFirewallRuleInfo definition allowing to specify endIpAddress. + */ interface WithEndIpAddress { /** * Specifies the endIpAddress property: The end IP address of the firewall rule. Must be IPv4 format. Must * be greater than or equal to startIpAddress. - * + * * @param endIpAddress The end IP address of the firewall rule. Must be IPv4 format. Must be greater than or - * equal to startIpAddress. + * equal to startIpAddress. * @return the next definition stage. */ WithCreate withEndIpAddress(String endIpAddress); } - /** The stage of the IpFirewallRuleInfo definition allowing to specify startIpAddress. */ + + /** + * The stage of the IpFirewallRuleInfo definition allowing to specify startIpAddress. + */ interface WithStartIpAddress { /** * Specifies the startIpAddress property: The start IP address of the firewall rule. Must be IPv4 format. - * + * * @param startIpAddress The start IP address of the firewall rule. Must be IPv4 format. * @return the next definition stage. */ WithCreate withStartIpAddress(String startIpAddress); } } + /** * Begins update for the IpFirewallRuleInfo resource. - * + * * @return the stage of resource update. */ IpFirewallRuleInfo.Update update(); - /** The template for IpFirewallRuleInfo update. */ + /** + * The template for IpFirewallRuleInfo update. + */ interface Update extends UpdateStages.WithEndIpAddress, UpdateStages.WithStartIpAddress { /** * Executes the update request. - * + * * @return the updated resource. */ IpFirewallRuleInfo apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ IpFirewallRuleInfo apply(Context context); } - /** The IpFirewallRuleInfo update stages. */ + + /** + * The IpFirewallRuleInfo update stages. + */ interface UpdateStages { - /** The stage of the IpFirewallRuleInfo update allowing to specify endIpAddress. */ + /** + * The stage of the IpFirewallRuleInfo update allowing to specify endIpAddress. + */ interface WithEndIpAddress { /** * Specifies the endIpAddress property: The end IP address of the firewall rule. Must be IPv4 format. Must * be greater than or equal to startIpAddress. - * + * * @param endIpAddress The end IP address of the firewall rule. Must be IPv4 format. Must be greater than or - * equal to startIpAddress. + * equal to startIpAddress. * @return the next definition stage. */ Update withEndIpAddress(String endIpAddress); } - /** The stage of the IpFirewallRuleInfo update allowing to specify startIpAddress. */ + + /** + * The stage of the IpFirewallRuleInfo update allowing to specify startIpAddress. + */ interface WithStartIpAddress { /** * Specifies the startIpAddress property: The start IP address of the firewall rule. Must be IPv4 format. - * + * * @param startIpAddress The start IP address of the firewall rule. Must be IPv4 format. * @return the next definition stage. */ Update withStartIpAddress(String startIpAddress); } } + /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ IpFirewallRuleInfo refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IpFirewallRuleInfoListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IpFirewallRuleInfoListResult.java index efd02afc4ab4..ec7bcaa22fa4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IpFirewallRuleInfoListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IpFirewallRuleInfoListResult.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** List of IP firewall rules. */ +/** + * List of IP firewall rules. + */ @Fluent public final class IpFirewallRuleInfoListResult { /* @@ -24,13 +26,15 @@ public final class IpFirewallRuleInfoListResult { @JsonProperty(value = "value") private List value; - /** Creates an instance of IpFirewallRuleInfoListResult class. */ + /** + * Creates an instance of IpFirewallRuleInfoListResult class. + */ public IpFirewallRuleInfoListResult() { } /** * Get the nextLink property: Link to next page of results. - * + * * @return the nextLink value. */ public String nextLink() { @@ -39,7 +43,7 @@ public String nextLink() { /** * Set the nextLink property: Link to next page of results. - * + * * @param nextLink the nextLink value to set. * @return the IpFirewallRuleInfoListResult object itself. */ @@ -50,7 +54,7 @@ public IpFirewallRuleInfoListResult withNextLink(String nextLink) { /** * Get the value property: List of IP firewall rules. - * + * * @return the value value. */ public List value() { @@ -59,7 +63,7 @@ public List value() { /** * Set the value property: List of IP firewall rules. - * + * * @param value the value value to set. * @return the IpFirewallRuleInfoListResult object itself. */ @@ -70,7 +74,7 @@ public IpFirewallRuleInfoListResult withValue(List valu /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IpFirewallRules.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IpFirewallRules.java index 664db78647f8..2a6233a937eb 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IpFirewallRules.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/IpFirewallRules.java @@ -8,11 +8,13 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of IpFirewallRules. */ +/** + * Resource collection API of IpFirewallRules. + */ public interface IpFirewallRules { /** * Returns a list of firewall rules. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -24,7 +26,7 @@ public interface IpFirewallRules { /** * Returns a list of firewall rules. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -37,7 +39,7 @@ public interface IpFirewallRules { /** * Deletes a firewall rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param ruleName The IP firewall rule name. @@ -50,7 +52,7 @@ public interface IpFirewallRules { /** * Deletes a firewall rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param ruleName The IP firewall rule name. @@ -64,7 +66,7 @@ public interface IpFirewallRules { /** * Get a firewall rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param ruleName The IP firewall rule name. @@ -74,12 +76,12 @@ public interface IpFirewallRules { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a firewall rule along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, String workspaceName, String ruleName, Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, String ruleName, + Context context); /** * Get a firewall rule. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param ruleName The IP firewall rule name. @@ -92,7 +94,7 @@ Response getWithResponse( /** * Replaces firewall rules. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param request Replace all IP firewall rules request. @@ -101,12 +103,12 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an existing operation for replacing the firewall rules. */ - ReplaceAllFirewallRulesOperationResponse replaceAll( - String resourceGroupName, String workspaceName, ReplaceAllIpFirewallRulesRequest request); + ReplaceAllFirewallRulesOperationResponse replaceAll(String resourceGroupName, String workspaceName, + ReplaceAllIpFirewallRulesRequest request); /** * Replaces firewall rules. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param request Replace all IP firewall rules request. @@ -116,12 +118,12 @@ ReplaceAllFirewallRulesOperationResponse replaceAll( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return an existing operation for replacing the firewall rules. */ - ReplaceAllFirewallRulesOperationResponse replaceAll( - String resourceGroupName, String workspaceName, ReplaceAllIpFirewallRulesRequest request, Context context); + ReplaceAllFirewallRulesOperationResponse replaceAll(String resourceGroupName, String workspaceName, + ReplaceAllIpFirewallRulesRequest request, Context context); /** * Get a firewall rule. - * + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -132,7 +134,7 @@ ReplaceAllFirewallRulesOperationResponse replaceAll( /** * Get a firewall rule. - * + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -144,7 +146,7 @@ ReplaceAllFirewallRulesOperationResponse replaceAll( /** * Deletes a firewall rule. - * + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -155,7 +157,7 @@ ReplaceAllFirewallRulesOperationResponse replaceAll( /** * Deletes a firewall rule. - * + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -167,7 +169,7 @@ ReplaceAllFirewallRulesOperationResponse replaceAll( /** * Begins definition for a new IpFirewallRuleInfo resource. - * + * * @param name resource name. * @return the first stage of the new IpFirewallRuleInfo definition. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KekIdentityProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KekIdentityProperties.java index c011328b8eb7..155c63f2e8d5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KekIdentityProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KekIdentityProperties.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Key encryption key properties. */ +/** + * Key encryption key properties. + */ @Fluent public final class KekIdentityProperties { /* @@ -22,13 +24,15 @@ public final class KekIdentityProperties { @JsonProperty(value = "useSystemAssignedIdentity") private Object useSystemAssignedIdentity; - /** Creates an instance of KekIdentityProperties class. */ + /** + * Creates an instance of KekIdentityProperties class. + */ public KekIdentityProperties() { } /** * Get the userAssignedIdentity property: User assigned identity resource Id. - * + * * @return the userAssignedIdentity value. */ public String userAssignedIdentity() { @@ -37,7 +41,7 @@ public String userAssignedIdentity() { /** * Set the userAssignedIdentity property: User assigned identity resource Id. - * + * * @param userAssignedIdentity the userAssignedIdentity value to set. * @return the KekIdentityProperties object itself. */ @@ -48,7 +52,7 @@ public KekIdentityProperties withUserAssignedIdentity(String userAssignedIdentit /** * Get the useSystemAssignedIdentity property: Boolean specifying whether to use system assigned identity or not. - * + * * @return the useSystemAssignedIdentity value. */ public Object useSystemAssignedIdentity() { @@ -57,7 +61,7 @@ public Object useSystemAssignedIdentity() { /** * Set the useSystemAssignedIdentity property: Boolean specifying whether to use system assigned identity or not. - * + * * @param useSystemAssignedIdentity the useSystemAssignedIdentity value to set. * @return the KekIdentityProperties object itself. */ @@ -68,7 +72,7 @@ public KekIdentityProperties withUseSystemAssignedIdentity(Object useSystemAssig /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Key.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Key.java index 353eee63dea1..6510b156dba6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Key.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Key.java @@ -7,77 +7,90 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.synapse.fluent.models.KeyInner; -/** An immutable client-side representation of Key. */ +/** + * An immutable client-side representation of Key. + */ public interface Key { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the isActiveCmk property: Used to activate the workspace after a customer managed key is provided. - * + * * @return the isActiveCmk value. */ Boolean isActiveCmk(); /** * Gets the keyVaultUrl property: The Key Vault Url of the workspace key. - * + * * @return the keyVaultUrl value. */ String keyVaultUrl(); /** * Gets the name of the resource group. - * + * * @return the name of the resource group. */ String resourceGroupName(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.KeyInner object. - * + * * @return the inner object. */ KeyInner innerModel(); - /** The entirety of the Key definition. */ + /** + * The entirety of the Key definition. + */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { } - /** The Key definition stages. */ + + /** + * The Key definition stages. + */ interface DefinitionStages { - /** The first stage of the Key definition. */ + /** + * The first stage of the Key definition. + */ interface Blank extends WithParentResource { } - /** The stage of the Key definition allowing to specify parent resource. */ + + /** + * The stage of the Key definition allowing to specify parent resource. + */ interface WithParentResource { /** * Specifies resourceGroupName, workspaceName. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @return the next definition stage. */ WithCreate withExistingWorkspace(String resourceGroupName, String workspaceName); } + /** * The stage of the Key definition which contains all the minimum required properties for the resource to be * created, but also allows for any other optional properties to be specified. @@ -85,89 +98,104 @@ interface WithParentResource { interface WithCreate extends DefinitionStages.WithIsActiveCmk, DefinitionStages.WithKeyVaultUrl { /** * Executes the create request. - * + * * @return the created resource. */ Key create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ Key create(Context context); } - /** The stage of the Key definition allowing to specify isActiveCmk. */ + + /** + * The stage of the Key definition allowing to specify isActiveCmk. + */ interface WithIsActiveCmk { /** * Specifies the isActiveCmk property: Used to activate the workspace after a customer managed key is * provided.. - * + * * @param isActiveCmk Used to activate the workspace after a customer managed key is provided. * @return the next definition stage. */ WithCreate withIsActiveCmk(Boolean isActiveCmk); } - /** The stage of the Key definition allowing to specify keyVaultUrl. */ + + /** + * The stage of the Key definition allowing to specify keyVaultUrl. + */ interface WithKeyVaultUrl { /** * Specifies the keyVaultUrl property: The Key Vault Url of the workspace key.. - * + * * @param keyVaultUrl The Key Vault Url of the workspace key. * @return the next definition stage. */ WithCreate withKeyVaultUrl(String keyVaultUrl); } } + /** * Begins update for the Key resource. - * + * * @return the stage of resource update. */ Key.Update update(); - /** The template for Key update. */ + /** + * The template for Key update. + */ interface Update extends UpdateStages.WithIsActiveCmk { /** * Executes the update request. - * + * * @return the updated resource. */ Key apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ Key apply(Context context); } - /** The Key update stages. */ + + /** + * The Key update stages. + */ interface UpdateStages { - /** The stage of the Key update allowing to specify isActiveCmk. */ + /** + * The stage of the Key update allowing to specify isActiveCmk. + */ interface WithIsActiveCmk { /** * Specifies the isActiveCmk property: Used to activate the workspace after a customer managed key is * provided.. - * + * * @param isActiveCmk Used to activate the workspace after a customer managed key is provided. * @return the next definition stage. */ Update withIsActiveCmk(Boolean isActiveCmk); } } + /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ Key refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KeyInfoListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KeyInfoListResult.java index bc91b3239b98..848b5400f95c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KeyInfoListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KeyInfoListResult.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** List of keys. */ +/** + * List of keys. + */ @Fluent public final class KeyInfoListResult { /* @@ -24,13 +26,15 @@ public final class KeyInfoListResult { @JsonProperty(value = "value") private List value; - /** Creates an instance of KeyInfoListResult class. */ + /** + * Creates an instance of KeyInfoListResult class. + */ public KeyInfoListResult() { } /** * Get the nextLink property: Link to the next page of results. - * + * * @return the nextLink value. */ public String nextLink() { @@ -39,7 +43,7 @@ public String nextLink() { /** * Set the nextLink property: Link to the next page of results. - * + * * @param nextLink the nextLink value to set. * @return the KeyInfoListResult object itself. */ @@ -50,7 +54,7 @@ public KeyInfoListResult withNextLink(String nextLink) { /** * Get the value property: List of keys. - * + * * @return the value value. */ public List value() { @@ -59,7 +63,7 @@ public List value() { /** * Set the value property: List of keys. - * + * * @param value the value value to set. * @return the KeyInfoListResult object itself. */ @@ -70,7 +74,7 @@ public KeyInfoListResult withValue(List value) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Keys.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Keys.java index 0aeed21ec56f..6d7695f54c5f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Keys.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Keys.java @@ -8,11 +8,13 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of Keys. */ +/** + * Resource collection API of Keys. + */ public interface Keys { /** * Returns a list of keys in a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -24,7 +26,7 @@ public interface Keys { /** * Returns a list of keys in a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -37,7 +39,7 @@ public interface Keys { /** * Gets a workspace key. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param keyName The name of the workspace key. @@ -51,7 +53,7 @@ public interface Keys { /** * Gets a workspace key. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param keyName The name of the workspace key. @@ -64,7 +66,7 @@ public interface Keys { /** * Deletes a workspace key. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param keyName The name of the workspace key. @@ -78,7 +80,7 @@ public interface Keys { /** * Deletes a workspace key. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param keyName The name of the workspace key. @@ -91,7 +93,7 @@ public interface Keys { /** * Gets a workspace key. - * + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -102,7 +104,7 @@ public interface Keys { /** * Gets a workspace key. - * + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -114,7 +116,7 @@ public interface Keys { /** * Deletes a workspace key. - * + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -125,7 +127,7 @@ public interface Keys { /** * Deletes a workspace key. - * + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -137,7 +139,7 @@ public interface Keys { /** * Begins definition for a new Key resource. - * + * * @param name resource name. * @return the first stage of the new Key definition. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Kind.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Kind.java index dee9a65baaef..d0b6f148fb42 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Kind.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Kind.java @@ -8,17 +8,23 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Kind of the database. */ +/** + * Kind of the database. + */ public final class Kind extends ExpandableStringEnum { - /** Static value ReadWrite for Kind. */ + /** + * Static value ReadWrite for Kind. + */ public static final Kind READ_WRITE = fromString("ReadWrite"); - /** Static value ReadOnlyFollowing for Kind. */ + /** + * Static value ReadOnlyFollowing for Kind. + */ public static final Kind READ_ONLY_FOLLOWING = fromString("ReadOnlyFollowing"); /** * Creates a new instance of Kind value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,7 +33,7 @@ public Kind() { /** * Creates or finds a Kind from its string representation. - * + * * @param name a name to look for. * @return the corresponding Kind. */ @@ -38,7 +44,7 @@ public static Kind fromString(String name) { /** * Gets known Kind values. - * + * * @return known Kind values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoOperations.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoOperations.java index 34a7565921f8..1bb3bdfcc974 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoOperations.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoOperations.java @@ -7,11 +7,13 @@ import com.azure.core.http.rest.PagedIterable; import com.azure.core.util.Context; -/** Resource collection API of KustoOperations. */ +/** + * Resource collection API of KustoOperations. + */ public interface KustoOperations { /** * Lists available operations for the Kusto sub-resources inside Microsoft.Synapse provider. - * + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return result of the request to list REST API operations as paginated response with {@link PagedIterable}. @@ -20,7 +22,7 @@ public interface KustoOperations { /** * Lists available operations for the Kusto sub-resources inside Microsoft.Synapse provider. - * + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPool.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPool.java index 8366f304d873..9c916fd1c74b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPool.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPool.java @@ -12,180 +12,188 @@ import com.azure.resourcemanager.synapse.fluent.models.KustoPoolInner; import java.util.Map; -/** An immutable client-side representation of KustoPool. */ +/** + * An immutable client-side representation of KustoPool. + */ public interface KustoPool { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the location property: The geo-location where the resource lives. - * + * * @return the location value. */ String location(); /** * Gets the tags property: Resource tags. - * + * * @return the tags value. */ Map tags(); /** * Gets the sku property: The SKU of the kusto pool. - * + * * @return the sku value. */ AzureSku sku(); /** * Gets the etag property: A unique read-only string that changes whenever the resource is updated. - * + * * @return the etag value. */ String etag(); /** * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ SystemData systemData(); /** * Gets the state property: The state of the resource. - * + * * @return the state value. */ State state(); /** * Gets the provisioningState property: The provisioned state of the resource. - * + * * @return the provisioningState value. */ ResourceProvisioningState provisioningState(); /** * Gets the uri property: The Kusto Pool URI. - * + * * @return the uri value. */ String uri(); /** * Gets the dataIngestionUri property: The Kusto Pool data ingestion URI. - * + * * @return the dataIngestionUri value. */ String dataIngestionUri(); /** * Gets the stateReason property: The reason for the Kusto Pool's current state. - * + * * @return the stateReason value. */ String stateReason(); /** * Gets the optimizedAutoscale property: Optimized auto scale definition. - * + * * @return the optimizedAutoscale value. */ OptimizedAutoscale optimizedAutoscale(); /** * Gets the enableStreamingIngest property: A boolean value that indicates if the streaming ingest is enabled. - * + * * @return the enableStreamingIngest value. */ Boolean enableStreamingIngest(); /** * Gets the enablePurge property: A boolean value that indicates if the purge operations are enabled. - * + * * @return the enablePurge value. */ Boolean enablePurge(); /** * Gets the languageExtensions property: List of the Kusto Pool's language extensions. - * + * * @return the languageExtensions value. */ LanguageExtensionsList languageExtensions(); /** * Gets the workspaceUid property: The workspace unique identifier. - * + * * @return the workspaceUid value. */ String workspaceUid(); /** * Gets the region of the resource. - * + * * @return the region of the resource. */ Region region(); /** * Gets the name of the resource region. - * + * * @return the name of the resource region. */ String regionName(); /** * Gets the name of the resource group. - * + * * @return the name of the resource group. */ String resourceGroupName(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.KustoPoolInner object. - * + * * @return the inner object. */ KustoPoolInner innerModel(); - /** The entirety of the KustoPool definition. */ - interface Definition - extends DefinitionStages.Blank, - DefinitionStages.WithLocation, - DefinitionStages.WithParentResource, - DefinitionStages.WithSku, - DefinitionStages.WithCreate { + /** + * The entirety of the KustoPool definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, + DefinitionStages.WithParentResource, DefinitionStages.WithSku, DefinitionStages.WithCreate { } - /** The KustoPool definition stages. */ + + /** + * The KustoPool definition stages. + */ interface DefinitionStages { - /** The first stage of the KustoPool definition. */ + /** + * The first stage of the KustoPool definition. + */ interface Blank extends WithLocation { } - /** The stage of the KustoPool definition allowing to specify location. */ + + /** + * The stage of the KustoPool definition allowing to specify location. + */ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ @@ -193,244 +201,286 @@ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ WithParentResource withRegion(String location); } - /** The stage of the KustoPool definition allowing to specify parent resource. */ + + /** + * The stage of the KustoPool definition allowing to specify parent resource. + */ interface WithParentResource { /** * Specifies workspaceName, resourceGroupName. - * + * * @param workspaceName The name of the workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @return the next definition stage. */ WithSku withExistingWorkspace(String workspaceName, String resourceGroupName); } - /** The stage of the KustoPool definition allowing to specify sku. */ + + /** + * The stage of the KustoPool definition allowing to specify sku. + */ interface WithSku { /** * Specifies the sku property: The SKU of the kusto pool.. - * + * * @param sku The SKU of the kusto pool. * @return the next definition stage. */ WithCreate withSku(AzureSku sku); } + /** * The stage of the KustoPool definition which contains all the minimum required properties for the resource to * be created, but also allows for any other optional properties to be specified. */ - interface WithCreate - extends DefinitionStages.WithTags, - DefinitionStages.WithOptimizedAutoscale, - DefinitionStages.WithEnableStreamingIngest, - DefinitionStages.WithEnablePurge, - DefinitionStages.WithWorkspaceUid, - DefinitionStages.WithIfMatch, - DefinitionStages.WithIfNoneMatch { + interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithOptimizedAutoscale, + DefinitionStages.WithEnableStreamingIngest, DefinitionStages.WithEnablePurge, + DefinitionStages.WithWorkspaceUid, DefinitionStages.WithIfMatch, DefinitionStages.WithIfNoneMatch { /** * Executes the create request. - * + * * @return the created resource. */ KustoPool create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ KustoPool create(Context context); } - /** The stage of the KustoPool definition allowing to specify tags. */ + + /** + * The stage of the KustoPool definition allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: Resource tags.. - * + * * @param tags Resource tags. * @return the next definition stage. */ WithCreate withTags(Map tags); } - /** The stage of the KustoPool definition allowing to specify optimizedAutoscale. */ + + /** + * The stage of the KustoPool definition allowing to specify optimizedAutoscale. + */ interface WithOptimizedAutoscale { /** * Specifies the optimizedAutoscale property: Optimized auto scale definition.. - * + * * @param optimizedAutoscale Optimized auto scale definition. * @return the next definition stage. */ WithCreate withOptimizedAutoscale(OptimizedAutoscale optimizedAutoscale); } - /** The stage of the KustoPool definition allowing to specify enableStreamingIngest. */ + + /** + * The stage of the KustoPool definition allowing to specify enableStreamingIngest. + */ interface WithEnableStreamingIngest { /** * Specifies the enableStreamingIngest property: A boolean value that indicates if the streaming ingest is * enabled.. - * + * * @param enableStreamingIngest A boolean value that indicates if the streaming ingest is enabled. * @return the next definition stage. */ WithCreate withEnableStreamingIngest(Boolean enableStreamingIngest); } - /** The stage of the KustoPool definition allowing to specify enablePurge. */ + + /** + * The stage of the KustoPool definition allowing to specify enablePurge. + */ interface WithEnablePurge { /** * Specifies the enablePurge property: A boolean value that indicates if the purge operations are enabled.. - * + * * @param enablePurge A boolean value that indicates if the purge operations are enabled. * @return the next definition stage. */ WithCreate withEnablePurge(Boolean enablePurge); } - /** The stage of the KustoPool definition allowing to specify workspaceUid. */ + + /** + * The stage of the KustoPool definition allowing to specify workspaceUid. + */ interface WithWorkspaceUid { /** * Specifies the workspaceUid property: The workspace unique identifier.. - * + * * @param workspaceUid The workspace unique identifier. * @return the next definition stage. */ WithCreate withWorkspaceUid(String workspaceUid); } - /** The stage of the KustoPool definition allowing to specify ifMatch. */ + + /** + * The stage of the KustoPool definition allowing to specify ifMatch. + */ interface WithIfMatch { /** * Specifies the ifMatch property: The ETag of the Kusto Pool. Omit this value to always overwrite the * current Kusto Pool. Specify the last-seen ETag value to prevent accidentally overwriting concurrent * changes.. - * + * * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. - * Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. + * Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. * @return the next definition stage. */ WithCreate withIfMatch(String ifMatch); } - /** The stage of the KustoPool definition allowing to specify ifNoneMatch. */ + + /** + * The stage of the KustoPool definition allowing to specify ifNoneMatch. + */ interface WithIfNoneMatch { /** * Specifies the ifNoneMatch property: Set to '*' to allow a new Kusto Pool to be created, but to prevent * updating an existing Kusto Pool. Other values will result in a 412 Pre-condition Failed response.. - * + * * @param ifNoneMatch Set to '*' to allow a new Kusto Pool to be created, but to prevent updating an - * existing Kusto Pool. Other values will result in a 412 Pre-condition Failed response. + * existing Kusto Pool. Other values will result in a 412 Pre-condition Failed response. * @return the next definition stage. */ WithCreate withIfNoneMatch(String ifNoneMatch); } } + /** * Begins update for the KustoPool resource. - * + * * @return the stage of resource update. */ KustoPool.Update update(); - /** The template for KustoPool update. */ - interface Update - extends UpdateStages.WithTags, - UpdateStages.WithSku, - UpdateStages.WithOptimizedAutoscale, - UpdateStages.WithEnableStreamingIngest, - UpdateStages.WithEnablePurge, - UpdateStages.WithIfMatch { + /** + * The template for KustoPool update. + */ + interface Update extends UpdateStages.WithTags, UpdateStages.WithSku, UpdateStages.WithOptimizedAutoscale, + UpdateStages.WithEnableStreamingIngest, UpdateStages.WithEnablePurge, UpdateStages.WithIfMatch { /** * Executes the update request. - * + * * @return the updated resource. */ KustoPool apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ KustoPool apply(Context context); } - /** The KustoPool update stages. */ + + /** + * The KustoPool update stages. + */ interface UpdateStages { - /** The stage of the KustoPool update allowing to specify tags. */ + /** + * The stage of the KustoPool update allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: Resource tags.. - * + * * @param tags Resource tags. * @return the next definition stage. */ Update withTags(Map tags); } - /** The stage of the KustoPool update allowing to specify sku. */ + + /** + * The stage of the KustoPool update allowing to specify sku. + */ interface WithSku { /** * Specifies the sku property: The SKU of the kusto pool.. - * + * * @param sku The SKU of the kusto pool. * @return the next definition stage. */ Update withSku(AzureSku sku); } - /** The stage of the KustoPool update allowing to specify optimizedAutoscale. */ + + /** + * The stage of the KustoPool update allowing to specify optimizedAutoscale. + */ interface WithOptimizedAutoscale { /** * Specifies the optimizedAutoscale property: Optimized auto scale definition.. - * + * * @param optimizedAutoscale Optimized auto scale definition. * @return the next definition stage. */ Update withOptimizedAutoscale(OptimizedAutoscale optimizedAutoscale); } - /** The stage of the KustoPool update allowing to specify enableStreamingIngest. */ + + /** + * The stage of the KustoPool update allowing to specify enableStreamingIngest. + */ interface WithEnableStreamingIngest { /** * Specifies the enableStreamingIngest property: A boolean value that indicates if the streaming ingest is * enabled.. - * + * * @param enableStreamingIngest A boolean value that indicates if the streaming ingest is enabled. * @return the next definition stage. */ Update withEnableStreamingIngest(Boolean enableStreamingIngest); } - /** The stage of the KustoPool update allowing to specify enablePurge. */ + + /** + * The stage of the KustoPool update allowing to specify enablePurge. + */ interface WithEnablePurge { /** * Specifies the enablePurge property: A boolean value that indicates if the purge operations are enabled.. - * + * * @param enablePurge A boolean value that indicates if the purge operations are enabled. * @return the next definition stage. */ Update withEnablePurge(Boolean enablePurge); } - /** The stage of the KustoPool update allowing to specify ifMatch. */ + + /** + * The stage of the KustoPool update allowing to specify ifMatch. + */ interface WithIfMatch { /** * Specifies the ifMatch property: The ETag of the Kusto Pool. Omit this value to always overwrite the * current Kusto Pool. Specify the last-seen ETag value to prevent accidentally overwriting concurrent * changes.. - * + * * @param ifMatch The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. - * Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. + * Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. * @return the next definition stage. */ Update withIfMatch(String ifMatch); } } + /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ KustoPool refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ @@ -438,7 +488,7 @@ interface WithIfMatch { /** * Stops a Kusto pool. - * + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @@ -446,7 +496,7 @@ interface WithIfMatch { /** * Stops a Kusto pool. - * + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -456,7 +506,7 @@ interface WithIfMatch { /** * Starts a Kusto pool. - * + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @@ -464,7 +514,7 @@ interface WithIfMatch { /** * Starts a Kusto pool. - * + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -474,7 +524,7 @@ interface WithIfMatch { /** * Returns a list of language extensions that can run within KQL queries. - * + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of language extension objects as paginated response with {@link PagedIterable}. @@ -483,7 +533,7 @@ interface WithIfMatch { /** * Returns a list of language extensions that can run within KQL queries. - * + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -494,7 +544,7 @@ interface WithIfMatch { /** * Add a list of language extensions that can run within KQL queries. - * + * * @param languageExtensionsToAdd The language extensions to add. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -504,7 +554,7 @@ interface WithIfMatch { /** * Add a list of language extensions that can run within KQL queries. - * + * * @param languageExtensionsToAdd The language extensions to add. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -515,7 +565,7 @@ interface WithIfMatch { /** * Remove a list of language extensions that can run within KQL queries. - * + * * @param languageExtensionsToRemove The language extensions to remove. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -525,7 +575,7 @@ interface WithIfMatch { /** * Remove a list of language extensions that can run within KQL queries. - * + * * @param languageExtensionsToRemove The language extensions to remove. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -536,7 +586,7 @@ interface WithIfMatch { /** * Returns a list of databases that are owned by this Kusto Pool and were followed by another Kusto Pool. - * + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list Kusto database principals operation response as paginated response with {@link PagedIterable}. @@ -545,7 +595,7 @@ interface WithIfMatch { /** * Returns a list of databases that are owned by this Kusto Pool and were followed by another Kusto Pool. - * + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -556,7 +606,7 @@ interface WithIfMatch { /** * Detaches all followers of a database owned by this Kusto Pool. - * + * * @param followerDatabaseToRemove The follower databases properties to remove. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -566,7 +616,7 @@ interface WithIfMatch { /** * Detaches all followers of a database owned by this Kusto Pool. - * + * * @param followerDatabaseToRemove The follower databases properties to remove. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolAttachedDatabaseConfigurations.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolAttachedDatabaseConfigurations.java index 4c1069f28ea3..c4bf88d31b4d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolAttachedDatabaseConfigurations.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolAttachedDatabaseConfigurations.java @@ -8,26 +8,28 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of KustoPoolAttachedDatabaseConfigurations. */ +/** + * Resource collection API of KustoPoolAttachedDatabaseConfigurations. + */ public interface KustoPoolAttachedDatabaseConfigurations { /** * Returns the list of attached database configurations of the given Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list attached database configurations operation response as paginated response with {@link - * PagedIterable}. + * @return the list attached database configurations operation response as paginated response with + * {@link PagedIterable}. */ - PagedIterable listByKustoPool( - String workspaceName, String kustoPoolName, String resourceGroupName); + PagedIterable listByKustoPool(String workspaceName, String kustoPoolName, + String resourceGroupName); /** * Returns the list of attached database configurations of the given Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -35,15 +37,15 @@ PagedIterable listByKustoPool( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list attached database configurations operation response as paginated response with {@link - * PagedIterable}. + * @return the list attached database configurations operation response as paginated response with + * {@link PagedIterable}. */ - PagedIterable listByKustoPool( - String workspaceName, String kustoPoolName, String resourceGroupName, Context context); + PagedIterable listByKustoPool(String workspaceName, String kustoPoolName, + String resourceGroupName, Context context); /** * Returns an attached database configuration. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param attachedDatabaseConfigurationName The name of the attached database configuration. @@ -54,16 +56,12 @@ PagedIterable listByKustoPool( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return class representing an attached database configuration along with {@link Response}. */ - Response getWithResponse( - String workspaceName, - String kustoPoolName, - String attachedDatabaseConfigurationName, - String resourceGroupName, - Context context); + Response getWithResponse(String workspaceName, String kustoPoolName, + String attachedDatabaseConfigurationName, String resourceGroupName, Context context); /** * Returns an attached database configuration. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param attachedDatabaseConfigurationName The name of the attached database configuration. @@ -73,12 +71,12 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return class representing an attached database configuration. */ - AttachedDatabaseConfiguration get( - String workspaceName, String kustoPoolName, String attachedDatabaseConfigurationName, String resourceGroupName); + AttachedDatabaseConfiguration get(String workspaceName, String kustoPoolName, + String attachedDatabaseConfigurationName, String resourceGroupName); /** * Deletes the attached database configuration with the given name. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param attachedDatabaseConfigurationName The name of the attached database configuration. @@ -87,12 +85,12 @@ AttachedDatabaseConfiguration get( * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete( - String workspaceName, String kustoPoolName, String attachedDatabaseConfigurationName, String resourceGroupName); + void delete(String workspaceName, String kustoPoolName, String attachedDatabaseConfigurationName, + String resourceGroupName); /** * Deletes the attached database configuration with the given name. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param attachedDatabaseConfigurationName The name of the attached database configuration. @@ -102,16 +100,12 @@ void delete( * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete( - String workspaceName, - String kustoPoolName, - String attachedDatabaseConfigurationName, - String resourceGroupName, - Context context); + void delete(String workspaceName, String kustoPoolName, String attachedDatabaseConfigurationName, + String resourceGroupName, Context context); /** * Returns an attached database configuration. - * + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -122,7 +116,7 @@ void delete( /** * Returns an attached database configuration. - * + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -134,7 +128,7 @@ void delete( /** * Deletes the attached database configuration with the given name. - * + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -144,7 +138,7 @@ void delete( /** * Deletes the attached database configuration with the given name. - * + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -155,7 +149,7 @@ void delete( /** * Begins definition for a new AttachedDatabaseConfiguration resource. - * + * * @param name resource name. * @return the first stage of the new AttachedDatabaseConfiguration definition. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolCheckNameRequest.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolCheckNameRequest.java index 053b25bd8108..1236d0ba46ce 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolCheckNameRequest.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolCheckNameRequest.java @@ -8,7 +8,9 @@ import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonProperty; -/** The object sent for a kusto pool check name availability request. */ +/** + * The object sent for a kusto pool check name availability request. + */ @Fluent public final class KustoPoolCheckNameRequest { /* @@ -23,14 +25,15 @@ public final class KustoPoolCheckNameRequest { @JsonProperty(value = "type", required = true) private String type = "Microsoft.Synapse/workspaces/kustoPools"; - /** Creates an instance of KustoPoolCheckNameRequest class. */ + /** + * Creates an instance of KustoPoolCheckNameRequest class. + */ public KustoPoolCheckNameRequest() { - type = "Microsoft.Synapse/workspaces/kustoPools"; } /** * Get the name property: Kusto Pool name. - * + * * @return the name value. */ public String name() { @@ -39,7 +42,7 @@ public String name() { /** * Set the name property: Kusto Pool name. - * + * * @param name the name value to set. * @return the KustoPoolCheckNameRequest object itself. */ @@ -50,7 +53,7 @@ public KustoPoolCheckNameRequest withName(String name) { /** * Get the type property: The type of resource, Microsoft.Synapse/workspaces/kustoPools. - * + * * @return the type value. */ public String type() { @@ -59,7 +62,7 @@ public String type() { /** * Set the type property: The type of resource, Microsoft.Synapse/workspaces/kustoPools. - * + * * @param type the type value to set. * @return the KustoPoolCheckNameRequest object itself. */ @@ -70,14 +73,13 @@ public KustoPoolCheckNameRequest withType(String type) { /** * 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 KustoPoolCheckNameRequest")); + throw LOGGER.logExceptionAsError( + new IllegalArgumentException("Missing required property name in model KustoPoolCheckNameRequest")); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolChildResources.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolChildResources.java index 966eb697bed5..5f7855e9b23f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolChildResources.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolChildResources.java @@ -7,11 +7,13 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of KustoPoolChildResources. */ +/** + * Resource collection API of KustoPoolChildResources. + */ public interface KustoPoolChildResources { /** * Checks that the Kusto Pool child resource name is valid and is not already in use. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -22,16 +24,12 @@ public interface KustoPoolChildResources { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result returned from a check name availability request along with {@link Response}. */ - Response checkNameAvailabilityWithResponse( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - DatabaseCheckNameRequest resourceName, - Context context); + Response checkNameAvailabilityWithResponse(String workspaceName, String kustoPoolName, + String resourceGroupName, DatabaseCheckNameRequest resourceName, Context context); /** * Checks that the Kusto Pool child resource name is valid and is not already in use. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -41,6 +39,6 @@ Response checkNameAvailabilityWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result returned from a check name availability request. */ - CheckNameResult checkNameAvailability( - String workspaceName, String kustoPoolName, String resourceGroupName, DatabaseCheckNameRequest resourceName); + CheckNameResult checkNameAvailability(String workspaceName, String kustoPoolName, String resourceGroupName, + DatabaseCheckNameRequest resourceName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolDataConnections.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolDataConnections.java index 2a12e5425bda..dcd6ab44e6a9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolDataConnections.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolDataConnections.java @@ -10,11 +10,13 @@ import com.azure.resourcemanager.synapse.fluent.models.DataConnectionInner; import com.azure.resourcemanager.synapse.fluent.models.DataConnectionValidationInner; -/** Resource collection API of KustoPoolDataConnections. */ +/** + * Resource collection API of KustoPoolDataConnections. + */ public interface KustoPoolDataConnections { /** * Checks that the data connection name is valid and is not already in use. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -26,17 +28,12 @@ public interface KustoPoolDataConnections { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result returned from a check name availability request along with {@link Response}. */ - Response checkNameAvailabilityWithResponse( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DataConnectionCheckNameRequest dataConnectionName, - Context context); + Response checkNameAvailabilityWithResponse(String resourceGroupName, String workspaceName, + String kustoPoolName, String databaseName, DataConnectionCheckNameRequest dataConnectionName, Context context); /** * Checks that the data connection name is valid and is not already in use. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -47,16 +44,12 @@ Response checkNameAvailabilityWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result returned from a check name availability request. */ - CheckNameResult checkNameAvailability( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DataConnectionCheckNameRequest dataConnectionName); + CheckNameResult checkNameAvailability(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName, DataConnectionCheckNameRequest dataConnectionName); /** * Checks that the data connection parameters are valid. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -67,16 +60,12 @@ CheckNameResult checkNameAvailability( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list Kusto data connection validation result. */ - DataConnectionValidationListResult dataConnectionValidation( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DataConnectionValidationInner parameters); + DataConnectionValidationListResult dataConnectionValidation(String resourceGroupName, String workspaceName, + String kustoPoolName, String databaseName, DataConnectionValidationInner parameters); /** * Checks that the data connection parameters are valid. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -88,17 +77,12 @@ DataConnectionValidationListResult dataConnectionValidation( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list Kusto data connection validation result. */ - DataConnectionValidationListResult dataConnectionValidation( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DataConnectionValidationInner parameters, - Context context); + DataConnectionValidationListResult dataConnectionValidation(String resourceGroupName, String workspaceName, + String kustoPoolName, String databaseName, DataConnectionValidationInner parameters, Context context); /** * Returns the list of data connections of the given Kusto pool database. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -108,12 +92,12 @@ DataConnectionValidationListResult dataConnectionValidation( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list Kusto data connections operation response as paginated response with {@link PagedIterable}. */ - PagedIterable listByDatabase( - String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName); + PagedIterable listByDatabase(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName); /** * Returns the list of data connections of the given Kusto pool database. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -124,12 +108,12 @@ PagedIterable listByDatabase( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list Kusto data connections operation response as paginated response with {@link PagedIterable}. */ - PagedIterable listByDatabase( - String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, Context context); + PagedIterable listByDatabase(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName, Context context); /** * Returns a data connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -141,17 +125,12 @@ PagedIterable listByDatabase( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return class representing a data connection along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName, - Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName, String dataConnectionName, Context context); /** * Returns a data connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -162,16 +141,12 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return class representing a data connection. */ - DataConnection get( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, + DataConnection get(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, String dataConnectionName); /** * Creates or updates a data connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -183,17 +158,12 @@ DataConnection get( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return class representing a data connection. */ - DataConnection createOrUpdate( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName, - DataConnectionInner parameters); + DataConnection createOrUpdate(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName, String dataConnectionName, DataConnectionInner parameters); /** * Creates or updates a data connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -206,18 +176,12 @@ DataConnection createOrUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return class representing a data connection. */ - DataConnection createOrUpdate( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName, - DataConnectionInner parameters, - Context context); + DataConnection createOrUpdate(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName, String dataConnectionName, DataConnectionInner parameters, Context context); /** * Updates a data connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -229,17 +193,12 @@ DataConnection createOrUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return class representing a data connection. */ - DataConnection update( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName, - DataConnectionInner parameters); + DataConnection update(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, + String dataConnectionName, DataConnectionInner parameters); /** * Updates a data connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -252,18 +211,12 @@ DataConnection update( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return class representing a data connection. */ - DataConnection update( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName, - DataConnectionInner parameters, - Context context); + DataConnection update(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, + String dataConnectionName, DataConnectionInner parameters, Context context); /** * Deletes the data connection with the given name. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -273,16 +226,12 @@ DataConnection update( * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, + void delete(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, String dataConnectionName); /** * Deletes the data connection with the given name. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -293,11 +242,6 @@ void delete( * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - String dataConnectionName, - Context context); + void delete(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, + String dataConnectionName, Context context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolDatabasePrincipalAssignments.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolDatabasePrincipalAssignments.java index 683d0f6825a5..13610033c231 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolDatabasePrincipalAssignments.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolDatabasePrincipalAssignments.java @@ -8,11 +8,13 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of KustoPoolDatabasePrincipalAssignments. */ +/** + * Resource collection API of KustoPoolDatabasePrincipalAssignments. + */ public interface KustoPoolDatabasePrincipalAssignments { /** * Checks that the database principal assignment is valid and is not already in use. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -24,17 +26,13 @@ public interface KustoPoolDatabasePrincipalAssignments { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result returned from a check name availability request along with {@link Response}. */ - Response checkNameAvailabilityWithResponse( - String workspaceName, - String kustoPoolName, - String databaseName, - String resourceGroupName, - DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName, - Context context); + Response checkNameAvailabilityWithResponse(String workspaceName, String kustoPoolName, + String databaseName, String resourceGroupName, + DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName, Context context); /** * Checks that the database principal assignment is valid and is not already in use. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -45,16 +43,12 @@ Response checkNameAvailabilityWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result returned from a check name availability request. */ - CheckNameResult checkNameAvailability( - String workspaceName, - String kustoPoolName, - String databaseName, - String resourceGroupName, - DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName); + CheckNameResult checkNameAvailability(String workspaceName, String kustoPoolName, String databaseName, + String resourceGroupName, DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName); /** * Lists all Kusto pool database principalAssignments. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -62,15 +56,15 @@ CheckNameResult checkNameAvailability( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto database principal assignments operation response as paginated response with {@link - * PagedIterable}. + * @return the list Kusto database principal assignments operation response as paginated response with + * {@link PagedIterable}. */ - PagedIterable list( - String workspaceName, String kustoPoolName, String databaseName, String resourceGroupName); + PagedIterable list(String workspaceName, String kustoPoolName, String databaseName, + String resourceGroupName); /** * Lists all Kusto pool database principalAssignments. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -79,15 +73,15 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto database principal assignments operation response as paginated response with {@link - * PagedIterable}. + * @return the list Kusto database principal assignments operation response as paginated response with + * {@link PagedIterable}. */ - PagedIterable list( - String workspaceName, String kustoPoolName, String databaseName, String resourceGroupName, Context context); + PagedIterable list(String workspaceName, String kustoPoolName, String databaseName, + String resourceGroupName, Context context); /** * Gets a Kusto pool database principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -99,17 +93,12 @@ PagedIterable list( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Kusto pool database principalAssignment along with {@link Response}. */ - Response getWithResponse( - String workspaceName, - String kustoPoolName, - String databaseName, - String principalAssignmentName, - String resourceGroupName, - Context context); + Response getWithResponse(String workspaceName, String kustoPoolName, + String databaseName, String principalAssignmentName, String resourceGroupName, Context context); /** * Gets a Kusto pool database principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -120,16 +109,12 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Kusto pool database principalAssignment. */ - DatabasePrincipalAssignment get( - String workspaceName, - String kustoPoolName, - String databaseName, - String principalAssignmentName, - String resourceGroupName); + DatabasePrincipalAssignment get(String workspaceName, String kustoPoolName, String databaseName, + String principalAssignmentName, String resourceGroupName); /** * Deletes a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -139,16 +124,12 @@ DatabasePrincipalAssignment get( * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete( - String workspaceName, - String kustoPoolName, - String databaseName, - String principalAssignmentName, + void delete(String workspaceName, String kustoPoolName, String databaseName, String principalAssignmentName, String resourceGroupName); /** * Deletes a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param databaseName The name of the database in the Kusto pool. @@ -159,17 +140,12 @@ void delete( * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete( - String workspaceName, - String kustoPoolName, - String databaseName, - String principalAssignmentName, - String resourceGroupName, - Context context); + void delete(String workspaceName, String kustoPoolName, String databaseName, String principalAssignmentName, + String resourceGroupName, Context context); /** * Gets a Kusto pool database principalAssignment. - * + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -180,7 +156,7 @@ void delete( /** * Gets a Kusto pool database principalAssignment. - * + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -192,7 +168,7 @@ void delete( /** * Deletes a Kusto pool principalAssignment. - * + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -202,7 +178,7 @@ void delete( /** * Deletes a Kusto pool principalAssignment. - * + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -213,7 +189,7 @@ void delete( /** * Begins definition for a new DatabasePrincipalAssignment resource. - * + * * @param name resource name. * @return the first stage of the new DatabasePrincipalAssignment definition. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolDatabases.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolDatabases.java index 451c6c7d4a07..475104e41b13 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolDatabases.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolDatabases.java @@ -9,11 +9,13 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.synapse.fluent.models.DatabaseInner; -/** Resource collection API of KustoPoolDatabases. */ +/** + * Resource collection API of KustoPoolDatabases. + */ public interface KustoPoolDatabases { /** * Returns the list of databases of the given Kusto pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -26,7 +28,7 @@ public interface KustoPoolDatabases { /** * Returns the list of databases of the given Kusto pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -36,12 +38,12 @@ public interface KustoPoolDatabases { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list Kusto databases operation response as paginated response with {@link PagedIterable}. */ - PagedIterable listByKustoPool( - String resourceGroupName, String workspaceName, String kustoPoolName, Context context); + PagedIterable listByKustoPool(String resourceGroupName, String workspaceName, String kustoPoolName, + Context context); /** * Returns a database. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -52,12 +54,12 @@ PagedIterable listByKustoPool( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return class representing a Kusto database along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, String kustoPoolName, + String databaseName, Context context); /** * Returns a database. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -71,7 +73,7 @@ Response getWithResponse( /** * Creates or updates a database. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -82,16 +84,12 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return class representing a Kusto database. */ - Database createOrUpdate( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, + Database createOrUpdate(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, DatabaseInner parameters); /** * Creates or updates a database. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -103,17 +101,12 @@ Database createOrUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return class representing a Kusto database. */ - Database createOrUpdate( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DatabaseInner parameters, - Context context); + Database createOrUpdate(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, + DatabaseInner parameters, Context context); /** * Updates a database. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -124,16 +117,12 @@ Database createOrUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return class representing a Kusto database. */ - Database update( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, + Database update(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, DatabaseInner parameters); /** * Updates a database. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -145,17 +134,12 @@ Database update( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return class representing a Kusto database. */ - Database update( - String resourceGroupName, - String workspaceName, - String kustoPoolName, - String databaseName, - DatabaseInner parameters, - Context context); + Database update(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, + DatabaseInner parameters, Context context); /** * Deletes the database with the given name. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -168,7 +152,7 @@ Database update( /** * Deletes the database with the given name. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -178,6 +162,6 @@ Database update( * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete( - String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, Context context); + void delete(String resourceGroupName, String workspaceName, String kustoPoolName, String databaseName, + Context context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolListResult.java index f89a6afe93e6..bf91bd61beea 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolListResult.java @@ -7,18 +7,20 @@ import com.azure.resourcemanager.synapse.fluent.models.KustoPoolListResultInner; import java.util.List; -/** An immutable client-side representation of KustoPoolListResult. */ +/** + * An immutable client-side representation of KustoPoolListResult. + */ public interface KustoPoolListResult { /** * Gets the value property: The list of Kusto pools. - * + * * @return the value value. */ List value(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.KustoPoolListResultInner object. - * + * * @return the inner object. */ KustoPoolListResultInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolPrincipalAssignments.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolPrincipalAssignments.java index 76c7268d64ec..62a3c1fcefd3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolPrincipalAssignments.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolPrincipalAssignments.java @@ -8,11 +8,13 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of KustoPoolPrincipalAssignments. */ +/** + * Resource collection API of KustoPoolPrincipalAssignments. + */ public interface KustoPoolPrincipalAssignments { /** * Checks that the principal assignment name is valid and is not already in use. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -23,16 +25,12 @@ public interface KustoPoolPrincipalAssignments { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result returned from a check name availability request along with {@link Response}. */ - Response checkNameAvailabilityWithResponse( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - ClusterPrincipalAssignmentCheckNameRequest principalAssignmentName, - Context context); + Response checkNameAvailabilityWithResponse(String workspaceName, String kustoPoolName, + String resourceGroupName, ClusterPrincipalAssignmentCheckNameRequest principalAssignmentName, Context context); /** * Checks that the principal assignment name is valid and is not already in use. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -42,30 +40,27 @@ Response checkNameAvailabilityWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result returned from a check name availability request. */ - CheckNameResult checkNameAvailability( - String workspaceName, - String kustoPoolName, - String resourceGroupName, + CheckNameResult checkNameAvailability(String workspaceName, String kustoPoolName, String resourceGroupName, ClusterPrincipalAssignmentCheckNameRequest principalAssignmentName); /** * Lists all Kusto pool principalAssignments. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto cluster principal assignments operation response as paginated response with {@link - * PagedIterable}. + * @return the list Kusto cluster principal assignments operation response as paginated response with + * {@link PagedIterable}. */ - PagedIterable list( - String workspaceName, String kustoPoolName, String resourceGroupName); + PagedIterable list(String workspaceName, String kustoPoolName, + String resourceGroupName); /** * Lists all Kusto pool principalAssignments. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -73,15 +68,15 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto cluster principal assignments operation response as paginated response with {@link - * PagedIterable}. + * @return the list Kusto cluster principal assignments operation response as paginated response with + * {@link PagedIterable}. */ - PagedIterable list( - String workspaceName, String kustoPoolName, String resourceGroupName, Context context); + PagedIterable list(String workspaceName, String kustoPoolName, String resourceGroupName, + Context context); /** * Gets a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -92,16 +87,12 @@ PagedIterable list( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Kusto pool principalAssignment along with {@link Response}. */ - Response getWithResponse( - String workspaceName, - String kustoPoolName, - String principalAssignmentName, - String resourceGroupName, - Context context); + Response getWithResponse(String workspaceName, String kustoPoolName, + String principalAssignmentName, String resourceGroupName, Context context); /** * Gets a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -111,12 +102,12 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Kusto pool principalAssignment. */ - ClusterPrincipalAssignment get( - String workspaceName, String kustoPoolName, String principalAssignmentName, String resourceGroupName); + ClusterPrincipalAssignment get(String workspaceName, String kustoPoolName, String principalAssignmentName, + String resourceGroupName); /** * Deletes a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -129,7 +120,7 @@ ClusterPrincipalAssignment get( /** * Deletes a Kusto pool principalAssignment. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param principalAssignmentName The name of the Kusto principalAssignment. @@ -139,16 +130,12 @@ ClusterPrincipalAssignment get( * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete( - String workspaceName, - String kustoPoolName, - String principalAssignmentName, - String resourceGroupName, + void delete(String workspaceName, String kustoPoolName, String principalAssignmentName, String resourceGroupName, Context context); /** * Gets a Kusto pool principalAssignment. - * + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -159,7 +146,7 @@ void delete( /** * Gets a Kusto pool principalAssignment. - * + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -171,7 +158,7 @@ void delete( /** * Deletes a Kusto pool principalAssignment. - * + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -181,7 +168,7 @@ void delete( /** * Deletes a Kusto pool principalAssignment. - * + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -192,7 +179,7 @@ void delete( /** * Begins definition for a new ClusterPrincipalAssignment resource. - * + * * @param name resource name. * @return the first stage of the new ClusterPrincipalAssignment definition. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolPrivateLinkResources.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolPrivateLinkResources.java index 8b6ebe2e3065..7065a9808f86 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolPrivateLinkResources.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolPrivateLinkResources.java @@ -8,67 +8,69 @@ import com.azure.resourcemanager.synapse.fluent.models.KustoPoolPrivateLinkResourcesInner; import java.util.List; -/** An immutable client-side representation of KustoPoolPrivateLinkResources. */ +/** + * An immutable client-side representation of KustoPoolPrivateLinkResources. + */ public interface KustoPoolPrivateLinkResources { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * + * * @return the systemData value. */ SystemData systemData(); /** * Gets the groupId property: The Private link resources GroupId. - * + * * @return the groupId value. */ String groupId(); /** * Gets the requiredMembers property: The private link resource required member names. - * + * * @return the requiredMembers value. */ List requiredMembers(); /** * Gets the requiredZoneNames property: The private link resource required zone names. - * + * * @return the requiredZoneNames value. */ List requiredZoneNames(); /** * Gets the provisioningState property: The provisioned state of the resource. - * + * * @return the provisioningState value. */ ResourceProvisioningState provisioningState(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.KustoPoolPrivateLinkResourcesInner object. - * + * * @return the inner object. */ KustoPoolPrivateLinkResourcesInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolPrivateLinkResourcesOperations.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolPrivateLinkResourcesOperations.java index 04a474ccec9b..fb3e239c2a41 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolPrivateLinkResourcesOperations.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolPrivateLinkResourcesOperations.java @@ -7,26 +7,28 @@ import com.azure.core.http.rest.PagedIterable; import com.azure.core.util.Context; -/** Resource collection API of KustoPoolPrivateLinkResourcesOperations. */ +/** + * Resource collection API of KustoPoolPrivateLinkResourcesOperations. + */ public interface KustoPoolPrivateLinkResourcesOperations { /** * Lists all Kusto pool PrivateLinkResources. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto Private Link Resources operation response as paginated response with {@link - * PagedIterable}. + * @return the list Kusto Private Link Resources operation response as paginated response with + * {@link PagedIterable}. */ - PagedIterable list( - String resourceGroupName, String workspaceName, String kustoPoolName); + PagedIterable list(String resourceGroupName, String workspaceName, + String kustoPoolName); /** * Lists all Kusto pool PrivateLinkResources. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. @@ -34,9 +36,9 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the list Kusto Private Link Resources operation response as paginated response with {@link - * PagedIterable}. + * @return the list Kusto Private Link Resources operation response as paginated response with + * {@link PagedIterable}. */ - PagedIterable list( - String resourceGroupName, String workspaceName, String kustoPoolName, Context context); + PagedIterable list(String resourceGroupName, String workspaceName, + String kustoPoolName, Context context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolUpdate.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolUpdate.java index 9c961f0a436c..6ba44adc2fee 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolUpdate.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolUpdate.java @@ -11,7 +11,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; -/** Class representing an update to a Kusto kusto pool. */ +/** + * Class representing an update to a Kusto kusto pool. + */ @Fluent public final class KustoPoolUpdate extends ProxyResource { /* @@ -33,13 +35,15 @@ public final class KustoPoolUpdate extends ProxyResource { @JsonProperty(value = "properties") private KustoPoolProperties innerProperties; - /** Creates an instance of KustoPoolUpdate class. */ + /** + * Creates an instance of KustoPoolUpdate class. + */ public KustoPoolUpdate() { } /** * Get the tags property: Resource tags. - * + * * @return the tags value. */ public Map tags() { @@ -48,7 +52,7 @@ public Map tags() { /** * Set the tags property: Resource tags. - * + * * @param tags the tags value to set. * @return the KustoPoolUpdate object itself. */ @@ -59,7 +63,7 @@ public KustoPoolUpdate withTags(Map tags) { /** * Get the sku property: The SKU of the kusto pool. - * + * * @return the sku value. */ public AzureSku sku() { @@ -68,7 +72,7 @@ public AzureSku sku() { /** * Set the sku property: The SKU of the kusto pool. - * + * * @param sku the sku value to set. * @return the KustoPoolUpdate object itself. */ @@ -79,7 +83,7 @@ public KustoPoolUpdate withSku(AzureSku sku) { /** * Get the innerProperties property: The kusto pool properties. - * + * * @return the innerProperties value. */ private KustoPoolProperties innerProperties() { @@ -88,7 +92,7 @@ private KustoPoolProperties innerProperties() { /** * Get the state property: The state of the resource. - * + * * @return the state value. */ public State state() { @@ -97,7 +101,7 @@ public State state() { /** * Get the provisioningState property: The provisioned state of the resource. - * + * * @return the provisioningState value. */ public ResourceProvisioningState provisioningState() { @@ -106,7 +110,7 @@ public ResourceProvisioningState provisioningState() { /** * Get the uri property: The Kusto Pool URI. - * + * * @return the uri value. */ public String uri() { @@ -115,7 +119,7 @@ public String uri() { /** * Get the dataIngestionUri property: The Kusto Pool data ingestion URI. - * + * * @return the dataIngestionUri value. */ public String dataIngestionUri() { @@ -124,7 +128,7 @@ public String dataIngestionUri() { /** * Get the stateReason property: The reason for the Kusto Pool's current state. - * + * * @return the stateReason value. */ public String stateReason() { @@ -133,7 +137,7 @@ public String stateReason() { /** * Get the optimizedAutoscale property: Optimized auto scale definition. - * + * * @return the optimizedAutoscale value. */ public OptimizedAutoscale optimizedAutoscale() { @@ -142,7 +146,7 @@ public OptimizedAutoscale optimizedAutoscale() { /** * Set the optimizedAutoscale property: Optimized auto scale definition. - * + * * @param optimizedAutoscale the optimizedAutoscale value to set. * @return the KustoPoolUpdate object itself. */ @@ -156,7 +160,7 @@ public KustoPoolUpdate withOptimizedAutoscale(OptimizedAutoscale optimizedAutosc /** * Get the enableStreamingIngest property: A boolean value that indicates if the streaming ingest is enabled. - * + * * @return the enableStreamingIngest value. */ public Boolean enableStreamingIngest() { @@ -165,7 +169,7 @@ public Boolean enableStreamingIngest() { /** * Set the enableStreamingIngest property: A boolean value that indicates if the streaming ingest is enabled. - * + * * @param enableStreamingIngest the enableStreamingIngest value to set. * @return the KustoPoolUpdate object itself. */ @@ -179,7 +183,7 @@ public KustoPoolUpdate withEnableStreamingIngest(Boolean enableStreamingIngest) /** * Get the enablePurge property: A boolean value that indicates if the purge operations are enabled. - * + * * @return the enablePurge value. */ public Boolean enablePurge() { @@ -188,7 +192,7 @@ public Boolean enablePurge() { /** * Set the enablePurge property: A boolean value that indicates if the purge operations are enabled. - * + * * @param enablePurge the enablePurge value to set. * @return the KustoPoolUpdate object itself. */ @@ -202,7 +206,7 @@ public KustoPoolUpdate withEnablePurge(Boolean enablePurge) { /** * Get the languageExtensions property: List of the Kusto Pool's language extensions. - * + * * @return the languageExtensions value. */ public LanguageExtensionsList languageExtensions() { @@ -211,7 +215,7 @@ public LanguageExtensionsList languageExtensions() { /** * Get the workspaceUid property: The workspace unique identifier. - * + * * @return the workspaceUid value. */ public String workspaceUid() { @@ -220,7 +224,7 @@ public String workspaceUid() { /** * Set the workspaceUid property: The workspace unique identifier. - * + * * @param workspaceUid the workspaceUid value to set. * @return the KustoPoolUpdate object itself. */ @@ -234,7 +238,7 @@ public KustoPoolUpdate withWorkspaceUid(String workspaceUid) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPools.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPools.java index de463ca8b1a3..c20a85c22634 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPools.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPools.java @@ -9,11 +9,13 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.synapse.fluent.models.FollowerDatabaseDefinitionInner; -/** Resource collection API of KustoPools. */ +/** + * Resource collection API of KustoPools. + */ public interface KustoPools { /** * Lists eligible SKUs for Kusto Pool resource. - * + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of the SKU descriptions as paginated response with {@link PagedIterable}. @@ -22,7 +24,7 @@ public interface KustoPools { /** * Lists eligible SKUs for Kusto Pool resource. - * + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -33,7 +35,7 @@ public interface KustoPools { /** * Checks that the kusto pool name is valid and is not already in use. - * + * * @param location The name of Azure region. * @param kustoPoolName The name of the cluster. * @param context The context to associate with this operation. @@ -42,12 +44,12 @@ public interface KustoPools { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result returned from a check name availability request along with {@link Response}. */ - Response checkNameAvailabilityWithResponse( - String location, KustoPoolCheckNameRequest kustoPoolName, Context context); + Response checkNameAvailabilityWithResponse(String location, + KustoPoolCheckNameRequest kustoPoolName, Context context); /** * Checks that the kusto pool name is valid and is not already in use. - * + * * @param location The name of Azure region. * @param kustoPoolName The name of the cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -59,9 +61,9 @@ Response checkNameAvailabilityWithResponse( /** * List Kusto pools - * - *

List all Kusto pools. - * + * + * List all Kusto pools. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -70,14 +72,14 @@ Response checkNameAvailabilityWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list Kusto pools operation response along with {@link Response}. */ - Response listByWorkspaceWithResponse( - String resourceGroupName, String workspaceName, Context context); + Response listByWorkspaceWithResponse(String resourceGroupName, String workspaceName, + Context context); /** * List Kusto pools - * - *

List all Kusto pools. - * + * + * List all Kusto pools. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -89,7 +91,7 @@ Response listByWorkspaceWithResponse( /** * Gets a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -99,12 +101,12 @@ Response listByWorkspaceWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Kusto pool along with {@link Response}. */ - Response getWithResponse( - String workspaceName, String kustoPoolName, String resourceGroupName, Context context); + Response getWithResponse(String workspaceName, String kustoPoolName, String resourceGroupName, + Context context); /** * Gets a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -117,7 +119,7 @@ Response getWithResponse( /** * Deletes a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kustoPoolName The name of the Kusto pool. @@ -129,7 +131,7 @@ Response getWithResponse( /** * Deletes a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param kustoPoolName The name of the Kusto pool. @@ -142,7 +144,7 @@ Response getWithResponse( /** * Stops a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -154,7 +156,7 @@ Response getWithResponse( /** * Stops a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -167,7 +169,7 @@ Response getWithResponse( /** * Starts a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -179,7 +181,7 @@ Response getWithResponse( /** * Starts a Kusto pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -192,7 +194,7 @@ Response getWithResponse( /** * Returns the SKUs available for the provided resource. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -201,12 +203,12 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return list of available SKUs for a Kusto Pool as paginated response with {@link PagedIterable}. */ - PagedIterable listSkusByResource( - String workspaceName, String kustoPoolName, String resourceGroupName); + PagedIterable listSkusByResource(String workspaceName, String kustoPoolName, + String resourceGroupName); /** * Returns the SKUs available for the provided resource. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -216,12 +218,12 @@ PagedIterable listSkusByResource( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return list of available SKUs for a Kusto Pool as paginated response with {@link PagedIterable}. */ - PagedIterable listSkusByResource( - String workspaceName, String kustoPoolName, String resourceGroupName, Context context); + PagedIterable listSkusByResource(String workspaceName, String kustoPoolName, + String resourceGroupName, Context context); /** * Returns a list of language extensions that can run within KQL queries. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -230,12 +232,12 @@ PagedIterable listSkusByResource( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of language extension objects as paginated response with {@link PagedIterable}. */ - PagedIterable listLanguageExtensions( - String workspaceName, String kustoPoolName, String resourceGroupName); + PagedIterable listLanguageExtensions(String workspaceName, String kustoPoolName, + String resourceGroupName); /** * Returns a list of language extensions that can run within KQL queries. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -245,12 +247,12 @@ PagedIterable listLanguageExtensions( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list of language extension objects as paginated response with {@link PagedIterable}. */ - PagedIterable listLanguageExtensions( - String workspaceName, String kustoPoolName, String resourceGroupName, Context context); + PagedIterable listLanguageExtensions(String workspaceName, String kustoPoolName, + String resourceGroupName, Context context); /** * Add a list of language extensions that can run within KQL queries. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -259,15 +261,12 @@ PagedIterable listLanguageExtensions( * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void addLanguageExtensions( - String workspaceName, - String kustoPoolName, - String resourceGroupName, + void addLanguageExtensions(String workspaceName, String kustoPoolName, String resourceGroupName, LanguageExtensionsList languageExtensionsToAdd); /** * Add a list of language extensions that can run within KQL queries. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -277,16 +276,12 @@ void addLanguageExtensions( * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void addLanguageExtensions( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - LanguageExtensionsList languageExtensionsToAdd, - Context context); + void addLanguageExtensions(String workspaceName, String kustoPoolName, String resourceGroupName, + LanguageExtensionsList languageExtensionsToAdd, Context context); /** * Remove a list of language extensions that can run within KQL queries. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -295,15 +290,12 @@ void addLanguageExtensions( * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void removeLanguageExtensions( - String workspaceName, - String kustoPoolName, - String resourceGroupName, + void removeLanguageExtensions(String workspaceName, String kustoPoolName, String resourceGroupName, LanguageExtensionsList languageExtensionsToRemove); /** * Remove a list of language extensions that can run within KQL queries. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -313,16 +305,12 @@ void removeLanguageExtensions( * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void removeLanguageExtensions( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - LanguageExtensionsList languageExtensionsToRemove, - Context context); + void removeLanguageExtensions(String workspaceName, String kustoPoolName, String resourceGroupName, + LanguageExtensionsList languageExtensionsToRemove, Context context); /** * Returns a list of databases that are owned by this Kusto Pool and were followed by another Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -331,12 +319,12 @@ void removeLanguageExtensions( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list Kusto database principals operation response as paginated response with {@link PagedIterable}. */ - PagedIterable listFollowerDatabases( - String workspaceName, String kustoPoolName, String resourceGroupName); + PagedIterable listFollowerDatabases(String workspaceName, String kustoPoolName, + String resourceGroupName); /** * Returns a list of databases that are owned by this Kusto Pool and were followed by another Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -346,12 +334,12 @@ PagedIterable listFollowerDatabases( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the list Kusto database principals operation response as paginated response with {@link PagedIterable}. */ - PagedIterable listFollowerDatabases( - String workspaceName, String kustoPoolName, String resourceGroupName, Context context); + PagedIterable listFollowerDatabases(String workspaceName, String kustoPoolName, + String resourceGroupName, Context context); /** * Detaches all followers of a database owned by this Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -360,15 +348,12 @@ PagedIterable listFollowerDatabases( * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void detachFollowerDatabases( - String workspaceName, - String kustoPoolName, - String resourceGroupName, + void detachFollowerDatabases(String workspaceName, String kustoPoolName, String resourceGroupName, FollowerDatabaseDefinitionInner followerDatabaseToRemove); /** * Detaches all followers of a database owned by this Kusto Pool. - * + * * @param workspaceName The name of the workspace. * @param kustoPoolName The name of the Kusto pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -378,16 +363,12 @@ void detachFollowerDatabases( * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void detachFollowerDatabases( - String workspaceName, - String kustoPoolName, - String resourceGroupName, - FollowerDatabaseDefinitionInner followerDatabaseToRemove, - Context context); + void detachFollowerDatabases(String workspaceName, String kustoPoolName, String resourceGroupName, + FollowerDatabaseDefinitionInner followerDatabaseToRemove, Context context); /** * Gets a Kusto pool. - * + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -398,7 +379,7 @@ void detachFollowerDatabases( /** * Gets a Kusto pool. - * + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -410,7 +391,7 @@ void detachFollowerDatabases( /** * Deletes a Kusto pool. - * + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -420,7 +401,7 @@ void detachFollowerDatabases( /** * Deletes a Kusto pool. - * + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -431,7 +412,7 @@ void detachFollowerDatabases( /** * Begins definition for a new KustoPool resource. - * + * * @param name resource name. * @return the first stage of the new KustoPool definition. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LanguageExtension.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LanguageExtension.java index 65eb4170a724..752b372f6132 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LanguageExtension.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LanguageExtension.java @@ -6,18 +6,20 @@ import com.azure.resourcemanager.synapse.fluent.models.LanguageExtensionInner; -/** An immutable client-side representation of LanguageExtension. */ +/** + * An immutable client-side representation of LanguageExtension. + */ public interface LanguageExtension { /** * Gets the languageExtensionName property: The language extension name. - * + * * @return the languageExtensionName value. */ LanguageExtensionName languageExtensionName(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.LanguageExtensionInner object. - * + * * @return the inner object. */ LanguageExtensionInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LanguageExtensionName.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LanguageExtensionName.java index 6b5de21a26d4..f0e54fa6464c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LanguageExtensionName.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LanguageExtensionName.java @@ -8,17 +8,23 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Language extension that can run within KQL query. */ +/** + * Language extension that can run within KQL query. + */ public final class LanguageExtensionName extends ExpandableStringEnum { - /** Static value PYTHON for LanguageExtensionName. */ + /** + * Static value PYTHON for LanguageExtensionName. + */ public static final LanguageExtensionName PYTHON = fromString("PYTHON"); - /** Static value R for LanguageExtensionName. */ + /** + * Static value R for LanguageExtensionName. + */ public static final LanguageExtensionName R = fromString("R"); /** * Creates a new instance of LanguageExtensionName value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,7 +33,7 @@ public LanguageExtensionName() { /** * Creates or finds a LanguageExtensionName from its string representation. - * + * * @param name a name to look for. * @return the corresponding LanguageExtensionName. */ @@ -38,7 +44,7 @@ public static LanguageExtensionName fromString(String name) { /** * Gets known LanguageExtensionName values. - * + * * @return known LanguageExtensionName values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LanguageExtensionsList.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LanguageExtensionsList.java index f4265bf434d4..a03f5e895ba1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LanguageExtensionsList.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LanguageExtensionsList.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The list of language extension objects. */ +/** + * The list of language extension objects. + */ @Fluent public final class LanguageExtensionsList { /* @@ -18,13 +20,15 @@ public final class LanguageExtensionsList { @JsonProperty(value = "value") private List value; - /** Creates an instance of LanguageExtensionsList class. */ + /** + * Creates an instance of LanguageExtensionsList class. + */ public LanguageExtensionsList() { } /** * Get the value property: The list of language extensions. - * + * * @return the value value. */ public List value() { @@ -33,7 +37,7 @@ public List value() { /** * Set the value property: The list of language extensions. - * + * * @param value the value value to set. * @return the LanguageExtensionsList object itself. */ @@ -44,7 +48,7 @@ public LanguageExtensionsList withValue(List value) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Libraries.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Libraries.java index 20709301f552..0303b65941fb 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Libraries.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Libraries.java @@ -7,13 +7,15 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of Libraries. */ +/** + * Resource collection API of Libraries. + */ public interface Libraries { /** * Get library by name. - * - *

Get library by name in a workspace. - * + * + * Get library by name in a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param libraryName Library name. * @param workspaceName The name of the workspace. @@ -23,14 +25,14 @@ public interface Libraries { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return library by name in a workspace along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, String libraryName, String workspaceName, Context context); + Response getWithResponse(String resourceGroupName, String libraryName, String workspaceName, + Context context); /** * Get library by name. - * - *

Get library by name in a workspace. - * + * + * Get library by name in a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param libraryName Library name. * @param workspaceName The name of the workspace. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LibrariesOperations.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LibrariesOperations.java index f5639ab925fd..f01f57d0f919 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LibrariesOperations.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LibrariesOperations.java @@ -7,13 +7,15 @@ import com.azure.core.http.rest.PagedIterable; import com.azure.core.util.Context; -/** Resource collection API of LibrariesOperations. */ +/** + * Resource collection API of LibrariesOperations. + */ public interface LibrariesOperations { /** * List the libraries in a workspace. - * - *

List libraries in a workspace. - * + * + * List libraries in a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -25,9 +27,9 @@ public interface LibrariesOperations { /** * List the libraries in a workspace. - * - *

List libraries in a workspace. - * + * + * List libraries in a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LibraryListResponse.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LibraryListResponse.java index b8303ca96390..34709ecfec6b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LibraryListResponse.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LibraryListResponse.java @@ -10,7 +10,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** A list of Library resources. */ +/** + * A list of Library resources. + */ @Fluent public final class LibraryListResponse { /* @@ -25,13 +27,15 @@ public final class LibraryListResponse { @JsonProperty(value = "nextLink") private String nextLink; - /** Creates an instance of LibraryListResponse class. */ + /** + * Creates an instance of LibraryListResponse class. + */ public LibraryListResponse() { } /** * Get the value property: List of Library. - * + * * @return the value value. */ public List value() { @@ -40,7 +44,7 @@ public List value() { /** * Set the value property: List of Library. - * + * * @param value the value value to set. * @return the LibraryListResponse object itself. */ @@ -51,7 +55,7 @@ public LibraryListResponse withValue(List value) { /** * Get the nextLink property: The link to the next page of results, if any remaining results exist. - * + * * @return the nextLink value. */ public String nextLink() { @@ -60,7 +64,7 @@ public String nextLink() { /** * Set the nextLink property: The link to the next page of results, if any remaining results exist. - * + * * @param nextLink the nextLink value to set. * @return the LibraryListResponse object itself. */ @@ -71,14 +75,13 @@ public LibraryListResponse withNextLink(String nextLink) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (value() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property value in model LibraryListResponse")); + throw LOGGER.logExceptionAsError( + new IllegalArgumentException("Missing required property value in model LibraryListResponse")); } else { value().forEach(e -> e.validate()); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LibraryRequirements.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LibraryRequirements.java index f9fd018764e7..99600fb48644 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LibraryRequirements.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LibraryRequirements.java @@ -10,8 +10,8 @@ /** * Spark pool library version requirements - * - *

Library requirements for a Big Data pool powered by Apache Spark. + * + * Library requirements for a Big Data pool powered by Apache Spark. */ @Fluent public final class LibraryRequirements { @@ -33,13 +33,15 @@ public final class LibraryRequirements { @JsonProperty(value = "filename") private String filename; - /** Creates an instance of LibraryRequirements class. */ + /** + * Creates an instance of LibraryRequirements class. + */ public LibraryRequirements() { } /** * Get the time property: The last update time of the library requirements file. - * + * * @return the time value. */ public OffsetDateTime time() { @@ -48,7 +50,7 @@ public OffsetDateTime time() { /** * Get the content property: The library requirements. - * + * * @return the content value. */ public String content() { @@ -57,7 +59,7 @@ public String content() { /** * Set the content property: The library requirements. - * + * * @param content the content value to set. * @return the LibraryRequirements object itself. */ @@ -68,7 +70,7 @@ public LibraryRequirements withContent(String content) { /** * Get the filename property: The filename of the library requirements file. - * + * * @return the filename value. */ public String filename() { @@ -77,7 +79,7 @@ public String filename() { /** * Set the filename property: The filename of the library requirements file. - * + * * @param filename the filename value to set. * @return the LibraryRequirements object itself. */ @@ -88,7 +90,7 @@ public LibraryRequirements withFilename(String filename) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LibraryResource.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LibraryResource.java index c27a010d1ada..ddfa589af951 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LibraryResource.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LibraryResource.java @@ -7,88 +7,90 @@ import com.azure.resourcemanager.synapse.fluent.models.LibraryResourceInner; import java.time.OffsetDateTime; -/** An immutable client-side representation of LibraryResource. */ +/** + * An immutable client-side representation of LibraryResource. + */ public interface LibraryResource { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the etag property: Resource Etag. - * + * * @return the etag value. */ String etag(); /** * Gets the namePropertiesName property: Name of the library. - * + * * @return the namePropertiesName value. */ String namePropertiesName(); /** * Gets the path property: Storage blob path of library. - * + * * @return the path value. */ String path(); /** * Gets the containerName property: Storage blob container name. - * + * * @return the containerName value. */ String containerName(); /** * Gets the uploadedTimestamp property: The last update time of the library. - * + * * @return the uploadedTimestamp value. */ OffsetDateTime uploadedTimestamp(); /** * Gets the typePropertiesType property: Type of the library. - * + * * @return the typePropertiesType value. */ String typePropertiesType(); /** * Gets the provisioningStatus property: Provisioning status of the library/package. - * + * * @return the provisioningStatus value. */ String provisioningStatus(); /** * Gets the creatorId property: Creator Id of the library/package. - * + * * @return the creatorId value. */ String creatorId(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.LibraryResourceInner object. - * + * * @return the inner object. */ LibraryResourceInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LinkedIntegrationRuntime.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LinkedIntegrationRuntime.java index 5ff909c437e5..972c11bee53a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LinkedIntegrationRuntime.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LinkedIntegrationRuntime.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; -/** The linked integration runtime information. */ +/** + * The linked integration runtime information. + */ @Immutable public final class LinkedIntegrationRuntime { /* @@ -41,13 +43,15 @@ public final class LinkedIntegrationRuntime { @JsonProperty(value = "createTime", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime createTime; - /** Creates an instance of LinkedIntegrationRuntime class. */ + /** + * Creates an instance of LinkedIntegrationRuntime class. + */ public LinkedIntegrationRuntime() { } /** * Get the name property: The name of the linked integration runtime. - * + * * @return the name value. */ public String name() { @@ -56,7 +60,7 @@ public String name() { /** * Get the subscriptionId property: The subscription ID for which the linked integration runtime belong to. - * + * * @return the subscriptionId value. */ public String subscriptionId() { @@ -65,7 +69,7 @@ public String subscriptionId() { /** * Get the dataFactoryName property: The name of the workspace for which the linked integration runtime belong to. - * + * * @return the dataFactoryName value. */ public String dataFactoryName() { @@ -75,7 +79,7 @@ public String dataFactoryName() { /** * Get the dataFactoryLocation property: The location of the workspace for which the linked integration runtime * belong to. - * + * * @return the dataFactoryLocation value. */ public String dataFactoryLocation() { @@ -84,7 +88,7 @@ public String dataFactoryLocation() { /** * Get the createTime property: The creating time of the linked integration runtime. - * + * * @return the createTime value. */ public OffsetDateTime createTime() { @@ -93,7 +97,7 @@ public OffsetDateTime createTime() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LinkedIntegrationRuntimeKeyAuthorization.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LinkedIntegrationRuntimeKeyAuthorization.java index c7a2ea892969..50dc914f596e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LinkedIntegrationRuntimeKeyAuthorization.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LinkedIntegrationRuntimeKeyAuthorization.java @@ -10,7 +10,9 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; -/** The key authorization type integration runtime. */ +/** + * The key authorization type integration runtime. + */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "authorizationType") @JsonTypeName("Key") @Fluent @@ -21,13 +23,15 @@ public final class LinkedIntegrationRuntimeKeyAuthorization extends LinkedIntegr @JsonProperty(value = "key", required = true) private SecureString key; - /** Creates an instance of LinkedIntegrationRuntimeKeyAuthorization class. */ + /** + * Creates an instance of LinkedIntegrationRuntimeKeyAuthorization class. + */ public LinkedIntegrationRuntimeKeyAuthorization() { } /** * Get the key property: The key used for authorization. - * + * * @return the key value. */ public SecureString key() { @@ -36,7 +40,7 @@ public SecureString key() { /** * Set the key property: The key used for authorization. - * + * * @param key the key value to set. * @return the LinkedIntegrationRuntimeKeyAuthorization object itself. */ @@ -47,17 +51,15 @@ public LinkedIntegrationRuntimeKeyAuthorization withKey(SecureString key) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ @Override public void validate() { super.validate(); if (key() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property key in model LinkedIntegrationRuntimeKeyAuthorization")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property key in model LinkedIntegrationRuntimeKeyAuthorization")); } else { key().validate(); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LinkedIntegrationRuntimeRbacAuthorization.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LinkedIntegrationRuntimeRbacAuthorization.java index 9f41fc9dce55..2aaf32997c67 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LinkedIntegrationRuntimeRbacAuthorization.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LinkedIntegrationRuntimeRbacAuthorization.java @@ -10,7 +10,9 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; -/** The role based access control (RBAC) authorization type integration runtime. */ +/** + * The role based access control (RBAC) authorization type integration runtime. + */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "authorizationType") @JsonTypeName("RBAC") @Fluent @@ -21,13 +23,15 @@ public final class LinkedIntegrationRuntimeRbacAuthorization extends LinkedInteg @JsonProperty(value = "resourceId", required = true) private String resourceId; - /** Creates an instance of LinkedIntegrationRuntimeRbacAuthorization class. */ + /** + * Creates an instance of LinkedIntegrationRuntimeRbacAuthorization class. + */ public LinkedIntegrationRuntimeRbacAuthorization() { } /** * Get the resourceId property: The resource identifier of the integration runtime to be shared. - * + * * @return the resourceId value. */ public String resourceId() { @@ -36,7 +40,7 @@ public String resourceId() { /** * Set the resourceId property: The resource identifier of the integration runtime to be shared. - * + * * @param resourceId the resourceId value to set. * @return the LinkedIntegrationRuntimeRbacAuthorization object itself. */ @@ -47,17 +51,15 @@ public LinkedIntegrationRuntimeRbacAuthorization withResourceId(String resourceI /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ @Override public void validate() { super.validate(); if (resourceId() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property resourceId in model LinkedIntegrationRuntimeRbacAuthorization")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property resourceId in model LinkedIntegrationRuntimeRbacAuthorization")); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LinkedIntegrationRuntimeType.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LinkedIntegrationRuntimeType.java index 8f679faa44ec..474d99958c11 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LinkedIntegrationRuntimeType.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/LinkedIntegrationRuntimeType.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; -/** The base definition of a linked integration runtime. */ +/** + * The base definition of a linked integration runtime. + */ @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, @@ -18,17 +20,18 @@ @JsonTypeName("LinkedIntegrationRuntimeType") @JsonSubTypes({ @JsonSubTypes.Type(name = "Key", value = LinkedIntegrationRuntimeKeyAuthorization.class), - @JsonSubTypes.Type(name = "RBAC", value = LinkedIntegrationRuntimeRbacAuthorization.class) -}) + @JsonSubTypes.Type(name = "RBAC", value = LinkedIntegrationRuntimeRbacAuthorization.class) }) @Immutable public class LinkedIntegrationRuntimeType { - /** Creates an instance of LinkedIntegrationRuntimeType class. */ + /** + * Creates an instance of LinkedIntegrationRuntimeType class. + */ public LinkedIntegrationRuntimeType() { } /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ListResourceSkusResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ListResourceSkusResult.java index 5e5a481386e6..0ac650c9da66 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ListResourceSkusResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ListResourceSkusResult.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** List of available SKUs for a Kusto Pool. */ +/** + * List of available SKUs for a Kusto Pool. + */ @Fluent public final class ListResourceSkusResult { /* @@ -18,13 +20,15 @@ public final class ListResourceSkusResult { @JsonProperty(value = "value") private List value; - /** Creates an instance of ListResourceSkusResult class. */ + /** + * Creates an instance of ListResourceSkusResult class. + */ public ListResourceSkusResult() { } /** * Get the value property: The collection of available SKUs for an existing resource. - * + * * @return the value value. */ public List value() { @@ -33,7 +37,7 @@ public List value() { /** * Set the value property: The collection of available SKUs for an existing resource. - * + * * @param value the value value to set. * @return the ListResourceSkusResult object itself. */ @@ -44,7 +48,7 @@ public ListResourceSkusResult withValue(List value) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ListSqlPoolSecurityAlertPolicies.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ListSqlPoolSecurityAlertPolicies.java index 92ca7b445236..521685435cb4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ListSqlPoolSecurityAlertPolicies.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ListSqlPoolSecurityAlertPolicies.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** A list of SQL pool security alert policies. */ +/** + * A list of SQL pool security alert policies. + */ @Immutable public final class ListSqlPoolSecurityAlertPolicies { /* @@ -24,13 +26,15 @@ public final class ListSqlPoolSecurityAlertPolicies { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; - /** Creates an instance of ListSqlPoolSecurityAlertPolicies class. */ + /** + * Creates an instance of ListSqlPoolSecurityAlertPolicies class. + */ public ListSqlPoolSecurityAlertPolicies() { } /** * Get the value property: Array of results. - * + * * @return the value value. */ public List value() { @@ -39,7 +43,7 @@ public List value() { /** * Get the nextLink property: Link to retrieve next page of results. - * + * * @return the nextLink value. */ public String nextLink() { @@ -48,7 +52,7 @@ public String nextLink() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/MaintenanceWindowOptions.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/MaintenanceWindowOptions.java index 9665ac65b0f5..48f49d988901 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/MaintenanceWindowOptions.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/MaintenanceWindowOptions.java @@ -7,32 +7,34 @@ import com.azure.resourcemanager.synapse.fluent.models.MaintenanceWindowOptionsInner; import java.util.List; -/** An immutable client-side representation of MaintenanceWindowOptions. */ +/** + * An immutable client-side representation of MaintenanceWindowOptions. + */ public interface MaintenanceWindowOptions { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the isEnabled property: Whether maintenance windows are enabled for the database. - * + * * @return the isEnabled value. */ Boolean isEnabled(); @@ -40,35 +42,35 @@ public interface MaintenanceWindowOptions { /** * Gets the maintenanceWindowCycles property: Available maintenance cycles e.g. {Saturday, 0, 48*60}, {Wednesday, 0, * 24*60}. - * + * * @return the maintenanceWindowCycles value. */ List maintenanceWindowCycles(); /** * Gets the minDurationInMinutes property: Minimum duration of maintenance window. - * + * * @return the minDurationInMinutes value. */ Integer minDurationInMinutes(); /** * Gets the defaultDurationInMinutes property: Default duration for maintenance window. - * + * * @return the defaultDurationInMinutes value. */ Integer defaultDurationInMinutes(); /** * Gets the minCycles property: Minimum number of maintenance windows cycles to be set on the database. - * + * * @return the minCycles value. */ Integer minCycles(); /** * Gets the timeGranularityInMinutes property: Time granularity in minutes for maintenance windows. - * + * * @return the timeGranularityInMinutes value. */ Integer timeGranularityInMinutes(); @@ -76,14 +78,14 @@ public interface MaintenanceWindowOptions { /** * Gets the allowMultipleMaintenanceWindowsPerCycle property: Whether we allow multiple maintenance windows per * cycle. - * + * * @return the allowMultipleMaintenanceWindowsPerCycle value. */ Boolean allowMultipleMaintenanceWindowsPerCycle(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.MaintenanceWindowOptionsInner object. - * + * * @return the inner object. */ MaintenanceWindowOptionsInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/MaintenanceWindowTimeRange.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/MaintenanceWindowTimeRange.java index 17593220f389..655e1cd86647 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/MaintenanceWindowTimeRange.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/MaintenanceWindowTimeRange.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Maintenance window time range. */ +/** + * Maintenance window time range. + */ @Fluent public final class MaintenanceWindowTimeRange { /* @@ -28,13 +30,15 @@ public final class MaintenanceWindowTimeRange { @JsonProperty(value = "duration") private String duration; - /** Creates an instance of MaintenanceWindowTimeRange class. */ + /** + * Creates an instance of MaintenanceWindowTimeRange class. + */ public MaintenanceWindowTimeRange() { } /** * Get the dayOfWeek property: Day of maintenance window. - * + * * @return the dayOfWeek value. */ public DayOfWeek dayOfWeek() { @@ -43,7 +47,7 @@ public DayOfWeek dayOfWeek() { /** * Set the dayOfWeek property: Day of maintenance window. - * + * * @param dayOfWeek the dayOfWeek value to set. * @return the MaintenanceWindowTimeRange object itself. */ @@ -54,7 +58,7 @@ public MaintenanceWindowTimeRange withDayOfWeek(DayOfWeek dayOfWeek) { /** * Get the startTime property: Start time minutes offset from 12am. - * + * * @return the startTime value. */ public String startTime() { @@ -63,7 +67,7 @@ public String startTime() { /** * Set the startTime property: Start time minutes offset from 12am. - * + * * @param startTime the startTime value to set. * @return the MaintenanceWindowTimeRange object itself. */ @@ -74,7 +78,7 @@ public MaintenanceWindowTimeRange withStartTime(String startTime) { /** * Get the duration property: Duration of maintenance window in minutes. - * + * * @return the duration value. */ public String duration() { @@ -83,7 +87,7 @@ public String duration() { /** * Set the duration property: Duration of maintenance window in minutes. - * + * * @param duration the duration value to set. * @return the MaintenanceWindowTimeRange object itself. */ @@ -94,7 +98,7 @@ public MaintenanceWindowTimeRange withDuration(String duration) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/MaintenanceWindows.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/MaintenanceWindows.java index 94f96858f698..9b1cc13a1641 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/MaintenanceWindows.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/MaintenanceWindows.java @@ -7,39 +7,41 @@ import com.azure.resourcemanager.synapse.fluent.models.MaintenanceWindowsInner; import java.util.List; -/** An immutable client-side representation of MaintenanceWindows. */ +/** + * An immutable client-side representation of MaintenanceWindows. + */ public interface MaintenanceWindows { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the timeRanges property: The timeRanges property. - * + * * @return the timeRanges value. */ List timeRanges(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.MaintenanceWindowsInner object. - * + * * @return the inner object. */ MaintenanceWindowsInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIdentity.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIdentity.java index 85b2400ef9fe..7fd883778888 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIdentity.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIdentity.java @@ -10,9 +10,11 @@ import java.util.Map; import java.util.UUID; -/** The workspace managed identity. */ +/** + * The workspace managed identity. + */ @Fluent -public class ManagedIdentity { +public final class ManagedIdentity { /* * The principal ID of the workspace managed identity */ @@ -38,13 +40,15 @@ public class ManagedIdentity { @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map userAssignedIdentities; - /** Creates an instance of ManagedIdentity class. */ + /** + * Creates an instance of ManagedIdentity class. + */ public ManagedIdentity() { } /** * Get the principalId property: The principal ID of the workspace managed identity. - * + * * @return the principalId value. */ public String principalId() { @@ -53,7 +57,7 @@ public String principalId() { /** * Get the tenantId property: The tenant ID of the workspace managed identity. - * + * * @return the tenantId value. */ public UUID tenantId() { @@ -62,7 +66,7 @@ public UUID tenantId() { /** * Get the type property: The type of managed identity for the workspace. - * + * * @return the type value. */ public ResourceIdentityType type() { @@ -71,7 +75,7 @@ public ResourceIdentityType type() { /** * Set the type property: The type of managed identity for the workspace. - * + * * @param type the type value to set. * @return the ManagedIdentity object itself. */ @@ -82,7 +86,7 @@ public ManagedIdentity withType(ResourceIdentityType type) { /** * Get the userAssignedIdentities property: The user assigned managed identities. - * + * * @return the userAssignedIdentities value. */ public Map userAssignedIdentities() { @@ -91,7 +95,7 @@ public Map userAssignedIdentities() { /** * Set the userAssignedIdentities property: The user assigned managed identities. - * + * * @param userAssignedIdentities the userAssignedIdentities value to set. * @return the ManagedIdentity object itself. */ @@ -102,19 +106,16 @@ public ManagedIdentity withUserAssignedIdentities(Map { - if (e != null) { - e.validate(); - } - }); + userAssignedIdentities().values().forEach(e -> { + if (e != null) { + e.validate(); + } + }); } } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIdentitySqlControlSettingsModel.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIdentitySqlControlSettingsModel.java index cc015090e5cf..8364b93847cf 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIdentitySqlControlSettingsModel.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIdentitySqlControlSettingsModel.java @@ -6,32 +6,34 @@ import com.azure.resourcemanager.synapse.fluent.models.ManagedIdentitySqlControlSettingsModelInner; -/** An immutable client-side representation of ManagedIdentitySqlControlSettingsModel. */ +/** + * An immutable client-side representation of ManagedIdentitySqlControlSettingsModel. + */ public interface ManagedIdentitySqlControlSettingsModel { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the grantSqlControlToManagedIdentity property: Grant sql control to managed identity. - * + * * @return the grantSqlControlToManagedIdentity value. */ ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity grantSqlControlToManagedIdentity(); @@ -39,7 +41,7 @@ public interface ManagedIdentitySqlControlSettingsModel { /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.ManagedIdentitySqlControlSettingsModelInner * object. - * + * * @return the inner object. */ ManagedIdentitySqlControlSettingsModelInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity.java index a140d5ca8ee9..2e5d5cfcbb65 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity.java @@ -7,9 +7,11 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Grant sql control to managed identity. */ +/** + * Grant sql control to managed identity. + */ @Fluent -public class ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity { +public final class ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity { /* * Desired state */ @@ -30,7 +32,7 @@ public ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedI /** * Get the desiredState property: Desired state. - * + * * @return the desiredState value. */ public DesiredState desiredState() { @@ -39,19 +41,19 @@ public DesiredState desiredState() { /** * Set the desiredState property: Desired state. - * + * * @param desiredState the desiredState value to set. * @return the ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity object itself. */ - public ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity withDesiredState( - DesiredState desiredState) { + public ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity + withDesiredState(DesiredState desiredState) { this.desiredState = desiredState; return this; } /** * Get the actualState property: Actual state. - * + * * @return the actualState value. */ public ActualState actualState() { @@ -60,7 +62,7 @@ public ActualState actualState() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntime.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntime.java index 1fcd8fb65d5e..ab03d26d711b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntime.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntime.java @@ -12,7 +12,9 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; -/** Managed integration runtime, including managed elastic and managed dedicated integration runtimes. */ +/** + * Managed integration runtime, including managed elastic and managed dedicated integration runtimes. + */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Managed") @Fluent @@ -35,13 +37,15 @@ public final class ManagedIntegrationRuntime extends IntegrationRuntime { @JsonProperty(value = "managedVirtualNetwork") private ManagedIntegrationRuntimeManagedVirtualNetworkReference innerManagedVirtualNetwork; - /** Creates an instance of ManagedIntegrationRuntime class. */ + /** + * Creates an instance of ManagedIntegrationRuntime class. + */ public ManagedIntegrationRuntime() { } /** * Get the state property: Integration runtime state, only valid for managed dedicated integration runtime. - * + * * @return the state value. */ public IntegrationRuntimeState state() { @@ -50,7 +54,7 @@ public IntegrationRuntimeState state() { /** * Get the innerTypeProperties property: Managed integration runtime properties. - * + * * @return the innerTypeProperties value. */ private ManagedIntegrationRuntimeTypeProperties innerTypeProperties() { @@ -59,14 +63,16 @@ private ManagedIntegrationRuntimeTypeProperties innerTypeProperties() { /** * Get the innerManagedVirtualNetwork property: Managed integration runtime managed virtual network. - * + * * @return the innerManagedVirtualNetwork value. */ private ManagedIntegrationRuntimeManagedVirtualNetworkReference innerManagedVirtualNetwork() { return this.innerManagedVirtualNetwork; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public ManagedIntegrationRuntime withDescription(String description) { super.withDescription(description); @@ -75,7 +81,7 @@ public ManagedIntegrationRuntime withDescription(String description) { /** * Get the computeProperties property: The compute resource for managed integration runtime. - * + * * @return the computeProperties value. */ public IntegrationRuntimeComputeProperties computeProperties() { @@ -84,7 +90,7 @@ public IntegrationRuntimeComputeProperties computeProperties() { /** * Set the computeProperties property: The compute resource for managed integration runtime. - * + * * @param computeProperties the computeProperties value to set. * @return the ManagedIntegrationRuntime object itself. */ @@ -98,7 +104,7 @@ public ManagedIntegrationRuntime withComputeProperties(IntegrationRuntimeCompute /** * Get the ssisProperties property: SSIS properties for managed integration runtime. - * + * * @return the ssisProperties value. */ public IntegrationRuntimeSsisProperties ssisProperties() { @@ -107,7 +113,7 @@ public IntegrationRuntimeSsisProperties ssisProperties() { /** * Set the ssisProperties property: SSIS properties for managed integration runtime. - * + * * @param ssisProperties the ssisProperties value to set. * @return the ManagedIntegrationRuntime object itself. */ @@ -121,7 +127,7 @@ public ManagedIntegrationRuntime withSsisProperties(IntegrationRuntimeSsisProper /** * Get the referenceName property: The reference name of the managed virtual network. - * + * * @return the referenceName value. */ public String referenceName() { @@ -130,7 +136,7 @@ public String referenceName() { /** * Set the referenceName property: The reference name of the managed virtual network. - * + * * @param referenceName the referenceName value to set. * @return the ManagedIntegrationRuntime object itself. */ @@ -144,7 +150,7 @@ public ManagedIntegrationRuntime withReferenceName(String referenceName) { /** * Get the type property: The type of the managed virtual network. - * + * * @return the type value. */ public String typeManagedVirtualNetworkType() { @@ -153,7 +159,7 @@ public String typeManagedVirtualNetworkType() { /** * Set the type property: The type of the managed virtual network. - * + * * @param type the type value to set. * @return the ManagedIntegrationRuntime object itself. */ @@ -167,7 +173,7 @@ public ManagedIntegrationRuntime withTypeManagedVirtualNetworkType(String type) /** * Get the id property: The id of the managed virtual network. - * + * * @return the id value. */ public String id() { @@ -176,7 +182,7 @@ public String id() { /** * Set the id property: The id of the managed virtual network. - * + * * @param id the id value to set. * @return the ManagedIntegrationRuntime object itself. */ @@ -190,17 +196,15 @@ public ManagedIntegrationRuntime withId(String id) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ @Override public void validate() { super.validate(); if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model ManagedIntegrationRuntime")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property innerTypeProperties in model ManagedIntegrationRuntime")); } else { innerTypeProperties().validate(); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeError.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeError.java index b4cc371abf08..310c692c35a9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeError.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeError.java @@ -14,7 +14,9 @@ import java.util.List; import java.util.Map; -/** Error definition for managed integration runtime. */ +/** + * Error definition for managed integration runtime. + */ @Fluent public final class ManagedIntegrationRuntimeError { /* @@ -44,15 +46,18 @@ public final class ManagedIntegrationRuntimeError { /* * Error definition for managed integration runtime. */ - @JsonIgnore private Map additionalProperties; + @JsonIgnore + private Map additionalProperties; - /** Creates an instance of ManagedIntegrationRuntimeError class. */ + /** + * Creates an instance of ManagedIntegrationRuntimeError class. + */ public ManagedIntegrationRuntimeError() { } /** * Get the time property: The time when the error occurred. - * + * * @return the time value. */ public OffsetDateTime time() { @@ -61,7 +66,7 @@ public OffsetDateTime time() { /** * Get the code property: Error code. - * + * * @return the code value. */ public String code() { @@ -70,7 +75,7 @@ public String code() { /** * Get the parameters property: Managed integration runtime error parameters. - * + * * @return the parameters value. */ public List parameters() { @@ -79,7 +84,7 @@ public List parameters() { /** * Get the message property: Error message. - * + * * @return the message value. */ public String message() { @@ -88,7 +93,7 @@ public String message() { /** * Get the additionalProperties property: Error definition for managed integration runtime. - * + * * @return the additionalProperties value. */ @JsonAnyGetter @@ -98,7 +103,7 @@ public Map additionalProperties() { /** * Set the additionalProperties property: Error definition for managed integration runtime. - * + * * @param additionalProperties the additionalProperties value to set. * @return the ManagedIntegrationRuntimeError object itself. */ @@ -117,7 +122,7 @@ void withAdditionalProperties(String key, Object value) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeNode.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeNode.java index b13cb6b5a48b..60cf3a5f21e8 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeNode.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeNode.java @@ -13,7 +13,9 @@ import java.util.List; import java.util.Map; -/** Properties of integration runtime node. */ +/** + * Properties of integration runtime node. + */ @Fluent public final class ManagedIntegrationRuntimeNode { /* @@ -37,15 +39,18 @@ public final class ManagedIntegrationRuntimeNode { /* * Properties of integration runtime node. */ - @JsonIgnore private Map additionalProperties; + @JsonIgnore + private Map additionalProperties; - /** Creates an instance of ManagedIntegrationRuntimeNode class. */ + /** + * Creates an instance of ManagedIntegrationRuntimeNode class. + */ public ManagedIntegrationRuntimeNode() { } /** * Get the nodeId property: The managed integration runtime node id. - * + * * @return the nodeId value. */ public String nodeId() { @@ -54,7 +59,7 @@ public String nodeId() { /** * Get the status property: The managed integration runtime node status. - * + * * @return the status value. */ public ManagedIntegrationRuntimeNodeStatus status() { @@ -63,7 +68,7 @@ public ManagedIntegrationRuntimeNodeStatus status() { /** * Get the errors property: The errors that occurred on this integration runtime node. - * + * * @return the errors value. */ public List errors() { @@ -72,7 +77,7 @@ public List errors() { /** * Set the errors property: The errors that occurred on this integration runtime node. - * + * * @param errors the errors value to set. * @return the ManagedIntegrationRuntimeNode object itself. */ @@ -83,7 +88,7 @@ public ManagedIntegrationRuntimeNode withErrors(List additionalProperties() { /** * Set the additionalProperties property: Properties of integration runtime node. - * + * * @param additionalProperties the additionalProperties value to set. * @return the ManagedIntegrationRuntimeNode object itself. */ @@ -112,7 +117,7 @@ void withAdditionalProperties(String key, Object value) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeNodeStatus.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeNodeStatus.java index 7a95bbbb86b4..a5dbf70bf1bf 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeNodeStatus.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeNodeStatus.java @@ -8,24 +8,34 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The managed integration runtime node status. */ +/** + * The managed integration runtime node status. + */ public final class ManagedIntegrationRuntimeNodeStatus extends ExpandableStringEnum { - /** Static value Starting for ManagedIntegrationRuntimeNodeStatus. */ + /** + * Static value Starting for ManagedIntegrationRuntimeNodeStatus. + */ public static final ManagedIntegrationRuntimeNodeStatus STARTING = fromString("Starting"); - /** Static value Available for ManagedIntegrationRuntimeNodeStatus. */ + /** + * Static value Available for ManagedIntegrationRuntimeNodeStatus. + */ public static final ManagedIntegrationRuntimeNodeStatus AVAILABLE = fromString("Available"); - /** Static value Recycling for ManagedIntegrationRuntimeNodeStatus. */ + /** + * Static value Recycling for ManagedIntegrationRuntimeNodeStatus. + */ public static final ManagedIntegrationRuntimeNodeStatus RECYCLING = fromString("Recycling"); - /** Static value Unavailable for ManagedIntegrationRuntimeNodeStatus. */ + /** + * Static value Unavailable for ManagedIntegrationRuntimeNodeStatus. + */ public static final ManagedIntegrationRuntimeNodeStatus UNAVAILABLE = fromString("Unavailable"); /** * Creates a new instance of ManagedIntegrationRuntimeNodeStatus value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -34,7 +44,7 @@ public ManagedIntegrationRuntimeNodeStatus() { /** * Creates or finds a ManagedIntegrationRuntimeNodeStatus from its string representation. - * + * * @param name a name to look for. * @return the corresponding ManagedIntegrationRuntimeNodeStatus. */ @@ -45,7 +55,7 @@ public static ManagedIntegrationRuntimeNodeStatus fromString(String name) { /** * Gets known ManagedIntegrationRuntimeNodeStatus values. - * + * * @return known ManagedIntegrationRuntimeNodeStatus values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeOperationResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeOperationResult.java index 447032bd316e..c6267862bbed 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeOperationResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeOperationResult.java @@ -14,7 +14,9 @@ import java.util.List; import java.util.Map; -/** Properties of managed integration runtime operation result. */ +/** + * Properties of managed integration runtime operation result. + */ @Fluent public final class ManagedIntegrationRuntimeOperationResult { /* @@ -56,15 +58,18 @@ public final class ManagedIntegrationRuntimeOperationResult { /* * Properties of managed integration runtime operation result. */ - @JsonIgnore private Map additionalProperties; + @JsonIgnore + private Map additionalProperties; - /** Creates an instance of ManagedIntegrationRuntimeOperationResult class. */ + /** + * Creates an instance of ManagedIntegrationRuntimeOperationResult class. + */ public ManagedIntegrationRuntimeOperationResult() { } /** * Get the type property: The operation type. Could be start or stop. - * + * * @return the type value. */ public String type() { @@ -73,7 +78,7 @@ public String type() { /** * Get the startTime property: The start time of the operation. - * + * * @return the startTime value. */ public OffsetDateTime startTime() { @@ -82,7 +87,7 @@ public OffsetDateTime startTime() { /** * Get the result property: The operation result. - * + * * @return the result value. */ public String result() { @@ -91,7 +96,7 @@ public String result() { /** * Get the errorCode property: The error code. - * + * * @return the errorCode value. */ public String errorCode() { @@ -100,7 +105,7 @@ public String errorCode() { /** * Get the parameters property: Managed integration runtime error parameters. - * + * * @return the parameters value. */ public List parameters() { @@ -109,7 +114,7 @@ public List parameters() { /** * Get the activityId property: The activity id for the operation request. - * + * * @return the activityId value. */ public String activityId() { @@ -118,7 +123,7 @@ public String activityId() { /** * Get the additionalProperties property: Properties of managed integration runtime operation result. - * + * * @return the additionalProperties value. */ @JsonAnyGetter @@ -128,7 +133,7 @@ public Map additionalProperties() { /** * Set the additionalProperties property: Properties of managed integration runtime operation result. - * + * * @param additionalProperties the additionalProperties value to set. * @return the ManagedIntegrationRuntimeOperationResult object itself. */ @@ -147,7 +152,7 @@ void withAdditionalProperties(String key, Object value) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeStatus.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeStatus.java index c814b323e46f..5065c677e860 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeStatus.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedIntegrationRuntimeStatus.java @@ -13,7 +13,9 @@ import java.time.OffsetDateTime; import java.util.List; -/** Managed integration runtime status. */ +/** + * Managed integration runtime status. + */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Managed") @Immutable @@ -22,16 +24,18 @@ public final class ManagedIntegrationRuntimeStatus extends IntegrationRuntimeSta * Managed integration runtime status type properties. */ @JsonProperty(value = "typeProperties", required = true) - private ManagedIntegrationRuntimeStatusTypeProperties innerTypeProperties = - new ManagedIntegrationRuntimeStatusTypeProperties(); + private ManagedIntegrationRuntimeStatusTypeProperties innerTypeProperties + = new ManagedIntegrationRuntimeStatusTypeProperties(); - /** Creates an instance of ManagedIntegrationRuntimeStatus class. */ + /** + * Creates an instance of ManagedIntegrationRuntimeStatus class. + */ public ManagedIntegrationRuntimeStatus() { } /** * Get the innerTypeProperties property: Managed integration runtime status type properties. - * + * * @return the innerTypeProperties value. */ private ManagedIntegrationRuntimeStatusTypeProperties innerTypeProperties() { @@ -40,7 +44,7 @@ private ManagedIntegrationRuntimeStatusTypeProperties innerTypeProperties() { /** * Get the createTime property: The time at which the integration runtime was created, in ISO8601 format. - * + * * @return the createTime value. */ public OffsetDateTime createTime() { @@ -49,7 +53,7 @@ public OffsetDateTime createTime() { /** * Get the nodes property: The list of nodes for managed integration runtime. - * + * * @return the nodes value. */ public List nodes() { @@ -58,7 +62,7 @@ public List nodes() { /** * Get the otherErrors property: The errors that occurred on this integration runtime. - * + * * @return the otherErrors value. */ public List otherErrors() { @@ -67,7 +71,7 @@ public List otherErrors() { /** * Get the lastOperation property: The last operation result that occurred on this integration runtime. - * + * * @return the lastOperation value. */ public ManagedIntegrationRuntimeOperationResult lastOperation() { @@ -76,17 +80,15 @@ public ManagedIntegrationRuntimeOperationResult lastOperation() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ @Override public void validate() { super.validate(); if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model ManagedIntegrationRuntimeStatus")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property innerTypeProperties in model ManagedIntegrationRuntimeStatus")); } else { innerTypeProperties().validate(); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedVirtualNetworkSettings.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedVirtualNetworkSettings.java index c6988cbeed1b..4921a4f0cdcb 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedVirtualNetworkSettings.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ManagedVirtualNetworkSettings.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Managed Virtual Network Settings. */ +/** + * Managed Virtual Network Settings. + */ @Fluent public final class ManagedVirtualNetworkSettings { /* @@ -29,13 +31,15 @@ public final class ManagedVirtualNetworkSettings { @JsonProperty(value = "allowedAadTenantIdsForLinking") private List allowedAadTenantIdsForLinking; - /** Creates an instance of ManagedVirtualNetworkSettings class. */ + /** + * Creates an instance of ManagedVirtualNetworkSettings class. + */ public ManagedVirtualNetworkSettings() { } /** * Get the preventDataExfiltration property: Prevent Data Exfiltration. - * + * * @return the preventDataExfiltration value. */ public Boolean preventDataExfiltration() { @@ -44,7 +48,7 @@ public Boolean preventDataExfiltration() { /** * Set the preventDataExfiltration property: Prevent Data Exfiltration. - * + * * @param preventDataExfiltration the preventDataExfiltration value to set. * @return the ManagedVirtualNetworkSettings object itself. */ @@ -55,7 +59,7 @@ public ManagedVirtualNetworkSettings withPreventDataExfiltration(Boolean prevent /** * Get the linkedAccessCheckOnTargetResource property: Linked Access Check On Target Resource. - * + * * @return the linkedAccessCheckOnTargetResource value. */ public Boolean linkedAccessCheckOnTargetResource() { @@ -64,19 +68,19 @@ public Boolean linkedAccessCheckOnTargetResource() { /** * Set the linkedAccessCheckOnTargetResource property: Linked Access Check On Target Resource. - * + * * @param linkedAccessCheckOnTargetResource the linkedAccessCheckOnTargetResource value to set. * @return the ManagedVirtualNetworkSettings object itself. */ - public ManagedVirtualNetworkSettings withLinkedAccessCheckOnTargetResource( - Boolean linkedAccessCheckOnTargetResource) { + public ManagedVirtualNetworkSettings + withLinkedAccessCheckOnTargetResource(Boolean linkedAccessCheckOnTargetResource) { this.linkedAccessCheckOnTargetResource = linkedAccessCheckOnTargetResource; return this; } /** * Get the allowedAadTenantIdsForLinking property: Allowed Aad Tenant Ids For Linking. - * + * * @return the allowedAadTenantIdsForLinking value. */ public List allowedAadTenantIdsForLinking() { @@ -85,7 +89,7 @@ public List allowedAadTenantIdsForLinking() { /** * Set the allowedAadTenantIdsForLinking property: Allowed Aad Tenant Ids For Linking. - * + * * @param allowedAadTenantIdsForLinking the allowedAadTenantIdsForLinking value to set. * @return the ManagedVirtualNetworkSettings object itself. */ @@ -96,7 +100,7 @@ public ManagedVirtualNetworkSettings withAllowedAadTenantIdsForLinking(List { - /** Static value Pending for ManagementOperationState. */ + /** + * Static value Pending for ManagementOperationState. + */ public static final ManagementOperationState PENDING = fromString("Pending"); - /** Static value InProgress for ManagementOperationState. */ + /** + * Static value InProgress for ManagementOperationState. + */ public static final ManagementOperationState IN_PROGRESS = fromString("InProgress"); - /** Static value Succeeded for ManagementOperationState. */ + /** + * Static value Succeeded for ManagementOperationState. + */ public static final ManagementOperationState SUCCEEDED = fromString("Succeeded"); - /** Static value Failed for ManagementOperationState. */ + /** + * Static value Failed for ManagementOperationState. + */ public static final ManagementOperationState FAILED = fromString("Failed"); - /** Static value CancelInProgress for ManagementOperationState. */ + /** + * Static value CancelInProgress for ManagementOperationState. + */ public static final ManagementOperationState CANCEL_IN_PROGRESS = fromString("CancelInProgress"); - /** Static value Cancelled for ManagementOperationState. */ + /** + * Static value Cancelled for ManagementOperationState. + */ public static final ManagementOperationState CANCELLED = fromString("Cancelled"); /** * Creates a new instance of ManagementOperationState value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -39,7 +53,7 @@ public ManagementOperationState() { /** * Creates or finds a ManagementOperationState from its string representation. - * + * * @param name a name to look for. * @return the corresponding ManagementOperationState. */ @@ -50,7 +64,7 @@ public static ManagementOperationState fromString(String name) { /** * Gets known ManagementOperationState values. - * + * * @return known ManagementOperationState values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/MetadataSyncConfig.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/MetadataSyncConfig.java index 60b26c8d59f7..b2e37592ba24 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/MetadataSyncConfig.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/MetadataSyncConfig.java @@ -6,46 +6,48 @@ import com.azure.resourcemanager.synapse.fluent.models.MetadataSyncConfigInner; -/** An immutable client-side representation of MetadataSyncConfig. */ +/** + * An immutable client-side representation of MetadataSyncConfig. + */ public interface MetadataSyncConfig { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the enabled property: Indicates whether the metadata sync is enabled or disabled. - * + * * @return the enabled value. */ Boolean enabled(); /** * Gets the syncIntervalInMinutes property: The Sync Interval in minutes. - * + * * @return the syncIntervalInMinutes value. */ Integer syncIntervalInMinutes(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.MetadataSyncConfigInner object. - * + * * @return the inner object. */ MetadataSyncConfigInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/NodeSize.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/NodeSize.java index 15dd2324b656..aecddb672bb3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/NodeSize.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/NodeSize.java @@ -8,32 +8,48 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The level of compute power that each node in the Big Data pool has. */ +/** + * The level of compute power that each node in the Big Data pool has. + */ public final class NodeSize extends ExpandableStringEnum { - /** Static value None for NodeSize. */ + /** + * Static value None for NodeSize. + */ public static final NodeSize NONE = fromString("None"); - /** Static value Small for NodeSize. */ + /** + * Static value Small for NodeSize. + */ public static final NodeSize SMALL = fromString("Small"); - /** Static value Medium for NodeSize. */ + /** + * Static value Medium for NodeSize. + */ public static final NodeSize MEDIUM = fromString("Medium"); - /** Static value Large for NodeSize. */ + /** + * Static value Large for NodeSize. + */ public static final NodeSize LARGE = fromString("Large"); - /** Static value XLarge for NodeSize. */ + /** + * Static value XLarge for NodeSize. + */ public static final NodeSize XLARGE = fromString("XLarge"); - /** Static value XXLarge for NodeSize. */ + /** + * Static value XXLarge for NodeSize. + */ public static final NodeSize XXLARGE = fromString("XXLarge"); - /** Static value XXXLarge for NodeSize. */ + /** + * Static value XXXLarge for NodeSize. + */ public static final NodeSize XXXLARGE = fromString("XXXLarge"); /** * Creates a new instance of NodeSize value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -42,7 +58,7 @@ public NodeSize() { /** * Creates or finds a NodeSize from its string representation. - * + * * @param name a name to look for. * @return the corresponding NodeSize. */ @@ -53,7 +69,7 @@ public static NodeSize fromString(String name) { /** * Gets known NodeSize values. - * + * * @return known NodeSize values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/NodeSizeFamily.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/NodeSizeFamily.java index 61e3132d0eb8..a7c91a4395a5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/NodeSizeFamily.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/NodeSizeFamily.java @@ -8,23 +8,33 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The kind of nodes that the Big Data pool provides. */ +/** + * The kind of nodes that the Big Data pool provides. + */ public final class NodeSizeFamily extends ExpandableStringEnum { - /** Static value None for NodeSizeFamily. */ + /** + * Static value None for NodeSizeFamily. + */ public static final NodeSizeFamily NONE = fromString("None"); - /** Static value MemoryOptimized for NodeSizeFamily. */ + /** + * Static value MemoryOptimized for NodeSizeFamily. + */ public static final NodeSizeFamily MEMORY_OPTIMIZED = fromString("MemoryOptimized"); - /** Static value HardwareAcceleratedFPGA for NodeSizeFamily. */ + /** + * Static value HardwareAcceleratedFPGA for NodeSizeFamily. + */ public static final NodeSizeFamily HARDWARE_ACCELERATED_FPGA = fromString("HardwareAcceleratedFPGA"); - /** Static value HardwareAcceleratedGPU for NodeSizeFamily. */ + /** + * Static value HardwareAcceleratedGPU for NodeSizeFamily. + */ public static final NodeSizeFamily HARDWARE_ACCELERATED_GPU = fromString("HardwareAcceleratedGPU"); /** * Creates a new instance of NodeSizeFamily value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -33,7 +43,7 @@ public NodeSizeFamily() { /** * Creates or finds a NodeSizeFamily from its string representation. - * + * * @param name a name to look for. * @return the corresponding NodeSizeFamily. */ @@ -44,7 +54,7 @@ public static NodeSizeFamily fromString(String name) { /** * Gets known NodeSizeFamily values. - * + * * @return known NodeSizeFamily values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Operation.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Operation.java index 81c52656b80e..d04676dbae4b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Operation.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Operation.java @@ -6,41 +6,43 @@ import com.azure.resourcemanager.synapse.fluent.models.OperationInner; -/** An immutable client-side representation of Operation. */ +/** + * An immutable client-side representation of Operation. + */ public interface Operation { /** * Gets the name property: The operation name. - * - *

This is of the format {provider}/{resource}/{operation}. - * + * + * This is of the format {provider}/{resource}/{operation}. + * * @return the name value. */ String name(); /** * Gets the display property: The object that describes the operation. - * + * * @return the display value. */ OperationDisplay display(); /** * Gets the origin property: The intended executor of the operation. - * + * * @return the origin value. */ String origin(); /** * Gets the properties property: Properties of the operation. - * + * * @return the properties value. */ Object properties(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.OperationInner object. - * + * * @return the inner object. */ OperationInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationDisplay.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationDisplay.java index f5538f393c2d..e0be7ec59052 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationDisplay.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationDisplay.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** The object that describes the operation. */ +/** + * The object that describes the operation. + */ @Fluent public final class OperationDisplay { /* @@ -18,7 +20,7 @@ public final class OperationDisplay { /* * The operation type. - * + * * For example: read, write, delete. */ @JsonProperty(value = "operation") @@ -36,13 +38,15 @@ public final class OperationDisplay { @JsonProperty(value = "description") private String description; - /** Creates an instance of OperationDisplay class. */ + /** + * Creates an instance of OperationDisplay class. + */ public OperationDisplay() { } /** * Get the provider property: Friendly name of the resource provider. - * + * * @return the provider value. */ public String provider() { @@ -51,7 +55,7 @@ public String provider() { /** * Set the provider property: Friendly name of the resource provider. - * + * * @param provider the provider value to set. * @return the OperationDisplay object itself. */ @@ -62,9 +66,9 @@ public OperationDisplay withProvider(String provider) { /** * Get the operation property: The operation type. - * - *

For example: read, write, delete. - * + * + * For example: read, write, delete. + * * @return the operation value. */ public String operation() { @@ -73,9 +77,9 @@ public String operation() { /** * Set the operation property: The operation type. - * - *

For example: read, write, delete. - * + * + * For example: read, write, delete. + * * @param operation the operation value to set. * @return the OperationDisplay object itself. */ @@ -86,7 +90,7 @@ public OperationDisplay withOperation(String operation) { /** * Get the resource property: The resource type on which the operation is performed. - * + * * @return the resource value. */ public String resource() { @@ -95,7 +99,7 @@ public String resource() { /** * Set the resource property: The resource type on which the operation is performed. - * + * * @param resource the resource value to set. * @return the OperationDisplay object itself. */ @@ -106,7 +110,7 @@ public OperationDisplay withResource(String resource) { /** * Get the description property: The friendly name of the operation. - * + * * @return the description value. */ public String description() { @@ -115,7 +119,7 @@ public String description() { /** * Set the description property: The friendly name of the operation. - * + * * @param description the description value to set. * @return the OperationDisplay object itself. */ @@ -126,7 +130,7 @@ public OperationDisplay withDescription(String description) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationListResult.java index 0760fbdeda35..66f16e835b2e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationListResult.java @@ -27,13 +27,15 @@ public final class OperationListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; - /** Creates an instance of OperationListResult class. */ + /** + * Creates an instance of OperationListResult class. + */ public OperationListResult() { } /** * Get the value property: The list of operations supported by the resource provider. - * + * * @return the value value. */ public List value() { @@ -42,7 +44,7 @@ public List value() { /** * Set the value property: The list of operations supported by the resource provider. - * + * * @param value the value value to set. * @return the OperationListResult object itself. */ @@ -53,7 +55,7 @@ public OperationListResult withValue(List value) { /** * Get the nextLink property: The URL to get the next set of operation list results if there are any. - * + * * @return the nextLink value. */ public String nextLink() { @@ -62,7 +64,7 @@ public String nextLink() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationMetaLogSpecification.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationMetaLogSpecification.java index 185c5bb1ed69..af6e22d02ede 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationMetaLogSpecification.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationMetaLogSpecification.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** What is this?. */ +/** + * What is this?. + */ @Fluent public final class OperationMetaLogSpecification { /* @@ -28,13 +30,15 @@ public final class OperationMetaLogSpecification { @JsonProperty(value = "name") private String name; - /** Creates an instance of OperationMetaLogSpecification class. */ + /** + * Creates an instance of OperationMetaLogSpecification class. + */ public OperationMetaLogSpecification() { } /** * Get the displayName property: Log display name. - * + * * @return the displayName value. */ public String displayName() { @@ -43,7 +47,7 @@ public String displayName() { /** * Set the displayName property: Log display name. - * + * * @param displayName the displayName value to set. * @return the OperationMetaLogSpecification object itself. */ @@ -54,7 +58,7 @@ public OperationMetaLogSpecification withDisplayName(String displayName) { /** * Get the blobDuration property: Time range the log covers. - * + * * @return the blobDuration value. */ public String blobDuration() { @@ -63,7 +67,7 @@ public String blobDuration() { /** * Set the blobDuration property: Time range the log covers. - * + * * @param blobDuration the blobDuration value to set. * @return the OperationMetaLogSpecification object itself. */ @@ -74,7 +78,7 @@ public OperationMetaLogSpecification withBlobDuration(String blobDuration) { /** * Get the name property: Log unique name. - * + * * @return the name value. */ public String name() { @@ -83,7 +87,7 @@ public String name() { /** * Set the name property: Log unique name. - * + * * @param name the name value to set. * @return the OperationMetaLogSpecification object itself. */ @@ -94,7 +98,7 @@ public OperationMetaLogSpecification withName(String name) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationMetaMetricDimensionSpecification.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationMetaMetricDimensionSpecification.java index 9c1f43286c47..0dc71801d177 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationMetaMetricDimensionSpecification.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationMetaMetricDimensionSpecification.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** What is this?. */ +/** + * What is this?. + */ @Fluent public final class OperationMetaMetricDimensionSpecification { /* @@ -28,13 +30,15 @@ public final class OperationMetaMetricDimensionSpecification { @JsonProperty(value = "toBeExportedForShoebox") private Boolean toBeExportedForShoebox; - /** Creates an instance of OperationMetaMetricDimensionSpecification class. */ + /** + * Creates an instance of OperationMetaMetricDimensionSpecification class. + */ public OperationMetaMetricDimensionSpecification() { } /** * Get the displayName property: Dimension display name. - * + * * @return the displayName value. */ public String displayName() { @@ -43,7 +47,7 @@ public String displayName() { /** * Set the displayName property: Dimension display name. - * + * * @param displayName the displayName value to set. * @return the OperationMetaMetricDimensionSpecification object itself. */ @@ -54,7 +58,7 @@ public OperationMetaMetricDimensionSpecification withDisplayName(String displayN /** * Get the name property: Dimension unique name. - * + * * @return the name value. */ public String name() { @@ -63,7 +67,7 @@ public String name() { /** * Set the name property: Dimension unique name. - * + * * @param name the name value to set. * @return the OperationMetaMetricDimensionSpecification object itself. */ @@ -74,7 +78,7 @@ public OperationMetaMetricDimensionSpecification withName(String name) { /** * Get the toBeExportedForShoebox property: Whether this metric should be exported for Shoebox. - * + * * @return the toBeExportedForShoebox value. */ public Boolean toBeExportedForShoebox() { @@ -83,7 +87,7 @@ public Boolean toBeExportedForShoebox() { /** * Set the toBeExportedForShoebox property: Whether this metric should be exported for Shoebox. - * + * * @param toBeExportedForShoebox the toBeExportedForShoebox value to set. * @return the OperationMetaMetricDimensionSpecification object itself. */ @@ -94,7 +98,7 @@ public OperationMetaMetricDimensionSpecification withToBeExportedForShoebox(Bool /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationMetaMetricSpecification.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationMetaMetricSpecification.java index c3e67c6b6852..8e3d0ee26328 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationMetaMetricSpecification.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationMetaMetricSpecification.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** What is this?. */ +/** + * What is this?. + */ @Fluent public final class OperationMetaMetricSpecification { /* @@ -77,13 +79,15 @@ public final class OperationMetaMetricSpecification { @JsonProperty(value = "metricFilterPattern") private String metricFilterPattern; - /** Creates an instance of OperationMetaMetricSpecification class. */ + /** + * Creates an instance of OperationMetaMetricSpecification class. + */ public OperationMetaMetricSpecification() { } /** * Get the sourceMdmNamespace property: The source MDM namespace. - * + * * @return the sourceMdmNamespace value. */ public String sourceMdmNamespace() { @@ -92,7 +96,7 @@ public String sourceMdmNamespace() { /** * Set the sourceMdmNamespace property: The source MDM namespace. - * + * * @param sourceMdmNamespace the sourceMdmNamespace value to set. * @return the OperationMetaMetricSpecification object itself. */ @@ -103,7 +107,7 @@ public OperationMetaMetricSpecification withSourceMdmNamespace(String sourceMdmN /** * Get the displayName property: Metric display name. - * + * * @return the displayName value. */ public String displayName() { @@ -112,7 +116,7 @@ public String displayName() { /** * Set the displayName property: Metric display name. - * + * * @param displayName the displayName value to set. * @return the OperationMetaMetricSpecification object itself. */ @@ -123,7 +127,7 @@ public OperationMetaMetricSpecification withDisplayName(String displayName) { /** * Get the name property: Metric unique name. - * + * * @return the name value. */ public String name() { @@ -132,7 +136,7 @@ public String name() { /** * Set the name property: Metric unique name. - * + * * @param name the name value to set. * @return the OperationMetaMetricSpecification object itself. */ @@ -143,7 +147,7 @@ public OperationMetaMetricSpecification withName(String name) { /** * Get the aggregationType property: Metric aggregation type. - * + * * @return the aggregationType value. */ public String aggregationType() { @@ -152,7 +156,7 @@ public String aggregationType() { /** * Set the aggregationType property: Metric aggregation type. - * + * * @param aggregationType the aggregationType value to set. * @return the OperationMetaMetricSpecification object itself. */ @@ -163,7 +167,7 @@ public OperationMetaMetricSpecification withAggregationType(String aggregationTy /** * Get the displayDescription property: Metric description. - * + * * @return the displayDescription value. */ public String displayDescription() { @@ -172,7 +176,7 @@ public String displayDescription() { /** * Set the displayDescription property: Metric description. - * + * * @param displayDescription the displayDescription value to set. * @return the OperationMetaMetricSpecification object itself. */ @@ -183,7 +187,7 @@ public OperationMetaMetricSpecification withDisplayDescription(String displayDes /** * Get the sourceMdmAccount property: The source MDM account. - * + * * @return the sourceMdmAccount value. */ public String sourceMdmAccount() { @@ -192,7 +196,7 @@ public String sourceMdmAccount() { /** * Set the sourceMdmAccount property: The source MDM account. - * + * * @param sourceMdmAccount the sourceMdmAccount value to set. * @return the OperationMetaMetricSpecification object itself. */ @@ -203,7 +207,7 @@ public OperationMetaMetricSpecification withSourceMdmAccount(String sourceMdmAcc /** * Get the enableRegionalMdmAccount property: Whether the regional MDM account is enabled. - * + * * @return the enableRegionalMdmAccount value. */ public Boolean enableRegionalMdmAccount() { @@ -212,7 +216,7 @@ public Boolean enableRegionalMdmAccount() { /** * Set the enableRegionalMdmAccount property: Whether the regional MDM account is enabled. - * + * * @param enableRegionalMdmAccount the enableRegionalMdmAccount value to set. * @return the OperationMetaMetricSpecification object itself. */ @@ -223,7 +227,7 @@ public OperationMetaMetricSpecification withEnableRegionalMdmAccount(Boolean ena /** * Get the unit property: Metric units. - * + * * @return the unit value. */ public String unit() { @@ -232,7 +236,7 @@ public String unit() { /** * Set the unit property: Metric units. - * + * * @param unit the unit value to set. * @return the OperationMetaMetricSpecification object itself. */ @@ -243,7 +247,7 @@ public OperationMetaMetricSpecification withUnit(String unit) { /** * Get the dimensions property: Metric dimensions. - * + * * @return the dimensions value. */ public List dimensions() { @@ -252,7 +256,7 @@ public List dimensions() { /** * Set the dimensions property: Metric dimensions. - * + * * @param dimensions the dimensions value to set. * @return the OperationMetaMetricSpecification object itself. */ @@ -263,7 +267,7 @@ public OperationMetaMetricSpecification withDimensions(List logSpecifications; - /** Creates an instance of OperationMetaServiceSpecification class. */ + /** + * Creates an instance of OperationMetaServiceSpecification class. + */ public OperationMetaServiceSpecification() { } /** * Get the metricSpecifications property: Service metric specifications. - * + * * @return the metricSpecifications value. */ public List metricSpecifications() { @@ -38,19 +42,19 @@ public List metricSpecifications() { /** * Set the metricSpecifications property: Service metric specifications. - * + * * @param metricSpecifications the metricSpecifications value to set. * @return the OperationMetaServiceSpecification object itself. */ - public OperationMetaServiceSpecification withMetricSpecifications( - List metricSpecifications) { + public OperationMetaServiceSpecification + withMetricSpecifications(List metricSpecifications) { this.metricSpecifications = metricSpecifications; return this; } /** * Get the logSpecifications property: Service log specifications. - * + * * @return the logSpecifications value. */ public List logSpecifications() { @@ -59,19 +63,19 @@ public List logSpecifications() { /** * Set the logSpecifications property: Service log specifications. - * + * * @param logSpecifications the logSpecifications value to set. * @return the OperationMetaServiceSpecification object itself. */ - public OperationMetaServiceSpecification withLogSpecifications( - List logSpecifications) { + public OperationMetaServiceSpecification + withLogSpecifications(List logSpecifications) { this.logSpecifications = logSpecifications; return this; } /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationResource.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationResource.java index 68f2870e0d8c..6a0c94e5f4e4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationResource.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationResource.java @@ -8,67 +8,69 @@ import com.azure.resourcemanager.synapse.fluent.models.OperationResourceInner; import java.time.OffsetDateTime; -/** An immutable client-side representation of OperationResource. */ +/** + * An immutable client-side representation of OperationResource. + */ public interface OperationResource { /** * Gets the id property: Operation ID. - * + * * @return the id value. */ String id(); /** * Gets the name property: Operation name. - * + * * @return the name value. */ String name(); /** * Gets the status property: Operation status. - * + * * @return the status value. */ OperationStatus status(); /** * Gets the properties property: Operation properties. - * + * * @return the properties value. */ Object properties(); /** * Gets the error property: Errors from the operation. - * + * * @return the error value. */ ManagementError error(); /** * Gets the startTime property: Operation start time. - * + * * @return the startTime value. */ OffsetDateTime startTime(); /** * Gets the endTime property: Operation start time. - * + * * @return the endTime value. */ OffsetDateTime endTime(); /** * Gets the percentComplete property: Completion percentage of the operation. - * + * * @return the percentComplete value. */ Float percentComplete(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.OperationResourceInner object. - * + * * @return the inner object. */ OperationResourceInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationStatus.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationStatus.java index 559bef6f68fa..481a238f51b1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationStatus.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OperationStatus.java @@ -8,23 +8,33 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Operation status. */ +/** + * Operation status. + */ public final class OperationStatus extends ExpandableStringEnum { - /** Static value InProgress for OperationStatus. */ + /** + * Static value InProgress for OperationStatus. + */ public static final OperationStatus IN_PROGRESS = fromString("InProgress"); - /** Static value Succeeded for OperationStatus. */ + /** + * Static value Succeeded for OperationStatus. + */ public static final OperationStatus SUCCEEDED = fromString("Succeeded"); - /** Static value Failed for OperationStatus. */ + /** + * Static value Failed for OperationStatus. + */ public static final OperationStatus FAILED = fromString("Failed"); - /** Static value Canceled for OperationStatus. */ + /** + * Static value Canceled for OperationStatus. + */ public static final OperationStatus CANCELED = fromString("Canceled"); /** * Creates a new instance of OperationStatus value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -33,7 +43,7 @@ public OperationStatus() { /** * Creates or finds a OperationStatus from its string representation. - * + * * @param name a name to look for. * @return the corresponding OperationStatus. */ @@ -44,7 +54,7 @@ public static OperationStatus fromString(String name) { /** * Gets known OperationStatus values. - * + * * @return known OperationStatus values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Operations.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Operations.java index 7fea32e2062c..1b14e4a48ed9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Operations.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Operations.java @@ -8,13 +8,15 @@ import com.azure.core.util.Context; import java.util.List; -/** Resource collection API of Operations. */ +/** + * Resource collection API of Operations. + */ public interface Operations { /** * Check name availability - * - *

Check whether a workspace name is available. - * + * + * Check whether a workspace name is available. + * * @param request The check request. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -22,14 +24,14 @@ public interface Operations { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return check name availability response along with {@link Response}. */ - Response checkNameAvailabilityWithResponse( - CheckNameAvailabilityRequest request, Context context); + Response checkNameAvailabilityWithResponse(CheckNameAvailabilityRequest request, + Context context); /** * Check name availability - * - *

Check whether a workspace name is available. - * + * + * Check whether a workspace name is available. + * * @param request The check request. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -40,9 +42,9 @@ Response checkNameAvailabilityWithResponse( /** * All operations - * - *

Get all available operations. - * + * + * Get all available operations. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -53,9 +55,9 @@ Response checkNameAvailabilityWithResponse( /** * All operations - * - *

Get all available operations. - * + * + * Get all available operations. + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return all available operations. @@ -64,9 +66,9 @@ Response checkNameAvailabilityWithResponse( /** * Get operation result - * - *

Get the result of an operation. - * + * + * Get the result of an operation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param operationId Operation ID. @@ -76,14 +78,14 @@ Response checkNameAvailabilityWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the result of an operation along with {@link Response}. */ - Response getLocationHeaderResultWithResponse( - String resourceGroupName, String workspaceName, String operationId, Context context); + Response getLocationHeaderResultWithResponse(String resourceGroupName, String workspaceName, + String operationId, Context context); /** * Get operation result - * - *

Get the result of an operation. - * + * + * Get the result of an operation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param operationId Operation ID. @@ -95,9 +97,9 @@ Response getLocationHeaderResultWithResponse( /** * Get operation status - * - *

Get the status of an operation. - * + * + * Get the status of an operation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param operationId Operation ID. @@ -107,14 +109,14 @@ Response getLocationHeaderResultWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the status of an operation along with {@link Response}. */ - Response getAzureAsyncHeaderResultWithResponse( - String resourceGroupName, String workspaceName, String operationId, Context context); + Response getAzureAsyncHeaderResultWithResponse(String resourceGroupName, String workspaceName, + String operationId, Context context); /** * Get operation status - * - *

Get the status of an operation. - * + * + * Get the status of an operation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param operationId Operation ID. @@ -124,4 +126,28 @@ Response getAzureAsyncHeaderResultWithResponse( * @return the status of an operation. */ OperationResource getAzureAsyncHeaderResult(String resourceGroupName, String workspaceName, String operationId); + + /** + * Gets the current usage and quota of workspaces in a subscription/region. + * + * @param location The location on which resource usage is queried. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current usage and quota of workspaces in a subscription/region along with {@link Response}. + */ + Response getWorkspacePerSubscriptionQuotaWithResponse(String location, + Context context); + + /** + * Gets the current usage and quota of workspaces in a subscription/region. + * + * @param location The location on which resource usage is queried. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the current usage and quota of workspaces in a subscription/region. + */ + WorkspaceUsageQuotaResponse getWorkspacePerSubscriptionQuota(String location); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OptimizedAutoscale.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OptimizedAutoscale.java index 25b0b6912c14..2ae480611b0c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OptimizedAutoscale.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/OptimizedAutoscale.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** A class that contains the optimized auto scale definition. */ +/** + * A class that contains the optimized auto scale definition. + */ @Fluent public final class OptimizedAutoscale { /* @@ -34,13 +36,15 @@ public final class OptimizedAutoscale { @JsonProperty(value = "maximum", required = true) private int maximum; - /** Creates an instance of OptimizedAutoscale class. */ + /** + * Creates an instance of OptimizedAutoscale class. + */ public OptimizedAutoscale() { } /** * Get the version property: The version of the template defined, for instance 1. - * + * * @return the version value. */ public int version() { @@ -49,7 +53,7 @@ public int version() { /** * Set the version property: The version of the template defined, for instance 1. - * + * * @param version the version value to set. * @return the OptimizedAutoscale object itself. */ @@ -60,7 +64,7 @@ public OptimizedAutoscale withVersion(int version) { /** * Get the isEnabled property: A boolean value that indicate if the optimized autoscale feature is enabled or not. - * + * * @return the isEnabled value. */ public boolean isEnabled() { @@ -69,7 +73,7 @@ public boolean isEnabled() { /** * Set the isEnabled property: A boolean value that indicate if the optimized autoscale feature is enabled or not. - * + * * @param isEnabled the isEnabled value to set. * @return the OptimizedAutoscale object itself. */ @@ -80,7 +84,7 @@ public OptimizedAutoscale withIsEnabled(boolean isEnabled) { /** * Get the minimum property: Minimum allowed instances count. - * + * * @return the minimum value. */ public int minimum() { @@ -89,7 +93,7 @@ public int minimum() { /** * Set the minimum property: Minimum allowed instances count. - * + * * @param minimum the minimum value to set. * @return the OptimizedAutoscale object itself. */ @@ -100,7 +104,7 @@ public OptimizedAutoscale withMinimum(int minimum) { /** * Get the maximum property: Maximum allowed instances count. - * + * * @return the maximum value. */ public int maximum() { @@ -109,7 +113,7 @@ public int maximum() { /** * Set the maximum property: Maximum allowed instances count. - * + * * @param maximum the maximum value to set. * @return the OptimizedAutoscale object itself. */ @@ -120,7 +124,7 @@ public OptimizedAutoscale withMaximum(int maximum) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrincipalType.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrincipalType.java index 76db4ddadcb6..d158165ec710 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrincipalType.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrincipalType.java @@ -8,20 +8,28 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Principal type. */ +/** + * Principal type. + */ public final class PrincipalType extends ExpandableStringEnum { - /** Static value App for PrincipalType. */ + /** + * Static value App for PrincipalType. + */ public static final PrincipalType APP = fromString("App"); - /** Static value Group for PrincipalType. */ + /** + * Static value Group for PrincipalType. + */ public static final PrincipalType GROUP = fromString("Group"); - /** Static value User for PrincipalType. */ + /** + * Static value User for PrincipalType. + */ public static final PrincipalType USER = fromString("User"); /** * Creates a new instance of PrincipalType value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -30,7 +38,7 @@ public PrincipalType() { /** * Creates or finds a PrincipalType from its string representation. - * + * * @param name a name to look for. * @return the corresponding PrincipalType. */ @@ -41,7 +49,7 @@ public static PrincipalType fromString(String name) { /** * Gets known PrincipalType values. - * + * * @return known PrincipalType values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrincipalsModificationKind.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrincipalsModificationKind.java index 9eb206b69d20..770fd403f9ef 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrincipalsModificationKind.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrincipalsModificationKind.java @@ -8,20 +8,28 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The principals modification kind of the database. */ +/** + * The principals modification kind of the database. + */ public final class PrincipalsModificationKind extends ExpandableStringEnum { - /** Static value Union for PrincipalsModificationKind. */ + /** + * Static value Union for PrincipalsModificationKind. + */ public static final PrincipalsModificationKind UNION = fromString("Union"); - /** Static value Replace for PrincipalsModificationKind. */ + /** + * Static value Replace for PrincipalsModificationKind. + */ public static final PrincipalsModificationKind REPLACE = fromString("Replace"); - /** Static value None for PrincipalsModificationKind. */ + /** + * Static value None for PrincipalsModificationKind. + */ public static final PrincipalsModificationKind NONE = fromString("None"); /** * Creates a new instance of PrincipalsModificationKind value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -30,7 +38,7 @@ public PrincipalsModificationKind() { /** * Creates or finds a PrincipalsModificationKind from its string representation. - * + * * @param name a name to look for. * @return the corresponding PrincipalsModificationKind. */ @@ -41,7 +49,7 @@ public static PrincipalsModificationKind fromString(String name) { /** * Gets known PrincipalsModificationKind values. - * + * * @return known PrincipalsModificationKind values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpoint.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpoint.java index 37e2cf61879a..aec9241b05a1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpoint.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpoint.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Immutable; import com.fasterxml.jackson.annotation.JsonProperty; -/** Private endpoint details. */ +/** + * Private endpoint details. + */ @Immutable public final class PrivateEndpoint { /* @@ -16,13 +18,15 @@ public final class PrivateEndpoint { @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY) private String id; - /** Creates an instance of PrivateEndpoint class. */ + /** + * Creates an instance of PrivateEndpoint class. + */ public PrivateEndpoint() { } /** * Get the id property: Resource id of the private endpoint. - * + * * @return the id value. */ public String id() { @@ -31,7 +35,7 @@ public String id() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnection.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnection.java index 08911523845b..cf9ed08006a0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnection.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnection.java @@ -7,77 +7,90 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.synapse.fluent.models.PrivateEndpointConnectionInner; -/** An immutable client-side representation of PrivateEndpointConnection. */ +/** + * An immutable client-side representation of PrivateEndpointConnection. + */ public interface PrivateEndpointConnection { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the privateEndpoint property: The private endpoint which the connection belongs to. - * + * * @return the privateEndpoint value. */ PrivateEndpoint privateEndpoint(); /** * Gets the privateLinkServiceConnectionState property: Connection state of the private endpoint connection. - * + * * @return the privateLinkServiceConnectionState value. */ PrivateLinkServiceConnectionState privateLinkServiceConnectionState(); /** * Gets the provisioningState property: Provisioning state of the private endpoint connection. - * + * * @return the provisioningState value. */ String provisioningState(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.PrivateEndpointConnectionInner object. - * + * * @return the inner object. */ PrivateEndpointConnectionInner innerModel(); - /** The entirety of the PrivateEndpointConnection definition. */ + /** + * The entirety of the PrivateEndpointConnection definition. + */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { } - /** The PrivateEndpointConnection definition stages. */ + + /** + * The PrivateEndpointConnection definition stages. + */ interface DefinitionStages { - /** The first stage of the PrivateEndpointConnection definition. */ + /** + * The first stage of the PrivateEndpointConnection definition. + */ interface Blank extends WithParentResource { } - /** The stage of the PrivateEndpointConnection definition allowing to specify parent resource. */ + + /** + * The stage of the PrivateEndpointConnection definition allowing to specify parent resource. + */ interface WithParentResource { /** * Specifies resourceGroupName, workspaceName. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @return the next definition stage. */ WithCreate withExistingWorkspace(String resourceGroupName, String workspaceName); } + /** * The stage of the PrivateEndpointConnection definition which contains all the minimum required properties for * the resource to be created, but also allows for any other optional properties to be specified. @@ -86,29 +99,33 @@ interface WithCreate extends DefinitionStages.WithPrivateEndpoint, DefinitionStages.WithPrivateLinkServiceConnectionState { /** * Executes the create request. - * + * * @return the created resource. */ PrivateEndpointConnection create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ PrivateEndpointConnection create(Context context); } - /** The stage of the PrivateEndpointConnection definition allowing to specify privateEndpoint. */ + + /** + * The stage of the PrivateEndpointConnection definition allowing to specify privateEndpoint. + */ interface WithPrivateEndpoint { /** * Specifies the privateEndpoint property: The private endpoint which the connection belongs to.. - * + * * @param privateEndpoint The private endpoint which the connection belongs to. * @return the next definition stage. */ WithCreate withPrivateEndpoint(PrivateEndpoint privateEndpoint); } + /** * The stage of the PrivateEndpointConnection definition allowing to specify privateLinkServiceConnectionState. */ @@ -116,7 +133,7 @@ interface WithPrivateLinkServiceConnectionState { /** * Specifies the privateLinkServiceConnectionState property: Connection state of the private endpoint * connection.. - * + * * @param privateLinkServiceConnectionState Connection state of the private endpoint connection. * @return the next definition stage. */ @@ -124,16 +141,17 @@ WithCreate withPrivateLinkServiceConnectionState( PrivateLinkServiceConnectionState privateLinkServiceConnectionState); } } + /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ PrivateEndpointConnection refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionForPrivateLinkHub.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionForPrivateLinkHub.java index a0a260d07015..c3017fc881e6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionForPrivateLinkHub.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionForPrivateLinkHub.java @@ -7,32 +7,34 @@ import com.azure.resourcemanager.synapse.fluent.models.PrivateEndpointConnectionForPrivateLinkHubInner; import com.azure.resourcemanager.synapse.fluent.models.PrivateEndpointConnectionProperties; -/** An immutable client-side representation of PrivateEndpointConnectionForPrivateLinkHub. */ +/** + * An immutable client-side representation of PrivateEndpointConnectionForPrivateLinkHub. + */ public interface PrivateEndpointConnectionForPrivateLinkHub { /** * Gets the id property: The id property. - * + * * @return the id value. */ String id(); /** * Gets the properties property: Properties of a private endpoint connection. - * + * * @return the properties value. */ PrivateEndpointConnectionProperties properties(); /** * Gets the name property: The name property. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type property. - * + * * @return the type value. */ String type(); @@ -40,7 +42,7 @@ public interface PrivateEndpointConnectionForPrivateLinkHub { /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.PrivateEndpointConnectionForPrivateLinkHubInner * object. - * + * * @return the inner object. */ PrivateEndpointConnectionForPrivateLinkHubInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionForPrivateLinkHubBasic.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionForPrivateLinkHubBasic.java index 581d87447e37..e677fb1dcccf 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionForPrivateLinkHubBasic.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionForPrivateLinkHubBasic.java @@ -8,7 +8,9 @@ import com.azure.resourcemanager.synapse.fluent.models.PrivateEndpointConnectionProperties; import com.fasterxml.jackson.annotation.JsonProperty; -/** Private Endpoint Connection For Private Link Hub - Basic. */ +/** + * Private Endpoint Connection For Private Link Hub - Basic. + */ @Fluent public final class PrivateEndpointConnectionForPrivateLinkHubBasic { /* @@ -23,13 +25,15 @@ public final class PrivateEndpointConnectionForPrivateLinkHubBasic { @JsonProperty(value = "properties") private PrivateEndpointConnectionProperties innerProperties; - /** Creates an instance of PrivateEndpointConnectionForPrivateLinkHubBasic class. */ + /** + * Creates an instance of PrivateEndpointConnectionForPrivateLinkHubBasic class. + */ public PrivateEndpointConnectionForPrivateLinkHubBasic() { } /** * Get the id property: identifier. - * + * * @return the id value. */ public String id() { @@ -38,7 +42,7 @@ public String id() { /** * Get the innerProperties property: Properties of private endpoint connection for private link hub. - * + * * @return the innerProperties value. */ private PrivateEndpointConnectionProperties innerProperties() { @@ -47,7 +51,7 @@ private PrivateEndpointConnectionProperties innerProperties() { /** * Get the privateEndpoint property: The private endpoint which the connection belongs to. - * + * * @return the privateEndpoint value. */ public PrivateEndpoint privateEndpoint() { @@ -56,7 +60,7 @@ public PrivateEndpoint privateEndpoint() { /** * Set the privateEndpoint property: The private endpoint which the connection belongs to. - * + * * @param privateEndpoint the privateEndpoint value to set. * @return the PrivateEndpointConnectionForPrivateLinkHubBasic object itself. */ @@ -70,7 +74,7 @@ public PrivateEndpointConnectionForPrivateLinkHubBasic withPrivateEndpoint(Priva /** * Get the privateLinkServiceConnectionState property: Connection state of the private endpoint connection. - * + * * @return the privateLinkServiceConnectionState value. */ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() { @@ -79,12 +83,12 @@ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() { /** * Set the privateLinkServiceConnectionState property: Connection state of the private endpoint connection. - * + * * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set. * @return the PrivateEndpointConnectionForPrivateLinkHubBasic object itself. */ - public PrivateEndpointConnectionForPrivateLinkHubBasic withPrivateLinkServiceConnectionState( - PrivateLinkServiceConnectionState privateLinkServiceConnectionState) { + public PrivateEndpointConnectionForPrivateLinkHubBasic + withPrivateLinkServiceConnectionState(PrivateLinkServiceConnectionState privateLinkServiceConnectionState) { if (this.innerProperties() == null) { this.innerProperties = new PrivateEndpointConnectionProperties(); } @@ -94,7 +98,7 @@ public PrivateEndpointConnectionForPrivateLinkHubBasic withPrivateLinkServiceCon /** * Get the provisioningState property: Provisioning state of the private endpoint connection. - * + * * @return the provisioningState value. */ public String provisioningState() { @@ -103,7 +107,7 @@ public String provisioningState() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated.java index 009879254ed6..3e9729cd8baa 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated.java @@ -8,7 +8,9 @@ import com.azure.resourcemanager.synapse.fluent.models.PrivateEndpointConnectionProperties; import com.fasterxml.jackson.annotation.JsonProperty; -/** The PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated model. */ +/** + * The PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated model. + */ @Fluent public class PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated { /* @@ -23,13 +25,15 @@ public class PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated { @JsonProperty(value = "properties") private PrivateEndpointConnectionProperties properties; - /** Creates an instance of PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated class. */ + /** + * Creates an instance of PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated class. + */ public PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated() { } /** * Get the id property: The id property. - * + * * @return the id value. */ public String id() { @@ -38,7 +42,7 @@ public String id() { /** * Set the id property: The id property. - * + * * @param id the id value to set. * @return the PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated object itself. */ @@ -49,7 +53,7 @@ public PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated withId(Strin /** * Get the properties property: Properties of a private endpoint connection. - * + * * @return the properties value. */ public PrivateEndpointConnectionProperties properties() { @@ -58,19 +62,19 @@ public PrivateEndpointConnectionProperties properties() { /** * Set the properties property: Properties of a private endpoint connection. - * + * * @param properties the properties value to set. * @return the PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated object itself. */ - public PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated withProperties( - PrivateEndpointConnectionProperties properties) { + public PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated + withProperties(PrivateEndpointConnectionProperties properties) { this.properties = properties; return this; } /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse.java index 551194b43659..6673f1585f02 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse model. */ +/** + * The PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse model. + */ @Fluent public final class PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse { /* @@ -24,13 +26,15 @@ public final class PrivateEndpointConnectionForPrivateLinkHubResourceCollectionR @JsonProperty(value = "nextLink") private String nextLink; - /** Creates an instance of PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse class. */ + /** + * Creates an instance of PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse class. + */ public PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse() { } /** * Get the value property: The value property. - * + * * @return the value value. */ public List value() { @@ -39,19 +43,19 @@ public List value() { /** * Set the value property: The value property. - * + * * @param value the value value to set. * @return the PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse object itself. */ - public PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse withValue( - List value) { + public PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse + withValue(List value) { this.value = value; return this; } /** * Get the nextLink property: The nextLink property. - * + * * @return the nextLink value. */ public String nextLink() { @@ -60,7 +64,7 @@ public String nextLink() { /** * Set the nextLink property: The nextLink property. - * + * * @param nextLink the nextLink value to set. * @return the PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse object itself. */ @@ -71,7 +75,7 @@ public PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse with /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionList.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionList.java index f6414c589840..3be9b806e715 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionList.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionList.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** A list of private endpoint connections. */ +/** + * A list of private endpoint connections. + */ @Immutable public final class PrivateEndpointConnectionList { /* @@ -24,13 +26,15 @@ public final class PrivateEndpointConnectionList { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; - /** Creates an instance of PrivateEndpointConnectionList class. */ + /** + * Creates an instance of PrivateEndpointConnectionList class. + */ public PrivateEndpointConnectionList() { } /** * Get the value property: Array of results. - * + * * @return the value value. */ public List value() { @@ -39,7 +43,7 @@ public List value() { /** * Get the nextLink property: Link to retrieve next page of results. - * + * * @return the nextLink value. */ public String nextLink() { @@ -48,7 +52,7 @@ public String nextLink() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnections.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnections.java index 02e5481532e3..ba9495b464fb 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnections.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnections.java @@ -8,11 +8,13 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of PrivateEndpointConnections. */ +/** + * Resource collection API of PrivateEndpointConnections. + */ public interface PrivateEndpointConnections { /** * Gets a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -22,12 +24,12 @@ public interface PrivateEndpointConnections { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a private endpoint connection along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, String workspaceName, String privateEndpointConnectionName, Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + String privateEndpointConnectionName, Context context); /** * Gets a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -40,7 +42,7 @@ Response getWithResponse( /** * Delete a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -53,7 +55,7 @@ Response getWithResponse( /** * Delete a private endpoint connection. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateEndpointConnectionName The name of the private endpoint connection. @@ -63,12 +65,12 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ - OperationResource delete( - String resourceGroupName, String workspaceName, String privateEndpointConnectionName, Context context); + OperationResource delete(String resourceGroupName, String workspaceName, String privateEndpointConnectionName, + Context context); /** * Lists private endpoint connection in workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -80,7 +82,7 @@ OperationResource delete( /** * Lists private endpoint connection in workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -93,7 +95,7 @@ OperationResource delete( /** * Gets a private endpoint connection. - * + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -104,7 +106,7 @@ OperationResource delete( /** * Gets a private endpoint connection. - * + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -116,7 +118,7 @@ OperationResource delete( /** * Delete a private endpoint connection. - * + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -127,7 +129,7 @@ OperationResource delete( /** * Delete a private endpoint connection. - * + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -139,7 +141,7 @@ OperationResource delete( /** * Begins definition for a new PrivateEndpointConnection resource. - * + * * @param name resource name. * @return the first stage of the new PrivateEndpointConnection definition. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionsPrivateLinkHubs.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionsPrivateLinkHubs.java index 46f1473fdc2a..b791b5642bc7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionsPrivateLinkHubs.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateEndpointConnectionsPrivateLinkHubs.java @@ -8,11 +8,13 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of PrivateEndpointConnectionsPrivateLinkHubs. */ +/** + * Resource collection API of PrivateEndpointConnectionsPrivateLinkHubs. + */ public interface PrivateEndpointConnectionsPrivateLinkHubs { /** * Get all PrivateEndpointConnections in the PrivateLinkHub. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -24,7 +26,7 @@ public interface PrivateEndpointConnectionsPrivateLinkHubs { /** * Get all PrivateEndpointConnections in the PrivateLinkHub. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @param context The context to associate with this operation. @@ -33,12 +35,12 @@ public interface PrivateEndpointConnectionsPrivateLinkHubs { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return all PrivateEndpointConnections in the PrivateLinkHub as paginated response with {@link PagedIterable}. */ - PagedIterable list( - String resourceGroupName, String privateLinkHubName, Context context); + PagedIterable list(String resourceGroupName, String privateLinkHubName, + Context context); /** * Get all PrivateEndpointConnection in the PrivateLinkHub by name. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @param privateEndpointConnectionName Name of the privateEndpointConnection. @@ -48,12 +50,12 @@ PagedIterable list( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return all PrivateEndpointConnection in the PrivateLinkHub by name along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, String privateLinkHubName, String privateEndpointConnectionName, Context context); + Response getWithResponse(String resourceGroupName, + String privateLinkHubName, String privateEndpointConnectionName, Context context); /** * Get all PrivateEndpointConnection in the PrivateLinkHub by name. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @param privateEndpointConnectionName Name of the privateEndpointConnection. @@ -62,6 +64,6 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return all PrivateEndpointConnection in the PrivateLinkHub by name. */ - PrivateEndpointConnectionForPrivateLinkHub get( - String resourceGroupName, String privateLinkHubName, String privateEndpointConnectionName); + PrivateEndpointConnectionForPrivateLinkHub get(String resourceGroupName, String privateLinkHubName, + String privateEndpointConnectionName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHub.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHub.java index 715634478998..8157a4e2d376 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHub.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHub.java @@ -10,102 +10,111 @@ import java.util.List; import java.util.Map; -/** An immutable client-side representation of PrivateLinkHub. */ +/** + * An immutable client-side representation of PrivateLinkHub. + */ public interface PrivateLinkHub { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the location property: The geo-location where the resource lives. - * + * * @return the location value. */ String location(); /** * Gets the tags property: Resource tags. - * + * * @return the tags value. */ Map tags(); /** * Gets the provisioningState property: PrivateLinkHub provisioning state. - * + * * @return the provisioningState value. */ String provisioningState(); /** * Gets the privateEndpointConnections property: List of private endpoint connections. - * + * * @return the privateEndpointConnections value. */ List privateEndpointConnections(); /** * Gets the region of the resource. - * + * * @return the region of the resource. */ Region region(); /** * Gets the name of the resource region. - * + * * @return the name of the resource region. */ String regionName(); /** * Gets the name of the resource group. - * + * * @return the name of the resource group. */ String resourceGroupName(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.PrivateLinkHubInner object. - * + * * @return the inner object. */ PrivateLinkHubInner innerModel(); - /** The entirety of the PrivateLinkHub definition. */ - interface Definition - extends DefinitionStages.Blank, - DefinitionStages.WithLocation, - DefinitionStages.WithResourceGroup, - DefinitionStages.WithCreate { + /** + * The entirety of the PrivateLinkHub definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, + DefinitionStages.WithResourceGroup, DefinitionStages.WithCreate { } - /** The PrivateLinkHub definition stages. */ + + /** + * The PrivateLinkHub definition stages. + */ interface DefinitionStages { - /** The first stage of the PrivateLinkHub definition. */ + /** + * The first stage of the PrivateLinkHub definition. + */ interface Blank extends WithLocation { } - /** The stage of the PrivateLinkHub definition allowing to specify location. */ + + /** + * The stage of the PrivateLinkHub definition allowing to specify location. + */ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ @@ -113,22 +122,26 @@ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ WithResourceGroup withRegion(String location); } - /** The stage of the PrivateLinkHub definition allowing to specify parent resource. */ + + /** + * The stage of the PrivateLinkHub definition allowing to specify parent resource. + */ interface WithResourceGroup { /** * Specifies resourceGroupName. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @return the next definition stage. */ WithCreate withExistingResourceGroup(String resourceGroupName); } + /** * The stage of the PrivateLinkHub definition which contains all the minimum required properties for the * resource to be created, but also allows for any other optional properties to be specified. @@ -136,87 +149,102 @@ interface WithResourceGroup { interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithProvisioningState { /** * Executes the create request. - * + * * @return the created resource. */ PrivateLinkHub create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ PrivateLinkHub create(Context context); } - /** The stage of the PrivateLinkHub definition allowing to specify tags. */ + + /** + * The stage of the PrivateLinkHub definition allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: Resource tags.. - * + * * @param tags Resource tags. * @return the next definition stage. */ WithCreate withTags(Map tags); } - /** The stage of the PrivateLinkHub definition allowing to specify provisioningState. */ + + /** + * The stage of the PrivateLinkHub definition allowing to specify provisioningState. + */ interface WithProvisioningState { /** * Specifies the provisioningState property: PrivateLinkHub provisioning state. - * + * * @param provisioningState PrivateLinkHub provisioning state. * @return the next definition stage. */ WithCreate withProvisioningState(String provisioningState); } } + /** * Begins update for the PrivateLinkHub resource. - * + * * @return the stage of resource update. */ PrivateLinkHub.Update update(); - /** The template for PrivateLinkHub update. */ + /** + * The template for PrivateLinkHub update. + */ interface Update extends UpdateStages.WithTags { /** * Executes the update request. - * + * * @return the updated resource. */ PrivateLinkHub apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ PrivateLinkHub apply(Context context); } - /** The PrivateLinkHub update stages. */ + + /** + * The PrivateLinkHub update stages. + */ interface UpdateStages { - /** The stage of the PrivateLinkHub update allowing to specify tags. */ + /** + * The stage of the PrivateLinkHub update allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: Resource tags. - * + * * @param tags Resource tags. * @return the next definition stage. */ Update withTags(Map tags); } } + /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ PrivateLinkHub refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHubInfoListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHubInfoListResult.java index e282082eb8b8..a69924d646af 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHubInfoListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHubInfoListResult.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** List of privateLinkHubs. */ +/** + * List of privateLinkHubs. + */ @Fluent public final class PrivateLinkHubInfoListResult { /* @@ -24,13 +26,15 @@ public final class PrivateLinkHubInfoListResult { @JsonProperty(value = "value") private List value; - /** Creates an instance of PrivateLinkHubInfoListResult class. */ + /** + * Creates an instance of PrivateLinkHubInfoListResult class. + */ public PrivateLinkHubInfoListResult() { } /** * Get the nextLink property: Link to the next page of results. - * + * * @return the nextLink value. */ public String nextLink() { @@ -39,7 +43,7 @@ public String nextLink() { /** * Set the nextLink property: Link to the next page of results. - * + * * @param nextLink the nextLink value to set. * @return the PrivateLinkHubInfoListResult object itself. */ @@ -50,7 +54,7 @@ public PrivateLinkHubInfoListResult withNextLink(String nextLink) { /** * Get the value property: List of privateLinkHubs. - * + * * @return the value value. */ public List value() { @@ -59,7 +63,7 @@ public List value() { /** * Set the value property: List of privateLinkHubs. - * + * * @param value the value value to set. * @return the PrivateLinkHubInfoListResult object itself. */ @@ -70,7 +74,7 @@ public PrivateLinkHubInfoListResult withValue(List value) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHubPatchInfo.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHubPatchInfo.java index 91ae68df68d7..b61e5b0ca042 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHubPatchInfo.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHubPatchInfo.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; -/** PrivateLinkHub patch details. */ +/** + * PrivateLinkHub patch details. + */ @Fluent public final class PrivateLinkHubPatchInfo { /* @@ -19,13 +21,15 @@ public final class PrivateLinkHubPatchInfo { @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map tags; - /** Creates an instance of PrivateLinkHubPatchInfo class. */ + /** + * Creates an instance of PrivateLinkHubPatchInfo class. + */ public PrivateLinkHubPatchInfo() { } /** * Get the tags property: Resource tags. - * + * * @return the tags value. */ public Map tags() { @@ -34,7 +38,7 @@ public Map tags() { /** * Set the tags property: Resource tags. - * + * * @param tags the tags value to set. * @return the PrivateLinkHubPatchInfo object itself. */ @@ -45,7 +49,7 @@ public PrivateLinkHubPatchInfo withTags(Map tags) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHubPrivateLinkResources.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHubPrivateLinkResources.java index 049272b79f90..03eafebf1f19 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHubPrivateLinkResources.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHubPrivateLinkResources.java @@ -8,13 +8,15 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of PrivateLinkHubPrivateLinkResources. */ +/** + * Resource collection API of PrivateLinkHubPrivateLinkResources. + */ public interface PrivateLinkHubPrivateLinkResources { /** * Private Link Resources - * - *

Get all private link resources for a private link hub. - * + * + * Get all private link resources for a private link hub. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName The name of the private link hub. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -26,9 +28,9 @@ public interface PrivateLinkHubPrivateLinkResources { /** * Private Link Resources - * - *

Get all private link resources for a private link hub. - * + * + * Get all private link resources for a private link hub. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName The name of the private link hub. * @param context The context to associate with this operation. @@ -41,9 +43,9 @@ public interface PrivateLinkHubPrivateLinkResources { /** * Get Private Link Hub Private Link Resource - * - *

Get private link resource in private link hub. - * + * + * Get private link resource in private link hub. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName The name of the private link hub. * @param privateLinkResourceName The name of the private link resource. @@ -53,14 +55,14 @@ public interface PrivateLinkHubPrivateLinkResources { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return private link resource in private link hub along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, String privateLinkHubName, String privateLinkResourceName, Context context); + Response getWithResponse(String resourceGroupName, String privateLinkHubName, + String privateLinkResourceName, Context context); /** * Get Private Link Hub Private Link Resource - * - *

Get private link resource in private link hub. - * + * + * Get private link resource in private link hub. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName The name of the private link hub. * @param privateLinkResourceName The name of the private link resource. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHubs.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHubs.java index 9b3e63f7d528..6906d721626b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHubs.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkHubs.java @@ -8,11 +8,13 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of PrivateLinkHubs. */ +/** + * Resource collection API of PrivateLinkHubs. + */ public interface PrivateLinkHubs { /** * Returns a list of privateLinkHubs in a resource group. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -23,7 +25,7 @@ public interface PrivateLinkHubs { /** * Returns a list of privateLinkHubs in a resource group. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -35,7 +37,7 @@ public interface PrivateLinkHubs { /** * Gets a privateLinkHub. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @param context The context to associate with this operation. @@ -44,12 +46,12 @@ public interface PrivateLinkHubs { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a privateLinkHub along with {@link Response}. */ - Response getByResourceGroupWithResponse( - String resourceGroupName, String privateLinkHubName, Context context); + Response getByResourceGroupWithResponse(String resourceGroupName, String privateLinkHubName, + Context context); /** * Gets a privateLinkHub. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -61,7 +63,7 @@ Response getByResourceGroupWithResponse( /** * Deletes a privateLinkHub. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -72,7 +74,7 @@ Response getByResourceGroupWithResponse( /** * Deletes a privateLinkHub. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub. * @param context The context to associate with this operation. @@ -84,7 +86,7 @@ Response getByResourceGroupWithResponse( /** * Returns a list of privateLinkHubs 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 list of privateLinkHubs as paginated response with {@link PagedIterable}. @@ -93,7 +95,7 @@ Response getByResourceGroupWithResponse( /** * Returns a list of privateLinkHubs 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. @@ -104,7 +106,7 @@ Response getByResourceGroupWithResponse( /** * Gets a privateLinkHub. - * + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -115,7 +117,7 @@ Response getByResourceGroupWithResponse( /** * Gets a privateLinkHub. - * + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -127,7 +129,7 @@ Response getByResourceGroupWithResponse( /** * Deletes a privateLinkHub. - * + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -137,7 +139,7 @@ Response getByResourceGroupWithResponse( /** * Deletes a privateLinkHub. - * + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -148,7 +150,7 @@ Response getByResourceGroupWithResponse( /** * Begins definition for a new PrivateLinkHub resource. - * + * * @param name resource name. * @return the first stage of the new PrivateLinkHub definition. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkResource.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkResource.java index 77c7609e2212..391028877765 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkResource.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkResource.java @@ -6,39 +6,41 @@ import com.azure.resourcemanager.synapse.fluent.models.PrivateLinkResourceInner; -/** An immutable client-side representation of PrivateLinkResource. */ +/** + * An immutable client-side representation of PrivateLinkResource. + */ public interface PrivateLinkResource { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the properties property: The private link resource properties. - * + * * @return the properties value. */ PrivateLinkResourceProperties properties(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.PrivateLinkResourceInner object. - * + * * @return the inner object. */ PrivateLinkResourceInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkResourceListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkResourceListResult.java index 8fb34f8fd609..e7253857435c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkResourceListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkResourceListResult.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** A list of private link resources. */ +/** + * A list of private link resources. + */ @Immutable public final class PrivateLinkResourceListResult { /* @@ -24,13 +26,15 @@ public final class PrivateLinkResourceListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; - /** Creates an instance of PrivateLinkResourceListResult class. */ + /** + * Creates an instance of PrivateLinkResourceListResult class. + */ public PrivateLinkResourceListResult() { } /** * Get the value property: Array of results. - * + * * @return the value value. */ public List value() { @@ -39,7 +43,7 @@ public List value() { /** * Get the nextLink property: Link to retrieve next page of results. - * + * * @return the nextLink value. */ public String nextLink() { @@ -48,7 +52,7 @@ public String nextLink() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkResourceProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkResourceProperties.java index 9387fd8a3f73..cb48f8a4e41b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkResourceProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkResourceProperties.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Properties of a private link resource. */ +/** + * Properties of a private link resource. + */ @Immutable public final class PrivateLinkResourceProperties { /* @@ -29,13 +31,15 @@ public final class PrivateLinkResourceProperties { @JsonProperty(value = "requiredZoneNames", access = JsonProperty.Access.WRITE_ONLY) private List requiredZoneNames; - /** Creates an instance of PrivateLinkResourceProperties class. */ + /** + * Creates an instance of PrivateLinkResourceProperties class. + */ public PrivateLinkResourceProperties() { } /** * Get the groupId property: The private link resource group id. - * + * * @return the groupId value. */ public String groupId() { @@ -44,7 +48,7 @@ public String groupId() { /** * Get the requiredMembers property: The private link resource required member names. - * + * * @return the requiredMembers value. */ public List requiredMembers() { @@ -53,7 +57,7 @@ public List requiredMembers() { /** * Get the requiredZoneNames property: Required DNS zone names of the the private link resource. - * + * * @return the requiredZoneNames value. */ public List requiredZoneNames() { @@ -62,7 +66,7 @@ public List requiredZoneNames() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkResources.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkResources.java index 0157a7d40aa6..bc9d6cd5bb18 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkResources.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkResources.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The list Kusto Private Link Resources operation response. */ +/** + * The list Kusto Private Link Resources operation response. + */ @Fluent public final class PrivateLinkResources { /* @@ -18,13 +20,15 @@ public final class PrivateLinkResources { @JsonProperty(value = "value") private List value; - /** Creates an instance of PrivateLinkResources class. */ + /** + * Creates an instance of PrivateLinkResources class. + */ public PrivateLinkResources() { } /** * Get the value property: The list of Kusto Private Link Resources. - * + * * @return the value value. */ public List value() { @@ -33,7 +37,7 @@ public List value() { /** * Set the value property: The list of Kusto Private Link Resources. - * + * * @param value the value value to set. * @return the PrivateLinkResources object itself. */ @@ -44,7 +48,7 @@ public PrivateLinkResources withValue(List v /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkResourcesOperations.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkResourcesOperations.java index 5cf65afeadc4..10525800d43c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkResourcesOperations.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkResourcesOperations.java @@ -8,13 +8,15 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of PrivateLinkResourcesOperations. */ +/** + * Resource collection API of PrivateLinkResourcesOperations. + */ public interface PrivateLinkResourcesOperations { /** * Private Link Resources - * - *

Get all private link resources for a workspaces. - * + * + * Get all private link resources for a workspaces. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -26,9 +28,9 @@ public interface PrivateLinkResourcesOperations { /** * Private Link Resources - * - *

Get all private link resources for a workspaces. - * + * + * Get all private link resources for a workspaces. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -41,9 +43,9 @@ public interface PrivateLinkResourcesOperations { /** * Get Private Link Resource - * - *

Get private link resource in workspace. - * + * + * Get private link resource in workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateLinkResourceName The name of the private link resource. @@ -53,14 +55,14 @@ public interface PrivateLinkResourcesOperations { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return private link resource in workspace along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, String workspaceName, String privateLinkResourceName, Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + String privateLinkResourceName, Context context); /** * Get Private Link Resource - * - *

Get private link resource in workspace. - * + * + * Get private link resource in workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateLinkResourceName The name of the private link resource. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkServiceConnectionState.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkServiceConnectionState.java index 1d69e61e5d58..3d4e3ee04e9a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkServiceConnectionState.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PrivateLinkServiceConnectionState.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Connection state details of the private endpoint. */ +/** + * Connection state details of the private endpoint. + */ @Fluent public final class PrivateLinkServiceConnectionState { /* @@ -28,13 +30,15 @@ public final class PrivateLinkServiceConnectionState { @JsonProperty(value = "actionsRequired", access = JsonProperty.Access.WRITE_ONLY) private String actionsRequired; - /** Creates an instance of PrivateLinkServiceConnectionState class. */ + /** + * Creates an instance of PrivateLinkServiceConnectionState class. + */ public PrivateLinkServiceConnectionState() { } /** * Get the status property: The private link service connection status. - * + * * @return the status value. */ public String status() { @@ -43,7 +47,7 @@ public String status() { /** * Set the status property: The private link service connection status. - * + * * @param status the status value to set. * @return the PrivateLinkServiceConnectionState object itself. */ @@ -54,7 +58,7 @@ public PrivateLinkServiceConnectionState withStatus(String status) { /** * Get the description property: The private link service connection description. - * + * * @return the description value. */ public String description() { @@ -63,7 +67,7 @@ public String description() { /** * Set the description property: The private link service connection description. - * + * * @param description the description value to set. * @return the PrivateLinkServiceConnectionState object itself. */ @@ -74,7 +78,7 @@ public PrivateLinkServiceConnectionState withDescription(String description) { /** * Get the actionsRequired property: The actions required for private link service connection. - * + * * @return the actionsRequired value. */ public String actionsRequired() { @@ -83,7 +87,7 @@ public String actionsRequired() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ProvisioningState.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ProvisioningState.java index b8d767af0113..7faf4a98b6d5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ProvisioningState.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ProvisioningState.java @@ -8,26 +8,38 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Resource provisioning state. */ +/** + * Resource provisioning state. + */ public final class ProvisioningState extends ExpandableStringEnum { - /** Static value Provisioning for ProvisioningState. */ + /** + * Static value Provisioning for ProvisioningState. + */ public static final ProvisioningState PROVISIONING = fromString("Provisioning"); - /** Static value Succeeded for ProvisioningState. */ + /** + * Static value Succeeded for ProvisioningState. + */ public static final ProvisioningState SUCCEEDED = fromString("Succeeded"); - /** Static value Deleting for ProvisioningState. */ + /** + * Static value Deleting for ProvisioningState. + */ public static final ProvisioningState DELETING = fromString("Deleting"); - /** Static value Failed for ProvisioningState. */ + /** + * Static value Failed for ProvisioningState. + */ public static final ProvisioningState FAILED = fromString("Failed"); - /** Static value DeleteError for ProvisioningState. */ + /** + * Static value DeleteError for ProvisioningState. + */ public static final ProvisioningState DELETE_ERROR = fromString("DeleteError"); /** * Creates a new instance of ProvisioningState value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -36,7 +48,7 @@ public ProvisioningState() { /** * Creates or finds a ProvisioningState from its string representation. - * + * * @param name a name to look for. * @return the corresponding ProvisioningState. */ @@ -47,7 +59,7 @@ public static ProvisioningState fromString(String name) { /** * Gets known ProvisioningState values. - * + * * @return known ProvisioningState values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PurviewConfiguration.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PurviewConfiguration.java index 20df919c1f53..cbe23a594e88 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PurviewConfiguration.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/PurviewConfiguration.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Purview Configuration. */ +/** + * Purview Configuration. + */ @Fluent public final class PurviewConfiguration { /* @@ -16,13 +18,15 @@ public final class PurviewConfiguration { @JsonProperty(value = "purviewResourceId") private String purviewResourceId; - /** Creates an instance of PurviewConfiguration class. */ + /** + * Creates an instance of PurviewConfiguration class. + */ public PurviewConfiguration() { } /** * Get the purviewResourceId property: Purview Resource ID. - * + * * @return the purviewResourceId value. */ public String purviewResourceId() { @@ -31,7 +35,7 @@ public String purviewResourceId() { /** * Set the purviewResourceId property: Purview Resource ID. - * + * * @param purviewResourceId the purviewResourceId value to set. * @return the PurviewConfiguration object itself. */ @@ -42,7 +46,7 @@ public PurviewConfiguration withPurviewResourceId(String purviewResourceId) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/QueryMetricUnit.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/QueryMetricUnit.java index 6af20367b441..249ce24ac339 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/QueryMetricUnit.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/QueryMetricUnit.java @@ -7,18 +7,28 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -/** The unit of measurement. */ +/** + * The unit of measurement. + */ public enum QueryMetricUnit { - /** Enum value percentage. */ + /** + * Enum value percentage. + */ PERCENTAGE("percentage"), - /** Enum value KB. */ + /** + * Enum value KB. + */ KB("KB"), - /** Enum value microseconds. */ + /** + * Enum value microseconds. + */ MICROSECONDS("microseconds"); - /** The actual serialized value for a QueryMetricUnit instance. */ + /** + * The actual serialized value for a QueryMetricUnit instance. + */ private final String value; QueryMetricUnit(String value) { @@ -27,7 +37,7 @@ public enum QueryMetricUnit { /** * Parses a serialized value to a QueryMetricUnit instance. - * + * * @param value the serialized value to parse. * @return the parsed QueryMetricUnit object, or null if unable to parse. */ @@ -45,7 +55,9 @@ public static QueryMetricUnit fromString(String value) { return null; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @JsonValue @Override public String toString() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReadOnlyFollowingDatabase.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReadOnlyFollowingDatabase.java index 970040a16ce4..99106517fcf6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReadOnlyFollowingDatabase.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReadOnlyFollowingDatabase.java @@ -12,7 +12,9 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import java.time.Duration; -/** Class representing a read only following database. */ +/** + * Class representing a read only following database. + */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "kind") @JsonTypeName("ReadOnlyFollowing") @Fluent @@ -23,20 +25,24 @@ public final class ReadOnlyFollowingDatabase extends DatabaseInner { @JsonProperty(value = "properties") private ReadOnlyFollowingDatabaseProperties innerProperties; - /** Creates an instance of ReadOnlyFollowingDatabase class. */ + /** + * Creates an instance of ReadOnlyFollowingDatabase class. + */ public ReadOnlyFollowingDatabase() { } /** * Get the innerProperties property: The database properties. - * + * * @return the innerProperties value. */ private ReadOnlyFollowingDatabaseProperties innerProperties() { return this.innerProperties; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public ReadOnlyFollowingDatabase withLocation(String location) { super.withLocation(location); @@ -45,7 +51,7 @@ public ReadOnlyFollowingDatabase withLocation(String location) { /** * Get the provisioningState property: The provisioned state of the resource. - * + * * @return the provisioningState value. */ public ResourceProvisioningState provisioningState() { @@ -55,7 +61,7 @@ public ResourceProvisioningState provisioningState() { /** * Get the softDeletePeriod property: The time the data should be kept before it stops being accessible to queries * in TimeSpan. - * + * * @return the softDeletePeriod value. */ public Duration softDeletePeriod() { @@ -64,7 +70,7 @@ public Duration softDeletePeriod() { /** * Get the hotCachePeriod property: The time the data should be kept in cache for fast queries in TimeSpan. - * + * * @return the hotCachePeriod value. */ public Duration hotCachePeriod() { @@ -73,7 +79,7 @@ public Duration hotCachePeriod() { /** * Set the hotCachePeriod property: The time the data should be kept in cache for fast queries in TimeSpan. - * + * * @param hotCachePeriod the hotCachePeriod value to set. * @return the ReadOnlyFollowingDatabase object itself. */ @@ -87,7 +93,7 @@ public ReadOnlyFollowingDatabase withHotCachePeriod(Duration hotCachePeriod) { /** * Get the statistics property: The statistics of the database. - * + * * @return the statistics value. */ public DatabaseStatistics statistics() { @@ -96,7 +102,7 @@ public DatabaseStatistics statistics() { /** * Get the leaderClusterResourceId property: The name of the leader cluster. - * + * * @return the leaderClusterResourceId value. */ public String leaderClusterResourceId() { @@ -105,7 +111,7 @@ public String leaderClusterResourceId() { /** * Get the attachedDatabaseConfigurationName property: The name of the attached database configuration cluster. - * + * * @return the attachedDatabaseConfigurationName value. */ public String attachedDatabaseConfigurationName() { @@ -114,7 +120,7 @@ public String attachedDatabaseConfigurationName() { /** * Get the principalsModificationKind property: The principals modification kind of the database. - * + * * @return the principalsModificationKind value. */ public PrincipalsModificationKind principalsModificationKind() { @@ -123,7 +129,7 @@ public PrincipalsModificationKind principalsModificationKind() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ @Override diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReadWriteDatabase.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReadWriteDatabase.java index c4d19d0778d3..d5a3a8e0ff52 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReadWriteDatabase.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReadWriteDatabase.java @@ -12,7 +12,9 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import java.time.Duration; -/** Class representing a read write database. */ +/** + * Class representing a read write database. + */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "kind") @JsonTypeName("ReadWrite") @Fluent @@ -23,20 +25,24 @@ public final class ReadWriteDatabase extends DatabaseInner { @JsonProperty(value = "properties") private ReadWriteDatabaseProperties innerProperties; - /** Creates an instance of ReadWriteDatabase class. */ + /** + * Creates an instance of ReadWriteDatabase class. + */ public ReadWriteDatabase() { } /** * Get the innerProperties property: The database properties. - * + * * @return the innerProperties value. */ private ReadWriteDatabaseProperties innerProperties() { return this.innerProperties; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public ReadWriteDatabase withLocation(String location) { super.withLocation(location); @@ -45,7 +51,7 @@ public ReadWriteDatabase withLocation(String location) { /** * Get the provisioningState property: The provisioned state of the resource. - * + * * @return the provisioningState value. */ public ResourceProvisioningState provisioningState() { @@ -55,7 +61,7 @@ public ResourceProvisioningState provisioningState() { /** * Get the softDeletePeriod property: The time the data should be kept before it stops being accessible to queries * in TimeSpan. - * + * * @return the softDeletePeriod value. */ public Duration softDeletePeriod() { @@ -65,7 +71,7 @@ public Duration softDeletePeriod() { /** * Set the softDeletePeriod property: The time the data should be kept before it stops being accessible to queries * in TimeSpan. - * + * * @param softDeletePeriod the softDeletePeriod value to set. * @return the ReadWriteDatabase object itself. */ @@ -79,7 +85,7 @@ public ReadWriteDatabase withSoftDeletePeriod(Duration softDeletePeriod) { /** * Get the hotCachePeriod property: The time the data should be kept in cache for fast queries in TimeSpan. - * + * * @return the hotCachePeriod value. */ public Duration hotCachePeriod() { @@ -88,7 +94,7 @@ public Duration hotCachePeriod() { /** * Set the hotCachePeriod property: The time the data should be kept in cache for fast queries in TimeSpan. - * + * * @param hotCachePeriod the hotCachePeriod value to set. * @return the ReadWriteDatabase object itself. */ @@ -102,7 +108,7 @@ public ReadWriteDatabase withHotCachePeriod(Duration hotCachePeriod) { /** * Get the statistics property: The statistics of the database. - * + * * @return the statistics value. */ public DatabaseStatistics statistics() { @@ -111,7 +117,7 @@ public DatabaseStatistics statistics() { /** * Get the isFollowed property: Indicates whether the database is followed. - * + * * @return the isFollowed value. */ public Boolean isFollowed() { @@ -120,7 +126,7 @@ public Boolean isFollowed() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ @Override diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Reason.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Reason.java index efe516eec85c..99f339c295eb 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Reason.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Reason.java @@ -8,17 +8,23 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Message providing the reason why the given name is invalid. */ +/** + * Message providing the reason why the given name is invalid. + */ public final class Reason extends ExpandableStringEnum { - /** Static value Invalid for Reason. */ + /** + * Static value Invalid for Reason. + */ public static final Reason INVALID = fromString("Invalid"); - /** Static value AlreadyExists for Reason. */ + /** + * Static value AlreadyExists for Reason. + */ public static final Reason ALREADY_EXISTS = fromString("AlreadyExists"); /** * Creates a new instance of Reason value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,7 +33,7 @@ public Reason() { /** * Creates or finds a Reason from its string representation. - * + * * @param name a name to look for. * @return the corresponding Reason. */ @@ -38,7 +44,7 @@ public static Reason fromString(String name) { /** * Gets known Reason values. - * + * * @return known Reason values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RecommendedSensitivityLabelUpdate.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RecommendedSensitivityLabelUpdate.java index 9de78818431d..9cb5230df3a7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RecommendedSensitivityLabelUpdate.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RecommendedSensitivityLabelUpdate.java @@ -9,7 +9,9 @@ import com.azure.resourcemanager.synapse.fluent.models.RecommendedSensitivityLabelUpdateProperties; import com.fasterxml.jackson.annotation.JsonProperty; -/** A recommended sensitivity label update operation. */ +/** + * A recommended sensitivity label update operation. + */ @Fluent public final class RecommendedSensitivityLabelUpdate extends ProxyResource { /* @@ -18,13 +20,15 @@ public final class RecommendedSensitivityLabelUpdate extends ProxyResource { @JsonProperty(value = "properties") private RecommendedSensitivityLabelUpdateProperties innerProperties; - /** Creates an instance of RecommendedSensitivityLabelUpdate class. */ + /** + * Creates an instance of RecommendedSensitivityLabelUpdate class. + */ public RecommendedSensitivityLabelUpdate() { } /** * Get the innerProperties property: Resource properties. - * + * * @return the innerProperties value. */ private RecommendedSensitivityLabelUpdateProperties innerProperties() { @@ -33,7 +37,7 @@ private RecommendedSensitivityLabelUpdateProperties innerProperties() { /** * Get the op property: The op property. - * + * * @return the op value. */ public RecommendedSensitivityLabelUpdateKind op() { @@ -42,7 +46,7 @@ public RecommendedSensitivityLabelUpdateKind op() { /** * Set the op property: The op property. - * + * * @param op the op value to set. * @return the RecommendedSensitivityLabelUpdate object itself. */ @@ -56,7 +60,7 @@ public RecommendedSensitivityLabelUpdate withOp(RecommendedSensitivityLabelUpdat /** * Get the schema property: Schema name of the column to update. - * + * * @return the schema value. */ public String schema() { @@ -65,7 +69,7 @@ public String schema() { /** * Set the schema property: Schema name of the column to update. - * + * * @param schema the schema value to set. * @return the RecommendedSensitivityLabelUpdate object itself. */ @@ -79,7 +83,7 @@ public RecommendedSensitivityLabelUpdate withSchema(String schema) { /** * Get the table property: Table name of the column to update. - * + * * @return the table value. */ public String table() { @@ -88,7 +92,7 @@ public String table() { /** * Set the table property: Table name of the column to update. - * + * * @param table the table value to set. * @return the RecommendedSensitivityLabelUpdate object itself. */ @@ -102,7 +106,7 @@ public RecommendedSensitivityLabelUpdate withTable(String table) { /** * Get the column property: Column name to update. - * + * * @return the column value. */ public String column() { @@ -111,7 +115,7 @@ public String column() { /** * Set the column property: Column name to update. - * + * * @param column the column value to set. * @return the RecommendedSensitivityLabelUpdate object itself. */ @@ -125,7 +129,7 @@ public RecommendedSensitivityLabelUpdate withColumn(String column) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RecommendedSensitivityLabelUpdateKind.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RecommendedSensitivityLabelUpdateKind.java index 01c8f0a718a9..10f8ce3c75d1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RecommendedSensitivityLabelUpdateKind.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RecommendedSensitivityLabelUpdateKind.java @@ -7,15 +7,23 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -/** Defines values for RecommendedSensitivityLabelUpdateKind. */ +/** + * Defines values for RecommendedSensitivityLabelUpdateKind. + */ public enum RecommendedSensitivityLabelUpdateKind { - /** Enum value enable. */ + /** + * Enum value enable. + */ ENABLE("enable"), - /** Enum value disable. */ + /** + * Enum value disable. + */ DISABLE("disable"); - /** The actual serialized value for a RecommendedSensitivityLabelUpdateKind instance. */ + /** + * The actual serialized value for a RecommendedSensitivityLabelUpdateKind instance. + */ private final String value; RecommendedSensitivityLabelUpdateKind(String value) { @@ -24,7 +32,7 @@ public enum RecommendedSensitivityLabelUpdateKind { /** * Parses a serialized value to a RecommendedSensitivityLabelUpdateKind instance. - * + * * @param value the serialized value to parse. * @return the parsed RecommendedSensitivityLabelUpdateKind object, or null if unable to parse. */ @@ -42,7 +50,9 @@ public static RecommendedSensitivityLabelUpdateKind fromString(String value) { return null; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @JsonValue @Override public String toString() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RecommendedSensitivityLabelUpdateList.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RecommendedSensitivityLabelUpdateList.java index d35ada3858a3..1dc4bfbd6431 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RecommendedSensitivityLabelUpdateList.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RecommendedSensitivityLabelUpdateList.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** A list of recommended sensitivity label update operations. */ +/** + * A list of recommended sensitivity label update operations. + */ @Fluent public final class RecommendedSensitivityLabelUpdateList { /* @@ -17,13 +19,15 @@ public final class RecommendedSensitivityLabelUpdateList { @JsonProperty(value = "operations") private List operations; - /** Creates an instance of RecommendedSensitivityLabelUpdateList class. */ + /** + * Creates an instance of RecommendedSensitivityLabelUpdateList class. + */ public RecommendedSensitivityLabelUpdateList() { } /** * Get the operations property: The operations property. - * + * * @return the operations value. */ public List operations() { @@ -32,7 +36,7 @@ public List operations() { /** * Set the operations property: The operations property. - * + * * @param operations the operations value to set. * @return the RecommendedSensitivityLabelUpdateList object itself. */ @@ -43,7 +47,7 @@ public RecommendedSensitivityLabelUpdateList withOperations(List value() { @@ -39,7 +43,7 @@ public List value() { /** * Get the nextLink property: Link to retrieve next page of results. - * + * * @return the nextLink value. */ public String nextLink() { @@ -48,7 +52,7 @@ public String nextLink() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReplaceAllFirewallRulesOperationResponse.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReplaceAllFirewallRulesOperationResponse.java index a9eb8b54b515..0ebe41235de1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReplaceAllFirewallRulesOperationResponse.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReplaceAllFirewallRulesOperationResponse.java @@ -6,11 +6,13 @@ import com.azure.resourcemanager.synapse.fluent.models.ReplaceAllFirewallRulesOperationResponseInner; -/** An immutable client-side representation of ReplaceAllFirewallRulesOperationResponse. */ +/** + * An immutable client-side representation of ReplaceAllFirewallRulesOperationResponse. + */ public interface ReplaceAllFirewallRulesOperationResponse { /** * Gets the operationId property: The operation ID. - * + * * @return the operationId value. */ String operationId(); @@ -18,7 +20,7 @@ public interface ReplaceAllFirewallRulesOperationResponse { /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.ReplaceAllFirewallRulesOperationResponseInner * object. - * + * * @return the inner object. */ ReplaceAllFirewallRulesOperationResponseInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReplaceAllIpFirewallRulesRequest.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReplaceAllIpFirewallRulesRequest.java index 9dec794df00b..b1d004cdb483 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReplaceAllIpFirewallRulesRequest.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReplaceAllIpFirewallRulesRequest.java @@ -10,7 +10,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; -/** Replace all IP firewall rules request. */ +/** + * Replace all IP firewall rules request. + */ @Fluent public final class ReplaceAllIpFirewallRulesRequest { /* @@ -20,13 +22,15 @@ public final class ReplaceAllIpFirewallRulesRequest { @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map ipFirewallRules; - /** Creates an instance of ReplaceAllIpFirewallRulesRequest class. */ + /** + * Creates an instance of ReplaceAllIpFirewallRulesRequest class. + */ public ReplaceAllIpFirewallRulesRequest() { } /** * Get the ipFirewallRules property: IP firewall rule properties. - * + * * @return the ipFirewallRules value. */ public Map ipFirewallRules() { @@ -35,7 +39,7 @@ public Map ipFirewallRules() { /** * Set the ipFirewallRules property: IP firewall rule properties. - * + * * @param ipFirewallRules the ipFirewallRules value to set. * @return the ReplaceAllIpFirewallRulesRequest object itself. */ @@ -46,19 +50,16 @@ public ReplaceAllIpFirewallRulesRequest withIpFirewallRules(Map { - if (e != null) { - e.validate(); - } - }); + ipFirewallRules().values().forEach(e -> { + if (e != null) { + e.validate(); + } + }); } } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReplicationLink.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReplicationLink.java index e362805d954e..37ab2e25aae9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReplicationLink.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReplicationLink.java @@ -7,32 +7,34 @@ import com.azure.resourcemanager.synapse.fluent.models.ReplicationLinkInner; import java.time.OffsetDateTime; -/** An immutable client-side representation of ReplicationLink. */ +/** + * An immutable client-side representation of ReplicationLink. + */ public interface ReplicationLink { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the location property: Location of the workspace that contains this firewall rule. - * + * * @return the location value. */ String location(); @@ -40,77 +42,77 @@ public interface ReplicationLink { /** * Gets the isTerminationAllowed property: Legacy value indicating whether termination is allowed. Currently always * returns true. - * + * * @return the isTerminationAllowed value. */ Boolean isTerminationAllowed(); /** * Gets the replicationMode property: Replication mode of this replication link. - * + * * @return the replicationMode value. */ String replicationMode(); /** * Gets the partnerServer property: The name of the workspace hosting the partner Sql pool. - * + * * @return the partnerServer value. */ String partnerServer(); /** * Gets the partnerDatabase property: The name of the partner Sql pool. - * + * * @return the partnerDatabase value. */ String partnerDatabase(); /** * Gets the partnerLocation property: The Azure Region of the partner Sql pool. - * + * * @return the partnerLocation value. */ String partnerLocation(); /** * Gets the role property: The role of the Sql pool in the replication link. - * + * * @return the role value. */ ReplicationRole role(); /** * Gets the partnerRole property: The role of the partner Sql pool in the replication link. - * + * * @return the partnerRole value. */ ReplicationRole partnerRole(); /** * Gets the startTime property: The start time for the replication link. - * + * * @return the startTime value. */ OffsetDateTime startTime(); /** * Gets the percentComplete property: The percentage of seeding complete for the replication link. - * + * * @return the percentComplete value. */ Integer percentComplete(); /** * Gets the replicationState property: The replication state for the replication link. - * + * * @return the replicationState value. */ ReplicationState replicationState(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.ReplicationLinkInner object. - * + * * @return the inner object. */ ReplicationLinkInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReplicationLinkListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReplicationLinkListResult.java index ca3f42b93d1d..d401b2763547 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReplicationLinkListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReplicationLinkListResult.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Represents the response to a List Sql pool replication link request. */ +/** + * Represents the response to a List Sql pool replication link request. + */ @Fluent public final class ReplicationLinkListResult { /* @@ -24,13 +26,15 @@ public final class ReplicationLinkListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; - /** Creates an instance of ReplicationLinkListResult class. */ + /** + * Creates an instance of ReplicationLinkListResult class. + */ public ReplicationLinkListResult() { } /** * Get the value property: The list of Sql pool replication links housed in the Sql pool. - * + * * @return the value value. */ public List value() { @@ -39,7 +43,7 @@ public List value() { /** * Set the value property: The list of Sql pool replication links housed in the Sql pool. - * + * * @param value the value value to set. * @return the ReplicationLinkListResult object itself. */ @@ -50,7 +54,7 @@ public ReplicationLinkListResult withValue(List value) { /** * Get the nextLink property: Link to retrieve next page of results. - * + * * @return the nextLink value. */ public String nextLink() { @@ -59,7 +63,7 @@ public String nextLink() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReplicationRole.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReplicationRole.java index fd8a672fe692..e506be3bb617 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReplicationRole.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReplicationRole.java @@ -7,24 +7,38 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -/** The role of the Sql pool in the replication link. */ +/** + * The role of the Sql pool in the replication link. + */ public enum ReplicationRole { - /** Enum value Primary. */ + /** + * Enum value Primary. + */ PRIMARY("Primary"), - /** Enum value Secondary. */ + /** + * Enum value Secondary. + */ SECONDARY("Secondary"), - /** Enum value NonReadableSecondary. */ + /** + * Enum value NonReadableSecondary. + */ NON_READABLE_SECONDARY("NonReadableSecondary"), - /** Enum value Source. */ + /** + * Enum value Source. + */ SOURCE("Source"), - /** Enum value Copy. */ + /** + * Enum value Copy. + */ COPY("Copy"); - /** The actual serialized value for a ReplicationRole instance. */ + /** + * The actual serialized value for a ReplicationRole instance. + */ private final String value; ReplicationRole(String value) { @@ -33,7 +47,7 @@ public enum ReplicationRole { /** * Parses a serialized value to a ReplicationRole instance. - * + * * @param value the serialized value to parse. * @return the parsed ReplicationRole object, or null if unable to parse. */ @@ -51,7 +65,9 @@ public static ReplicationRole fromString(String value) { return null; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @JsonValue @Override public String toString() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReplicationState.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReplicationState.java index 8163f1bc5c8a..c4dc1b336edc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReplicationState.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ReplicationState.java @@ -8,23 +8,33 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The replication state for the replication link. */ +/** + * The replication state for the replication link. + */ public final class ReplicationState extends ExpandableStringEnum { - /** Static value PENDING for ReplicationState. */ + /** + * Static value PENDING for ReplicationState. + */ public static final ReplicationState PENDING = fromString("PENDING"); - /** Static value SEEDING for ReplicationState. */ + /** + * Static value SEEDING for ReplicationState. + */ public static final ReplicationState SEEDING = fromString("SEEDING"); - /** Static value CATCH_UP for ReplicationState. */ + /** + * Static value CATCH_UP for ReplicationState. + */ public static final ReplicationState CATCH_UP = fromString("CATCH_UP"); - /** Static value SUSPENDED for ReplicationState. */ + /** + * Static value SUSPENDED for ReplicationState. + */ public static final ReplicationState SUSPENDED = fromString("SUSPENDED"); /** * Creates a new instance of ReplicationState value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -33,7 +43,7 @@ public ReplicationState() { /** * Creates or finds a ReplicationState from its string representation. - * + * * @param name a name to look for. * @return the corresponding ReplicationState. */ @@ -44,7 +54,7 @@ public static ReplicationState fromString(String name) { /** * Gets known ReplicationState values. - * + * * @return known ReplicationState values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ResourceIdentityType.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ResourceIdentityType.java index b02f9cee3f14..88e012355155 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ResourceIdentityType.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ResourceIdentityType.java @@ -7,18 +7,28 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -/** The type of managed identity for the workspace. */ +/** + * The type of managed identity for the workspace. + */ public enum ResourceIdentityType { - /** Enum value None. */ + /** + * Enum value None. + */ NONE("None"), - /** Enum value SystemAssigned. */ + /** + * Enum value SystemAssigned. + */ SYSTEM_ASSIGNED("SystemAssigned"), - /** Enum value SystemAssigned,UserAssigned. */ + /** + * Enum value SystemAssigned,UserAssigned. + */ SYSTEM_ASSIGNED_USER_ASSIGNED("SystemAssigned,UserAssigned"); - /** The actual serialized value for a ResourceIdentityType instance. */ + /** + * The actual serialized value for a ResourceIdentityType instance. + */ private final String value; ResourceIdentityType(String value) { @@ -27,7 +37,7 @@ public enum ResourceIdentityType { /** * Parses a serialized value to a ResourceIdentityType instance. - * + * * @param value the serialized value to parse. * @return the parsed ResourceIdentityType object, or null if unable to parse. */ @@ -45,7 +55,9 @@ public static ResourceIdentityType fromString(String value) { return null; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @JsonValue @Override public String toString() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ResourceMoveDefinition.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ResourceMoveDefinition.java deleted file mode 100644 index 77cc7bc63a4a..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ResourceMoveDefinition.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** Contains the information necessary to perform a resource move (rename). */ -@Fluent -public final class ResourceMoveDefinition { - /* - * The target ID for the resource - */ - @JsonProperty(value = "id", required = true) - private String id; - - /** Creates an instance of ResourceMoveDefinition class. */ - public ResourceMoveDefinition() { - } - - /** - * Get the id property: The target ID for the resource. - * - * @return the id value. - */ - public String id() { - return this.id; - } - - /** - * Set the id property: The target ID for the resource. - * - * @param id the id value to set. - * @return the ResourceMoveDefinition object itself. - */ - public ResourceMoveDefinition withId(String id) { - this.id = id; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (id() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property id in model ResourceMoveDefinition")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ResourceMoveDefinition.class); -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ResourceProvisioningState.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ResourceProvisioningState.java index 13b514ef3c27..5c2ea3cc3a0a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ResourceProvisioningState.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ResourceProvisioningState.java @@ -8,32 +8,48 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The provisioned state of the resource. */ +/** + * The provisioned state of the resource. + */ public final class ResourceProvisioningState extends ExpandableStringEnum { - /** Static value Running for ResourceProvisioningState. */ + /** + * Static value Running for ResourceProvisioningState. + */ public static final ResourceProvisioningState RUNNING = fromString("Running"); - /** Static value Creating for ResourceProvisioningState. */ + /** + * Static value Creating for ResourceProvisioningState. + */ public static final ResourceProvisioningState CREATING = fromString("Creating"); - /** Static value Deleting for ResourceProvisioningState. */ + /** + * Static value Deleting for ResourceProvisioningState. + */ public static final ResourceProvisioningState DELETING = fromString("Deleting"); - /** Static value Succeeded for ResourceProvisioningState. */ + /** + * Static value Succeeded for ResourceProvisioningState. + */ public static final ResourceProvisioningState SUCCEEDED = fromString("Succeeded"); - /** Static value Failed for ResourceProvisioningState. */ + /** + * Static value Failed for ResourceProvisioningState. + */ public static final ResourceProvisioningState FAILED = fromString("Failed"); - /** Static value Moving for ResourceProvisioningState. */ + /** + * Static value Moving for ResourceProvisioningState. + */ public static final ResourceProvisioningState MOVING = fromString("Moving"); - /** Static value Canceled for ResourceProvisioningState. */ + /** + * Static value Canceled for ResourceProvisioningState. + */ public static final ResourceProvisioningState CANCELED = fromString("Canceled"); /** * Creates a new instance of ResourceProvisioningState value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -42,7 +58,7 @@ public ResourceProvisioningState() { /** * Creates or finds a ResourceProvisioningState from its string representation. - * + * * @param name a name to look for. * @return the corresponding ResourceProvisioningState. */ @@ -53,7 +69,7 @@ public static ResourceProvisioningState fromString(String name) { /** * Gets known ResourceProvisioningState values. - * + * * @return known ResourceProvisioningState values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RestorableDroppedSqlPool.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RestorableDroppedSqlPool.java index ce89af5ba277..81336f14e940 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RestorableDroppedSqlPool.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RestorableDroppedSqlPool.java @@ -7,95 +7,97 @@ import com.azure.resourcemanager.synapse.fluent.models.RestorableDroppedSqlPoolInner; import java.time.OffsetDateTime; -/** An immutable client-side representation of RestorableDroppedSqlPool. */ +/** + * An immutable client-side representation of RestorableDroppedSqlPool. + */ public interface RestorableDroppedSqlPool { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the location property: The geo-location where the resource lives. - * + * * @return the location value. */ String location(); /** * Gets the databaseName property: The name of the database. - * + * * @return the databaseName value. */ String databaseName(); /** * Gets the edition property: The edition of the database. - * + * * @return the edition value. */ String edition(); /** * Gets the maxSizeBytes property: The max size in bytes of the database. - * + * * @return the maxSizeBytes value. */ String maxSizeBytes(); /** * Gets the serviceLevelObjective property: The service level objective name of the database. - * + * * @return the serviceLevelObjective value. */ String serviceLevelObjective(); /** * Gets the elasticPoolName property: The elastic pool name of the database. - * + * * @return the elasticPoolName value. */ String elasticPoolName(); /** * Gets the creationDate property: The creation date of the database (ISO8601 format). - * + * * @return the creationDate value. */ OffsetDateTime creationDate(); /** * Gets the deletionDate property: The deletion date of the database (ISO8601 format). - * + * * @return the deletionDate value. */ OffsetDateTime deletionDate(); /** * Gets the earliestRestoreDate property: The earliest restore date of the database (ISO8601 format). - * + * * @return the earliestRestoreDate value. */ OffsetDateTime earliestRestoreDate(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.RestorableDroppedSqlPoolInner object. - * + * * @return the inner object. */ RestorableDroppedSqlPoolInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RestorableDroppedSqlPoolListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RestorableDroppedSqlPoolListResult.java index 85a806407812..f4b3c2563446 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RestorableDroppedSqlPoolListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RestorableDroppedSqlPoolListResult.java @@ -10,7 +10,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The response to a list restorable dropped Sql pools request. */ +/** + * The response to a list restorable dropped Sql pools request. + */ @Fluent public final class RestorableDroppedSqlPoolListResult { /* @@ -19,13 +21,15 @@ public final class RestorableDroppedSqlPoolListResult { @JsonProperty(value = "value", required = true) private List value; - /** Creates an instance of RestorableDroppedSqlPoolListResult class. */ + /** + * Creates an instance of RestorableDroppedSqlPoolListResult class. + */ public RestorableDroppedSqlPoolListResult() { } /** * Get the value property: A list of restorable dropped Sql pools. - * + * * @return the value value. */ public List value() { @@ -34,7 +38,7 @@ public List value() { /** * Set the value property: A list of restorable dropped Sql pools. - * + * * @param value the value value to set. * @return the RestorableDroppedSqlPoolListResult object itself. */ @@ -45,15 +49,13 @@ public RestorableDroppedSqlPoolListResult withValue(List e.validate()); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RestorableDroppedSqlPools.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RestorableDroppedSqlPools.java index 47a9d28796ac..9af138894ff5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RestorableDroppedSqlPools.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RestorableDroppedSqlPools.java @@ -8,31 +8,33 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of RestorableDroppedSqlPools. */ +/** + * Resource collection API of RestorableDroppedSqlPools. + */ public interface RestorableDroppedSqlPools { /** * Gets a deleted sql pool that can be restored. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param restorableDroppedSqlPoolId The id of the deleted Sql Pool in the form of - * sqlPoolName,deletionTimeInFileTimeFormat. + * sqlPoolName,deletionTimeInFileTimeFormat. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a deleted sql pool that can be restored along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, String workspaceName, String restorableDroppedSqlPoolId, Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + String restorableDroppedSqlPoolId, Context context); /** * Gets a deleted sql pool that can be restored. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param restorableDroppedSqlPoolId The id of the deleted Sql Pool in the form of - * sqlPoolName,deletionTimeInFileTimeFormat. + * sqlPoolName,deletionTimeInFileTimeFormat. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -42,7 +44,7 @@ Response getWithResponse( /** * Gets a list of deleted Sql pools that can be restored. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -54,7 +56,7 @@ Response getWithResponse( /** * Gets a list of deleted Sql pools that can be restored. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -63,6 +65,6 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of deleted Sql pools that can be restored as paginated response with {@link PagedIterable}. */ - PagedIterable listByWorkspace( - String resourceGroupName, String workspaceName, Context context); + PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, + Context context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RestorePoint.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RestorePoint.java index 6380c87e3651..b5393eb1ad34 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RestorePoint.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RestorePoint.java @@ -7,67 +7,69 @@ import com.azure.resourcemanager.synapse.fluent.models.RestorePointInner; import java.time.OffsetDateTime; -/** An immutable client-side representation of RestorePoint. */ +/** + * An immutable client-side representation of RestorePoint. + */ public interface RestorePoint { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the location property: Resource location. - * + * * @return the location value. */ String location(); /** * Gets the restorePointType property: The type of restore point. - * + * * @return the restorePointType value. */ RestorePointType restorePointType(); /** * Gets the earliestRestoreDate property: The earliest time to which this database can be restored. - * + * * @return the earliestRestoreDate value. */ OffsetDateTime earliestRestoreDate(); /** * Gets the restorePointCreationDate property: The time the backup was taken. - * + * * @return the restorePointCreationDate value. */ OffsetDateTime restorePointCreationDate(); /** * Gets the restorePointLabel property: The label of restore point for backup request by user. - * + * * @return the restorePointLabel value. */ String restorePointLabel(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.RestorePointInner object. - * + * * @return the inner object. */ RestorePointInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RestorePointListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RestorePointListResult.java index 4d1ce31c2a38..9203cbd07520 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RestorePointListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RestorePointListResult.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** A list of long term retention backups. */ +/** + * A list of long term retention backups. + */ @Immutable public final class RestorePointListResult { /* @@ -24,13 +26,15 @@ public final class RestorePointListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; - /** Creates an instance of RestorePointListResult class. */ + /** + * Creates an instance of RestorePointListResult class. + */ public RestorePointListResult() { } /** * Get the value property: Array of results. - * + * * @return the value value. */ public List value() { @@ -39,7 +43,7 @@ public List value() { /** * Get the nextLink property: Link to retrieve next page of results. - * + * * @return the nextLink value. */ public String nextLink() { @@ -48,7 +52,7 @@ public String nextLink() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RestorePointType.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RestorePointType.java index b9aa31fc79fc..01fe716620d6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RestorePointType.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/RestorePointType.java @@ -7,15 +7,23 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -/** The type of restore point. */ +/** + * The type of restore point. + */ public enum RestorePointType { - /** Enum value CONTINUOUS. */ + /** + * Enum value CONTINUOUS. + */ CONTINUOUS("CONTINUOUS"), - /** Enum value DISCRETE. */ + /** + * Enum value DISCRETE. + */ DISCRETE("DISCRETE"); - /** The actual serialized value for a RestorePointType instance. */ + /** + * The actual serialized value for a RestorePointType instance. + */ private final String value; RestorePointType(String value) { @@ -24,7 +32,7 @@ public enum RestorePointType { /** * Parses a serialized value to a RestorePointType instance. - * + * * @param value the serialized value to parse. * @return the parsed RestorePointType object, or null if unable to parse. */ @@ -42,7 +50,9 @@ public static RestorePointType fromString(String value) { return null; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @JsonValue @Override public String toString() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SecretBase.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SecretBase.java index 7c246f2c069c..1aa7d365013c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SecretBase.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SecretBase.java @@ -9,23 +9,27 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; -/** The base definition of a secret type. */ +/** + * The base definition of a secret type. + */ @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", defaultImpl = SecretBase.class) @JsonTypeName("SecretBase") -@JsonSubTypes({@JsonSubTypes.Type(name = "SecureString", value = SecureString.class)}) +@JsonSubTypes({ @JsonSubTypes.Type(name = "SecureString", value = SecureString.class) }) @Immutable public class SecretBase { - /** Creates an instance of SecretBase class. */ + /** + * Creates an instance of SecretBase class. + */ public SecretBase() { } /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SecureString.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SecureString.java index f07c30b37175..288dd1df7903 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SecureString.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SecureString.java @@ -24,13 +24,15 @@ public final class SecureString extends SecretBase { @JsonProperty(value = "value", required = true) private String value; - /** Creates an instance of SecureString class. */ + /** + * Creates an instance of SecureString class. + */ public SecureString() { } /** * Get the value property: Value of secure string. - * + * * @return the value value. */ public String value() { @@ -39,7 +41,7 @@ public String value() { /** * Set the value property: Value of secure string. - * + * * @param value the value value to set. * @return the SecureString object itself. */ @@ -50,16 +52,15 @@ public SecureString withValue(String value) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ @Override public void validate() { super.validate(); if (value() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property value in model SecureString")); + throw LOGGER.logExceptionAsError( + new IllegalArgumentException("Missing required property value in model SecureString")); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SecurityAlertPolicyName.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SecurityAlertPolicyName.java index eccfac99f998..72fec415b785 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SecurityAlertPolicyName.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SecurityAlertPolicyName.java @@ -8,14 +8,18 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for SecurityAlertPolicyName. */ +/** + * Defines values for SecurityAlertPolicyName. + */ public final class SecurityAlertPolicyName extends ExpandableStringEnum { - /** Static value default for SecurityAlertPolicyName. */ + /** + * Static value default for SecurityAlertPolicyName. + */ public static final SecurityAlertPolicyName DEFAULT = fromString("default"); /** * Creates a new instance of SecurityAlertPolicyName value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -24,7 +28,7 @@ public SecurityAlertPolicyName() { /** * Creates or finds a SecurityAlertPolicyName from its string representation. - * + * * @param name a name to look for. * @return the corresponding SecurityAlertPolicyName. */ @@ -35,7 +39,7 @@ public static SecurityAlertPolicyName fromString(String name) { /** * Gets known SecurityAlertPolicyName values. - * + * * @return known SecurityAlertPolicyName values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SecurityAlertPolicyNameAutoGenerated.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SecurityAlertPolicyNameAutoGenerated.java index 631fae746d10..74607e485aec 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SecurityAlertPolicyNameAutoGenerated.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SecurityAlertPolicyNameAutoGenerated.java @@ -8,15 +8,19 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for SecurityAlertPolicyNameAutoGenerated. */ +/** + * Defines values for SecurityAlertPolicyNameAutoGenerated. + */ public final class SecurityAlertPolicyNameAutoGenerated extends ExpandableStringEnum { - /** Static value Default for SecurityAlertPolicyNameAutoGenerated. */ + /** + * Static value Default for SecurityAlertPolicyNameAutoGenerated. + */ public static final SecurityAlertPolicyNameAutoGenerated DEFAULT = fromString("Default"); /** * Creates a new instance of SecurityAlertPolicyNameAutoGenerated value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -25,7 +29,7 @@ public SecurityAlertPolicyNameAutoGenerated() { /** * Creates or finds a SecurityAlertPolicyNameAutoGenerated from its string representation. - * + * * @param name a name to look for. * @return the corresponding SecurityAlertPolicyNameAutoGenerated. */ @@ -36,7 +40,7 @@ public static SecurityAlertPolicyNameAutoGenerated fromString(String name) { /** * Gets known SecurityAlertPolicyNameAutoGenerated values. - * + * * @return known SecurityAlertPolicyNameAutoGenerated values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SecurityAlertPolicyState.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SecurityAlertPolicyState.java index 856f41ff5be9..7acfadd19a66 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SecurityAlertPolicyState.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SecurityAlertPolicyState.java @@ -12,16 +12,24 @@ * specific Sql pool. */ public enum SecurityAlertPolicyState { - /** Enum value New. */ + /** + * Enum value New. + */ NEW("New"), - /** Enum value Enabled. */ + /** + * Enum value Enabled. + */ ENABLED("Enabled"), - /** Enum value Disabled. */ + /** + * Enum value Disabled. + */ DISABLED("Disabled"); - /** The actual serialized value for a SecurityAlertPolicyState instance. */ + /** + * The actual serialized value for a SecurityAlertPolicyState instance. + */ private final String value; SecurityAlertPolicyState(String value) { @@ -30,7 +38,7 @@ public enum SecurityAlertPolicyState { /** * Parses a serialized value to a SecurityAlertPolicyState instance. - * + * * @param value the serialized value to parse. * @return the parsed SecurityAlertPolicyState object, or null if unable to parse. */ @@ -48,7 +56,9 @@ public static SecurityAlertPolicyState fromString(String value) { return null; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @JsonValue @Override public String toString() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SelfHostedIntegrationRuntime.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SelfHostedIntegrationRuntime.java index 1a66e316412c..69607bf34f57 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SelfHostedIntegrationRuntime.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SelfHostedIntegrationRuntime.java @@ -10,7 +10,9 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; -/** Self-hosted integration runtime. */ +/** + * Self-hosted integration runtime. + */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("SelfHosted") @Fluent @@ -22,21 +24,25 @@ public final class SelfHostedIntegrationRuntime extends IntegrationRuntime { @JsonProperty(value = "typeProperties") private SelfHostedIntegrationRuntimeTypeProperties innerTypeProperties; - /** Creates an instance of SelfHostedIntegrationRuntime class. */ + /** + * Creates an instance of SelfHostedIntegrationRuntime class. + */ public SelfHostedIntegrationRuntime() { } /** - * Get the innerTypeProperties property: When this property is not null, means this is a linked integration runtime. - * The property is used to access original integration runtime. - * + * Get the innerTypeProperties property: When this property is not null, means this is a linked integration + * runtime. The property is used to access original integration runtime. + * * @return the innerTypeProperties value. */ private SelfHostedIntegrationRuntimeTypeProperties innerTypeProperties() { return this.innerTypeProperties; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public SelfHostedIntegrationRuntime withDescription(String description) { super.withDescription(description); @@ -45,7 +51,7 @@ public SelfHostedIntegrationRuntime withDescription(String description) { /** * Get the linkedInfo property: Linked integration runtime type from data factory. - * + * * @return the linkedInfo value. */ public LinkedIntegrationRuntimeType linkedInfo() { @@ -54,7 +60,7 @@ public LinkedIntegrationRuntimeType linkedInfo() { /** * Set the linkedInfo property: Linked integration runtime type from data factory. - * + * * @param linkedInfo the linkedInfo value to set. * @return the SelfHostedIntegrationRuntime object itself. */ @@ -68,7 +74,7 @@ public SelfHostedIntegrationRuntime withLinkedInfo(LinkedIntegrationRuntimeType /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ @Override diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SelfHostedIntegrationRuntimeNode.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SelfHostedIntegrationRuntimeNode.java index 0989524a4587..19ba4d997d84 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SelfHostedIntegrationRuntimeNode.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SelfHostedIntegrationRuntimeNode.java @@ -8,60 +8,62 @@ import java.time.OffsetDateTime; import java.util.Map; -/** An immutable client-side representation of SelfHostedIntegrationRuntimeNode. */ +/** + * An immutable client-side representation of SelfHostedIntegrationRuntimeNode. + */ public interface SelfHostedIntegrationRuntimeNode { /** * Gets the nodeName property: Name of the integration runtime node. - * + * * @return the nodeName value. */ String nodeName(); /** * Gets the machineName property: Machine name of the integration runtime node. - * + * * @return the machineName value. */ String machineName(); /** * Gets the hostServiceUri property: URI for the host machine of the integration runtime. - * + * * @return the hostServiceUri value. */ String hostServiceUri(); /** * Gets the status property: Status of the integration runtime node. - * + * * @return the status value. */ SelfHostedIntegrationRuntimeNodeStatus status(); /** * Gets the capabilities property: The integration runtime capabilities dictionary. - * + * * @return the capabilities value. */ Map capabilities(); /** * Gets the versionStatus property: Status of the integration runtime node version. - * + * * @return the versionStatus value. */ String versionStatus(); /** * Gets the version property: Version of the integration runtime node. - * + * * @return the version value. */ String version(); /** * Gets the registerTime property: The time at which the integration runtime node was registered in ISO8601 format. - * + * * @return the registerTime value. */ OffsetDateTime registerTime(); @@ -69,49 +71,49 @@ public interface SelfHostedIntegrationRuntimeNode { /** * Gets the lastConnectTime property: The most recent time at which the integration runtime was connected in ISO8601 * format. - * + * * @return the lastConnectTime value. */ OffsetDateTime lastConnectTime(); /** * Gets the expiryTime property: The time at which the integration runtime will expire in ISO8601 format. - * + * * @return the expiryTime value. */ OffsetDateTime expiryTime(); /** * Gets the lastStartTime property: The time the node last started up. - * + * * @return the lastStartTime value. */ OffsetDateTime lastStartTime(); /** * Gets the lastStopTime property: The integration runtime node last stop time. - * + * * @return the lastStopTime value. */ OffsetDateTime lastStopTime(); /** * Gets the lastUpdateResult property: The result of the last integration runtime node update. - * + * * @return the lastUpdateResult value. */ IntegrationRuntimeUpdateResult lastUpdateResult(); /** * Gets the lastStartUpdateTime property: The last time for the integration runtime node update start. - * + * * @return the lastStartUpdateTime value. */ OffsetDateTime lastStartUpdateTime(); /** * Gets the lastEndUpdateTime property: The last time for the integration runtime node update end. - * + * * @return the lastEndUpdateTime value. */ OffsetDateTime lastEndUpdateTime(); @@ -119,35 +121,35 @@ public interface SelfHostedIntegrationRuntimeNode { /** * Gets the isActiveDispatcher property: Indicates whether this node is the active dispatcher for integration * runtime requests. - * + * * @return the isActiveDispatcher value. */ Boolean isActiveDispatcher(); /** * Gets the concurrentJobsLimit property: Maximum concurrent jobs on the integration runtime node. - * + * * @return the concurrentJobsLimit value. */ Integer concurrentJobsLimit(); /** * Gets the maxConcurrentJobs property: The maximum concurrent jobs in this integration runtime. - * + * * @return the maxConcurrentJobs value. */ Integer maxConcurrentJobs(); /** * Gets the additionalProperties property: Properties of Self-hosted integration runtime node. - * + * * @return the additionalProperties value. */ Map additionalProperties(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.SelfHostedIntegrationRuntimeNodeInner object. - * + * * @return the inner object. */ SelfHostedIntegrationRuntimeNodeInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SelfHostedIntegrationRuntimeNodeStatus.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SelfHostedIntegrationRuntimeNodeStatus.java index 372e7bfe6a82..eac3e732389d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SelfHostedIntegrationRuntimeNodeStatus.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SelfHostedIntegrationRuntimeNodeStatus.java @@ -8,33 +8,49 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Status of the integration runtime node. */ +/** + * Status of the integration runtime node. + */ public final class SelfHostedIntegrationRuntimeNodeStatus extends ExpandableStringEnum { - /** Static value NeedRegistration for SelfHostedIntegrationRuntimeNodeStatus. */ + /** + * Static value NeedRegistration for SelfHostedIntegrationRuntimeNodeStatus. + */ public static final SelfHostedIntegrationRuntimeNodeStatus NEED_REGISTRATION = fromString("NeedRegistration"); - /** Static value Online for SelfHostedIntegrationRuntimeNodeStatus. */ + /** + * Static value Online for SelfHostedIntegrationRuntimeNodeStatus. + */ public static final SelfHostedIntegrationRuntimeNodeStatus ONLINE = fromString("Online"); - /** Static value Limited for SelfHostedIntegrationRuntimeNodeStatus. */ + /** + * Static value Limited for SelfHostedIntegrationRuntimeNodeStatus. + */ public static final SelfHostedIntegrationRuntimeNodeStatus LIMITED = fromString("Limited"); - /** Static value Offline for SelfHostedIntegrationRuntimeNodeStatus. */ + /** + * Static value Offline for SelfHostedIntegrationRuntimeNodeStatus. + */ public static final SelfHostedIntegrationRuntimeNodeStatus OFFLINE = fromString("Offline"); - /** Static value Upgrading for SelfHostedIntegrationRuntimeNodeStatus. */ + /** + * Static value Upgrading for SelfHostedIntegrationRuntimeNodeStatus. + */ public static final SelfHostedIntegrationRuntimeNodeStatus UPGRADING = fromString("Upgrading"); - /** Static value Initializing for SelfHostedIntegrationRuntimeNodeStatus. */ + /** + * Static value Initializing for SelfHostedIntegrationRuntimeNodeStatus. + */ public static final SelfHostedIntegrationRuntimeNodeStatus INITIALIZING = fromString("Initializing"); - /** Static value InitializeFailed for SelfHostedIntegrationRuntimeNodeStatus. */ + /** + * Static value InitializeFailed for SelfHostedIntegrationRuntimeNodeStatus. + */ public static final SelfHostedIntegrationRuntimeNodeStatus INITIALIZE_FAILED = fromString("InitializeFailed"); /** * Creates a new instance of SelfHostedIntegrationRuntimeNodeStatus value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -43,7 +59,7 @@ public SelfHostedIntegrationRuntimeNodeStatus() { /** * Creates or finds a SelfHostedIntegrationRuntimeNodeStatus from its string representation. - * + * * @param name a name to look for. * @return the corresponding SelfHostedIntegrationRuntimeNodeStatus. */ @@ -54,7 +70,7 @@ public static SelfHostedIntegrationRuntimeNodeStatus fromString(String name) { /** * Gets known SelfHostedIntegrationRuntimeNodeStatus values. - * + * * @return known SelfHostedIntegrationRuntimeNodeStatus values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SelfHostedIntegrationRuntimeStatus.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SelfHostedIntegrationRuntimeStatus.java index e11a9b26cb64..2fb204b0e15c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SelfHostedIntegrationRuntimeStatus.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SelfHostedIntegrationRuntimeStatus.java @@ -15,7 +15,9 @@ import java.util.List; import java.util.Map; -/** Self-hosted integration runtime status. */ +/** + * Self-hosted integration runtime status. + */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("SelfHosted") @Fluent @@ -24,16 +26,18 @@ public final class SelfHostedIntegrationRuntimeStatus extends IntegrationRuntime * Self-hosted integration runtime status type properties. */ @JsonProperty(value = "typeProperties", required = true) - private SelfHostedIntegrationRuntimeStatusTypeProperties innerTypeProperties = - new SelfHostedIntegrationRuntimeStatusTypeProperties(); + private SelfHostedIntegrationRuntimeStatusTypeProperties innerTypeProperties + = new SelfHostedIntegrationRuntimeStatusTypeProperties(); - /** Creates an instance of SelfHostedIntegrationRuntimeStatus class. */ + /** + * Creates an instance of SelfHostedIntegrationRuntimeStatus class. + */ public SelfHostedIntegrationRuntimeStatus() { } /** * Get the innerTypeProperties property: Self-hosted integration runtime status type properties. - * + * * @return the innerTypeProperties value. */ private SelfHostedIntegrationRuntimeStatusTypeProperties innerTypeProperties() { @@ -42,7 +46,7 @@ private SelfHostedIntegrationRuntimeStatusTypeProperties innerTypeProperties() { /** * Get the createTime property: The time at which the integration runtime was created, in ISO8601 format. - * + * * @return the createTime value. */ public OffsetDateTime createTime() { @@ -51,7 +55,7 @@ public OffsetDateTime createTime() { /** * Get the taskQueueId property: The task queue id of the integration runtime. - * + * * @return the taskQueueId value. */ public String taskQueueId() { @@ -60,19 +64,18 @@ public String taskQueueId() { /** * Get the nodeCommunicationChannelEncryptionMode property: The node communication Channel encryption mode. - * + * * @return the nodeCommunicationChannelEncryptionMode value. */ public String nodeCommunicationChannelEncryptionMode() { - return this.innerTypeProperties() == null - ? null + return this.innerTypeProperties() == null ? null : this.innerTypeProperties().nodeCommunicationChannelEncryptionMode(); } /** * Get the internalChannelEncryption property: It is used to set the encryption mode for node-node communication * channel (when more than 2 self-hosted integration runtime nodes exist). - * + * * @return the internalChannelEncryption value. */ public IntegrationRuntimeInternalChannelEncryptionMode internalChannelEncryption() { @@ -81,7 +84,7 @@ public IntegrationRuntimeInternalChannelEncryptionMode internalChannelEncryption /** * Get the version property: Version of the integration runtime. - * + * * @return the version value. */ public String version() { @@ -90,7 +93,7 @@ public String version() { /** * Get the nodes property: The list of nodes for this integration runtime. - * + * * @return the nodes value. */ public List nodes() { @@ -99,7 +102,7 @@ public List nodes() { /** * Set the nodes property: The list of nodes for this integration runtime. - * + * * @param nodes the nodes value to set. * @return the SelfHostedIntegrationRuntimeStatus object itself. */ @@ -114,7 +117,7 @@ public SelfHostedIntegrationRuntimeStatus withNodes(List capabilities() { @@ -151,7 +154,7 @@ public Map capabilities() { /** * Get the serviceUrls property: The URLs for the services used in integration runtime backend service. - * + * * @return the serviceUrls value. */ public List serviceUrls() { @@ -160,7 +163,7 @@ public List serviceUrls() { /** * Get the autoUpdate property: Whether Self-hosted integration runtime auto update has been turned on. - * + * * @return the autoUpdate value. */ public IntegrationRuntimeAutoUpdate autoUpdate() { @@ -169,7 +172,7 @@ public IntegrationRuntimeAutoUpdate autoUpdate() { /** * Get the versionStatus property: Status of the integration runtime version. - * + * * @return the versionStatus value. */ public String versionStatus() { @@ -179,7 +182,7 @@ public String versionStatus() { /** * Get the links property: The list of linked integration runtimes that are created to share with this integration * runtime. - * + * * @return the links value. */ public List links() { @@ -189,7 +192,7 @@ public List links() { /** * Set the links property: The list of linked integration runtimes that are created to share with this integration * runtime. - * + * * @param links the links value to set. * @return the SelfHostedIntegrationRuntimeStatus object itself. */ @@ -203,7 +206,7 @@ public SelfHostedIntegrationRuntimeStatus withLinks(List newerVersions() { @@ -262,7 +265,7 @@ public List newerVersions() { /** * Set the newerVersions property: The newer versions on download center. - * + * * @param newerVersions the newerVersions value to set. * @return the SelfHostedIntegrationRuntimeStatus object itself. */ @@ -276,7 +279,7 @@ public SelfHostedIntegrationRuntimeStatus withNewerVersions(List newerVe /** * Get the osType property: The osType property. - * + * * @return the osType value. */ public Integer osType() { @@ -285,7 +288,7 @@ public Integer osType() { /** * Get the targetFramework property: The targetFramework property. - * + * * @return the targetFramework value. */ public Integer targetFramework() { @@ -294,17 +297,15 @@ public Integer targetFramework() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ @Override public void validate() { super.validate(); if (innerTypeProperties() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property innerTypeProperties in model SelfHostedIntegrationRuntimeStatus")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property innerTypeProperties in model SelfHostedIntegrationRuntimeStatus")); } else { innerTypeProperties().validate(); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabel.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabel.java index 7a00187520ef..383184c07b9d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabel.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabel.java @@ -8,81 +8,83 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.synapse.fluent.models.SensitivityLabelInner; -/** An immutable client-side representation of SensitivityLabel. */ +/** + * An immutable client-side representation of SensitivityLabel. + */ public interface SensitivityLabel { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the managedBy property: managed by. - * + * * @return the managedBy value. */ String managedBy(); /** * Gets the schemaName property: The schema name. - * + * * @return the schemaName value. */ String schemaName(); /** * Gets the tableName property: The table name. - * + * * @return the tableName value. */ String tableName(); /** * Gets the columnName property: The column name. - * + * * @return the columnName value. */ String columnName(); /** * Gets the labelName property: The label name. - * + * * @return the labelName value. */ String labelName(); /** * Gets the labelId property: The label ID. - * + * * @return the labelId value. */ String labelId(); /** * Gets the informationType property: The information type. - * + * * @return the informationType value. */ String informationType(); /** * Gets the informationTypeId property: The information type ID. - * + * * @return the informationTypeId value. */ String informationTypeId(); @@ -90,46 +92,56 @@ public interface SensitivityLabel { /** * Gets the isDisabled property: Is sensitivity recommendation disabled. Applicable for recommended sensitivity * label only. Specifies whether the sensitivity recommendation on this column is disabled (dismissed) or not. - * + * * @return the isDisabled value. */ Boolean isDisabled(); /** * Gets the rank property: The rank property. - * + * * @return the rank value. */ SensitivityLabelRank rank(); /** * Gets the name of the resource group. - * + * * @return the name of the resource group. */ String resourceGroupName(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.SensitivityLabelInner object. - * + * * @return the inner object. */ SensitivityLabelInner innerModel(); - /** The entirety of the SensitivityLabel definition. */ + /** + * The entirety of the SensitivityLabel definition. + */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { } - /** The SensitivityLabel definition stages. */ + + /** + * The SensitivityLabel definition stages. + */ interface DefinitionStages { - /** The first stage of the SensitivityLabel definition. */ + /** + * The first stage of the SensitivityLabel definition. + */ interface Blank extends WithParentResource { } - /** The stage of the SensitivityLabel definition allowing to specify parent resource. */ + + /** + * The stage of the SensitivityLabel definition allowing to specify parent resource. + */ interface WithParentResource { /** * Specifies resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -138,175 +150,199 @@ interface WithParentResource { * @param columnName The name of the column. * @return the next definition stage. */ - WithCreate withExistingColumn( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName); + WithCreate withExistingColumn(String resourceGroupName, String workspaceName, String sqlPoolName, + String schemaName, String tableName, String columnName); } + /** * The stage of the SensitivityLabel definition which contains all the minimum required properties for the * resource to be created, but also allows for any other optional properties to be specified. */ - interface WithCreate - extends DefinitionStages.WithLabelName, - DefinitionStages.WithLabelId, - DefinitionStages.WithInformationType, - DefinitionStages.WithInformationTypeId, - DefinitionStages.WithRank { + interface WithCreate extends DefinitionStages.WithLabelName, DefinitionStages.WithLabelId, + DefinitionStages.WithInformationType, DefinitionStages.WithInformationTypeId, DefinitionStages.WithRank { /** * Executes the create request. - * + * * @return the created resource. */ SensitivityLabel create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ SensitivityLabel create(Context context); } - /** The stage of the SensitivityLabel definition allowing to specify labelName. */ + + /** + * The stage of the SensitivityLabel definition allowing to specify labelName. + */ interface WithLabelName { /** * Specifies the labelName property: The label name.. - * + * * @param labelName The label name. * @return the next definition stage. */ WithCreate withLabelName(String labelName); } - /** The stage of the SensitivityLabel definition allowing to specify labelId. */ + + /** + * The stage of the SensitivityLabel definition allowing to specify labelId. + */ interface WithLabelId { /** * Specifies the labelId property: The label ID.. - * + * * @param labelId The label ID. * @return the next definition stage. */ WithCreate withLabelId(String labelId); } - /** The stage of the SensitivityLabel definition allowing to specify informationType. */ + + /** + * The stage of the SensitivityLabel definition allowing to specify informationType. + */ interface WithInformationType { /** * Specifies the informationType property: The information type.. - * + * * @param informationType The information type. * @return the next definition stage. */ WithCreate withInformationType(String informationType); } - /** The stage of the SensitivityLabel definition allowing to specify informationTypeId. */ + + /** + * The stage of the SensitivityLabel definition allowing to specify informationTypeId. + */ interface WithInformationTypeId { /** * Specifies the informationTypeId property: The information type ID.. - * + * * @param informationTypeId The information type ID. * @return the next definition stage. */ WithCreate withInformationTypeId(String informationTypeId); } - /** The stage of the SensitivityLabel definition allowing to specify rank. */ + + /** + * The stage of the SensitivityLabel definition allowing to specify rank. + */ interface WithRank { /** * Specifies the rank property: The rank property.. - * + * * @param rank The rank property. * @return the next definition stage. */ WithCreate withRank(SensitivityLabelRank rank); } } + /** * Begins update for the SensitivityLabel resource. - * + * * @return the stage of resource update. */ SensitivityLabel.Update update(); - /** The template for SensitivityLabel update. */ - interface Update - extends UpdateStages.WithLabelName, - UpdateStages.WithLabelId, - UpdateStages.WithInformationType, - UpdateStages.WithInformationTypeId, - UpdateStages.WithRank { + /** + * The template for SensitivityLabel update. + */ + interface Update extends UpdateStages.WithLabelName, UpdateStages.WithLabelId, UpdateStages.WithInformationType, + UpdateStages.WithInformationTypeId, UpdateStages.WithRank { /** * Executes the update request. - * + * * @return the updated resource. */ SensitivityLabel apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ SensitivityLabel apply(Context context); } - /** The SensitivityLabel update stages. */ + + /** + * The SensitivityLabel update stages. + */ interface UpdateStages { - /** The stage of the SensitivityLabel update allowing to specify labelName. */ + /** + * The stage of the SensitivityLabel update allowing to specify labelName. + */ interface WithLabelName { /** * Specifies the labelName property: The label name.. - * + * * @param labelName The label name. * @return the next definition stage. */ Update withLabelName(String labelName); } - /** The stage of the SensitivityLabel update allowing to specify labelId. */ + + /** + * The stage of the SensitivityLabel update allowing to specify labelId. + */ interface WithLabelId { /** * Specifies the labelId property: The label ID.. - * + * * @param labelId The label ID. * @return the next definition stage. */ Update withLabelId(String labelId); } - /** The stage of the SensitivityLabel update allowing to specify informationType. */ + + /** + * The stage of the SensitivityLabel update allowing to specify informationType. + */ interface WithInformationType { /** * Specifies the informationType property: The information type.. - * + * * @param informationType The information type. * @return the next definition stage. */ Update withInformationType(String informationType); } - /** The stage of the SensitivityLabel update allowing to specify informationTypeId. */ + + /** + * The stage of the SensitivityLabel update allowing to specify informationTypeId. + */ interface WithInformationTypeId { /** * Specifies the informationTypeId property: The information type ID.. - * + * * @param informationTypeId The information type ID. * @return the next definition stage. */ Update withInformationTypeId(String informationTypeId); } - /** The stage of the SensitivityLabel update allowing to specify rank. */ + + /** + * The stage of the SensitivityLabel update allowing to specify rank. + */ interface WithRank { /** * Specifies the rank property: The rank property.. - * + * * @param rank The rank property. * @return the next definition stage. */ Update withRank(SensitivityLabelRank rank); } } + /** * Enables sensitivity recommendations on a given column (recommendations are enabled by default on all columns). - * + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -317,7 +353,7 @@ interface WithRank { /** * Enables sensitivity recommendations on a given column (recommendations are enabled by default on all columns). - * + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @@ -325,7 +361,7 @@ interface WithRank { /** * Disables sensitivity recommendations on a given column. - * + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -336,7 +372,7 @@ interface WithRank { /** * Disables sensitivity recommendations on a given column. - * + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelListResult.java index 769aa90581a1..8a18b47c0aa7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelListResult.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** A list of sensitivity labels. */ +/** + * A list of sensitivity labels. + */ @Immutable public final class SensitivityLabelListResult { /* @@ -24,13 +26,15 @@ public final class SensitivityLabelListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; - /** Creates an instance of SensitivityLabelListResult class. */ + /** + * Creates an instance of SensitivityLabelListResult class. + */ public SensitivityLabelListResult() { } /** * Get the value property: Array of results. - * + * * @return the value value. */ public List value() { @@ -39,7 +43,7 @@ public List value() { /** * Get the nextLink property: Link to retrieve next page of results. - * + * * @return the nextLink value. */ public String nextLink() { @@ -48,7 +52,7 @@ public String nextLink() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelRank.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelRank.java index 70049ee3d6f2..7c00695237ad 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelRank.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelRank.java @@ -7,24 +7,38 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -/** Defines values for SensitivityLabelRank. */ +/** + * Defines values for SensitivityLabelRank. + */ public enum SensitivityLabelRank { - /** Enum value None. */ + /** + * Enum value None. + */ NONE("None"), - /** Enum value Low. */ + /** + * Enum value Low. + */ LOW("Low"), - /** Enum value Medium. */ + /** + * Enum value Medium. + */ MEDIUM("Medium"), - /** Enum value High. */ + /** + * Enum value High. + */ HIGH("High"), - /** Enum value Critical. */ + /** + * Enum value Critical. + */ CRITICAL("Critical"); - /** The actual serialized value for a SensitivityLabelRank instance. */ + /** + * The actual serialized value for a SensitivityLabelRank instance. + */ private final String value; SensitivityLabelRank(String value) { @@ -33,7 +47,7 @@ public enum SensitivityLabelRank { /** * Parses a serialized value to a SensitivityLabelRank instance. - * + * * @param value the serialized value to parse. * @return the parsed SensitivityLabelRank object, or null if unable to parse. */ @@ -51,7 +65,9 @@ public static SensitivityLabelRank fromString(String value) { return null; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @JsonValue @Override public String toString() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelSource.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelSource.java index c64004260a3e..8d5658e9f60d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelSource.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelSource.java @@ -7,15 +7,23 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -/** Defines values for SensitivityLabelSource. */ +/** + * Defines values for SensitivityLabelSource. + */ public enum SensitivityLabelSource { - /** Enum value current. */ + /** + * Enum value current. + */ CURRENT("current"), - /** Enum value recommended. */ + /** + * Enum value recommended. + */ RECOMMENDED("recommended"); - /** The actual serialized value for a SensitivityLabelSource instance. */ + /** + * The actual serialized value for a SensitivityLabelSource instance. + */ private final String value; SensitivityLabelSource(String value) { @@ -24,7 +32,7 @@ public enum SensitivityLabelSource { /** * Parses a serialized value to a SensitivityLabelSource instance. - * + * * @param value the serialized value to parse. * @return the parsed SensitivityLabelSource object, or null if unable to parse. */ @@ -42,7 +50,9 @@ public static SensitivityLabelSource fromString(String value) { return null; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @JsonValue @Override public String toString() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelUpdate.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelUpdate.java index adf411f45786..c26a174698aa 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelUpdate.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelUpdate.java @@ -6,67 +6,69 @@ import com.azure.resourcemanager.synapse.fluent.models.SensitivityLabelUpdateInner; -/** An immutable client-side representation of SensitivityLabelUpdate. */ +/** + * An immutable client-side representation of SensitivityLabelUpdate. + */ public interface SensitivityLabelUpdate { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the op property: The op property. - * + * * @return the op value. */ SensitivityLabelUpdateKind op(); /** * Gets the schema property: Schema name of the column to update. - * + * * @return the schema value. */ String schema(); /** * Gets the table property: Table name of the column to update. - * + * * @return the table value. */ String table(); /** * Gets the column property: Column name to update. - * + * * @return the column value. */ String column(); /** * Gets the sensitivityLabel property: The sensitivity label information to apply on a column. - * + * * @return the sensitivityLabel value. */ SensitivityLabel sensitivityLabel(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.SensitivityLabelUpdateInner object. - * + * * @return the inner object. */ SensitivityLabelUpdateInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelUpdateKind.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelUpdateKind.java index af5c2673005d..a3bfb0f50101 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelUpdateKind.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelUpdateKind.java @@ -7,15 +7,23 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -/** Defines values for SensitivityLabelUpdateKind. */ +/** + * Defines values for SensitivityLabelUpdateKind. + */ public enum SensitivityLabelUpdateKind { - /** Enum value set. */ + /** + * Enum value set. + */ SET("set"), - /** Enum value remove. */ + /** + * Enum value remove. + */ REMOVE("remove"); - /** The actual serialized value for a SensitivityLabelUpdateKind instance. */ + /** + * The actual serialized value for a SensitivityLabelUpdateKind instance. + */ private final String value; SensitivityLabelUpdateKind(String value) { @@ -24,7 +32,7 @@ public enum SensitivityLabelUpdateKind { /** * Parses a serialized value to a SensitivityLabelUpdateKind instance. - * + * * @param value the serialized value to parse. * @return the parsed SensitivityLabelUpdateKind object, or null if unable to parse. */ @@ -42,7 +50,9 @@ public static SensitivityLabelUpdateKind fromString(String value) { return null; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @JsonValue @Override public String toString() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelUpdateList.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelUpdateList.java index 1e163c85ed93..125a075bf63d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelUpdateList.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SensitivityLabelUpdateList.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** A list of sensitivity label update operations. */ +/** + * A list of sensitivity label update operations. + */ @Fluent public final class SensitivityLabelUpdateList { /* @@ -18,13 +20,15 @@ public final class SensitivityLabelUpdateList { @JsonProperty(value = "operations") private List operations; - /** Creates an instance of SensitivityLabelUpdateList class. */ + /** + * Creates an instance of SensitivityLabelUpdateList class. + */ public SensitivityLabelUpdateList() { } /** * Get the operations property: The operations property. - * + * * @return the operations value. */ public List operations() { @@ -33,7 +37,7 @@ public List operations() { /** * Set the operations property: The operations property. - * + * * @param operations the operations value to set. * @return the SensitivityLabelUpdateList object itself. */ @@ -44,7 +48,7 @@ public SensitivityLabelUpdateList withOperations(ListThe recommended set of action groups to use is the following combination - this will audit all the queries and + * + * The recommended set of action groups to use is the following combination - this will audit all the queries and * stored procedures executed against the database, as well as successful and failed logins: - * - *

BATCH_COMPLETED_GROUP, SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, FAILED_DATABASE_AUTHENTICATION_GROUP. - * - *

This above combination is also the set that is configured by default when enabling auditing from the Azure + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing from the Azure * portal. - * - *

The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. - * Using unnecessary groups could lead to very large quantities of audit records): - * - *

APPLICATION_ROLE_CHANGE_PASSWORD_GROUP BACKUP_RESTORE_GROUP DATABASE_LOGOUT_GROUP DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP DATABASE_OBJECT_PERMISSION_CHANGE_GROUP DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP DATABASE_PRINCIPAL_CHANGE_GROUP DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP FAILED_DATABASE_AUTHENTICATION_GROUP SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP USER_CHANGE_PASSWORD_GROUP BATCH_STARTED_GROUP BATCH_COMPLETED_GROUP - * - *

These are groups that cover all sql statements and stored procedures executed against the database, and should + * + * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. Using + * unnecessary groups could lead to very large quantities of audit records): + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP + * BATCH_COMPLETED_GROUP + * + * These are groups that cover all sql statements and stored procedures executed against the database, and should * not be used in combination with other groups as this will result in duplicate audit logs. - * - *

For more information, see [Database-Level Audit Action + * + * For more information, see [Database-Level Audit Action * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - *

For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified - * for Server auditing policy). The supported actions to audit are: SELECT UPDATE INSERT DELETE EXECUTE RECEIVE + * + * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for + * Server auditing policy). The supported actions to audit are: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE * REFERENCES - * - *

The general form for defining an action to be audited is: {action} ON {object} BY {principal} - * - *

Note that <object> in the above format can refer to an object like a table, view, or stored procedure, - * or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} - * are used, respectively. - * - *

For example: SELECT on dbo.myTable by public SELECT on DATABASE::myDatabase by public SELECT on - * SCHEMA::mySchema by public - * - *

For more information, see [Database-Level Audit + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note that <object> in the above format can refer to an object like a table, view, or stored procedure, or + * an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are + * used, respectively. + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For more information, see [Database-Level Audit * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions). - * + * * @return the auditActionsAndGroups value. */ List auditActionsAndGroups(); /** * Gets the storageAccountSubscriptionId property: Specifies the blob storage subscription Id. - * + * * @return the storageAccountSubscriptionId value. */ UUID storageAccountSubscriptionId(); @@ -126,543 +155,696 @@ public interface ServerBlobAuditingPolicy { /** * Gets the isStorageSecondaryKeyInUse property: Specifies whether storageAccountAccessKey value is the storage's * secondary key. - * + * * @return the isStorageSecondaryKeyInUse value. */ Boolean isStorageSecondaryKeyInUse(); /** - * Gets the isAzureMonitorTargetEnabled property: Specifies whether audit events are sent to Azure Monitor. In order - * to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as true. - * - *

When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs - * category on the database should be also created. Note that for server level audit you should use the 'master' - * database as {databaseName}. - * - *

Diagnostic Settings URI format: PUT + * Gets the isAzureMonitorTargetEnabled property: Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as + * true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs + * category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - *

For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) or - * [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). - * + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * * @return the isAzureMonitorTargetEnabled value. */ Boolean isAzureMonitorTargetEnabled(); /** * Gets the queueDelayMs property: Specifies the amount of time in milliseconds that can elapse before audit actions - * are forced to be processed. The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. - * + * are forced to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. + * * @return the queueDelayMs value. */ Integer queueDelayMs(); /** * Gets the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, devops logs - * will be sent to Azure Monitor. In order to send the events to Azure Monitor, specify 'State' as 'Enabled', - * 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true - * - *

When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs + * will be sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' as true + * and 'IsDevopsAuditEnabled' as true + * + * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs * category on the master database should also be created. - * - *

Diagnostic Settings URI format: PUT + * + * Diagnostic Settings URI format: + * PUT * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - *

For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) or - * [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). - * + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * * @return the isDevopsAuditEnabled value. */ Boolean isDevopsAuditEnabled(); /** * Gets the name of the resource group. - * + * * @return the name of the resource group. */ String resourceGroupName(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.ServerBlobAuditingPolicyInner object. - * + * * @return the inner object. */ ServerBlobAuditingPolicyInner innerModel(); - /** The entirety of the ServerBlobAuditingPolicy definition. */ + /** + * The entirety of the ServerBlobAuditingPolicy definition. + */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { } - /** The ServerBlobAuditingPolicy definition stages. */ + + /** + * The ServerBlobAuditingPolicy definition stages. + */ interface DefinitionStages { - /** The first stage of the ServerBlobAuditingPolicy definition. */ + /** + * The first stage of the ServerBlobAuditingPolicy definition. + */ interface Blank extends WithParentResource { } - /** The stage of the ServerBlobAuditingPolicy definition allowing to specify parent resource. */ + + /** + * The stage of the ServerBlobAuditingPolicy definition allowing to specify parent resource. + */ interface WithParentResource { /** * Specifies resourceGroupName, workspaceName. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @return the next definition stage. */ WithCreate withExistingWorkspace(String resourceGroupName, String workspaceName); } + /** * The stage of the ServerBlobAuditingPolicy definition which contains all the minimum required properties for * the resource to be created, but also allows for any other optional properties to be specified. */ - interface WithCreate - extends DefinitionStages.WithState, - DefinitionStages.WithStorageEndpoint, - DefinitionStages.WithStorageAccountAccessKey, - DefinitionStages.WithRetentionDays, - DefinitionStages.WithAuditActionsAndGroups, - DefinitionStages.WithStorageAccountSubscriptionId, - DefinitionStages.WithIsStorageSecondaryKeyInUse, - DefinitionStages.WithIsAzureMonitorTargetEnabled, - DefinitionStages.WithQueueDelayMs, - DefinitionStages.WithIsDevopsAuditEnabled { + interface WithCreate extends DefinitionStages.WithState, DefinitionStages.WithStorageEndpoint, + DefinitionStages.WithStorageAccountAccessKey, DefinitionStages.WithRetentionDays, + DefinitionStages.WithAuditActionsAndGroups, DefinitionStages.WithStorageAccountSubscriptionId, + DefinitionStages.WithIsStorageSecondaryKeyInUse, DefinitionStages.WithIsAzureMonitorTargetEnabled, + DefinitionStages.WithQueueDelayMs, DefinitionStages.WithIsDevopsAuditEnabled { /** * Executes the create request. - * + * * @return the created resource. */ ServerBlobAuditingPolicy create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ ServerBlobAuditingPolicy create(Context context); } - /** The stage of the ServerBlobAuditingPolicy definition allowing to specify state. */ + + /** + * The stage of the ServerBlobAuditingPolicy definition allowing to specify state. + */ interface WithState { /** * Specifies the state property: Specifies the state of the policy. If state is Enabled, storageEndpoint or * isAzureMonitorTargetEnabled are required.. - * + * * @param state Specifies the state of the policy. If state is Enabled, storageEndpoint or - * isAzureMonitorTargetEnabled are required. + * isAzureMonitorTargetEnabled are required. * @return the next definition stage. */ WithCreate withState(BlobAuditingPolicyState state); } - /** The stage of the ServerBlobAuditingPolicy definition allowing to specify storageEndpoint. */ + + /** + * The stage of the ServerBlobAuditingPolicy definition allowing to specify storageEndpoint. + */ interface WithStorageEndpoint { /** * Specifies the storageEndpoint property: Specifies the blob storage endpoint (e.g. * https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or * isAzureMonitorTargetEnabled is required.. - * + * * @param storageEndpoint Specifies the blob storage endpoint (e.g. - * https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or - * isAzureMonitorTargetEnabled is required. + * https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or + * isAzureMonitorTargetEnabled is required. * @return the next definition stage. */ WithCreate withStorageEndpoint(String storageEndpoint); } - /** The stage of the ServerBlobAuditingPolicy definition allowing to specify storageAccountAccessKey. */ + + /** + * The stage of the ServerBlobAuditingPolicy definition allowing to specify storageAccountAccessKey. + */ interface WithStorageAccountAccessKey { /** * Specifies the storageAccountAccessKey property: Specifies the identifier key of the auditing storage - * account. If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey - * will use SQL server system-assigned managed identity to access the storage. Prerequisites for using - * managed identity authentication: 1. Assign SQL Server a system-assigned managed identity in Azure Active - * Directory (AAD). 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data - * Contributor' RBAC role to the server identity. For more information, see [Auditing to storage using - * Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355). - * - * @param storageAccountAccessKey Specifies the identifier key of the auditing storage account. If state is - * Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL - * server system-assigned managed identity to access the storage. Prerequisites for using managed - * identity authentication: 1. Assign SQL Server a system-assigned managed identity in Azure Active - * Directory (AAD). 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob - * Data Contributor' RBAC role to the server identity. For more information, see [Auditing to storage - * using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355). + * account. + * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use + * SQL server system-assigned managed identity to access the storage. + * Prerequisites for using managed identity authentication: + * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). + * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC + * role to the server identity. + * For more information, see [Auditing to storage using Managed Identity + * authentication](https://go.microsoft.com/fwlink/?linkid=2114355). + * + * @param storageAccountAccessKey Specifies the identifier key of the auditing storage account. + * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use + * SQL server system-assigned managed identity to access the storage. + * Prerequisites for using managed identity authentication: + * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). + * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC + * role to the server identity. + * For more information, see [Auditing to storage using Managed Identity + * authentication](https://go.microsoft.com/fwlink/?linkid=2114355). * @return the next definition stage. */ WithCreate withStorageAccountAccessKey(String storageAccountAccessKey); } - /** The stage of the ServerBlobAuditingPolicy definition allowing to specify retentionDays. */ + + /** + * The stage of the ServerBlobAuditingPolicy definition allowing to specify retentionDays. + */ interface WithRetentionDays { /** * Specifies the retentionDays property: Specifies the number of days to keep in the audit logs in the * storage account.. - * + * * @param retentionDays Specifies the number of days to keep in the audit logs in the storage account. * @return the next definition stage. */ WithCreate withRetentionDays(Integer retentionDays); } - /** The stage of the ServerBlobAuditingPolicy definition allowing to specify auditActionsAndGroups. */ + + /** + * The stage of the ServerBlobAuditingPolicy definition allowing to specify auditActionsAndGroups. + */ interface WithAuditActionsAndGroups { /** * Specifies the auditActionsAndGroups property: Specifies the Actions-Groups and Actions to audit. - * - *

The recommended set of action groups to use is the following combination - this will audit all the + * + * The recommended set of action groups to use is the following combination - this will audit all the * queries and stored procedures executed against the database, as well as successful and failed logins: - * - *

BATCH_COMPLETED_GROUP, SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, FAILED_DATABASE_AUTHENTICATION_GROUP. - * - *

This above combination is also the set that is configured by default when enabling auditing from the + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing from the * Azure portal. - * - *

The supported action groups to audit are (note: choose only specific groups that cover your auditing + * + * The supported action groups to audit are (note: choose only specific groups that cover your auditing * needs. Using unnecessary groups could lead to very large quantities of audit records): - * - *

APPLICATION_ROLE_CHANGE_PASSWORD_GROUP BACKUP_RESTORE_GROUP DATABASE_LOGOUT_GROUP - * DATABASE_OBJECT_CHANGE_GROUP DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP - * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP DATABASE_OPERATION_GROUP DATABASE_PERMISSION_CHANGE_GROUP - * DATABASE_PRINCIPAL_CHANGE_GROUP DATABASE_PRINCIPAL_IMPERSONATION_GROUP DATABASE_ROLE_MEMBER_CHANGE_GROUP - * FAILED_DATABASE_AUTHENTICATION_GROUP SCHEMA_OBJECT_ACCESS_GROUP SCHEMA_OBJECT_CHANGE_GROUP - * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP USER_CHANGE_PASSWORD_GROUP BATCH_STARTED_GROUP + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP * BATCH_COMPLETED_GROUP - * - *

These are groups that cover all sql statements and stored procedures executed against the database, - * and should not be used in combination with other groups as this will result in duplicate audit logs. - * - *

For more information, see [Database-Level Audit Action + * + * These are groups that cover all sql statements and stored procedures executed against the database, and + * should not be used in combination with other groups as this will result in duplicate audit logs. + * + * For more information, see [Database-Level Audit Action * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - *

For Database auditing policy, specific Actions can also be specified (note that Actions cannot be - * specified for Server auditing policy). The supported actions to audit are: SELECT UPDATE INSERT DELETE - * EXECUTE RECEIVE REFERENCES - * - *

The general form for defining an action to be audited is: {action} ON {object} BY {principal} - * - *

Note that <object> in the above format can refer to an object like a table, view, or stored + * + * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be + * specified for Server auditing policy). The supported actions to audit are: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE + * REFERENCES + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note that <object> in the above format can refer to an object like a table, view, or stored * procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and * SCHEMA::{schema_name} are used, respectively. - * - *

For example: SELECT on dbo.myTable by public SELECT on DATABASE::myDatabase by public SELECT on - * SCHEMA::mySchema by public - * - *

For more information, see [Database-Level Audit + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For more information, see [Database-Level Audit * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions). - * + * * @param auditActionsAndGroups Specifies the Actions-Groups and Actions to audit. - *

The recommended set of action groups to use is the following combination - this will audit all the - * queries and stored procedures executed against the database, as well as successful and failed logins: - *

BATCH_COMPLETED_GROUP, SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, - * FAILED_DATABASE_AUTHENTICATION_GROUP. - *

This above combination is also the set that is configured by default when enabling auditing from - * the Azure portal. - *

The supported action groups to audit are (note: choose only specific groups that cover your - * auditing needs. Using unnecessary groups could lead to very large quantities of audit records): - *

APPLICATION_ROLE_CHANGE_PASSWORD_GROUP BACKUP_RESTORE_GROUP DATABASE_LOGOUT_GROUP - * DATABASE_OBJECT_CHANGE_GROUP DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP - * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP DATABASE_OPERATION_GROUP DATABASE_PERMISSION_CHANGE_GROUP - * DATABASE_PRINCIPAL_CHANGE_GROUP DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP FAILED_DATABASE_AUTHENTICATION_GROUP SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP USER_CHANGE_PASSWORD_GROUP BATCH_STARTED_GROUP - * BATCH_COMPLETED_GROUP - *

These are groups that cover all sql statements and stored procedures executed against the - * database, and should not be used in combination with other groups as this will result in duplicate - * audit logs. - *

For more information, see [Database-Level Audit Action - * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - *

For Database auditing policy, specific Actions can also be specified (note that Actions cannot be - * specified for Server auditing policy). The supported actions to audit are: SELECT UPDATE INSERT - * DELETE EXECUTE RECEIVE REFERENCES - *

The general form for defining an action to be audited is: {action} ON {object} BY {principal} - *

Note that <object> in the above format can refer to an object like a table, view, or stored - * procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and - * SCHEMA::{schema_name} are used, respectively. - *

For example: SELECT on dbo.myTable by public SELECT on DATABASE::myDatabase by public SELECT on - * SCHEMA::mySchema by public - *

For more information, see [Database-Level Audit - * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions). + * + * The recommended set of action groups to use is the following combination - this will audit all the + * queries and stored procedures executed against the database, as well as successful and failed logins: + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing from the + * Azure portal. + * + * The supported action groups to audit are (note: choose only specific groups that cover your auditing + * needs. Using unnecessary groups could lead to very large quantities of audit records): + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP + * BATCH_COMPLETED_GROUP + * + * These are groups that cover all sql statements and stored procedures executed against the database, and + * should not be used in combination with other groups as this will result in duplicate audit logs. + * + * For more information, see [Database-Level Audit Action + * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). + * + * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be + * specified for Server auditing policy). The supported actions to audit are: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE + * REFERENCES + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note that <object> in the above format can refer to an object like a table, view, or stored + * procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and + * SCHEMA::{schema_name} are used, respectively. + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For more information, see [Database-Level Audit + * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions). * @return the next definition stage. */ WithCreate withAuditActionsAndGroups(List auditActionsAndGroups); } - /** The stage of the ServerBlobAuditingPolicy definition allowing to specify storageAccountSubscriptionId. */ + + /** + * The stage of the ServerBlobAuditingPolicy definition allowing to specify storageAccountSubscriptionId. + */ interface WithStorageAccountSubscriptionId { /** * Specifies the storageAccountSubscriptionId property: Specifies the blob storage subscription Id.. - * + * * @param storageAccountSubscriptionId Specifies the blob storage subscription Id. * @return the next definition stage. */ WithCreate withStorageAccountSubscriptionId(UUID storageAccountSubscriptionId); } - /** The stage of the ServerBlobAuditingPolicy definition allowing to specify isStorageSecondaryKeyInUse. */ + + /** + * The stage of the ServerBlobAuditingPolicy definition allowing to specify isStorageSecondaryKeyInUse. + */ interface WithIsStorageSecondaryKeyInUse { /** * Specifies the isStorageSecondaryKeyInUse property: Specifies whether storageAccountAccessKey value is the * storage's secondary key.. - * + * * @param isStorageSecondaryKeyInUse Specifies whether storageAccountAccessKey value is the storage's - * secondary key. + * secondary key. * @return the next definition stage. */ WithCreate withIsStorageSecondaryKeyInUse(Boolean isStorageSecondaryKeyInUse); } - /** The stage of the ServerBlobAuditingPolicy definition allowing to specify isAzureMonitorTargetEnabled. */ + + /** + * The stage of the ServerBlobAuditingPolicy definition allowing to specify isAzureMonitorTargetEnabled. + */ interface WithIsAzureMonitorTargetEnabled { /** * Specifies the isAzureMonitorTargetEnabled property: Specifies whether audit events are sent to Azure - * Monitor. In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and + * Monitor. + * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and + * 'isAzureMonitorTargetEnabled' as true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic + * logs category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT + * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + * . + * + * @param isAzureMonitorTargetEnabled Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and * 'isAzureMonitorTargetEnabled' as true. - * - *

When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' - * diagnostic logs category on the database should be also created. Note that for server level audit you - * should use the 'master' database as {databaseName}. - * - *

Diagnostic Settings URI format: PUT + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic + * logs category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - *

For more information, see [Diagnostic Settings REST - * API](https://go.microsoft.com/fwlink/?linkid=2033207) or [Diagnostic Settings - * PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) . - * - * @param isAzureMonitorTargetEnabled Specifies whether audit events are sent to Azure Monitor. In order to - * send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as - * true. - *

When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' - * diagnostic logs category on the database should be also created. Note that for server level audit you - * should use the 'master' database as {databaseName}. - *

Diagnostic Settings URI format: PUT - * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - *

For more information, see [Diagnostic Settings REST - * API](https://go.microsoft.com/fwlink/?linkid=2033207) or [Diagnostic Settings - * PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). * @return the next definition stage. */ WithCreate withIsAzureMonitorTargetEnabled(Boolean isAzureMonitorTargetEnabled); } - /** The stage of the ServerBlobAuditingPolicy definition allowing to specify queueDelayMs. */ + + /** + * The stage of the ServerBlobAuditingPolicy definition allowing to specify queueDelayMs. + */ interface WithQueueDelayMs { /** * Specifies the queueDelayMs property: Specifies the amount of time in milliseconds that can elapse before - * audit actions are forced to be processed. The default minimum value is 1000 (1 second). The maximum is - * 2,147,483,647.. - * + * audit actions are forced to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647.. + * * @param queueDelayMs Specifies the amount of time in milliseconds that can elapse before audit actions are - * forced to be processed. The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. + * forced to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. * @return the next definition stage. */ WithCreate withQueueDelayMs(Integer queueDelayMs); } - /** The stage of the ServerBlobAuditingPolicy definition allowing to specify isDevopsAuditEnabled. */ + + /** + * The stage of the ServerBlobAuditingPolicy definition allowing to specify isDevopsAuditEnabled. + */ interface WithIsDevopsAuditEnabled { /** * Specifies the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, - * devops logs will be sent to Azure Monitor. In order to send the events to Azure Monitor, specify 'State' - * as 'Enabled', 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true - * - *

When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic + * devops logs will be sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' + * as true and 'IsDevopsAuditEnabled' as true + * + * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic * logs category on the master database should also be created. - * - *

Diagnostic Settings URI format: PUT + * + * Diagnostic Settings URI format: + * PUT * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - *

For more information, see [Diagnostic Settings REST - * API](https://go.microsoft.com/fwlink/?linkid=2033207) or [Diagnostic Settings - * PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) . - * + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + * . + * * @param isDevopsAuditEnabled Specifies the state of devops audit. If state is Enabled, devops logs will be - * sent to Azure Monitor. In order to send the events to Azure Monitor, specify 'State' as 'Enabled', - * 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true - *

When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' - * diagnostic logs category on the master database should also be created. - *

Diagnostic Settings URI format: PUT - * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - *

For more information, see [Diagnostic Settings REST - * API](https://go.microsoft.com/fwlink/?linkid=2033207) or [Diagnostic Settings - * PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' + * as true and 'IsDevopsAuditEnabled' as true + * + * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic + * logs category on the master database should also be created. + * + * Diagnostic Settings URI format: + * PUT + * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). * @return the next definition stage. */ WithCreate withIsDevopsAuditEnabled(Boolean isDevopsAuditEnabled); } } + /** * Begins update for the ServerBlobAuditingPolicy resource. - * + * * @return the stage of resource update. */ ServerBlobAuditingPolicy.Update update(); - /** The template for ServerBlobAuditingPolicy update. */ + /** + * The template for ServerBlobAuditingPolicy update. + */ interface Update - extends UpdateStages.WithState, - UpdateStages.WithStorageEndpoint, - UpdateStages.WithStorageAccountAccessKey, - UpdateStages.WithIsStorageSecondaryKeyInUse, - UpdateStages.WithIsAzureMonitorTargetEnabled, - UpdateStages.WithQueueDelayMs, - UpdateStages.WithIsDevopsAuditEnabled { + extends UpdateStages.WithState, UpdateStages.WithStorageEndpoint, UpdateStages.WithStorageAccountAccessKey, + UpdateStages.WithIsStorageSecondaryKeyInUse, UpdateStages.WithIsAzureMonitorTargetEnabled, + UpdateStages.WithQueueDelayMs, UpdateStages.WithIsDevopsAuditEnabled { /** * Executes the update request. - * + * * @return the updated resource. */ ServerBlobAuditingPolicy apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ ServerBlobAuditingPolicy apply(Context context); } - /** The ServerBlobAuditingPolicy update stages. */ + + /** + * The ServerBlobAuditingPolicy update stages. + */ interface UpdateStages { - /** The stage of the ServerBlobAuditingPolicy update allowing to specify state. */ + /** + * The stage of the ServerBlobAuditingPolicy update allowing to specify state. + */ interface WithState { /** * Specifies the state property: Specifies the state of the policy. If state is Enabled, storageEndpoint or * isAzureMonitorTargetEnabled are required.. - * + * * @param state Specifies the state of the policy. If state is Enabled, storageEndpoint or - * isAzureMonitorTargetEnabled are required. + * isAzureMonitorTargetEnabled are required. * @return the next definition stage. */ Update withState(BlobAuditingPolicyState state); } - /** The stage of the ServerBlobAuditingPolicy update allowing to specify storageEndpoint. */ + + /** + * The stage of the ServerBlobAuditingPolicy update allowing to specify storageEndpoint. + */ interface WithStorageEndpoint { /** * Specifies the storageEndpoint property: Specifies the blob storage endpoint (e.g. * https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or * isAzureMonitorTargetEnabled is required.. - * + * * @param storageEndpoint Specifies the blob storage endpoint (e.g. - * https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or - * isAzureMonitorTargetEnabled is required. + * https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint or + * isAzureMonitorTargetEnabled is required. * @return the next definition stage. */ Update withStorageEndpoint(String storageEndpoint); } - /** The stage of the ServerBlobAuditingPolicy update allowing to specify storageAccountAccessKey. */ + + /** + * The stage of the ServerBlobAuditingPolicy update allowing to specify storageAccountAccessKey. + */ interface WithStorageAccountAccessKey { /** * Specifies the storageAccountAccessKey property: Specifies the identifier key of the auditing storage - * account. If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey - * will use SQL server system-assigned managed identity to access the storage. Prerequisites for using - * managed identity authentication: 1. Assign SQL Server a system-assigned managed identity in Azure Active - * Directory (AAD). 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data - * Contributor' RBAC role to the server identity. For more information, see [Auditing to storage using - * Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355). - * - * @param storageAccountAccessKey Specifies the identifier key of the auditing storage account. If state is - * Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use SQL - * server system-assigned managed identity to access the storage. Prerequisites for using managed - * identity authentication: 1. Assign SQL Server a system-assigned managed identity in Azure Active - * Directory (AAD). 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob - * Data Contributor' RBAC role to the server identity. For more information, see [Auditing to storage - * using Managed Identity authentication](https://go.microsoft.com/fwlink/?linkid=2114355). + * account. + * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use + * SQL server system-assigned managed identity to access the storage. + * Prerequisites for using managed identity authentication: + * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). + * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC + * role to the server identity. + * For more information, see [Auditing to storage using Managed Identity + * authentication](https://go.microsoft.com/fwlink/?linkid=2114355). + * + * @param storageAccountAccessKey Specifies the identifier key of the auditing storage account. + * If state is Enabled and storageEndpoint is specified, not specifying the storageAccountAccessKey will use + * SQL server system-assigned managed identity to access the storage. + * Prerequisites for using managed identity authentication: + * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). + * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data Contributor' RBAC + * role to the server identity. + * For more information, see [Auditing to storage using Managed Identity + * authentication](https://go.microsoft.com/fwlink/?linkid=2114355). * @return the next definition stage. */ Update withStorageAccountAccessKey(String storageAccountAccessKey); } - /** The stage of the ServerBlobAuditingPolicy update allowing to specify isStorageSecondaryKeyInUse. */ + + /** + * The stage of the ServerBlobAuditingPolicy update allowing to specify isStorageSecondaryKeyInUse. + */ interface WithIsStorageSecondaryKeyInUse { /** * Specifies the isStorageSecondaryKeyInUse property: Specifies whether storageAccountAccessKey value is the * storage's secondary key.. - * + * * @param isStorageSecondaryKeyInUse Specifies whether storageAccountAccessKey value is the storage's - * secondary key. + * secondary key. * @return the next definition stage. */ Update withIsStorageSecondaryKeyInUse(Boolean isStorageSecondaryKeyInUse); } - /** The stage of the ServerBlobAuditingPolicy update allowing to specify isAzureMonitorTargetEnabled. */ + + /** + * The stage of the ServerBlobAuditingPolicy update allowing to specify isAzureMonitorTargetEnabled. + */ interface WithIsAzureMonitorTargetEnabled { /** * Specifies the isAzureMonitorTargetEnabled property: Specifies whether audit events are sent to Azure - * Monitor. In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and + * Monitor. + * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and * 'isAzureMonitorTargetEnabled' as true. - * - *

When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' - * diagnostic logs category on the database should be also created. Note that for server level audit you - * should use the 'master' database as {databaseName}. - * - *

Diagnostic Settings URI format: PUT + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic + * logs category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - *

For more information, see [Diagnostic Settings REST - * API](https://go.microsoft.com/fwlink/?linkid=2033207) or [Diagnostic Settings - * PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) . - * - * @param isAzureMonitorTargetEnabled Specifies whether audit events are sent to Azure Monitor. In order to - * send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as - * true. - *

When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' - * diagnostic logs category on the database should be also created. Note that for server level audit you - * should use the 'master' database as {databaseName}. - *

Diagnostic Settings URI format: PUT - * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - *

For more information, see [Diagnostic Settings REST - * API](https://go.microsoft.com/fwlink/?linkid=2033207) or [Diagnostic Settings - * PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + * . + * + * @param isAzureMonitorTargetEnabled Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and + * 'isAzureMonitorTargetEnabled' as true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic + * logs category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT + * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). * @return the next definition stage. */ Update withIsAzureMonitorTargetEnabled(Boolean isAzureMonitorTargetEnabled); } - /** The stage of the ServerBlobAuditingPolicy update allowing to specify queueDelayMs. */ + + /** + * The stage of the ServerBlobAuditingPolicy update allowing to specify queueDelayMs. + */ interface WithQueueDelayMs { /** * Specifies the queueDelayMs property: Specifies the amount of time in milliseconds that can elapse before - * audit actions are forced to be processed. The default minimum value is 1000 (1 second). The maximum is - * 2,147,483,647.. - * + * audit actions are forced to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647.. + * * @param queueDelayMs Specifies the amount of time in milliseconds that can elapse before audit actions are - * forced to be processed. The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. + * forced to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. * @return the next definition stage. */ Update withQueueDelayMs(Integer queueDelayMs); } - /** The stage of the ServerBlobAuditingPolicy update allowing to specify isDevopsAuditEnabled. */ + + /** + * The stage of the ServerBlobAuditingPolicy update allowing to specify isDevopsAuditEnabled. + */ interface WithIsDevopsAuditEnabled { /** * Specifies the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, - * devops logs will be sent to Azure Monitor. In order to send the events to Azure Monitor, specify 'State' - * as 'Enabled', 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true - * - *

When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic + * devops logs will be sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' + * as true and 'IsDevopsAuditEnabled' as true + * + * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic * logs category on the master database should also be created. - * - *

Diagnostic Settings URI format: PUT + * + * Diagnostic Settings URI format: + * PUT * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - *

For more information, see [Diagnostic Settings REST - * API](https://go.microsoft.com/fwlink/?linkid=2033207) or [Diagnostic Settings - * PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) . - * + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + * . + * * @param isDevopsAuditEnabled Specifies the state of devops audit. If state is Enabled, devops logs will be - * sent to Azure Monitor. In order to send the events to Azure Monitor, specify 'State' as 'Enabled', - * 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true - *

When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' - * diagnostic logs category on the master database should also be created. - *

Diagnostic Settings URI format: PUT - * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - *

For more information, see [Diagnostic Settings REST - * API](https://go.microsoft.com/fwlink/?linkid=2033207) or [Diagnostic Settings - * PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' + * as true and 'IsDevopsAuditEnabled' as true + * + * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic + * logs category on the master database should also be created. + * + * Diagnostic Settings URI format: + * PUT + * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). * @return the next definition stage. */ Update withIsDevopsAuditEnabled(Boolean isDevopsAuditEnabled); } } + /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ ServerBlobAuditingPolicy refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerBlobAuditingPolicyListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerBlobAuditingPolicyListResult.java index ae061040de39..297b1ce1c86e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerBlobAuditingPolicyListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerBlobAuditingPolicyListResult.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** A list of server auditing settings. */ +/** + * A list of server auditing settings. + */ @Immutable public final class ServerBlobAuditingPolicyListResult { /* @@ -24,13 +26,15 @@ public final class ServerBlobAuditingPolicyListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; - /** Creates an instance of ServerBlobAuditingPolicyListResult class. */ + /** + * Creates an instance of ServerBlobAuditingPolicyListResult class. + */ public ServerBlobAuditingPolicyListResult() { } /** * Get the value property: Array of results. - * + * * @return the value value. */ public List value() { @@ -39,7 +43,7 @@ public List value() { /** * Get the nextLink property: Link to retrieve next page of results. - * + * * @return the nextLink value. */ public String nextLink() { @@ -48,7 +52,7 @@ public String nextLink() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerKeyType.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerKeyType.java index 85a3ca4bb8c0..edd6b32fc69f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerKeyType.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerKeyType.java @@ -8,17 +8,23 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The encryption protector type like 'ServiceManaged', 'AzureKeyVault'. */ +/** + * The encryption protector type like 'ServiceManaged', 'AzureKeyVault'. + */ public final class ServerKeyType extends ExpandableStringEnum { - /** Static value ServiceManaged for ServerKeyType. */ + /** + * Static value ServiceManaged for ServerKeyType. + */ public static final ServerKeyType SERVICE_MANAGED = fromString("ServiceManaged"); - /** Static value AzureKeyVault for ServerKeyType. */ + /** + * Static value AzureKeyVault for ServerKeyType. + */ public static final ServerKeyType AZURE_KEY_VAULT = fromString("AzureKeyVault"); /** * Creates a new instance of ServerKeyType value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,7 +33,7 @@ public ServerKeyType() { /** * Creates or finds a ServerKeyType from its string representation. - * + * * @param name a name to look for. * @return the corresponding ServerKeyType. */ @@ -38,7 +44,7 @@ public static ServerKeyType fromString(String name) { /** * Gets known ServerKeyType values. - * + * * @return known ServerKeyType values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerSecurityAlertPolicy.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerSecurityAlertPolicy.java index 040dac6ad1e5..28e99160c2ff 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerSecurityAlertPolicy.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerSecurityAlertPolicy.java @@ -9,25 +9,27 @@ import java.time.OffsetDateTime; import java.util.List; -/** An immutable client-side representation of ServerSecurityAlertPolicy. */ +/** + * An immutable client-side representation of ServerSecurityAlertPolicy. + */ public interface ServerSecurityAlertPolicy { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); @@ -35,7 +37,7 @@ public interface ServerSecurityAlertPolicy { /** * Gets the state property: Specifies the state of the policy, whether it is enabled or disabled or a policy has not * been applied yet on the specific server. - * + * * @return the state value. */ SecurityAlertPolicyState state(); @@ -43,21 +45,21 @@ public interface ServerSecurityAlertPolicy { /** * Gets the disabledAlerts property: Specifies an array of alerts that are disabled. Allowed values are: * Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action. - * + * * @return the disabledAlerts value. */ List disabledAlerts(); /** * Gets the emailAddresses property: Specifies an array of e-mail addresses to which the alert is sent. - * + * * @return the emailAddresses value. */ List emailAddresses(); /** * Gets the emailAccountAdmins property: Specifies that the alert is sent to the account administrators. - * + * * @return the emailAccountAdmins value. */ Boolean emailAccountAdmins(); @@ -65,7 +67,7 @@ public interface ServerSecurityAlertPolicy { /** * Gets the storageEndpoint property: Specifies the blob storage endpoint (e.g. * https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. - * + * * @return the storageEndpoint value. */ String storageEndpoint(); @@ -73,230 +75,269 @@ public interface ServerSecurityAlertPolicy { /** * Gets the storageAccountAccessKey property: Specifies the identifier key of the Threat Detection audit storage * account. - * + * * @return the storageAccountAccessKey value. */ String storageAccountAccessKey(); /** * Gets the retentionDays property: Specifies the number of days to keep in the Threat Detection audit logs. - * + * * @return the retentionDays value. */ Integer retentionDays(); /** * Gets the creationTime property: Specifies the UTC creation time of the policy. - * + * * @return the creationTime value. */ OffsetDateTime creationTime(); /** * Gets the name of the resource group. - * + * * @return the name of the resource group. */ String resourceGroupName(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.ServerSecurityAlertPolicyInner object. - * + * * @return the inner object. */ ServerSecurityAlertPolicyInner innerModel(); - /** The entirety of the ServerSecurityAlertPolicy definition. */ + /** + * The entirety of the ServerSecurityAlertPolicy definition. + */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { } - /** The ServerSecurityAlertPolicy definition stages. */ + + /** + * The ServerSecurityAlertPolicy definition stages. + */ interface DefinitionStages { - /** The first stage of the ServerSecurityAlertPolicy definition. */ + /** + * The first stage of the ServerSecurityAlertPolicy definition. + */ interface Blank extends WithParentResource { } - /** The stage of the ServerSecurityAlertPolicy definition allowing to specify parent resource. */ + + /** + * The stage of the ServerSecurityAlertPolicy definition allowing to specify parent resource. + */ interface WithParentResource { /** * Specifies resourceGroupName, workspaceName. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @return the next definition stage. */ WithCreate withExistingWorkspace(String resourceGroupName, String workspaceName); } + /** * The stage of the ServerSecurityAlertPolicy definition which contains all the minimum required properties for * the resource to be created, but also allows for any other optional properties to be specified. */ - interface WithCreate - extends DefinitionStages.WithState, - DefinitionStages.WithDisabledAlerts, - DefinitionStages.WithEmailAddresses, - DefinitionStages.WithEmailAccountAdmins, - DefinitionStages.WithStorageEndpoint, - DefinitionStages.WithStorageAccountAccessKey, - DefinitionStages.WithRetentionDays { + interface WithCreate extends DefinitionStages.WithState, DefinitionStages.WithDisabledAlerts, + DefinitionStages.WithEmailAddresses, DefinitionStages.WithEmailAccountAdmins, + DefinitionStages.WithStorageEndpoint, DefinitionStages.WithStorageAccountAccessKey, + DefinitionStages.WithRetentionDays { /** * Executes the create request. - * + * * @return the created resource. */ ServerSecurityAlertPolicy create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ ServerSecurityAlertPolicy create(Context context); } - /** The stage of the ServerSecurityAlertPolicy definition allowing to specify state. */ + + /** + * The stage of the ServerSecurityAlertPolicy definition allowing to specify state. + */ interface WithState { /** * Specifies the state property: Specifies the state of the policy, whether it is enabled or disabled or a * policy has not been applied yet on the specific server. - * + * * @param state Specifies the state of the policy, whether it is enabled or disabled or a policy has not - * been applied yet on the specific server. + * been applied yet on the specific server. * @return the next definition stage. */ WithCreate withState(SecurityAlertPolicyState state); } - /** The stage of the ServerSecurityAlertPolicy definition allowing to specify disabledAlerts. */ + + /** + * The stage of the ServerSecurityAlertPolicy definition allowing to specify disabledAlerts. + */ interface WithDisabledAlerts { /** * Specifies the disabledAlerts property: Specifies an array of alerts that are disabled. Allowed values * are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action. - * + * * @param disabledAlerts Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, - * Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action. + * Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action. * @return the next definition stage. */ WithCreate withDisabledAlerts(List disabledAlerts); } - /** The stage of the ServerSecurityAlertPolicy definition allowing to specify emailAddresses. */ + + /** + * The stage of the ServerSecurityAlertPolicy definition allowing to specify emailAddresses. + */ interface WithEmailAddresses { /** * Specifies the emailAddresses property: Specifies an array of e-mail addresses to which the alert is * sent.. - * + * * @param emailAddresses Specifies an array of e-mail addresses to which the alert is sent. * @return the next definition stage. */ WithCreate withEmailAddresses(List emailAddresses); } - /** The stage of the ServerSecurityAlertPolicy definition allowing to specify emailAccountAdmins. */ + + /** + * The stage of the ServerSecurityAlertPolicy definition allowing to specify emailAccountAdmins. + */ interface WithEmailAccountAdmins { /** * Specifies the emailAccountAdmins property: Specifies that the alert is sent to the account * administrators.. - * + * * @param emailAccountAdmins Specifies that the alert is sent to the account administrators. * @return the next definition stage. */ WithCreate withEmailAccountAdmins(Boolean emailAccountAdmins); } - /** The stage of the ServerSecurityAlertPolicy definition allowing to specify storageEndpoint. */ + + /** + * The stage of the ServerSecurityAlertPolicy definition allowing to specify storageEndpoint. + */ interface WithStorageEndpoint { /** * Specifies the storageEndpoint property: Specifies the blob storage endpoint (e.g. * https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs.. - * + * * @param storageEndpoint Specifies the blob storage endpoint (e.g. - * https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit - * logs. + * https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. * @return the next definition stage. */ WithCreate withStorageEndpoint(String storageEndpoint); } - /** The stage of the ServerSecurityAlertPolicy definition allowing to specify storageAccountAccessKey. */ + + /** + * The stage of the ServerSecurityAlertPolicy definition allowing to specify storageAccountAccessKey. + */ interface WithStorageAccountAccessKey { /** * Specifies the storageAccountAccessKey property: Specifies the identifier key of the Threat Detection * audit storage account.. - * + * * @param storageAccountAccessKey Specifies the identifier key of the Threat Detection audit storage - * account. + * account. * @return the next definition stage. */ WithCreate withStorageAccountAccessKey(String storageAccountAccessKey); } - /** The stage of the ServerSecurityAlertPolicy definition allowing to specify retentionDays. */ + + /** + * The stage of the ServerSecurityAlertPolicy definition allowing to specify retentionDays. + */ interface WithRetentionDays { /** * Specifies the retentionDays property: Specifies the number of days to keep in the Threat Detection audit * logs.. - * + * * @param retentionDays Specifies the number of days to keep in the Threat Detection audit logs. * @return the next definition stage. */ WithCreate withRetentionDays(Integer retentionDays); } } + /** * Begins update for the ServerSecurityAlertPolicy resource. - * + * * @return the stage of resource update. */ ServerSecurityAlertPolicy.Update update(); - /** The template for ServerSecurityAlertPolicy update. */ + /** + * The template for ServerSecurityAlertPolicy update. + */ interface Update extends UpdateStages.WithState, UpdateStages.WithStorageAccountAccessKey { /** * Executes the update request. - * + * * @return the updated resource. */ ServerSecurityAlertPolicy apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ ServerSecurityAlertPolicy apply(Context context); } - /** The ServerSecurityAlertPolicy update stages. */ + + /** + * The ServerSecurityAlertPolicy update stages. + */ interface UpdateStages { - /** The stage of the ServerSecurityAlertPolicy update allowing to specify state. */ + /** + * The stage of the ServerSecurityAlertPolicy update allowing to specify state. + */ interface WithState { /** * Specifies the state property: Specifies the state of the policy, whether it is enabled or disabled or a * policy has not been applied yet on the specific server. - * + * * @param state Specifies the state of the policy, whether it is enabled or disabled or a policy has not - * been applied yet on the specific server. + * been applied yet on the specific server. * @return the next definition stage. */ Update withState(SecurityAlertPolicyState state); } - /** The stage of the ServerSecurityAlertPolicy update allowing to specify storageAccountAccessKey. */ + + /** + * The stage of the ServerSecurityAlertPolicy update allowing to specify storageAccountAccessKey. + */ interface WithStorageAccountAccessKey { /** * Specifies the storageAccountAccessKey property: Specifies the identifier key of the Threat Detection * audit storage account.. - * + * * @param storageAccountAccessKey Specifies the identifier key of the Threat Detection audit storage - * account. + * account. * @return the next definition stage. */ Update withStorageAccountAccessKey(String storageAccountAccessKey); } } + /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ ServerSecurityAlertPolicy refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerSecurityAlertPolicyListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerSecurityAlertPolicyListResult.java index 59e14a7af6d0..3b4e8911e7f4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerSecurityAlertPolicyListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerSecurityAlertPolicyListResult.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** A list of the workspace managed sql server's security alert policies. */ +/** + * A list of the workspace managed sql server's security alert policies. + */ @Immutable public final class ServerSecurityAlertPolicyListResult { /* @@ -24,13 +26,15 @@ public final class ServerSecurityAlertPolicyListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; - /** Creates an instance of ServerSecurityAlertPolicyListResult class. */ + /** + * Creates an instance of ServerSecurityAlertPolicyListResult class. + */ public ServerSecurityAlertPolicyListResult() { } /** * Get the value property: Array of results. - * + * * @return the value value. */ public List value() { @@ -39,7 +43,7 @@ public List value() { /** * Get the nextLink property: Link to retrieve next page of results. - * + * * @return the nextLink value. */ public String nextLink() { @@ -48,7 +52,7 @@ public String nextLink() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerUsage.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerUsage.java index ad4826a58640..5fdf35561967 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerUsage.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerUsage.java @@ -7,60 +7,62 @@ import com.azure.resourcemanager.synapse.fluent.models.ServerUsageInner; import java.time.OffsetDateTime; -/** An immutable client-side representation of ServerUsage. */ +/** + * An immutable client-side representation of ServerUsage. + */ public interface ServerUsage { /** * Gets the name property: Name of the server usage metric. - * + * * @return the name value. */ String name(); /** * Gets the resourceName property: The name of the resource. - * + * * @return the resourceName value. */ String resourceName(); /** * Gets the displayName property: The metric display name. - * + * * @return the displayName value. */ String displayName(); /** * Gets the currentValue property: The current value of the metric. - * + * * @return the currentValue value. */ Double currentValue(); /** * Gets the limit property: The current limit of the metric. - * + * * @return the limit value. */ Double limit(); /** * Gets the unit property: The units of the metric. - * + * * @return the unit value. */ String unit(); /** * Gets the nextResetTime property: The next reset time for the metric (ISO8601 format). - * + * * @return the nextResetTime value. */ OffsetDateTime nextResetTime(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.ServerUsageInner object. - * + * * @return the inner object. */ ServerUsageInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerUsageListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerUsageListResult.java index 7db21829c8e1..6a64a95538a2 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerUsageListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerUsageListResult.java @@ -10,7 +10,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Represents the response to a list server metrics request. */ +/** + * Represents the response to a list server metrics request. + */ @Fluent public final class ServerUsageListResult { /* @@ -25,13 +27,15 @@ public final class ServerUsageListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; - /** Creates an instance of ServerUsageListResult class. */ + /** + * Creates an instance of ServerUsageListResult class. + */ public ServerUsageListResult() { } /** * Get the value property: The list of server metrics for the server. - * + * * @return the value value. */ public List value() { @@ -40,7 +44,7 @@ public List value() { /** * Set the value property: The list of server metrics for the server. - * + * * @param value the value value to set. * @return the ServerUsageListResult object itself. */ @@ -51,7 +55,7 @@ public ServerUsageListResult withValue(List value) { /** * Get the nextLink property: Link to retrieve next page of results. - * + * * @return the nextLink value. */ public String nextLink() { @@ -60,14 +64,13 @@ public String nextLink() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (value() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property value in model ServerUsageListResult")); + throw LOGGER.logExceptionAsError( + new IllegalArgumentException("Missing required property value in model ServerUsageListResult")); } else { value().forEach(e -> e.validate()); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerVulnerabilityAssessment.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerVulnerabilityAssessment.java index 0c41cac29e22..1d307dcf461f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerVulnerabilityAssessment.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerVulnerabilityAssessment.java @@ -7,25 +7,27 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.synapse.fluent.models.ServerVulnerabilityAssessmentInner; -/** An immutable client-side representation of ServerVulnerabilityAssessment. */ +/** + * An immutable client-side representation of ServerVulnerabilityAssessment. + */ public interface ServerVulnerabilityAssessment { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); @@ -33,7 +35,7 @@ public interface ServerVulnerabilityAssessment { /** * Gets the storageContainerPath property: A blob storage container path to hold the scan results (e.g. * https://myStorage.blob.core.windows.net/VaScans/). - * + * * @return the storageContainerPath value. */ String storageContainerPath(); @@ -42,7 +44,7 @@ public interface ServerVulnerabilityAssessment { * Gets the storageContainerSasKey property: A shared access signature (SAS Key) that has read and write access to * the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, * StorageContainerSasKey is required. - * + * * @return the storageContainerSasKey value. */ String storageContainerSasKey(); @@ -50,205 +52,239 @@ public interface ServerVulnerabilityAssessment { /** * Gets the storageAccountAccessKey property: Specifies the identifier key of the storage account for vulnerability * assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. - * + * * @return the storageAccountAccessKey value. */ String storageAccountAccessKey(); /** * Gets the recurringScans property: The recurring scans settings. - * + * * @return the recurringScans value. */ - VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated recurringScans(); + VulnerabilityAssessmentRecurringScansProperties recurringScans(); /** * Gets the name of the resource group. - * + * * @return the name of the resource group. */ String resourceGroupName(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.ServerVulnerabilityAssessmentInner object. - * + * * @return the inner object. */ ServerVulnerabilityAssessmentInner innerModel(); - /** The entirety of the ServerVulnerabilityAssessment definition. */ + /** + * The entirety of the ServerVulnerabilityAssessment definition. + */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { } - /** The ServerVulnerabilityAssessment definition stages. */ + + /** + * The ServerVulnerabilityAssessment definition stages. + */ interface DefinitionStages { - /** The first stage of the ServerVulnerabilityAssessment definition. */ + /** + * The first stage of the ServerVulnerabilityAssessment definition. + */ interface Blank extends WithParentResource { } - /** The stage of the ServerVulnerabilityAssessment definition allowing to specify parent resource. */ + + /** + * The stage of the ServerVulnerabilityAssessment definition allowing to specify parent resource. + */ interface WithParentResource { /** * Specifies resourceGroupName, workspaceName. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @return the next definition stage. */ WithCreate withExistingWorkspace(String resourceGroupName, String workspaceName); } + /** * The stage of the ServerVulnerabilityAssessment definition which contains all the minimum required properties * for the resource to be created, but also allows for any other optional properties to be specified. */ interface WithCreate - extends DefinitionStages.WithStorageContainerPath, - DefinitionStages.WithStorageContainerSasKey, - DefinitionStages.WithStorageAccountAccessKey, - DefinitionStages.WithRecurringScans { + extends DefinitionStages.WithStorageContainerPath, DefinitionStages.WithStorageContainerSasKey, + DefinitionStages.WithStorageAccountAccessKey, DefinitionStages.WithRecurringScans { /** * Executes the create request. - * + * * @return the created resource. */ ServerVulnerabilityAssessment create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ ServerVulnerabilityAssessment create(Context context); } - /** The stage of the ServerVulnerabilityAssessment definition allowing to specify storageContainerPath. */ + + /** + * The stage of the ServerVulnerabilityAssessment definition allowing to specify storageContainerPath. + */ interface WithStorageContainerPath { /** * Specifies the storageContainerPath property: A blob storage container path to hold the scan results (e.g. * https://myStorage.blob.core.windows.net/VaScans/).. - * + * * @param storageContainerPath A blob storage container path to hold the scan results (e.g. - * https://myStorage.blob.core.windows.net/VaScans/). + * https://myStorage.blob.core.windows.net/VaScans/). * @return the next definition stage. */ WithCreate withStorageContainerPath(String storageContainerPath); } - /** The stage of the ServerVulnerabilityAssessment definition allowing to specify storageContainerSasKey. */ + + /** + * The stage of the ServerVulnerabilityAssessment definition allowing to specify storageContainerSasKey. + */ interface WithStorageContainerSasKey { /** * Specifies the storageContainerSasKey property: A shared access signature (SAS Key) that has read and * write access to the blob container specified in 'storageContainerPath' parameter. If * 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required.. - * + * * @param storageContainerSasKey A shared access signature (SAS Key) that has read and write access to the - * blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't - * specified, StorageContainerSasKey is required. + * blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't + * specified, StorageContainerSasKey is required. * @return the next definition stage. */ WithCreate withStorageContainerSasKey(String storageContainerSasKey); } - /** The stage of the ServerVulnerabilityAssessment definition allowing to specify storageAccountAccessKey. */ + + /** + * The stage of the ServerVulnerabilityAssessment definition allowing to specify storageAccountAccessKey. + */ interface WithStorageAccountAccessKey { /** * Specifies the storageAccountAccessKey property: Specifies the identifier key of the storage account for * vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, * storageAccountAccessKey is required.. - * + * * @param storageAccountAccessKey Specifies the identifier key of the storage account for vulnerability - * assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is - * required. + * assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is + * required. * @return the next definition stage. */ WithCreate withStorageAccountAccessKey(String storageAccountAccessKey); } - /** The stage of the ServerVulnerabilityAssessment definition allowing to specify recurringScans. */ + + /** + * The stage of the ServerVulnerabilityAssessment definition allowing to specify recurringScans. + */ interface WithRecurringScans { /** * Specifies the recurringScans property: The recurring scans settings. - * + * * @param recurringScans The recurring scans settings. * @return the next definition stage. */ - WithCreate withRecurringScans(VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated recurringScans); + WithCreate withRecurringScans(VulnerabilityAssessmentRecurringScansProperties recurringScans); } } + /** * Begins update for the ServerVulnerabilityAssessment resource. - * + * * @return the stage of resource update. */ ServerVulnerabilityAssessment.Update update(); - /** The template for ServerVulnerabilityAssessment update. */ - interface Update - extends UpdateStages.WithStorageContainerSasKey, - UpdateStages.WithStorageAccountAccessKey, - UpdateStages.WithRecurringScans { + /** + * The template for ServerVulnerabilityAssessment update. + */ + interface Update extends UpdateStages.WithStorageContainerSasKey, UpdateStages.WithStorageAccountAccessKey, + UpdateStages.WithRecurringScans { /** * Executes the update request. - * + * * @return the updated resource. */ ServerVulnerabilityAssessment apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ ServerVulnerabilityAssessment apply(Context context); } - /** The ServerVulnerabilityAssessment update stages. */ + + /** + * The ServerVulnerabilityAssessment update stages. + */ interface UpdateStages { - /** The stage of the ServerVulnerabilityAssessment update allowing to specify storageContainerSasKey. */ + /** + * The stage of the ServerVulnerabilityAssessment update allowing to specify storageContainerSasKey. + */ interface WithStorageContainerSasKey { /** * Specifies the storageContainerSasKey property: A shared access signature (SAS Key) that has read and * write access to the blob container specified in 'storageContainerPath' parameter. If * 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required.. - * + * * @param storageContainerSasKey A shared access signature (SAS Key) that has read and write access to the - * blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't - * specified, StorageContainerSasKey is required. + * blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't + * specified, StorageContainerSasKey is required. * @return the next definition stage. */ Update withStorageContainerSasKey(String storageContainerSasKey); } - /** The stage of the ServerVulnerabilityAssessment update allowing to specify storageAccountAccessKey. */ + + /** + * The stage of the ServerVulnerabilityAssessment update allowing to specify storageAccountAccessKey. + */ interface WithStorageAccountAccessKey { /** * Specifies the storageAccountAccessKey property: Specifies the identifier key of the storage account for * vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, * storageAccountAccessKey is required.. - * + * * @param storageAccountAccessKey Specifies the identifier key of the storage account for vulnerability - * assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is - * required. + * assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is + * required. * @return the next definition stage. */ Update withStorageAccountAccessKey(String storageAccountAccessKey); } - /** The stage of the ServerVulnerabilityAssessment update allowing to specify recurringScans. */ + + /** + * The stage of the ServerVulnerabilityAssessment update allowing to specify recurringScans. + */ interface WithRecurringScans { /** * Specifies the recurringScans property: The recurring scans settings. - * + * * @param recurringScans The recurring scans settings. * @return the next definition stage. */ - Update withRecurringScans(VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated recurringScans); + Update withRecurringScans(VulnerabilityAssessmentRecurringScansProperties recurringScans); } } + /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ ServerVulnerabilityAssessment refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerVulnerabilityAssessmentListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerVulnerabilityAssessmentListResult.java index ada48c7d5359..ebc02d6ffc5c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerVulnerabilityAssessmentListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/ServerVulnerabilityAssessmentListResult.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** A list of the server's vulnerability assessments. */ +/** + * A list of the server's vulnerability assessments. + */ @Immutable public final class ServerVulnerabilityAssessmentListResult { /* @@ -24,13 +26,15 @@ public final class ServerVulnerabilityAssessmentListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; - /** Creates an instance of ServerVulnerabilityAssessmentListResult class. */ + /** + * Creates an instance of ServerVulnerabilityAssessmentListResult class. + */ public ServerVulnerabilityAssessmentListResult() { } /** * Get the value property: Array of results. - * + * * @return the value value. */ public List value() { @@ -39,7 +43,7 @@ public List value() { /** * Get the nextLink property: Link to retrieve next page of results. - * + * * @return the nextLink value. */ public String nextLink() { @@ -48,7 +52,7 @@ public String nextLink() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Sku.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Sku.java index 82196f2112a1..9b34cfda8ee9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Sku.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Sku.java @@ -9,8 +9,8 @@ /** * Sku - * - *

SQL pool SKU. + * + * SQL pool SKU. */ @Fluent public final class Sku { @@ -33,13 +33,15 @@ public final class Sku { @JsonProperty(value = "capacity") private Integer capacity; - /** Creates an instance of Sku class. */ + /** + * Creates an instance of Sku class. + */ public Sku() { } /** * Get the tier property: The service tier. - * + * * @return the tier value. */ public String tier() { @@ -48,7 +50,7 @@ public String tier() { /** * Set the tier property: The service tier. - * + * * @param tier the tier value to set. * @return the Sku object itself. */ @@ -59,7 +61,7 @@ public Sku withTier(String tier) { /** * Get the name property: The SKU name. - * + * * @return the name value. */ public String name() { @@ -68,7 +70,7 @@ public String name() { /** * Set the name property: The SKU name. - * + * * @param name the name value to set. * @return the Sku object itself. */ @@ -80,7 +82,7 @@ public Sku withName(String name) { /** * Get the capacity property: If the SKU supports scale out/in then the capacity integer should be included. If * scale out/in is not possible for the resource this may be omitted. - * + * * @return the capacity value. */ public Integer capacity() { @@ -90,7 +92,7 @@ public Integer capacity() { /** * Set the capacity property: If the SKU supports scale out/in then the capacity integer should be included. If * scale out/in is not possible for the resource this may be omitted. - * + * * @param capacity the capacity value to set. * @return the Sku object itself. */ @@ -101,7 +103,7 @@ public Sku withCapacity(Integer capacity) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SkuDescription.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SkuDescription.java index 7c97688537d8..9976545551fb 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SkuDescription.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SkuDescription.java @@ -7,53 +7,55 @@ import com.azure.resourcemanager.synapse.fluent.models.SkuDescriptionInner; import java.util.List; -/** An immutable client-side representation of SkuDescription. */ +/** + * An immutable client-side representation of SkuDescription. + */ public interface SkuDescription { /** * Gets the resourceType property: The resource type. - * + * * @return the resourceType value. */ String resourceType(); /** * Gets the name property: The name of the SKU. - * + * * @return the name value. */ String name(); /** * Gets the size property: The size of the SKU. - * + * * @return the size value. */ String size(); /** * Gets the locations property: The set of locations that the SKU is available. - * + * * @return the locations value. */ List locations(); /** * Gets the locationInfo property: Locations and zones. - * + * * @return the locationInfo value. */ List locationInfo(); /** * Gets the restrictions property: The restrictions because of which SKU cannot be used. - * + * * @return the restrictions value. */ List restrictions(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.SkuDescriptionInner object. - * + * * @return the inner object. */ SkuDescriptionInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SkuDescriptionList.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SkuDescriptionList.java index 2796b8532583..63190662b0f8 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SkuDescriptionList.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SkuDescriptionList.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The list of the SKU descriptions. */ +/** + * The list of the SKU descriptions. + */ @Immutable public final class SkuDescriptionList { /* @@ -18,13 +20,15 @@ public final class SkuDescriptionList { @JsonProperty(value = "value", access = JsonProperty.Access.WRITE_ONLY) private List value; - /** Creates an instance of SkuDescriptionList class. */ + /** + * Creates an instance of SkuDescriptionList class. + */ public SkuDescriptionList() { } /** * Get the value property: SKU descriptions. - * + * * @return the value value. */ public List value() { @@ -33,7 +37,7 @@ public List value() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SkuLocationInfoItem.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SkuLocationInfoItem.java index af5cb97c10ce..dd113a9f7c62 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SkuLocationInfoItem.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SkuLocationInfoItem.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The locations and zones info for SKU. */ +/** + * The locations and zones info for SKU. + */ @Fluent public final class SkuLocationInfoItem { /* @@ -24,13 +26,15 @@ public final class SkuLocationInfoItem { @JsonProperty(value = "zones") private List zones; - /** Creates an instance of SkuLocationInfoItem class. */ + /** + * Creates an instance of SkuLocationInfoItem class. + */ public SkuLocationInfoItem() { } /** * Get the location property: The available location of the SKU. - * + * * @return the location value. */ public String location() { @@ -39,7 +43,7 @@ public String location() { /** * Set the location property: The available location of the SKU. - * + * * @param location the location value to set. * @return the SkuLocationInfoItem object itself. */ @@ -50,7 +54,7 @@ public SkuLocationInfoItem withLocation(String location) { /** * Get the zones property: The available zone of the SKU. - * + * * @return the zones value. */ public List zones() { @@ -59,7 +63,7 @@ public List zones() { /** * Set the zones property: The available zone of the SKU. - * + * * @param zones the zones value to set. * @return the SkuLocationInfoItem object itself. */ @@ -70,14 +74,13 @@ public SkuLocationInfoItem withZones(List zones) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (location() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property location in model SkuLocationInfoItem")); + throw LOGGER.logExceptionAsError( + new IllegalArgumentException("Missing required property location in model SkuLocationInfoItem")); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SkuName.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SkuName.java index 871232d22bfe..048aa808540a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SkuName.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SkuName.java @@ -8,17 +8,23 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** SKU name. */ +/** + * SKU name. + */ public final class SkuName extends ExpandableStringEnum { - /** Static value Compute optimized for SkuName. */ + /** + * Static value Compute optimized for SkuName. + */ public static final SkuName COMPUTE_OPTIMIZED = fromString("Compute optimized"); - /** Static value Storage optimized for SkuName. */ + /** + * Static value Storage optimized for SkuName. + */ public static final SkuName STORAGE_OPTIMIZED = fromString("Storage optimized"); /** * Creates a new instance of SkuName value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,7 +33,7 @@ public SkuName() { /** * Creates or finds a SkuName from its string representation. - * + * * @param name a name to look for. * @return the corresponding SkuName. */ @@ -38,7 +44,7 @@ public static SkuName fromString(String name) { /** * Gets known SkuName values. - * + * * @return known SkuName values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SkuSize.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SkuSize.java index b3aa971c5539..1dfbad6b9ec1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SkuSize.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SkuSize.java @@ -8,23 +8,33 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** SKU size. */ +/** + * SKU size. + */ public final class SkuSize extends ExpandableStringEnum { - /** Static value Extra small for SkuSize. */ + /** + * Static value Extra small for SkuSize. + */ public static final SkuSize EXTRA_SMALL = fromString("Extra small"); - /** Static value Small for SkuSize. */ + /** + * Static value Small for SkuSize. + */ public static final SkuSize SMALL = fromString("Small"); - /** Static value Medium for SkuSize. */ + /** + * Static value Medium for SkuSize. + */ public static final SkuSize MEDIUM = fromString("Medium"); - /** Static value Large for SkuSize. */ + /** + * Static value Large for SkuSize. + */ public static final SkuSize LARGE = fromString("Large"); /** * Creates a new instance of SkuSize value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -33,7 +43,7 @@ public SkuSize() { /** * Creates or finds a SkuSize from its string representation. - * + * * @param name a name to look for. * @return the corresponding SkuSize. */ @@ -44,7 +54,7 @@ public static SkuSize fromString(String name) { /** * Gets known SkuSize values. - * + * * @return known SkuSize values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigProperties.java index 55cb062ac711..0fd4a4b96273 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigProperties.java @@ -10,8 +10,8 @@ /** * Spark pool Config Properties - * - *

SparkConfig Properties for a Big Data pool powered by Apache Spark. + * + * SparkConfig Properties for a Big Data pool powered by Apache Spark. */ @Fluent public final class SparkConfigProperties { @@ -39,13 +39,15 @@ public final class SparkConfigProperties { @JsonProperty(value = "configurationType") private ConfigurationType configurationType; - /** Creates an instance of SparkConfigProperties class. */ + /** + * Creates an instance of SparkConfigProperties class. + */ public SparkConfigProperties() { } /** * Get the time property: The last update time of the spark config properties file. - * + * * @return the time value. */ public OffsetDateTime time() { @@ -54,7 +56,7 @@ public OffsetDateTime time() { /** * Get the content property: The spark config properties. - * + * * @return the content value. */ public String content() { @@ -63,7 +65,7 @@ public String content() { /** * Set the content property: The spark config properties. - * + * * @param content the content value to set. * @return the SparkConfigProperties object itself. */ @@ -74,7 +76,7 @@ public SparkConfigProperties withContent(String content) { /** * Get the filename property: The filename of the spark config properties file. - * + * * @return the filename value. */ public String filename() { @@ -83,7 +85,7 @@ public String filename() { /** * Set the filename property: The filename of the spark config properties file. - * + * * @param filename the filename value to set. * @return the SparkConfigProperties object itself. */ @@ -94,7 +96,7 @@ public SparkConfigProperties withFilename(String filename) { /** * Get the configurationType property: The type of the spark config properties file. - * + * * @return the configurationType value. */ public ConfigurationType configurationType() { @@ -103,7 +105,7 @@ public ConfigurationType configurationType() { /** * Set the configurationType property: The type of the spark config properties file. - * + * * @param configurationType the configurationType value to set. * @return the SparkConfigProperties object itself. */ @@ -114,7 +116,7 @@ public SparkConfigProperties withConfigurationType(ConfigurationType configurati /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigurationListResponse.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigurationListResponse.java index 415d285f112b..3fd8dc9d88a0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigurationListResponse.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigurationListResponse.java @@ -10,7 +10,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** A list of SparkConfiguration resources. */ +/** + * A list of SparkConfiguration resources. + */ @Fluent public final class SparkConfigurationListResponse { /* @@ -25,13 +27,15 @@ public final class SparkConfigurationListResponse { @JsonProperty(value = "nextLink") private String nextLink; - /** Creates an instance of SparkConfigurationListResponse class. */ + /** + * Creates an instance of SparkConfigurationListResponse class. + */ public SparkConfigurationListResponse() { } /** * Get the value property: List of SparkConfiguration. - * + * * @return the value value. */ public List value() { @@ -40,7 +44,7 @@ public List value() { /** * Set the value property: List of SparkConfiguration. - * + * * @param value the value value to set. * @return the SparkConfigurationListResponse object itself. */ @@ -51,7 +55,7 @@ public SparkConfigurationListResponse withValue(List e.validate()); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigurationResource.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigurationResource.java index d335a29f539d..8aed57d7ad1b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigurationResource.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigurationResource.java @@ -9,88 +9,90 @@ import java.util.List; import java.util.Map; -/** An immutable client-side representation of SparkConfigurationResource. */ +/** + * An immutable client-side representation of SparkConfigurationResource. + */ public interface SparkConfigurationResource { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the etag property: Resource Etag. - * + * * @return the etag value. */ String etag(); /** * Gets the description property: Description about the SparkConfiguration. - * + * * @return the description value. */ String description(); /** * Gets the configs property: SparkConfiguration configs. - * + * * @return the configs value. */ Map configs(); /** * Gets the annotations property: Annotations for SparkConfiguration. - * + * * @return the annotations value. */ List annotations(); /** * Gets the notes property: additional Notes. - * + * * @return the notes value. */ String notes(); /** * Gets the createdBy property: The identity that created the resource. - * + * * @return the createdBy value. */ String createdBy(); /** * Gets the created property: The timestamp of resource creation. - * + * * @return the created value. */ OffsetDateTime created(); /** * Gets the configMergeRule property: SparkConfiguration merge configs. - * + * * @return the configMergeRule value. */ Map configMergeRule(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.SparkConfigurationResourceInner object. - * + * * @return the inner object. */ SparkConfigurationResourceInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigurations.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigurations.java index 63a8ded5c477..1ec57f1d4036 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigurations.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigurations.java @@ -7,13 +7,15 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of SparkConfigurations. */ +/** + * Resource collection API of SparkConfigurations. + */ public interface SparkConfigurations { /** * Get SparkConfiguration by name. - * - *

Get SparkConfiguration by name in a workspace. - * + * + * Get SparkConfiguration by name in a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param sparkConfigurationName SparkConfiguration name. * @param workspaceName The name of the workspace. @@ -23,14 +25,14 @@ public interface SparkConfigurations { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return sparkConfiguration by name in a workspace along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, String sparkConfigurationName, String workspaceName, Context context); + Response getWithResponse(String resourceGroupName, String sparkConfigurationName, + String workspaceName, Context context); /** * Get SparkConfiguration by name. - * - *

Get SparkConfiguration by name in a workspace. - * + * + * Get SparkConfiguration by name in a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param sparkConfigurationName SparkConfiguration name. * @param workspaceName The name of the workspace. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigurationsOperations.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigurationsOperations.java index cdbfc5f5e899..97cab1a0ce4b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigurationsOperations.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SparkConfigurationsOperations.java @@ -7,13 +7,15 @@ import com.azure.core.http.rest.PagedIterable; import com.azure.core.util.Context; -/** Resource collection API of SparkConfigurationsOperations. */ +/** + * Resource collection API of SparkConfigurationsOperations. + */ public interface SparkConfigurationsOperations { /** * List the sparkConfigurations in a workspace. - * - *

List sparkConfigurations in a workspace. - * + * + * List sparkConfigurations in a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -25,9 +27,9 @@ public interface SparkConfigurationsOperations { /** * List the sparkConfigurations in a workspace. - * - *

List sparkConfigurations in a workspace. - * + * + * List sparkConfigurations in a workspace. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -36,6 +38,6 @@ public interface SparkConfigurationsOperations { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of SparkConfiguration resources as paginated response with {@link PagedIterable}. */ - PagedIterable listByWorkspace( - String resourceGroupName, String workspaceName, Context context); + PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, + Context context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPool.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPool.java index 36dab314da34..cafe4a6eb644 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPool.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPool.java @@ -4,193 +4,201 @@ package com.azure.resourcemanager.synapse.models; -import com.azure.core.http.rest.Response; import com.azure.core.management.Region; import com.azure.core.util.Context; import com.azure.resourcemanager.synapse.fluent.models.SqlPoolInner; import java.time.OffsetDateTime; import java.util.Map; -/** An immutable client-side representation of SqlPool. */ +/** + * An immutable client-side representation of SqlPool. + */ public interface SqlPool { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the location property: The geo-location where the resource lives. - * + * * @return the location value. */ String location(); /** * Gets the tags property: Resource tags. - * + * * @return the tags value. */ Map tags(); /** * Gets the sku property: Sku - * - *

SQL pool SKU. - * + * + * SQL pool SKU. + * * @return the sku value. */ Sku sku(); /** * Gets the maxSizeBytes property: Maximum size in bytes. - * + * * @return the maxSizeBytes value. */ Long maxSizeBytes(); /** * Gets the collation property: Collation mode. - * + * * @return the collation value. */ String collation(); /** * Gets the sourceDatabaseId property: Source database to create from. - * + * * @return the sourceDatabaseId value. */ String sourceDatabaseId(); /** * Gets the recoverableDatabaseId property: Backup database to restore from. - * + * * @return the recoverableDatabaseId value. */ String recoverableDatabaseId(); /** * Gets the provisioningState property: Resource state. - * + * * @return the provisioningState value. */ String provisioningState(); /** * Gets the status property: Resource status. - * + * * @return the status value. */ String status(); /** * Gets the restorePointInTime property: Snapshot time to restore. - * + * * @return the restorePointInTime value. */ OffsetDateTime restorePointInTime(); /** * Gets the createMode property: Specifies the mode of sql pool creation. - * - *

Default: regular sql pool creation. - * - *

PointInTimeRestore: Creates a sql pool by restoring a point in time backup of an existing sql pool. + * + * Default: regular sql pool creation. + * + * PointInTimeRestore: Creates a sql pool by restoring a point in time backup of an existing sql pool. * sourceDatabaseId must be specified as the resource ID of the existing sql pool, and restorePointInTime must be * specified. - * - *

Recovery: Creates a sql pool by a geo-replicated backup. sourceDatabaseId must be specified as the + * + * Recovery: Creates a sql pool by a geo-replicated backup. sourceDatabaseId must be specified as the * recoverableDatabaseId to restore. - * - *

Restore: Creates a sql pool by restoring a backup of a deleted sql pool. SourceDatabaseId should be the sql + * + * Restore: Creates a sql pool by restoring a backup of a deleted sql pool. SourceDatabaseId should be the sql * pool's original resource ID. SourceDatabaseId and sourceDatabaseDeletionDate must be specified. - * + * * @return the createMode value. */ CreateMode createMode(); /** * Gets the creationDate property: Date the SQL pool was created. - * + * * @return the creationDate value. */ OffsetDateTime creationDate(); /** * Gets the storageAccountType property: The storage account type used to store backups for this sql pool. - * + * * @return the storageAccountType value. */ StorageAccountType storageAccountType(); /** * Gets the sourceDatabaseDeletionDate property: Specifies the time that the sql pool was deleted. - * + * * @return the sourceDatabaseDeletionDate value. */ OffsetDateTime sourceDatabaseDeletionDate(); /** * Gets the region of the resource. - * + * * @return the region of the resource. */ Region region(); /** * Gets the name of the resource region. - * + * * @return the name of the resource region. */ String regionName(); /** * Gets the name of the resource group. - * + * * @return the name of the resource group. */ String resourceGroupName(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.SqlPoolInner object. - * + * * @return the inner object. */ SqlPoolInner innerModel(); - /** The entirety of the SqlPool definition. */ - interface Definition - extends DefinitionStages.Blank, - DefinitionStages.WithLocation, - DefinitionStages.WithParentResource, - DefinitionStages.WithCreate { + /** + * The entirety of the SqlPool definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, + DefinitionStages.WithParentResource, DefinitionStages.WithCreate { } - /** The SqlPool definition stages. */ + + /** + * The SqlPool definition stages. + */ interface DefinitionStages { - /** The first stage of the SqlPool definition. */ + /** + * The first stage of the SqlPool definition. + */ interface Blank extends WithLocation { } - /** The stage of the SqlPool definition allowing to specify location. */ + + /** + * The stage of the SqlPool definition allowing to specify location. + */ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ @@ -198,340 +206,402 @@ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ WithParentResource withRegion(String location); } - /** The stage of the SqlPool definition allowing to specify parent resource. */ + + /** + * The stage of the SqlPool definition allowing to specify parent resource. + */ interface WithParentResource { /** * Specifies resourceGroupName, workspaceName. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @return the next definition stage. */ WithCreate withExistingWorkspace(String resourceGroupName, String workspaceName); } + /** * The stage of the SqlPool definition which contains all the minimum required properties for the resource to be * created, but also allows for any other optional properties to be specified. */ - interface WithCreate - extends DefinitionStages.WithTags, - DefinitionStages.WithSku, - DefinitionStages.WithMaxSizeBytes, - DefinitionStages.WithCollation, - DefinitionStages.WithSourceDatabaseId, - DefinitionStages.WithRecoverableDatabaseId, - DefinitionStages.WithProvisioningState, - DefinitionStages.WithRestorePointInTime, - DefinitionStages.WithCreateMode, - DefinitionStages.WithStorageAccountType, - DefinitionStages.WithSourceDatabaseDeletionDate { + interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithSku, + DefinitionStages.WithMaxSizeBytes, DefinitionStages.WithCollation, DefinitionStages.WithSourceDatabaseId, + DefinitionStages.WithRecoverableDatabaseId, DefinitionStages.WithProvisioningState, + DefinitionStages.WithRestorePointInTime, DefinitionStages.WithCreateMode, + DefinitionStages.WithStorageAccountType, DefinitionStages.WithSourceDatabaseDeletionDate { /** * Executes the create request. - * + * * @return the created resource. */ SqlPool create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ SqlPool create(Context context); } - /** The stage of the SqlPool definition allowing to specify tags. */ + + /** + * The stage of the SqlPool definition allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: Resource tags.. - * + * * @param tags Resource tags. * @return the next definition stage. */ WithCreate withTags(Map tags); } - /** The stage of the SqlPool definition allowing to specify sku. */ + + /** + * The stage of the SqlPool definition allowing to specify sku. + */ interface WithSku { /** * Specifies the sku property: Sku - * - *

SQL pool SKU. - * + * + * SQL pool SKU. + * * @param sku Sku - *

SQL pool SKU. + * + * SQL pool SKU. * @return the next definition stage. */ WithCreate withSku(Sku sku); } - /** The stage of the SqlPool definition allowing to specify maxSizeBytes. */ + + /** + * The stage of the SqlPool definition allowing to specify maxSizeBytes. + */ interface WithMaxSizeBytes { /** * Specifies the maxSizeBytes property: Maximum size in bytes. - * + * * @param maxSizeBytes Maximum size in bytes. * @return the next definition stage. */ WithCreate withMaxSizeBytes(Long maxSizeBytes); } - /** The stage of the SqlPool definition allowing to specify collation. */ + + /** + * The stage of the SqlPool definition allowing to specify collation. + */ interface WithCollation { /** * Specifies the collation property: Collation mode. - * + * * @param collation Collation mode. * @return the next definition stage. */ WithCreate withCollation(String collation); } - /** The stage of the SqlPool definition allowing to specify sourceDatabaseId. */ + + /** + * The stage of the SqlPool definition allowing to specify sourceDatabaseId. + */ interface WithSourceDatabaseId { /** * Specifies the sourceDatabaseId property: Source database to create from. - * + * * @param sourceDatabaseId Source database to create from. * @return the next definition stage. */ WithCreate withSourceDatabaseId(String sourceDatabaseId); } - /** The stage of the SqlPool definition allowing to specify recoverableDatabaseId. */ + + /** + * The stage of the SqlPool definition allowing to specify recoverableDatabaseId. + */ interface WithRecoverableDatabaseId { /** * Specifies the recoverableDatabaseId property: Backup database to restore from. - * + * * @param recoverableDatabaseId Backup database to restore from. * @return the next definition stage. */ WithCreate withRecoverableDatabaseId(String recoverableDatabaseId); } - /** The stage of the SqlPool definition allowing to specify provisioningState. */ + + /** + * The stage of the SqlPool definition allowing to specify provisioningState. + */ interface WithProvisioningState { /** * Specifies the provisioningState property: Resource state. - * + * * @param provisioningState Resource state. * @return the next definition stage. */ WithCreate withProvisioningState(String provisioningState); } - /** The stage of the SqlPool definition allowing to specify restorePointInTime. */ + + /** + * The stage of the SqlPool definition allowing to specify restorePointInTime. + */ interface WithRestorePointInTime { /** * Specifies the restorePointInTime property: Snapshot time to restore. - * + * * @param restorePointInTime Snapshot time to restore. * @return the next definition stage. */ WithCreate withRestorePointInTime(OffsetDateTime restorePointInTime); } - /** The stage of the SqlPool definition allowing to specify createMode. */ + + /** + * The stage of the SqlPool definition allowing to specify createMode. + */ interface WithCreateMode { /** * Specifies the createMode property: Specifies the mode of sql pool creation. - * - *

Default: regular sql pool creation. - * - *

PointInTimeRestore: Creates a sql pool by restoring a point in time backup of an existing sql pool. + * + * Default: regular sql pool creation. + * + * PointInTimeRestore: Creates a sql pool by restoring a point in time backup of an existing sql pool. * sourceDatabaseId must be specified as the resource ID of the existing sql pool, and restorePointInTime * must be specified. - * - *

Recovery: Creates a sql pool by a geo-replicated backup. sourceDatabaseId must be specified as the + * + * Recovery: Creates a sql pool by a geo-replicated backup. sourceDatabaseId must be specified as the * recoverableDatabaseId to restore. - * - *

Restore: Creates a sql pool by restoring a backup of a deleted sql pool. SourceDatabaseId should be - * the sql pool's original resource ID. SourceDatabaseId and sourceDatabaseDeletionDate must be specified.. - * + * + * Restore: Creates a sql pool by restoring a backup of a deleted sql pool. SourceDatabaseId should be the + * sql pool's original resource ID. SourceDatabaseId and sourceDatabaseDeletionDate must be specified.. + * * @param createMode Specifies the mode of sql pool creation. - *

Default: regular sql pool creation. - *

PointInTimeRestore: Creates a sql pool by restoring a point in time backup of an existing sql - * pool. sourceDatabaseId must be specified as the resource ID of the existing sql pool, and - * restorePointInTime must be specified. - *

Recovery: Creates a sql pool by a geo-replicated backup. sourceDatabaseId must be specified as the - * recoverableDatabaseId to restore. - *

Restore: Creates a sql pool by restoring a backup of a deleted sql pool. SourceDatabaseId should - * be the sql pool's original resource ID. SourceDatabaseId and sourceDatabaseDeletionDate must be - * specified. + * + * Default: regular sql pool creation. + * + * PointInTimeRestore: Creates a sql pool by restoring a point in time backup of an existing sql pool. + * sourceDatabaseId must be specified as the resource ID of the existing sql pool, and restorePointInTime + * must be specified. + * + * Recovery: Creates a sql pool by a geo-replicated backup. sourceDatabaseId must be specified as the + * recoverableDatabaseId to restore. + * + * Restore: Creates a sql pool by restoring a backup of a deleted sql pool. SourceDatabaseId should be the + * sql pool's original resource ID. SourceDatabaseId and sourceDatabaseDeletionDate must be specified. * @return the next definition stage. */ WithCreate withCreateMode(CreateMode createMode); } - /** The stage of the SqlPool definition allowing to specify storageAccountType. */ + + /** + * The stage of the SqlPool definition allowing to specify storageAccountType. + */ interface WithStorageAccountType { /** * Specifies the storageAccountType property: The storage account type used to store backups for this sql * pool.. - * + * * @param storageAccountType The storage account type used to store backups for this sql pool. * @return the next definition stage. */ WithCreate withStorageAccountType(StorageAccountType storageAccountType); } - /** The stage of the SqlPool definition allowing to specify sourceDatabaseDeletionDate. */ + + /** + * The stage of the SqlPool definition allowing to specify sourceDatabaseDeletionDate. + */ interface WithSourceDatabaseDeletionDate { /** * Specifies the sourceDatabaseDeletionDate property: Specifies the time that the sql pool was deleted. - * + * * @param sourceDatabaseDeletionDate Specifies the time that the sql pool was deleted. * @return the next definition stage. */ WithCreate withSourceDatabaseDeletionDate(OffsetDateTime sourceDatabaseDeletionDate); } } + /** * Begins update for the SqlPool resource. - * + * * @return the stage of resource update. */ SqlPool.Update update(); - /** The template for SqlPool update. */ - interface Update - extends UpdateStages.WithTags, - UpdateStages.WithSku, - UpdateStages.WithMaxSizeBytes, - UpdateStages.WithSourceDatabaseId, - UpdateStages.WithRecoverableDatabaseId, - UpdateStages.WithProvisioningState, - UpdateStages.WithCreateMode, - UpdateStages.WithStorageAccountType { + /** + * The template for SqlPool update. + */ + interface Update extends UpdateStages.WithTags, UpdateStages.WithSku, UpdateStages.WithMaxSizeBytes, + UpdateStages.WithSourceDatabaseId, UpdateStages.WithRecoverableDatabaseId, UpdateStages.WithProvisioningState, + UpdateStages.WithCreateMode, UpdateStages.WithStorageAccountType { /** * Executes the update request. - * + * * @return the updated resource. */ SqlPool apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ SqlPool apply(Context context); } - /** The SqlPool update stages. */ + + /** + * The SqlPool update stages. + */ interface UpdateStages { - /** The stage of the SqlPool update allowing to specify tags. */ + /** + * The stage of the SqlPool update allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: Resource tags.. - * + * * @param tags Resource tags. * @return the next definition stage. */ Update withTags(Map tags); } - /** The stage of the SqlPool update allowing to specify sku. */ + + /** + * The stage of the SqlPool update allowing to specify sku. + */ interface WithSku { /** * Specifies the sku property: Sku - * - *

SQL pool SKU. - * + * + * SQL pool SKU. + * * @param sku Sku - *

SQL pool SKU. + * + * SQL pool SKU. * @return the next definition stage. */ Update withSku(Sku sku); } - /** The stage of the SqlPool update allowing to specify maxSizeBytes. */ + + /** + * The stage of the SqlPool update allowing to specify maxSizeBytes. + */ interface WithMaxSizeBytes { /** * Specifies the maxSizeBytes property: Maximum size in bytes. - * + * * @param maxSizeBytes Maximum size in bytes. * @return the next definition stage. */ Update withMaxSizeBytes(Long maxSizeBytes); } - /** The stage of the SqlPool update allowing to specify sourceDatabaseId. */ + + /** + * The stage of the SqlPool update allowing to specify sourceDatabaseId. + */ interface WithSourceDatabaseId { /** * Specifies the sourceDatabaseId property: Source database to create from. - * + * * @param sourceDatabaseId Source database to create from. * @return the next definition stage. */ Update withSourceDatabaseId(String sourceDatabaseId); } - /** The stage of the SqlPool update allowing to specify recoverableDatabaseId. */ + + /** + * The stage of the SqlPool update allowing to specify recoverableDatabaseId. + */ interface WithRecoverableDatabaseId { /** * Specifies the recoverableDatabaseId property: Backup database to restore from. - * + * * @param recoverableDatabaseId Backup database to restore from. * @return the next definition stage. */ Update withRecoverableDatabaseId(String recoverableDatabaseId); } - /** The stage of the SqlPool update allowing to specify provisioningState. */ + + /** + * The stage of the SqlPool update allowing to specify provisioningState. + */ interface WithProvisioningState { /** * Specifies the provisioningState property: Resource state. - * + * * @param provisioningState Resource state. * @return the next definition stage. */ Update withProvisioningState(String provisioningState); } - /** The stage of the SqlPool update allowing to specify createMode. */ + + /** + * The stage of the SqlPool update allowing to specify createMode. + */ interface WithCreateMode { /** * Specifies the createMode property: Specifies the mode of sql pool creation. - * - *

Default: regular sql pool creation. - * - *

PointInTimeRestore: Creates a sql pool by restoring a point in time backup of an existing sql pool. + * + * Default: regular sql pool creation. + * + * PointInTimeRestore: Creates a sql pool by restoring a point in time backup of an existing sql pool. * sourceDatabaseId must be specified as the resource ID of the existing sql pool, and restorePointInTime * must be specified. - * - *

Recovery: Creates a sql pool by a geo-replicated backup. sourceDatabaseId must be specified as the + * + * Recovery: Creates a sql pool by a geo-replicated backup. sourceDatabaseId must be specified as the * recoverableDatabaseId to restore. - * - *

Restore: Creates a sql pool by restoring a backup of a deleted sql pool. SourceDatabaseId should be - * the sql pool's original resource ID. SourceDatabaseId and sourceDatabaseDeletionDate must be specified.. - * + * + * Restore: Creates a sql pool by restoring a backup of a deleted sql pool. SourceDatabaseId should be the + * sql pool's original resource ID. SourceDatabaseId and sourceDatabaseDeletionDate must be specified.. + * * @param createMode Specifies the mode of sql pool creation. - *

Default: regular sql pool creation. - *

PointInTimeRestore: Creates a sql pool by restoring a point in time backup of an existing sql - * pool. sourceDatabaseId must be specified as the resource ID of the existing sql pool, and - * restorePointInTime must be specified. - *

Recovery: Creates a sql pool by a geo-replicated backup. sourceDatabaseId must be specified as the - * recoverableDatabaseId to restore. - *

Restore: Creates a sql pool by restoring a backup of a deleted sql pool. SourceDatabaseId should - * be the sql pool's original resource ID. SourceDatabaseId and sourceDatabaseDeletionDate must be - * specified. + * + * Default: regular sql pool creation. + * + * PointInTimeRestore: Creates a sql pool by restoring a point in time backup of an existing sql pool. + * sourceDatabaseId must be specified as the resource ID of the existing sql pool, and restorePointInTime + * must be specified. + * + * Recovery: Creates a sql pool by a geo-replicated backup. sourceDatabaseId must be specified as the + * recoverableDatabaseId to restore. + * + * Restore: Creates a sql pool by restoring a backup of a deleted sql pool. SourceDatabaseId should be the + * sql pool's original resource ID. SourceDatabaseId and sourceDatabaseDeletionDate must be specified. * @return the next definition stage. */ Update withCreateMode(CreateMode createMode); } - /** The stage of the SqlPool update allowing to specify storageAccountType. */ + + /** + * The stage of the SqlPool update allowing to specify storageAccountType. + */ interface WithStorageAccountType { /** * Specifies the storageAccountType property: The storage account type used to store backups for this sql * pool.. - * + * * @param storageAccountType The storage account type used to store backups for this sql pool. * @return the next definition stage. */ Update withStorageAccountType(StorageAccountType storageAccountType); } } + /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ SqlPool refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ @@ -539,9 +609,9 @@ interface WithStorageAccountType { /** * Pause SQL pool - * - *

Pause a SQL pool. - * + * + * Pause a SQL pool. + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return sQL pool. @@ -550,9 +620,9 @@ interface WithStorageAccountType { /** * Pause SQL pool - * - *

Pause a SQL pool. - * + * + * Pause a SQL pool. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -563,9 +633,9 @@ interface WithStorageAccountType { /** * Resume SQL pool - * - *

Resume a SQL pool. - * + * + * Resume a SQL pool. + * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return sQL pool. @@ -574,9 +644,9 @@ interface WithStorageAccountType { /** * Resume SQL pool - * - *

Resume a SQL pool. - * + * + * Resume a SQL pool. + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -584,30 +654,4 @@ interface WithStorageAccountType { * @return sQL pool. */ SqlPool resume(Context context); - - /** - * Rename a SQL pool - * - *

Rename a SQL pool. - * - * @param parameters The resource move definition for renaming this Sql pool. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown 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}. - */ - Response renameWithResponse(ResourceMoveDefinition parameters, Context context); - - /** - * Rename a SQL pool - * - *

Rename a SQL pool. - * - * @param parameters The resource move definition for renaming this Sql pool. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void rename(ResourceMoveDefinition parameters); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolBlobAuditingPolicies.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolBlobAuditingPolicies.java index 8409a486db66..767ff1f0a681 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolBlobAuditingPolicies.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolBlobAuditingPolicies.java @@ -8,13 +8,15 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of SqlPoolBlobAuditingPolicies. */ +/** + * Resource collection API of SqlPoolBlobAuditingPolicies. + */ public interface SqlPoolBlobAuditingPolicies { /** * Get a SQL pool's blob auditing policy - * - *

Get a SQL pool's blob auditing policy. - * + * + * Get a SQL pool's blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -24,14 +26,14 @@ public interface SqlPoolBlobAuditingPolicies { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a SQL pool's blob auditing policy along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context); /** * Get a SQL pool's blob auditing policy - * - *

Get a SQL pool's blob auditing policy. - * + * + * Get a SQL pool's blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -44,7 +46,7 @@ Response getWithResponse( /** * Lists auditing settings of a Sql pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -53,12 +55,12 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of Sql pool auditing settings as paginated response with {@link PagedIterable}. */ - PagedIterable listBySqlPool( - String resourceGroupName, String workspaceName, String sqlPoolName); + PagedIterable listBySqlPool(String resourceGroupName, String workspaceName, + String sqlPoolName); /** * Lists auditing settings of a Sql pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -68,14 +70,14 @@ PagedIterable listBySqlPool( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of Sql pool auditing settings as paginated response with {@link PagedIterable}. */ - PagedIterable listBySqlPool( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + PagedIterable listBySqlPool(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context); /** * Get a SQL pool's blob auditing policy - * - *

Get a SQL pool's blob auditing policy. - * + * + * Get a SQL pool's blob auditing policy. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -86,9 +88,9 @@ PagedIterable listBySqlPool( /** * Get a SQL pool's blob auditing policy - * - *

Get a SQL pool's blob auditing policy. - * + * + * Get a SQL pool's blob auditing policy. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -100,7 +102,7 @@ PagedIterable listBySqlPool( /** * Begins definition for a new SqlPoolBlobAuditingPolicy resource. - * + * * @return the first stage of the new SqlPoolBlobAuditingPolicy definition. */ SqlPoolBlobAuditingPolicy.DefinitionStages.Blank define(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolBlobAuditingPolicy.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolBlobAuditingPolicy.java index 9db90a622155..207ce1aa3491 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolBlobAuditingPolicy.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolBlobAuditingPolicy.java @@ -9,32 +9,34 @@ import java.util.List; import java.util.UUID; -/** An immutable client-side representation of SqlPoolBlobAuditingPolicy. */ +/** + * An immutable client-side representation of SqlPoolBlobAuditingPolicy. + */ public interface SqlPoolBlobAuditingPolicy { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the kind property: Resource kind. - * + * * @return the kind value. */ String kind(); @@ -42,7 +44,7 @@ public interface SqlPoolBlobAuditingPolicy { /** * Gets the state property: Specifies the state of the policy. If state is Enabled, storageEndpoint or * isAzureMonitorTargetEnabled are required. - * + * * @return the state value. */ BlobAuditingPolicyState state(); @@ -50,7 +52,7 @@ public interface SqlPoolBlobAuditingPolicy { /** * Gets the storageEndpoint property: Specifies the blob storage endpoint (e.g. * https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint is required. - * + * * @return the storageEndpoint value. */ String storageEndpoint(); @@ -58,68 +60,93 @@ public interface SqlPoolBlobAuditingPolicy { /** * Gets the storageAccountAccessKey property: Specifies the identifier key of the auditing storage account. If state * is Enabled and storageEndpoint is specified, storageAccountAccessKey is required. - * + * * @return the storageAccountAccessKey value. */ String storageAccountAccessKey(); /** * Gets the retentionDays property: Specifies the number of days to keep in the audit logs in the storage account. - * + * * @return the retentionDays value. */ Integer retentionDays(); /** * Gets the auditActionsAndGroups property: Specifies the Actions-Groups and Actions to audit. - * - *

The recommended set of action groups to use is the following combination - this will audit all the queries and + * + * The recommended set of action groups to use is the following combination - this will audit all the queries and * stored procedures executed against the database, as well as successful and failed logins: - * - *

BATCH_COMPLETED_GROUP, SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, FAILED_DATABASE_AUTHENTICATION_GROUP. - * - *

This above combination is also the set that is configured by default when enabling auditing from the Azure + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing from the Azure * portal. - * - *

The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. - * Using unnecessary groups could lead to very large quantities of audit records): - * - *

APPLICATION_ROLE_CHANGE_PASSWORD_GROUP BACKUP_RESTORE_GROUP DATABASE_LOGOUT_GROUP DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP DATABASE_OBJECT_PERMISSION_CHANGE_GROUP DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP DATABASE_PRINCIPAL_CHANGE_GROUP DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP FAILED_DATABASE_AUTHENTICATION_GROUP SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP USER_CHANGE_PASSWORD_GROUP BATCH_STARTED_GROUP BATCH_COMPLETED_GROUP - * - *

These are groups that cover all sql statements and stored procedures executed against the database, and should + * + * The supported action groups to audit are (note: choose only specific groups that cover your auditing needs. Using + * unnecessary groups could lead to very large quantities of audit records): + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP + * BATCH_COMPLETED_GROUP + * + * These are groups that cover all sql statements and stored procedures executed against the database, and should * not be used in combination with other groups as this will result in duplicate audit logs. - * - *

For more information, see [Database-Level Audit Action + * + * For more information, see [Database-Level Audit Action * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - *

For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified - * for Server auditing policy). The supported actions to audit are: SELECT UPDATE INSERT DELETE EXECUTE RECEIVE + * + * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for + * Server auditing policy). The supported actions to audit are: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE * REFERENCES - * - *

The general form for defining an action to be audited is: {action} ON {object} BY {principal} - * - *

Note that <object> in the above format can refer to an object like a table, view, or stored procedure, - * or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} - * are used, respectively. - * - *

For example: SELECT on dbo.myTable by public SELECT on DATABASE::myDatabase by public SELECT on - * SCHEMA::mySchema by public - * - *

For more information, see [Database-Level Audit + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note that <object> in the above format can refer to an object like a table, view, or stored procedure, or + * an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are + * used, respectively. + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For more information, see [Database-Level Audit * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions). - * + * * @return the auditActionsAndGroups value. */ List auditActionsAndGroups(); /** * Gets the storageAccountSubscriptionId property: Specifies the blob storage subscription Id. - * + * * @return the storageAccountSubscriptionId value. */ UUID storageAccountSubscriptionId(); @@ -127,57 +154,69 @@ public interface SqlPoolBlobAuditingPolicy { /** * Gets the isStorageSecondaryKeyInUse property: Specifies whether storageAccountAccessKey value is the storage's * secondary key. - * + * * @return the isStorageSecondaryKeyInUse value. */ Boolean isStorageSecondaryKeyInUse(); /** - * Gets the isAzureMonitorTargetEnabled property: Specifies whether audit events are sent to Azure Monitor. In order - * to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as true. - * - *

When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs - * category on the database should be also created. Note that for server level audit you should use the 'master' - * database as {databaseName}. - * - *

Diagnostic Settings URI format: PUT + * Gets the isAzureMonitorTargetEnabled property: Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as + * true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs + * category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - *

For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) or - * [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). - * + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * * @return the isAzureMonitorTargetEnabled value. */ Boolean isAzureMonitorTargetEnabled(); /** * Gets the name of the resource group. - * + * * @return the name of the resource group. */ String resourceGroupName(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.SqlPoolBlobAuditingPolicyInner object. - * + * * @return the inner object. */ SqlPoolBlobAuditingPolicyInner innerModel(); - /** The entirety of the SqlPoolBlobAuditingPolicy definition. */ + /** + * The entirety of the SqlPoolBlobAuditingPolicy definition. + */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { } - /** The SqlPoolBlobAuditingPolicy definition stages. */ + + /** + * The SqlPoolBlobAuditingPolicy definition stages. + */ interface DefinitionStages { - /** The first stage of the SqlPoolBlobAuditingPolicy definition. */ + /** + * The first stage of the SqlPoolBlobAuditingPolicy definition. + */ interface Blank extends WithParentResource { } - /** The stage of the SqlPoolBlobAuditingPolicy definition allowing to specify parent resource. */ + + /** + * The stage of the SqlPoolBlobAuditingPolicy definition allowing to specify parent resource. + */ interface WithParentResource { /** * Specifies resourceGroupName, workspaceName, sqlPoolName. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -185,429 +224,591 @@ interface WithParentResource { */ WithCreate withExistingSqlPool(String resourceGroupName, String workspaceName, String sqlPoolName); } + /** * The stage of the SqlPoolBlobAuditingPolicy definition which contains all the minimum required properties for * the resource to be created, but also allows for any other optional properties to be specified. */ - interface WithCreate - extends DefinitionStages.WithState, - DefinitionStages.WithStorageEndpoint, - DefinitionStages.WithStorageAccountAccessKey, - DefinitionStages.WithRetentionDays, - DefinitionStages.WithAuditActionsAndGroups, - DefinitionStages.WithStorageAccountSubscriptionId, - DefinitionStages.WithIsStorageSecondaryKeyInUse, - DefinitionStages.WithIsAzureMonitorTargetEnabled { + interface WithCreate extends DefinitionStages.WithState, DefinitionStages.WithStorageEndpoint, + DefinitionStages.WithStorageAccountAccessKey, DefinitionStages.WithRetentionDays, + DefinitionStages.WithAuditActionsAndGroups, DefinitionStages.WithStorageAccountSubscriptionId, + DefinitionStages.WithIsStorageSecondaryKeyInUse, DefinitionStages.WithIsAzureMonitorTargetEnabled { /** * Executes the create request. - * + * * @return the created resource. */ SqlPoolBlobAuditingPolicy create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ SqlPoolBlobAuditingPolicy create(Context context); } - /** The stage of the SqlPoolBlobAuditingPolicy definition allowing to specify state. */ + + /** + * The stage of the SqlPoolBlobAuditingPolicy definition allowing to specify state. + */ interface WithState { /** * Specifies the state property: Specifies the state of the policy. If state is Enabled, storageEndpoint or * isAzureMonitorTargetEnabled are required.. - * + * * @param state Specifies the state of the policy. If state is Enabled, storageEndpoint or - * isAzureMonitorTargetEnabled are required. + * isAzureMonitorTargetEnabled are required. * @return the next definition stage. */ WithCreate withState(BlobAuditingPolicyState state); } - /** The stage of the SqlPoolBlobAuditingPolicy definition allowing to specify storageEndpoint. */ + + /** + * The stage of the SqlPoolBlobAuditingPolicy definition allowing to specify storageEndpoint. + */ interface WithStorageEndpoint { /** * Specifies the storageEndpoint property: Specifies the blob storage endpoint (e.g. * https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint is required.. - * + * * @param storageEndpoint Specifies the blob storage endpoint (e.g. - * https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint is required. + * https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint is required. * @return the next definition stage. */ WithCreate withStorageEndpoint(String storageEndpoint); } - /** The stage of the SqlPoolBlobAuditingPolicy definition allowing to specify storageAccountAccessKey. */ + + /** + * The stage of the SqlPoolBlobAuditingPolicy definition allowing to specify storageAccountAccessKey. + */ interface WithStorageAccountAccessKey { /** * Specifies the storageAccountAccessKey property: Specifies the identifier key of the auditing storage * account. If state is Enabled and storageEndpoint is specified, storageAccountAccessKey is required.. - * + * * @param storageAccountAccessKey Specifies the identifier key of the auditing storage account. If state is - * Enabled and storageEndpoint is specified, storageAccountAccessKey is required. + * Enabled and storageEndpoint is specified, storageAccountAccessKey is required. * @return the next definition stage. */ WithCreate withStorageAccountAccessKey(String storageAccountAccessKey); } - /** The stage of the SqlPoolBlobAuditingPolicy definition allowing to specify retentionDays. */ + + /** + * The stage of the SqlPoolBlobAuditingPolicy definition allowing to specify retentionDays. + */ interface WithRetentionDays { /** * Specifies the retentionDays property: Specifies the number of days to keep in the audit logs in the * storage account.. - * + * * @param retentionDays Specifies the number of days to keep in the audit logs in the storage account. * @return the next definition stage. */ WithCreate withRetentionDays(Integer retentionDays); } - /** The stage of the SqlPoolBlobAuditingPolicy definition allowing to specify auditActionsAndGroups. */ + + /** + * The stage of the SqlPoolBlobAuditingPolicy definition allowing to specify auditActionsAndGroups. + */ interface WithAuditActionsAndGroups { /** * Specifies the auditActionsAndGroups property: Specifies the Actions-Groups and Actions to audit. - * - *

The recommended set of action groups to use is the following combination - this will audit all the + * + * The recommended set of action groups to use is the following combination - this will audit all the * queries and stored procedures executed against the database, as well as successful and failed logins: - * - *

BATCH_COMPLETED_GROUP, SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, FAILED_DATABASE_AUTHENTICATION_GROUP. - * - *

This above combination is also the set that is configured by default when enabling auditing from the + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing from the * Azure portal. - * - *

The supported action groups to audit are (note: choose only specific groups that cover your auditing + * + * The supported action groups to audit are (note: choose only specific groups that cover your auditing * needs. Using unnecessary groups could lead to very large quantities of audit records): - * - *

APPLICATION_ROLE_CHANGE_PASSWORD_GROUP BACKUP_RESTORE_GROUP DATABASE_LOGOUT_GROUP - * DATABASE_OBJECT_CHANGE_GROUP DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP - * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP DATABASE_OPERATION_GROUP DATABASE_PERMISSION_CHANGE_GROUP - * DATABASE_PRINCIPAL_CHANGE_GROUP DATABASE_PRINCIPAL_IMPERSONATION_GROUP DATABASE_ROLE_MEMBER_CHANGE_GROUP - * FAILED_DATABASE_AUTHENTICATION_GROUP SCHEMA_OBJECT_ACCESS_GROUP SCHEMA_OBJECT_CHANGE_GROUP - * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP USER_CHANGE_PASSWORD_GROUP BATCH_STARTED_GROUP + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP * BATCH_COMPLETED_GROUP - * - *

These are groups that cover all sql statements and stored procedures executed against the database, - * and should not be used in combination with other groups as this will result in duplicate audit logs. - * - *

For more information, see [Database-Level Audit Action + * + * These are groups that cover all sql statements and stored procedures executed against the database, and + * should not be used in combination with other groups as this will result in duplicate audit logs. + * + * For more information, see [Database-Level Audit Action * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - *

For Database auditing policy, specific Actions can also be specified (note that Actions cannot be - * specified for Server auditing policy). The supported actions to audit are: SELECT UPDATE INSERT DELETE - * EXECUTE RECEIVE REFERENCES - * - *

The general form for defining an action to be audited is: {action} ON {object} BY {principal} - * - *

Note that <object> in the above format can refer to an object like a table, view, or stored + * + * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be + * specified for Server auditing policy). The supported actions to audit are: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE + * REFERENCES + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note that <object> in the above format can refer to an object like a table, view, or stored * procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and * SCHEMA::{schema_name} are used, respectively. - * - *

For example: SELECT on dbo.myTable by public SELECT on DATABASE::myDatabase by public SELECT on - * SCHEMA::mySchema by public - * - *

For more information, see [Database-Level Audit + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For more information, see [Database-Level Audit * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions). - * + * * @param auditActionsAndGroups Specifies the Actions-Groups and Actions to audit. - *

The recommended set of action groups to use is the following combination - this will audit all the - * queries and stored procedures executed against the database, as well as successful and failed logins: - *

BATCH_COMPLETED_GROUP, SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, - * FAILED_DATABASE_AUTHENTICATION_GROUP. - *

This above combination is also the set that is configured by default when enabling auditing from - * the Azure portal. - *

The supported action groups to audit are (note: choose only specific groups that cover your - * auditing needs. Using unnecessary groups could lead to very large quantities of audit records): - *

APPLICATION_ROLE_CHANGE_PASSWORD_GROUP BACKUP_RESTORE_GROUP DATABASE_LOGOUT_GROUP - * DATABASE_OBJECT_CHANGE_GROUP DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP - * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP DATABASE_OPERATION_GROUP DATABASE_PERMISSION_CHANGE_GROUP - * DATABASE_PRINCIPAL_CHANGE_GROUP DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP FAILED_DATABASE_AUTHENTICATION_GROUP SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP USER_CHANGE_PASSWORD_GROUP BATCH_STARTED_GROUP - * BATCH_COMPLETED_GROUP - *

These are groups that cover all sql statements and stored procedures executed against the - * database, and should not be used in combination with other groups as this will result in duplicate - * audit logs. - *

For more information, see [Database-Level Audit Action - * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - *

For Database auditing policy, specific Actions can also be specified (note that Actions cannot be - * specified for Server auditing policy). The supported actions to audit are: SELECT UPDATE INSERT - * DELETE EXECUTE RECEIVE REFERENCES - *

The general form for defining an action to be audited is: {action} ON {object} BY {principal} - *

Note that <object> in the above format can refer to an object like a table, view, or stored - * procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and - * SCHEMA::{schema_name} are used, respectively. - *

For example: SELECT on dbo.myTable by public SELECT on DATABASE::myDatabase by public SELECT on - * SCHEMA::mySchema by public - *

For more information, see [Database-Level Audit - * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions). + * + * The recommended set of action groups to use is the following combination - this will audit all the + * queries and stored procedures executed against the database, as well as successful and failed logins: + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing from the + * Azure portal. + * + * The supported action groups to audit are (note: choose only specific groups that cover your auditing + * needs. Using unnecessary groups could lead to very large quantities of audit records): + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP + * BATCH_COMPLETED_GROUP + * + * These are groups that cover all sql statements and stored procedures executed against the database, and + * should not be used in combination with other groups as this will result in duplicate audit logs. + * + * For more information, see [Database-Level Audit Action + * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). + * + * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be + * specified for Server auditing policy). The supported actions to audit are: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE + * REFERENCES + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note that <object> in the above format can refer to an object like a table, view, or stored + * procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and + * SCHEMA::{schema_name} are used, respectively. + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For more information, see [Database-Level Audit + * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions). * @return the next definition stage. */ WithCreate withAuditActionsAndGroups(List auditActionsAndGroups); } - /** The stage of the SqlPoolBlobAuditingPolicy definition allowing to specify storageAccountSubscriptionId. */ + + /** + * The stage of the SqlPoolBlobAuditingPolicy definition allowing to specify storageAccountSubscriptionId. + */ interface WithStorageAccountSubscriptionId { /** * Specifies the storageAccountSubscriptionId property: Specifies the blob storage subscription Id.. - * + * * @param storageAccountSubscriptionId Specifies the blob storage subscription Id. * @return the next definition stage. */ WithCreate withStorageAccountSubscriptionId(UUID storageAccountSubscriptionId); } - /** The stage of the SqlPoolBlobAuditingPolicy definition allowing to specify isStorageSecondaryKeyInUse. */ + + /** + * The stage of the SqlPoolBlobAuditingPolicy definition allowing to specify isStorageSecondaryKeyInUse. + */ interface WithIsStorageSecondaryKeyInUse { /** * Specifies the isStorageSecondaryKeyInUse property: Specifies whether storageAccountAccessKey value is the * storage's secondary key.. - * + * * @param isStorageSecondaryKeyInUse Specifies whether storageAccountAccessKey value is the storage's - * secondary key. + * secondary key. * @return the next definition stage. */ WithCreate withIsStorageSecondaryKeyInUse(Boolean isStorageSecondaryKeyInUse); } - /** The stage of the SqlPoolBlobAuditingPolicy definition allowing to specify isAzureMonitorTargetEnabled. */ + + /** + * The stage of the SqlPoolBlobAuditingPolicy definition allowing to specify isAzureMonitorTargetEnabled. + */ interface WithIsAzureMonitorTargetEnabled { /** * Specifies the isAzureMonitorTargetEnabled property: Specifies whether audit events are sent to Azure - * Monitor. In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and + * Monitor. + * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and + * 'isAzureMonitorTargetEnabled' as true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic + * logs category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT + * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + * . + * + * @param isAzureMonitorTargetEnabled Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and * 'isAzureMonitorTargetEnabled' as true. - * - *

When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' - * diagnostic logs category on the database should be also created. Note that for server level audit you - * should use the 'master' database as {databaseName}. - * - *

Diagnostic Settings URI format: PUT + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic + * logs category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - *

For more information, see [Diagnostic Settings REST - * API](https://go.microsoft.com/fwlink/?linkid=2033207) or [Diagnostic Settings - * PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) . - * - * @param isAzureMonitorTargetEnabled Specifies whether audit events are sent to Azure Monitor. In order to - * send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as - * true. - *

When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' - * diagnostic logs category on the database should be also created. Note that for server level audit you - * should use the 'master' database as {databaseName}. - *

Diagnostic Settings URI format: PUT - * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - *

For more information, see [Diagnostic Settings REST - * API](https://go.microsoft.com/fwlink/?linkid=2033207) or [Diagnostic Settings - * PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). * @return the next definition stage. */ WithCreate withIsAzureMonitorTargetEnabled(Boolean isAzureMonitorTargetEnabled); } } + /** * Begins update for the SqlPoolBlobAuditingPolicy resource. - * + * * @return the stage of resource update. */ SqlPoolBlobAuditingPolicy.Update update(); - /** The template for SqlPoolBlobAuditingPolicy update. */ - interface Update - extends UpdateStages.WithState, - UpdateStages.WithStorageEndpoint, - UpdateStages.WithStorageAccountAccessKey, - UpdateStages.WithAuditActionsAndGroups, - UpdateStages.WithIsStorageSecondaryKeyInUse, - UpdateStages.WithIsAzureMonitorTargetEnabled { + /** + * The template for SqlPoolBlobAuditingPolicy update. + */ + interface Update extends UpdateStages.WithState, UpdateStages.WithStorageEndpoint, + UpdateStages.WithStorageAccountAccessKey, UpdateStages.WithAuditActionsAndGroups, + UpdateStages.WithIsStorageSecondaryKeyInUse, UpdateStages.WithIsAzureMonitorTargetEnabled { /** * Executes the update request. - * + * * @return the updated resource. */ SqlPoolBlobAuditingPolicy apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ SqlPoolBlobAuditingPolicy apply(Context context); } - /** The SqlPoolBlobAuditingPolicy update stages. */ + + /** + * The SqlPoolBlobAuditingPolicy update stages. + */ interface UpdateStages { - /** The stage of the SqlPoolBlobAuditingPolicy update allowing to specify state. */ + /** + * The stage of the SqlPoolBlobAuditingPolicy update allowing to specify state. + */ interface WithState { /** * Specifies the state property: Specifies the state of the policy. If state is Enabled, storageEndpoint or * isAzureMonitorTargetEnabled are required.. - * + * * @param state Specifies the state of the policy. If state is Enabled, storageEndpoint or - * isAzureMonitorTargetEnabled are required. + * isAzureMonitorTargetEnabled are required. * @return the next definition stage. */ Update withState(BlobAuditingPolicyState state); } - /** The stage of the SqlPoolBlobAuditingPolicy update allowing to specify storageEndpoint. */ + + /** + * The stage of the SqlPoolBlobAuditingPolicy update allowing to specify storageEndpoint. + */ interface WithStorageEndpoint { /** * Specifies the storageEndpoint property: Specifies the blob storage endpoint (e.g. * https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint is required.. - * + * * @param storageEndpoint Specifies the blob storage endpoint (e.g. - * https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint is required. + * https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint is required. * @return the next definition stage. */ Update withStorageEndpoint(String storageEndpoint); } - /** The stage of the SqlPoolBlobAuditingPolicy update allowing to specify storageAccountAccessKey. */ + + /** + * The stage of the SqlPoolBlobAuditingPolicy update allowing to specify storageAccountAccessKey. + */ interface WithStorageAccountAccessKey { /** * Specifies the storageAccountAccessKey property: Specifies the identifier key of the auditing storage * account. If state is Enabled and storageEndpoint is specified, storageAccountAccessKey is required.. - * + * * @param storageAccountAccessKey Specifies the identifier key of the auditing storage account. If state is - * Enabled and storageEndpoint is specified, storageAccountAccessKey is required. + * Enabled and storageEndpoint is specified, storageAccountAccessKey is required. * @return the next definition stage. */ Update withStorageAccountAccessKey(String storageAccountAccessKey); } - /** The stage of the SqlPoolBlobAuditingPolicy update allowing to specify auditActionsAndGroups. */ + + /** + * The stage of the SqlPoolBlobAuditingPolicy update allowing to specify auditActionsAndGroups. + */ interface WithAuditActionsAndGroups { /** * Specifies the auditActionsAndGroups property: Specifies the Actions-Groups and Actions to audit. - * - *

The recommended set of action groups to use is the following combination - this will audit all the + * + * The recommended set of action groups to use is the following combination - this will audit all the * queries and stored procedures executed against the database, as well as successful and failed logins: - * - *

BATCH_COMPLETED_GROUP, SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, FAILED_DATABASE_AUTHENTICATION_GROUP. - * - *

This above combination is also the set that is configured by default when enabling auditing from the + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing from the * Azure portal. - * - *

The supported action groups to audit are (note: choose only specific groups that cover your auditing + * + * The supported action groups to audit are (note: choose only specific groups that cover your auditing * needs. Using unnecessary groups could lead to very large quantities of audit records): - * - *

APPLICATION_ROLE_CHANGE_PASSWORD_GROUP BACKUP_RESTORE_GROUP DATABASE_LOGOUT_GROUP - * DATABASE_OBJECT_CHANGE_GROUP DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP - * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP DATABASE_OPERATION_GROUP DATABASE_PERMISSION_CHANGE_GROUP - * DATABASE_PRINCIPAL_CHANGE_GROUP DATABASE_PRINCIPAL_IMPERSONATION_GROUP DATABASE_ROLE_MEMBER_CHANGE_GROUP - * FAILED_DATABASE_AUTHENTICATION_GROUP SCHEMA_OBJECT_ACCESS_GROUP SCHEMA_OBJECT_CHANGE_GROUP - * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP USER_CHANGE_PASSWORD_GROUP BATCH_STARTED_GROUP + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP * BATCH_COMPLETED_GROUP - * - *

These are groups that cover all sql statements and stored procedures executed against the database, - * and should not be used in combination with other groups as this will result in duplicate audit logs. - * - *

For more information, see [Database-Level Audit Action + * + * These are groups that cover all sql statements and stored procedures executed against the database, and + * should not be used in combination with other groups as this will result in duplicate audit logs. + * + * For more information, see [Database-Level Audit Action * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - *

For Database auditing policy, specific Actions can also be specified (note that Actions cannot be - * specified for Server auditing policy). The supported actions to audit are: SELECT UPDATE INSERT DELETE - * EXECUTE RECEIVE REFERENCES - * - *

The general form for defining an action to be audited is: {action} ON {object} BY {principal} - * - *

Note that <object> in the above format can refer to an object like a table, view, or stored + * + * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be + * specified for Server auditing policy). The supported actions to audit are: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE + * REFERENCES + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note that <object> in the above format can refer to an object like a table, view, or stored * procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and * SCHEMA::{schema_name} are used, respectively. - * - *

For example: SELECT on dbo.myTable by public SELECT on DATABASE::myDatabase by public SELECT on - * SCHEMA::mySchema by public - * - *

For more information, see [Database-Level Audit + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For more information, see [Database-Level Audit * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions). - * + * * @param auditActionsAndGroups Specifies the Actions-Groups and Actions to audit. - *

The recommended set of action groups to use is the following combination - this will audit all the - * queries and stored procedures executed against the database, as well as successful and failed logins: - *

BATCH_COMPLETED_GROUP, SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, - * FAILED_DATABASE_AUTHENTICATION_GROUP. - *

This above combination is also the set that is configured by default when enabling auditing from - * the Azure portal. - *

The supported action groups to audit are (note: choose only specific groups that cover your - * auditing needs. Using unnecessary groups could lead to very large quantities of audit records): - *

APPLICATION_ROLE_CHANGE_PASSWORD_GROUP BACKUP_RESTORE_GROUP DATABASE_LOGOUT_GROUP - * DATABASE_OBJECT_CHANGE_GROUP DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP - * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP DATABASE_OPERATION_GROUP DATABASE_PERMISSION_CHANGE_GROUP - * DATABASE_PRINCIPAL_CHANGE_GROUP DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP FAILED_DATABASE_AUTHENTICATION_GROUP SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP USER_CHANGE_PASSWORD_GROUP BATCH_STARTED_GROUP - * BATCH_COMPLETED_GROUP - *

These are groups that cover all sql statements and stored procedures executed against the - * database, and should not be used in combination with other groups as this will result in duplicate - * audit logs. - *

For more information, see [Database-Level Audit Action - * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - *

For Database auditing policy, specific Actions can also be specified (note that Actions cannot be - * specified for Server auditing policy). The supported actions to audit are: SELECT UPDATE INSERT - * DELETE EXECUTE RECEIVE REFERENCES - *

The general form for defining an action to be audited is: {action} ON {object} BY {principal} - *

Note that <object> in the above format can refer to an object like a table, view, or stored - * procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and - * SCHEMA::{schema_name} are used, respectively. - *

For example: SELECT on dbo.myTable by public SELECT on DATABASE::myDatabase by public SELECT on - * SCHEMA::mySchema by public - *

For more information, see [Database-Level Audit - * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions). + * + * The recommended set of action groups to use is the following combination - this will audit all the + * queries and stored procedures executed against the database, as well as successful and failed logins: + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing from the + * Azure portal. + * + * The supported action groups to audit are (note: choose only specific groups that cover your auditing + * needs. Using unnecessary groups could lead to very large quantities of audit records): + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP + * BATCH_COMPLETED_GROUP + * + * These are groups that cover all sql statements and stored procedures executed against the database, and + * should not be used in combination with other groups as this will result in duplicate audit logs. + * + * For more information, see [Database-Level Audit Action + * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). + * + * For Database auditing policy, specific Actions can also be specified (note that Actions cannot be + * specified for Server auditing policy). The supported actions to audit are: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE + * REFERENCES + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note that <object> in the above format can refer to an object like a table, view, or stored + * procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and + * SCHEMA::{schema_name} are used, respectively. + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For more information, see [Database-Level Audit + * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions). * @return the next definition stage. */ Update withAuditActionsAndGroups(List auditActionsAndGroups); } - /** The stage of the SqlPoolBlobAuditingPolicy update allowing to specify isStorageSecondaryKeyInUse. */ + + /** + * The stage of the SqlPoolBlobAuditingPolicy update allowing to specify isStorageSecondaryKeyInUse. + */ interface WithIsStorageSecondaryKeyInUse { /** * Specifies the isStorageSecondaryKeyInUse property: Specifies whether storageAccountAccessKey value is the * storage's secondary key.. - * + * * @param isStorageSecondaryKeyInUse Specifies whether storageAccountAccessKey value is the storage's - * secondary key. + * secondary key. * @return the next definition stage. */ Update withIsStorageSecondaryKeyInUse(Boolean isStorageSecondaryKeyInUse); } - /** The stage of the SqlPoolBlobAuditingPolicy update allowing to specify isAzureMonitorTargetEnabled. */ + + /** + * The stage of the SqlPoolBlobAuditingPolicy update allowing to specify isAzureMonitorTargetEnabled. + */ interface WithIsAzureMonitorTargetEnabled { /** * Specifies the isAzureMonitorTargetEnabled property: Specifies whether audit events are sent to Azure - * Monitor. In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and + * Monitor. + * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and + * 'isAzureMonitorTargetEnabled' as true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic + * logs category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT + * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + * . + * + * @param isAzureMonitorTargetEnabled Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and * 'isAzureMonitorTargetEnabled' as true. - * - *

When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' - * diagnostic logs category on the database should be also created. Note that for server level audit you - * should use the 'master' database as {databaseName}. - * - *

Diagnostic Settings URI format: PUT + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic + * logs category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - *

For more information, see [Diagnostic Settings REST - * API](https://go.microsoft.com/fwlink/?linkid=2033207) or [Diagnostic Settings - * PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) . - * - * @param isAzureMonitorTargetEnabled Specifies whether audit events are sent to Azure Monitor. In order to - * send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as - * true. - *

When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' - * diagnostic logs category on the database should be also created. Note that for server level audit you - * should use the 'master' database as {databaseName}. - *

Diagnostic Settings URI format: PUT - * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - *

For more information, see [Diagnostic Settings REST - * API](https://go.microsoft.com/fwlink/?linkid=2033207) or [Diagnostic Settings - * PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). + * + * For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043). * @return the next definition stage. */ Update withIsAzureMonitorTargetEnabled(Boolean isAzureMonitorTargetEnabled); } } + /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ SqlPoolBlobAuditingPolicy refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolBlobAuditingPolicyListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolBlobAuditingPolicyListResult.java index ef9139f0c014..3687a28d350a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolBlobAuditingPolicyListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolBlobAuditingPolicyListResult.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** A list of Sql pool auditing settings. */ +/** + * A list of Sql pool auditing settings. + */ @Immutable public final class SqlPoolBlobAuditingPolicyListResult { /* @@ -24,13 +26,15 @@ public final class SqlPoolBlobAuditingPolicyListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; - /** Creates an instance of SqlPoolBlobAuditingPolicyListResult class. */ + /** + * Creates an instance of SqlPoolBlobAuditingPolicyListResult class. + */ public SqlPoolBlobAuditingPolicyListResult() { } /** * Get the value property: Array of results. - * + * * @return the value value. */ public List value() { @@ -39,7 +43,7 @@ public List value() { /** * Get the nextLink property: Link to retrieve next page of results. - * + * * @return the nextLink value. */ public String nextLink() { @@ -48,7 +52,7 @@ public String nextLink() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolBlobAuditingPolicySqlPoolOperationListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolBlobAuditingPolicySqlPoolOperationListResult.java index 9ec6c94cba67..6afd71272e2e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolBlobAuditingPolicySqlPoolOperationListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolBlobAuditingPolicySqlPoolOperationListResult.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The response to a list Sql pool operations request. */ +/** + * The response to a list Sql pool operations request. + */ @Immutable public final class SqlPoolBlobAuditingPolicySqlPoolOperationListResult { /* @@ -24,13 +26,15 @@ public final class SqlPoolBlobAuditingPolicySqlPoolOperationListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; - /** Creates an instance of SqlPoolBlobAuditingPolicySqlPoolOperationListResult class. */ + /** + * Creates an instance of SqlPoolBlobAuditingPolicySqlPoolOperationListResult class. + */ public SqlPoolBlobAuditingPolicySqlPoolOperationListResult() { } /** * Get the value property: Array of results. - * + * * @return the value value. */ public List value() { @@ -39,7 +43,7 @@ public List value() { /** * Get the nextLink property: Link to retrieve next page of results. - * + * * @return the nextLink value. */ public String nextLink() { @@ -48,7 +52,7 @@ public String nextLink() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolColumn.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolColumn.java index 86a57749d3fa..2a1a7cd7dcf3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolColumn.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolColumn.java @@ -6,46 +6,48 @@ import com.azure.resourcemanager.synapse.fluent.models.SqlPoolColumnInner; -/** An immutable client-side representation of SqlPoolColumn. */ +/** + * An immutable client-side representation of SqlPoolColumn. + */ public interface SqlPoolColumn { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the columnType property: The column data type. - * + * * @return the columnType value. */ ColumnDataType columnType(); /** * Gets the isComputed property: Indicates whether column value is computed or not. - * + * * @return the isComputed value. */ Boolean isComputed(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.SqlPoolColumnInner object. - * + * * @return the inner object. */ SqlPoolColumnInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolColumnListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolColumnListResult.java index 370ece71a77b..4983d761c0c6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolColumnListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolColumnListResult.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** A list of Sql pool columns. */ +/** + * A list of Sql pool columns. + */ @Immutable public final class SqlPoolColumnListResult { /* @@ -24,13 +26,15 @@ public final class SqlPoolColumnListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; - /** Creates an instance of SqlPoolColumnListResult class. */ + /** + * Creates an instance of SqlPoolColumnListResult class. + */ public SqlPoolColumnListResult() { } /** * Get the value property: Array of results. - * + * * @return the value value. */ public List value() { @@ -39,7 +43,7 @@ public List value() { /** * Get the nextLink property: Link to retrieve next page of results. - * + * * @return the nextLink value. */ public String nextLink() { @@ -48,7 +52,7 @@ public String nextLink() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolColumns.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolColumns.java index 2cf6bac01677..045790c7aef9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolColumns.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolColumns.java @@ -7,11 +7,13 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of SqlPoolColumns. */ +/** + * Resource collection API of SqlPoolColumns. + */ public interface SqlPoolColumns { /** * Get Sql pool column. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -24,18 +26,12 @@ public interface SqlPoolColumns { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return sql pool column along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName, - Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + String schemaName, String tableName, String columnName, Context context); /** * Get Sql pool column. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -47,11 +43,6 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return sql pool column. */ - SqlPoolColumn get( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName); + SqlPoolColumn get(String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, + String tableName, String columnName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolConnectionPolicies.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolConnectionPolicies.java index 652eb105b6d7..ff6a63988fc3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolConnectionPolicies.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolConnectionPolicies.java @@ -7,13 +7,15 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of SqlPoolConnectionPolicies. */ +/** + * Resource collection API of SqlPoolConnectionPolicies. + */ public interface SqlPoolConnectionPolicies { /** * Get a Sql pool's connection policy, which is used with table auditing - * - *

Get a Sql pool's connection policy, which is used with table auditing. - * + * + * Get a Sql pool's connection policy, which is used with table auditing. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -24,18 +26,14 @@ public interface SqlPoolConnectionPolicies { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Sql pool's connection policy, which is used with table auditing along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - ConnectionPolicyName connectionPolicyName, - Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, ConnectionPolicyName connectionPolicyName, Context context); /** * Get a Sql pool's connection policy, which is used with table auditing - * - *

Get a Sql pool's connection policy, which is used with table auditing. - * + * + * Get a Sql pool's connection policy, which is used with table auditing. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -45,6 +43,6 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Sql pool's connection policy, which is used with table auditing. */ - SqlPoolConnectionPolicy get( - String resourceGroupName, String workspaceName, String sqlPoolName, ConnectionPolicyName connectionPolicyName); + SqlPoolConnectionPolicy get(String resourceGroupName, String workspaceName, String sqlPoolName, + ConnectionPolicyName connectionPolicyName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolConnectionPolicy.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolConnectionPolicy.java index 46273c25bb31..97701586377d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolConnectionPolicy.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolConnectionPolicy.java @@ -6,95 +6,97 @@ import com.azure.resourcemanager.synapse.fluent.models.SqlPoolConnectionPolicyInner; -/** An immutable client-side representation of SqlPoolConnectionPolicy. */ +/** + * An immutable client-side representation of SqlPoolConnectionPolicy. + */ public interface SqlPoolConnectionPolicy { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the kind property: Resource kind. - * + * * @return the kind value. */ String kind(); /** * Gets the location property: Resource location. - * + * * @return the location value. */ String location(); /** * Gets the securityEnabledAccess property: The state of security access. - * + * * @return the securityEnabledAccess value. */ String securityEnabledAccess(); /** * Gets the proxyDnsName property: The fully qualified host name of the auditing proxy. - * + * * @return the proxyDnsName value. */ String proxyDnsName(); /** * Gets the proxyPort property: The port number of the auditing proxy. - * + * * @return the proxyPort value. */ String proxyPort(); /** * Gets the visibility property: The visibility of the auditing proxy. - * + * * @return the visibility value. */ String visibility(); /** * Gets the useServerDefault property: Whether server default is enabled or disabled. - * + * * @return the useServerDefault value. */ String useServerDefault(); /** * Gets the redirectionState property: The state of proxy redirection. - * + * * @return the redirectionState value. */ String redirectionState(); /** * Gets the state property: The connection policy state. - * + * * @return the state value. */ String state(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.SqlPoolConnectionPolicyInner object. - * + * * @return the inner object. */ SqlPoolConnectionPolicyInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolDataWarehouseUserActivities.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolDataWarehouseUserActivities.java index e1b9ef4c6f1d..4321b4d17269 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolDataWarehouseUserActivities.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolDataWarehouseUserActivities.java @@ -7,13 +7,15 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of SqlPoolDataWarehouseUserActivities. */ +/** + * Resource collection API of SqlPoolDataWarehouseUserActivities. + */ public interface SqlPoolDataWarehouseUserActivities { /** * Get SQL pool user activities - * - *

Gets the user activities of a SQL pool which includes running and suspended queries. - * + * + * Gets the user activities of a SQL pool which includes running and suspended queries. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -22,21 +24,17 @@ public interface SqlPoolDataWarehouseUserActivities { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the user activities of a SQL pool which includes running and suspended queries along with {@link - * Response}. + * @return the user activities of a SQL pool which includes running and suspended queries along with + * {@link Response}. */ - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - DataWarehouseUserActivityName dataWarehouseUserActivityName, - Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, DataWarehouseUserActivityName dataWarehouseUserActivityName, Context context); /** * Get SQL pool user activities - * - *

Gets the user activities of a SQL pool which includes running and suspended queries. - * + * + * Gets the user activities of a SQL pool which includes running and suspended queries. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -46,9 +44,6 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the user activities of a SQL pool which includes running and suspended queries. */ - DataWarehouseUserActivities get( - String resourceGroupName, - String workspaceName, - String sqlPoolName, + DataWarehouseUserActivities get(String resourceGroupName, String workspaceName, String sqlPoolName, DataWarehouseUserActivityName dataWarehouseUserActivityName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolGeoBackupPolicies.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolGeoBackupPolicies.java index 145db80f5110..1385e5fe116a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolGeoBackupPolicies.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolGeoBackupPolicies.java @@ -8,13 +8,15 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of SqlPoolGeoBackupPolicies. */ +/** + * Resource collection API of SqlPoolGeoBackupPolicies. + */ public interface SqlPoolGeoBackupPolicies { /** * List SQL pool geo backup policies - * - *

Get list of SQL pool geo backup policies. - * + * + * Get list of SQL pool geo backup policies. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -27,9 +29,9 @@ public interface SqlPoolGeoBackupPolicies { /** * List SQL pool geo backup policies - * - *

Get list of SQL pool geo backup policies. - * + * + * Get list of SQL pool geo backup policies. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -39,14 +41,14 @@ public interface SqlPoolGeoBackupPolicies { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return list of SQL pool geo backup policies as paginated response with {@link PagedIterable}. */ - PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName, + Context context); /** * Get a SQL pool geo backup policy - * - *

Get the specified SQL pool geo backup policy. - * + * + * Get the specified SQL pool geo backup policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -57,18 +59,14 @@ PagedIterable list( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the specified SQL pool geo backup policy along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - GeoBackupPolicyName geoBackupPolicyName, - Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + GeoBackupPolicyName geoBackupPolicyName, Context context); /** * Get a SQL pool geo backup policy - * - *

Get the specified SQL pool geo backup policy. - * + * + * Get the specified SQL pool geo backup policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -78,14 +76,14 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the specified SQL pool geo backup policy. */ - GeoBackupPolicy get( - String resourceGroupName, String workspaceName, String sqlPoolName, GeoBackupPolicyName geoBackupPolicyName); + GeoBackupPolicy get(String resourceGroupName, String workspaceName, String sqlPoolName, + GeoBackupPolicyName geoBackupPolicyName); /** * Get a SQL pool geo backup policy - * - *

Get the specified SQL pool geo backup policy. - * + * + * Get the specified SQL pool geo backup policy. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -96,9 +94,9 @@ GeoBackupPolicy get( /** * Get a SQL pool geo backup policy - * - *

Get the specified SQL pool geo backup policy. - * + * + * Get the specified SQL pool geo backup policy. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -110,7 +108,7 @@ GeoBackupPolicy get( /** * Begins definition for a new GeoBackupPolicy resource. - * + * * @param name resource name. * @return the first stage of the new GeoBackupPolicy definition. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolInfoListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolInfoListResult.java index 9eec90c69ceb..0ca6dc6e4ad4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolInfoListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolInfoListResult.java @@ -11,8 +11,8 @@ /** * SQL pool collection - * - *

List of SQL pools. + * + * List of SQL pools. */ @Fluent public final class SqlPoolInfoListResult { @@ -28,13 +28,15 @@ public final class SqlPoolInfoListResult { @JsonProperty(value = "value") private List value; - /** Creates an instance of SqlPoolInfoListResult class. */ + /** + * Creates an instance of SqlPoolInfoListResult class. + */ public SqlPoolInfoListResult() { } /** * Get the nextLink property: Link to the next page of results. - * + * * @return the nextLink value. */ public String nextLink() { @@ -43,7 +45,7 @@ public String nextLink() { /** * Set the nextLink property: Link to the next page of results. - * + * * @param nextLink the nextLink value to set. * @return the SqlPoolInfoListResult object itself. */ @@ -54,7 +56,7 @@ public SqlPoolInfoListResult withNextLink(String nextLink) { /** * Get the value property: List of SQL pools. - * + * * @return the value value. */ public List value() { @@ -63,7 +65,7 @@ public List value() { /** * Set the value property: List of SQL pools. - * + * * @param value the value value to set. * @return the SqlPoolInfoListResult object itself. */ @@ -74,7 +76,7 @@ public SqlPoolInfoListResult withValue(List value) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolMaintenanceWindowOptions.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolMaintenanceWindowOptions.java index 8290ad5cdb2c..588b2b36e590 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolMaintenanceWindowOptions.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolMaintenanceWindowOptions.java @@ -7,13 +7,15 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of SqlPoolMaintenanceWindowOptions. */ +/** + * Resource collection API of SqlPoolMaintenanceWindowOptions. + */ public interface SqlPoolMaintenanceWindowOptions { /** * SQL pool's available maintenance windows. - * - *

Get list of SQL pool's available maintenance windows. - * + * + * Get list of SQL pool's available maintenance windows. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -24,18 +26,14 @@ public interface SqlPoolMaintenanceWindowOptions { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return list of SQL pool's available maintenance windows along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String maintenanceWindowOptionsName, - Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, String maintenanceWindowOptionsName, Context context); /** * SQL pool's available maintenance windows. - * - *

Get list of SQL pool's available maintenance windows. - * + * + * Get list of SQL pool's available maintenance windows. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -45,6 +43,6 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return list of SQL pool's available maintenance windows. */ - MaintenanceWindowOptions get( - String resourceGroupName, String workspaceName, String sqlPoolName, String maintenanceWindowOptionsName); + MaintenanceWindowOptions get(String resourceGroupName, String workspaceName, String sqlPoolName, + String maintenanceWindowOptionsName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolMaintenanceWindows.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolMaintenanceWindows.java index 2f4d1710317c..c37894d3f09e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolMaintenanceWindows.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolMaintenanceWindows.java @@ -8,11 +8,13 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.synapse.fluent.models.MaintenanceWindowsInner; -/** Resource collection API of SqlPoolMaintenanceWindows. */ +/** + * Resource collection API of SqlPoolMaintenanceWindows. + */ public interface SqlPoolMaintenanceWindows { /** * Get a SQL pool's Maintenance Windows. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -23,16 +25,12 @@ public interface SqlPoolMaintenanceWindows { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a SQL pool's Maintenance Windows along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String maintenanceWindowName, - Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + String maintenanceWindowName, Context context); /** * Get a SQL pool's Maintenance Windows. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -42,12 +40,12 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a SQL pool's Maintenance Windows. */ - MaintenanceWindows get( - String resourceGroupName, String workspaceName, String sqlPoolName, String maintenanceWindowName); + MaintenanceWindows get(String resourceGroupName, String workspaceName, String sqlPoolName, + String maintenanceWindowName); /** * Creates or updates a Sql pool's maintenance windows settings. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -59,17 +57,12 @@ MaintenanceWindows get( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ - Response createOrUpdateWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String maintenanceWindowName, - MaintenanceWindowsInner parameters, - Context context); + Response createOrUpdateWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + String maintenanceWindowName, MaintenanceWindowsInner parameters, Context context); /** * Creates or updates a Sql pool's maintenance windows settings. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -79,10 +72,6 @@ Response createOrUpdateWithResponse( * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void createOrUpdate( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String maintenanceWindowName, - MaintenanceWindowsInner parameters); + void createOrUpdate(String resourceGroupName, String workspaceName, String sqlPoolName, + String maintenanceWindowName, MaintenanceWindowsInner parameters); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolMetadataSyncConfigs.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolMetadataSyncConfigs.java index 7f833442131f..6f2ba456c7a5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolMetadataSyncConfigs.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolMetadataSyncConfigs.java @@ -8,35 +8,41 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.synapse.fluent.models.MetadataSyncConfigInner; -/** Resource collection API of SqlPoolMetadataSyncConfigs. */ +/** + * Resource collection API of SqlPoolMetadataSyncConfigs. + */ public interface SqlPoolMetadataSyncConfigs { /** * Get SQL pool metadata sync config - * - *

Get the metadata sync configuration for a SQL pool. - * + * + * Get the metadata sync configuration for a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on + * status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the metadata sync configuration for a SQL pool along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + Context context); /** * Get SQL pool metadata sync config - * - *

Get the metadata sync configuration for a SQL pool. - * + * + * Get the metadata sync configuration for a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on + * status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the metadata sync configuration for a SQL pool. */ @@ -44,9 +50,9 @@ Response getWithResponse( /** * Set SQL pool metadata sync config - * - *

Set the metadata sync configuration for a SQL pool. - * + * + * Set the metadata sync configuration for a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -54,33 +60,30 @@ Response getWithResponse( * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on + * status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return metadata sync configuration along with {@link Response}. */ - Response createWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - MetadataSyncConfigInner metadataSyncConfiguration, - Context context); + Response createWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + MetadataSyncConfigInner metadataSyncConfiguration, Context context); /** * Set SQL pool metadata sync config - * - *

Set the metadata sync configuration for a SQL pool. - * + * + * Set the metadata sync configuration for a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param metadataSyncConfiguration Metadata sync configuration. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on + * status code 404. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return metadata sync configuration. */ - MetadataSyncConfig create( - String resourceGroupName, - String workspaceName, - String sqlPoolName, + MetadataSyncConfig create(String resourceGroupName, String workspaceName, String sqlPoolName, MetadataSyncConfigInner metadataSyncConfiguration); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolOperation.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolOperation.java index 0860f55ad51b..825301a8fe9f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolOperation.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolOperation.java @@ -7,130 +7,132 @@ import com.azure.resourcemanager.synapse.fluent.models.SqlPoolOperationInner; import java.time.OffsetDateTime; -/** An immutable client-side representation of SqlPoolOperation. */ +/** + * An immutable client-side representation of SqlPoolOperation. + */ public interface SqlPoolOperation { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the databaseName property: The name of the Sql pool the operation is being performed on. - * + * * @return the databaseName value. */ String databaseName(); /** * Gets the operation property: The name of operation. - * + * * @return the operation value. */ String operation(); /** * Gets the operationFriendlyName property: The friendly name of operation. - * + * * @return the operationFriendlyName value. */ String operationFriendlyName(); /** * Gets the percentComplete property: The percentage of the operation completed. - * + * * @return the percentComplete value. */ Integer percentComplete(); /** * Gets the serverName property: The name of the server. - * + * * @return the serverName value. */ String serverName(); /** * Gets the startTime property: The operation start time. - * + * * @return the startTime value. */ OffsetDateTime startTime(); /** * Gets the state property: The operation state. - * + * * @return the state value. */ ManagementOperationState state(); /** * Gets the errorCode property: The operation error code. - * + * * @return the errorCode value. */ Integer errorCode(); /** * Gets the errorDescription property: The operation error description. - * + * * @return the errorDescription value. */ String errorDescription(); /** * Gets the errorSeverity property: The operation error severity. - * + * * @return the errorSeverity value. */ Integer errorSeverity(); /** * Gets the isUserError property: Whether or not the error is a user error. - * + * * @return the isUserError value. */ Boolean isUserError(); /** * Gets the estimatedCompletionTime property: The estimated completion time of the operation. - * + * * @return the estimatedCompletionTime value. */ OffsetDateTime estimatedCompletionTime(); /** * Gets the description property: The operation description. - * + * * @return the description value. */ String description(); /** * Gets the isCancellable property: Whether the operation can be cancelled. - * + * * @return the isCancellable value. */ Boolean isCancellable(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.SqlPoolOperationInner object. - * + * * @return the inner object. */ SqlPoolOperationInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolOperationResults.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolOperationResults.java index 25c8f62c9a39..918d03862ae9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolOperationResults.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolOperationResults.java @@ -6,13 +6,15 @@ import com.azure.core.util.Context; -/** Resource collection API of SqlPoolOperationResults. */ +/** + * Resource collection API of SqlPoolOperationResults. + */ public interface SqlPoolOperationResults { /** * Get SQL pool operation status - * - *

Get the status of a SQL pool operation. - * + * + * Get the status of a SQL pool operation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -22,14 +24,14 @@ public interface SqlPoolOperationResults { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the status of a SQL pool operation. */ - SqlPool getLocationHeaderResult( - String resourceGroupName, String workspaceName, String sqlPoolName, String operationId); + SqlPool getLocationHeaderResult(String resourceGroupName, String workspaceName, String sqlPoolName, + String operationId); /** * Get SQL pool operation status - * - *

Get the status of a SQL pool operation. - * + * + * Get the status of a SQL pool operation. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -40,6 +42,6 @@ SqlPool getLocationHeaderResult( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the status of a SQL pool operation. */ - SqlPool getLocationHeaderResult( - String resourceGroupName, String workspaceName, String sqlPoolName, String operationId, Context context); + SqlPool getLocationHeaderResult(String resourceGroupName, String workspaceName, String sqlPoolName, + String operationId, Context context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolOperations.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolOperations.java index 3824f58bb7c8..3b840588dbe9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolOperations.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolOperations.java @@ -7,13 +7,15 @@ import com.azure.core.http.rest.PagedIterable; import com.azure.core.util.Context; -/** Resource collection API of SqlPoolOperations. */ +/** + * Resource collection API of SqlPoolOperations. + */ public interface SqlPoolOperations { /** * Gets a list of operations performed on the SQL pool - * - *

Gets a list of operations performed on the SQL pool. - * + * + * Gets a list of operations performed on the SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -26,9 +28,9 @@ public interface SqlPoolOperations { /** * Gets a list of operations performed on the SQL pool - * - *

Gets a list of operations performed on the SQL pool. - * + * + * Gets a list of operations performed on the SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -38,6 +40,6 @@ public interface SqlPoolOperations { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of operations performed on the SQL pool as paginated response with {@link PagedIterable}. */ - PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName, + Context context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolPatchInfo.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolPatchInfo.java index 2fb7b80393e4..ea7f01a894d7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolPatchInfo.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolPatchInfo.java @@ -13,8 +13,8 @@ /** * SQL pool patch info - * - *

A SQL Analytics pool patch info. + * + * A SQL Analytics pool patch info. */ @Fluent public final class SqlPoolPatchInfo { @@ -33,7 +33,7 @@ public final class SqlPoolPatchInfo { /* * Sku - * + * * SQL pool SKU */ @JsonProperty(value = "sku") @@ -45,13 +45,15 @@ public final class SqlPoolPatchInfo { @JsonProperty(value = "properties") private SqlPoolResourceProperties innerProperties; - /** Creates an instance of SqlPoolPatchInfo class. */ + /** + * Creates an instance of SqlPoolPatchInfo class. + */ public SqlPoolPatchInfo() { } /** * Get the tags property: Resource tags. - * + * * @return the tags value. */ public Map tags() { @@ -60,7 +62,7 @@ public Map tags() { /** * Set the tags property: Resource tags. - * + * * @param tags the tags value to set. * @return the SqlPoolPatchInfo object itself. */ @@ -71,7 +73,7 @@ public SqlPoolPatchInfo withTags(Map tags) { /** * Get the location property: The geo-location where the resource lives. - * + * * @return the location value. */ public String location() { @@ -80,7 +82,7 @@ public String location() { /** * Set the location property: The geo-location where the resource lives. - * + * * @param location the location value to set. * @return the SqlPoolPatchInfo object itself. */ @@ -91,9 +93,9 @@ public SqlPoolPatchInfo withLocation(String location) { /** * Get the sku property: Sku - * - *

SQL pool SKU. - * + * + * SQL pool SKU. + * * @return the sku value. */ public Sku sku() { @@ -102,9 +104,9 @@ public Sku sku() { /** * Set the sku property: Sku - * - *

SQL pool SKU. - * + * + * SQL pool SKU. + * * @param sku the sku value to set. * @return the SqlPoolPatchInfo object itself. */ @@ -115,7 +117,7 @@ public SqlPoolPatchInfo withSku(Sku sku) { /** * Get the innerProperties property: SQL pool properties. - * + * * @return the innerProperties value. */ private SqlPoolResourceProperties innerProperties() { @@ -124,7 +126,7 @@ private SqlPoolResourceProperties innerProperties() { /** * Get the maxSizeBytes property: Maximum size in bytes. - * + * * @return the maxSizeBytes value. */ public Long maxSizeBytes() { @@ -133,7 +135,7 @@ public Long maxSizeBytes() { /** * Set the maxSizeBytes property: Maximum size in bytes. - * + * * @param maxSizeBytes the maxSizeBytes value to set. * @return the SqlPoolPatchInfo object itself. */ @@ -147,7 +149,7 @@ public SqlPoolPatchInfo withMaxSizeBytes(Long maxSizeBytes) { /** * Get the collation property: Collation mode. - * + * * @return the collation value. */ public String collation() { @@ -156,7 +158,7 @@ public String collation() { /** * Set the collation property: Collation mode. - * + * * @param collation the collation value to set. * @return the SqlPoolPatchInfo object itself. */ @@ -170,7 +172,7 @@ public SqlPoolPatchInfo withCollation(String collation) { /** * Get the sourceDatabaseId property: Source database to create from. - * + * * @return the sourceDatabaseId value. */ public String sourceDatabaseId() { @@ -179,7 +181,7 @@ public String sourceDatabaseId() { /** * Set the sourceDatabaseId property: Source database to create from. - * + * * @param sourceDatabaseId the sourceDatabaseId value to set. * @return the SqlPoolPatchInfo object itself. */ @@ -193,7 +195,7 @@ public SqlPoolPatchInfo withSourceDatabaseId(String sourceDatabaseId) { /** * Get the recoverableDatabaseId property: Backup database to restore from. - * + * * @return the recoverableDatabaseId value. */ public String recoverableDatabaseId() { @@ -202,7 +204,7 @@ public String recoverableDatabaseId() { /** * Set the recoverableDatabaseId property: Backup database to restore from. - * + * * @param recoverableDatabaseId the recoverableDatabaseId value to set. * @return the SqlPoolPatchInfo object itself. */ @@ -216,7 +218,7 @@ public SqlPoolPatchInfo withRecoverableDatabaseId(String recoverableDatabaseId) /** * Get the provisioningState property: Resource state. - * + * * @return the provisioningState value. */ public String provisioningState() { @@ -225,7 +227,7 @@ public String provisioningState() { /** * Set the provisioningState property: Resource state. - * + * * @param provisioningState the provisioningState value to set. * @return the SqlPoolPatchInfo object itself. */ @@ -239,7 +241,7 @@ public SqlPoolPatchInfo withProvisioningState(String provisioningState) { /** * Get the status property: Resource status. - * + * * @return the status value. */ public String status() { @@ -248,7 +250,7 @@ public String status() { /** * Get the restorePointInTime property: Snapshot time to restore. - * + * * @return the restorePointInTime value. */ public OffsetDateTime restorePointInTime() { @@ -257,7 +259,7 @@ public OffsetDateTime restorePointInTime() { /** * Set the restorePointInTime property: Snapshot time to restore. - * + * * @param restorePointInTime the restorePointInTime value to set. * @return the SqlPoolPatchInfo object itself. */ @@ -271,19 +273,19 @@ public SqlPoolPatchInfo withRestorePointInTime(OffsetDateTime restorePointInTime /** * Get the createMode property: Specifies the mode of sql pool creation. - * - *

Default: regular sql pool creation. - * - *

PointInTimeRestore: Creates a sql pool by restoring a point in time backup of an existing sql pool. + * + * Default: regular sql pool creation. + * + * PointInTimeRestore: Creates a sql pool by restoring a point in time backup of an existing sql pool. * sourceDatabaseId must be specified as the resource ID of the existing sql pool, and restorePointInTime must be * specified. - * - *

Recovery: Creates a sql pool by a geo-replicated backup. sourceDatabaseId must be specified as the + * + * Recovery: Creates a sql pool by a geo-replicated backup. sourceDatabaseId must be specified as the * recoverableDatabaseId to restore. - * - *

Restore: Creates a sql pool by restoring a backup of a deleted sql pool. SourceDatabaseId should be the sql + * + * Restore: Creates a sql pool by restoring a backup of a deleted sql pool. SourceDatabaseId should be the sql * pool's original resource ID. SourceDatabaseId and sourceDatabaseDeletionDate must be specified. - * + * * @return the createMode value. */ public CreateMode createMode() { @@ -292,19 +294,19 @@ public CreateMode createMode() { /** * Set the createMode property: Specifies the mode of sql pool creation. - * - *

Default: regular sql pool creation. - * - *

PointInTimeRestore: Creates a sql pool by restoring a point in time backup of an existing sql pool. + * + * Default: regular sql pool creation. + * + * PointInTimeRestore: Creates a sql pool by restoring a point in time backup of an existing sql pool. * sourceDatabaseId must be specified as the resource ID of the existing sql pool, and restorePointInTime must be * specified. - * - *

Recovery: Creates a sql pool by a geo-replicated backup. sourceDatabaseId must be specified as the + * + * Recovery: Creates a sql pool by a geo-replicated backup. sourceDatabaseId must be specified as the * recoverableDatabaseId to restore. - * - *

Restore: Creates a sql pool by restoring a backup of a deleted sql pool. SourceDatabaseId should be the sql + * + * Restore: Creates a sql pool by restoring a backup of a deleted sql pool. SourceDatabaseId should be the sql * pool's original resource ID. SourceDatabaseId and sourceDatabaseDeletionDate must be specified. - * + * * @param createMode the createMode value to set. * @return the SqlPoolPatchInfo object itself. */ @@ -318,7 +320,7 @@ public SqlPoolPatchInfo withCreateMode(CreateMode createMode) { /** * Get the creationDate property: Date the SQL pool was created. - * + * * @return the creationDate value. */ public OffsetDateTime creationDate() { @@ -327,7 +329,7 @@ public OffsetDateTime creationDate() { /** * Get the storageAccountType property: The storage account type used to store backups for this sql pool. - * + * * @return the storageAccountType value. */ public StorageAccountType storageAccountType() { @@ -336,7 +338,7 @@ public StorageAccountType storageAccountType() { /** * Set the storageAccountType property: The storage account type used to store backups for this sql pool. - * + * * @param storageAccountType the storageAccountType value to set. * @return the SqlPoolPatchInfo object itself. */ @@ -350,7 +352,7 @@ public SqlPoolPatchInfo withStorageAccountType(StorageAccountType storageAccount /** * Get the sourceDatabaseDeletionDate property: Specifies the time that the sql pool was deleted. - * + * * @return the sourceDatabaseDeletionDate value. */ public OffsetDateTime sourceDatabaseDeletionDate() { @@ -359,7 +361,7 @@ public OffsetDateTime sourceDatabaseDeletionDate() { /** * Set the sourceDatabaseDeletionDate property: Specifies the time that the sql pool was deleted. - * + * * @param sourceDatabaseDeletionDate the sourceDatabaseDeletionDate value to set. * @return the SqlPoolPatchInfo object itself. */ @@ -373,7 +375,7 @@ public SqlPoolPatchInfo withSourceDatabaseDeletionDate(OffsetDateTime sourceData /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolRecommendedSensitivityLabels.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolRecommendedSensitivityLabels.java index 4461c066c1ff..1d6ca77bcbc5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolRecommendedSensitivityLabels.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolRecommendedSensitivityLabels.java @@ -7,11 +7,13 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of SqlPoolRecommendedSensitivityLabels. */ +/** + * Resource collection API of SqlPoolRecommendedSensitivityLabels. + */ public interface SqlPoolRecommendedSensitivityLabels { /** * Update recommended sensitivity labels states of a given SQL Pool using an operations batch. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -22,16 +24,12 @@ public interface SqlPoolRecommendedSensitivityLabels { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ - Response updateWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - RecommendedSensitivityLabelUpdateList parameters, - Context context); + Response updateWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + RecommendedSensitivityLabelUpdateList parameters, Context context); /** * Update recommended sensitivity labels states of a given SQL Pool using an operations batch. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -40,9 +38,6 @@ Response updateWithResponse( * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void update( - String resourceGroupName, - String workspaceName, - String sqlPoolName, + void update(String resourceGroupName, String workspaceName, String sqlPoolName, RecommendedSensitivityLabelUpdateList parameters); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolReplicationLinks.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolReplicationLinks.java index 0856323b5d91..0252277ad157 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolReplicationLinks.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolReplicationLinks.java @@ -8,29 +8,31 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of SqlPoolReplicationLinks. */ +/** + * Resource collection API of SqlPoolReplicationLinks. + */ public interface SqlPoolReplicationLinks { /** * Get SQL pool replication links - * - *

Lists a Sql pool's replication links. - * + * + * Lists a Sql pool's replication links. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return represents the response to a List Sql pool replication link request as paginated response with {@link - * PagedIterable}. + * @return represents the response to a List Sql pool replication link request as paginated response with + * {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName); /** * Get SQL pool replication links - * - *

Lists a Sql pool's replication links. - * + * + * Lists a Sql pool's replication links. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -38,17 +40,17 @@ public interface SqlPoolReplicationLinks { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return represents the response to a List Sql pool replication link request as paginated response with {@link - * PagedIterable}. + * @return represents the response to a List Sql pool replication link request as paginated response with + * {@link PagedIterable}. */ - PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName, + Context context); /** * Get SQL pool replication link by name - * - *

Get SQL pool replication link by name. - * + * + * Get SQL pool replication link by name. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -59,14 +61,14 @@ PagedIterable list( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return sQL pool replication link by name along with {@link Response}. */ - Response getByNameWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, String linkId, Context context); + Response getByNameWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + String linkId, Context context); /** * Get SQL pool replication link by name - * - *

Get SQL pool replication link by name. - * + * + * Get SQL pool replication link by name. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolRestorePoints.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolRestorePoints.java index 39ba80672918..bbdb8fcbdeea 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolRestorePoints.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolRestorePoints.java @@ -8,13 +8,15 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of SqlPoolRestorePoints. */ +/** + * Resource collection API of SqlPoolRestorePoints. + */ public interface SqlPoolRestorePoints { /** * Get SQL pool backup - * - *

Get SQL pool backup information. - * + * + * Get SQL pool backup information. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -27,9 +29,9 @@ public interface SqlPoolRestorePoints { /** * Get SQL pool backup - * - *

Get SQL pool backup information. - * + * + * Get SQL pool backup information. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -39,12 +41,12 @@ public interface SqlPoolRestorePoints { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return sQL pool backup information as paginated response with {@link PagedIterable}. */ - PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName, + Context context); /** * Creates a restore point for a data warehouse. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -54,15 +56,12 @@ PagedIterable list( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return database restore points. */ - RestorePoint create( - String resourceGroupName, - String workspaceName, - String sqlPoolName, + RestorePoint create(String resourceGroupName, String workspaceName, String sqlPoolName, CreateSqlPoolRestorePointDefinition parameters); /** * Creates a restore point for a data warehouse. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -73,16 +72,12 @@ RestorePoint create( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return database restore points. */ - RestorePoint create( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - CreateSqlPoolRestorePointDefinition parameters, - Context context); + RestorePoint create(String resourceGroupName, String workspaceName, String sqlPoolName, + CreateSqlPoolRestorePointDefinition parameters, Context context); /** * Gets a restore point. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -93,12 +88,12 @@ RestorePoint create( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a restore point along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, String restorePointName, Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + String restorePointName, Context context); /** * Gets a restore point. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -112,7 +107,7 @@ Response getWithResponse( /** * Deletes a restore point. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -123,12 +118,12 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ - Response deleteWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, String restorePointName, Context context); + Response deleteWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + String restorePointName, Context context); /** * Deletes a restore point. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSchema.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSchema.java index f7a2d28f14b4..0b20173eb69e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSchema.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSchema.java @@ -6,32 +6,34 @@ import com.azure.resourcemanager.synapse.fluent.models.SqlPoolSchemaInner; -/** An immutable client-side representation of SqlPoolSchema. */ +/** + * An immutable client-side representation of SqlPoolSchema. + */ public interface SqlPoolSchema { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.SqlPoolSchemaInner object. - * + * * @return the inner object. */ SqlPoolSchemaInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSchemaListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSchemaListResult.java index 159e2e3738f6..91c1739c24d1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSchemaListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSchemaListResult.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** A list of Sql pool schemas. */ +/** + * A list of Sql pool schemas. + */ @Immutable public final class SqlPoolSchemaListResult { /* @@ -24,13 +26,15 @@ public final class SqlPoolSchemaListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; - /** Creates an instance of SqlPoolSchemaListResult class. */ + /** + * Creates an instance of SqlPoolSchemaListResult class. + */ public SqlPoolSchemaListResult() { } /** * Get the value property: Array of results. - * + * * @return the value value. */ public List value() { @@ -39,7 +43,7 @@ public List value() { /** * Get the nextLink property: Link to retrieve next page of results. - * + * * @return the nextLink value. */ public String nextLink() { @@ -48,7 +52,7 @@ public String nextLink() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSchemas.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSchemas.java index 55b58723c1a6..70ff1b191888 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSchemas.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSchemas.java @@ -8,13 +8,15 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of SqlPoolSchemas. */ +/** + * Resource collection API of SqlPoolSchemas. + */ public interface SqlPoolSchemas { /** * Gets schemas of a given SQL pool - * - *

Gets schemas of a given SQL pool. - * + * + * Gets schemas of a given SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -27,9 +29,9 @@ public interface SqlPoolSchemas { /** * Gets schemas of a given SQL pool - * - *

Gets schemas of a given SQL pool. - * + * + * Gets schemas of a given SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -40,12 +42,12 @@ public interface SqlPoolSchemas { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return schemas of a given SQL pool as paginated response with {@link PagedIterable}. */ - PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName, String filter, Context context); + PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName, String filter, + Context context); /** * Get Sql Pool schema. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -56,12 +58,12 @@ PagedIterable list( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return sql Pool schema along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + String schemaName, Context context); /** * Get Sql Pool schema. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSecurityAlertPolicies.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSecurityAlertPolicies.java index dca5114252ad..9a099a09e8a9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSecurityAlertPolicies.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSecurityAlertPolicies.java @@ -8,13 +8,15 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of SqlPoolSecurityAlertPolicies. */ +/** + * Resource collection API of SqlPoolSecurityAlertPolicies. + */ public interface SqlPoolSecurityAlertPolicies { /** * List Sql pool's security alert policies - * - *

Get a list of Sql pool's security alert policies. - * + * + * Get a list of Sql pool's security alert policies. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -27,9 +29,9 @@ public interface SqlPoolSecurityAlertPolicies { /** * List Sql pool's security alert policies - * - *

Get a list of Sql pool's security alert policies. - * + * + * Get a list of Sql pool's security alert policies. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -39,14 +41,14 @@ public interface SqlPoolSecurityAlertPolicies { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of Sql pool's security alert policies as paginated response with {@link PagedIterable}. */ - PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName, + Context context); /** * Get a Sql pool's security alert policy - * - *

Get a Sql pool's security alert policy. - * + * + * Get a Sql pool's security alert policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -57,18 +59,14 @@ PagedIterable list( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Sql pool's security alert policy along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - SecurityAlertPolicyName securityAlertPolicyName, - Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, SecurityAlertPolicyName securityAlertPolicyName, Context context); /** * Get a Sql pool's security alert policy - * - *

Get a Sql pool's security alert policy. - * + * + * Get a Sql pool's security alert policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -78,17 +76,14 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Sql pool's security alert policy. */ - SqlPoolSecurityAlertPolicy get( - String resourceGroupName, - String workspaceName, - String sqlPoolName, + SqlPoolSecurityAlertPolicy get(String resourceGroupName, String workspaceName, String sqlPoolName, SecurityAlertPolicyName securityAlertPolicyName); /** * Get a Sql pool's security alert policy - * - *

Get a Sql pool's security alert policy. - * + * + * Get a Sql pool's security alert policy. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -99,9 +94,9 @@ SqlPoolSecurityAlertPolicy get( /** * Get a Sql pool's security alert policy - * - *

Get a Sql pool's security alert policy. - * + * + * Get a Sql pool's security alert policy. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -113,7 +108,7 @@ SqlPoolSecurityAlertPolicy get( /** * Begins definition for a new SqlPoolSecurityAlertPolicy resource. - * + * * @param name resource name. * @return the first stage of the new SqlPoolSecurityAlertPolicy definition. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSecurityAlertPolicy.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSecurityAlertPolicy.java index f5bb1af36c28..0152ed1eb1ef 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSecurityAlertPolicy.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSecurityAlertPolicy.java @@ -9,25 +9,27 @@ import java.time.OffsetDateTime; import java.util.List; -/** An immutable client-side representation of SqlPoolSecurityAlertPolicy. */ +/** + * An immutable client-side representation of SqlPoolSecurityAlertPolicy. + */ public interface SqlPoolSecurityAlertPolicy { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); @@ -35,7 +37,7 @@ public interface SqlPoolSecurityAlertPolicy { /** * Gets the state property: Specifies the state of the policy, whether it is enabled or disabled or a policy has not * been applied yet on the specific Sql pool. - * + * * @return the state value. */ SecurityAlertPolicyState state(); @@ -43,21 +45,21 @@ public interface SqlPoolSecurityAlertPolicy { /** * Gets the disabledAlerts property: Specifies an array of alerts that are disabled. Allowed values are: * Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action. - * + * * @return the disabledAlerts value. */ List disabledAlerts(); /** * Gets the emailAddresses property: Specifies an array of e-mail addresses to which the alert is sent. - * + * * @return the emailAddresses value. */ List emailAddresses(); /** * Gets the emailAccountAdmins property: Specifies that the alert is sent to the account administrators. - * + * * @return the emailAccountAdmins value. */ Boolean emailAccountAdmins(); @@ -65,7 +67,7 @@ public interface SqlPoolSecurityAlertPolicy { /** * Gets the storageEndpoint property: Specifies the blob storage endpoint (e.g. * https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. - * + * * @return the storageEndpoint value. */ String storageEndpoint(); @@ -73,53 +75,63 @@ public interface SqlPoolSecurityAlertPolicy { /** * Gets the storageAccountAccessKey property: Specifies the identifier key of the Threat Detection audit storage * account. - * + * * @return the storageAccountAccessKey value. */ String storageAccountAccessKey(); /** * Gets the retentionDays property: Specifies the number of days to keep in the Threat Detection audit logs. - * + * * @return the retentionDays value. */ Integer retentionDays(); /** * Gets the creationTime property: Specifies the UTC creation time of the policy. - * + * * @return the creationTime value. */ OffsetDateTime creationTime(); /** * Gets the name of the resource group. - * + * * @return the name of the resource group. */ String resourceGroupName(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.SqlPoolSecurityAlertPolicyInner object. - * + * * @return the inner object. */ SqlPoolSecurityAlertPolicyInner innerModel(); - /** The entirety of the SqlPoolSecurityAlertPolicy definition. */ + /** + * The entirety of the SqlPoolSecurityAlertPolicy definition. + */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { } - /** The SqlPoolSecurityAlertPolicy definition stages. */ + + /** + * The SqlPoolSecurityAlertPolicy definition stages. + */ interface DefinitionStages { - /** The first stage of the SqlPoolSecurityAlertPolicy definition. */ + /** + * The first stage of the SqlPoolSecurityAlertPolicy definition. + */ interface Blank extends WithParentResource { } - /** The stage of the SqlPoolSecurityAlertPolicy definition allowing to specify parent resource. */ + + /** + * The stage of the SqlPoolSecurityAlertPolicy definition allowing to specify parent resource. + */ interface WithParentResource { /** * Specifies resourceGroupName, workspaceName, sqlPoolName. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -127,217 +139,250 @@ interface WithParentResource { */ WithCreate withExistingSqlPool(String resourceGroupName, String workspaceName, String sqlPoolName); } + /** * The stage of the SqlPoolSecurityAlertPolicy definition which contains all the minimum required properties for * the resource to be created, but also allows for any other optional properties to be specified. */ - interface WithCreate - extends DefinitionStages.WithState, - DefinitionStages.WithDisabledAlerts, - DefinitionStages.WithEmailAddresses, - DefinitionStages.WithEmailAccountAdmins, - DefinitionStages.WithStorageEndpoint, - DefinitionStages.WithStorageAccountAccessKey, - DefinitionStages.WithRetentionDays { + interface WithCreate extends DefinitionStages.WithState, DefinitionStages.WithDisabledAlerts, + DefinitionStages.WithEmailAddresses, DefinitionStages.WithEmailAccountAdmins, + DefinitionStages.WithStorageEndpoint, DefinitionStages.WithStorageAccountAccessKey, + DefinitionStages.WithRetentionDays { /** * Executes the create request. - * + * * @return the created resource. */ SqlPoolSecurityAlertPolicy create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ SqlPoolSecurityAlertPolicy create(Context context); } - /** The stage of the SqlPoolSecurityAlertPolicy definition allowing to specify state. */ + + /** + * The stage of the SqlPoolSecurityAlertPolicy definition allowing to specify state. + */ interface WithState { /** * Specifies the state property: Specifies the state of the policy, whether it is enabled or disabled or a * policy has not been applied yet on the specific Sql pool.. - * + * * @param state Specifies the state of the policy, whether it is enabled or disabled or a policy has not - * been applied yet on the specific Sql pool. + * been applied yet on the specific Sql pool. * @return the next definition stage. */ WithCreate withState(SecurityAlertPolicyState state); } - /** The stage of the SqlPoolSecurityAlertPolicy definition allowing to specify disabledAlerts. */ + + /** + * The stage of the SqlPoolSecurityAlertPolicy definition allowing to specify disabledAlerts. + */ interface WithDisabledAlerts { /** * Specifies the disabledAlerts property: Specifies an array of alerts that are disabled. Allowed values * are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action. - * + * * @param disabledAlerts Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, - * Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action. + * Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action. * @return the next definition stage. */ WithCreate withDisabledAlerts(List disabledAlerts); } - /** The stage of the SqlPoolSecurityAlertPolicy definition allowing to specify emailAddresses. */ + + /** + * The stage of the SqlPoolSecurityAlertPolicy definition allowing to specify emailAddresses. + */ interface WithEmailAddresses { /** * Specifies the emailAddresses property: Specifies an array of e-mail addresses to which the alert is * sent.. - * + * * @param emailAddresses Specifies an array of e-mail addresses to which the alert is sent. * @return the next definition stage. */ WithCreate withEmailAddresses(List emailAddresses); } - /** The stage of the SqlPoolSecurityAlertPolicy definition allowing to specify emailAccountAdmins. */ + + /** + * The stage of the SqlPoolSecurityAlertPolicy definition allowing to specify emailAccountAdmins. + */ interface WithEmailAccountAdmins { /** * Specifies the emailAccountAdmins property: Specifies that the alert is sent to the account * administrators.. - * + * * @param emailAccountAdmins Specifies that the alert is sent to the account administrators. * @return the next definition stage. */ WithCreate withEmailAccountAdmins(Boolean emailAccountAdmins); } - /** The stage of the SqlPoolSecurityAlertPolicy definition allowing to specify storageEndpoint. */ + + /** + * The stage of the SqlPoolSecurityAlertPolicy definition allowing to specify storageEndpoint. + */ interface WithStorageEndpoint { /** * Specifies the storageEndpoint property: Specifies the blob storage endpoint (e.g. * https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs.. - * + * * @param storageEndpoint Specifies the blob storage endpoint (e.g. - * https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit - * logs. + * https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. * @return the next definition stage. */ WithCreate withStorageEndpoint(String storageEndpoint); } - /** The stage of the SqlPoolSecurityAlertPolicy definition allowing to specify storageAccountAccessKey. */ + + /** + * The stage of the SqlPoolSecurityAlertPolicy definition allowing to specify storageAccountAccessKey. + */ interface WithStorageAccountAccessKey { /** * Specifies the storageAccountAccessKey property: Specifies the identifier key of the Threat Detection * audit storage account.. - * + * * @param storageAccountAccessKey Specifies the identifier key of the Threat Detection audit storage - * account. + * account. * @return the next definition stage. */ WithCreate withStorageAccountAccessKey(String storageAccountAccessKey); } - /** The stage of the SqlPoolSecurityAlertPolicy definition allowing to specify retentionDays. */ + + /** + * The stage of the SqlPoolSecurityAlertPolicy definition allowing to specify retentionDays. + */ interface WithRetentionDays { /** * Specifies the retentionDays property: Specifies the number of days to keep in the Threat Detection audit * logs.. - * + * * @param retentionDays Specifies the number of days to keep in the Threat Detection audit logs. * @return the next definition stage. */ WithCreate withRetentionDays(Integer retentionDays); } } + /** * Begins update for the SqlPoolSecurityAlertPolicy resource. - * + * * @return the stage of resource update. */ SqlPoolSecurityAlertPolicy.Update update(); - /** The template for SqlPoolSecurityAlertPolicy update. */ - interface Update - extends UpdateStages.WithState, - UpdateStages.WithEmailAccountAdmins, - UpdateStages.WithStorageEndpoint, - UpdateStages.WithStorageAccountAccessKey, - UpdateStages.WithRetentionDays { + /** + * The template for SqlPoolSecurityAlertPolicy update. + */ + interface Update extends UpdateStages.WithState, UpdateStages.WithEmailAccountAdmins, + UpdateStages.WithStorageEndpoint, UpdateStages.WithStorageAccountAccessKey, UpdateStages.WithRetentionDays { /** * Executes the update request. - * + * * @return the updated resource. */ SqlPoolSecurityAlertPolicy apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ SqlPoolSecurityAlertPolicy apply(Context context); } - /** The SqlPoolSecurityAlertPolicy update stages. */ + + /** + * The SqlPoolSecurityAlertPolicy update stages. + */ interface UpdateStages { - /** The stage of the SqlPoolSecurityAlertPolicy update allowing to specify state. */ + /** + * The stage of the SqlPoolSecurityAlertPolicy update allowing to specify state. + */ interface WithState { /** * Specifies the state property: Specifies the state of the policy, whether it is enabled or disabled or a * policy has not been applied yet on the specific Sql pool.. - * + * * @param state Specifies the state of the policy, whether it is enabled or disabled or a policy has not - * been applied yet on the specific Sql pool. + * been applied yet on the specific Sql pool. * @return the next definition stage. */ Update withState(SecurityAlertPolicyState state); } - /** The stage of the SqlPoolSecurityAlertPolicy update allowing to specify emailAccountAdmins. */ + + /** + * The stage of the SqlPoolSecurityAlertPolicy update allowing to specify emailAccountAdmins. + */ interface WithEmailAccountAdmins { /** * Specifies the emailAccountAdmins property: Specifies that the alert is sent to the account * administrators.. - * + * * @param emailAccountAdmins Specifies that the alert is sent to the account administrators. * @return the next definition stage. */ Update withEmailAccountAdmins(Boolean emailAccountAdmins); } - /** The stage of the SqlPoolSecurityAlertPolicy update allowing to specify storageEndpoint. */ + + /** + * The stage of the SqlPoolSecurityAlertPolicy update allowing to specify storageEndpoint. + */ interface WithStorageEndpoint { /** * Specifies the storageEndpoint property: Specifies the blob storage endpoint (e.g. * https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs.. - * + * * @param storageEndpoint Specifies the blob storage endpoint (e.g. - * https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit - * logs. + * https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. * @return the next definition stage. */ Update withStorageEndpoint(String storageEndpoint); } - /** The stage of the SqlPoolSecurityAlertPolicy update allowing to specify storageAccountAccessKey. */ + + /** + * The stage of the SqlPoolSecurityAlertPolicy update allowing to specify storageAccountAccessKey. + */ interface WithStorageAccountAccessKey { /** * Specifies the storageAccountAccessKey property: Specifies the identifier key of the Threat Detection * audit storage account.. - * + * * @param storageAccountAccessKey Specifies the identifier key of the Threat Detection audit storage - * account. + * account. * @return the next definition stage. */ Update withStorageAccountAccessKey(String storageAccountAccessKey); } - /** The stage of the SqlPoolSecurityAlertPolicy update allowing to specify retentionDays. */ + + /** + * The stage of the SqlPoolSecurityAlertPolicy update allowing to specify retentionDays. + */ interface WithRetentionDays { /** * Specifies the retentionDays property: Specifies the number of days to keep in the Threat Detection audit * logs.. - * + * * @param retentionDays Specifies the number of days to keep in the Threat Detection audit logs. * @return the next definition stage. */ Update withRetentionDays(Integer retentionDays); } } + /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ SqlPoolSecurityAlertPolicy refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSensitivityLabels.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSensitivityLabels.java index 16a268ceb1da..e38a8a39a5c8 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSensitivityLabels.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolSensitivityLabels.java @@ -8,13 +8,15 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of SqlPoolSensitivityLabels. */ +/** + * Resource collection API of SqlPoolSensitivityLabels. + */ public interface SqlPoolSensitivityLabels { /** * Gets SQL pool sensitivity labels - * - *

Gets SQL pool sensitivity labels. - * + * + * Gets SQL pool sensitivity labels. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -27,9 +29,9 @@ public interface SqlPoolSensitivityLabels { /** * Gets SQL pool sensitivity labels - * - *

Gets SQL pool sensitivity labels. - * + * + * Gets SQL pool sensitivity labels. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -40,12 +42,12 @@ public interface SqlPoolSensitivityLabels { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return sQL pool sensitivity labels as paginated response with {@link PagedIterable}. */ - PagedIterable listCurrent( - String resourceGroupName, String workspaceName, String sqlPoolName, String filter, Context context); + PagedIterable listCurrent(String resourceGroupName, String workspaceName, String sqlPoolName, + String filter, Context context); /** * Update sensitivity labels of a given SQL Pool using an operations batch. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -56,16 +58,12 @@ PagedIterable listCurrent( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ - Response updateWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - SensitivityLabelUpdateList parameters, - Context context); + Response updateWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + SensitivityLabelUpdateList parameters, Context context); /** * Update sensitivity labels of a given SQL Pool using an operations batch. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -74,14 +72,14 @@ Response updateWithResponse( * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void update( - String resourceGroupName, String workspaceName, String sqlPoolName, SensitivityLabelUpdateList parameters); + void update(String resourceGroupName, String workspaceName, String sqlPoolName, + SensitivityLabelUpdateList parameters); /** * Gets sensitivity labels of a given SQL pool - * - *

Gets sensitivity labels of a given SQL pool. - * + * + * Gets sensitivity labels of a given SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -94,9 +92,9 @@ void update( /** * Gets sensitivity labels of a given SQL pool - * - *

Gets sensitivity labels of a given SQL pool. - * + * + * Gets sensitivity labels of a given SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -109,18 +107,12 @@ void update( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return sensitivity labels of a given SQL pool as paginated response with {@link PagedIterable}. */ - PagedIterable listRecommended( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - Boolean includeDisabledRecommendations, - String skipToken, - String filter, - Context context); + PagedIterable listRecommended(String resourceGroupName, String workspaceName, String sqlPoolName, + Boolean includeDisabledRecommendations, String skipToken, String filter, Context context); /** * Deletes the sensitivity label of a given column in a Sql pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -133,18 +125,12 @@ PagedIterable listRecommended( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ - Response deleteWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName, - Context context); + Response deleteWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + String schemaName, String tableName, String columnName, Context context); /** * Deletes the sensitivity label of a given column in a Sql pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -155,17 +141,12 @@ Response deleteWithResponse( * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, + void delete(String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName, String columnName); /** * Gets the sensitivity label of a given column. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -179,19 +160,13 @@ void delete( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the sensitivity label of a given column along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName, - SensitivityLabelSource sensitivityLabelSource, + Response getWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + String schemaName, String tableName, String columnName, SensitivityLabelSource sensitivityLabelSource, Context context); /** * Gets the sensitivity label of a given column. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -204,18 +179,12 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the sensitivity label of a given column. */ - SensitivityLabel get( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName, - SensitivityLabelSource sensitivityLabelSource); + SensitivityLabel get(String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, + String tableName, String columnName, SensitivityLabelSource sensitivityLabelSource); /** * Enables sensitivity recommendations on a given column (recommendations are enabled by default on all columns). - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -228,18 +197,12 @@ SensitivityLabel get( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ - Response enableRecommendationWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName, - Context context); + Response enableRecommendationWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + String schemaName, String tableName, String columnName, Context context); /** * Enables sensitivity recommendations on a given column (recommendations are enabled by default on all columns). - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -250,17 +213,12 @@ Response enableRecommendationWithResponse( * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void enableRecommendation( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName); + void enableRecommendation(String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, + String tableName, String columnName); /** * Disables sensitivity recommendations on a given column. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -273,18 +231,12 @@ void enableRecommendation( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ - Response disableRecommendationWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName, - Context context); + Response disableRecommendationWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + String schemaName, String tableName, String columnName, Context context); /** * Disables sensitivity recommendations on a given column. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -295,17 +247,12 @@ Response disableRecommendationWithResponse( * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void disableRecommendation( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String columnName); + void disableRecommendation(String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, + String tableName, String columnName); /** * Deletes the sensitivity label of a given column in a Sql pool. - * + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -315,7 +262,7 @@ void disableRecommendation( /** * Deletes the sensitivity label of a given column in a Sql pool. - * + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -327,7 +274,7 @@ void disableRecommendation( /** * Begins definition for a new SensitivityLabel resource. - * + * * @return the first stage of the new SensitivityLabel definition. */ SensitivityLabel.DefinitionStages.Blank define(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTable.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTable.java index 6df41efdf374..078488f14d7e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTable.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTable.java @@ -6,32 +6,34 @@ import com.azure.resourcemanager.synapse.fluent.models.SqlPoolTableInner; -/** An immutable client-side representation of SqlPoolTable. */ +/** + * An immutable client-side representation of SqlPoolTable. + */ public interface SqlPoolTable { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.SqlPoolTableInner object. - * + * * @return the inner object. */ SqlPoolTableInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTableColumns.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTableColumns.java index 481bd263282b..3894b29f3336 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTableColumns.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTableColumns.java @@ -7,13 +7,15 @@ import com.azure.core.http.rest.PagedIterable; import com.azure.core.util.Context; -/** Resource collection API of SqlPoolTableColumns. */ +/** + * Resource collection API of SqlPoolTableColumns. + */ public interface SqlPoolTableColumns { /** * Gets columns in a given table in a SQL pool - * - *

Gets columns in a given table in a SQL pool. - * + * + * Gets columns in a given table in a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -24,14 +26,14 @@ public interface SqlPoolTableColumns { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return columns in a given table in a SQL pool as paginated response with {@link PagedIterable}. */ - PagedIterable listByTableName( - String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName); + PagedIterable listByTableName(String resourceGroupName, String workspaceName, String sqlPoolName, + String schemaName, String tableName); /** * Gets columns in a given table in a SQL pool - * - *

Gets columns in a given table in a SQL pool. - * + * + * Gets columns in a given table in a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -44,12 +46,6 @@ PagedIterable listByTableName( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return columns in a given table in a SQL pool as paginated response with {@link PagedIterable}. */ - PagedIterable listByTableName( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - String filter, - Context context); + PagedIterable listByTableName(String resourceGroupName, String workspaceName, String sqlPoolName, + String schemaName, String tableName, String filter, Context context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTableListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTableListResult.java index 8303545fe237..4ef96a01b471 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTableListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTableListResult.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** A list of Sql pool tables. */ +/** + * A list of Sql pool tables. + */ @Immutable public final class SqlPoolTableListResult { /* @@ -24,13 +26,15 @@ public final class SqlPoolTableListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; - /** Creates an instance of SqlPoolTableListResult class. */ + /** + * Creates an instance of SqlPoolTableListResult class. + */ public SqlPoolTableListResult() { } /** * Get the value property: Array of results. - * + * * @return the value value. */ public List value() { @@ -39,7 +43,7 @@ public List value() { /** * Get the nextLink property: Link to retrieve next page of results. - * + * * @return the nextLink value. */ public String nextLink() { @@ -48,7 +52,7 @@ public String nextLink() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTables.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTables.java index a618d8327946..0fa8256731bc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTables.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTables.java @@ -8,13 +8,15 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of SqlPoolTables. */ +/** + * Resource collection API of SqlPoolTables. + */ public interface SqlPoolTables { /** * Gets tables of a given schema in a SQL pool - * - *

Gets tables of a given schema in a SQL pool. - * + * + * Gets tables of a given schema in a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -24,14 +26,14 @@ public interface SqlPoolTables { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return tables of a given schema in a SQL pool as paginated response with {@link PagedIterable}. */ - PagedIterable listBySchema( - String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName); + PagedIterable listBySchema(String resourceGroupName, String workspaceName, String sqlPoolName, + String schemaName); /** * Gets tables of a given schema in a SQL pool - * - *

Gets tables of a given schema in a SQL pool. - * + * + * Gets tables of a given schema in a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -43,17 +45,12 @@ PagedIterable listBySchema( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return tables of a given schema in a SQL pool as paginated response with {@link PagedIterable}. */ - PagedIterable listBySchema( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String filter, - Context context); + PagedIterable listBySchema(String resourceGroupName, String workspaceName, String sqlPoolName, + String schemaName, String filter, Context context); /** * Get Sql pool table. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -65,17 +62,12 @@ PagedIterable listBySchema( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return sql pool table along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String schemaName, - String tableName, - Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + String schemaName, String tableName, Context context); /** * Get Sql pool table. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -86,6 +78,6 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return sql pool table. */ - SqlPoolTable get( - String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String tableName); + SqlPoolTable get(String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, + String tableName); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTransparentDataEncryptions.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTransparentDataEncryptions.java index 6f92e93dfa53..6c23422e68a5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTransparentDataEncryptions.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolTransparentDataEncryptions.java @@ -8,13 +8,15 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of SqlPoolTransparentDataEncryptions. */ +/** + * Resource collection API of SqlPoolTransparentDataEncryptions. + */ public interface SqlPoolTransparentDataEncryptions { /** * Get a SQL pool's transparent data encryption configuration - * - *

Get a SQL pool's transparent data encryption configuration. - * + * + * Get a SQL pool's transparent data encryption configuration. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -25,18 +27,14 @@ public interface SqlPoolTransparentDataEncryptions { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a SQL pool's transparent data encryption configuration along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - TransparentDataEncryptionName transparentDataEncryptionName, - Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, TransparentDataEncryptionName transparentDataEncryptionName, Context context); /** * Get a SQL pool's transparent data encryption configuration - * - *

Get a SQL pool's transparent data encryption configuration. - * + * + * Get a SQL pool's transparent data encryption configuration. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -46,33 +44,30 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a SQL pool's transparent data encryption configuration. */ - TransparentDataEncryption get( - String resourceGroupName, - String workspaceName, - String sqlPoolName, + TransparentDataEncryption get(String resourceGroupName, String workspaceName, String sqlPoolName, TransparentDataEncryptionName transparentDataEncryptionName); /** * SQL pool's transparent data encryption configurations - * - *

Get list of SQL pool's transparent data encryption configurations. - * + * + * Get list of SQL pool's transparent data encryption configurations. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of SQL pool's transparent data encryption configurations as paginated response with {@link - * PagedIterable}. + * @return list of SQL pool's transparent data encryption configurations as paginated response with + * {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName); /** * SQL pool's transparent data encryption configurations - * - *

Get list of SQL pool's transparent data encryption configurations. - * + * + * Get list of SQL pool's transparent data encryption configurations. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -80,17 +75,17 @@ TransparentDataEncryption get( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 SQL pool's transparent data encryption configurations as paginated response with {@link - * PagedIterable}. + * @return list of SQL pool's transparent data encryption configurations as paginated response with + * {@link PagedIterable}. */ - PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName, + Context context); /** * Get a SQL pool's transparent data encryption configuration - * - *

Get a SQL pool's transparent data encryption configuration. - * + * + * Get a SQL pool's transparent data encryption configuration. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -101,9 +96,9 @@ PagedIterable list( /** * Get a SQL pool's transparent data encryption configuration - * - *

Get a SQL pool's transparent data encryption configuration. - * + * + * Get a SQL pool's transparent data encryption configuration. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -115,7 +110,7 @@ PagedIterable list( /** * Begins definition for a new TransparentDataEncryption resource. - * + * * @param name resource name. * @return the first stage of the new TransparentDataEncryption definition. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolUsage.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolUsage.java index 0164e4cf2c64..a3f267e17224 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolUsage.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolUsage.java @@ -7,60 +7,62 @@ import com.azure.resourcemanager.synapse.fluent.models.SqlPoolUsageInner; import java.time.OffsetDateTime; -/** An immutable client-side representation of SqlPoolUsage. */ +/** + * An immutable client-side representation of SqlPoolUsage. + */ public interface SqlPoolUsage { /** * Gets the name property: The name of the usage metric. - * + * * @return the name value. */ String name(); /** * Gets the resourceName property: The name of the resource. - * + * * @return the resourceName value. */ String resourceName(); /** * Gets the displayName property: The usage metric display name. - * + * * @return the displayName value. */ String displayName(); /** * Gets the currentValue property: The current value of the usage metric. - * + * * @return the currentValue value. */ Double currentValue(); /** * Gets the limit property: The current limit of the usage metric. - * + * * @return the limit value. */ Double limit(); /** * Gets the unit property: The units of the usage metric. - * + * * @return the unit value. */ String unit(); /** * Gets the nextResetTime property: The next reset time for the usage metric (ISO8601 format). - * + * * @return the nextResetTime value. */ OffsetDateTime nextResetTime(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.SqlPoolUsageInner object. - * + * * @return the inner object. */ SqlPoolUsageInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolUsageListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolUsageListResult.java index ab7b0f9cc4a5..127f43478905 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolUsageListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolUsageListResult.java @@ -10,7 +10,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The response to a list Sql pool usages request. */ +/** + * The response to a list Sql pool usages request. + */ @Fluent public final class SqlPoolUsageListResult { /* @@ -25,13 +27,15 @@ public final class SqlPoolUsageListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; - /** Creates an instance of SqlPoolUsageListResult class. */ + /** + * Creates an instance of SqlPoolUsageListResult class. + */ public SqlPoolUsageListResult() { } /** * Get the value property: The list of usages for the Sql pool. - * + * * @return the value value. */ public List value() { @@ -40,7 +44,7 @@ public List value() { /** * Set the value property: The list of usages for the Sql pool. - * + * * @param value the value value to set. * @return the SqlPoolUsageListResult object itself. */ @@ -51,7 +55,7 @@ public SqlPoolUsageListResult withValue(List value) { /** * Get the nextLink property: Link to retrieve next page of results. - * + * * @return the nextLink value. */ public String nextLink() { @@ -60,14 +64,13 @@ public String nextLink() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (value() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property value in model SqlPoolUsageListResult")); + throw LOGGER.logExceptionAsError( + new IllegalArgumentException("Missing required property value in model SqlPoolUsageListResult")); } else { value().forEach(e -> e.validate()); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolUsages.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolUsages.java index 87acb2d246bd..1bcc4f554f41 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolUsages.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolUsages.java @@ -7,13 +7,15 @@ import com.azure.core.http.rest.PagedIterable; import com.azure.core.util.Context; -/** Resource collection API of SqlPoolUsages. */ +/** + * Resource collection API of SqlPoolUsages. + */ public interface SqlPoolUsages { /** * Gets SQL pool usages - * - *

Gets SQL pool usages. - * + * + * Gets SQL pool usages. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -26,9 +28,9 @@ public interface SqlPoolUsages { /** * Gets SQL pool usages - * - *

Gets SQL pool usages. - * + * + * Gets SQL pool usages. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -38,6 +40,6 @@ public interface SqlPoolUsages { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return sQL pool usages as paginated response with {@link PagedIterable}. */ - PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName, + Context context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessment.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessment.java index 35275f4398b1..ba2dc5302b2f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessment.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessment.java @@ -7,25 +7,27 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.synapse.fluent.models.SqlPoolVulnerabilityAssessmentInner; -/** An immutable client-side representation of SqlPoolVulnerabilityAssessment. */ +/** + * An immutable client-side representation of SqlPoolVulnerabilityAssessment. + */ public interface SqlPoolVulnerabilityAssessment { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); @@ -34,7 +36,7 @@ public interface SqlPoolVulnerabilityAssessment { * Gets the storageContainerPath property: A blob storage container path to hold the scan results (e.g. * https://myStorage.blob.core.windows.net/VaScans/). It is required if server level vulnerability assessment policy * doesn't set. - * + * * @return the storageContainerPath value. */ String storageContainerPath(); @@ -43,7 +45,7 @@ public interface SqlPoolVulnerabilityAssessment { * Gets the storageContainerSasKey property: A shared access signature (SAS Key) that has write access to the blob * container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, * StorageContainerSasKey is required. - * + * * @return the storageContainerSasKey value. */ String storageContainerSasKey(); @@ -51,46 +53,56 @@ public interface SqlPoolVulnerabilityAssessment { /** * Gets the storageAccountAccessKey property: Specifies the identifier key of the storage account for vulnerability * assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. - * + * * @return the storageAccountAccessKey value. */ String storageAccountAccessKey(); /** * Gets the recurringScans property: The recurring scans settings. - * + * * @return the recurringScans value. */ VulnerabilityAssessmentRecurringScansProperties recurringScans(); /** * Gets the name of the resource group. - * + * * @return the name of the resource group. */ String resourceGroupName(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.SqlPoolVulnerabilityAssessmentInner object. - * + * * @return the inner object. */ SqlPoolVulnerabilityAssessmentInner innerModel(); - /** The entirety of the SqlPoolVulnerabilityAssessment definition. */ + /** + * The entirety of the SqlPoolVulnerabilityAssessment definition. + */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { } - /** The SqlPoolVulnerabilityAssessment definition stages. */ + + /** + * The SqlPoolVulnerabilityAssessment definition stages. + */ interface DefinitionStages { - /** The first stage of the SqlPoolVulnerabilityAssessment definition. */ + /** + * The first stage of the SqlPoolVulnerabilityAssessment definition. + */ interface Blank extends WithParentResource { } - /** The stage of the SqlPoolVulnerabilityAssessment definition allowing to specify parent resource. */ + + /** + * The stage of the SqlPoolVulnerabilityAssessment definition allowing to specify parent resource. + */ interface WithParentResource { /** * Specifies resourceGroupName, workspaceName, sqlPoolName. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -98,176 +110,202 @@ interface WithParentResource { */ WithCreate withExistingSqlPool(String resourceGroupName, String workspaceName, String sqlPoolName); } + /** * The stage of the SqlPoolVulnerabilityAssessment definition which contains all the minimum required properties * for the resource to be created, but also allows for any other optional properties to be specified. */ interface WithCreate - extends DefinitionStages.WithStorageContainerPath, - DefinitionStages.WithStorageContainerSasKey, - DefinitionStages.WithStorageAccountAccessKey, - DefinitionStages.WithRecurringScans { + extends DefinitionStages.WithStorageContainerPath, DefinitionStages.WithStorageContainerSasKey, + DefinitionStages.WithStorageAccountAccessKey, DefinitionStages.WithRecurringScans { /** * Executes the create request. - * + * * @return the created resource. */ SqlPoolVulnerabilityAssessment create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ SqlPoolVulnerabilityAssessment create(Context context); } - /** The stage of the SqlPoolVulnerabilityAssessment definition allowing to specify storageContainerPath. */ + + /** + * The stage of the SqlPoolVulnerabilityAssessment definition allowing to specify storageContainerPath. + */ interface WithStorageContainerPath { /** * Specifies the storageContainerPath property: A blob storage container path to hold the scan results (e.g. * https://myStorage.blob.core.windows.net/VaScans/). It is required if server level vulnerability * assessment policy doesn't set. - * + * * @param storageContainerPath A blob storage container path to hold the scan results (e.g. - * https://myStorage.blob.core.windows.net/VaScans/). It is required if server level vulnerability - * assessment policy doesn't set. + * https://myStorage.blob.core.windows.net/VaScans/). It is required if server level vulnerability + * assessment policy doesn't set. * @return the next definition stage. */ WithCreate withStorageContainerPath(String storageContainerPath); } - /** The stage of the SqlPoolVulnerabilityAssessment definition allowing to specify storageContainerSasKey. */ + + /** + * The stage of the SqlPoolVulnerabilityAssessment definition allowing to specify storageContainerSasKey. + */ interface WithStorageContainerSasKey { /** * Specifies the storageContainerSasKey property: A shared access signature (SAS Key) that has write access * to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't * specified, StorageContainerSasKey is required.. - * + * * @param storageContainerSasKey A shared access signature (SAS Key) that has write access to the blob - * container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't - * specified, StorageContainerSasKey is required. + * container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, + * StorageContainerSasKey is required. * @return the next definition stage. */ WithCreate withStorageContainerSasKey(String storageContainerSasKey); } - /** The stage of the SqlPoolVulnerabilityAssessment definition allowing to specify storageAccountAccessKey. */ + + /** + * The stage of the SqlPoolVulnerabilityAssessment definition allowing to specify storageAccountAccessKey. + */ interface WithStorageAccountAccessKey { /** * Specifies the storageAccountAccessKey property: Specifies the identifier key of the storage account for * vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, * storageAccountAccessKey is required.. - * + * * @param storageAccountAccessKey Specifies the identifier key of the storage account for vulnerability - * assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is - * required. + * assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is + * required. * @return the next definition stage. */ WithCreate withStorageAccountAccessKey(String storageAccountAccessKey); } - /** The stage of the SqlPoolVulnerabilityAssessment definition allowing to specify recurringScans. */ + + /** + * The stage of the SqlPoolVulnerabilityAssessment definition allowing to specify recurringScans. + */ interface WithRecurringScans { /** * Specifies the recurringScans property: The recurring scans settings. - * + * * @param recurringScans The recurring scans settings. * @return the next definition stage. */ WithCreate withRecurringScans(VulnerabilityAssessmentRecurringScansProperties recurringScans); } } + /** * Begins update for the SqlPoolVulnerabilityAssessment resource. - * + * * @return the stage of resource update. */ SqlPoolVulnerabilityAssessment.Update update(); - /** The template for SqlPoolVulnerabilityAssessment update. */ - interface Update - extends UpdateStages.WithStorageContainerPath, - UpdateStages.WithStorageContainerSasKey, - UpdateStages.WithStorageAccountAccessKey, - UpdateStages.WithRecurringScans { + /** + * The template for SqlPoolVulnerabilityAssessment update. + */ + interface Update extends UpdateStages.WithStorageContainerPath, UpdateStages.WithStorageContainerSasKey, + UpdateStages.WithStorageAccountAccessKey, UpdateStages.WithRecurringScans { /** * Executes the update request. - * + * * @return the updated resource. */ SqlPoolVulnerabilityAssessment apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ SqlPoolVulnerabilityAssessment apply(Context context); } - /** The SqlPoolVulnerabilityAssessment update stages. */ + + /** + * The SqlPoolVulnerabilityAssessment update stages. + */ interface UpdateStages { - /** The stage of the SqlPoolVulnerabilityAssessment update allowing to specify storageContainerPath. */ + /** + * The stage of the SqlPoolVulnerabilityAssessment update allowing to specify storageContainerPath. + */ interface WithStorageContainerPath { /** * Specifies the storageContainerPath property: A blob storage container path to hold the scan results (e.g. * https://myStorage.blob.core.windows.net/VaScans/). It is required if server level vulnerability * assessment policy doesn't set. - * + * * @param storageContainerPath A blob storage container path to hold the scan results (e.g. - * https://myStorage.blob.core.windows.net/VaScans/). It is required if server level vulnerability - * assessment policy doesn't set. + * https://myStorage.blob.core.windows.net/VaScans/). It is required if server level vulnerability + * assessment policy doesn't set. * @return the next definition stage. */ Update withStorageContainerPath(String storageContainerPath); } - /** The stage of the SqlPoolVulnerabilityAssessment update allowing to specify storageContainerSasKey. */ + + /** + * The stage of the SqlPoolVulnerabilityAssessment update allowing to specify storageContainerSasKey. + */ interface WithStorageContainerSasKey { /** * Specifies the storageContainerSasKey property: A shared access signature (SAS Key) that has write access * to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't * specified, StorageContainerSasKey is required.. - * + * * @param storageContainerSasKey A shared access signature (SAS Key) that has write access to the blob - * container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't - * specified, StorageContainerSasKey is required. + * container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, + * StorageContainerSasKey is required. * @return the next definition stage. */ Update withStorageContainerSasKey(String storageContainerSasKey); } - /** The stage of the SqlPoolVulnerabilityAssessment update allowing to specify storageAccountAccessKey. */ + + /** + * The stage of the SqlPoolVulnerabilityAssessment update allowing to specify storageAccountAccessKey. + */ interface WithStorageAccountAccessKey { /** * Specifies the storageAccountAccessKey property: Specifies the identifier key of the storage account for * vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, * storageAccountAccessKey is required.. - * + * * @param storageAccountAccessKey Specifies the identifier key of the storage account for vulnerability - * assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is - * required. + * assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is + * required. * @return the next definition stage. */ Update withStorageAccountAccessKey(String storageAccountAccessKey); } - /** The stage of the SqlPoolVulnerabilityAssessment update allowing to specify recurringScans. */ + + /** + * The stage of the SqlPoolVulnerabilityAssessment update allowing to specify recurringScans. + */ interface WithRecurringScans { /** * Specifies the recurringScans property: The recurring scans settings. - * + * * @param recurringScans The recurring scans settings. * @return the next definition stage. */ Update withRecurringScans(VulnerabilityAssessmentRecurringScansProperties recurringScans); } } + /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ SqlPoolVulnerabilityAssessment refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentListResult.java index bd2e9a3e581f..36f884ba7428 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentListResult.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** A list of the Sql pool's vulnerability assessments. */ +/** + * A list of the Sql pool's vulnerability assessments. + */ @Immutable public final class SqlPoolVulnerabilityAssessmentListResult { /* @@ -24,13 +26,15 @@ public final class SqlPoolVulnerabilityAssessmentListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; - /** Creates an instance of SqlPoolVulnerabilityAssessmentListResult class. */ + /** + * Creates an instance of SqlPoolVulnerabilityAssessmentListResult class. + */ public SqlPoolVulnerabilityAssessmentListResult() { } /** * Get the value property: Array of results. - * + * * @return the value value. */ public List value() { @@ -39,7 +43,7 @@ public List value() { /** * Get the nextLink property: Link to retrieve next page of results. - * + * * @return the nextLink value. */ public String nextLink() { @@ -48,7 +52,7 @@ public String nextLink() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentRuleBaseline.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentRuleBaseline.java index 1cb31b9f9a43..1481f317db3e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentRuleBaseline.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentRuleBaseline.java @@ -8,39 +8,41 @@ import com.azure.resourcemanager.synapse.fluent.models.SqlPoolVulnerabilityAssessmentRuleBaselineInner; import java.util.List; -/** An immutable client-side representation of SqlPoolVulnerabilityAssessmentRuleBaseline. */ +/** + * An immutable client-side representation of SqlPoolVulnerabilityAssessmentRuleBaseline. + */ public interface SqlPoolVulnerabilityAssessmentRuleBaseline { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the baselineResults property: The rule baseline result. - * + * * @return the baselineResults value. */ List baselineResults(); /** * Gets the name of the resource group. - * + * * @return the name of the resource group. */ String resourceGroupName(); @@ -48,27 +50,35 @@ public interface SqlPoolVulnerabilityAssessmentRuleBaseline { /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.SqlPoolVulnerabilityAssessmentRuleBaselineInner * object. - * + * * @return the inner object. */ SqlPoolVulnerabilityAssessmentRuleBaselineInner innerModel(); - /** The entirety of the SqlPoolVulnerabilityAssessmentRuleBaseline definition. */ + /** + * The entirety of the SqlPoolVulnerabilityAssessmentRuleBaseline definition. + */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { } - /** The SqlPoolVulnerabilityAssessmentRuleBaseline definition stages. */ + + /** + * The SqlPoolVulnerabilityAssessmentRuleBaseline definition stages. + */ interface DefinitionStages { - /** The first stage of the SqlPoolVulnerabilityAssessmentRuleBaseline definition. */ + /** + * The first stage of the SqlPoolVulnerabilityAssessmentRuleBaseline definition. + */ interface Blank extends WithParentResource { } + /** * The stage of the SqlPoolVulnerabilityAssessmentRuleBaseline definition allowing to specify parent resource. */ interface WithParentResource { /** * Specifies resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, ruleId. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -76,13 +86,10 @@ interface WithParentResource { * @param ruleId The vulnerability assessment rule ID. * @return the next definition stage. */ - WithCreate withExistingRule( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String ruleId); + WithCreate withExistingRule(String resourceGroupName, String workspaceName, String sqlPoolName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId); } + /** * The stage of the SqlPoolVulnerabilityAssessmentRuleBaseline definition which contains all the minimum * required properties for the resource to be created, but also allows for any other optional properties to be @@ -91,79 +98,89 @@ WithCreate withExistingRule( interface WithCreate extends DefinitionStages.WithBaselineResults { /** * Executes the create request. - * + * * @return the created resource. */ SqlPoolVulnerabilityAssessmentRuleBaseline create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ SqlPoolVulnerabilityAssessmentRuleBaseline create(Context context); } + /** * The stage of the SqlPoolVulnerabilityAssessmentRuleBaseline definition allowing to specify baselineResults. */ interface WithBaselineResults { /** * Specifies the baselineResults property: The rule baseline result. - * + * * @param baselineResults The rule baseline result. * @return the next definition stage. */ WithCreate withBaselineResults(List baselineResults); } } + /** * Begins update for the SqlPoolVulnerabilityAssessmentRuleBaseline resource. - * + * * @return the stage of resource update. */ SqlPoolVulnerabilityAssessmentRuleBaseline.Update update(); - /** The template for SqlPoolVulnerabilityAssessmentRuleBaseline update. */ + /** + * The template for SqlPoolVulnerabilityAssessmentRuleBaseline update. + */ interface Update extends UpdateStages.WithBaselineResults { /** * Executes the update request. - * + * * @return the updated resource. */ SqlPoolVulnerabilityAssessmentRuleBaseline apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ SqlPoolVulnerabilityAssessmentRuleBaseline apply(Context context); } - /** The SqlPoolVulnerabilityAssessmentRuleBaseline update stages. */ + + /** + * The SqlPoolVulnerabilityAssessmentRuleBaseline update stages. + */ interface UpdateStages { - /** The stage of the SqlPoolVulnerabilityAssessmentRuleBaseline update allowing to specify baselineResults. */ + /** + * The stage of the SqlPoolVulnerabilityAssessmentRuleBaseline update allowing to specify baselineResults. + */ interface WithBaselineResults { /** * Specifies the baselineResults property: The rule baseline result. - * + * * @param baselineResults The rule baseline result. * @return the next definition stage. */ Update withBaselineResults(List baselineResults); } } + /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ SqlPoolVulnerabilityAssessmentRuleBaseline refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentRuleBaselineItem.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentRuleBaselineItem.java index 36f23fdad3db..404f73c2dbcc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentRuleBaselineItem.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentRuleBaselineItem.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Properties for an Sql pool vulnerability assessment rule baseline's result. */ +/** + * Properties for an Sql pool vulnerability assessment rule baseline's result. + */ @Fluent public final class SqlPoolVulnerabilityAssessmentRuleBaselineItem { /* @@ -18,13 +20,15 @@ public final class SqlPoolVulnerabilityAssessmentRuleBaselineItem { @JsonProperty(value = "result", required = true) private List result; - /** Creates an instance of SqlPoolVulnerabilityAssessmentRuleBaselineItem class. */ + /** + * Creates an instance of SqlPoolVulnerabilityAssessmentRuleBaselineItem class. + */ public SqlPoolVulnerabilityAssessmentRuleBaselineItem() { } /** * Get the result property: The rule baseline result. - * + * * @return the result value. */ public List result() { @@ -33,7 +37,7 @@ public List result() { /** * Set the result property: The rule baseline result. - * + * * @param result the result value to set. * @return the SqlPoolVulnerabilityAssessmentRuleBaselineItem object itself. */ @@ -44,15 +48,13 @@ public SqlPoolVulnerabilityAssessmentRuleBaselineItem withResult(List re /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (result() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property result in model SqlPoolVulnerabilityAssessmentRuleBaselineItem")); + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + "Missing required property result in model SqlPoolVulnerabilityAssessmentRuleBaselineItem")); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentRuleBaselines.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentRuleBaselines.java index d6ddcba71f21..da3517c6db42 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentRuleBaselines.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentRuleBaselines.java @@ -7,106 +7,90 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of SqlPoolVulnerabilityAssessmentRuleBaselines. */ +/** + * Resource collection API of SqlPoolVulnerabilityAssessmentRuleBaselines. + */ public interface SqlPoolVulnerabilityAssessmentRuleBaselines { /** * Removes the database's vulnerability assessment rule baseline. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param ruleId The vulnerability assessment rule ID. * @param baselineName The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql - * pool level rule and master for workspace level rule). + * pool level rule and master for workspace level rule). * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ - Response deleteWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String ruleId, - VulnerabilityAssessmentPolicyBaselineName baselineName, - Context context); + Response deleteWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, + VulnerabilityAssessmentPolicyBaselineName baselineName, Context context); /** * Removes the database's vulnerability assessment rule baseline. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param ruleId The vulnerability assessment rule ID. * @param baselineName The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql - * pool level rule and master for workspace level rule). + * pool level rule and master for workspace level rule). * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String ruleId, + void delete(String resourceGroupName, String workspaceName, String sqlPoolName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName); /** * Gets a SqlPool's vulnerability assessment rule baseline. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param ruleId The vulnerability assessment rule ID. * @param baselineName The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql - * pool level rule and master for server level rule). + * pool level rule and master for server level rule). * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a SqlPool's vulnerability assessment rule baseline along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String ruleId, - VulnerabilityAssessmentPolicyBaselineName baselineName, - Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, + VulnerabilityAssessmentPolicyBaselineName baselineName, Context context); /** * Gets a SqlPool's vulnerability assessment rule baseline. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param ruleId The vulnerability assessment rule ID. * @param baselineName The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql - * pool level rule and master for server level rule). + * pool level rule and master for server level rule). * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a SqlPool's vulnerability assessment rule baseline. */ - SqlPoolVulnerabilityAssessmentRuleBaseline get( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String ruleId, + SqlPoolVulnerabilityAssessmentRuleBaseline get(String resourceGroupName, String workspaceName, String sqlPoolName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName); /** * Gets a SqlPool's vulnerability assessment rule baseline. - * + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -117,7 +101,7 @@ SqlPoolVulnerabilityAssessmentRuleBaseline get( /** * Gets a SqlPool's vulnerability assessment rule baseline. - * + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -129,7 +113,7 @@ SqlPoolVulnerabilityAssessmentRuleBaseline get( /** * Removes the database's vulnerability assessment rule baseline. - * + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -139,7 +123,7 @@ SqlPoolVulnerabilityAssessmentRuleBaseline get( /** * Removes the database's vulnerability assessment rule baseline. - * + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -151,10 +135,10 @@ SqlPoolVulnerabilityAssessmentRuleBaseline get( /** * Begins definition for a new SqlPoolVulnerabilityAssessmentRuleBaseline resource. - * + * * @param name resource name. * @return the first stage of the new SqlPoolVulnerabilityAssessmentRuleBaseline definition. */ - SqlPoolVulnerabilityAssessmentRuleBaseline.DefinitionStages.Blank define( - VulnerabilityAssessmentPolicyBaselineName name); + SqlPoolVulnerabilityAssessmentRuleBaseline.DefinitionStages.Blank + define(VulnerabilityAssessmentPolicyBaselineName name); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentScans.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentScans.java index b84d4857e345..3775dc46b32c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentScans.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentScans.java @@ -8,13 +8,15 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of SqlPoolVulnerabilityAssessmentScans. */ +/** + * Resource collection API of SqlPoolVulnerabilityAssessmentScans. + */ public interface SqlPoolVulnerabilityAssessmentScans { /** * Lists the vulnerability assessment scans of a SQL pool - * - *

Lists the vulnerability assessment scans of a SQL pool. - * + * + * Lists the vulnerability assessment scans of a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -24,17 +26,14 @@ public interface SqlPoolVulnerabilityAssessmentScans { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of vulnerability assessment scan records as paginated response with {@link PagedIterable}. */ - PagedIterable list( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName); + PagedIterable list(String resourceGroupName, String workspaceName, + String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName); /** * Lists the vulnerability assessment scans of a SQL pool - * - *

Lists the vulnerability assessment scans of a SQL pool. - * + * + * Lists the vulnerability assessment scans of a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -45,16 +44,12 @@ PagedIterable list( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of vulnerability assessment scan records as paginated response with {@link PagedIterable}. */ - PagedIterable list( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - Context context); + PagedIterable list(String resourceGroupName, String workspaceName, + String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, Context context); /** * Executes a Vulnerability Assessment database scan. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -64,16 +59,12 @@ PagedIterable list( * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void initiateScan( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String scanId); + void initiateScan(String resourceGroupName, String workspaceName, String sqlPoolName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, String scanId); /** * Executes a Vulnerability Assessment database scan. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -84,17 +75,12 @@ void initiateScan( * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void initiateScan( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String scanId, - Context context); + void initiateScan(String resourceGroupName, String workspaceName, String sqlPoolName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, String scanId, Context context); /** * Convert an existing scan result to a human readable format. If already exists nothing happens. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -106,17 +92,13 @@ void initiateScan( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Sql pool Vulnerability Assessment scan export resource along with {@link Response}. */ - Response exportWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String scanId, - Context context); + Response exportWithResponse(String resourceGroupName, + String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, + String scanId, Context context); /** * Convert an existing scan result to a human readable format. If already exists nothing happens. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -127,16 +109,12 @@ Response exportWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Sql pool Vulnerability Assessment scan export resource. */ - SqlPoolVulnerabilityAssessmentScansExport export( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String scanId); + SqlPoolVulnerabilityAssessmentScansExport export(String resourceGroupName, String workspaceName, String sqlPoolName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, String scanId); /** * Gets a vulnerability assessment scan record of a Sql pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -148,17 +126,12 @@ SqlPoolVulnerabilityAssessmentScansExport export( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a vulnerability assessment scan record of a Sql pool along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String scanId, - Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String scanId, Context context); /** * Gets a vulnerability assessment scan record of a Sql pool. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -169,10 +142,6 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a vulnerability assessment scan record of a Sql pool. */ - VulnerabilityAssessmentScanRecord get( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - String scanId); + VulnerabilityAssessmentScanRecord get(String resourceGroupName, String workspaceName, String sqlPoolName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, String scanId); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentScansExport.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentScansExport.java index d15bef3574cf..122039f54fb3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentScansExport.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessmentScansExport.java @@ -6,25 +6,27 @@ import com.azure.resourcemanager.synapse.fluent.models.SqlPoolVulnerabilityAssessmentScansExportInner; -/** An immutable client-side representation of SqlPoolVulnerabilityAssessmentScansExport. */ +/** + * An immutable client-side representation of SqlPoolVulnerabilityAssessmentScansExport. + */ public interface SqlPoolVulnerabilityAssessmentScansExport { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); @@ -32,7 +34,7 @@ public interface SqlPoolVulnerabilityAssessmentScansExport { /** * Gets the exportedReportLocation property: Location of the exported report (e.g. * https://myStorage.blob.core.windows.net/VaScans/scans/serverName/databaseName/scan_scanId.xlsx). - * + * * @return the exportedReportLocation value. */ String exportedReportLocation(); @@ -40,7 +42,7 @@ public interface SqlPoolVulnerabilityAssessmentScansExport { /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.SqlPoolVulnerabilityAssessmentScansExportInner * object. - * + * * @return the inner object. */ SqlPoolVulnerabilityAssessmentScansExportInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessments.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessments.java index 1a0116f9e222..ee77b0bf67f5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessments.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolVulnerabilityAssessments.java @@ -8,13 +8,15 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of SqlPoolVulnerabilityAssessments. */ +/** + * Resource collection API of SqlPoolVulnerabilityAssessments. + */ public interface SqlPoolVulnerabilityAssessments { /** * Lists the vulnerability assessment policies associated with a SQL pool - * - *

Lists the vulnerability assessment policies associated with a SQL pool. - * + * + * Lists the vulnerability assessment policies associated with a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -23,14 +25,14 @@ public interface SqlPoolVulnerabilityAssessments { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of the Sql pool's vulnerability assessments as paginated response with {@link PagedIterable}. */ - PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName); + PagedIterable list(String resourceGroupName, String workspaceName, + String sqlPoolName); /** * Lists the vulnerability assessment policies associated with a SQL pool - * - *

Lists the vulnerability assessment policies associated with a SQL pool. - * + * + * Lists the vulnerability assessment policies associated with a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -40,14 +42,14 @@ PagedIterable list( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of the Sql pool's vulnerability assessments as paginated response with {@link PagedIterable}. */ - PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + PagedIterable list(String resourceGroupName, String workspaceName, + String sqlPoolName, Context context); /** * Gets the Sql pool's vulnerability assessment - * - *

Gets the Sql pool's vulnerability assessment. - * + * + * Gets the Sql pool's vulnerability assessment. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -58,18 +60,14 @@ PagedIterable list( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the Sql pool's vulnerability assessment along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName, Context context); /** * Gets the Sql pool's vulnerability assessment - * - *

Gets the Sql pool's vulnerability assessment. - * + * + * Gets the Sql pool's vulnerability assessment. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -79,17 +77,14 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the Sql pool's vulnerability assessment. */ - SqlPoolVulnerabilityAssessment get( - String resourceGroupName, - String workspaceName, - String sqlPoolName, + SqlPoolVulnerabilityAssessment get(String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName); /** * Removes the database's vulnerability assessment - * - *

Removes the database's vulnerability assessment. - * + * + * Removes the database's vulnerability assessment. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -100,18 +95,14 @@ SqlPoolVulnerabilityAssessment get( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ - Response deleteWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - Context context); + Response deleteWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, Context context); /** * Removes the database's vulnerability assessment - * - *

Removes the database's vulnerability assessment. - * + * + * Removes the database's vulnerability assessment. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -120,17 +111,14 @@ Response deleteWithResponse( * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete( - String resourceGroupName, - String workspaceName, - String sqlPoolName, + void delete(String resourceGroupName, String workspaceName, String sqlPoolName, VulnerabilityAssessmentName vulnerabilityAssessmentName); /** * Gets the Sql pool's vulnerability assessment - * - *

Gets the Sql pool's vulnerability assessment. - * + * + * Gets the Sql pool's vulnerability assessment. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -141,9 +129,9 @@ void delete( /** * Gets the Sql pool's vulnerability assessment - * - *

Gets the Sql pool's vulnerability assessment. - * + * + * Gets the Sql pool's vulnerability assessment. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -155,9 +143,9 @@ void delete( /** * Removes the database's vulnerability assessment - * - *

Removes the database's vulnerability assessment. - * + * + * Removes the database's vulnerability assessment. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -167,9 +155,9 @@ void delete( /** * Removes the database's vulnerability assessment - * - *

Removes the database's vulnerability assessment. - * + * + * Removes the database's vulnerability assessment. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -181,7 +169,7 @@ void delete( /** * Begins definition for a new SqlPoolVulnerabilityAssessment resource. - * + * * @param name resource name. * @return the first stage of the new SqlPoolVulnerabilityAssessment definition. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolWorkloadClassifiers.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolWorkloadClassifiers.java index 2575da63df26..edff0ba7518c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolWorkloadClassifiers.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolWorkloadClassifiers.java @@ -8,13 +8,15 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of SqlPoolWorkloadClassifiers. */ +/** + * Resource collection API of SqlPoolWorkloadClassifiers. + */ public interface SqlPoolWorkloadClassifiers { /** * Get workload classifier - * - *

Get a workload classifier of Sql pool's workload group. - * + * + * Get a workload classifier of Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -26,19 +28,14 @@ public interface SqlPoolWorkloadClassifiers { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a workload classifier of Sql pool's workload group along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, - String workloadClassifierName, - Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + String workloadGroupName, String workloadClassifierName, Context context); /** * Get workload classifier - * - *

Get a workload classifier of Sql pool's workload group. - * + * + * Get a workload classifier of Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -49,18 +46,14 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a workload classifier of Sql pool's workload group. */ - WorkloadClassifier get( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, + WorkloadClassifier get(String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, String workloadClassifierName); /** * Remove workload classifier - * - *

Remove workload classifier of a Sql pool's workload group. - * + * + * Remove workload classifier of a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -70,18 +63,14 @@ WorkloadClassifier get( * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, + void delete(String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, String workloadClassifierName); /** * Remove workload classifier - * - *

Remove workload classifier of a Sql pool's workload group. - * + * + * Remove workload classifier of a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -92,19 +81,14 @@ void delete( * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - String workloadGroupName, - String workloadClassifierName, - Context context); + void delete(String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, + String workloadClassifierName, Context context); /** * Sql pool's workload classifier - * - *

Get list of Sql pool's workload classifier for workload groups. - * + * + * Get list of Sql pool's workload classifier for workload groups. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -112,17 +96,17 @@ void delete( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of Sql pool's workload classifier for workload groups as paginated response with {@link - * PagedIterable}. + * @return list of Sql pool's workload classifier for workload groups as paginated response with + * {@link PagedIterable}. */ - PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName); + PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName, + String workloadGroupName); /** * Sql pool's workload classifier - * - *

Get list of Sql pool's workload classifier for workload groups. - * + * + * Get list of Sql pool's workload classifier for workload groups. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -131,17 +115,17 @@ PagedIterable list( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 Sql pool's workload classifier for workload groups as paginated response with {@link - * PagedIterable}. + * @return list of Sql pool's workload classifier for workload groups as paginated response with + * {@link PagedIterable}. */ - PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, Context context); + PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName, + String workloadGroupName, Context context); /** * Get workload classifier - * - *

Get a workload classifier of Sql pool's workload group. - * + * + * Get a workload classifier of Sql pool's workload group. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -152,9 +136,9 @@ PagedIterable list( /** * Get workload classifier - * - *

Get a workload classifier of Sql pool's workload group. - * + * + * Get a workload classifier of Sql pool's workload group. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -166,9 +150,9 @@ PagedIterable list( /** * Remove workload classifier - * - *

Remove workload classifier of a Sql pool's workload group. - * + * + * Remove workload classifier of a Sql pool's workload group. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -178,9 +162,9 @@ PagedIterable list( /** * Remove workload classifier - * - *

Remove workload classifier of a Sql pool's workload group. - * + * + * Remove workload classifier of a Sql pool's workload group. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -191,7 +175,7 @@ PagedIterable list( /** * Begins definition for a new WorkloadClassifier resource. - * + * * @param name resource name. * @return the first stage of the new WorkloadClassifier definition. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolWorkloadGroups.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolWorkloadGroups.java index 6772e785e354..521d3e9ffee5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolWorkloadGroups.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPoolWorkloadGroups.java @@ -8,13 +8,15 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of SqlPoolWorkloadGroups. */ +/** + * Resource collection API of SqlPoolWorkloadGroups. + */ public interface SqlPoolWorkloadGroups { /** * Sql pool's workload group - * - *

Get a Sql pool's workload group. - * + * + * Get a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -25,14 +27,14 @@ public interface SqlPoolWorkloadGroups { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Sql pool's workload group along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + String workloadGroupName, Context context); /** * Sql pool's workload group - * - *

Get a Sql pool's workload group. - * + * + * Get a Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -46,9 +48,9 @@ Response getWithResponse( /** * Remove workload group - * - *

Remove Sql pool's workload group. - * + * + * Remove Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -61,9 +63,9 @@ Response getWithResponse( /** * Remove workload group - * - *

Remove Sql pool's workload group. - * + * + * Remove Sql pool's workload group. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -73,14 +75,14 @@ Response getWithResponse( * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete( - String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, Context context); + void delete(String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName, + Context context); /** * Sql pool's workload groups - * - *

Get list of Sql pool's workload groups. - * + * + * Get list of Sql pool's workload groups. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -93,9 +95,9 @@ void delete( /** * Sql pool's workload groups - * - *

Get list of Sql pool's workload groups. - * + * + * Get list of Sql pool's workload groups. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -105,14 +107,14 @@ void delete( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return list of Sql pool's workload groups as paginated response with {@link PagedIterable}. */ - PagedIterable list( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + PagedIterable list(String resourceGroupName, String workspaceName, String sqlPoolName, + Context context); /** * Sql pool's workload group - * - *

Get a Sql pool's workload group. - * + * + * Get a Sql pool's workload group. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -123,9 +125,9 @@ PagedIterable list( /** * Sql pool's workload group - * - *

Get a Sql pool's workload group. - * + * + * Get a Sql pool's workload group. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -137,9 +139,9 @@ PagedIterable list( /** * Remove workload group - * - *

Remove Sql pool's workload group. - * + * + * Remove Sql pool's workload group. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -149,9 +151,9 @@ PagedIterable list( /** * Remove workload group - * - *

Remove Sql pool's workload group. - * + * + * Remove Sql pool's workload group. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -162,7 +164,7 @@ PagedIterable list( /** * Begins definition for a new WorkloadGroup resource. - * + * * @param name resource name. * @return the first stage of the new WorkloadGroup definition. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPools.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPools.java index 9706ee1b5c0e..0446c5f97077 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPools.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SqlPools.java @@ -8,13 +8,15 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of SqlPools. */ +/** + * Resource collection API of SqlPools. + */ public interface SqlPools { /** * Get SQL pool - * - *

Get SQL pool properties. - * + * + * Get SQL pool properties. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -24,14 +26,14 @@ public interface SqlPools { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return sQL pool properties along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + Context context); /** * Get SQL pool - * - *

Get SQL pool properties. - * + * + * Get SQL pool properties. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -44,9 +46,9 @@ Response getWithResponse( /** * Delete SQL pool - * - *

Delete a SQL pool. - * + * + * Delete a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -59,9 +61,9 @@ Response getWithResponse( /** * Delete SQL pool - * - *

Delete a SQL pool. - * + * + * Delete a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -75,9 +77,9 @@ Response getWithResponse( /** * List SQL pools - * - *

List all SQL pools. - * + * + * List all SQL pools. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -89,9 +91,9 @@ Response getWithResponse( /** * List SQL pools - * - *

List all SQL pools. - * + * + * List all SQL pools. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -104,9 +106,9 @@ Response getWithResponse( /** * Pause SQL pool - * - *

Pause a SQL pool. - * + * + * Pause a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -119,9 +121,9 @@ Response getWithResponse( /** * Pause SQL pool - * - *

Pause a SQL pool. - * + * + * Pause a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -135,9 +137,9 @@ Response getWithResponse( /** * Resume SQL pool - * - *

Resume a SQL pool. - * + * + * Resume a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -150,9 +152,9 @@ Response getWithResponse( /** * Resume SQL pool - * - *

Resume a SQL pool. - * + * + * Resume a SQL pool. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -164,48 +166,11 @@ Response getWithResponse( */ SqlPool resume(String resourceGroupName, String workspaceName, String sqlPoolName, Context context); - /** - * Rename a SQL pool - * - *

Rename a SQL pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param sqlPoolName SQL pool name. - * @param parameters The resource move definition for renaming this Sql pool. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown 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}. - */ - Response renameWithResponse( - String resourceGroupName, - String workspaceName, - String sqlPoolName, - ResourceMoveDefinition parameters, - Context context); - - /** - * Rename a SQL pool - * - *

Rename a SQL pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param sqlPoolName SQL pool name. - * @param parameters The resource move definition for renaming this Sql pool. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void rename(String resourceGroupName, String workspaceName, String sqlPoolName, ResourceMoveDefinition parameters); - /** * Get SQL pool - * - *

Get SQL pool properties. - * + * + * Get SQL pool properties. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -216,9 +181,9 @@ Response renameWithResponse( /** * Get SQL pool - * - *

Get SQL pool properties. - * + * + * Get SQL pool properties. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -230,9 +195,9 @@ Response renameWithResponse( /** * Delete SQL pool - * - *

Delete a SQL pool. - * + * + * Delete a SQL pool. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -243,9 +208,9 @@ Response renameWithResponse( /** * Delete SQL pool - * - *

Delete a SQL pool. - * + * + * Delete a SQL pool. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -257,7 +222,7 @@ Response renameWithResponse( /** * Begins definition for a new SqlPool resource. - * + * * @param name resource name. * @return the first stage of the new SqlPool definition. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisEnvironment.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisEnvironment.java index 2cee56fad2e8..fac97ed22abe 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisEnvironment.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisEnvironment.java @@ -10,7 +10,9 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import java.util.List; -/** Ssis environment. */ +/** + * Ssis environment. + */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Environment") @Fluent @@ -27,13 +29,15 @@ public final class SsisEnvironment extends SsisObjectMetadata { @JsonProperty(value = "variables") private List variables; - /** Creates an instance of SsisEnvironment class. */ + /** + * Creates an instance of SsisEnvironment class. + */ public SsisEnvironment() { } /** * Get the folderId property: Folder id which contains environment. - * + * * @return the folderId value. */ public Long folderId() { @@ -42,7 +46,7 @@ public Long folderId() { /** * Set the folderId property: Folder id which contains environment. - * + * * @param folderId the folderId value to set. * @return the SsisEnvironment object itself. */ @@ -53,7 +57,7 @@ public SsisEnvironment withFolderId(Long folderId) { /** * Get the variables property: Variable in environment. - * + * * @return the variables value. */ public List variables() { @@ -62,7 +66,7 @@ public List variables() { /** * Set the variables property: Variable in environment. - * + * * @param variables the variables value to set. * @return the SsisEnvironment object itself. */ @@ -71,21 +75,27 @@ public SsisEnvironment withVariables(List variables) { return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public SsisEnvironment withId(Long id) { super.withId(id); return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public SsisEnvironment withName(String name) { super.withName(name); return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public SsisEnvironment withDescription(String description) { super.withDescription(description); @@ -94,7 +104,7 @@ public SsisEnvironment withDescription(String description) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ @Override diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisEnvironmentReference.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisEnvironmentReference.java index 01e756d66724..d8f1677ea948 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisEnvironmentReference.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisEnvironmentReference.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Ssis environment reference. */ +/** + * Ssis environment reference. + */ @Fluent public final class SsisEnvironmentReference { /* @@ -34,13 +36,15 @@ public final class SsisEnvironmentReference { @JsonProperty(value = "referenceType") private String referenceType; - /** Creates an instance of SsisEnvironmentReference class. */ + /** + * Creates an instance of SsisEnvironmentReference class. + */ public SsisEnvironmentReference() { } /** * Get the id property: Environment reference id. - * + * * @return the id value. */ public Long id() { @@ -49,7 +53,7 @@ public Long id() { /** * Set the id property: Environment reference id. - * + * * @param id the id value to set. * @return the SsisEnvironmentReference object itself. */ @@ -60,7 +64,7 @@ public SsisEnvironmentReference withId(Long id) { /** * Get the environmentFolderName property: Environment folder name. - * + * * @return the environmentFolderName value. */ public String environmentFolderName() { @@ -69,7 +73,7 @@ public String environmentFolderName() { /** * Set the environmentFolderName property: Environment folder name. - * + * * @param environmentFolderName the environmentFolderName value to set. * @return the SsisEnvironmentReference object itself. */ @@ -80,7 +84,7 @@ public SsisEnvironmentReference withEnvironmentFolderName(String environmentFold /** * Get the environmentName property: Environment name. - * + * * @return the environmentName value. */ public String environmentName() { @@ -89,7 +93,7 @@ public String environmentName() { /** * Set the environmentName property: Environment name. - * + * * @param environmentName the environmentName value to set. * @return the SsisEnvironmentReference object itself. */ @@ -100,7 +104,7 @@ public SsisEnvironmentReference withEnvironmentName(String environmentName) { /** * Get the referenceType property: Reference type. - * + * * @return the referenceType value. */ public String referenceType() { @@ -109,7 +113,7 @@ public String referenceType() { /** * Set the referenceType property: Reference type. - * + * * @param referenceType the referenceType value to set. * @return the SsisEnvironmentReference object itself. */ @@ -120,7 +124,7 @@ public SsisEnvironmentReference withReferenceType(String referenceType) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisFolder.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisFolder.java index 5b79d75299e7..11177ed4c510 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisFolder.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisFolder.java @@ -8,30 +8,40 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; -/** Ssis folder. */ +/** + * Ssis folder. + */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Folder") @Fluent public final class SsisFolder extends SsisObjectMetadata { - /** Creates an instance of SsisFolder class. */ + /** + * Creates an instance of SsisFolder class. + */ public SsisFolder() { } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public SsisFolder withId(Long id) { super.withId(id); return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public SsisFolder withName(String name) { super.withName(name); return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public SsisFolder withDescription(String description) { super.withDescription(description); @@ -40,7 +50,7 @@ public SsisFolder withDescription(String description) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ @Override diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisObjectMetadata.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisObjectMetadata.java index cbf0776ecfdc..f6a6e15cb8e1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisObjectMetadata.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisObjectMetadata.java @@ -10,7 +10,9 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; -/** SSIS object metadata. */ +/** + * SSIS object metadata. + */ @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, @@ -21,8 +23,7 @@ @JsonSubTypes.Type(name = "Folder", value = SsisFolder.class), @JsonSubTypes.Type(name = "Project", value = SsisProject.class), @JsonSubTypes.Type(name = "Package", value = SsisPackage.class), - @JsonSubTypes.Type(name = "Environment", value = SsisEnvironment.class) -}) + @JsonSubTypes.Type(name = "Environment", value = SsisEnvironment.class) }) @Fluent public class SsisObjectMetadata { /* @@ -43,13 +44,15 @@ public class SsisObjectMetadata { @JsonProperty(value = "description") private String description; - /** Creates an instance of SsisObjectMetadata class. */ + /** + * Creates an instance of SsisObjectMetadata class. + */ public SsisObjectMetadata() { } /** * Get the id property: Metadata id. - * + * * @return the id value. */ public Long id() { @@ -58,7 +61,7 @@ public Long id() { /** * Set the id property: Metadata id. - * + * * @param id the id value to set. * @return the SsisObjectMetadata object itself. */ @@ -69,7 +72,7 @@ public SsisObjectMetadata withId(Long id) { /** * Get the name property: Metadata name. - * + * * @return the name value. */ public String name() { @@ -78,7 +81,7 @@ public String name() { /** * Set the name property: Metadata name. - * + * * @param name the name value to set. * @return the SsisObjectMetadata object itself. */ @@ -89,7 +92,7 @@ public SsisObjectMetadata withName(String name) { /** * Get the description property: Metadata description. - * + * * @return the description value. */ public String description() { @@ -98,7 +101,7 @@ public String description() { /** * Set the description property: Metadata description. - * + * * @param description the description value to set. * @return the SsisObjectMetadata object itself. */ @@ -109,7 +112,7 @@ public SsisObjectMetadata withDescription(String description) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisObjectMetadataListResponse.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisObjectMetadataListResponse.java index 965c55f6f887..a834467fdbf8 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisObjectMetadataListResponse.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisObjectMetadataListResponse.java @@ -7,25 +7,27 @@ import com.azure.resourcemanager.synapse.fluent.models.SsisObjectMetadataListResponseInner; import java.util.List; -/** An immutable client-side representation of SsisObjectMetadataListResponse. */ +/** + * An immutable client-side representation of SsisObjectMetadataListResponse. + */ public interface SsisObjectMetadataListResponse { /** * Gets the value property: List of SSIS object metadata. - * + * * @return the value value. */ List value(); /** * Gets the nextLink property: The link to the next page of results, if any remaining results exist. - * + * * @return the nextLink value. */ String nextLink(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.SsisObjectMetadataListResponseInner object. - * + * * @return the inner object. */ SsisObjectMetadataListResponseInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisObjectMetadataStatusResponse.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisObjectMetadataStatusResponse.java index bc7dda6b134f..9a9434d33acc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisObjectMetadataStatusResponse.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisObjectMetadataStatusResponse.java @@ -6,39 +6,41 @@ import com.azure.resourcemanager.synapse.fluent.models.SsisObjectMetadataStatusResponseInner; -/** An immutable client-side representation of SsisObjectMetadataStatusResponse. */ +/** + * An immutable client-side representation of SsisObjectMetadataStatusResponse. + */ public interface SsisObjectMetadataStatusResponse { /** * Gets the status property: The status of the operation. - * + * * @return the status value. */ String status(); /** * Gets the name property: The operation name. - * + * * @return the name value. */ String name(); /** * Gets the properties property: The operation properties. - * + * * @return the properties value. */ String properties(); /** * Gets the error property: The operation error message. - * + * * @return the error value. */ String error(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.SsisObjectMetadataStatusResponseInner object. - * + * * @return the inner object. */ SsisObjectMetadataStatusResponseInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisObjectMetadataType.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisObjectMetadataType.java index d88a171a5300..4752801864ba 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisObjectMetadataType.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisObjectMetadataType.java @@ -8,23 +8,33 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The type of SSIS object metadata. */ +/** + * The type of SSIS object metadata. + */ public final class SsisObjectMetadataType extends ExpandableStringEnum { - /** Static value Folder for SsisObjectMetadataType. */ + /** + * Static value Folder for SsisObjectMetadataType. + */ public static final SsisObjectMetadataType FOLDER = fromString("Folder"); - /** Static value Project for SsisObjectMetadataType. */ + /** + * Static value Project for SsisObjectMetadataType. + */ public static final SsisObjectMetadataType PROJECT = fromString("Project"); - /** Static value Package for SsisObjectMetadataType. */ + /** + * Static value Package for SsisObjectMetadataType. + */ public static final SsisObjectMetadataType PACKAGE = fromString("Package"); - /** Static value Environment for SsisObjectMetadataType. */ + /** + * Static value Environment for SsisObjectMetadataType. + */ public static final SsisObjectMetadataType ENVIRONMENT = fromString("Environment"); /** * Creates a new instance of SsisObjectMetadataType value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -33,7 +43,7 @@ public SsisObjectMetadataType() { /** * Creates or finds a SsisObjectMetadataType from its string representation. - * + * * @param name a name to look for. * @return the corresponding SsisObjectMetadataType. */ @@ -44,7 +54,7 @@ public static SsisObjectMetadataType fromString(String name) { /** * Gets known SsisObjectMetadataType values. - * + * * @return known SsisObjectMetadataType values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisPackage.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisPackage.java index c60a108bf909..c8b0aa6c9d67 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisPackage.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisPackage.java @@ -10,7 +10,9 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import java.util.List; -/** Ssis Package. */ +/** + * Ssis Package. + */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Package") @Fluent @@ -39,13 +41,15 @@ public final class SsisPackage extends SsisObjectMetadata { @JsonProperty(value = "parameters") private List parameters; - /** Creates an instance of SsisPackage class. */ + /** + * Creates an instance of SsisPackage class. + */ public SsisPackage() { } /** * Get the folderId property: Folder id which contains package. - * + * * @return the folderId value. */ public Long folderId() { @@ -54,7 +58,7 @@ public Long folderId() { /** * Set the folderId property: Folder id which contains package. - * + * * @param folderId the folderId value to set. * @return the SsisPackage object itself. */ @@ -65,7 +69,7 @@ public SsisPackage withFolderId(Long folderId) { /** * Get the projectVersion property: Project version which contains package. - * + * * @return the projectVersion value. */ public Long projectVersion() { @@ -74,7 +78,7 @@ public Long projectVersion() { /** * Set the projectVersion property: Project version which contains package. - * + * * @param projectVersion the projectVersion value to set. * @return the SsisPackage object itself. */ @@ -85,7 +89,7 @@ public SsisPackage withProjectVersion(Long projectVersion) { /** * Get the projectId property: Project id which contains package. - * + * * @return the projectId value. */ public Long projectId() { @@ -94,7 +98,7 @@ public Long projectId() { /** * Set the projectId property: Project id which contains package. - * + * * @param projectId the projectId value to set. * @return the SsisPackage object itself. */ @@ -105,7 +109,7 @@ public SsisPackage withProjectId(Long projectId) { /** * Get the parameters property: Parameters in package. - * + * * @return the parameters value. */ public List parameters() { @@ -114,7 +118,7 @@ public List parameters() { /** * Set the parameters property: Parameters in package. - * + * * @param parameters the parameters value to set. * @return the SsisPackage object itself. */ @@ -123,21 +127,27 @@ public SsisPackage withParameters(List parameters) { return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public SsisPackage withId(Long id) { super.withId(id); return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public SsisPackage withName(String name) { super.withName(name); return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public SsisPackage withDescription(String description) { super.withDescription(description); @@ -146,7 +156,7 @@ public SsisPackage withDescription(String description) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ @Override diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisParameter.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisParameter.java index 6a740c14d15b..0eb62ab540e8 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisParameter.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisParameter.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Ssis parameter. */ +/** + * Ssis parameter. + */ @Fluent public final class SsisParameter { /* @@ -82,13 +84,15 @@ public final class SsisParameter { @JsonProperty(value = "variable") private String variable; - /** Creates an instance of SsisParameter class. */ + /** + * Creates an instance of SsisParameter class. + */ public SsisParameter() { } /** * Get the id property: Parameter id. - * + * * @return the id value. */ public Long id() { @@ -97,7 +101,7 @@ public Long id() { /** * Set the id property: Parameter id. - * + * * @param id the id value to set. * @return the SsisParameter object itself. */ @@ -108,7 +112,7 @@ public SsisParameter withId(Long id) { /** * Get the name property: Parameter name. - * + * * @return the name value. */ public String name() { @@ -117,7 +121,7 @@ public String name() { /** * Set the name property: Parameter name. - * + * * @param name the name value to set. * @return the SsisParameter object itself. */ @@ -128,7 +132,7 @@ public SsisParameter withName(String name) { /** * Get the description property: Parameter description. - * + * * @return the description value. */ public String description() { @@ -137,7 +141,7 @@ public String description() { /** * Set the description property: Parameter description. - * + * * @param description the description value to set. * @return the SsisParameter object itself. */ @@ -148,7 +152,7 @@ public SsisParameter withDescription(String description) { /** * Get the dataType property: Parameter type. - * + * * @return the dataType value. */ public String dataType() { @@ -157,7 +161,7 @@ public String dataType() { /** * Set the dataType property: Parameter type. - * + * * @param dataType the dataType value to set. * @return the SsisParameter object itself. */ @@ -168,7 +172,7 @@ public SsisParameter withDataType(String dataType) { /** * Get the required property: Whether parameter is required. - * + * * @return the required value. */ public Boolean required() { @@ -177,7 +181,7 @@ public Boolean required() { /** * Set the required property: Whether parameter is required. - * + * * @param required the required value to set. * @return the SsisParameter object itself. */ @@ -188,7 +192,7 @@ public SsisParameter withRequired(Boolean required) { /** * Get the sensitive property: Whether parameter is sensitive. - * + * * @return the sensitive value. */ public Boolean sensitive() { @@ -197,7 +201,7 @@ public Boolean sensitive() { /** * Set the sensitive property: Whether parameter is sensitive. - * + * * @param sensitive the sensitive value to set. * @return the SsisParameter object itself. */ @@ -208,7 +212,7 @@ public SsisParameter withSensitive(Boolean sensitive) { /** * Get the designDefaultValue property: Design default value of parameter. - * + * * @return the designDefaultValue value. */ public String designDefaultValue() { @@ -217,7 +221,7 @@ public String designDefaultValue() { /** * Set the designDefaultValue property: Design default value of parameter. - * + * * @param designDefaultValue the designDefaultValue value to set. * @return the SsisParameter object itself. */ @@ -228,7 +232,7 @@ public SsisParameter withDesignDefaultValue(String designDefaultValue) { /** * Get the defaultValue property: Default value of parameter. - * + * * @return the defaultValue value. */ public String defaultValue() { @@ -237,7 +241,7 @@ public String defaultValue() { /** * Set the defaultValue property: Default value of parameter. - * + * * @param defaultValue the defaultValue value to set. * @return the SsisParameter object itself. */ @@ -248,7 +252,7 @@ public SsisParameter withDefaultValue(String defaultValue) { /** * Get the sensitiveDefaultValue property: Default sensitive value of parameter. - * + * * @return the sensitiveDefaultValue value. */ public String sensitiveDefaultValue() { @@ -257,7 +261,7 @@ public String sensitiveDefaultValue() { /** * Set the sensitiveDefaultValue property: Default sensitive value of parameter. - * + * * @param sensitiveDefaultValue the sensitiveDefaultValue value to set. * @return the SsisParameter object itself. */ @@ -268,7 +272,7 @@ public SsisParameter withSensitiveDefaultValue(String sensitiveDefaultValue) { /** * Get the valueType property: Parameter value type. - * + * * @return the valueType value. */ public String valueType() { @@ -277,7 +281,7 @@ public String valueType() { /** * Set the valueType property: Parameter value type. - * + * * @param valueType the valueType value to set. * @return the SsisParameter object itself. */ @@ -288,7 +292,7 @@ public SsisParameter withValueType(String valueType) { /** * Get the valueSet property: Parameter value set. - * + * * @return the valueSet value. */ public Boolean valueSet() { @@ -297,7 +301,7 @@ public Boolean valueSet() { /** * Set the valueSet property: Parameter value set. - * + * * @param valueSet the valueSet value to set. * @return the SsisParameter object itself. */ @@ -308,7 +312,7 @@ public SsisParameter withValueSet(Boolean valueSet) { /** * Get the variable property: Parameter reference variable. - * + * * @return the variable value. */ public String variable() { @@ -317,7 +321,7 @@ public String variable() { /** * Set the variable property: Parameter reference variable. - * + * * @param variable the variable value to set. * @return the SsisParameter object itself. */ @@ -328,7 +332,7 @@ public SsisParameter withVariable(String variable) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisProject.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisProject.java index ed5c23a137de..1e861312aa74 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisProject.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisProject.java @@ -10,7 +10,9 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import java.util.List; -/** Ssis project. */ +/** + * Ssis project. + */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @JsonTypeName("Project") @Fluent @@ -39,13 +41,15 @@ public final class SsisProject extends SsisObjectMetadata { @JsonProperty(value = "parameters") private List parameters; - /** Creates an instance of SsisProject class. */ + /** + * Creates an instance of SsisProject class. + */ public SsisProject() { } /** * Get the folderId property: Folder id which contains project. - * + * * @return the folderId value. */ public Long folderId() { @@ -54,7 +58,7 @@ public Long folderId() { /** * Set the folderId property: Folder id which contains project. - * + * * @param folderId the folderId value to set. * @return the SsisProject object itself. */ @@ -65,7 +69,7 @@ public SsisProject withFolderId(Long folderId) { /** * Get the version property: Project version. - * + * * @return the version value. */ public Long version() { @@ -74,7 +78,7 @@ public Long version() { /** * Set the version property: Project version. - * + * * @param version the version value to set. * @return the SsisProject object itself. */ @@ -85,7 +89,7 @@ public SsisProject withVersion(Long version) { /** * Get the environmentRefs property: Environment reference in project. - * + * * @return the environmentRefs value. */ public List environmentRefs() { @@ -94,7 +98,7 @@ public List environmentRefs() { /** * Set the environmentRefs property: Environment reference in project. - * + * * @param environmentRefs the environmentRefs value to set. * @return the SsisProject object itself. */ @@ -105,7 +109,7 @@ public SsisProject withEnvironmentRefs(List environmen /** * Get the parameters property: Parameters in project. - * + * * @return the parameters value. */ public List parameters() { @@ -114,7 +118,7 @@ public List parameters() { /** * Set the parameters property: Parameters in project. - * + * * @param parameters the parameters value to set. * @return the SsisProject object itself. */ @@ -123,21 +127,27 @@ public SsisProject withParameters(List parameters) { return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public SsisProject withId(Long id) { super.withId(id); return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public SsisProject withName(String name) { super.withName(name); return this; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @Override public SsisProject withDescription(String description) { super.withDescription(description); @@ -146,7 +156,7 @@ public SsisProject withDescription(String description) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ @Override diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisVariable.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisVariable.java index c2eb8d7dfe6d..5425f73a7cf4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisVariable.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/SsisVariable.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Ssis variable. */ +/** + * Ssis variable. + */ @Fluent public final class SsisVariable { /* @@ -52,13 +54,15 @@ public final class SsisVariable { @JsonProperty(value = "sensitiveValue") private String sensitiveValue; - /** Creates an instance of SsisVariable class. */ + /** + * Creates an instance of SsisVariable class. + */ public SsisVariable() { } /** * Get the id property: Variable id. - * + * * @return the id value. */ public Long id() { @@ -67,7 +71,7 @@ public Long id() { /** * Set the id property: Variable id. - * + * * @param id the id value to set. * @return the SsisVariable object itself. */ @@ -78,7 +82,7 @@ public SsisVariable withId(Long id) { /** * Get the name property: Variable name. - * + * * @return the name value. */ public String name() { @@ -87,7 +91,7 @@ public String name() { /** * Set the name property: Variable name. - * + * * @param name the name value to set. * @return the SsisVariable object itself. */ @@ -98,7 +102,7 @@ public SsisVariable withName(String name) { /** * Get the description property: Variable description. - * + * * @return the description value. */ public String description() { @@ -107,7 +111,7 @@ public String description() { /** * Set the description property: Variable description. - * + * * @param description the description value to set. * @return the SsisVariable object itself. */ @@ -118,7 +122,7 @@ public SsisVariable withDescription(String description) { /** * Get the dataType property: Variable type. - * + * * @return the dataType value. */ public String dataType() { @@ -127,7 +131,7 @@ public String dataType() { /** * Set the dataType property: Variable type. - * + * * @param dataType the dataType value to set. * @return the SsisVariable object itself. */ @@ -138,7 +142,7 @@ public SsisVariable withDataType(String dataType) { /** * Get the sensitive property: Whether variable is sensitive. - * + * * @return the sensitive value. */ public Boolean sensitive() { @@ -147,7 +151,7 @@ public Boolean sensitive() { /** * Set the sensitive property: Whether variable is sensitive. - * + * * @param sensitive the sensitive value to set. * @return the SsisVariable object itself. */ @@ -158,7 +162,7 @@ public SsisVariable withSensitive(Boolean sensitive) { /** * Get the value property: Variable value. - * + * * @return the value value. */ public String value() { @@ -167,7 +171,7 @@ public String value() { /** * Set the value property: Variable value. - * + * * @param value the value value to set. * @return the SsisVariable object itself. */ @@ -178,7 +182,7 @@ public SsisVariable withValue(String value) { /** * Get the sensitiveValue property: Variable sensitive value. - * + * * @return the sensitiveValue value. */ public String sensitiveValue() { @@ -187,7 +191,7 @@ public String sensitiveValue() { /** * Set the sensitiveValue property: Variable sensitive value. - * + * * @param sensitiveValue the sensitiveValue value to set. * @return the SsisVariable object itself. */ @@ -198,7 +202,7 @@ public SsisVariable withSensitiveValue(String sensitiveValue) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/State.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/State.java index dd365f436838..8bf6eddaaf6c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/State.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/State.java @@ -8,38 +8,58 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The state of the resource. */ +/** + * The state of the resource. + */ public final class State extends ExpandableStringEnum { - /** Static value Creating for State. */ + /** + * Static value Creating for State. + */ public static final State CREATING = fromString("Creating"); - /** Static value Unavailable for State. */ + /** + * Static value Unavailable for State. + */ public static final State UNAVAILABLE = fromString("Unavailable"); - /** Static value Running for State. */ + /** + * Static value Running for State. + */ public static final State RUNNING = fromString("Running"); - /** Static value Deleting for State. */ + /** + * Static value Deleting for State. + */ public static final State DELETING = fromString("Deleting"); - /** Static value Deleted for State. */ + /** + * Static value Deleted for State. + */ public static final State DELETED = fromString("Deleted"); - /** Static value Stopping for State. */ + /** + * Static value Stopping for State. + */ public static final State STOPPING = fromString("Stopping"); - /** Static value Stopped for State. */ + /** + * Static value Stopped for State. + */ public static final State STOPPED = fromString("Stopped"); - /** Static value Starting for State. */ + /** + * Static value Starting for State. + */ public static final State STARTING = fromString("Starting"); - /** Static value Updating for State. */ + /** + * Static value Updating for State. + */ public static final State UPDATING = fromString("Updating"); /** * Creates a new instance of State value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -48,7 +68,7 @@ public State() { /** * Creates or finds a State from its string representation. - * + * * @param name a name to look for. * @return the corresponding State. */ @@ -59,7 +79,7 @@ public static State fromString(String name) { /** * Gets known State values. - * + * * @return known State values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/StateValue.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/StateValue.java index 53d5729ce14d..c96b32d1e79a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/StateValue.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/StateValue.java @@ -8,20 +8,28 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** property configuration state. */ +/** + * property configuration state. + */ public final class StateValue extends ExpandableStringEnum { - /** Static value Consistent for StateValue. */ + /** + * Static value Consistent for StateValue. + */ public static final StateValue CONSISTENT = fromString("Consistent"); - /** Static value InConsistent for StateValue. */ + /** + * Static value InConsistent for StateValue. + */ public static final StateValue IN_CONSISTENT = fromString("InConsistent"); - /** Static value Updating for StateValue. */ + /** + * Static value Updating for StateValue. + */ public static final StateValue UPDATING = fromString("Updating"); /** * Creates a new instance of StateValue value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -30,7 +38,7 @@ public StateValue() { /** * Creates or finds a StateValue from its string representation. - * + * * @param name a name to look for. * @return the corresponding StateValue. */ @@ -41,7 +49,7 @@ public static StateValue fromString(String name) { /** * Gets known StateValue values. - * + * * @return known StateValue values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/StorageAccountType.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/StorageAccountType.java index d744d3583383..521cce2fe9d7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/StorageAccountType.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/StorageAccountType.java @@ -8,17 +8,23 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The storage account type used to store backups for this sql pool. */ +/** + * The storage account type used to store backups for this sql pool. + */ public final class StorageAccountType extends ExpandableStringEnum { - /** Static value GRS for StorageAccountType. */ + /** + * Static value GRS for StorageAccountType. + */ public static final StorageAccountType GRS = fromString("GRS"); - /** Static value LRS for StorageAccountType. */ + /** + * Static value LRS for StorageAccountType. + */ public static final StorageAccountType LRS = fromString("LRS"); /** * Creates a new instance of StorageAccountType value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,7 +33,7 @@ public StorageAccountType() { /** * Creates or finds a StorageAccountType from its string representation. - * + * * @param name a name to look for. * @return the corresponding StorageAccountType. */ @@ -38,7 +44,7 @@ public static StorageAccountType fromString(String name) { /** * Gets known StorageAccountType values. - * + * * @return known StorageAccountType values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/TableLevelSharingProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/TableLevelSharingProperties.java index 273929525d9d..6b1dac07e628 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/TableLevelSharingProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/TableLevelSharingProperties.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Tables that will be included and excluded in the follower database. */ +/** + * Tables that will be included and excluded in the follower database. + */ @Fluent public final class TableLevelSharingProperties { /* @@ -47,13 +49,15 @@ public final class TableLevelSharingProperties { @JsonProperty(value = "materializedViewsToExclude") private List materializedViewsToExclude; - /** Creates an instance of TableLevelSharingProperties class. */ + /** + * Creates an instance of TableLevelSharingProperties class. + */ public TableLevelSharingProperties() { } /** * Get the tablesToInclude property: List of tables to include in the follower database. - * + * * @return the tablesToInclude value. */ public List tablesToInclude() { @@ -62,7 +66,7 @@ public List tablesToInclude() { /** * Set the tablesToInclude property: List of tables to include in the follower database. - * + * * @param tablesToInclude the tablesToInclude value to set. * @return the TableLevelSharingProperties object itself. */ @@ -73,7 +77,7 @@ public TableLevelSharingProperties withTablesToInclude(List tablesToIncl /** * Get the tablesToExclude property: List of tables to exclude from the follower database. - * + * * @return the tablesToExclude value. */ public List tablesToExclude() { @@ -82,7 +86,7 @@ public List tablesToExclude() { /** * Set the tablesToExclude property: List of tables to exclude from the follower database. - * + * * @param tablesToExclude the tablesToExclude value to set. * @return the TableLevelSharingProperties object itself. */ @@ -93,7 +97,7 @@ public TableLevelSharingProperties withTablesToExclude(List tablesToExcl /** * Get the externalTablesToInclude property: List of external tables to include in the follower database. - * + * * @return the externalTablesToInclude value. */ public List externalTablesToInclude() { @@ -102,7 +106,7 @@ public List externalTablesToInclude() { /** * Set the externalTablesToInclude property: List of external tables to include in the follower database. - * + * * @param externalTablesToInclude the externalTablesToInclude value to set. * @return the TableLevelSharingProperties object itself. */ @@ -113,7 +117,7 @@ public TableLevelSharingProperties withExternalTablesToInclude(List exte /** * Get the externalTablesToExclude property: List of external tables exclude from the follower database. - * + * * @return the externalTablesToExclude value. */ public List externalTablesToExclude() { @@ -122,7 +126,7 @@ public List externalTablesToExclude() { /** * Set the externalTablesToExclude property: List of external tables exclude from the follower database. - * + * * @param externalTablesToExclude the externalTablesToExclude value to set. * @return the TableLevelSharingProperties object itself. */ @@ -133,7 +137,7 @@ public TableLevelSharingProperties withExternalTablesToExclude(List exte /** * Get the materializedViewsToInclude property: List of materialized views to include in the follower database. - * + * * @return the materializedViewsToInclude value. */ public List materializedViewsToInclude() { @@ -142,7 +146,7 @@ public List materializedViewsToInclude() { /** * Set the materializedViewsToInclude property: List of materialized views to include in the follower database. - * + * * @param materializedViewsToInclude the materializedViewsToInclude value to set. * @return the TableLevelSharingProperties object itself. */ @@ -153,7 +157,7 @@ public TableLevelSharingProperties withMaterializedViewsToInclude(List m /** * Get the materializedViewsToExclude property: List of materialized views exclude from the follower database. - * + * * @return the materializedViewsToExclude value. */ public List materializedViewsToExclude() { @@ -162,7 +166,7 @@ public List materializedViewsToExclude() { /** * Set the materializedViewsToExclude property: List of materialized views exclude from the follower database. - * + * * @param materializedViewsToExclude the materializedViewsToExclude value to set. * @return the TableLevelSharingProperties object itself. */ @@ -173,7 +177,7 @@ public TableLevelSharingProperties withMaterializedViewsToExclude(List m /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/TransparentDataEncryption.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/TransparentDataEncryption.java index 151d765ed668..598f83383c9c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/TransparentDataEncryption.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/TransparentDataEncryption.java @@ -8,85 +8,97 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.synapse.fluent.models.TransparentDataEncryptionInner; -/** An immutable client-side representation of TransparentDataEncryption. */ +/** + * An immutable client-side representation of TransparentDataEncryption. + */ public interface TransparentDataEncryption { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the location property: Resource location. - * + * * @return the location value. */ String location(); /** * Gets the status property: The status of the database transparent data encryption. - * + * * @return the status value. */ TransparentDataEncryptionStatus status(); /** * Gets the region of the resource. - * + * * @return the region of the resource. */ Region region(); /** * Gets the name of the resource region. - * + * * @return the name of the resource region. */ String regionName(); /** * Gets the name of the resource group. - * + * * @return the name of the resource group. */ String resourceGroupName(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.TransparentDataEncryptionInner object. - * + * * @return the inner object. */ TransparentDataEncryptionInner innerModel(); - /** The entirety of the TransparentDataEncryption definition. */ + /** + * The entirety of the TransparentDataEncryption definition. + */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { } - /** The TransparentDataEncryption definition stages. */ + + /** + * The TransparentDataEncryption definition stages. + */ interface DefinitionStages { - /** The first stage of the TransparentDataEncryption definition. */ + /** + * The first stage of the TransparentDataEncryption definition. + */ interface Blank extends WithParentResource { } - /** The stage of the TransparentDataEncryption definition allowing to specify parent resource. */ + + /** + * The stage of the TransparentDataEncryption definition allowing to specify parent resource. + */ interface WithParentResource { /** * Specifies resourceGroupName, workspaceName, sqlPoolName. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -94,6 +106,7 @@ interface WithParentResource { */ WithCreate withExistingSqlPool(String resourceGroupName, String workspaceName, String sqlPoolName); } + /** * The stage of the TransparentDataEncryption definition which contains all the minimum required properties for * the resource to be created, but also allows for any other optional properties to be specified. @@ -101,77 +114,89 @@ interface WithParentResource { interface WithCreate extends DefinitionStages.WithStatus { /** * Executes the create request. - * + * * @return the created resource. */ TransparentDataEncryption create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ TransparentDataEncryption create(Context context); } - /** The stage of the TransparentDataEncryption definition allowing to specify status. */ + + /** + * The stage of the TransparentDataEncryption definition allowing to specify status. + */ interface WithStatus { /** * Specifies the status property: The status of the database transparent data encryption.. - * + * * @param status The status of the database transparent data encryption. * @return the next definition stage. */ WithCreate withStatus(TransparentDataEncryptionStatus status); } } + /** * Begins update for the TransparentDataEncryption resource. - * + * * @return the stage of resource update. */ TransparentDataEncryption.Update update(); - /** The template for TransparentDataEncryption update. */ + /** + * The template for TransparentDataEncryption update. + */ interface Update extends UpdateStages.WithStatus { /** * Executes the update request. - * + * * @return the updated resource. */ TransparentDataEncryption apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ TransparentDataEncryption apply(Context context); } - /** The TransparentDataEncryption update stages. */ + + /** + * The TransparentDataEncryption update stages. + */ interface UpdateStages { - /** The stage of the TransparentDataEncryption update allowing to specify status. */ + /** + * The stage of the TransparentDataEncryption update allowing to specify status. + */ interface WithStatus { /** * Specifies the status property: The status of the database transparent data encryption.. - * + * * @param status The status of the database transparent data encryption. * @return the next definition stage. */ Update withStatus(TransparentDataEncryptionStatus status); } } + /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ TransparentDataEncryption refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/TransparentDataEncryptionListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/TransparentDataEncryptionListResult.java index e52eb46ff57d..5ee42d78602e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/TransparentDataEncryptionListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/TransparentDataEncryptionListResult.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** A list of transparent data encryption configurations. */ +/** + * A list of transparent data encryption configurations. + */ @Immutable public final class TransparentDataEncryptionListResult { /* @@ -24,13 +26,15 @@ public final class TransparentDataEncryptionListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; - /** Creates an instance of TransparentDataEncryptionListResult class. */ + /** + * Creates an instance of TransparentDataEncryptionListResult class. + */ public TransparentDataEncryptionListResult() { } /** * Get the value property: Array of results. - * + * * @return the value value. */ public List value() { @@ -39,7 +43,7 @@ public List value() { /** * Get the nextLink property: Link to retrieve next page of results. - * + * * @return the nextLink value. */ public String nextLink() { @@ -48,7 +52,7 @@ public String nextLink() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/TransparentDataEncryptionName.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/TransparentDataEncryptionName.java index 097272501714..405e12da2ffe 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/TransparentDataEncryptionName.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/TransparentDataEncryptionName.java @@ -8,14 +8,18 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for TransparentDataEncryptionName. */ +/** + * Defines values for TransparentDataEncryptionName. + */ public final class TransparentDataEncryptionName extends ExpandableStringEnum { - /** Static value current for TransparentDataEncryptionName. */ + /** + * Static value current for TransparentDataEncryptionName. + */ public static final TransparentDataEncryptionName CURRENT = fromString("current"); /** * Creates a new instance of TransparentDataEncryptionName value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -24,7 +28,7 @@ public TransparentDataEncryptionName() { /** * Creates or finds a TransparentDataEncryptionName from its string representation. - * + * * @param name a name to look for. * @return the corresponding TransparentDataEncryptionName. */ @@ -35,7 +39,7 @@ public static TransparentDataEncryptionName fromString(String name) { /** * Gets known TransparentDataEncryptionName values. - * + * * @return known TransparentDataEncryptionName values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/TransparentDataEncryptionStatus.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/TransparentDataEncryptionStatus.java index daa0beced856..d298d4d7e526 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/TransparentDataEncryptionStatus.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/TransparentDataEncryptionStatus.java @@ -7,15 +7,23 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -/** The status of the database transparent data encryption. */ +/** + * The status of the database transparent data encryption. + */ public enum TransparentDataEncryptionStatus { - /** Enum value Enabled. */ + /** + * Enum value Enabled. + */ ENABLED("Enabled"), - /** Enum value Disabled. */ + /** + * Enum value Disabled. + */ DISABLED("Disabled"); - /** The actual serialized value for a TransparentDataEncryptionStatus instance. */ + /** + * The actual serialized value for a TransparentDataEncryptionStatus instance. + */ private final String value; TransparentDataEncryptionStatus(String value) { @@ -24,7 +32,7 @@ public enum TransparentDataEncryptionStatus { /** * Parses a serialized value to a TransparentDataEncryptionStatus instance. - * + * * @param value the serialized value to parse. * @return the parsed TransparentDataEncryptionStatus object, or null if unable to parse. */ @@ -42,7 +50,9 @@ public static TransparentDataEncryptionStatus fromString(String value) { return null; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @JsonValue @Override public String toString() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Type.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Type.java index 158462b70b02..320692e96406 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Type.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Type.java @@ -7,16 +7,24 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -/** The type of resource, for instance Microsoft.Synapse/workspaces/kustoPools/databases. */ +/** + * The type of resource, for instance Microsoft.Synapse/workspaces/kustoPools/databases. + */ public enum Type { - /** Enum value Microsoft.Synapse/workspaces/kustoPools/databases. */ + /** + * Enum value Microsoft.Synapse/workspaces/kustoPools/databases. + */ MICROSOFT_SYNAPSE_WORKSPACES_KUSTO_POOLS_DATABASES("Microsoft.Synapse/workspaces/kustoPools/databases"), - /** Enum value Microsoft.Synapse/workspaces/kustoPools/attachedDatabaseConfigurations. */ + /** + * Enum value Microsoft.Synapse/workspaces/kustoPools/attachedDatabaseConfigurations. + */ MICROSOFT_SYNAPSE_WORKSPACES_KUSTO_POOLS_ATTACHED_DATABASE_CONFIGURATIONS( "Microsoft.Synapse/workspaces/kustoPools/attachedDatabaseConfigurations"); - /** The actual serialized value for a Type instance. */ + /** + * The actual serialized value for a Type instance. + */ private final String value; Type(String value) { @@ -25,7 +33,7 @@ public enum Type { /** * Parses a serialized value to a Type instance. - * + * * @param value the serialized value to parse. * @return the parsed Type object, or null if unable to parse. */ @@ -43,7 +51,9 @@ public static Type fromString(String value) { return null; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @JsonValue @Override public String toString() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/UpdateIntegrationRuntimeNodeRequest.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/UpdateIntegrationRuntimeNodeRequest.java index 6a060d6d7d16..c65c94562efc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/UpdateIntegrationRuntimeNodeRequest.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/UpdateIntegrationRuntimeNodeRequest.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Update integration runtime node request. */ +/** + * Update integration runtime node request. + */ @Fluent public final class UpdateIntegrationRuntimeNodeRequest { /* @@ -17,14 +19,16 @@ public final class UpdateIntegrationRuntimeNodeRequest { @JsonProperty(value = "concurrentJobsLimit") private Integer concurrentJobsLimit; - /** Creates an instance of UpdateIntegrationRuntimeNodeRequest class. */ + /** + * Creates an instance of UpdateIntegrationRuntimeNodeRequest class. + */ public UpdateIntegrationRuntimeNodeRequest() { } /** * Get the concurrentJobsLimit property: The number of concurrent jobs permitted to run on the integration runtime * node. Values between 1 and maxConcurrentJobs(inclusive) are allowed. - * + * * @return the concurrentJobsLimit value. */ public Integer concurrentJobsLimit() { @@ -34,7 +38,7 @@ public Integer concurrentJobsLimit() { /** * Set the concurrentJobsLimit property: The number of concurrent jobs permitted to run on the integration runtime * node. Values between 1 and maxConcurrentJobs(inclusive) are allowed. - * + * * @param concurrentJobsLimit the concurrentJobsLimit value to set. * @return the UpdateIntegrationRuntimeNodeRequest object itself. */ @@ -45,7 +49,7 @@ public UpdateIntegrationRuntimeNodeRequest withConcurrentJobsLimit(Integer concu /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/UpdateIntegrationRuntimeRequest.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/UpdateIntegrationRuntimeRequest.java index 2aca1af2251e..ef26877bb8a0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/UpdateIntegrationRuntimeRequest.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/UpdateIntegrationRuntimeRequest.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Update integration runtime request. */ +/** + * Update integration runtime request. + */ @Fluent public final class UpdateIntegrationRuntimeRequest { /* @@ -24,14 +26,16 @@ public final class UpdateIntegrationRuntimeRequest { @JsonProperty(value = "updateDelayOffset") private String updateDelayOffset; - /** Creates an instance of UpdateIntegrationRuntimeRequest class. */ + /** + * Creates an instance of UpdateIntegrationRuntimeRequest class. + */ public UpdateIntegrationRuntimeRequest() { } /** * Get the autoUpdate property: Enables or disables the auto-update feature of the self-hosted integration runtime. * See https://go.microsoft.com/fwlink/?linkid=854189. - * + * * @return the autoUpdate value. */ public IntegrationRuntimeAutoUpdate autoUpdate() { @@ -41,7 +45,7 @@ public IntegrationRuntimeAutoUpdate autoUpdate() { /** * Set the autoUpdate property: Enables or disables the auto-update feature of the self-hosted integration runtime. * See https://go.microsoft.com/fwlink/?linkid=854189. - * + * * @param autoUpdate the autoUpdate value to set. * @return the UpdateIntegrationRuntimeRequest object itself. */ @@ -53,7 +57,7 @@ public UpdateIntegrationRuntimeRequest withAutoUpdate(IntegrationRuntimeAutoUpda /** * Get the updateDelayOffset property: The time offset (in hours) in the day, e.g., PT03H is 3 hours. The * integration runtime auto update will happen on that time. - * + * * @return the updateDelayOffset value. */ public String updateDelayOffset() { @@ -63,7 +67,7 @@ public String updateDelayOffset() { /** * Set the updateDelayOffset property: The time offset (in hours) in the day, e.g., PT03H is 3 hours. The * integration runtime auto update will happen on that time. - * + * * @param updateDelayOffset the updateDelayOffset value to set. * @return the UpdateIntegrationRuntimeRequest object itself. */ @@ -74,7 +78,7 @@ public UpdateIntegrationRuntimeRequest withUpdateDelayOffset(String updateDelayO /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/UserAssignedManagedIdentity.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/UserAssignedManagedIdentity.java index f0cb94e74ee5..9fcf3c233d0e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/UserAssignedManagedIdentity.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/UserAssignedManagedIdentity.java @@ -8,9 +8,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.UUID; -/** User Assigned Managed Identity. */ +/** + * User Assigned Managed Identity. + */ @Immutable -public class UserAssignedManagedIdentity { +public final class UserAssignedManagedIdentity { /* * The client ID. */ @@ -23,13 +25,15 @@ public class UserAssignedManagedIdentity { @JsonProperty(value = "principalId", access = JsonProperty.Access.WRITE_ONLY) private UUID principalId; - /** Creates an instance of UserAssignedManagedIdentity class. */ + /** + * Creates an instance of UserAssignedManagedIdentity class. + */ public UserAssignedManagedIdentity() { } /** * Get the clientId property: The client ID. - * + * * @return the clientId value. */ public UUID clientId() { @@ -38,7 +42,7 @@ public UUID clientId() { /** * Get the principalId property: The principal ID. - * + * * @return the principalId value. */ public UUID principalId() { @@ -47,7 +51,7 @@ public UUID principalId() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VirtualNetworkProfile.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VirtualNetworkProfile.java index 6c4034bb3aec..49e4a7fd3b88 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VirtualNetworkProfile.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VirtualNetworkProfile.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Virtual Network Profile. */ +/** + * Virtual Network Profile. + */ @Fluent public final class VirtualNetworkProfile { /* @@ -16,13 +18,15 @@ public final class VirtualNetworkProfile { @JsonProperty(value = "computeSubnetId") private String computeSubnetId; - /** Creates an instance of VirtualNetworkProfile class. */ + /** + * Creates an instance of VirtualNetworkProfile class. + */ public VirtualNetworkProfile() { } /** * Get the computeSubnetId property: Subnet ID used for computes in workspace. - * + * * @return the computeSubnetId value. */ public String computeSubnetId() { @@ -31,7 +35,7 @@ public String computeSubnetId() { /** * Set the computeSubnetId property: Subnet ID used for computes in workspace. - * + * * @param computeSubnetId the computeSubnetId value to set. * @return the VirtualNetworkProfile object itself. */ @@ -42,7 +46,7 @@ public VirtualNetworkProfile withComputeSubnetId(String computeSubnetId) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentName.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentName.java index d480278f9764..60cd7219bdd4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentName.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentName.java @@ -8,14 +8,18 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for VulnerabilityAssessmentName. */ +/** + * Defines values for VulnerabilityAssessmentName. + */ public final class VulnerabilityAssessmentName extends ExpandableStringEnum { - /** Static value default for VulnerabilityAssessmentName. */ + /** + * Static value default for VulnerabilityAssessmentName. + */ public static final VulnerabilityAssessmentName DEFAULT = fromString("default"); /** * Creates a new instance of VulnerabilityAssessmentName value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -24,7 +28,7 @@ public VulnerabilityAssessmentName() { /** * Creates or finds a VulnerabilityAssessmentName from its string representation. - * + * * @param name a name to look for. * @return the corresponding VulnerabilityAssessmentName. */ @@ -35,7 +39,7 @@ public static VulnerabilityAssessmentName fromString(String name) { /** * Gets known VulnerabilityAssessmentName values. - * + * * @return known VulnerabilityAssessmentName values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentPolicyBaselineName.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentPolicyBaselineName.java index e0793a55c5fd..c9ae5f12ae86 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentPolicyBaselineName.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentPolicyBaselineName.java @@ -7,15 +7,23 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -/** Defines values for VulnerabilityAssessmentPolicyBaselineName. */ +/** + * Defines values for VulnerabilityAssessmentPolicyBaselineName. + */ public enum VulnerabilityAssessmentPolicyBaselineName { - /** Enum value master. */ + /** + * Enum value master. + */ MASTER("master"), - /** Enum value default. */ + /** + * Enum value default. + */ DEFAULT("default"); - /** The actual serialized value for a VulnerabilityAssessmentPolicyBaselineName instance. */ + /** + * The actual serialized value for a VulnerabilityAssessmentPolicyBaselineName instance. + */ private final String value; VulnerabilityAssessmentPolicyBaselineName(String value) { @@ -24,7 +32,7 @@ public enum VulnerabilityAssessmentPolicyBaselineName { /** * Parses a serialized value to a VulnerabilityAssessmentPolicyBaselineName instance. - * + * * @param value the serialized value to parse. * @return the parsed VulnerabilityAssessmentPolicyBaselineName object, or null if unable to parse. */ @@ -42,7 +50,9 @@ public static VulnerabilityAssessmentPolicyBaselineName fromString(String value) return null; } - /** {@inheritDoc} */ + /** + * {@inheritDoc} + */ @JsonValue @Override public String toString() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentRecurringScansProperties.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentRecurringScansProperties.java index 506a570487d0..c2541017a2cc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentRecurringScansProperties.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentRecurringScansProperties.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** Properties of a Vulnerability Assessment recurring scans. */ +/** + * Properties of a Vulnerability Assessment recurring scans. + */ @Fluent public final class VulnerabilityAssessmentRecurringScansProperties { /* @@ -29,13 +31,15 @@ public final class VulnerabilityAssessmentRecurringScansProperties { @JsonProperty(value = "emails") private List emails; - /** Creates an instance of VulnerabilityAssessmentRecurringScansProperties class. */ + /** + * Creates an instance of VulnerabilityAssessmentRecurringScansProperties class. + */ public VulnerabilityAssessmentRecurringScansProperties() { } /** * Get the isEnabled property: Recurring scans state. - * + * * @return the isEnabled value. */ public Boolean isEnabled() { @@ -44,7 +48,7 @@ public Boolean isEnabled() { /** * Set the isEnabled property: Recurring scans state. - * + * * @param isEnabled the isEnabled value to set. * @return the VulnerabilityAssessmentRecurringScansProperties object itself. */ @@ -56,7 +60,7 @@ public VulnerabilityAssessmentRecurringScansProperties withIsEnabled(Boolean isE /** * Get the emailSubscriptionAdmins property: Specifies that the schedule scan notification will be is sent to the * subscription administrators. - * + * * @return the emailSubscriptionAdmins value. */ public Boolean emailSubscriptionAdmins() { @@ -66,19 +70,19 @@ public Boolean emailSubscriptionAdmins() { /** * Set the emailSubscriptionAdmins property: Specifies that the schedule scan notification will be is sent to the * subscription administrators. - * + * * @param emailSubscriptionAdmins the emailSubscriptionAdmins value to set. * @return the VulnerabilityAssessmentRecurringScansProperties object itself. */ - public VulnerabilityAssessmentRecurringScansProperties withEmailSubscriptionAdmins( - Boolean emailSubscriptionAdmins) { + public VulnerabilityAssessmentRecurringScansProperties + withEmailSubscriptionAdmins(Boolean emailSubscriptionAdmins) { this.emailSubscriptionAdmins = emailSubscriptionAdmins; return this; } /** * Get the emails property: Specifies an array of e-mail addresses to which the scan notification is sent. - * + * * @return the emails value. */ public List emails() { @@ -87,7 +91,7 @@ public List emails() { /** * Set the emails property: Specifies an array of e-mail addresses to which the scan notification is sent. - * + * * @param emails the emails value to set. * @return the VulnerabilityAssessmentRecurringScansProperties object itself. */ @@ -98,7 +102,7 @@ public VulnerabilityAssessmentRecurringScansProperties withEmails(List e /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated.java deleted file mode 100644 index dc40fcb60134..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated.java +++ /dev/null @@ -1,106 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** Properties of a Vulnerability Assessment recurring scans. */ -@Fluent -public final class VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated { - /* - * Recurring scans state. - */ - @JsonProperty(value = "isEnabled") - private Boolean isEnabled; - - /* - * Specifies that the schedule scan notification will be is sent to the subscription administrators. - */ - @JsonProperty(value = "emailSubscriptionAdmins") - private Boolean emailSubscriptionAdmins; - - /* - * Specifies an array of e-mail addresses to which the scan notification is sent. - */ - @JsonProperty(value = "emails") - private List emails; - - /** Creates an instance of VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated class. */ - public VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated() { - } - - /** - * Get the isEnabled property: Recurring scans state. - * - * @return the isEnabled value. - */ - public Boolean isEnabled() { - return this.isEnabled; - } - - /** - * Set the isEnabled property: Recurring scans state. - * - * @param isEnabled the isEnabled value to set. - * @return the VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated object itself. - */ - public VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated withIsEnabled(Boolean isEnabled) { - this.isEnabled = isEnabled; - return this; - } - - /** - * Get the emailSubscriptionAdmins property: Specifies that the schedule scan notification will be is sent to the - * subscription administrators. - * - * @return the emailSubscriptionAdmins value. - */ - public Boolean emailSubscriptionAdmins() { - return this.emailSubscriptionAdmins; - } - - /** - * Set the emailSubscriptionAdmins property: Specifies that the schedule scan notification will be is sent to the - * subscription administrators. - * - * @param emailSubscriptionAdmins the emailSubscriptionAdmins value to set. - * @return the VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated object itself. - */ - public VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated withEmailSubscriptionAdmins( - Boolean emailSubscriptionAdmins) { - this.emailSubscriptionAdmins = emailSubscriptionAdmins; - return this; - } - - /** - * Get the emails property: Specifies an array of e-mail addresses to which the scan notification is sent. - * - * @return the emails value. - */ - public List emails() { - return this.emails; - } - - /** - * Set the emails property: Specifies an array of e-mail addresses to which the scan notification is sent. - * - * @param emails the emails value to set. - * @return the VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated object itself. - */ - public VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated withEmails(List emails) { - this.emails = emails; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentScanError.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentScanError.java index 0a1e580b0950..d780b26ae020 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentScanError.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentScanError.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Immutable; import com.fasterxml.jackson.annotation.JsonProperty; -/** Properties of a vulnerability assessment scan error. */ +/** + * Properties of a vulnerability assessment scan error. + */ @Immutable public final class VulnerabilityAssessmentScanError { /* @@ -22,13 +24,15 @@ public final class VulnerabilityAssessmentScanError { @JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY) private String message; - /** Creates an instance of VulnerabilityAssessmentScanError class. */ + /** + * Creates an instance of VulnerabilityAssessmentScanError class. + */ public VulnerabilityAssessmentScanError() { } /** * Get the code property: The error code. - * + * * @return the code value. */ public String code() { @@ -37,7 +41,7 @@ public String code() { /** * Get the message property: The error message. - * + * * @return the message value. */ public String message() { @@ -46,7 +50,7 @@ public String message() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentScanRecord.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentScanRecord.java index c869740d5b6e..4b621483c50a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentScanRecord.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentScanRecord.java @@ -8,88 +8,90 @@ import java.time.OffsetDateTime; import java.util.List; -/** An immutable client-side representation of VulnerabilityAssessmentScanRecord. */ +/** + * An immutable client-side representation of VulnerabilityAssessmentScanRecord. + */ public interface VulnerabilityAssessmentScanRecord { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the scanId property: The scan ID. - * + * * @return the scanId value. */ String scanId(); /** * Gets the triggerType property: The scan trigger type. - * + * * @return the triggerType value. */ VulnerabilityAssessmentScanTriggerType triggerType(); /** * Gets the state property: The scan status. - * + * * @return the state value. */ VulnerabilityAssessmentScanState state(); /** * Gets the startTime property: The scan start time (UTC). - * + * * @return the startTime value. */ OffsetDateTime startTime(); /** * Gets the endTime property: The scan end time (UTC). - * + * * @return the endTime value. */ OffsetDateTime endTime(); /** * Gets the errors property: The scan errors. - * + * * @return the errors value. */ List errors(); /** * Gets the storageContainerPath property: The scan results storage container path. - * + * * @return the storageContainerPath value. */ String storageContainerPath(); /** * Gets the numberOfFailedSecurityChecks property: The number of failed security checks. - * + * * @return the numberOfFailedSecurityChecks value. */ Integer numberOfFailedSecurityChecks(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.VulnerabilityAssessmentScanRecordInner object. - * + * * @return the inner object. */ VulnerabilityAssessmentScanRecordInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentScanRecordListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentScanRecordListResult.java index 0f2bbcd1c09b..d847018183fd 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentScanRecordListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentScanRecordListResult.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** A list of vulnerability assessment scan records. */ +/** + * A list of vulnerability assessment scan records. + */ @Immutable public final class VulnerabilityAssessmentScanRecordListResult { /* @@ -24,13 +26,15 @@ public final class VulnerabilityAssessmentScanRecordListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; - /** Creates an instance of VulnerabilityAssessmentScanRecordListResult class. */ + /** + * Creates an instance of VulnerabilityAssessmentScanRecordListResult class. + */ public VulnerabilityAssessmentScanRecordListResult() { } /** * Get the value property: Array of results. - * + * * @return the value value. */ public List value() { @@ -39,7 +43,7 @@ public List value() { /** * Get the nextLink property: Link to retrieve next page of results. - * + * * @return the nextLink value. */ public String nextLink() { @@ -48,7 +52,7 @@ public String nextLink() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentScanState.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentScanState.java index 4c0812fdac61..fbca79795b7e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentScanState.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentScanState.java @@ -8,23 +8,33 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The scan status. */ +/** + * The scan status. + */ public final class VulnerabilityAssessmentScanState extends ExpandableStringEnum { - /** Static value Passed for VulnerabilityAssessmentScanState. */ + /** + * Static value Passed for VulnerabilityAssessmentScanState. + */ public static final VulnerabilityAssessmentScanState PASSED = fromString("Passed"); - /** Static value Failed for VulnerabilityAssessmentScanState. */ + /** + * Static value Failed for VulnerabilityAssessmentScanState. + */ public static final VulnerabilityAssessmentScanState FAILED = fromString("Failed"); - /** Static value FailedToRun for VulnerabilityAssessmentScanState. */ + /** + * Static value FailedToRun for VulnerabilityAssessmentScanState. + */ public static final VulnerabilityAssessmentScanState FAILED_TO_RUN = fromString("FailedToRun"); - /** Static value InProgress for VulnerabilityAssessmentScanState. */ + /** + * Static value InProgress for VulnerabilityAssessmentScanState. + */ public static final VulnerabilityAssessmentScanState IN_PROGRESS = fromString("InProgress"); /** * Creates a new instance of VulnerabilityAssessmentScanState value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -33,7 +43,7 @@ public VulnerabilityAssessmentScanState() { /** * Creates or finds a VulnerabilityAssessmentScanState from its string representation. - * + * * @param name a name to look for. * @return the corresponding VulnerabilityAssessmentScanState. */ @@ -44,7 +54,7 @@ public static VulnerabilityAssessmentScanState fromString(String name) { /** * Gets known VulnerabilityAssessmentScanState values. - * + * * @return known VulnerabilityAssessmentScanState values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentScanTriggerType.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentScanTriggerType.java index 268b1b76521b..0606c456bd45 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentScanTriggerType.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/VulnerabilityAssessmentScanTriggerType.java @@ -8,18 +8,24 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** The scan trigger type. */ +/** + * The scan trigger type. + */ public final class VulnerabilityAssessmentScanTriggerType extends ExpandableStringEnum { - /** Static value OnDemand for VulnerabilityAssessmentScanTriggerType. */ + /** + * Static value OnDemand for VulnerabilityAssessmentScanTriggerType. + */ public static final VulnerabilityAssessmentScanTriggerType ON_DEMAND = fromString("OnDemand"); - /** Static value Recurring for VulnerabilityAssessmentScanTriggerType. */ + /** + * Static value Recurring for VulnerabilityAssessmentScanTriggerType. + */ public static final VulnerabilityAssessmentScanTriggerType RECURRING = fromString("Recurring"); /** * Creates a new instance of VulnerabilityAssessmentScanTriggerType value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -28,7 +34,7 @@ public VulnerabilityAssessmentScanTriggerType() { /** * Creates or finds a VulnerabilityAssessmentScanTriggerType from its string representation. - * + * * @param name a name to look for. * @return the corresponding VulnerabilityAssessmentScanTriggerType. */ @@ -39,7 +45,7 @@ public static VulnerabilityAssessmentScanTriggerType fromString(String name) { /** * Gets known VulnerabilityAssessmentScanTriggerType values. - * + * * @return known VulnerabilityAssessmentScanTriggerType values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkloadClassifier.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkloadClassifier.java index 4c3283a5b9d6..6df3b36aa491 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkloadClassifier.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkloadClassifier.java @@ -7,298 +7,344 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.synapse.fluent.models.WorkloadClassifierInner; -/** An immutable client-side representation of WorkloadClassifier. */ +/** + * An immutable client-side representation of WorkloadClassifier. + */ public interface WorkloadClassifier { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the memberName property: The workload classifier member name. - * + * * @return the memberName value. */ String memberName(); /** * Gets the label property: The workload classifier label. - * + * * @return the label value. */ String label(); /** * Gets the context property: The workload classifier context. - * + * * @return the context value. */ String context(); /** * Gets the startTime property: The workload classifier start time for classification. - * + * * @return the startTime value. */ String startTime(); /** * Gets the endTime property: The workload classifier end time for classification. - * + * * @return the endTime value. */ String endTime(); /** * Gets the importance property: The workload classifier importance. - * + * * @return the importance value. */ String importance(); /** * Gets the name of the resource group. - * + * * @return the name of the resource group. */ String resourceGroupName(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.WorkloadClassifierInner object. - * + * * @return the inner object. */ WorkloadClassifierInner innerModel(); - /** The entirety of the WorkloadClassifier definition. */ + /** + * The entirety of the WorkloadClassifier definition. + */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { } - /** The WorkloadClassifier definition stages. */ + + /** + * The WorkloadClassifier definition stages. + */ interface DefinitionStages { - /** The first stage of the WorkloadClassifier definition. */ + /** + * The first stage of the WorkloadClassifier definition. + */ interface Blank extends WithParentResource { } - /** The stage of the WorkloadClassifier definition allowing to specify parent resource. */ + + /** + * The stage of the WorkloadClassifier definition allowing to specify parent resource. + */ interface WithParentResource { /** * Specifies resourceGroupName, workspaceName, sqlPoolName, workloadGroupName. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. * @param workloadGroupName The name of the workload group. * @return the next definition stage. */ - WithCreate withExistingWorkloadGroup( - String resourceGroupName, String workspaceName, String sqlPoolName, String workloadGroupName); + WithCreate withExistingWorkloadGroup(String resourceGroupName, String workspaceName, String sqlPoolName, + String workloadGroupName); } + /** * The stage of the WorkloadClassifier definition which contains all the minimum required properties for the * resource to be created, but also allows for any other optional properties to be specified. */ interface WithCreate - extends DefinitionStages.WithMemberName, - DefinitionStages.WithLabel, - DefinitionStages.WithContext, - DefinitionStages.WithStartTime, - DefinitionStages.WithEndTime, - DefinitionStages.WithImportance { + extends DefinitionStages.WithMemberName, DefinitionStages.WithLabel, DefinitionStages.WithContext, + DefinitionStages.WithStartTime, DefinitionStages.WithEndTime, DefinitionStages.WithImportance { /** * Executes the create request. - * + * * @return the created resource. */ WorkloadClassifier create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ WorkloadClassifier create(Context context); } - /** The stage of the WorkloadClassifier definition allowing to specify memberName. */ + + /** + * The stage of the WorkloadClassifier definition allowing to specify memberName. + */ interface WithMemberName { /** * Specifies the memberName property: The workload classifier member name.. - * + * * @param memberName The workload classifier member name. * @return the next definition stage. */ WithCreate withMemberName(String memberName); } - /** The stage of the WorkloadClassifier definition allowing to specify label. */ + + /** + * The stage of the WorkloadClassifier definition allowing to specify label. + */ interface WithLabel { /** * Specifies the label property: The workload classifier label.. - * + * * @param label The workload classifier label. * @return the next definition stage. */ WithCreate withLabel(String label); } - /** The stage of the WorkloadClassifier definition allowing to specify context. */ + + /** + * The stage of the WorkloadClassifier definition allowing to specify context. + */ interface WithContext { /** * Specifies the context property: The workload classifier context.. - * + * * @param context The workload classifier context. * @return the next definition stage. */ WithCreate withContext(String context); } - /** The stage of the WorkloadClassifier definition allowing to specify startTime. */ + + /** + * The stage of the WorkloadClassifier definition allowing to specify startTime. + */ interface WithStartTime { /** * Specifies the startTime property: The workload classifier start time for classification.. - * + * * @param startTime The workload classifier start time for classification. * @return the next definition stage. */ WithCreate withStartTime(String startTime); } - /** The stage of the WorkloadClassifier definition allowing to specify endTime. */ + + /** + * The stage of the WorkloadClassifier definition allowing to specify endTime. + */ interface WithEndTime { /** * Specifies the endTime property: The workload classifier end time for classification.. - * + * * @param endTime The workload classifier end time for classification. * @return the next definition stage. */ WithCreate withEndTime(String endTime); } - /** The stage of the WorkloadClassifier definition allowing to specify importance. */ + + /** + * The stage of the WorkloadClassifier definition allowing to specify importance. + */ interface WithImportance { /** * Specifies the importance property: The workload classifier importance.. - * + * * @param importance The workload classifier importance. * @return the next definition stage. */ WithCreate withImportance(String importance); } } + /** * Begins update for the WorkloadClassifier resource. - * + * * @return the stage of resource update. */ WorkloadClassifier.Update update(); - /** The template for WorkloadClassifier update. */ - interface Update - extends UpdateStages.WithMemberName, - UpdateStages.WithLabel, - UpdateStages.WithContext, - UpdateStages.WithStartTime, - UpdateStages.WithEndTime, - UpdateStages.WithImportance { + /** + * The template for WorkloadClassifier update. + */ + interface Update extends UpdateStages.WithMemberName, UpdateStages.WithLabel, UpdateStages.WithContext, + UpdateStages.WithStartTime, UpdateStages.WithEndTime, UpdateStages.WithImportance { /** * Executes the update request. - * + * * @return the updated resource. */ WorkloadClassifier apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ WorkloadClassifier apply(Context context); } - /** The WorkloadClassifier update stages. */ + + /** + * The WorkloadClassifier update stages. + */ interface UpdateStages { - /** The stage of the WorkloadClassifier update allowing to specify memberName. */ + /** + * The stage of the WorkloadClassifier update allowing to specify memberName. + */ interface WithMemberName { /** * Specifies the memberName property: The workload classifier member name.. - * + * * @param memberName The workload classifier member name. * @return the next definition stage. */ Update withMemberName(String memberName); } - /** The stage of the WorkloadClassifier update allowing to specify label. */ + + /** + * The stage of the WorkloadClassifier update allowing to specify label. + */ interface WithLabel { /** * Specifies the label property: The workload classifier label.. - * + * * @param label The workload classifier label. * @return the next definition stage. */ Update withLabel(String label); } - /** The stage of the WorkloadClassifier update allowing to specify context. */ + + /** + * The stage of the WorkloadClassifier update allowing to specify context. + */ interface WithContext { /** * Specifies the context property: The workload classifier context.. - * + * * @param context The workload classifier context. * @return the next definition stage. */ Update withContext(String context); } - /** The stage of the WorkloadClassifier update allowing to specify startTime. */ + + /** + * The stage of the WorkloadClassifier update allowing to specify startTime. + */ interface WithStartTime { /** * Specifies the startTime property: The workload classifier start time for classification.. - * + * * @param startTime The workload classifier start time for classification. * @return the next definition stage. */ Update withStartTime(String startTime); } - /** The stage of the WorkloadClassifier update allowing to specify endTime. */ + + /** + * The stage of the WorkloadClassifier update allowing to specify endTime. + */ interface WithEndTime { /** * Specifies the endTime property: The workload classifier end time for classification.. - * + * * @param endTime The workload classifier end time for classification. * @return the next definition stage. */ Update withEndTime(String endTime); } - /** The stage of the WorkloadClassifier update allowing to specify importance. */ + + /** + * The stage of the WorkloadClassifier update allowing to specify importance. + */ interface WithImportance { /** * Specifies the importance property: The workload classifier importance.. - * + * * @param importance The workload classifier importance. * @return the next definition stage. */ Update withImportance(String importance); } } + /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ WorkloadClassifier refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkloadClassifierListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkloadClassifierListResult.java index 9cd5d4d64846..268e1c44620b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkloadClassifierListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkloadClassifierListResult.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** A list of workload classifiers for a workload group. */ +/** + * A list of workload classifiers for a workload group. + */ @Immutable public final class WorkloadClassifierListResult { /* @@ -24,13 +26,15 @@ public final class WorkloadClassifierListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; - /** Creates an instance of WorkloadClassifierListResult class. */ + /** + * Creates an instance of WorkloadClassifierListResult class. + */ public WorkloadClassifierListResult() { } /** * Get the value property: Array of results. - * + * * @return the value value. */ public List value() { @@ -39,7 +43,7 @@ public List value() { /** * Get the nextLink property: Link to retrieve next page of results. - * + * * @return the nextLink value. */ public String nextLink() { @@ -48,7 +52,7 @@ public String nextLink() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkloadGroup.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkloadGroup.java index 3888d5a2b0be..837e45a045a2 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkloadGroup.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkloadGroup.java @@ -7,99 +7,111 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.synapse.fluent.models.WorkloadGroupInner; -/** An immutable client-side representation of WorkloadGroup. */ +/** + * An immutable client-side representation of WorkloadGroup. + */ public interface WorkloadGroup { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the minResourcePercent property: The workload group minimum percentage resource. - * + * * @return the minResourcePercent value. */ int minResourcePercent(); /** * Gets the maxResourcePercent property: The workload group cap percentage resource. - * + * * @return the maxResourcePercent value. */ int maxResourcePercent(); /** * Gets the minResourcePercentPerRequest property: The workload group request minimum grant percentage. - * + * * @return the minResourcePercentPerRequest value. */ double minResourcePercentPerRequest(); /** * Gets the maxResourcePercentPerRequest property: The workload group request maximum grant percentage. - * + * * @return the maxResourcePercentPerRequest value. */ Double maxResourcePercentPerRequest(); /** * Gets the importance property: The workload group importance level. - * + * * @return the importance value. */ String importance(); /** * Gets the queryExecutionTimeout property: The workload group query execution timeout. - * + * * @return the queryExecutionTimeout value. */ Integer queryExecutionTimeout(); /** * Gets the name of the resource group. - * + * * @return the name of the resource group. */ String resourceGroupName(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.WorkloadGroupInner object. - * + * * @return the inner object. */ WorkloadGroupInner innerModel(); - /** The entirety of the WorkloadGroup definition. */ + /** + * The entirety of the WorkloadGroup definition. + */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { } - /** The WorkloadGroup definition stages. */ + + /** + * The WorkloadGroup definition stages. + */ interface DefinitionStages { - /** The first stage of the WorkloadGroup definition. */ + /** + * The first stage of the WorkloadGroup definition. + */ interface Blank extends WithParentResource { } - /** The stage of the WorkloadGroup definition allowing to specify parent resource. */ + + /** + * The stage of the WorkloadGroup definition allowing to specify parent resource. + */ interface WithParentResource { /** * Specifies resourceGroupName, workspaceName, sqlPoolName. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name. @@ -107,200 +119,235 @@ interface WithParentResource { */ WithCreate withExistingSqlPool(String resourceGroupName, String workspaceName, String sqlPoolName); } + /** * The stage of the WorkloadGroup definition which contains all the minimum required properties for the resource * to be created, but also allows for any other optional properties to be specified. */ - interface WithCreate - extends DefinitionStages.WithMinResourcePercent, - DefinitionStages.WithMaxResourcePercent, - DefinitionStages.WithMinResourcePercentPerRequest, - DefinitionStages.WithMaxResourcePercentPerRequest, - DefinitionStages.WithImportance, - DefinitionStages.WithQueryExecutionTimeout { + interface WithCreate extends DefinitionStages.WithMinResourcePercent, DefinitionStages.WithMaxResourcePercent, + DefinitionStages.WithMinResourcePercentPerRequest, DefinitionStages.WithMaxResourcePercentPerRequest, + DefinitionStages.WithImportance, DefinitionStages.WithQueryExecutionTimeout { /** * Executes the create request. - * + * * @return the created resource. */ WorkloadGroup create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ WorkloadGroup create(Context context); } - /** The stage of the WorkloadGroup definition allowing to specify minResourcePercent. */ + + /** + * The stage of the WorkloadGroup definition allowing to specify minResourcePercent. + */ interface WithMinResourcePercent { /** * Specifies the minResourcePercent property: The workload group minimum percentage resource.. - * + * * @param minResourcePercent The workload group minimum percentage resource. * @return the next definition stage. */ WithCreate withMinResourcePercent(int minResourcePercent); } - /** The stage of the WorkloadGroup definition allowing to specify maxResourcePercent. */ + + /** + * The stage of the WorkloadGroup definition allowing to specify maxResourcePercent. + */ interface WithMaxResourcePercent { /** * Specifies the maxResourcePercent property: The workload group cap percentage resource.. - * + * * @param maxResourcePercent The workload group cap percentage resource. * @return the next definition stage. */ WithCreate withMaxResourcePercent(int maxResourcePercent); } - /** The stage of the WorkloadGroup definition allowing to specify minResourcePercentPerRequest. */ + + /** + * The stage of the WorkloadGroup definition allowing to specify minResourcePercentPerRequest. + */ interface WithMinResourcePercentPerRequest { /** * Specifies the minResourcePercentPerRequest property: The workload group request minimum grant * percentage.. - * + * * @param minResourcePercentPerRequest The workload group request minimum grant percentage. * @return the next definition stage. */ WithCreate withMinResourcePercentPerRequest(double minResourcePercentPerRequest); } - /** The stage of the WorkloadGroup definition allowing to specify maxResourcePercentPerRequest. */ + + /** + * The stage of the WorkloadGroup definition allowing to specify maxResourcePercentPerRequest. + */ interface WithMaxResourcePercentPerRequest { /** * Specifies the maxResourcePercentPerRequest property: The workload group request maximum grant * percentage.. - * + * * @param maxResourcePercentPerRequest The workload group request maximum grant percentage. * @return the next definition stage. */ WithCreate withMaxResourcePercentPerRequest(Double maxResourcePercentPerRequest); } - /** The stage of the WorkloadGroup definition allowing to specify importance. */ + + /** + * The stage of the WorkloadGroup definition allowing to specify importance. + */ interface WithImportance { /** * Specifies the importance property: The workload group importance level.. - * + * * @param importance The workload group importance level. * @return the next definition stage. */ WithCreate withImportance(String importance); } - /** The stage of the WorkloadGroup definition allowing to specify queryExecutionTimeout. */ + + /** + * The stage of the WorkloadGroup definition allowing to specify queryExecutionTimeout. + */ interface WithQueryExecutionTimeout { /** * Specifies the queryExecutionTimeout property: The workload group query execution timeout.. - * + * * @param queryExecutionTimeout The workload group query execution timeout. * @return the next definition stage. */ WithCreate withQueryExecutionTimeout(Integer queryExecutionTimeout); } } + /** * Begins update for the WorkloadGroup resource. - * + * * @return the stage of resource update. */ WorkloadGroup.Update update(); - /** The template for WorkloadGroup update. */ - interface Update - extends UpdateStages.WithMinResourcePercent, - UpdateStages.WithMaxResourcePercent, - UpdateStages.WithMinResourcePercentPerRequest, - UpdateStages.WithMaxResourcePercentPerRequest, - UpdateStages.WithImportance, - UpdateStages.WithQueryExecutionTimeout { + /** + * The template for WorkloadGroup update. + */ + interface Update extends UpdateStages.WithMinResourcePercent, UpdateStages.WithMaxResourcePercent, + UpdateStages.WithMinResourcePercentPerRequest, UpdateStages.WithMaxResourcePercentPerRequest, + UpdateStages.WithImportance, UpdateStages.WithQueryExecutionTimeout { /** * Executes the update request. - * + * * @return the updated resource. */ WorkloadGroup apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ WorkloadGroup apply(Context context); } - /** The WorkloadGroup update stages. */ + + /** + * The WorkloadGroup update stages. + */ interface UpdateStages { - /** The stage of the WorkloadGroup update allowing to specify minResourcePercent. */ + /** + * The stage of the WorkloadGroup update allowing to specify minResourcePercent. + */ interface WithMinResourcePercent { /** * Specifies the minResourcePercent property: The workload group minimum percentage resource.. - * + * * @param minResourcePercent The workload group minimum percentage resource. * @return the next definition stage. */ Update withMinResourcePercent(int minResourcePercent); } - /** The stage of the WorkloadGroup update allowing to specify maxResourcePercent. */ + + /** + * The stage of the WorkloadGroup update allowing to specify maxResourcePercent. + */ interface WithMaxResourcePercent { /** * Specifies the maxResourcePercent property: The workload group cap percentage resource.. - * + * * @param maxResourcePercent The workload group cap percentage resource. * @return the next definition stage. */ Update withMaxResourcePercent(int maxResourcePercent); } - /** The stage of the WorkloadGroup update allowing to specify minResourcePercentPerRequest. */ + + /** + * The stage of the WorkloadGroup update allowing to specify minResourcePercentPerRequest. + */ interface WithMinResourcePercentPerRequest { /** * Specifies the minResourcePercentPerRequest property: The workload group request minimum grant * percentage.. - * + * * @param minResourcePercentPerRequest The workload group request minimum grant percentage. * @return the next definition stage. */ Update withMinResourcePercentPerRequest(double minResourcePercentPerRequest); } - /** The stage of the WorkloadGroup update allowing to specify maxResourcePercentPerRequest. */ + + /** + * The stage of the WorkloadGroup update allowing to specify maxResourcePercentPerRequest. + */ interface WithMaxResourcePercentPerRequest { /** * Specifies the maxResourcePercentPerRequest property: The workload group request maximum grant * percentage.. - * + * * @param maxResourcePercentPerRequest The workload group request maximum grant percentage. * @return the next definition stage. */ Update withMaxResourcePercentPerRequest(Double maxResourcePercentPerRequest); } - /** The stage of the WorkloadGroup update allowing to specify importance. */ + + /** + * The stage of the WorkloadGroup update allowing to specify importance. + */ interface WithImportance { /** * Specifies the importance property: The workload group importance level.. - * + * * @param importance The workload group importance level. * @return the next definition stage. */ Update withImportance(String importance); } - /** The stage of the WorkloadGroup update allowing to specify queryExecutionTimeout. */ + + /** + * The stage of the WorkloadGroup update allowing to specify queryExecutionTimeout. + */ interface WithQueryExecutionTimeout { /** * Specifies the queryExecutionTimeout property: The workload group query execution timeout.. - * + * * @param queryExecutionTimeout The workload group query execution timeout. * @return the next definition stage. */ Update withQueryExecutionTimeout(Integer queryExecutionTimeout); } } + /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ WorkloadGroup refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkloadGroupListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkloadGroupListResult.java index 6d6c1f45a15f..4140b72dd3a2 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkloadGroupListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkloadGroupListResult.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** A list of workload groups. */ +/** + * A list of workload groups. + */ @Immutable public final class WorkloadGroupListResult { /* @@ -24,13 +26,15 @@ public final class WorkloadGroupListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; - /** Creates an instance of WorkloadGroupListResult class. */ + /** + * Creates an instance of WorkloadGroupListResult class. + */ public WorkloadGroupListResult() { } /** * Get the value property: Array of results. - * + * * @return the value value. */ public List value() { @@ -39,7 +43,7 @@ public List value() { /** * Get the nextLink property: Link to retrieve next page of results. - * + * * @return the nextLink value. */ public String nextLink() { @@ -48,7 +52,7 @@ public String nextLink() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Workspace.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Workspace.java index 79fadbb8e9c0..5a6ba9f80701 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Workspace.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Workspace.java @@ -12,60 +12,62 @@ import java.util.Map; import java.util.UUID; -/** An immutable client-side representation of Workspace. */ +/** + * An immutable client-side representation of Workspace. + */ public interface Workspace { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the location property: The geo-location where the resource lives. - * + * * @return the location value. */ String location(); /** * Gets the tags property: Resource tags. - * + * * @return the tags value. */ Map tags(); /** * Gets the identity property: Identity of the workspace. - * + * * @return the identity value. */ ManagedIdentity identity(); /** * Gets the defaultDataLakeStorage property: Workspace default data lake storage account details. - * + * * @return the defaultDataLakeStorage value. */ DataLakeStorageAccountDetails defaultDataLakeStorage(); /** * Gets the sqlAdministratorLoginPassword property: SQL administrator login password. - * + * * @return the sqlAdministratorLoginPassword value. */ String sqlAdministratorLoginPassword(); @@ -75,35 +77,35 @@ public interface Workspace { * identifies the resource group within the user subscriptionId. The resource group name must be no longer than 90 * characters long, and must be alphanumeric characters (Char.IsLetterOrDigit()) and '-', '_', '(', ')' and'.'. Note * that the name cannot end with '.'. - * + * * @return the managedResourceGroupName value. */ String managedResourceGroupName(); /** * Gets the provisioningState property: Resource provisioning state. - * + * * @return the provisioningState value. */ String provisioningState(); /** * Gets the sqlAdministratorLogin property: Login for workspace SQL active directory administrator. - * + * * @return the sqlAdministratorLogin value. */ String sqlAdministratorLogin(); /** * Gets the virtualNetworkProfile property: Virtual Network profile. - * + * * @return the virtualNetworkProfile value. */ VirtualNetworkProfile virtualNetworkProfile(); /** * Gets the connectivityEndpoints property: Connectivity endpoints. - * + * * @return the connectivityEndpoints value. */ Map connectivityEndpoints(); @@ -111,84 +113,84 @@ public interface Workspace { /** * Gets the managedVirtualNetwork property: Setting this to 'default' will ensure that all compute for this * workspace is in a virtual network managed on behalf of the user. - * + * * @return the managedVirtualNetwork value. */ String managedVirtualNetwork(); /** * Gets the privateEndpointConnections property: Private endpoint connections to the workspace. - * + * * @return the privateEndpointConnections value. */ List privateEndpointConnections(); /** * Gets the encryption property: The encryption details of the workspace. - * + * * @return the encryption value. */ EncryptionDetails encryption(); /** * Gets the workspaceUid property: The workspace unique identifier. - * + * * @return the workspaceUid value. */ UUID workspaceUid(); /** * Gets the extraProperties property: Workspace level configs and feature flags. - * + * * @return the extraProperties value. */ Object extraProperties(); /** * Gets the managedVirtualNetworkSettings property: Managed Virtual Network Settings. - * + * * @return the managedVirtualNetworkSettings value. */ ManagedVirtualNetworkSettings managedVirtualNetworkSettings(); /** * Gets the workspaceRepositoryConfiguration property: Git integration settings. - * + * * @return the workspaceRepositoryConfiguration value. */ WorkspaceRepositoryConfiguration workspaceRepositoryConfiguration(); /** * Gets the purviewConfiguration property: Purview Configuration. - * + * * @return the purviewConfiguration value. */ PurviewConfiguration purviewConfiguration(); /** * Gets the adlaResourceId property: The ADLA resource ID. - * + * * @return the adlaResourceId value. */ String adlaResourceId(); /** * Gets the publicNetworkAccess property: Enable or Disable public network access to workspace. - * + * * @return the publicNetworkAccess value. */ WorkspacePublicNetworkAccess publicNetworkAccess(); /** * Gets the cspWorkspaceAdminProperties property: Initial workspace AAD admin properties for a CSP subscription. - * + * * @return the cspWorkspaceAdminProperties value. */ CspWorkspaceAdminProperties cspWorkspaceAdminProperties(); /** * Gets the settings property: Workspace settings. - * + * * @return the settings value. */ Map settings(); @@ -196,63 +198,70 @@ public interface Workspace { /** * Gets the azureADOnlyAuthentication property: Enable or Disable AzureADOnlyAuthentication on All Workspace * subresource. - * + * * @return the azureADOnlyAuthentication value. */ Boolean azureADOnlyAuthentication(); /** * Gets the trustedServiceBypassEnabled property: Is trustedServiceBypassEnabled for the workspace. - * + * * @return the trustedServiceBypassEnabled value. */ Boolean trustedServiceBypassEnabled(); /** * Gets the region of the resource. - * + * * @return the region of the resource. */ Region region(); /** * Gets the name of the resource region. - * + * * @return the name of the resource region. */ String regionName(); /** * Gets the name of the resource group. - * + * * @return the name of the resource group. */ String resourceGroupName(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.WorkspaceInner object. - * + * * @return the inner object. */ WorkspaceInner innerModel(); - /** The entirety of the Workspace definition. */ - interface Definition - extends DefinitionStages.Blank, - DefinitionStages.WithLocation, - DefinitionStages.WithResourceGroup, - DefinitionStages.WithCreate { + /** + * The entirety of the Workspace definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, + DefinitionStages.WithResourceGroup, DefinitionStages.WithCreate { } - /** The Workspace definition stages. */ + + /** + * The Workspace definition stages. + */ interface DefinitionStages { - /** The first stage of the Workspace definition. */ + /** + * The first stage of the Workspace definition. + */ interface Blank extends WithLocation { } - /** The stage of the Workspace definition allowing to specify location. */ + + /** + * The stage of the Workspace definition allowing to specify location. + */ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ @@ -260,368 +269,439 @@ interface WithLocation { /** * Specifies the region for the resource. - * + * * @param location The geo-location where the resource lives. * @return the next definition stage. */ WithResourceGroup withRegion(String location); } - /** The stage of the Workspace definition allowing to specify parent resource. */ + + /** + * The stage of the Workspace definition allowing to specify parent resource. + */ interface WithResourceGroup { /** * Specifies resourceGroupName. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @return the next definition stage. */ WithCreate withExistingResourceGroup(String resourceGroupName); } + /** * The stage of the Workspace definition which contains all the minimum required properties for the resource to * be created, but also allows for any other optional properties to be specified. */ - interface WithCreate - extends DefinitionStages.WithTags, - DefinitionStages.WithIdentity, - DefinitionStages.WithDefaultDataLakeStorage, - DefinitionStages.WithSqlAdministratorLoginPassword, - DefinitionStages.WithManagedResourceGroupName, - DefinitionStages.WithSqlAdministratorLogin, - DefinitionStages.WithVirtualNetworkProfile, - DefinitionStages.WithManagedVirtualNetwork, - DefinitionStages.WithPrivateEndpointConnections, - DefinitionStages.WithEncryption, - DefinitionStages.WithManagedVirtualNetworkSettings, - DefinitionStages.WithWorkspaceRepositoryConfiguration, - DefinitionStages.WithPurviewConfiguration, - DefinitionStages.WithPublicNetworkAccess, - DefinitionStages.WithCspWorkspaceAdminProperties, - DefinitionStages.WithAzureADOnlyAuthentication, - DefinitionStages.WithTrustedServiceBypassEnabled { + interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithIdentity, + DefinitionStages.WithDefaultDataLakeStorage, DefinitionStages.WithSqlAdministratorLoginPassword, + DefinitionStages.WithManagedResourceGroupName, DefinitionStages.WithSqlAdministratorLogin, + DefinitionStages.WithVirtualNetworkProfile, DefinitionStages.WithManagedVirtualNetwork, + DefinitionStages.WithPrivateEndpointConnections, DefinitionStages.WithEncryption, + DefinitionStages.WithManagedVirtualNetworkSettings, DefinitionStages.WithWorkspaceRepositoryConfiguration, + DefinitionStages.WithPurviewConfiguration, DefinitionStages.WithPublicNetworkAccess, + DefinitionStages.WithCspWorkspaceAdminProperties, DefinitionStages.WithAzureADOnlyAuthentication, + DefinitionStages.WithTrustedServiceBypassEnabled { /** * Executes the create request. - * + * * @return the created resource. */ Workspace create(); /** * Executes the create request. - * + * * @param context The context to associate with this operation. * @return the created resource. */ Workspace create(Context context); } - /** The stage of the Workspace definition allowing to specify tags. */ + + /** + * The stage of the Workspace definition allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: Resource tags.. - * + * * @param tags Resource tags. * @return the next definition stage. */ WithCreate withTags(Map tags); } - /** The stage of the Workspace definition allowing to specify identity. */ + + /** + * The stage of the Workspace definition allowing to specify identity. + */ interface WithIdentity { /** * Specifies the identity property: Identity of the workspace. - * + * * @param identity Identity of the workspace. * @return the next definition stage. */ WithCreate withIdentity(ManagedIdentity identity); } - /** The stage of the Workspace definition allowing to specify defaultDataLakeStorage. */ + + /** + * The stage of the Workspace definition allowing to specify defaultDataLakeStorage. + */ interface WithDefaultDataLakeStorage { /** * Specifies the defaultDataLakeStorage property: Workspace default data lake storage account details. - * + * * @param defaultDataLakeStorage Workspace default data lake storage account details. * @return the next definition stage. */ WithCreate withDefaultDataLakeStorage(DataLakeStorageAccountDetails defaultDataLakeStorage); } - /** The stage of the Workspace definition allowing to specify sqlAdministratorLoginPassword. */ + + /** + * The stage of the Workspace definition allowing to specify sqlAdministratorLoginPassword. + */ interface WithSqlAdministratorLoginPassword { /** * Specifies the sqlAdministratorLoginPassword property: SQL administrator login password. - * + * * @param sqlAdministratorLoginPassword SQL administrator login password. * @return the next definition stage. */ WithCreate withSqlAdministratorLoginPassword(String sqlAdministratorLoginPassword); } - /** The stage of the Workspace definition allowing to specify managedResourceGroupName. */ + + /** + * The stage of the Workspace definition allowing to specify managedResourceGroupName. + */ interface WithManagedResourceGroupName { /** * Specifies the managedResourceGroupName property: Workspace managed resource group. The resource group * name uniquely identifies the resource group within the user subscriptionId. The resource group name must * be no longer than 90 characters long, and must be alphanumeric characters (Char.IsLetterOrDigit()) and * '-', '_', '(', ')' and'.'. Note that the name cannot end with '.'. - * + * * @param managedResourceGroupName Workspace managed resource group. The resource group name uniquely - * identifies the resource group within the user subscriptionId. The resource group name must be no - * longer than 90 characters long, and must be alphanumeric characters (Char.IsLetterOrDigit()) and '-', - * '_', '(', ')' and'.'. Note that the name cannot end with '.'. + * identifies the resource group within the user subscriptionId. The resource group name must be no longer + * than 90 characters long, and must be alphanumeric characters (Char.IsLetterOrDigit()) and '-', '_', '(', + * ')' and'.'. Note that the name cannot end with '.'. * @return the next definition stage. */ WithCreate withManagedResourceGroupName(String managedResourceGroupName); } - /** The stage of the Workspace definition allowing to specify sqlAdministratorLogin. */ + + /** + * The stage of the Workspace definition allowing to specify sqlAdministratorLogin. + */ interface WithSqlAdministratorLogin { /** * Specifies the sqlAdministratorLogin property: Login for workspace SQL active directory administrator. - * + * * @param sqlAdministratorLogin Login for workspace SQL active directory administrator. * @return the next definition stage. */ WithCreate withSqlAdministratorLogin(String sqlAdministratorLogin); } - /** The stage of the Workspace definition allowing to specify virtualNetworkProfile. */ + + /** + * The stage of the Workspace definition allowing to specify virtualNetworkProfile. + */ interface WithVirtualNetworkProfile { /** * Specifies the virtualNetworkProfile property: Virtual Network profile. - * + * * @param virtualNetworkProfile Virtual Network profile. * @return the next definition stage. */ WithCreate withVirtualNetworkProfile(VirtualNetworkProfile virtualNetworkProfile); } - /** The stage of the Workspace definition allowing to specify managedVirtualNetwork. */ + + /** + * The stage of the Workspace definition allowing to specify managedVirtualNetwork. + */ interface WithManagedVirtualNetwork { /** * Specifies the managedVirtualNetwork property: Setting this to 'default' will ensure that all compute for * this workspace is in a virtual network managed on behalf of the user.. - * + * * @param managedVirtualNetwork Setting this to 'default' will ensure that all compute for this workspace is - * in a virtual network managed on behalf of the user. + * in a virtual network managed on behalf of the user. * @return the next definition stage. */ WithCreate withManagedVirtualNetwork(String managedVirtualNetwork); } - /** The stage of the Workspace definition allowing to specify privateEndpointConnections. */ + + /** + * The stage of the Workspace definition allowing to specify privateEndpointConnections. + */ interface WithPrivateEndpointConnections { /** * Specifies the privateEndpointConnections property: Private endpoint connections to the workspace. - * + * * @param privateEndpointConnections Private endpoint connections to the workspace. * @return the next definition stage. */ WithCreate withPrivateEndpointConnections(List privateEndpointConnections); } - /** The stage of the Workspace definition allowing to specify encryption. */ + + /** + * The stage of the Workspace definition allowing to specify encryption. + */ interface WithEncryption { /** * Specifies the encryption property: The encryption details of the workspace. - * + * * @param encryption The encryption details of the workspace. * @return the next definition stage. */ WithCreate withEncryption(EncryptionDetails encryption); } - /** The stage of the Workspace definition allowing to specify managedVirtualNetworkSettings. */ + + /** + * The stage of the Workspace definition allowing to specify managedVirtualNetworkSettings. + */ interface WithManagedVirtualNetworkSettings { /** * Specifies the managedVirtualNetworkSettings property: Managed Virtual Network Settings. - * + * * @param managedVirtualNetworkSettings Managed Virtual Network Settings. * @return the next definition stage. */ WithCreate withManagedVirtualNetworkSettings(ManagedVirtualNetworkSettings managedVirtualNetworkSettings); } - /** The stage of the Workspace definition allowing to specify workspaceRepositoryConfiguration. */ + + /** + * The stage of the Workspace definition allowing to specify workspaceRepositoryConfiguration. + */ interface WithWorkspaceRepositoryConfiguration { /** * Specifies the workspaceRepositoryConfiguration property: Git integration settings. - * + * * @param workspaceRepositoryConfiguration Git integration settings. * @return the next definition stage. */ - WithCreate withWorkspaceRepositoryConfiguration( - WorkspaceRepositoryConfiguration workspaceRepositoryConfiguration); + WithCreate + withWorkspaceRepositoryConfiguration(WorkspaceRepositoryConfiguration workspaceRepositoryConfiguration); } - /** The stage of the Workspace definition allowing to specify purviewConfiguration. */ + + /** + * The stage of the Workspace definition allowing to specify purviewConfiguration. + */ interface WithPurviewConfiguration { /** * Specifies the purviewConfiguration property: Purview Configuration. - * + * * @param purviewConfiguration Purview Configuration. * @return the next definition stage. */ WithCreate withPurviewConfiguration(PurviewConfiguration purviewConfiguration); } - /** The stage of the Workspace definition allowing to specify publicNetworkAccess. */ + + /** + * The stage of the Workspace definition allowing to specify publicNetworkAccess. + */ interface WithPublicNetworkAccess { /** * Specifies the publicNetworkAccess property: Enable or Disable public network access to workspace. - * + * * @param publicNetworkAccess Enable or Disable public network access to workspace. * @return the next definition stage. */ WithCreate withPublicNetworkAccess(WorkspacePublicNetworkAccess publicNetworkAccess); } - /** The stage of the Workspace definition allowing to specify cspWorkspaceAdminProperties. */ + + /** + * The stage of the Workspace definition allowing to specify cspWorkspaceAdminProperties. + */ interface WithCspWorkspaceAdminProperties { /** * Specifies the cspWorkspaceAdminProperties property: Initial workspace AAD admin properties for a CSP * subscription. - * + * * @param cspWorkspaceAdminProperties Initial workspace AAD admin properties for a CSP subscription. * @return the next definition stage. */ WithCreate withCspWorkspaceAdminProperties(CspWorkspaceAdminProperties cspWorkspaceAdminProperties); } - /** The stage of the Workspace definition allowing to specify azureADOnlyAuthentication. */ + + /** + * The stage of the Workspace definition allowing to specify azureADOnlyAuthentication. + */ interface WithAzureADOnlyAuthentication { /** * Specifies the azureADOnlyAuthentication property: Enable or Disable AzureADOnlyAuthentication on All * Workspace subresource. - * + * * @param azureADOnlyAuthentication Enable or Disable AzureADOnlyAuthentication on All Workspace - * subresource. + * subresource. * @return the next definition stage. */ WithCreate withAzureADOnlyAuthentication(Boolean azureADOnlyAuthentication); } - /** The stage of the Workspace definition allowing to specify trustedServiceBypassEnabled. */ + + /** + * The stage of the Workspace definition allowing to specify trustedServiceBypassEnabled. + */ interface WithTrustedServiceBypassEnabled { /** * Specifies the trustedServiceBypassEnabled property: Is trustedServiceBypassEnabled for the workspace. - * + * * @param trustedServiceBypassEnabled Is trustedServiceBypassEnabled for the workspace. * @return the next definition stage. */ WithCreate withTrustedServiceBypassEnabled(Boolean trustedServiceBypassEnabled); } } + /** * Begins update for the Workspace resource. - * + * * @return the stage of resource update. */ Workspace.Update update(); - /** The template for Workspace update. */ + /** + * The template for Workspace update. + */ interface Update - extends UpdateStages.WithTags, - UpdateStages.WithIdentity, - UpdateStages.WithSqlAdministratorLoginPassword, - UpdateStages.WithManagedVirtualNetworkSettings, - UpdateStages.WithWorkspaceRepositoryConfiguration, - UpdateStages.WithPurviewConfiguration, - UpdateStages.WithEncryption, - UpdateStages.WithPublicNetworkAccess { + extends UpdateStages.WithTags, UpdateStages.WithIdentity, UpdateStages.WithSqlAdministratorLoginPassword, + UpdateStages.WithManagedVirtualNetworkSettings, UpdateStages.WithWorkspaceRepositoryConfiguration, + UpdateStages.WithPurviewConfiguration, UpdateStages.WithEncryption, UpdateStages.WithPublicNetworkAccess { /** * Executes the update request. - * + * * @return the updated resource. */ Workspace apply(); /** * Executes the update request. - * + * * @param context The context to associate with this operation. * @return the updated resource. */ Workspace apply(Context context); } - /** The Workspace update stages. */ + + /** + * The Workspace update stages. + */ interface UpdateStages { - /** The stage of the Workspace update allowing to specify tags. */ + /** + * The stage of the Workspace update allowing to specify tags. + */ interface WithTags { /** * Specifies the tags property: Resource tags. - * + * * @param tags Resource tags. * @return the next definition stage. */ Update withTags(Map tags); } - /** The stage of the Workspace update allowing to specify identity. */ + + /** + * The stage of the Workspace update allowing to specify identity. + */ interface WithIdentity { /** * Specifies the identity property: The identity of the workspace. - * + * * @param identity The identity of the workspace. * @return the next definition stage. */ Update withIdentity(ManagedIdentity identity); } - /** The stage of the Workspace update allowing to specify sqlAdministratorLoginPassword. */ + + /** + * The stage of the Workspace update allowing to specify sqlAdministratorLoginPassword. + */ interface WithSqlAdministratorLoginPassword { /** * Specifies the sqlAdministratorLoginPassword property: SQL administrator login password. - * + * * @param sqlAdministratorLoginPassword SQL administrator login password. * @return the next definition stage. */ Update withSqlAdministratorLoginPassword(String sqlAdministratorLoginPassword); } - /** The stage of the Workspace update allowing to specify managedVirtualNetworkSettings. */ + + /** + * The stage of the Workspace update allowing to specify managedVirtualNetworkSettings. + */ interface WithManagedVirtualNetworkSettings { /** * Specifies the managedVirtualNetworkSettings property: Managed Virtual Network Settings. - * + * * @param managedVirtualNetworkSettings Managed Virtual Network Settings. * @return the next definition stage. */ Update withManagedVirtualNetworkSettings(ManagedVirtualNetworkSettings managedVirtualNetworkSettings); } - /** The stage of the Workspace update allowing to specify workspaceRepositoryConfiguration. */ + + /** + * The stage of the Workspace update allowing to specify workspaceRepositoryConfiguration. + */ interface WithWorkspaceRepositoryConfiguration { /** * Specifies the workspaceRepositoryConfiguration property: Git integration settings. - * + * * @param workspaceRepositoryConfiguration Git integration settings. * @return the next definition stage. */ - Update withWorkspaceRepositoryConfiguration( - WorkspaceRepositoryConfiguration workspaceRepositoryConfiguration); + Update + withWorkspaceRepositoryConfiguration(WorkspaceRepositoryConfiguration workspaceRepositoryConfiguration); } - /** The stage of the Workspace update allowing to specify purviewConfiguration. */ + + /** + * The stage of the Workspace update allowing to specify purviewConfiguration. + */ interface WithPurviewConfiguration { /** * Specifies the purviewConfiguration property: Purview Configuration. - * + * * @param purviewConfiguration Purview Configuration. * @return the next definition stage. */ Update withPurviewConfiguration(PurviewConfiguration purviewConfiguration); } - /** The stage of the Workspace update allowing to specify encryption. */ + + /** + * The stage of the Workspace update allowing to specify encryption. + */ interface WithEncryption { /** * Specifies the encryption property: The encryption details of the workspace. - * + * * @param encryption The encryption details of the workspace. * @return the next definition stage. */ Update withEncryption(EncryptionDetails encryption); } - /** The stage of the Workspace update allowing to specify publicNetworkAccess. */ + + /** + * The stage of the Workspace update allowing to specify publicNetworkAccess. + */ interface WithPublicNetworkAccess { /** * Specifies the publicNetworkAccess property: Enable or Disable public network access to workspace. - * + * * @param publicNetworkAccess Enable or Disable public network access to workspace. * @return the next definition stage. */ Update withPublicNetworkAccess(WorkspacePublicNetworkAccess publicNetworkAccess); } } + /** * Refreshes the resource to sync with Azure. - * + * * @return the refreshed resource. */ Workspace refresh(); /** * Refreshes the resource to sync with Azure. - * + * * @param context The context to associate with this operation. * @return the refreshed resource. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceAadAdminInfo.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceAadAdminInfo.java index 44875814dc36..640c749a4262 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceAadAdminInfo.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceAadAdminInfo.java @@ -6,60 +6,62 @@ import com.azure.resourcemanager.synapse.fluent.models.WorkspaceAadAdminInfoInner; -/** An immutable client-side representation of WorkspaceAadAdminInfo. */ +/** + * An immutable client-side representation of WorkspaceAadAdminInfo. + */ public interface WorkspaceAadAdminInfo { /** * Gets the id property: Fully qualified resource Id for the resource. - * + * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. - * + * * @return the name value. */ String name(); /** * Gets the type property: The type of the resource. - * + * * @return the type value. */ String type(); /** * Gets the tenantId property: Tenant ID of the workspace active directory administrator. - * + * * @return the tenantId value. */ String tenantId(); /** * Gets the login property: Login of the workspace active directory administrator. - * + * * @return the login value. */ String login(); /** * Gets the administratorType property: Workspace active directory administrator type. - * + * * @return the administratorType value. */ String administratorType(); /** * Gets the sid property: Object ID of the workspace active directory administrator. - * + * * @return the sid value. */ String sid(); /** * Gets the inner com.azure.resourcemanager.synapse.fluent.models.WorkspaceAadAdminInfoInner object. - * + * * @return the inner object. */ WorkspaceAadAdminInfoInner innerModel(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceAadAdmins.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceAadAdmins.java index fd6207e0fdb0..ff0d21dbc906 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceAadAdmins.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceAadAdmins.java @@ -8,11 +8,13 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.synapse.fluent.models.WorkspaceAadAdminInfoInner; -/** Resource collection API of WorkspaceAadAdmins. */ +/** + * Resource collection API of WorkspaceAadAdmins. + */ public interface WorkspaceAadAdmins { /** * Gets a workspace active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -25,7 +27,7 @@ public interface WorkspaceAadAdmins { /** * Gets a workspace active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -37,7 +39,7 @@ public interface WorkspaceAadAdmins { /** * Creates or updates a workspace active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param aadAdminInfo Workspace active directory administrator properties. @@ -46,12 +48,12 @@ public interface WorkspaceAadAdmins { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return workspace active directory administrator. */ - WorkspaceAadAdminInfo createOrUpdate( - String resourceGroupName, String workspaceName, WorkspaceAadAdminInfoInner aadAdminInfo); + WorkspaceAadAdminInfo createOrUpdate(String resourceGroupName, String workspaceName, + WorkspaceAadAdminInfoInner aadAdminInfo); /** * Creates or updates a workspace active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param aadAdminInfo Workspace active directory administrator properties. @@ -61,12 +63,12 @@ WorkspaceAadAdminInfo createOrUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return workspace active directory administrator. */ - WorkspaceAadAdminInfo createOrUpdate( - String resourceGroupName, String workspaceName, WorkspaceAadAdminInfoInner aadAdminInfo, Context context); + WorkspaceAadAdminInfo createOrUpdate(String resourceGroupName, String workspaceName, + WorkspaceAadAdminInfoInner aadAdminInfo, Context context); /** * Deletes a workspace active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -77,7 +79,7 @@ WorkspaceAadAdminInfo createOrUpdate( /** * Deletes a workspace active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceInfoListResult.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceInfoListResult.java index d3274ef5d6e1..8189a91f9930 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceInfoListResult.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceInfoListResult.java @@ -9,7 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** List of workspaces. */ +/** + * List of workspaces. + */ @Fluent public final class WorkspaceInfoListResult { /* @@ -24,13 +26,15 @@ public final class WorkspaceInfoListResult { @JsonProperty(value = "value") private List value; - /** Creates an instance of WorkspaceInfoListResult class. */ + /** + * Creates an instance of WorkspaceInfoListResult class. + */ public WorkspaceInfoListResult() { } /** * Get the nextLink property: Link to the next page of results. - * + * * @return the nextLink value. */ public String nextLink() { @@ -39,7 +43,7 @@ public String nextLink() { /** * Set the nextLink property: Link to the next page of results. - * + * * @param nextLink the nextLink value to set. * @return the WorkspaceInfoListResult object itself. */ @@ -50,7 +54,7 @@ public WorkspaceInfoListResult withNextLink(String nextLink) { /** * Get the value property: List of workspaces. - * + * * @return the value value. */ public List value() { @@ -59,7 +63,7 @@ public List value() { /** * Set the value property: List of workspaces. - * + * * @param value the value value to set. * @return the WorkspaceInfoListResult object itself. */ @@ -70,7 +74,7 @@ public WorkspaceInfoListResult withValue(List value) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceKeyDetails.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceKeyDetails.java index f0f951347435..7f49ad4ec38d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceKeyDetails.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceKeyDetails.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Details of the customer managed key associated with the workspace. */ +/** + * Details of the customer managed key associated with the workspace. + */ @Fluent public final class WorkspaceKeyDetails { /* @@ -22,13 +24,15 @@ public final class WorkspaceKeyDetails { @JsonProperty(value = "keyVaultUrl") private String keyVaultUrl; - /** Creates an instance of WorkspaceKeyDetails class. */ + /** + * Creates an instance of WorkspaceKeyDetails class. + */ public WorkspaceKeyDetails() { } /** * Get the name property: Workspace Key sub-resource name. - * + * * @return the name value. */ public String name() { @@ -37,7 +41,7 @@ public String name() { /** * Set the name property: Workspace Key sub-resource name. - * + * * @param name the name value to set. * @return the WorkspaceKeyDetails object itself. */ @@ -48,7 +52,7 @@ public WorkspaceKeyDetails withName(String name) { /** * Get the keyVaultUrl property: Workspace Key sub-resource key vault url. - * + * * @return the keyVaultUrl value. */ public String keyVaultUrl() { @@ -57,7 +61,7 @@ public String keyVaultUrl() { /** * Set the keyVaultUrl property: Workspace Key sub-resource key vault url. - * + * * @param keyVaultUrl the keyVaultUrl value to set. * @return the WorkspaceKeyDetails object itself. */ @@ -68,7 +72,7 @@ public WorkspaceKeyDetails withKeyVaultUrl(String keyVaultUrl) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedIdentitySqlControlSettings.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedIdentitySqlControlSettings.java index 53d74faf0392..15de9af777dc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedIdentitySqlControlSettings.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedIdentitySqlControlSettings.java @@ -8,11 +8,13 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.synapse.fluent.models.ManagedIdentitySqlControlSettingsModelInner; -/** Resource collection API of WorkspaceManagedIdentitySqlControlSettings. */ +/** + * Resource collection API of WorkspaceManagedIdentitySqlControlSettings. + */ public interface WorkspaceManagedIdentitySqlControlSettings { /** * Get Managed Identity Sql Control Settings. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -21,12 +23,12 @@ public interface WorkspaceManagedIdentitySqlControlSettings { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return managed Identity Sql Control Settings along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, String workspaceName, Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + Context context); /** * Get Managed Identity Sql Control Settings. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -38,7 +40,7 @@ Response getWithResponse( /** * Create or update Managed Identity Sql Control Settings. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param managedIdentitySqlControlSettings Managed Identity Sql Control Settings. @@ -47,14 +49,12 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return managed Identity Sql Control Settings. */ - ManagedIdentitySqlControlSettingsModel createOrUpdate( - String resourceGroupName, - String workspaceName, + ManagedIdentitySqlControlSettingsModel createOrUpdate(String resourceGroupName, String workspaceName, ManagedIdentitySqlControlSettingsModelInner managedIdentitySqlControlSettings); /** * Create or update Managed Identity Sql Control Settings. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param managedIdentitySqlControlSettings Managed Identity Sql Control Settings. @@ -64,9 +64,6 @@ ManagedIdentitySqlControlSettingsModel createOrUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return managed Identity Sql Control Settings. */ - ManagedIdentitySqlControlSettingsModel createOrUpdate( - String resourceGroupName, - String workspaceName, - ManagedIdentitySqlControlSettingsModelInner managedIdentitySqlControlSettings, - Context context); + ManagedIdentitySqlControlSettingsModel createOrUpdate(String resourceGroupName, String workspaceName, + ManagedIdentitySqlControlSettingsModelInner managedIdentitySqlControlSettings, Context context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerBlobAuditingPolicies.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerBlobAuditingPolicies.java index cea735d9655c..235edb5a5997 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerBlobAuditingPolicies.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerBlobAuditingPolicies.java @@ -8,13 +8,15 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of WorkspaceManagedSqlServerBlobAuditingPolicies. */ +/** + * Resource collection API of WorkspaceManagedSqlServerBlobAuditingPolicies. + */ public interface WorkspaceManagedSqlServerBlobAuditingPolicies { /** * Get server's blob auditing policy. - * - *

Get a workspace managed sql server's blob auditing policy. - * + * + * Get a workspace managed sql server's blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. @@ -24,14 +26,14 @@ public interface WorkspaceManagedSqlServerBlobAuditingPolicies { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a workspace managed sql server's blob auditing policy along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName, Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + BlobAuditingPolicyName blobAuditingPolicyName, Context context); /** * Get server's blob auditing policy. - * - *

Get a workspace managed sql server's blob auditing policy. - * + * + * Get a workspace managed sql server's blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. @@ -40,14 +42,14 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a workspace managed sql server's blob auditing policy. */ - ServerBlobAuditingPolicy get( - String resourceGroupName, String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName); + ServerBlobAuditingPolicy get(String resourceGroupName, String workspaceName, + BlobAuditingPolicyName blobAuditingPolicyName); /** * List workspace server's blob auditing policies. - * - *

List workspace managed sql server's blob auditing policies. - * + * + * List workspace managed sql server's blob auditing policies. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -59,9 +61,9 @@ ServerBlobAuditingPolicy get( /** * List workspace server's blob auditing policies. - * - *

List workspace managed sql server's blob auditing policies. - * + * + * List workspace managed sql server's blob auditing policies. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -70,14 +72,14 @@ ServerBlobAuditingPolicy get( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of server auditing settings as paginated response with {@link PagedIterable}. */ - PagedIterable listByWorkspace( - String resourceGroupName, String workspaceName, Context context); + PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, + Context context); /** * Get server's blob auditing policy. - * - *

Get a workspace managed sql server's blob auditing policy. - * + * + * Get a workspace managed sql server's blob auditing policy. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -88,9 +90,9 @@ PagedIterable listByWorkspace( /** * Get server's blob auditing policy. - * - *

Get a workspace managed sql server's blob auditing policy. - * + * + * Get a workspace managed sql server's blob auditing policy. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -102,7 +104,7 @@ PagedIterable listByWorkspace( /** * Begins definition for a new ServerBlobAuditingPolicy resource. - * + * * @param name resource name. * @return the first stage of the new ServerBlobAuditingPolicy definition. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings.java index 025a182542e0..26eb73f9a8bb 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings.java @@ -9,13 +9,15 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.synapse.fluent.models.DedicatedSQLminimalTlsSettingsInner; -/** Resource collection API of WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings. */ +/** + * Resource collection API of WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings. + */ public interface WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings { /** * Update server's tls settings. - * - *

Update workspace managed sql server's minimal tls settings. - * + * + * Update workspace managed sql server's minimal tls settings. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. @@ -25,17 +27,15 @@ public interface WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return dedicated Sql Minimal Tls Settings Info. */ - DedicatedSQLminimalTlsSettings update( - String resourceGroupName, - String workspaceName, + DedicatedSQLminimalTlsSettings update(String resourceGroupName, String workspaceName, DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, DedicatedSQLminimalTlsSettingsInner parameters); /** * Update server's tls settings. - * - *

Update workspace managed sql server's minimal tls settings. - * + * + * Update workspace managed sql server's minimal tls settings. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. @@ -46,18 +46,15 @@ DedicatedSQLminimalTlsSettings update( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return dedicated Sql Minimal Tls Settings Info. */ - DedicatedSQLminimalTlsSettings update( - String resourceGroupName, - String workspaceName, + DedicatedSQLminimalTlsSettings update(String resourceGroupName, String workspaceName, DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName, - DedicatedSQLminimalTlsSettingsInner parameters, - Context context); + DedicatedSQLminimalTlsSettingsInner parameters, Context context); /** * Get server's minimal tls settings. - * - *

Get workspace managed sql server's minimal tls settings. - * + * + * Get workspace managed sql server's minimal tls settings. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. @@ -67,14 +64,14 @@ DedicatedSQLminimalTlsSettings update( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return workspace managed sql server's minimal tls settings along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, String workspaceName, String dedicatedSQLminimalTlsSettingsName, Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + String dedicatedSQLminimalTlsSettingsName, Context context); /** * Get server's minimal tls settings. - * - *

Get workspace managed sql server's minimal tls settings. - * + * + * Get workspace managed sql server's minimal tls settings. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings. @@ -83,37 +80,37 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return workspace managed sql server's minimal tls settings. */ - DedicatedSQLminimalTlsSettings get( - String resourceGroupName, String workspaceName, String dedicatedSQLminimalTlsSettingsName); + DedicatedSQLminimalTlsSettings get(String resourceGroupName, String workspaceName, + String dedicatedSQLminimalTlsSettingsName); /** * List workspace server's minimal tls settings. - * - *

List workspace managed sql server's minimal tls settings. - * + * + * List workspace managed sql server's minimal tls settings. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of the server's dedicated sql minimal tls settings as paginated response with {@link - * PagedIterable}. + * @return a list of the server's dedicated sql minimal tls settings as paginated response with + * {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String workspaceName); /** * List workspace server's minimal tls settings. - * - *

List workspace managed sql server's minimal tls settings. - * + * + * List workspace managed sql server's minimal tls settings. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of the server's dedicated sql minimal tls settings as paginated response with {@link - * PagedIterable}. + * @return a list of the server's dedicated sql minimal tls settings as paginated response with + * {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String workspaceName, Context context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerEncryptionProtectors.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerEncryptionProtectors.java index 4eca62569195..2e929c8d8e11 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerEncryptionProtectors.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerEncryptionProtectors.java @@ -8,13 +8,15 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of WorkspaceManagedSqlServerEncryptionProtectors. */ +/** + * Resource collection API of WorkspaceManagedSqlServerEncryptionProtectors. + */ public interface WorkspaceManagedSqlServerEncryptionProtectors { /** * Get workspace server's encryption protector. - * - *

Get workspace managed sql server's encryption protector. - * + * + * Get workspace managed sql server's encryption protector. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param encryptionProtectorName The name of the encryption protector. @@ -24,17 +26,14 @@ public interface WorkspaceManagedSqlServerEncryptionProtectors { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return workspace managed sql server's encryption protector along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, - String workspaceName, - EncryptionProtectorName encryptionProtectorName, - Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + EncryptionProtectorName encryptionProtectorName, Context context); /** * Get workspace server's encryption protector. - * - *

Get workspace managed sql server's encryption protector. - * + * + * Get workspace managed sql server's encryption protector. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param encryptionProtectorName The name of the encryption protector. @@ -43,45 +42,45 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return workspace managed sql server's encryption protector. */ - EncryptionProtector get( - String resourceGroupName, String workspaceName, EncryptionProtectorName encryptionProtectorName); + EncryptionProtector get(String resourceGroupName, String workspaceName, + EncryptionProtectorName encryptionProtectorName); /** * Get list of encryption protectors for the server. - * - *

Get list of encryption protectors for workspace managed sql server. - * + * + * Get list of encryption protectors for workspace managed sql server. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 encryption protectors for workspace managed sql server as paginated response with {@link - * PagedIterable}. + * @return list of encryption protectors for workspace managed sql server as paginated response with + * {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String workspaceName); /** * Get list of encryption protectors for the server. - * - *

Get list of encryption protectors for workspace managed sql server. - * + * + * Get list of encryption protectors for workspace managed sql server. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 encryption protectors for workspace managed sql server as paginated response with {@link - * PagedIterable}. + * @return list of encryption protectors for workspace managed sql server as paginated response with + * {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String workspaceName, Context context); /** * Revalidates server's existing encryption protector. - * - *

Revalidates workspace managed sql server's existing encryption protector. - * + * + * Revalidates workspace managed sql server's existing encryption protector. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param encryptionProtectorName The name of the encryption protector. @@ -93,9 +92,9 @@ EncryptionProtector get( /** * Revalidates server's existing encryption protector. - * - *

Revalidates workspace managed sql server's existing encryption protector. - * + * + * Revalidates workspace managed sql server's existing encryption protector. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param encryptionProtectorName The name of the encryption protector. @@ -104,17 +103,14 @@ EncryptionProtector get( * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void revalidate( - String resourceGroupName, - String workspaceName, - EncryptionProtectorName encryptionProtectorName, + void revalidate(String resourceGroupName, String workspaceName, EncryptionProtectorName encryptionProtectorName, Context context); /** * Get workspace server's encryption protector. - * - *

Get workspace managed sql server's encryption protector. - * + * + * Get workspace managed sql server's encryption protector. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -125,9 +121,9 @@ void revalidate( /** * Get workspace server's encryption protector. - * - *

Get workspace managed sql server's encryption protector. - * + * + * Get workspace managed sql server's encryption protector. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -139,7 +135,7 @@ void revalidate( /** * Begins definition for a new EncryptionProtector resource. - * + * * @param name resource name. * @return the first stage of the new EncryptionProtector definition. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerExtendedBlobAuditingPolicies.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerExtendedBlobAuditingPolicies.java index 10fafd8ecad6..987dac657670 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerExtendedBlobAuditingPolicies.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerExtendedBlobAuditingPolicies.java @@ -8,13 +8,15 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of WorkspaceManagedSqlServerExtendedBlobAuditingPolicies. */ +/** + * Resource collection API of WorkspaceManagedSqlServerExtendedBlobAuditingPolicies. + */ public interface WorkspaceManagedSqlServerExtendedBlobAuditingPolicies { /** * Get server's extended blob auditing policy. - * - *

Get a workspace SQL server's extended blob auditing policy. - * + * + * Get a workspace SQL server's extended blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. @@ -24,14 +26,14 @@ public interface WorkspaceManagedSqlServerExtendedBlobAuditingPolicies { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a workspace SQL server's extended blob auditing policy along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName, Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + BlobAuditingPolicyName blobAuditingPolicyName, Context context); /** * Get server's extended blob auditing policy. - * - *

Get a workspace SQL server's extended blob auditing policy. - * + * + * Get a workspace SQL server's extended blob auditing policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param blobAuditingPolicyName The name of the blob auditing policy. @@ -40,14 +42,14 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a workspace SQL server's extended blob auditing policy. */ - ExtendedServerBlobAuditingPolicy get( - String resourceGroupName, String workspaceName, BlobAuditingPolicyName blobAuditingPolicyName); + ExtendedServerBlobAuditingPolicy get(String resourceGroupName, String workspaceName, + BlobAuditingPolicyName blobAuditingPolicyName); /** * List server's extended blob auditing policies. - * - *

List workspace managed sql server's extended blob auditing policies. - * + * + * List workspace managed sql server's extended blob auditing policies. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -59,9 +61,9 @@ ExtendedServerBlobAuditingPolicy get( /** * List server's extended blob auditing policies. - * - *

List workspace managed sql server's extended blob auditing policies. - * + * + * List workspace managed sql server's extended blob auditing policies. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -70,14 +72,14 @@ ExtendedServerBlobAuditingPolicy get( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a list of server extended auditing settings as paginated response with {@link PagedIterable}. */ - PagedIterable listByWorkspace( - String resourceGroupName, String workspaceName, Context context); + PagedIterable listByWorkspace(String resourceGroupName, String workspaceName, + Context context); /** * Get server's extended blob auditing policy. - * - *

Get a workspace SQL server's extended blob auditing policy. - * + * + * Get a workspace SQL server's extended blob auditing policy. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -88,9 +90,9 @@ PagedIterable listByWorkspace( /** * Get server's extended blob auditing policy. - * - *

Get a workspace SQL server's extended blob auditing policy. - * + * + * Get a workspace SQL server's extended blob auditing policy. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -102,7 +104,7 @@ PagedIterable listByWorkspace( /** * Begins definition for a new ExtendedServerBlobAuditingPolicy resource. - * + * * @param name resource name. * @return the first stage of the new ExtendedServerBlobAuditingPolicy definition. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerRecoverableSqlPools.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerRecoverableSqlPools.java index 77273e206233..1921f74b0761 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerRecoverableSqlPools.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerRecoverableSqlPools.java @@ -8,44 +8,46 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of WorkspaceManagedSqlServerRecoverableSqlPools. */ +/** + * Resource collection API of WorkspaceManagedSqlServerRecoverableSqlPools. + */ public interface WorkspaceManagedSqlServerRecoverableSqlPools { /** * Get list of recoverable sql pools for the server. - * - *

Get list of recoverable sql pools for workspace managed sql server. - * + * + * Get list of recoverable sql pools for workspace managed sql server. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 recoverable sql pools for workspace managed sql server as paginated response with {@link - * PagedIterable}. + * @return list of recoverable sql pools for workspace managed sql server as paginated response with + * {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String workspaceName); /** * Get list of recoverable sql pools for the server. - * - *

Get list of recoverable sql pools for workspace managed sql server. - * + * + * Get list of recoverable sql pools for workspace managed sql server. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 recoverable sql pools for workspace managed sql server as paginated response with {@link - * PagedIterable}. + * @return list of recoverable sql pools for workspace managed sql server as paginated response with + * {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String workspaceName, Context context); /** * Get recoverable sql pools for the server. - * - *

Get recoverable sql pools for workspace managed sql server. - * + * + * Get recoverable sql pools for workspace managed sql server. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName The name of the sql pool. @@ -55,14 +57,14 @@ public interface WorkspaceManagedSqlServerRecoverableSqlPools { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return recoverable sql pools for workspace managed sql server along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, String workspaceName, String sqlPoolName, Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, + Context context); /** * Get recoverable sql pools for the server. - * - *

Get recoverable sql pools for workspace managed sql server. - * + * + * Get recoverable sql pools for workspace managed sql server. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param sqlPoolName The name of the sql pool. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerSecurityAlertPolicies.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerSecurityAlertPolicies.java index c5cd3bfe8779..1b74b3726a7f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerSecurityAlertPolicies.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerSecurityAlertPolicies.java @@ -8,13 +8,15 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of WorkspaceManagedSqlServerSecurityAlertPolicies. */ +/** + * Resource collection API of WorkspaceManagedSqlServerSecurityAlertPolicies. + */ public interface WorkspaceManagedSqlServerSecurityAlertPolicies { /** * Get server's security alert policy. - * - *

Get a workspace managed sql server's security alert policy. - * + * + * Get a workspace managed sql server's security alert policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param securityAlertPolicyName The name of the security alert policy. @@ -24,17 +26,14 @@ public interface WorkspaceManagedSqlServerSecurityAlertPolicies { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a workspace managed sql server's security alert policy along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, - String workspaceName, - SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName, - Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName, Context context); /** * Get server's security alert policy. - * - *

Get a workspace managed sql server's security alert policy. - * + * + * Get a workspace managed sql server's security alert policy. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param securityAlertPolicyName The name of the security alert policy. @@ -43,45 +42,45 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a workspace managed sql server's security alert policy. */ - ServerSecurityAlertPolicy get( - String resourceGroupName, String workspaceName, SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName); + ServerSecurityAlertPolicy get(String resourceGroupName, String workspaceName, + SecurityAlertPolicyNameAutoGenerated securityAlertPolicyName); /** * Get server's threat detection policies. - * - *

Get workspace managed sql server's threat detection policies. - * + * + * Get workspace managed sql server's threat detection policies. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workspace managed sql server's threat detection policies as paginated response with {@link - * PagedIterable}. + * @return workspace managed sql server's threat detection policies as paginated response with + * {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String workspaceName); /** * Get server's threat detection policies. - * - *

Get workspace managed sql server's threat detection policies. - * + * + * Get workspace managed sql server's threat detection policies. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return workspace managed sql server's threat detection policies as paginated response with {@link - * PagedIterable}. + * @return workspace managed sql server's threat detection policies as paginated response with + * {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String workspaceName, Context context); /** * Get server's security alert policy. - * - *

Get a workspace managed sql server's security alert policy. - * + * + * Get a workspace managed sql server's security alert policy. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -92,9 +91,9 @@ ServerSecurityAlertPolicy get( /** * Get server's security alert policy. - * - *

Get a workspace managed sql server's security alert policy. - * + * + * Get a workspace managed sql server's security alert policy. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -106,7 +105,7 @@ ServerSecurityAlertPolicy get( /** * Begins definition for a new ServerSecurityAlertPolicy resource. - * + * * @param name resource name. * @return the first stage of the new ServerSecurityAlertPolicy definition. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerUsages.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerUsages.java index 590cb3bec85b..3c6d0d31c07f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerUsages.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerUsages.java @@ -7,36 +7,38 @@ import com.azure.core.http.rest.PagedIterable; import com.azure.core.util.Context; -/** Resource collection API of WorkspaceManagedSqlServerUsages. */ +/** + * Resource collection API of WorkspaceManagedSqlServerUsages. + */ public interface WorkspaceManagedSqlServerUsages { /** * Get list of usages metric for the server. - * - *

Get list of server usages metric for workspace managed sql server. - * + * + * Get list of server usages metric for workspace managed sql server. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 server usages metric for workspace managed sql server as paginated response with {@link - * PagedIterable}. + * @return list of server usages metric for workspace managed sql server as paginated response with + * {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String workspaceName); /** * Get list of usages metric for the server. - * - *

Get list of server usages metric for workspace managed sql server. - * + * + * Get list of server usages metric for workspace managed sql server. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 server usages metric for workspace managed sql server as paginated response with {@link - * PagedIterable}. + * @return list of server usages metric for workspace managed sql server as paginated response with + * {@link PagedIterable}. */ PagedIterable list(String resourceGroupName, String workspaceName, Context context); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerVulnerabilityAssessments.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerVulnerabilityAssessments.java index 2b268d6b9c61..3d27064aa1ca 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerVulnerabilityAssessments.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceManagedSqlServerVulnerabilityAssessments.java @@ -8,13 +8,15 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of WorkspaceManagedSqlServerVulnerabilityAssessments. */ +/** + * Resource collection API of WorkspaceManagedSqlServerVulnerabilityAssessments. + */ public interface WorkspaceManagedSqlServerVulnerabilityAssessments { /** * Get server's vulnerability assessment. - * - *

Get workspace managed sql server's vulnerability assessment. - * + * + * Get workspace managed sql server's vulnerability assessment. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. @@ -24,17 +26,14 @@ public interface WorkspaceManagedSqlServerVulnerabilityAssessments { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return workspace managed sql server's vulnerability assessment along with {@link Response}. */ - Response getWithResponse( - String resourceGroupName, - String workspaceName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - Context context); + Response getWithResponse(String resourceGroupName, String workspaceName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, Context context); /** * Get server's vulnerability assessment. - * - *

Get workspace managed sql server's vulnerability assessment. - * + * + * Get workspace managed sql server's vulnerability assessment. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. @@ -43,14 +42,14 @@ Response getWithResponse( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return workspace managed sql server's vulnerability assessment. */ - ServerVulnerabilityAssessment get( - String resourceGroupName, String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName); + ServerVulnerabilityAssessment get(String resourceGroupName, String workspaceName, + VulnerabilityAssessmentName vulnerabilityAssessmentName); /** * Remove server's vulnerability assessment. - * - *

Remove workspace managed sql server's vulnerability assessment. - * + * + * Remove workspace managed sql server's vulnerability assessment. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. @@ -60,17 +59,14 @@ ServerVulnerabilityAssessment get( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response}. */ - Response deleteWithResponse( - String resourceGroupName, - String workspaceName, - VulnerabilityAssessmentName vulnerabilityAssessmentName, - Context context); + Response deleteWithResponse(String resourceGroupName, String workspaceName, + VulnerabilityAssessmentName vulnerabilityAssessmentName, Context context); /** * Remove server's vulnerability assessment. - * - *

Remove workspace managed sql server's vulnerability assessment. - * + * + * Remove workspace managed sql server's vulnerability assessment. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param vulnerabilityAssessmentName The name of the vulnerability assessment. @@ -78,14 +74,14 @@ Response deleteWithResponse( * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ - void delete( - String resourceGroupName, String workspaceName, VulnerabilityAssessmentName vulnerabilityAssessmentName); + void delete(String resourceGroupName, String workspaceName, + VulnerabilityAssessmentName vulnerabilityAssessmentName); /** * Lists the vulnerability assessment policies associated with a server. - * - *

Lists the vulnerability assessment policies associated with a workspace managed sql server. - * + * + * Lists the vulnerability assessment policies associated with a workspace managed sql server. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -97,9 +93,9 @@ void delete( /** * Lists the vulnerability assessment policies associated with a server. - * - *

Lists the vulnerability assessment policies associated with a workspace managed sql server. - * + * + * Lists the vulnerability assessment policies associated with a workspace managed sql server. + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -112,9 +108,9 @@ void delete( /** * Get server's vulnerability assessment. - * - *

Get workspace managed sql server's vulnerability assessment. - * + * + * Get workspace managed sql server's vulnerability assessment. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -125,9 +121,9 @@ void delete( /** * Get server's vulnerability assessment. - * - *

Get workspace managed sql server's vulnerability assessment. - * + * + * Get workspace managed sql server's vulnerability assessment. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -139,9 +135,9 @@ void delete( /** * Remove server's vulnerability assessment. - * - *

Remove workspace managed sql server's vulnerability assessment. - * + * + * Remove workspace managed sql server's vulnerability assessment. + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -151,9 +147,9 @@ void delete( /** * Remove server's vulnerability assessment. - * - *

Remove workspace managed sql server's vulnerability assessment. - * + * + * Remove workspace managed sql server's vulnerability assessment. + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -165,7 +161,7 @@ void delete( /** * Begins definition for a new ServerVulnerabilityAssessment resource. - * + * * @param name resource name. * @return the first stage of the new ServerVulnerabilityAssessment definition. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspacePatchInfo.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspacePatchInfo.java index aa03d280c1bd..06fd4c6be02d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspacePatchInfo.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspacePatchInfo.java @@ -10,7 +10,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; -/** Workspace patch details. */ +/** + * Workspace patch details. + */ @Fluent public final class WorkspacePatchInfo { /* @@ -32,13 +34,15 @@ public final class WorkspacePatchInfo { @JsonProperty(value = "properties") private WorkspacePatchProperties innerProperties; - /** Creates an instance of WorkspacePatchInfo class. */ + /** + * Creates an instance of WorkspacePatchInfo class. + */ public WorkspacePatchInfo() { } /** * Get the tags property: Resource tags. - * + * * @return the tags value. */ public Map tags() { @@ -47,7 +51,7 @@ public Map tags() { /** * Set the tags property: Resource tags. - * + * * @param tags the tags value to set. * @return the WorkspacePatchInfo object itself. */ @@ -58,7 +62,7 @@ public WorkspacePatchInfo withTags(Map tags) { /** * Get the identity property: The identity of the workspace. - * + * * @return the identity value. */ public ManagedIdentity identity() { @@ -67,7 +71,7 @@ public ManagedIdentity identity() { /** * Set the identity property: The identity of the workspace. - * + * * @param identity the identity value to set. * @return the WorkspacePatchInfo object itself. */ @@ -78,7 +82,7 @@ public WorkspacePatchInfo withIdentity(ManagedIdentity identity) { /** * Get the innerProperties property: Workspace patch properties. - * + * * @return the innerProperties value. */ private WorkspacePatchProperties innerProperties() { @@ -87,7 +91,7 @@ private WorkspacePatchProperties innerProperties() { /** * Get the sqlAdministratorLoginPassword property: SQL administrator login password. - * + * * @return the sqlAdministratorLoginPassword value. */ public String sqlAdministratorLoginPassword() { @@ -96,7 +100,7 @@ public String sqlAdministratorLoginPassword() { /** * Set the sqlAdministratorLoginPassword property: SQL administrator login password. - * + * * @param sqlAdministratorLoginPassword the sqlAdministratorLoginPassword value to set. * @return the WorkspacePatchInfo object itself. */ @@ -110,7 +114,7 @@ public WorkspacePatchInfo withSqlAdministratorLoginPassword(String sqlAdministra /** * Get the managedVirtualNetworkSettings property: Managed Virtual Network Settings. - * + * * @return the managedVirtualNetworkSettings value. */ public ManagedVirtualNetworkSettings managedVirtualNetworkSettings() { @@ -119,12 +123,12 @@ public ManagedVirtualNetworkSettings managedVirtualNetworkSettings() { /** * Set the managedVirtualNetworkSettings property: Managed Virtual Network Settings. - * + * * @param managedVirtualNetworkSettings the managedVirtualNetworkSettings value to set. * @return the WorkspacePatchInfo object itself. */ - public WorkspacePatchInfo withManagedVirtualNetworkSettings( - ManagedVirtualNetworkSettings managedVirtualNetworkSettings) { + public WorkspacePatchInfo + withManagedVirtualNetworkSettings(ManagedVirtualNetworkSettings managedVirtualNetworkSettings) { if (this.innerProperties() == null) { this.innerProperties = new WorkspacePatchProperties(); } @@ -134,7 +138,7 @@ public WorkspacePatchInfo withManagedVirtualNetworkSettings( /** * Get the workspaceRepositoryConfiguration property: Git integration settings. - * + * * @return the workspaceRepositoryConfiguration value. */ public WorkspaceRepositoryConfiguration workspaceRepositoryConfiguration() { @@ -143,12 +147,12 @@ public WorkspaceRepositoryConfiguration workspaceRepositoryConfiguration() { /** * Set the workspaceRepositoryConfiguration property: Git integration settings. - * + * * @param workspaceRepositoryConfiguration the workspaceRepositoryConfiguration value to set. * @return the WorkspacePatchInfo object itself. */ - public WorkspacePatchInfo withWorkspaceRepositoryConfiguration( - WorkspaceRepositoryConfiguration workspaceRepositoryConfiguration) { + public WorkspacePatchInfo + withWorkspaceRepositoryConfiguration(WorkspaceRepositoryConfiguration workspaceRepositoryConfiguration) { if (this.innerProperties() == null) { this.innerProperties = new WorkspacePatchProperties(); } @@ -158,7 +162,7 @@ public WorkspacePatchInfo withWorkspaceRepositoryConfiguration( /** * Get the purviewConfiguration property: Purview Configuration. - * + * * @return the purviewConfiguration value. */ public PurviewConfiguration purviewConfiguration() { @@ -167,7 +171,7 @@ public PurviewConfiguration purviewConfiguration() { /** * Set the purviewConfiguration property: Purview Configuration. - * + * * @param purviewConfiguration the purviewConfiguration value to set. * @return the WorkspacePatchInfo object itself. */ @@ -181,7 +185,7 @@ public WorkspacePatchInfo withPurviewConfiguration(PurviewConfiguration purviewC /** * Get the provisioningState property: Resource provisioning state. - * + * * @return the provisioningState value. */ public String provisioningState() { @@ -190,7 +194,7 @@ public String provisioningState() { /** * Get the encryption property: The encryption details of the workspace. - * + * * @return the encryption value. */ public EncryptionDetails encryption() { @@ -199,7 +203,7 @@ public EncryptionDetails encryption() { /** * Set the encryption property: The encryption details of the workspace. - * + * * @param encryption the encryption value to set. * @return the WorkspacePatchInfo object itself. */ @@ -213,7 +217,7 @@ public WorkspacePatchInfo withEncryption(EncryptionDetails encryption) { /** * Get the publicNetworkAccess property: Enable or Disable public network access to workspace. - * + * * @return the publicNetworkAccess value. */ public WorkspacePublicNetworkAccess publicNetworkAccess() { @@ -222,7 +226,7 @@ public WorkspacePublicNetworkAccess publicNetworkAccess() { /** * Set the publicNetworkAccess property: Enable or Disable public network access to workspace. - * + * * @param publicNetworkAccess the publicNetworkAccess value to set. * @return the WorkspacePatchInfo object itself. */ @@ -236,7 +240,7 @@ public WorkspacePatchInfo withPublicNetworkAccess(WorkspacePublicNetworkAccess p /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspacePublicNetworkAccess.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspacePublicNetworkAccess.java index 5bedfedd9790..6ec9e554b899 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspacePublicNetworkAccess.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspacePublicNetworkAccess.java @@ -8,17 +8,23 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Enable or Disable public network access to workspace. */ +/** + * Enable or Disable public network access to workspace. + */ public final class WorkspacePublicNetworkAccess extends ExpandableStringEnum { - /** Static value Enabled for WorkspacePublicNetworkAccess. */ + /** + * Static value Enabled for WorkspacePublicNetworkAccess. + */ public static final WorkspacePublicNetworkAccess ENABLED = fromString("Enabled"); - /** Static value Disabled for WorkspacePublicNetworkAccess. */ + /** + * Static value Disabled for WorkspacePublicNetworkAccess. + */ public static final WorkspacePublicNetworkAccess DISABLED = fromString("Disabled"); /** * Creates a new instance of WorkspacePublicNetworkAccess value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -27,7 +33,7 @@ public WorkspacePublicNetworkAccess() { /** * Creates or finds a WorkspacePublicNetworkAccess from its string representation. - * + * * @param name a name to look for. * @return the corresponding WorkspacePublicNetworkAccess. */ @@ -38,7 +44,7 @@ public static WorkspacePublicNetworkAccess fromString(String name) { /** * Gets known WorkspacePublicNetworkAccess values. - * + * * @return known WorkspacePublicNetworkAccess values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceRepositoryConfiguration.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceRepositoryConfiguration.java index 66a6f5fc0e60..7e8c7ce86976 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceRepositoryConfiguration.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceRepositoryConfiguration.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.UUID; -/** Git integration settings. */ +/** + * Git integration settings. + */ @Fluent public final class WorkspaceRepositoryConfiguration { /* @@ -18,7 +20,7 @@ public final class WorkspaceRepositoryConfiguration { private String type; /* - * GitHub Enterprise host name. For example: https://github.mydomain.com + * GitHub Enterprise host name. For example: `https://github.mydomain.com` */ @JsonProperty(value = "hostName") private String hostname; @@ -65,14 +67,16 @@ public final class WorkspaceRepositoryConfiguration { @JsonProperty(value = "tenantId") private UUID tenantId; - /** Creates an instance of WorkspaceRepositoryConfiguration class. */ + /** + * Creates an instance of WorkspaceRepositoryConfiguration class. + */ public WorkspaceRepositoryConfiguration() { } /** * Get the type property: Type of workspace repositoryID configuration. Example WorkspaceVSTSConfiguration, * WorkspaceGitHubConfiguration. - * + * * @return the type value. */ public String type() { @@ -82,7 +86,7 @@ public String type() { /** * Set the type property: Type of workspace repositoryID configuration. Example WorkspaceVSTSConfiguration, * WorkspaceGitHubConfiguration. - * + * * @param type the type value to set. * @return the WorkspaceRepositoryConfiguration object itself. */ @@ -92,8 +96,8 @@ public WorkspaceRepositoryConfiguration withType(String type) { } /** - * Get the hostname property: GitHub Enterprise host name. For example: https://github.mydomain.com. - * + * Get the hostname property: GitHub Enterprise host name. For example: `https://github.mydomain.com`. + * * @return the hostname value. */ public String hostname() { @@ -101,8 +105,8 @@ public String hostname() { } /** - * Set the hostname property: GitHub Enterprise host name. For example: https://github.mydomain.com. - * + * Set the hostname property: GitHub Enterprise host name. For example: `https://github.mydomain.com`. + * * @param hostname the hostname value to set. * @return the WorkspaceRepositoryConfiguration object itself. */ @@ -113,7 +117,7 @@ public WorkspaceRepositoryConfiguration withHostname(String hostname) { /** * Get the accountName property: Account name. - * + * * @return the accountName value. */ public String accountName() { @@ -122,7 +126,7 @@ public String accountName() { /** * Set the accountName property: Account name. - * + * * @param accountName the accountName value to set. * @return the WorkspaceRepositoryConfiguration object itself. */ @@ -133,7 +137,7 @@ public WorkspaceRepositoryConfiguration withAccountName(String accountName) { /** * Get the projectName property: VSTS project name. - * + * * @return the projectName value. */ public String projectName() { @@ -142,7 +146,7 @@ public String projectName() { /** * Set the projectName property: VSTS project name. - * + * * @param projectName the projectName value to set. * @return the WorkspaceRepositoryConfiguration object itself. */ @@ -153,7 +157,7 @@ public WorkspaceRepositoryConfiguration withProjectName(String projectName) { /** * Get the repositoryName property: Repository name. - * + * * @return the repositoryName value. */ public String repositoryName() { @@ -162,7 +166,7 @@ public String repositoryName() { /** * Set the repositoryName property: Repository name. - * + * * @param repositoryName the repositoryName value to set. * @return the WorkspaceRepositoryConfiguration object itself. */ @@ -173,7 +177,7 @@ public WorkspaceRepositoryConfiguration withRepositoryName(String repositoryName /** * Get the collaborationBranch property: Collaboration branch. - * + * * @return the collaborationBranch value. */ public String collaborationBranch() { @@ -182,7 +186,7 @@ public String collaborationBranch() { /** * Set the collaborationBranch property: Collaboration branch. - * + * * @param collaborationBranch the collaborationBranch value to set. * @return the WorkspaceRepositoryConfiguration object itself. */ @@ -193,7 +197,7 @@ public WorkspaceRepositoryConfiguration withCollaborationBranch(String collabora /** * Get the rootFolder property: Root folder to use in the repository. - * + * * @return the rootFolder value. */ public String rootFolder() { @@ -202,7 +206,7 @@ public String rootFolder() { /** * Set the rootFolder property: Root folder to use in the repository. - * + * * @param rootFolder the rootFolder value to set. * @return the WorkspaceRepositoryConfiguration object itself. */ @@ -213,7 +217,7 @@ public WorkspaceRepositoryConfiguration withRootFolder(String rootFolder) { /** * Get the lastCommitId property: The last commit ID. - * + * * @return the lastCommitId value. */ public String lastCommitId() { @@ -222,7 +226,7 @@ public String lastCommitId() { /** * Set the lastCommitId property: The last commit ID. - * + * * @param lastCommitId the lastCommitId value to set. * @return the WorkspaceRepositoryConfiguration object itself. */ @@ -233,7 +237,7 @@ public WorkspaceRepositoryConfiguration withLastCommitId(String lastCommitId) { /** * Get the tenantId property: The VSTS tenant ID. - * + * * @return the tenantId value. */ public UUID tenantId() { @@ -242,7 +246,7 @@ public UUID tenantId() { /** * Set the tenantId property: The VSTS tenant ID. - * + * * @param tenantId the tenantId value to set. * @return the WorkspaceRepositoryConfiguration object itself. */ @@ -253,7 +257,7 @@ public WorkspaceRepositoryConfiguration withTenantId(UUID tenantId) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceSqlAadAdmins.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceSqlAadAdmins.java index b1f5ac2dfd81..712badd6f8a6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceSqlAadAdmins.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceSqlAadAdmins.java @@ -8,11 +8,13 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.synapse.fluent.models.WorkspaceAadAdminInfoInner; -/** Resource collection API of WorkspaceSqlAadAdmins. */ +/** + * Resource collection API of WorkspaceSqlAadAdmins. + */ public interface WorkspaceSqlAadAdmins { /** * Gets a workspace SQL active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -25,7 +27,7 @@ public interface WorkspaceSqlAadAdmins { /** * Gets a workspace SQL active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -37,7 +39,7 @@ public interface WorkspaceSqlAadAdmins { /** * Creates or updates a workspace SQL active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param aadAdminInfo Workspace active directory administrator properties. @@ -46,12 +48,12 @@ public interface WorkspaceSqlAadAdmins { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return workspace active directory administrator. */ - WorkspaceAadAdminInfo createOrUpdate( - String resourceGroupName, String workspaceName, WorkspaceAadAdminInfoInner aadAdminInfo); + WorkspaceAadAdminInfo createOrUpdate(String resourceGroupName, String workspaceName, + WorkspaceAadAdminInfoInner aadAdminInfo); /** * Creates or updates a workspace SQL active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param aadAdminInfo Workspace active directory administrator properties. @@ -61,12 +63,12 @@ WorkspaceAadAdminInfo createOrUpdate( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return workspace active directory administrator. */ - WorkspaceAadAdminInfo createOrUpdate( - String resourceGroupName, String workspaceName, WorkspaceAadAdminInfoInner aadAdminInfo, Context context); + WorkspaceAadAdminInfo createOrUpdate(String resourceGroupName, String workspaceName, + WorkspaceAadAdminInfoInner aadAdminInfo, Context context); /** * Deletes a workspace SQL active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -77,7 +79,7 @@ WorkspaceAadAdminInfo createOrUpdate( /** * Deletes a workspace SQL active directory admin. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceStatus.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceStatus.java index 51500d359600..c20d5fbb92ca 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceStatus.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceStatus.java @@ -8,20 +8,28 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** status of Start Integrationruntimes. */ +/** + * status of Start Integrationruntimes. + */ public final class WorkspaceStatus extends ExpandableStringEnum { - /** Static value InProgress for WorkspaceStatus. */ + /** + * Static value InProgress for WorkspaceStatus. + */ public static final WorkspaceStatus IN_PROGRESS = fromString("InProgress"); - /** Static value Succeeded for WorkspaceStatus. */ + /** + * Static value Succeeded for WorkspaceStatus. + */ public static final WorkspaceStatus SUCCEEDED = fromString("Succeeded"); - /** Static value Failed for WorkspaceStatus. */ + /** + * Static value Failed for WorkspaceStatus. + */ public static final WorkspaceStatus FAILED = fromString("Failed"); /** * Creates a new instance of WorkspaceStatus value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -30,7 +38,7 @@ public WorkspaceStatus() { /** * Creates or finds a WorkspaceStatus from its string representation. - * + * * @param name a name to look for. * @return the corresponding WorkspaceStatus. */ @@ -41,7 +49,7 @@ public static WorkspaceStatus fromString(String name) { /** * Gets known WorkspaceStatus values. - * + * * @return known WorkspaceStatus values. */ public static Collection values() { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceUsageQuotaResponse.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceUsageQuotaResponse.java new file mode 100644 index 000000000000..6701157b1499 --- /dev/null +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/WorkspaceUsageQuotaResponse.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.synapse.models; + +import com.azure.resourcemanager.synapse.fluent.models.WorkspaceUsageQuotaResponseInner; + +/** + * An immutable client-side representation of WorkspaceUsageQuotaResponse. + */ +public interface WorkspaceUsageQuotaResponse { + /** + * Gets the name property: User-readable name of the metric. + * + * @return the name value. + */ + String name(); + + /** + * Gets the currentValue property: Current value of the metric. + * + * @return the currentValue value. + */ + Double currentValue(); + + /** + * Gets the limit property: Boundary value of the metric. + * + * @return the limit value. + */ + Double limit(); + + /** + * Gets the unit property: Unit of the metric. + * + * @return the unit value. + */ + String unit(); + + /** + * Gets the inner com.azure.resourcemanager.synapse.fluent.models.WorkspaceUsageQuotaResponseInner object. + * + * @return the inner object. + */ + WorkspaceUsageQuotaResponseInner innerModel(); +} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Workspaces.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Workspaces.java index 046309be9591..b2fc96f2b1a1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Workspaces.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/Workspaces.java @@ -8,11 +8,13 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -/** Resource collection API of Workspaces. */ +/** + * Resource collection API of Workspaces. + */ public interface Workspaces { /** * Returns a list of workspaces in a resource group. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -23,7 +25,7 @@ public interface Workspaces { /** * Returns a list of workspaces in a resource group. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -35,7 +37,7 @@ public interface Workspaces { /** * Gets a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -48,7 +50,7 @@ public interface Workspaces { /** * Gets a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -60,7 +62,7 @@ public interface Workspaces { /** * Deletes a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -72,7 +74,7 @@ public interface Workspaces { /** * Deletes a workspace. - * + * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param context The context to associate with this operation. @@ -85,7 +87,7 @@ public interface Workspaces { /** * Returns a list of workspaces 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 list of workspaces as paginated response with {@link PagedIterable}. @@ -94,7 +96,7 @@ public interface Workspaces { /** * Returns a list of workspaces 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. @@ -105,7 +107,7 @@ public interface Workspaces { /** * Gets a workspace. - * + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -116,7 +118,7 @@ public interface Workspaces { /** * Gets a workspace. - * + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -128,7 +130,7 @@ public interface Workspaces { /** * Deletes a workspace. - * + * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -139,7 +141,7 @@ public interface Workspaces { /** * Deletes a workspace. - * + * * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -151,7 +153,7 @@ public interface Workspaces { /** * Begins definition for a new Workspace resource. - * + * * @param name resource name. * @return the first stage of the new Workspace definition. */ diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/package-info.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/package-info.java index 4eafe0bae7f3..cc95f523052f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/package-info.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/package-info.java @@ -2,5 +2,8 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -/** Package containing the data models for SynapseManagementClient. Azure Synapse Analytics Management Client. */ +/** + * Package containing the data models for SynapseManagementClient. + * Azure Synapse Analytics Management Client. + */ package com.azure.resourcemanager.synapse.models; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/package-info.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/package-info.java index 430f4941e7a1..b3e2d1ac42d0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/package-info.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/package-info.java @@ -2,5 +2,8 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -/** Package containing the classes for SynapseManagementClient. Azure Synapse Analytics Management Client. */ +/** + * Package containing the classes for SynapseManagementClient. + * Azure Synapse Analytics Management Client. + */ package com.azure.resourcemanager.synapse; diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/module-info.java b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/module-info.java index c59ff95ec16d..6d58bd15efa7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/main/java/module-info.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/java/module-info.java @@ -4,16 +4,10 @@ module com.azure.resourcemanager.synapse { requires transitive com.azure.core.management; - exports com.azure.resourcemanager.synapse; exports com.azure.resourcemanager.synapse.fluent; exports com.azure.resourcemanager.synapse.fluent.models; exports com.azure.resourcemanager.synapse.models; - - opens com.azure.resourcemanager.synapse.fluent.models to - com.azure.core, - com.fasterxml.jackson.databind; - opens com.azure.resourcemanager.synapse.models to - com.azure.core, - com.fasterxml.jackson.databind; + opens com.azure.resourcemanager.synapse.fluent.models to com.azure.core, com.fasterxml.jackson.databind; + opens com.azure.resourcemanager.synapse.models to com.azure.core, com.fasterxml.jackson.databind; } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-synapse/proxy-config.json b/sdk/synapse/azure-resourcemanager-synapse/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-synapse/proxy-config.json new file mode 100644 index 000000000000..1be0f5e1a1af --- /dev/null +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-synapse/proxy-config.json @@ -0,0 +1 @@ +[ [ "com.azure.resourcemanager.synapse.implementation.AzureADOnlyAuthenticationsClientImpl$AzureADOnlyAuthenticationsService" ], [ "com.azure.resourcemanager.synapse.implementation.OperationsClientImpl$OperationsService" ], [ "com.azure.resourcemanager.synapse.implementation.IpFirewallRulesClientImpl$IpFirewallRulesService" ], [ "com.azure.resourcemanager.synapse.implementation.KeysClientImpl$KeysService" ], [ "com.azure.resourcemanager.synapse.implementation.PrivateEndpointConnectionsClientImpl$PrivateEndpointConnectionsService" ], [ "com.azure.resourcemanager.synapse.implementation.PrivateLinkResourcesOperationsClientImpl$PrivateLinkResourcesOperationsService" ], [ "com.azure.resourcemanager.synapse.implementation.PrivateLinkHubPrivateLinkResourcesClientImpl$PrivateLinkHubPrivateLinkResourcesService" ], [ "com.azure.resourcemanager.synapse.implementation.PrivateLinkHubsClientImpl$PrivateLinkHubsService" ], [ "com.azure.resourcemanager.synapse.implementation.PrivateEndpointConnectionsPrivateLinkHubsClientImpl$PrivateEndpointConnectionsPrivateLinkHubsService" ], [ "com.azure.resourcemanager.synapse.implementation.SqlPoolsClientImpl$SqlPoolsService" ], [ "com.azure.resourcemanager.synapse.implementation.SqlPoolMetadataSyncConfigsClientImpl$SqlPoolMetadataSyncConfigsService" ], [ "com.azure.resourcemanager.synapse.implementation.SqlPoolOperationResultsClientImpl$SqlPoolOperationResultsService" ], [ "com.azure.resourcemanager.synapse.implementation.SqlPoolGeoBackupPoliciesClientImpl$SqlPoolGeoBackupPoliciesService" ], [ "com.azure.resourcemanager.synapse.implementation.SqlPoolDataWarehouseUserActivitiesClientImpl$SqlPoolDataWarehouseUserActivitiesService" ], [ "com.azure.resourcemanager.synapse.implementation.SqlPoolRestorePointsClientImpl$SqlPoolRestorePointsService" ], [ "com.azure.resourcemanager.synapse.implementation.SqlPoolReplicationLinksClientImpl$SqlPoolReplicationLinksService" ], [ "com.azure.resourcemanager.synapse.implementation.SqlPoolMaintenanceWindowsClientImpl$SqlPoolMaintenanceWindowsService" ], [ "com.azure.resourcemanager.synapse.implementation.SqlPoolMaintenanceWindowOptionsClientImpl$SqlPoolMaintenanceWindowOptionsService" ], [ "com.azure.resourcemanager.synapse.implementation.SqlPoolTransparentDataEncryptionsClientImpl$SqlPoolTransparentDataEncryptionsService" ], [ "com.azure.resourcemanager.synapse.implementation.SqlPoolBlobAuditingPoliciesClientImpl$SqlPoolBlobAuditingPoliciesService" ], [ "com.azure.resourcemanager.synapse.implementation.SqlPoolOperationsClientImpl$SqlPoolOperationsService" ], [ "com.azure.resourcemanager.synapse.implementation.SqlPoolUsagesClientImpl$SqlPoolUsagesService" ], [ "com.azure.resourcemanager.synapse.implementation.SqlPoolSensitivityLabelsClientImpl$SqlPoolSensitivityLabelsService" ], [ "com.azure.resourcemanager.synapse.implementation.SqlPoolRecommendedSensitivityLabelsClientImpl$SqlPoolRecommendedSensitivityLabelsService" ], [ "com.azure.resourcemanager.synapse.implementation.SqlPoolSchemasClientImpl$SqlPoolSchemasService" ], [ "com.azure.resourcemanager.synapse.implementation.SqlPoolTablesClientImpl$SqlPoolTablesService" ], [ "com.azure.resourcemanager.synapse.implementation.SqlPoolTableColumnsClientImpl$SqlPoolTableColumnsService" ], [ "com.azure.resourcemanager.synapse.implementation.SqlPoolConnectionPoliciesClientImpl$SqlPoolConnectionPoliciesService" ], [ "com.azure.resourcemanager.synapse.implementation.SqlPoolVulnerabilityAssessmentsClientImpl$SqlPoolVulnerabilityAssessmentsService" ], [ "com.azure.resourcemanager.synapse.implementation.SqlPoolVulnerabilityAssessmentScansClientImpl$SqlPoolVulnerabilityAssessmentScansService" ], [ "com.azure.resourcemanager.synapse.implementation.SqlPoolSecurityAlertPoliciesClientImpl$SqlPoolSecurityAlertPoliciesService" ], [ "com.azure.resourcemanager.synapse.implementation.SqlPoolVulnerabilityAssessmentRuleBaselinesClientImpl$SqlPoolVulnerabilityAssessmentRuleBaselinesService" ], [ "com.azure.resourcemanager.synapse.implementation.ExtendedSqlPoolBlobAuditingPoliciesClientImpl$ExtendedSqlPoolBlobAuditingPoliciesService" ], [ "com.azure.resourcemanager.synapse.implementation.DataMaskingPoliciesClientImpl$DataMaskingPoliciesService" ], [ "com.azure.resourcemanager.synapse.implementation.DataMaskingRulesClientImpl$DataMaskingRulesService" ], [ "com.azure.resourcemanager.synapse.implementation.SqlPoolColumnsClientImpl$SqlPoolColumnsService" ], [ "com.azure.resourcemanager.synapse.implementation.SqlPoolWorkloadGroupsClientImpl$SqlPoolWorkloadGroupsService" ], [ "com.azure.resourcemanager.synapse.implementation.SqlPoolWorkloadClassifiersClientImpl$SqlPoolWorkloadClassifiersService" ], [ "com.azure.resourcemanager.synapse.implementation.WorkspaceManagedSqlServerBlobAuditingPoliciesClientImpl$WorkspaceManagedSqlServerBlobAuditingPoliciesService" ], [ "com.azure.resourcemanager.synapse.implementation.WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesClientImpl$WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesService" ], [ "com.azure.resourcemanager.synapse.implementation.WorkspaceManagedSqlServerSecurityAlertPoliciesClientImpl$WorkspaceManagedSqlServerSecurityAlertPoliciesService" ], [ "com.azure.resourcemanager.synapse.implementation.WorkspaceManagedSqlServerVulnerabilityAssessmentsClientImpl$WorkspaceManagedSqlServerVulnerabilityAssessmentsService" ], [ "com.azure.resourcemanager.synapse.implementation.WorkspaceManagedSqlServerEncryptionProtectorsClientImpl$WorkspaceManagedSqlServerEncryptionProtectorsService" ], [ "com.azure.resourcemanager.synapse.implementation.WorkspaceManagedSqlServerUsagesClientImpl$WorkspaceManagedSqlServerUsagesService" ], [ "com.azure.resourcemanager.synapse.implementation.WorkspaceManagedSqlServerRecoverableSqlPoolsClientImpl$WorkspaceManagedSqlServerRecoverableSqlPoolsService" ], [ "com.azure.resourcemanager.synapse.implementation.WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsClientImpl$WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsService" ], [ "com.azure.resourcemanager.synapse.implementation.WorkspacesClientImpl$WorkspacesService" ], [ "com.azure.resourcemanager.synapse.implementation.WorkspaceAadAdminsClientImpl$WorkspaceAadAdminsService" ], [ "com.azure.resourcemanager.synapse.implementation.WorkspaceSqlAadAdminsClientImpl$WorkspaceSqlAadAdminsService" ], [ "com.azure.resourcemanager.synapse.implementation.WorkspaceManagedIdentitySqlControlSettingsClientImpl$WorkspaceManagedIdentitySqlControlSettingsService" ], [ "com.azure.resourcemanager.synapse.implementation.RestorableDroppedSqlPoolsClientImpl$RestorableDroppedSqlPoolsService" ], [ "com.azure.resourcemanager.synapse.implementation.BigDataPoolsClientImpl$BigDataPoolsService" ], [ "com.azure.resourcemanager.synapse.implementation.LibrariesClientImpl$LibrariesService" ], [ "com.azure.resourcemanager.synapse.implementation.LibrariesOperationsClientImpl$LibrariesOperationsService" ], [ "com.azure.resourcemanager.synapse.implementation.IntegrationRuntimesClientImpl$IntegrationRuntimesService" ], [ "com.azure.resourcemanager.synapse.implementation.IntegrationRuntimeNodeIpAddressOperationsClientImpl$IntegrationRuntimeNodeIpAddressOperationsService" ], [ "com.azure.resourcemanager.synapse.implementation.IntegrationRuntimeObjectMetadatasClientImpl$IntegrationRuntimeObjectMetadatasService" ], [ "com.azure.resourcemanager.synapse.implementation.IntegrationRuntimeNodesClientImpl$IntegrationRuntimeNodesService" ], [ "com.azure.resourcemanager.synapse.implementation.IntegrationRuntimeCredentialsClientImpl$IntegrationRuntimeCredentialsService" ], [ "com.azure.resourcemanager.synapse.implementation.IntegrationRuntimeConnectionInfosClientImpl$IntegrationRuntimeConnectionInfosService" ], [ "com.azure.resourcemanager.synapse.implementation.IntegrationRuntimeAuthKeysOperationsClientImpl$IntegrationRuntimeAuthKeysOperationsService" ], [ "com.azure.resourcemanager.synapse.implementation.IntegrationRuntimeMonitoringDatasClientImpl$IntegrationRuntimeMonitoringDatasService" ], [ "com.azure.resourcemanager.synapse.implementation.IntegrationRuntimeStatusOperationsClientImpl$IntegrationRuntimeStatusOperationsService" ], [ "com.azure.resourcemanager.synapse.implementation.GetsClientImpl$GetsService" ], [ "com.azure.resourcemanager.synapse.implementation.SparkConfigurationsClientImpl$SparkConfigurationsService" ], [ "com.azure.resourcemanager.synapse.implementation.SparkConfigurationsOperationsClientImpl$SparkConfigurationsOperationsService" ], [ "com.azure.resourcemanager.synapse.implementation.KustoOperationsClientImpl$KustoOperationsService" ], [ "com.azure.resourcemanager.synapse.implementation.KustoPoolsClientImpl$KustoPoolsService" ], [ "com.azure.resourcemanager.synapse.implementation.KustoPoolChildResourcesClientImpl$KustoPoolChildResourcesService" ], [ "com.azure.resourcemanager.synapse.implementation.KustoPoolAttachedDatabaseConfigurationsClientImpl$KustoPoolAttachedDatabaseConfigurationsService" ], [ "com.azure.resourcemanager.synapse.implementation.KustoPoolDatabasesClientImpl$KustoPoolDatabasesService" ], [ "com.azure.resourcemanager.synapse.implementation.KustoPoolDataConnectionsClientImpl$KustoPoolDataConnectionsService" ], [ "com.azure.resourcemanager.synapse.implementation.KustoPoolPrincipalAssignmentsClientImpl$KustoPoolPrincipalAssignmentsService" ], [ "com.azure.resourcemanager.synapse.implementation.KustoPoolDatabasePrincipalAssignmentsClientImpl$KustoPoolDatabasePrincipalAssignmentsService" ], [ "com.azure.resourcemanager.synapse.implementation.KustoPoolPrivateLinkResourcesOperationsClientImpl$KustoPoolPrivateLinkResourcesOperationsService" ] ] \ No newline at end of file diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-synapse/reflect-config.json b/sdk/synapse/azure-resourcemanager-synapse/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-synapse/reflect-config.json new file mode 100644 index 000000000000..c5427178e84e --- /dev/null +++ b/sdk/synapse/azure-resourcemanager-synapse/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-synapse/reflect-config.json @@ -0,0 +1,1936 @@ +[ { + "name" : "com.azure.resourcemanager.synapse.fluent.models.AzureADOnlyAuthenticationInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.AzureADOnlyAuthenticationProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.AzureADOnlyAuthenticationListResult", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.CheckNameAvailabilityRequest", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.CheckNameAvailabilityResponseInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.IpFirewallRuleInfoListResult", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.IpFirewallRuleInfoInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.IpFirewallRuleProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.ReplaceAllIpFirewallRulesRequest", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.ReplaceAllFirewallRulesOperationResponseInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.KeyInfoListResult", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.KeyInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.KeyProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.AvailableRpOperationInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.AvailableRpOperationDisplayInfo", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.OperationMetaPropertyInfo", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.OperationMetaServiceSpecification", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.OperationMetaMetricSpecification", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.OperationMetaMetricDimensionSpecification", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.OperationMetaLogSpecification", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.OperationResourceInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.PrivateEndpointConnectionInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.PrivateEndpointConnectionProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.PrivateEndpoint", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.PrivateLinkServiceConnectionState", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.PrivateEndpointConnectionList", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.PrivateLinkResourceListResult", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.PrivateLinkResourceInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.PrivateLinkResourceProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.PrivateLinkHubInfoListResult", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.PrivateLinkHubInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.PrivateLinkHubProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.PrivateEndpointConnectionForPrivateLinkHubBasic", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.PrivateLinkHubPatchInfo", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.PrivateEndpointConnectionForPrivateLinkHubInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.SqlPoolInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.Sku", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.SqlPoolResourceProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.SqlPoolPatchInfo", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.SqlPoolInfoListResult", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.MetadataSyncConfigInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.MetadataSyncConfigProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.GeoBackupPolicyListResult", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.GeoBackupPolicyInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.GeoBackupPolicyProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.DataWarehouseUserActivitiesInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.DataWarehouseUserActivitiesProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.RestorePointListResult", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.RestorePointInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.RestorePointProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.CreateSqlPoolRestorePointDefinition", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.ReplicationLinkListResult", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.ReplicationLinkInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.ReplicationLinkProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.MaintenanceWindowsInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.MaintenanceWindowsProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.MaintenanceWindowTimeRange", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.MaintenanceWindowOptionsInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.MaintenanceWindowOptionsProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.TransparentDataEncryptionInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.TransparentDataEncryptionProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.TransparentDataEncryptionListResult", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.SqlPoolBlobAuditingPolicyInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.SqlPoolBlobAuditingPolicyProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.SqlPoolBlobAuditingPolicySqlPoolOperationListResult", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.SqlPoolOperationInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.SqlPoolOperationProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.SqlPoolUsageListResult", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.SqlPoolUsageInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.SensitivityLabelListResult", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.SensitivityLabelInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.SensitivityLabelProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.SensitivityLabelUpdateList", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.SensitivityLabelUpdateInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.SensitivityLabelUpdatePropertiesInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.RecommendedSensitivityLabelUpdateList", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.RecommendedSensitivityLabelUpdate", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.RecommendedSensitivityLabelUpdateProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.SqlPoolSchemaListResult", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.SqlPoolSchemaInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.SqlPoolTableListResult", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.SqlPoolTableInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.SqlPoolColumnListResult", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.SqlPoolColumnInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.SqlPoolColumnProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.SqlPoolConnectionPolicyInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.SqlPoolConnectionPolicyProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.SqlPoolVulnerabilityAssessmentListResult", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.SqlPoolVulnerabilityAssessmentInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.SqlPoolVulnerabilityAssessmentProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentRecurringScansProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentScanRecordListResult", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.VulnerabilityAssessmentScanRecordInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.VulnerabilityAssessmentScanRecordProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentScanError", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.SqlPoolVulnerabilityAssessmentScansExportInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.SqlPoolVulnerabilityAssessmentScanExportProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.ListSqlPoolSecurityAlertPolicies", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.SqlPoolSecurityAlertPolicyInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.SecurityAlertPolicyProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.SqlPoolVulnerabilityAssessmentRuleBaselineInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.SqlPoolVulnerabilityAssessmentRuleBaselineProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.SqlPoolVulnerabilityAssessmentRuleBaselineItem", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.ExtendedSqlPoolBlobAuditingPolicyInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.ExtendedSqlPoolBlobAuditingPolicyProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.ExtendedSqlPoolBlobAuditingPolicyListResult", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.DataMaskingPolicyInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.DataMaskingPolicyProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.DataMaskingRuleInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.DataMaskingRuleProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.DataMaskingRuleListResult", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.SqlPoolBlobAuditingPolicyListResult", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.WorkloadGroupInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.WorkloadGroupProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.WorkloadGroupListResult", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.WorkloadClassifierInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.WorkloadClassifierProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.WorkloadClassifierListResult", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.ServerBlobAuditingPolicyInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.ServerBlobAuditingPolicyProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.ServerBlobAuditingPolicyListResult", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.ExtendedServerBlobAuditingPolicyInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.ExtendedServerBlobAuditingPolicyProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.ExtendedServerBlobAuditingPolicyListResult", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.ServerSecurityAlertPolicyInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.ServerSecurityAlertPolicyProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.ServerSecurityAlertPolicyListResult", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.ServerVulnerabilityAssessmentInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.ServerVulnerabilityAssessmentProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.ServerVulnerabilityAssessmentListResult", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.EncryptionProtectorInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.EncryptionProtectorProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.EncryptionProtectorListResult", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.ServerUsageListResult", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.ServerUsageInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.RecoverableSqlPoolListResult", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.RecoverableSqlPoolInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.RecoverableSqlPoolProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.DedicatedSQLminimalTlsSettingsInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.DedicatedSQLminimalTlsSettingsProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.DedicatedSQLminimalTlsSettingsListResult", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.WorkspaceInfoListResult", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.WorkspaceInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.WorkspaceProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.DataLakeStorageAccountDetails", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.VirtualNetworkProfile", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.EncryptionDetails", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.CustomerManagedKeyDetails", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.WorkspaceKeyDetails", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.KekIdentityProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.ManagedVirtualNetworkSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.WorkspaceRepositoryConfiguration", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.PurviewConfiguration", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.CspWorkspaceAdminProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.ManagedIdentity", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.UserAssignedManagedIdentity", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.WorkspacePatchInfo", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.WorkspacePatchProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.WorkspaceAadAdminInfoInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.AadAdminProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.ManagedIdentitySqlControlSettingsModelInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.ManagedIdentitySqlControlSettingsModelProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.RestorableDroppedSqlPoolInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.RestorableDroppedSqlPoolProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.RestorableDroppedSqlPoolListResult", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.WorkspaceUsageQuotaResponseInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.BigDataPoolResourceInfoInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.BigDataPoolResourceProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.AutoScaleProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.AutoPauseProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.DynamicExecutorAllocation", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.LibraryRequirements", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.LibraryInfo", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.SparkConfigProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.BigDataPoolPatchInfo", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.BigDataPoolResourceInfoListResult", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.LibraryResourceInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.EntityResource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.AzureEntityResource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.LibraryListResponse", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.UpdateIntegrationRuntimeRequest", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeResourceInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.IntegrationRuntime", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeNodeIpAddressInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.GetSsisObjectMetadataRequest", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.SsisObjectMetadataListResponseInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.SsisObjectMetadata", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.SelfHostedIntegrationRuntimeNodeInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.UpdateIntegrationRuntimeNodeRequest", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.IntegrationRuntimeListResponse", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeConnectionInfoInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeStatusResponseInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.IntegrationRuntimeStatus", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.IntegrationRuntimeRegenerateKeyParameters", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeAuthKeysInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeMonitoringDataInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.IntegrationRuntimeNodeMonitoringData", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.SsisObjectMetadataStatusResponseInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.IntegrationRuntimeOutboundNetworkDependenciesEndpoint", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeOperationStatusInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeStopOperationStatusInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeEnableinteractivequeryInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.SparkConfigurationResourceInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.SparkConfigurationInfo", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.SparkConfigurationListResponse", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.OperationListResult", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.OperationInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.OperationDisplay", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.SkuDescriptionList", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.SkuDescriptionInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.SkuLocationInfoItem", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.KustoPoolCheckNameRequest", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.CheckNameResultInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.KustoPoolListResultInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.KustoPoolInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.AzureSku", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.KustoPoolProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.OptimizedAutoscale", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.LanguageExtensionsList", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.LanguageExtensionInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.KustoPoolUpdate", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.ListResourceSkusResult", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.AzureResourceSkuInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.AzureCapacity", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.DatabaseCheckNameRequest", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.FollowerDatabaseListResult", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.FollowerDatabaseDefinitionInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.AttachedDatabaseConfigurationListResult", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.AttachedDatabaseConfigurationInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.AttachedDatabaseConfigurationProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.TableLevelSharingProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.DatabaseListResult", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.DatabaseInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.DataConnectionCheckNameRequest", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.DataConnectionValidationInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.DataConnectionInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.DataConnectionValidationListResultInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.DataConnectionValidationResult", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.DataConnectionListResult", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.ClusterPrincipalAssignmentCheckNameRequest", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.ClusterPrincipalAssignmentListResult", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.ClusterPrincipalAssignmentInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.ClusterPrincipalProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.DatabasePrincipalAssignmentCheckNameRequest", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.DatabasePrincipalAssignmentListResult", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.DatabasePrincipalAssignmentInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.DatabasePrincipalProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.PrivateLinkResources", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.KustoPoolPrivateLinkResourcesInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.PrivateLinkResourcesProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.ManagedIntegrationRuntime", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.ManagedIntegrationRuntimeTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.IntegrationRuntimeComputeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.IntegrationRuntimeDataFlowProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.IntegrationRuntimeVNetProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.IntegrationRuntimeSsisProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.IntegrationRuntimeSsisCatalogInfo", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.SecureString", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.SecretBase", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.IntegrationRuntimeCustomSetupScriptProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.IntegrationRuntimeDataProxyProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.EntityReference", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.CustomSetupBase", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.ManagedIntegrationRuntimeManagedVirtualNetworkReference", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.CmdkeySetup", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.CmdkeySetupTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.EnvironmentVariableSetup", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.EnvironmentVariableSetupTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.ComponentSetup", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.LicensedComponentSetupTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.SelfHostedIntegrationRuntime", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.SelfHostedIntegrationRuntimeTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.LinkedIntegrationRuntimeType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.LinkedIntegrationRuntimeKeyAuthorization", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.LinkedIntegrationRuntimeRbacAuthorization", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.ManagedIntegrationRuntimeStatus", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.ManagedIntegrationRuntimeStatusTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.ManagedIntegrationRuntimeNode", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.ManagedIntegrationRuntimeError", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.ManagedIntegrationRuntimeOperationResult", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.SelfHostedIntegrationRuntimeStatus", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.SelfHostedIntegrationRuntimeStatusTypeProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.LinkedIntegrationRuntime", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.SsisFolder", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.SsisProject", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.SsisEnvironmentReference", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.SsisParameter", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.SsisPackage", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.SsisEnvironment", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.SsisVariable", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.ReadWriteDatabase", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.ReadWriteDatabaseProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.DatabaseStatistics", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.ReadOnlyFollowingDatabase", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.ReadOnlyFollowingDatabaseProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.EventHubDataConnection", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.EventHubConnectionProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.IotHubDataConnection", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.IotHubConnectionProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.EventGridDataConnection", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.fluent.models.EventGridConnectionProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.AzureADOnlyAuthenticationName", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.StateValue", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.ProvisioningState", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.OperationStatus", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.CreateMode", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.StorageAccountType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.GeoBackupPolicyName", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.DataWarehouseUserActivityName", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.ReplicationState", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.DayOfWeek", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.TransparentDataEncryptionName", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.ManagementOperationState", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.ColumnDataType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.ConnectionPolicyName", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentScanTriggerType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentScanState", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.SecurityAlertPolicyName", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.BlobAuditingPolicyName", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.SecurityAlertPolicyNameAutoGenerated", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.EncryptionProtectorName", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.ServerKeyType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.DedicatedSqlMinimalTlsSettingsName", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.WorkspacePublicNetworkAccess", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.ConfigurationType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.NodeSize", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.NodeSizeFamily", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.IntegrationRuntimeAutoUpdate", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.IntegrationRuntimeType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.SsisObjectMetadataType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.SelfHostedIntegrationRuntimeNodeStatus", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.IntegrationRuntimeUpdateResult", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.IntegrationRuntimeState", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.IntegrationRuntimeAuthKeyName", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.WorkspaceStatus", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.Reason", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.SkuName", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.SkuSize", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.State", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.ResourceProvisioningState", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.LanguageExtensionName", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.AzureScaleType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.DefaultPrincipalsModificationKind", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.Kind", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.DataConnectionKind", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.ClusterPrincipalRole", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.PrincipalType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.DatabasePrincipalRole", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.DataFlowComputeType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.IntegrationRuntimeSsisCatalogPricingTier", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.IntegrationRuntimeLicenseType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.IntegrationRuntimeEntityReferenceType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.IntegrationRuntimeEdition", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.ManagedIntegrationRuntimeNodeStatus", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.IntegrationRuntimeInternalChannelEncryptionMode", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.PrincipalsModificationKind", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.EventHubDataFormat", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.Compression", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.IotHubDataFormat", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.EventGridDataFormat", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.BlobStorageEventType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.GeoBackupPolicyState", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.RestorePointType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.ReplicationRole", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.TransparentDataEncryptionStatus", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.BlobAuditingPolicyState", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.SensitivityLabelRank", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.SensitivityLabelUpdateKind", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.RecommendedSensitivityLabelUpdateKind", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.SensitivityLabelSource", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.SecurityAlertPolicyState", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentPolicyBaselineName", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.DataMaskingState", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.DataMaskingRuleState", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.DataMaskingFunction", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.ResourceIdentityType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.DesiredState", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.ActualState", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.Type", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.synapse.models.QueryMetricUnit", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +} ] \ No newline at end of file diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationsCreateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationsCreateSamples.java index 53d1be7f1227..9c81c5bb1ae5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationsCreateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationsCreateSamples.java @@ -6,23 +6,22 @@ import com.azure.resourcemanager.synapse.models.AzureADOnlyAuthenticationName; -/** Samples for AzureADOnlyAuthentications Create. */ +/** + * Samples for AzureADOnlyAuthentications Create. + */ public final class AzureADOnlyAuthenticationsCreateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateAzureADOnlyAuthentication.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CreateOrUpdateAzureADOnlyAuthentication.json */ /** * Sample code: Create or Update Azure Active Directory Only Authentication property. - * + * * @param manager Entry point to SynapseManager. */ public static void createOrUpdateAzureActiveDirectoryOnlyAuthenticationProperty( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .azureADOnlyAuthentications() - .define(AzureADOnlyAuthenticationName.DEFAULT) - .withExistingWorkspace("workspace-6852", "workspace-2080") - .withAzureADOnlyAuthentication(true) - .create(); + manager.azureADOnlyAuthentications().define(AzureADOnlyAuthenticationName.DEFAULT) + .withExistingWorkspace("workspace-6852", "workspace-2080").withAzureADOnlyAuthentication(true).create(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationsGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationsGetSamples.java index e405e369cefe..0641365f4b34 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationsGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationsGetSamples.java @@ -6,24 +6,23 @@ import com.azure.resourcemanager.synapse.models.AzureADOnlyAuthenticationName; -/** Samples for AzureADOnlyAuthentications Get. */ +/** + * Samples for AzureADOnlyAuthentications Get. + */ public final class AzureADOnlyAuthenticationsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetAzureADOnlyAuthentication.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetAzureADOnlyAuthentication. + * json */ /** * Sample code: Get Azure Active Directory Only Authentication property. - * + * * @param manager Entry point to SynapseManager. */ - public static void getAzureActiveDirectoryOnlyAuthenticationProperty( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .azureADOnlyAuthentications() - .getWithResponse( - "workspace-6852", - "workspace-2080", - AzureADOnlyAuthenticationName.DEFAULT, - com.azure.core.util.Context.NONE); + public static void + getAzureActiveDirectoryOnlyAuthenticationProperty(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.azureADOnlyAuthentications().getWithResponse("workspace-6852", "workspace-2080", + AzureADOnlyAuthenticationName.DEFAULT, com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationsListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationsListSamples.java index 0b7948600f70..155e5a1de1e8 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationsListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationsListSamples.java @@ -4,14 +4,18 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for AzureADOnlyAuthentications List. */ +/** + * Samples for AzureADOnlyAuthentications List. + */ public final class AzureADOnlyAuthenticationsListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListAzureADOnlyAuthentication.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListAzureADOnlyAuthentication + * .json */ /** * Sample code: Get a list of Azure Active Directory Only Authentication property. - * + * * @param manager Entry point to SynapseManager. */ public static void getAListOfAzureActiveDirectoryOnlyAuthenticationProperty( diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsCreateOrUpdateSamples.java index 73771a560cf2..55603153c825 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsCreateOrUpdateSamples.java @@ -12,36 +12,32 @@ import java.util.HashMap; import java.util.Map; -/** Samples for BigDataPools CreateOrUpdate. */ +/** + * Samples for BigDataPools CreateOrUpdate. + */ public final class BigDataPoolsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/CreateOrUpdateBigDataPool.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * CreateOrUpdateBigDataPool.json */ /** * Sample code: Create or update a Big Data pool. - * + * * @param manager Entry point to SynapseManager. */ public static void createOrUpdateABigDataPool(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .bigDataPools() - .define("ExamplePool") - .withRegion("West US 2") + manager.bigDataPools().define("ExamplePool").withRegion("West US 2") .withExistingWorkspace("ExampleResourceGroup", "ExampleWorkspace") - .withTags(mapOf("key", "value")) + .withTags(mapOf("key", "fakeTokenPlaceholder")) .withAutoScale(new AutoScaleProperties().withMinNodeCount(3).withEnabled(true).withMaxNodeCount(50)) .withAutoPause(new AutoPauseProperties().withDelayInMinutes(15).withEnabled(true)) - .withIsAutotuneEnabled(false) - .withSparkEventsFolder("/events") - .withNodeCount(4) + .withIsAutotuneEnabled(false).withSparkEventsFolder("/events").withNodeCount(4) .withLibraryRequirements(new LibraryRequirements().withContent("").withFilename("requirements.txt")) - .withSparkVersion("3.3") - .withDefaultSparkLogFolder("/logs") - .withNodeSize(NodeSize.MEDIUM) - .withNodeSizeFamily(NodeSizeFamily.MEMORY_OPTIMIZED) - .create(); + .withSparkVersion("3.3").withDefaultSparkLogFolder("/logs").withNodeSize(NodeSize.MEDIUM) + .withNodeSizeFamily(NodeSizeFamily.MEMORY_OPTIMIZED).create(); } + // Use "Map.of" if available @SuppressWarnings("unchecked") private static Map mapOf(Object... inputs) { Map map = new HashMap<>(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsDeleteSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsDeleteSamples.java index a369c2f55a71..243320fca295 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsDeleteSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsDeleteSamples.java @@ -4,19 +4,22 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for BigDataPools Delete. */ +/** + * Samples for BigDataPools Delete. + */ public final class BigDataPoolsDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/DeleteBigDataPool.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/DeleteBigDataPool. + * json */ /** * Sample code: Delete a Big Data pool. - * + * * @param manager Entry point to SynapseManager. */ public static void deleteABigDataPool(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .bigDataPools() - .delete("ExampleResourceGroup", "ExampleWorkspace", "ExamplePool", com.azure.core.util.Context.NONE); + manager.bigDataPools().delete("ExampleResourceGroup", "ExampleWorkspace", "ExamplePool", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsGetSamples.java index bcbf2b84154b..93b0a3cd31eb 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsGetSamples.java @@ -4,20 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for BigDataPools Get. */ +/** + * Samples for BigDataPools Get. + */ public final class BigDataPoolsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/GetBigDataPool.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/GetBigDataPool.json */ /** * Sample code: Get a Big Data pool. - * + * * @param manager Entry point to SynapseManager. */ public static void getABigDataPool(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .bigDataPools() - .getWithResponse( - "ExampleResourceGroup", "ExampleWorkspace", "ExamplePool", com.azure.core.util.Context.NONE); + manager.bigDataPools().getWithResponse("ExampleResourceGroup", "ExampleWorkspace", "ExamplePool", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsListByWorkspaceSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsListByWorkspaceSamples.java index d70ae5a45609..f052806956cf 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsListByWorkspaceSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsListByWorkspaceSamples.java @@ -4,19 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for BigDataPools ListByWorkspace. */ +/** + * Samples for BigDataPools ListByWorkspace. + */ public final class BigDataPoolsListByWorkspaceSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ListBigDataPoolsInWorkspace.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * ListBigDataPoolsInWorkspace.json */ /** * Sample code: List Big Data pools in a workspace. - * + * * @param manager Entry point to SynapseManager. */ public static void listBigDataPoolsInAWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .bigDataPools() - .listByWorkspace("ExampleResourceGroup", "ExampleWorkspace", com.azure.core.util.Context.NONE); + manager.bigDataPools().listByWorkspace("ExampleResourceGroup", "ExampleWorkspace", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsUpdateSamples.java index cc968299dfb5..abbcbb3cfbff 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsUpdateSamples.java @@ -8,26 +8,27 @@ import java.util.HashMap; import java.util.Map; -/** Samples for BigDataPools Update. */ +/** + * Samples for BigDataPools Update. + */ public final class BigDataPoolsUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/UpdateBigDataPool.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/UpdateBigDataPool. + * json */ /** * Sample code: Update a Big Data pool. - * + * * @param manager Entry point to SynapseManager. */ public static void updateABigDataPool(com.azure.resourcemanager.synapse.SynapseManager manager) { - BigDataPoolResourceInfo resource = - manager - .bigDataPools() - .getWithResponse( - "ExampleResourceGroup", "ExampleWorkspace", "ExamplePool", com.azure.core.util.Context.NONE) - .getValue(); - resource.update().withTags(mapOf("key", "value")).apply(); + BigDataPoolResourceInfo resource = manager.bigDataPools().getWithResponse("ExampleResourceGroup", + "ExampleWorkspace", "ExamplePool", com.azure.core.util.Context.NONE).getValue(); + resource.update().withTags(mapOf("key", "fakeTokenPlaceholder")).apply(); } + // Use "Map.of" if available @SuppressWarnings("unchecked") private static Map mapOf(Object... inputs) { Map map = new HashMap<>(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/DataMaskingPoliciesCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/DataMaskingPoliciesCreateOrUpdateSamples.java index 892ada1f093f..aaa33321973d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/DataMaskingPoliciesCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/DataMaskingPoliciesCreateOrUpdateSamples.java @@ -6,40 +6,37 @@ import com.azure.resourcemanager.synapse.models.DataMaskingState; -/** Samples for DataMaskingPolicies CreateOrUpdate. */ +/** + * Samples for DataMaskingPolicies CreateOrUpdate. + */ public final class DataMaskingPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DataMaskingPolicyCreateOrUpdateMin.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * DataMaskingPolicyCreateOrUpdateMin.json */ /** * Sample code: Create or update data masking policy min. - * + * * @param manager Entry point to SynapseManager. */ public static void createOrUpdateDataMaskingPolicyMin(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .dataMaskingPolicies() - .define() + manager.dataMaskingPolicies().define() .withExistingSqlPool("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-331") - .withDataMaskingState(DataMaskingState.ENABLED) - .create(); + .withDataMaskingState(DataMaskingState.ENABLED).create(); } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DataMaskingPolicyCreateOrUpdateMax.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * DataMaskingPolicyCreateOrUpdateMax.json */ /** * Sample code: Create or update data masking policy max. - * + * * @param manager Entry point to SynapseManager. */ public static void createOrUpdateDataMaskingPolicyMax(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .dataMaskingPolicies() - .define() + manager.dataMaskingPolicies().define() .withExistingSqlPool("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-331") - .withDataMaskingState(DataMaskingState.ENABLED) - .withExemptPrincipals("testuser;") - .create(); + .withDataMaskingState(DataMaskingState.ENABLED).withExemptPrincipals("testuser;").create(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/DataMaskingPoliciesGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/DataMaskingPoliciesGetSamples.java index dd0f6a55064d..6d07ffda0dc5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/DataMaskingPoliciesGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/DataMaskingPoliciesGetSamples.java @@ -4,20 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for DataMaskingPolicies Get. */ +/** + * Samples for DataMaskingPolicies Get. + */ public final class DataMaskingPoliciesGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DataMaskingPolicyGet.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DataMaskingPolicyGet.json */ /** * Sample code: Get data masking policy. - * + * * @param manager Entry point to SynapseManager. */ public static void getDataMaskingPolicy(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .dataMaskingPolicies() - .getWithResponse( - "sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-331", com.azure.core.util.Context.NONE); + manager.dataMaskingPolicies().getWithResponse("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-331", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulesCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulesCreateOrUpdateSamples.java index fc531d93c50f..dee70c241682 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulesCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulesCreateOrUpdateSamples.java @@ -7,94 +7,72 @@ import com.azure.resourcemanager.synapse.models.DataMaskingFunction; import com.azure.resourcemanager.synapse.models.DataMaskingRuleState; -/** Samples for DataMaskingRules CreateOrUpdate. */ +/** + * Samples for DataMaskingRules CreateOrUpdate. + */ public final class DataMaskingRulesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DataMaskingRuleCreateOrUpdateDefaultMin.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * DataMaskingRuleCreateOrUpdateDefaultMin.json */ /** * Sample code: Create/Update data masking rule for default min. - * + * * @param manager Entry point to SynapseManager. */ - public static void createUpdateDataMaskingRuleForDefaultMin( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .dataMaskingRules() - .define("rule1") - .withExistingSqlPool("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-331") - .withSchemaName("dbo") - .withTableName("Table_1") - .withColumnName("test1") - .withMaskingFunction(DataMaskingFunction.DEFAULT) - .create(); + public static void + createUpdateDataMaskingRuleForDefaultMin(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.dataMaskingRules().define("rule1") + .withExistingSqlPool("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-331").withSchemaName("dbo") + .withTableName("Table_1").withColumnName("test1").withMaskingFunction(DataMaskingFunction.DEFAULT).create(); } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DataMaskingRuleCreateOrUpdateDefaultMax.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * DataMaskingRuleCreateOrUpdateDefaultMax.json */ /** * Sample code: Create/Update data masking rule for default max. - * + * * @param manager Entry point to SynapseManager. */ - public static void createUpdateDataMaskingRuleForDefaultMax( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .dataMaskingRules() - .define("rule1") - .withExistingSqlPool("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-331") - .withAliasName("nickname") - .withRuleState(DataMaskingRuleState.ENABLED) - .withSchemaName("dbo") - .withTableName("Table_1") - .withColumnName("test1") - .withMaskingFunction(DataMaskingFunction.DEFAULT) - .create(); + public static void + createUpdateDataMaskingRuleForDefaultMax(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.dataMaskingRules().define("rule1") + .withExistingSqlPool("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-331").withAliasName("nickname") + .withRuleState(DataMaskingRuleState.ENABLED).withSchemaName("dbo").withTableName("Table_1") + .withColumnName("test1").withMaskingFunction(DataMaskingFunction.DEFAULT).create(); } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DataMaskingRuleCreateOrUpdateText.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * DataMaskingRuleCreateOrUpdateText.json */ /** * Sample code: Create/Update data masking rule for text. - * + * * @param manager Entry point to SynapseManager. */ public static void createUpdateDataMaskingRuleForText(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .dataMaskingRules() - .define("rule1") - .withExistingSqlPool("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-331") - .withSchemaName("dbo") - .withTableName("Table_1") - .withColumnName("test1") - .withMaskingFunction(DataMaskingFunction.TEXT) - .withPrefixSize("1") - .withSuffixSize("0") - .withReplacementString("asdf") - .create(); + manager.dataMaskingRules().define("rule1") + .withExistingSqlPool("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-331").withSchemaName("dbo") + .withTableName("Table_1").withColumnName("test1").withMaskingFunction(DataMaskingFunction.TEXT) + .withPrefixSize("1").withSuffixSize("0").withReplacementString("asdf").create(); } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DataMaskingRuleCreateOrUpdateNumber.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * DataMaskingRuleCreateOrUpdateNumber.json */ /** * Sample code: Create/Update data masking rule for numbers. - * + * * @param manager Entry point to SynapseManager. */ public static void createUpdateDataMaskingRuleForNumbers(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .dataMaskingRules() - .define("rule1") - .withExistingSqlPool("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-331") - .withSchemaName("dbo") - .withTableName("Table_1") - .withColumnName("test1") - .withMaskingFunction(DataMaskingFunction.NUMBER) - .withNumberFrom("0") - .withNumberTo("2") - .create(); + manager.dataMaskingRules().define("rule1") + .withExistingSqlPool("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-331").withSchemaName("dbo") + .withTableName("Table_1").withColumnName("test1").withMaskingFunction(DataMaskingFunction.NUMBER) + .withNumberFrom("0").withNumberTo("2").create(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulesGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulesGetSamples.java index 881e9aaa875c..9b1079bb36d5 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulesGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulesGetSamples.java @@ -4,20 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for DataMaskingRules Get. */ +/** + * Samples for DataMaskingRules Get. + */ public final class DataMaskingRulesGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DataMaskingRuleGet.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DataMaskingRuleGet.json */ /** * Sample code: Get data masking rule. - * + * * @param manager Entry point to SynapseManager. */ public static void getDataMaskingRule(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .dataMaskingRules() - .getWithResponse( - "sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-331", "rule1", com.azure.core.util.Context.NONE); + manager.dataMaskingRules().getWithResponse("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-331", "rule1", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulesListBySqlPoolSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulesListBySqlPoolSamples.java index 10bc1c56047f..7c925383072a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulesListBySqlPoolSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulesListBySqlPoolSamples.java @@ -4,19 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for DataMaskingRules ListBySqlPool. */ +/** + * Samples for DataMaskingRules ListBySqlPool. + */ public final class DataMaskingRulesListBySqlPoolSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DataMaskingRuleList.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DataMaskingRuleList.json */ /** * Sample code: List data masking rules. - * + * * @param manager Entry point to SynapseManager. */ public static void listDataMaskingRules(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .dataMaskingRules() - .listBySqlPool("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-331", com.azure.core.util.Context.NONE); + manager.dataMaskingRules().listBySqlPool("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-331", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/ExtendedSqlPoolBlobAuditingPoliciesCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/ExtendedSqlPoolBlobAuditingPoliciesCreateOrUpdateSamples.java index aa3df1b552eb..6fc90d266a47 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/ExtendedSqlPoolBlobAuditingPoliciesCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/ExtendedSqlPoolBlobAuditingPoliciesCreateOrUpdateSamples.java @@ -8,75 +8,64 @@ import java.util.Arrays; import java.util.UUID; -/** Samples for ExtendedSqlPoolBlobAuditingPolicies CreateOrUpdate. */ +/** + * Samples for ExtendedSqlPoolBlobAuditingPolicies CreateOrUpdate. + */ public final class ExtendedSqlPoolBlobAuditingPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ExtendedSqlPoolBlobAuditingCreateMax.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * ExtendedSqlPoolBlobAuditingCreateMax.json */ /** * Sample code: Create or update an extended Sql pool's blob auditing policy with all parameters. - * + * * @param manager Entry point to SynapseManager. */ public static void createOrUpdateAnExtendedSqlPoolSBlobAuditingPolicyWithAllParameters( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .extendedSqlPoolBlobAuditingPolicies() - .define() + manager.extendedSqlPoolBlobAuditingPolicies().define() .withExistingSqlPool("blobauditingtest-4799", "blobauditingtest-6440", "testdb") - .withPredicateExpression("statement = 'select 1'") - .withState(BlobAuditingPolicyState.ENABLED) + .withPredicateExpression("statement = 'select 1'").withState(BlobAuditingPolicyState.ENABLED) .withStorageEndpoint("https://mystorage.blob.core.windows.net") .withStorageAccountAccessKey( "sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==") .withRetentionDays(6) - .withAuditActionsAndGroups( - Arrays - .asList( - "DATABASE_LOGOUT_GROUP", - "DATABASE_ROLE_MEMBER_CHANGE_GROUP", - "UPDATE on database::TestDatabaseName by public")) + .withAuditActionsAndGroups(Arrays.asList("DATABASE_LOGOUT_GROUP", "DATABASE_ROLE_MEMBER_CHANGE_GROUP", + "UPDATE on database::TestDatabaseName by public")) .withStorageAccountSubscriptionId(UUID.fromString("00000000-1234-0000-5678-000000000000")) - .withIsStorageSecondaryKeyInUse(false) - .withIsAzureMonitorTargetEnabled(true) - .create(); + .withIsStorageSecondaryKeyInUse(false).withIsAzureMonitorTargetEnabled(true).create(); } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ExtendedSqlPoolAzureMonitorAuditingCreateMin.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * ExtendedSqlPoolAzureMonitorAuditingCreateMin.json */ /** * Sample code: Create or update an extended SQL pool's azure monitor auditing policy with minimal parameters. - * + * * @param manager Entry point to SynapseManager. */ public static void createOrUpdateAnExtendedSQLPoolSAzureMonitorAuditingPolicyWithMinimalParameters( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .extendedSqlPoolBlobAuditingPolicies() - .define() + manager.extendedSqlPoolBlobAuditingPolicies().define() .withExistingSqlPool("blobauditingtest-4799", "blobauditingtest-6440", "testdb") - .withState(BlobAuditingPolicyState.ENABLED) - .withIsAzureMonitorTargetEnabled(true) - .create(); + .withState(BlobAuditingPolicyState.ENABLED).withIsAzureMonitorTargetEnabled(true).create(); } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ExtendedSqlPoolBlobAuditingCreateMin.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * ExtendedSqlPoolBlobAuditingCreateMin.json */ /** * Sample code: Create or update an extended Sql pool's blob auditing policy with minimal parameters. - * + * * @param manager Entry point to SynapseManager. */ public static void createOrUpdateAnExtendedSqlPoolSBlobAuditingPolicyWithMinimalParameters( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .extendedSqlPoolBlobAuditingPolicies() - .define() + manager.extendedSqlPoolBlobAuditingPolicies().define() .withExistingSqlPool("blobauditingtest-4799", "blobauditingtest-6440", "testdb") - .withState(BlobAuditingPolicyState.ENABLED) - .withStorageEndpoint("https://mystorage.blob.core.windows.net") + .withState(BlobAuditingPolicyState.ENABLED).withStorageEndpoint("https://mystorage.blob.core.windows.net") .withStorageAccountAccessKey( "sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==") .create(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/ExtendedSqlPoolBlobAuditingPoliciesGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/ExtendedSqlPoolBlobAuditingPoliciesGetSamples.java index 672e1ab88600..8090784def2b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/ExtendedSqlPoolBlobAuditingPoliciesGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/ExtendedSqlPoolBlobAuditingPoliciesGetSamples.java @@ -4,21 +4,22 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for ExtendedSqlPoolBlobAuditingPolicies Get. */ +/** + * Samples for ExtendedSqlPoolBlobAuditingPolicies Get. + */ public final class ExtendedSqlPoolBlobAuditingPoliciesGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ExtendedSqlPoolBlobAuditingGet.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * ExtendedSqlPoolBlobAuditingGet.json */ /** * Sample code: Get an extended database's blob auditing policy. - * + * * @param manager Entry point to SynapseManager. */ - public static void getAnExtendedDatabaseSBlobAuditingPolicy( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .extendedSqlPoolBlobAuditingPolicies() - .getWithResponse( - "blobauditingtest-6852", "blobauditingtest-2080", "testdb", com.azure.core.util.Context.NONE); + public static void + getAnExtendedDatabaseSBlobAuditingPolicy(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.extendedSqlPoolBlobAuditingPolicies().getWithResponse("blobauditingtest-6852", "blobauditingtest-2080", + "testdb", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolSamples.java index 43cc2f29b86b..70fd5c3db17b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolSamples.java @@ -4,21 +4,22 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for ExtendedSqlPoolBlobAuditingPolicies ListBySqlPool. */ +/** + * Samples for ExtendedSqlPoolBlobAuditingPolicies ListBySqlPool. + */ public final class ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolExtendedAuditingSettingsList.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * SqlPoolExtendedAuditingSettingsList.json */ /** * Sample code: List extended auditing settings of a database. - * + * * @param manager Entry point to SynapseManager. */ - public static void listExtendedAuditingSettingsOfADatabase( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .extendedSqlPoolBlobAuditingPolicies() - .listBySqlPool( - "blobauditingtest-6852", "blobauditingtest-2080", "testdb", com.azure.core.util.Context.NONE); + public static void + listExtendedAuditingSettingsOfADatabase(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.extendedSqlPoolBlobAuditingPolicies().listBySqlPool("blobauditingtest-6852", "blobauditingtest-2080", + "testdb", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/GetIntegrationRuntimeEnableInteractivequerySamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/GetIntegrationRuntimeEnableInteractivequerySamples.java index 9309e91c19f8..fa69e82738d7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/GetIntegrationRuntimeEnableInteractivequerySamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/GetIntegrationRuntimeEnableInteractivequerySamples.java @@ -4,24 +4,22 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for Get IntegrationRuntimeEnableInteractivequery. */ +/** + * Samples for Get IntegrationRuntimeEnableInteractivequery. + */ public final class GetIntegrationRuntimeEnableInteractivequerySamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/EnableInteractivequery_IntegrationRuntimes.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * EnableInteractivequery_IntegrationRuntimes.json */ /** * Sample code: Get integration runtime operation status. - * + * * @param manager Entry point to SynapseManager. */ public static void getIntegrationRuntimeOperationStatus(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .gets() - .integrationRuntimeEnableInteractivequeryWithResponse( - "drage-felles-prod-rg", - "felles-prod-synapse-workspace", - "SSIS-intergrationRuntime-Drage", - "5752dcdf918e4aecb941245ddf6ebb83", - com.azure.core.util.Context.NONE); + manager.gets().integrationRuntimeEnableInteractivequeryWithResponse("drage-felles-prod-rg", + "felles-prod-synapse-workspace", "SSIS-intergrationRuntime-Drage", "5752dcdf918e4aecb941245ddf6ebb83", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/GetIntegrationRuntimeStartSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/GetIntegrationRuntimeStartSamples.java index ae29884e4c16..df4ddd70e7f7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/GetIntegrationRuntimeStartSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/GetIntegrationRuntimeStartSamples.java @@ -4,24 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for Get IntegrationRuntimeStart. */ +/** + * Samples for Get IntegrationRuntimeStart. + */ public final class GetIntegrationRuntimeStartSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_Start_OperationStatus.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * IntegrationRuntimes_Start_OperationStatus.json */ /** * Sample code: Get integration runtime operation status. - * + * * @param manager Entry point to SynapseManager. */ public static void getIntegrationRuntimeOperationStatus(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .gets() - .integrationRuntimeStartWithResponse( - "drage-felles-prod-rg", - "felles-prod-synapse-workspace", - "SSIS-intergrationRuntime-Drage", - "5752dcdf918e4aecb941245ddf6ebb83", - com.azure.core.util.Context.NONE); + manager.gets().integrationRuntimeStartWithResponse("drage-felles-prod-rg", "felles-prod-synapse-workspace", + "SSIS-intergrationRuntime-Drage", "5752dcdf918e4aecb941245ddf6ebb83", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/GetIntegrationRuntimeStopSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/GetIntegrationRuntimeStopSamples.java index 90f2050ed26c..bb435aac2fa1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/GetIntegrationRuntimeStopSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/GetIntegrationRuntimeStopSamples.java @@ -4,24 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for Get IntegrationRuntimeStop. */ +/** + * Samples for Get IntegrationRuntimeStop. + */ public final class GetIntegrationRuntimeStopSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_Stop_OperationStatus.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * IntegrationRuntimes_Stop_OperationStatus.json */ /** * Sample code: Get integration runtime operation status. - * + * * @param manager Entry point to SynapseManager. */ public static void getIntegrationRuntimeOperationStatus(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .gets() - .integrationRuntimeStopWithResponse( - "drage-felles-prod-rg", - "felles-prod-synapse-workspace", - "SSIS-intergrationRuntime-Drage", - "5752dcdf918e4aecb941245ddf6ebb83", - com.azure.core.util.Context.NONE); + manager.gets().integrationRuntimeStopWithResponse("drage-felles-prod-rg", "felles-prod-synapse-workspace", + "SSIS-intergrationRuntime-Drage", "5752dcdf918e4aecb941245ddf6ebb83", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeAuthKeysOperationListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeAuthKeysOperationListSamples.java index 58f4b0f7086d..6c7b83ab4143 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeAuthKeysOperationListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeAuthKeysOperationListSamples.java @@ -4,23 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for IntegrationRuntimeAuthKeysOperation List. */ +/** + * Samples for IntegrationRuntimeAuthKeysOperation List. + */ public final class IntegrationRuntimeAuthKeysOperationListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_ListAuthKeys.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * IntegrationRuntimes_ListAuthKeys.json */ /** * Sample code: List auth keys. - * + * * @param manager Entry point to SynapseManager. */ public static void listAuthKeys(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .integrationRuntimeAuthKeysOperations() - .listWithResponse( - "exampleResourceGroup", - "exampleWorkspace", - "exampleIntegrationRuntime", - com.azure.core.util.Context.NONE); + manager.integrationRuntimeAuthKeysOperations().listWithResponse("exampleResourceGroup", "exampleWorkspace", + "exampleIntegrationRuntime", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeAuthKeysOperationRegenerateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeAuthKeysOperationRegenerateSamples.java index 2776a498f48c..66c9c1db98fa 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeAuthKeysOperationRegenerateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeAuthKeysOperationRegenerateSamples.java @@ -7,24 +7,23 @@ import com.azure.resourcemanager.synapse.models.IntegrationRuntimeAuthKeyName; import com.azure.resourcemanager.synapse.models.IntegrationRuntimeRegenerateKeyParameters; -/** Samples for IntegrationRuntimeAuthKeysOperation Regenerate. */ +/** + * Samples for IntegrationRuntimeAuthKeysOperation Regenerate. + */ public final class IntegrationRuntimeAuthKeysOperationRegenerateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_RegenerateAuthKey.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * IntegrationRuntimes_RegenerateAuthKey.json */ /** * Sample code: Regenerate auth key. - * + * * @param manager Entry point to SynapseManager. */ public static void regenerateAuthKey(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .integrationRuntimeAuthKeysOperations() - .regenerateWithResponse( - "exampleResourceGroup", - "exampleWorkspace", - "exampleIntegrationRuntime", - new IntegrationRuntimeRegenerateKeyParameters().withKeyName(IntegrationRuntimeAuthKeyName.AUTH_KEY2), - com.azure.core.util.Context.NONE); + manager.integrationRuntimeAuthKeysOperations().regenerateWithResponse("exampleResourceGroup", + "exampleWorkspace", "exampleIntegrationRuntime", + new IntegrationRuntimeRegenerateKeyParameters().withKeyName(IntegrationRuntimeAuthKeyName.AUTH_KEY2), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeConnectionInfosGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeConnectionInfosGetSamples.java index d1006bd9e9ce..5e264f642c5d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeConnectionInfosGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeConnectionInfosGetSamples.java @@ -4,23 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for IntegrationRuntimeConnectionInfos Get. */ +/** + * Samples for IntegrationRuntimeConnectionInfos Get. + */ public final class IntegrationRuntimeConnectionInfosGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_GetConnectionInfo.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * IntegrationRuntimes_GetConnectionInfo.json */ /** * Sample code: Get connection info. - * + * * @param manager Entry point to SynapseManager. */ public static void getConnectionInfo(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .integrationRuntimeConnectionInfos() - .getWithResponse( - "exampleResourceGroup", - "exampleWorkspace", - "exampleIntegrationRuntime", - com.azure.core.util.Context.NONE); + manager.integrationRuntimeConnectionInfos().getWithResponse("exampleResourceGroup", "exampleWorkspace", + "exampleIntegrationRuntime", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeCredentialsSyncSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeCredentialsSyncSamples.java index fc1953ba5382..4940dbb7eb50 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeCredentialsSyncSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeCredentialsSyncSamples.java @@ -4,23 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for IntegrationRuntimeCredentials Sync. */ +/** + * Samples for IntegrationRuntimeCredentials Sync. + */ public final class IntegrationRuntimeCredentialsSyncSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_SyncCredentials.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * IntegrationRuntimes_SyncCredentials.json */ /** * Sample code: Sync credentials. - * + * * @param manager Entry point to SynapseManager. */ public static void syncCredentials(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .integrationRuntimeCredentials() - .syncWithResponse( - "exampleResourceGroup", - "exampleWorkspace", - "exampleIntegrationRuntime", - com.azure.core.util.Context.NONE); + manager.integrationRuntimeCredentials().syncWithResponse("exampleResourceGroup", "exampleWorkspace", + "exampleIntegrationRuntime", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeMonitoringDataListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeMonitoringDataListSamples.java index 5cc86ab530ae..f25410846424 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeMonitoringDataListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeMonitoringDataListSamples.java @@ -4,23 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for IntegrationRuntimeMonitoringData List. */ +/** + * Samples for IntegrationRuntimeMonitoringData List. + */ public final class IntegrationRuntimeMonitoringDataListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimeMonitoringData_List.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * IntegrationRuntimeMonitoringData_List.json */ /** * Sample code: Get monitoring data. - * + * * @param manager Entry point to SynapseManager. */ public static void getMonitoringData(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .integrationRuntimeMonitoringDatas() - .listWithResponse( - "exampleResourceGroup", - "exampleWorkspace", - "exampleIntegrationRuntime", - com.azure.core.util.Context.NONE); + manager.integrationRuntimeMonitoringDatas().listWithResponse("exampleResourceGroup", "exampleWorkspace", + "exampleIntegrationRuntime", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodeIpAddressOperationGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodeIpAddressOperationGetSamples.java index 75ac8c51888a..030ccff1e3b0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodeIpAddressOperationGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodeIpAddressOperationGetSamples.java @@ -4,24 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for IntegrationRuntimeNodeIpAddressOperation Get. */ +/** + * Samples for IntegrationRuntimeNodeIpAddressOperation Get. + */ public final class IntegrationRuntimeNodeIpAddressOperationGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimeNodes_GetIpAddress.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * IntegrationRuntimeNodes_GetIpAddress.json */ /** * Sample code: Get integration runtime node IP address. - * + * * @param manager Entry point to SynapseManager. */ public static void getIntegrationRuntimeNodeIPAddress(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .integrationRuntimeNodeIpAddressOperations() - .getWithResponse( - "exampleResourceGroup", - "exampleWorkspace", - "exampleIntegrationRuntime", - "Node_1", - com.azure.core.util.Context.NONE); + manager.integrationRuntimeNodeIpAddressOperations().getWithResponse("exampleResourceGroup", "exampleWorkspace", + "exampleIntegrationRuntime", "Node_1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodesDeleteSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodesDeleteSamples.java index a13991cc5b00..7445f4860216 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodesDeleteSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodesDeleteSamples.java @@ -4,24 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for IntegrationRuntimeNodes Delete. */ +/** + * Samples for IntegrationRuntimeNodes Delete. + */ public final class IntegrationRuntimeNodesDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimeNodes_Delete.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * IntegrationRuntimeNodes_Delete.json */ /** * Sample code: Delete integration runtime node. - * + * * @param manager Entry point to SynapseManager. */ public static void deleteIntegrationRuntimeNode(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .integrationRuntimeNodes() - .deleteWithResponse( - "exampleResourceGroup", - "exampleWorkspace", - "exampleIntegrationRuntime", - "Node_1", - com.azure.core.util.Context.NONE); + manager.integrationRuntimeNodes().deleteWithResponse("exampleResourceGroup", "exampleWorkspace", + "exampleIntegrationRuntime", "Node_1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodesGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodesGetSamples.java index 8ad99aca841c..7e411b5dcb96 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodesGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodesGetSamples.java @@ -4,24 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for IntegrationRuntimeNodes Get. */ +/** + * Samples for IntegrationRuntimeNodes Get. + */ public final class IntegrationRuntimeNodesGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimeNodes_Get.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * IntegrationRuntimeNodes_Get.json */ /** * Sample code: Get integration runtime node. - * + * * @param manager Entry point to SynapseManager. */ public static void getIntegrationRuntimeNode(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .integrationRuntimeNodes() - .getWithResponse( - "exampleResourceGroup", - "exampleWorkspace", - "exampleIntegrationRuntime", - "Node_1", - com.azure.core.util.Context.NONE); + manager.integrationRuntimeNodes().getWithResponse("exampleResourceGroup", "exampleWorkspace", + "exampleIntegrationRuntime", "Node_1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodesUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodesUpdateSamples.java index aa564c075e4d..f08b94893ffb 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodesUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodesUpdateSamples.java @@ -6,25 +6,22 @@ import com.azure.resourcemanager.synapse.models.UpdateIntegrationRuntimeNodeRequest; -/** Samples for IntegrationRuntimeNodes Update. */ +/** + * Samples for IntegrationRuntimeNodes Update. + */ public final class IntegrationRuntimeNodesUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimeNodes_Update.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * IntegrationRuntimeNodes_Update.json */ /** * Sample code: Update integration runtime node. - * + * * @param manager Entry point to SynapseManager. */ public static void updateIntegrationRuntimeNode(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .integrationRuntimeNodes() - .updateWithResponse( - "exampleResourceGroup", - "exampleWorkspace", - "exampleIntegrationRuntime", - "Node_1", - new UpdateIntegrationRuntimeNodeRequest().withConcurrentJobsLimit(2), - com.azure.core.util.Context.NONE); + manager.integrationRuntimeNodes().updateWithResponse("exampleResourceGroup", "exampleWorkspace", + "exampleIntegrationRuntime", "Node_1", new UpdateIntegrationRuntimeNodeRequest().withConcurrentJobsLimit(2), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeObjectMetadataListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeObjectMetadataListSamples.java index 9ee459d02331..8ed188a93a1d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeObjectMetadataListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeObjectMetadataListSamples.java @@ -6,24 +6,22 @@ import com.azure.resourcemanager.synapse.models.GetSsisObjectMetadataRequest; -/** Samples for IntegrationRuntimeObjectMetadata List. */ +/** + * Samples for IntegrationRuntimeObjectMetadata List. + */ public final class IntegrationRuntimeObjectMetadataListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimeObjectMetadata_List.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * IntegrationRuntimeObjectMetadata_List.json */ /** * Sample code: Get integration runtime object metadata. - * + * * @param manager Entry point to SynapseManager. */ public static void getIntegrationRuntimeObjectMetadata(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .integrationRuntimeObjectMetadatas() - .listWithResponse( - "exampleResourceGroup", - "exampleWorkspace", - "testactivityv2", - new GetSsisObjectMetadataRequest().withMetadataPath("ssisFolders"), - com.azure.core.util.Context.NONE); + manager.integrationRuntimeObjectMetadatas().listWithResponse("exampleResourceGroup", "exampleWorkspace", + "testactivityv2", new GetSsisObjectMetadataRequest().withMetadataPath("ssisFolders"), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeObjectMetadataRefreshSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeObjectMetadataRefreshSamples.java index c2abdb0a754c..659cccf10401 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeObjectMetadataRefreshSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeObjectMetadataRefreshSamples.java @@ -4,19 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for IntegrationRuntimeObjectMetadata Refresh. */ +/** + * Samples for IntegrationRuntimeObjectMetadata Refresh. + */ public final class IntegrationRuntimeObjectMetadataRefreshSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimeObjectMetadata_Refresh.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * IntegrationRuntimeObjectMetadata_Refresh.json */ /** * Sample code: Refresh object metadata. - * + * * @param manager Entry point to SynapseManager. */ public static void refreshObjectMetadata(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .integrationRuntimeObjectMetadatas() - .refresh("exampleResourceGroup", "exampleWorkspace", "testactivityv2", com.azure.core.util.Context.NONE); + manager.integrationRuntimeObjectMetadatas().refresh("exampleResourceGroup", "exampleWorkspace", + "testactivityv2", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeStatusOperationGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeStatusOperationGetSamples.java index 24c3c127d0bf..ceb11cceba0d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeStatusOperationGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeStatusOperationGetSamples.java @@ -4,23 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for IntegrationRuntimeStatusOperation Get. */ +/** + * Samples for IntegrationRuntimeStatusOperation Get. + */ public final class IntegrationRuntimeStatusOperationGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_GetStatus.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * IntegrationRuntimes_GetStatus.json */ /** * Sample code: Get status. - * + * * @param manager Entry point to SynapseManager. */ public static void getStatus(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .integrationRuntimeStatusOperations() - .getWithResponse( - "exampleResourceGroup", - "exampleWorkspace", - "exampleIntegrationRuntime", - com.azure.core.util.Context.NONE); + manager.integrationRuntimeStatusOperations().getWithResponse("exampleResourceGroup", "exampleWorkspace", + "exampleIntegrationRuntime", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesCreateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesCreateSamples.java index bd6d42673625..05280b3c9ea0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesCreateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesCreateSamples.java @@ -6,20 +6,21 @@ import com.azure.resourcemanager.synapse.models.SelfHostedIntegrationRuntime; -/** Samples for IntegrationRuntimes Create. */ +/** + * Samples for IntegrationRuntimes Create. + */ public final class IntegrationRuntimesCreateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_Create.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * IntegrationRuntimes_Create.json */ /** * Sample code: Create integration runtime. - * + * * @param manager Entry point to SynapseManager. */ public static void createIntegrationRuntime(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .integrationRuntimes() - .define("exampleIntegrationRuntime") + manager.integrationRuntimes().define("exampleIntegrationRuntime") .withExistingWorkspace("exampleResourceGroup", "exampleWorkspace") .withProperties(new SelfHostedIntegrationRuntime().withDescription("A selfhosted integration runtime")) .create(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesDeleteSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesDeleteSamples.java index 09710d422c20..72a81c15dbca 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesDeleteSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesDeleteSamples.java @@ -4,23 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for IntegrationRuntimes Delete. */ +/** + * Samples for IntegrationRuntimes Delete. + */ public final class IntegrationRuntimesDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_Delete.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * IntegrationRuntimes_Delete.json */ /** * Sample code: Delete integration runtime. - * + * * @param manager Entry point to SynapseManager. */ public static void deleteIntegrationRuntime(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .integrationRuntimes() - .delete( - "exampleResourceGroup", - "exampleWorkspace", - "exampleIntegrationRuntime", - com.azure.core.util.Context.NONE); + manager.integrationRuntimes().delete("exampleResourceGroup", "exampleWorkspace", "exampleIntegrationRuntime", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesDisableInteractiveQuerySamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesDisableInteractiveQuerySamples.java index 67f0680b1ff1..e947a7ec38ab 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesDisableInteractiveQuerySamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesDisableInteractiveQuerySamples.java @@ -4,23 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for IntegrationRuntimes DisableInteractiveQuery. */ +/** + * Samples for IntegrationRuntimes DisableInteractiveQuery. + */ public final class IntegrationRuntimesDisableInteractiveQuerySamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_DisableInteractiveQuery.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * IntegrationRuntimes_DisableInteractiveQuery.json */ /** * Sample code: Stop integration runtime. - * + * * @param manager Entry point to SynapseManager. */ public static void stopIntegrationRuntime(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .integrationRuntimes() - .disableInteractiveQuery( - "exampleResourceGroup", - "exampleWorkspace", - "exampleManagedIntegrationRuntime", - com.azure.core.util.Context.NONE); + manager.integrationRuntimes().disableInteractiveQuery("exampleResourceGroup", "exampleWorkspace", + "exampleManagedIntegrationRuntime", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesEnableInteractiveQuerySamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesEnableInteractiveQuerySamples.java index 5c0064474d45..9987b9236f15 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesEnableInteractiveQuerySamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesEnableInteractiveQuerySamples.java @@ -4,23 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for IntegrationRuntimes EnableInteractiveQuery. */ +/** + * Samples for IntegrationRuntimes EnableInteractiveQuery. + */ public final class IntegrationRuntimesEnableInteractiveQuerySamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_EnableInteractiveQuery.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * IntegrationRuntimes_EnableInteractiveQuery.json */ /** * Sample code: Stop integration runtime. - * + * * @param manager Entry point to SynapseManager. */ public static void stopIntegrationRuntime(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .integrationRuntimes() - .enableInteractiveQuery( - "exampleResourceGroup", - "exampleWorkspace", - "exampleManagedIntegrationRuntime", - com.azure.core.util.Context.NONE); + manager.integrationRuntimes().enableInteractiveQuery("exampleResourceGroup", "exampleWorkspace", + "exampleManagedIntegrationRuntime", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesGetSamples.java index df096385f748..397df8535e38 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesGetSamples.java @@ -4,24 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for IntegrationRuntimes Get. */ +/** + * Samples for IntegrationRuntimes Get. + */ public final class IntegrationRuntimesGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_Get.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * IntegrationRuntimes_Get.json */ /** * Sample code: Get integration runtime. - * + * * @param manager Entry point to SynapseManager. */ public static void getIntegrationRuntime(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .integrationRuntimes() - .getWithResponse( - "exampleResourceGroup", - "exampleWorkspace", - "exampleIntegrationRuntime", - null, - com.azure.core.util.Context.NONE); + manager.integrationRuntimes().getWithResponse("exampleResourceGroup", "exampleWorkspace", + "exampleIntegrationRuntime", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesListByWorkspaceSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesListByWorkspaceSamples.java index 1055e5c4d2c7..56d718c9cdef 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesListByWorkspaceSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesListByWorkspaceSamples.java @@ -4,19 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for IntegrationRuntimes ListByWorkspace. */ +/** + * Samples for IntegrationRuntimes ListByWorkspace. + */ public final class IntegrationRuntimesListByWorkspaceSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_ListByWorkspace.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * IntegrationRuntimes_ListByWorkspace.json */ /** * Sample code: List integration runtimes. - * + * * @param manager Entry point to SynapseManager. */ public static void listIntegrationRuntimes(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .integrationRuntimes() - .listByWorkspace("exampleResourceGroup", "exampleWorkspace", com.azure.core.util.Context.NONE); + manager.integrationRuntimes().listByWorkspace("exampleResourceGroup", "exampleWorkspace", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesListOutboundNetworkDependenciesEndpointsSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesListOutboundNetworkDependenciesEndpointsSamples.java index a8461f172d3a..53206e74de23 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesListOutboundNetworkDependenciesEndpointsSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesListOutboundNetworkDependenciesEndpointsSamples.java @@ -4,23 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for IntegrationRuntimes ListOutboundNetworkDependenciesEndpoints. */ +/** + * Samples for IntegrationRuntimes ListOutboundNetworkDependenciesEndpoints. + */ public final class IntegrationRuntimesListOutboundNetworkDependenciesEndpointsSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_ListOutboundNetworkDependenciesEndpoints.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * IntegrationRuntimes_ListOutboundNetworkDependenciesEndpoints.json */ /** * Sample code: Get outbound network dependency endpoints. - * + * * @param manager Entry point to SynapseManager. */ public static void getOutboundNetworkDependencyEndpoints(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .integrationRuntimes() - .listOutboundNetworkDependenciesEndpointsWithResponse( - "exampleResourceGroup", - "exampleWorkspace", - "exampleIntegrationRuntime", - com.azure.core.util.Context.NONE); + manager.integrationRuntimes().listOutboundNetworkDependenciesEndpointsWithResponse("exampleResourceGroup", + "exampleWorkspace", "exampleIntegrationRuntime", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesStartSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesStartSamples.java index 070863bf7a02..a1fcaec38ec6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesStartSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesStartSamples.java @@ -4,23 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for IntegrationRuntimes Start. */ +/** + * Samples for IntegrationRuntimes Start. + */ public final class IntegrationRuntimesStartSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_Start.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * IntegrationRuntimes_Start.json */ /** * Sample code: Start integration runtime. - * + * * @param manager Entry point to SynapseManager. */ public static void startIntegrationRuntime(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .integrationRuntimes() - .start( - "exampleResourceGroup", - "exampleWorkspace", - "exampleManagedIntegrationRuntime", - com.azure.core.util.Context.NONE); + manager.integrationRuntimes().start("exampleResourceGroup", "exampleWorkspace", + "exampleManagedIntegrationRuntime", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesStopSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesStopSamples.java index 07fa832cd1ac..8552438c3ae2 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesStopSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesStopSamples.java @@ -4,23 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for IntegrationRuntimes Stop. */ +/** + * Samples for IntegrationRuntimes Stop. + */ public final class IntegrationRuntimesStopSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_Stop.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * IntegrationRuntimes_Stop.json */ /** * Sample code: Stop integration runtime. - * + * * @param manager Entry point to SynapseManager. */ public static void stopIntegrationRuntime(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .integrationRuntimes() - .stop( - "exampleResourceGroup", - "exampleWorkspace", - "exampleManagedIntegrationRuntime", - com.azure.core.util.Context.NONE); + manager.integrationRuntimes().stop("exampleResourceGroup", "exampleWorkspace", + "exampleManagedIntegrationRuntime", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesUpdateSamples.java index 7bdf0d28fcdb..9ff522b6f36c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesUpdateSamples.java @@ -7,27 +7,22 @@ import com.azure.resourcemanager.synapse.models.IntegrationRuntimeAutoUpdate; import com.azure.resourcemanager.synapse.models.IntegrationRuntimeResource; -/** Samples for IntegrationRuntimes Update. */ +/** + * Samples for IntegrationRuntimes Update. + */ public final class IntegrationRuntimesUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_Update.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * IntegrationRuntimes_Update.json */ /** * Sample code: Update integration runtime. - * + * * @param manager Entry point to SynapseManager. */ public static void updateIntegrationRuntime(com.azure.resourcemanager.synapse.SynapseManager manager) { - IntegrationRuntimeResource resource = - manager - .integrationRuntimes() - .getWithResponse( - "exampleResourceGroup", - "exampleWorkspace", - "exampleIntegrationRuntime", - null, - com.azure.core.util.Context.NONE) - .getValue(); + IntegrationRuntimeResource resource = manager.integrationRuntimes().getWithResponse("exampleResourceGroup", + "exampleWorkspace", "exampleIntegrationRuntime", null, com.azure.core.util.Context.NONE).getValue(); resource.update().withAutoUpdate(IntegrationRuntimeAutoUpdate.OFF).withUpdateDelayOffset("\"PT3H\"").apply(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesUpgradeSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesUpgradeSamples.java index 0c9b021140c5..c1d34f702661 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesUpgradeSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesUpgradeSamples.java @@ -4,23 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for IntegrationRuntimes Upgrade. */ +/** + * Samples for IntegrationRuntimes Upgrade. + */ public final class IntegrationRuntimesUpgradeSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_Upgrade.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * IntegrationRuntimes_Upgrade.json */ /** * Sample code: Upgrade integration runtime. - * + * * @param manager Entry point to SynapseManager. */ public static void upgradeIntegrationRuntime(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .integrationRuntimes() - .upgradeWithResponse( - "exampleResourceGroup", - "exampleWorkspace", - "exampleIntegrationRuntime", - com.azure.core.util.Context.NONE); + manager.integrationRuntimes().upgradeWithResponse("exampleResourceGroup", "exampleWorkspace", + "exampleIntegrationRuntime", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesCreateOrUpdateSamples.java index 23b32596e8dc..52b802b64109 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesCreateOrUpdateSamples.java @@ -4,23 +4,22 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for IpFirewallRules CreateOrUpdate. */ +/** + * Samples for IpFirewallRules CreateOrUpdate. + */ public final class IpFirewallRulesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateIpFirewallRule.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateIpFirewallRule.json */ /** * Sample code: Create an IP firewall rule. - * + * * @param manager Entry point to SynapseManager. */ public static void createAnIPFirewallRule(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .ipFirewallRules() - .define("ExampleIpFirewallRule") - .withExistingWorkspace("ExampleResourceGroup", "ExampleWorkspace") - .withEndIpAddress("10.0.0.254") - .withStartIpAddress("10.0.0.0") - .create(); + manager.ipFirewallRules().define("ExampleIpFirewallRule") + .withExistingWorkspace("ExampleResourceGroup", "ExampleWorkspace").withEndIpAddress("10.0.0.254") + .withStartIpAddress("10.0.0.0").create(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesDeleteSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesDeleteSamples.java index a70e852446b2..9affc6acd526 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesDeleteSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesDeleteSamples.java @@ -4,20 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for IpFirewallRules Delete. */ +/** + * Samples for IpFirewallRules Delete. + */ public final class IpFirewallRulesDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteIpFirewallRule.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteIpFirewallRule.json */ /** * Sample code: Delete an IP firewall rule from a workspace. - * + * * @param manager Entry point to SynapseManager. */ public static void deleteAnIPFirewallRuleFromAWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .ipFirewallRules() - .delete( - "ExampleResourceGroup", "ExampleWorkspace", "ExampleIpFirewallRule", com.azure.core.util.Context.NONE); + manager.ipFirewallRules().delete("ExampleResourceGroup", "ExampleWorkspace", "ExampleIpFirewallRule", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesGetSamples.java index 7ea277d5776e..f99171927ffc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesGetSamples.java @@ -4,20 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for IpFirewallRules Get. */ +/** + * Samples for IpFirewallRules Get. + */ public final class IpFirewallRulesGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetIpFirewallRule.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetIpFirewallRule.json */ /** * Sample code: Get IP firewall rule. - * + * * @param manager Entry point to SynapseManager. */ public static void getIPFirewallRule(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .ipFirewallRules() - .getWithResponse( - "ExampleResourceGroup", "ExampleWorkspace", "ExampleIpFirewallRule", com.azure.core.util.Context.NONE); + manager.ipFirewallRules().getWithResponse("ExampleResourceGroup", "ExampleWorkspace", "ExampleIpFirewallRule", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesListByWorkspaceSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesListByWorkspaceSamples.java index 95a84f3c2c5a..fd6063e61845 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesListByWorkspaceSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesListByWorkspaceSamples.java @@ -4,19 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for IpFirewallRules ListByWorkspace. */ +/** + * Samples for IpFirewallRules ListByWorkspace. + */ public final class IpFirewallRulesListByWorkspaceSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListIpFirewallRules.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListIpFirewallRules.json */ /** * Sample code: List IP firewall rules in a workspace. - * + * * @param manager Entry point to SynapseManager. */ public static void listIPFirewallRulesInAWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .ipFirewallRules() - .listByWorkspace("ExampleResourceGroup", "ExampleWorkspace", com.azure.core.util.Context.NONE); + manager.ipFirewallRules().listByWorkspace("ExampleResourceGroup", "ExampleWorkspace", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesReplaceAllSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesReplaceAllSamples.java index 1a579f93244a..8821817225c3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesReplaceAllSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesReplaceAllSamples.java @@ -9,36 +9,30 @@ import java.util.HashMap; import java.util.Map; -/** Samples for IpFirewallRules ReplaceAll. */ +/** + * Samples for IpFirewallRules ReplaceAll. + */ public final class IpFirewallRulesReplaceAllSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ReplaceAllIpFirewallRules.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ReplaceAllIpFirewallRules. + * json */ /** * Sample code: Replace all IP firewall rules in a workspace. - * + * * @param manager Entry point to SynapseManager. */ public static void replaceAllIPFirewallRulesInAWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .ipFirewallRules() - .replaceAll( - "ExampleResourceGroup", - "ExampleWorkspace", - new ReplaceAllIpFirewallRulesRequest() - .withIpFirewallRules( - mapOf( - "AnotherExampleFirewallRule", - new IpFirewallRuleProperties() - .withEndIpAddress("10.0.1.254") - .withStartIpAddress("10.0.1.0"), - "ExampleFirewallRule", - new IpFirewallRuleProperties() - .withEndIpAddress("10.0.0.254") - .withStartIpAddress("10.0.0.0"))), - com.azure.core.util.Context.NONE); + manager.ipFirewallRules().replaceAll("ExampleResourceGroup", "ExampleWorkspace", + new ReplaceAllIpFirewallRulesRequest().withIpFirewallRules(mapOf("AnotherExampleFirewallRule", + new IpFirewallRuleProperties().withEndIpAddress("10.0.1.254").withStartIpAddress("10.0.1.0"), + "ExampleFirewallRule", + new IpFirewallRuleProperties().withEndIpAddress("10.0.0.254").withStartIpAddress("10.0.0.0"))), + com.azure.core.util.Context.NONE); } + // Use "Map.of" if available @SuppressWarnings("unchecked") private static Map mapOf(Object... inputs) { Map map = new HashMap<>(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KeysCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KeysCreateOrUpdateSamples.java index 78c93cc07878..678b48fddee0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KeysCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KeysCreateOrUpdateSamples.java @@ -4,23 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for Keys CreateOrUpdate. */ +/** + * Samples for Keys CreateOrUpdate. + */ public final class KeysCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateKey.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateKey.json */ /** * Sample code: Create or update a workspace key. - * + * * @param manager Entry point to SynapseManager. */ public static void createOrUpdateAWorkspaceKey(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .keys() - .define("somekey") - .withExistingWorkspace("ExampleResourceGroup", "ExampleWorkspace") - .withIsActiveCmk(true) - .withKeyVaultUrl("https://vault.azure.net/keys/somesecret") - .create(); + manager.keys().define("somekey").withExistingWorkspace("ExampleResourceGroup", "ExampleWorkspace") + .withIsActiveCmk(true).withKeyVaultUrl("https://vault.azure.net/keys/somesecret").create(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KeysDeleteSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KeysDeleteSamples.java index 5349ce611d2b..549a08a74436 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KeysDeleteSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KeysDeleteSamples.java @@ -4,20 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for Keys Delete. */ +/** + * Samples for Keys Delete. + */ public final class KeysDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteKey.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteKey.json */ /** * Sample code: Delete a workspace key. - * + * * @param manager Entry point to SynapseManager. */ public static void deleteAWorkspaceKey(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .keys() - .deleteWithResponse( - "ExampleResourceGroup", "ExampleWorkspace", "somekey", com.azure.core.util.Context.NONE); + manager.keys().deleteWithResponse("ExampleResourceGroup", "ExampleWorkspace", "somekey", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KeysGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KeysGetSamples.java index 31a0bd0d9c31..83b93a25ce18 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KeysGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KeysGetSamples.java @@ -4,19 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for Keys Get. */ +/** + * Samples for Keys Get. + */ public final class KeysGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetKey.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetKey.json */ /** * Sample code: Get a workspace key. - * + * * @param manager Entry point to SynapseManager. */ public static void getAWorkspaceKey(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .keys() - .getWithResponse("ExampleResourceGroup", "ExampleWorkspace", "somekey", com.azure.core.util.Context.NONE); + manager.keys().getWithResponse("ExampleResourceGroup", "ExampleWorkspace", "somekey", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KeysListByWorkspaceSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KeysListByWorkspaceSamples.java index 892311da197d..e461a3171c6c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KeysListByWorkspaceSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KeysListByWorkspaceSamples.java @@ -4,14 +4,17 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for Keys ListByWorkspace. */ +/** + * Samples for Keys ListByWorkspace. + */ public final class KeysListByWorkspaceSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListKeysInWorkspace.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListKeysInWorkspace.json */ /** * Sample code: List keys in workspace. - * + * * @param manager Entry point to SynapseManager. */ public static void listKeysInWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoOperationsListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoOperationsListSamples.java index 930a17b134fd..d0e902a388c9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoOperationsListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoOperationsListSamples.java @@ -4,14 +4,18 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for KustoOperations List. */ +/** + * Samples for KustoOperations List. + */ public final class KustoOperationsListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoOperationsList.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoOperationsList. + * json */ /** * Sample code: KustoOperationsList. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoOperationsList(com.azure.resourcemanager.synapse.SynapseManager manager) { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateSamples.java index c95e592a5959..9a17d1c7c329 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateSamples.java @@ -8,35 +8,33 @@ import com.azure.resourcemanager.synapse.models.TableLevelSharingProperties; import java.util.Arrays; -/** Samples for KustoPoolAttachedDatabaseConfigurations CreateOrUpdate. */ +/** + * Samples for KustoPoolAttachedDatabaseConfigurations CreateOrUpdate. + */ public final class KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolAttachedDatabaseConfigurationsCreateOrUpdate.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolAttachedDatabaseConfigurationsCreateOrUpdate.json */ /** * Sample code: KustoPoolAttachedDatabaseConfigurationsCreateOrUpdate. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolAttachedDatabaseConfigurationsCreateOrUpdate( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolAttachedDatabaseConfigurations() - .define("attachedDatabaseConfigurations1") - .withExistingKustoPool("kustorptest", "kustoclusterrptest4", "kustorptest") - .withRegion("westus") + manager.kustoPoolAttachedDatabaseConfigurations().define("attachedDatabaseConfigurations1") + .withExistingKustoPool("kustorptest", "kustoclusterrptest4", "kustorptest").withRegion("westus") .withDatabaseName("kustodatabase") .withKustoPoolResourceId( "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/Workspaces/kustorptest/KustoPools/kustoclusterrptest4") .withDefaultPrincipalsModificationKind(DefaultPrincipalsModificationKind.UNION) - .withTableLevelSharingProperties( - new TableLevelSharingProperties() - .withTablesToInclude(Arrays.asList("Table1")) - .withTablesToExclude(Arrays.asList("Table2")) - .withExternalTablesToInclude(Arrays.asList("ExternalTable1")) - .withExternalTablesToExclude(Arrays.asList("ExternalTable2")) - .withMaterializedViewsToInclude(Arrays.asList("MaterializedViewTable1")) - .withMaterializedViewsToExclude(Arrays.asList("MaterializedViewTable2"))) + .withTableLevelSharingProperties(new TableLevelSharingProperties() + .withTablesToInclude(Arrays.asList("Table1")).withTablesToExclude(Arrays.asList("Table2")) + .withExternalTablesToInclude(Arrays.asList("ExternalTable1")) + .withExternalTablesToExclude(Arrays.asList("ExternalTable2")) + .withMaterializedViewsToInclude(Arrays.asList("MaterializedViewTable1")) + .withMaterializedViewsToExclude(Arrays.asList("MaterializedViewTable2"))) .create(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsDeleteSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsDeleteSamples.java index d9554dece7a9..faff8aceae02 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsDeleteSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsDeleteSamples.java @@ -4,25 +4,22 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for KustoPoolAttachedDatabaseConfigurations Delete. */ +/** + * Samples for KustoPoolAttachedDatabaseConfigurations Delete. + */ public final class KustoPoolAttachedDatabaseConfigurationsDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolAttachedDatabaseConfigurationsDelete.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolAttachedDatabaseConfigurationsDelete.json */ /** * Sample code: KustoPoolAttachedDatabaseConfigurationsDelete. - * + * * @param manager Entry point to SynapseManager. */ - public static void kustoPoolAttachedDatabaseConfigurationsDelete( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolAttachedDatabaseConfigurations() - .delete( - "kustorptest", - "kustoclusterrptest4", - "attachedDatabaseConfigurations1", - "kustorptest", - com.azure.core.util.Context.NONE); + public static void + kustoPoolAttachedDatabaseConfigurationsDelete(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.kustoPoolAttachedDatabaseConfigurations().delete("kustorptest", "kustoclusterrptest4", + "attachedDatabaseConfigurations1", "kustorptest", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsGetSamples.java index fb73ead78fee..f8c333a116d9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsGetSamples.java @@ -4,25 +4,22 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for KustoPoolAttachedDatabaseConfigurations Get. */ +/** + * Samples for KustoPoolAttachedDatabaseConfigurations Get. + */ public final class KustoPoolAttachedDatabaseConfigurationsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolAttachedDatabaseConfigurationsGet.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolAttachedDatabaseConfigurationsGet.json */ /** * Sample code: KustoPoolAttachedDatabaseConfigurationsGet. - * + * * @param manager Entry point to SynapseManager. */ - public static void kustoPoolAttachedDatabaseConfigurationsGet( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolAttachedDatabaseConfigurations() - .getWithResponse( - "kustorptest", - "kustoclusterrptest4", - "attachedDatabaseConfigurations1", - "kustorptest", - com.azure.core.util.Context.NONE); + public static void + kustoPoolAttachedDatabaseConfigurationsGet(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.kustoPoolAttachedDatabaseConfigurations().getWithResponse("kustorptest", "kustoclusterrptest4", + "attachedDatabaseConfigurations1", "kustorptest", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsListByKustoPoolSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsListByKustoPoolSamples.java index 40c07977712f..e5f4b176fdf8 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsListByKustoPoolSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsListByKustoPoolSamples.java @@ -4,20 +4,22 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for KustoPoolAttachedDatabaseConfigurations ListByKustoPool. */ +/** + * Samples for KustoPoolAttachedDatabaseConfigurations ListByKustoPool. + */ public final class KustoPoolAttachedDatabaseConfigurationsListByKustoPoolSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolAttachedDatabaseConfigurationsListByKustoPool.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolAttachedDatabaseConfigurationsListByKustoPool.json */ /** * Sample code: KustoPoolAttachedDatabaseConfigurationsListByKustoPool. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolAttachedDatabaseConfigurationsListByKustoPool( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolAttachedDatabaseConfigurations() - .listByKustoPool("kustorptest", "kustoclusterrptest4", "kustorptest", com.azure.core.util.Context.NONE); + manager.kustoPoolAttachedDatabaseConfigurations().listByKustoPool("kustorptest", "kustoclusterrptest4", + "kustorptest", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolChildResourceCheckNameAvailabilitySamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolChildResourceCheckNameAvailabilitySamples.java index dcd7e66f8867..65f9ccedd365 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolChildResourceCheckNameAvailabilitySamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolChildResourceCheckNameAvailabilitySamples.java @@ -7,49 +7,42 @@ import com.azure.resourcemanager.synapse.models.DatabaseCheckNameRequest; import com.azure.resourcemanager.synapse.models.Type; -/** Samples for KustoPoolChildResource CheckNameAvailability. */ +/** + * Samples for KustoPoolChildResource CheckNameAvailability. + */ public final class KustoPoolChildResourceCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolAttachedDatabaseConfigurationCheckNameAvailability.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolAttachedDatabaseConfigurationCheckNameAvailability.json */ /** * Sample code: KustoPoolAttachedDatabaseConfigurationCheckNameAvailability. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolAttachedDatabaseConfigurationCheckNameAvailability( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolChildResources() - .checkNameAvailabilityWithResponse( - "kustorptest", - "kustoclusterrptest4", - "kustorptest", - new DatabaseCheckNameRequest() - .withName("adc1") - .withType(Type.MICROSOFT_SYNAPSE_WORKSPACES_KUSTO_POOLS_ATTACHED_DATABASE_CONFIGURATIONS), - com.azure.core.util.Context.NONE); + manager.kustoPoolChildResources().checkNameAvailabilityWithResponse("kustorptest", "kustoclusterrptest4", + "kustorptest", + new DatabaseCheckNameRequest().withName("adc1") + .withType(Type.MICROSOFT_SYNAPSE_WORKSPACES_KUSTO_POOLS_ATTACHED_DATABASE_CONFIGURATIONS), + com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDatabasesCheckNameAvailability.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolDatabasesCheckNameAvailability.json */ /** * Sample code: KustoPoolDatabasesCheckNameAvailability. - * + * * @param manager Entry point to SynapseManager. */ - public static void kustoPoolDatabasesCheckNameAvailability( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolChildResources() - .checkNameAvailabilityWithResponse( - "synapseWorkspaceName", - "kustoclusterrptest4", - "kustorptest", - new DatabaseCheckNameRequest() - .withName("database1") - .withType(Type.MICROSOFT_SYNAPSE_WORKSPACES_KUSTO_POOLS_DATABASES), - com.azure.core.util.Context.NONE); + public static void + kustoPoolDatabasesCheckNameAvailability(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.kustoPoolChildResources().checkNameAvailabilityWithResponse( + "synapseWorkspaceName", "kustoclusterrptest4", "kustorptest", new DatabaseCheckNameRequest() + .withName("database1").withType(Type.MICROSOFT_SYNAPSE_WORKSPACES_KUSTO_POOLS_DATABASES), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsCheckNameAvailabilitySamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsCheckNameAvailabilitySamples.java index 20b22da17b7b..77d4f5207f3b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsCheckNameAvailabilitySamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsCheckNameAvailabilitySamples.java @@ -6,26 +6,23 @@ import com.azure.resourcemanager.synapse.models.DataConnectionCheckNameRequest; -/** Samples for KustoPoolDataConnections CheckNameAvailability. */ +/** + * Samples for KustoPoolDataConnections CheckNameAvailability. + */ public final class KustoPoolDataConnectionsCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDataConnectionsCheckNameAvailability.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolDataConnectionsCheckNameAvailability.json */ /** * Sample code: KustoPoolDataConnectionsCheckNameAvailability. - * + * * @param manager Entry point to SynapseManager. */ - public static void kustoPoolDataConnectionsCheckNameAvailability( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolDataConnections() - .checkNameAvailabilityWithResponse( - "kustorptest", - "synapseWorkspaceName", - "kustoclusterrptest4", - "Kustodatabase8", - new DataConnectionCheckNameRequest().withName("DataConnections8"), - com.azure.core.util.Context.NONE); + public static void + kustoPoolDataConnectionsCheckNameAvailability(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.kustoPoolDataConnections().checkNameAvailabilityWithResponse("kustorptest", "synapseWorkspaceName", + "kustoclusterrptest4", "Kustodatabase8", new DataConnectionCheckNameRequest().withName("DataConnections8"), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsCreateOrUpdateSamples.java index f3455ae1d2ac..1806e73314f9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsCreateOrUpdateSamples.java @@ -6,31 +6,26 @@ import com.azure.resourcemanager.synapse.models.EventHubDataConnection; -/** Samples for KustoPoolDataConnections CreateOrUpdate. */ +/** + * Samples for KustoPoolDataConnections CreateOrUpdate. + */ public final class KustoPoolDataConnectionsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDataConnectionsCreateOrUpdate.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolDataConnectionsCreateOrUpdate.json */ /** * Sample code: KustoPoolDataConnectionsCreateOrUpdate.json. - * + * * @param manager Entry point to SynapseManager. */ - public static void kustoPoolDataConnectionsCreateOrUpdateJson( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolDataConnections() - .createOrUpdate( - "kustorptest", - "synapseWorkspaceName", - "kustoclusterrptest4", - "KustoDatabase8", - "DataConnections8", - new EventHubDataConnection() - .withLocation("westus") - .withEventHubResourceId( - "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1") - .withConsumerGroup("testConsumerGroup1"), - com.azure.core.util.Context.NONE); + public static void + kustoPoolDataConnectionsCreateOrUpdateJson(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.kustoPoolDataConnections().createOrUpdate("kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", + "KustoDatabase8", "DataConnections8", + new EventHubDataConnection().withLocation("westus").withEventHubResourceId( + "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1") + .withConsumerGroup("testConsumerGroup1"), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsDataConnectionValidationSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsDataConnectionValidationSamples.java index c1a1df94a1f0..28bf752e3fe4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsDataConnectionValidationSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsDataConnectionValidationSamples.java @@ -7,27 +7,23 @@ import com.azure.resourcemanager.synapse.fluent.models.DataConnectionValidationInner; import com.azure.resourcemanager.synapse.models.EventHubDataConnection; -/** Samples for KustoPoolDataConnections DataConnectionValidation. */ +/** + * Samples for KustoPoolDataConnections DataConnectionValidation. + */ public final class KustoPoolDataConnectionsDataConnectionValidationSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDataConnectionValidation.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolDataConnectionValidation.json */ /** * Sample code: KustoPoolDataConnectionValidation. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolDataConnectionValidation(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolDataConnections() - .dataConnectionValidation( - "kustorptest", - "kustorptest", - "kustoclusterrptest4", - "KustoDatabase8", - new DataConnectionValidationInner() - .withDataConnectionName("DataConnections8") - .withProperties(new EventHubDataConnection()), - com.azure.core.util.Context.NONE); + manager.kustoPoolDataConnections().dataConnectionValidation( + "kustorptest", "kustorptest", "kustoclusterrptest4", "KustoDatabase8", new DataConnectionValidationInner() + .withDataConnectionName("DataConnections8").withProperties(new EventHubDataConnection()), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsDeleteSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsDeleteSamples.java index 6b294eed1f7a..29169eeacd6d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsDeleteSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsDeleteSamples.java @@ -4,25 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for KustoPoolDataConnections Delete. */ +/** + * Samples for KustoPoolDataConnections Delete. + */ public final class KustoPoolDataConnectionsDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDataConnectionsDelete.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolDataConnectionsDelete.json */ /** * Sample code: KustoPoolDataConnectionsDelete. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolDataConnectionsDelete(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolDataConnections() - .delete( - "kustorptest", - "synapseWorkspaceName", - "kustoclusterrptest4", - "KustoDatabase8", - "kustoeventhubconnection1", - com.azure.core.util.Context.NONE); + manager.kustoPoolDataConnections().delete("kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", + "KustoDatabase8", "kustoeventhubconnection1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsGetSamples.java index 9d21b57b03fc..3788eca2c3e9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsGetSamples.java @@ -4,25 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for KustoPoolDataConnections Get. */ +/** + * Samples for KustoPoolDataConnections Get. + */ public final class KustoPoolDataConnectionsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDataConnectionsGet.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolDataConnectionsGet.json */ /** * Sample code: KustoPoolDataConnectionsGet. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolDataConnectionsGet(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolDataConnections() - .getWithResponse( - "kustorptest", - "synapseWorkspaceName", - "kustoclusterrptest4", - "KustoDatabase8", - "DataConnections8", - com.azure.core.util.Context.NONE); + manager.kustoPoolDataConnections().getWithResponse("kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", + "KustoDatabase8", "DataConnections8", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsListByDatabaseSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsListByDatabaseSamples.java index a6553eadb8bf..fb8cab588827 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsListByDatabaseSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsListByDatabaseSamples.java @@ -4,25 +4,22 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for KustoPoolDataConnections ListByDatabase. */ +/** + * Samples for KustoPoolDataConnections ListByDatabase. + */ public final class KustoPoolDataConnectionsListByDatabaseSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDataConnectionsListByDatabase.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolDataConnectionsListByDatabase.json */ /** * Sample code: KustoPoolDataConnectionsListByDatabase. - * + * * @param manager Entry point to SynapseManager. */ - public static void kustoPoolDataConnectionsListByDatabase( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolDataConnections() - .listByDatabase( - "kustorptest", - "synapseWorkspaceName", - "kustoclusterrptest4", - "KustoDatabase8", - com.azure.core.util.Context.NONE); + public static void + kustoPoolDataConnectionsListByDatabase(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.kustoPoolDataConnections().listByDatabase("kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", + "KustoDatabase8", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsUpdateSamples.java index 4b0f9d9dc4ac..8f28b66b4242 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsUpdateSamples.java @@ -6,30 +6,25 @@ import com.azure.resourcemanager.synapse.models.EventHubDataConnection; -/** Samples for KustoPoolDataConnections Update. */ +/** + * Samples for KustoPoolDataConnections Update. + */ public final class KustoPoolDataConnectionsUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDataConnectionsUpdate.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolDataConnectionsUpdate.json */ /** * Sample code: KustoPoolDataConnectionsUpdate. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolDataConnectionsUpdate(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolDataConnections() - .update( - "kustorptest", - "synapseWorkspaceName", - "kustoclusterrptest4", - "KustoDatabase8", - "DataConnections8", - new EventHubDataConnection() - .withLocation("westus") - .withEventHubResourceId( - "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1") - .withConsumerGroup("testConsumerGroup1"), - com.azure.core.util.Context.NONE); + manager.kustoPoolDataConnections().update("kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", + "KustoDatabase8", "DataConnections8", + new EventHubDataConnection().withLocation("westus").withEventHubResourceId( + "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1") + .withConsumerGroup("testConsumerGroup1"), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsCheckNameAvailabilitySamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsCheckNameAvailabilitySamples.java index f6c508aae495..caa720dc7f88 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsCheckNameAvailabilitySamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsCheckNameAvailabilitySamples.java @@ -6,26 +6,24 @@ import com.azure.resourcemanager.synapse.models.DatabasePrincipalAssignmentCheckNameRequest; -/** Samples for KustoPoolDatabasePrincipalAssignments CheckNameAvailability. */ +/** + * Samples for KustoPoolDatabasePrincipalAssignments CheckNameAvailability. + */ public final class KustoPoolDatabasePrincipalAssignmentsCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDatabasePrincipalAssignmentsCheckNameAvailability.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolDatabasePrincipalAssignmentsCheckNameAvailability.json */ /** * Sample code: KustoPoolDatabasePrincipalAssignmentsCheckNameAvailability. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolDatabasePrincipalAssignmentsCheckNameAvailability( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolDatabasePrincipalAssignments() - .checkNameAvailabilityWithResponse( - "synapseWorkspaceName", - "kustoclusterrptest4", - "Kustodatabase8", - "kustorptest", - new DatabasePrincipalAssignmentCheckNameRequest().withName("kustoprincipal1"), - com.azure.core.util.Context.NONE); + manager.kustoPoolDatabasePrincipalAssignments().checkNameAvailabilityWithResponse("synapseWorkspaceName", + "kustoclusterrptest4", "Kustodatabase8", "kustorptest", + new DatabasePrincipalAssignmentCheckNameRequest().withName("kustoprincipal1"), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateSamples.java index 00aef9fdb634..24f7d3c566fe 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateSamples.java @@ -7,26 +7,24 @@ import com.azure.resourcemanager.synapse.models.DatabasePrincipalRole; import com.azure.resourcemanager.synapse.models.PrincipalType; -/** Samples for KustoPoolDatabasePrincipalAssignments CreateOrUpdate. */ +/** + * Samples for KustoPoolDatabasePrincipalAssignments CreateOrUpdate. + */ public final class KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDatabasePrincipalAssignmentsCreateOrUpdate.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolDatabasePrincipalAssignmentsCreateOrUpdate.json */ /** * Sample code: KustoPoolDatabasePrincipalAssignmentsCreateOrUpdate. - * + * * @param manager Entry point to SynapseManager. */ - public static void kustoPoolDatabasePrincipalAssignmentsCreateOrUpdate( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolDatabasePrincipalAssignments() - .define("kustoprincipal1") + public static void + kustoPoolDatabasePrincipalAssignmentsCreateOrUpdate(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.kustoPoolDatabasePrincipalAssignments().define("kustoprincipal1") .withExistingDatabase("synapseWorkspaceName", "kustoclusterrptest4", "Kustodatabase8", "kustorptest") - .withPrincipalId("87654321-1234-1234-1234-123456789123") - .withRole(DatabasePrincipalRole.ADMIN) - .withTenantId("12345678-1234-1234-1234-123456789123") - .withPrincipalType(PrincipalType.APP) - .create(); + .withPrincipalId("87654321-1234-1234-1234-123456789123").withRole(DatabasePrincipalRole.ADMIN) + .withTenantId("12345678-1234-1234-1234-123456789123").withPrincipalType(PrincipalType.APP).create(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsDeleteSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsDeleteSamples.java index bf8f45f9506b..272c16b51ade 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsDeleteSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsDeleteSamples.java @@ -4,26 +4,22 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for KustoPoolDatabasePrincipalAssignments Delete. */ +/** + * Samples for KustoPoolDatabasePrincipalAssignments Delete. + */ public final class KustoPoolDatabasePrincipalAssignmentsDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDatabasePrincipalAssignmentsDelete.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolDatabasePrincipalAssignmentsDelete.json */ /** * Sample code: KustoPoolDatabasePrincipalAssignmentsDelete. - * + * * @param manager Entry point to SynapseManager. */ - public static void kustoPoolDatabasePrincipalAssignmentsDelete( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolDatabasePrincipalAssignments() - .delete( - "synapseWorkspaceName", - "kustoclusterrptest4", - "Kustodatabase8", - "kustoprincipal1", - "kustorptest", - com.azure.core.util.Context.NONE); + public static void + kustoPoolDatabasePrincipalAssignmentsDelete(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.kustoPoolDatabasePrincipalAssignments().delete("synapseWorkspaceName", "kustoclusterrptest4", + "Kustodatabase8", "kustoprincipal1", "kustorptest", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsGetSamples.java index 6e92848a41f6..a2344178b474 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsGetSamples.java @@ -4,26 +4,22 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for KustoPoolDatabasePrincipalAssignments Get. */ +/** + * Samples for KustoPoolDatabasePrincipalAssignments Get. + */ public final class KustoPoolDatabasePrincipalAssignmentsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDatabasePrincipalAssignmentsGet.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolDatabasePrincipalAssignmentsGet.json */ /** * Sample code: KustoPoolDatabasePrincipalAssignmentsGet. - * + * * @param manager Entry point to SynapseManager. */ - public static void kustoPoolDatabasePrincipalAssignmentsGet( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolDatabasePrincipalAssignments() - .getWithResponse( - "synapseWorkspaceName", - "kustoclusterrptest4", - "Kustodatabase8", - "kustoprincipal1", - "kustorptest", - com.azure.core.util.Context.NONE); + public static void + kustoPoolDatabasePrincipalAssignmentsGet(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.kustoPoolDatabasePrincipalAssignments().getWithResponse("synapseWorkspaceName", "kustoclusterrptest4", + "Kustodatabase8", "kustoprincipal1", "kustorptest", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsListSamples.java index fb3bb0904ca0..eb7179444e64 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsListSamples.java @@ -4,25 +4,22 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for KustoPoolDatabasePrincipalAssignments List. */ +/** + * Samples for KustoPoolDatabasePrincipalAssignments List. + */ public final class KustoPoolDatabasePrincipalAssignmentsListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDatabasePrincipalAssignmentsList.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolDatabasePrincipalAssignmentsList.json */ /** * Sample code: KustoPoolDatabasePrincipalAssignmentsList. - * + * * @param manager Entry point to SynapseManager. */ - public static void kustoPoolDatabasePrincipalAssignmentsList( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolDatabasePrincipalAssignments() - .list( - "synapseWorkspaceName", - "kustoclusterrptest4", - "Kustodatabase8", - "kustorptest", - com.azure.core.util.Context.NONE); + public static void + kustoPoolDatabasePrincipalAssignmentsList(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.kustoPoolDatabasePrincipalAssignments().list("synapseWorkspaceName", "kustoclusterrptest4", + "Kustodatabase8", "kustorptest", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesCreateOrUpdateSamples.java index c45630ac69bf..79f3592b6944 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesCreateOrUpdateSamples.java @@ -7,25 +7,23 @@ import com.azure.resourcemanager.synapse.models.ReadWriteDatabase; import java.time.Duration; -/** Samples for KustoPoolDatabases CreateOrUpdate. */ +/** + * Samples for KustoPoolDatabases CreateOrUpdate. + */ public final class KustoPoolDatabasesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDatabasesCreateOrUpdate.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolDatabasesCreateOrUpdate.json */ /** * Sample code: KustoPoolDatabasesCreateOrUpdate. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolDatabasesCreateOrUpdate(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolDatabases() - .createOrUpdate( - "kustorptest", - "synapseWorkspaceName", - "kustoclusterrptest4", - "KustoDatabase8", - new ReadWriteDatabase().withLocation("westus").withSoftDeletePeriod(Duration.parse("P1D")), - com.azure.core.util.Context.NONE); + manager.kustoPoolDatabases().createOrUpdate("kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", + "KustoDatabase8", + new ReadWriteDatabase().withLocation("westus").withSoftDeletePeriod(Duration.parse("P1D")), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesDeleteSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesDeleteSamples.java index 507a472a67d2..69e8694c9073 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesDeleteSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesDeleteSamples.java @@ -4,24 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for KustoPoolDatabases Delete. */ +/** + * Samples for KustoPoolDatabases Delete. + */ public final class KustoPoolDatabasesDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDatabasesDelete.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolDatabasesDelete.json */ /** * Sample code: KustoPoolDatabasesDelete. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolDatabasesDelete(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolDatabases() - .delete( - "kustorptest", - "synapseWorkspaceName", - "kustoclusterrptest4", - "KustoDatabase8", - com.azure.core.util.Context.NONE); + manager.kustoPoolDatabases().delete("kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", + "KustoDatabase8", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesGetSamples.java index 3c8806932070..0deae8192e62 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesGetSamples.java @@ -4,24 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for KustoPoolDatabases Get. */ +/** + * Samples for KustoPoolDatabases Get. + */ public final class KustoPoolDatabasesGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDatabasesGet.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolDatabasesGet.json */ /** * Sample code: KustoPoolDatabasesGet. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolDatabasesGet(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolDatabases() - .getWithResponse( - "kustorptest", - "synapseWorkspaceName", - "kustoclusterrptest4", - "KustoDatabase8", - com.azure.core.util.Context.NONE); + manager.kustoPoolDatabases().getWithResponse("kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", + "KustoDatabase8", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesListByKustoPoolSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesListByKustoPoolSamples.java index 5d0e0d832349..8798b68a27f9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesListByKustoPoolSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesListByKustoPoolSamples.java @@ -4,20 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for KustoPoolDatabases ListByKustoPool. */ +/** + * Samples for KustoPoolDatabases ListByKustoPool. + */ public final class KustoPoolDatabasesListByKustoPoolSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoDatabasesListByKustoPool.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoDatabasesListByKustoPool.json */ /** * Sample code: KustoDatabasesListByKustoPool. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoDatabasesListByKustoPool(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolDatabases() - .listByKustoPool( - "kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", com.azure.core.util.Context.NONE); + manager.kustoPoolDatabases().listByKustoPool("kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesUpdateSamples.java index 8ab3bc2267e3..a271bb267dc3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesUpdateSamples.java @@ -7,25 +7,22 @@ import com.azure.resourcemanager.synapse.models.ReadWriteDatabase; import java.time.Duration; -/** Samples for KustoPoolDatabases Update. */ +/** + * Samples for KustoPoolDatabases Update. + */ public final class KustoPoolDatabasesUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDatabasesUpdate.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolDatabasesUpdate.json */ /** * Sample code: KustoPoolDatabasesUpdate. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolDatabasesUpdate(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolDatabases() - .update( - "kustorptest", - "synapseWorkspaceName", - "kustoclusterrptest4", - "KustoDatabase8", - new ReadWriteDatabase().withSoftDeletePeriod(Duration.parse("P1D")), - com.azure.core.util.Context.NONE); + manager.kustoPoolDatabases().update("kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", + "KustoDatabase8", new ReadWriteDatabase().withSoftDeletePeriod(Duration.parse("P1D")), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsCheckNameAvailabilitySamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsCheckNameAvailabilitySamples.java index c597b40bca4c..99af8bb57182 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsCheckNameAvailabilitySamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsCheckNameAvailabilitySamples.java @@ -6,25 +6,24 @@ import com.azure.resourcemanager.synapse.models.ClusterPrincipalAssignmentCheckNameRequest; -/** Samples for KustoPoolPrincipalAssignments CheckNameAvailability. */ +/** + * Samples for KustoPoolPrincipalAssignments CheckNameAvailability. + */ public final class KustoPoolPrincipalAssignmentsCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolPrincipalAssignmentsCheckNameAvailability.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolPrincipalAssignmentsCheckNameAvailability.json */ /** * Sample code: KustoPoolPrincipalAssignmentsCheckNameAvailability. - * + * * @param manager Entry point to SynapseManager. */ - public static void kustoPoolPrincipalAssignmentsCheckNameAvailability( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolPrincipalAssignments() - .checkNameAvailabilityWithResponse( - "synapseWorkspaceName", - "kustoclusterrptest4", - "kustorptest", - new ClusterPrincipalAssignmentCheckNameRequest().withName("kustoprincipal1"), - com.azure.core.util.Context.NONE); + public static void + kustoPoolPrincipalAssignmentsCheckNameAvailability(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.kustoPoolPrincipalAssignments().checkNameAvailabilityWithResponse("synapseWorkspaceName", + "kustoclusterrptest4", "kustorptest", + new ClusterPrincipalAssignmentCheckNameRequest().withName("kustoprincipal1"), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsCreateOrUpdateSamples.java index 8553d9e1d492..b9ee678698fb 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsCreateOrUpdateSamples.java @@ -7,26 +7,24 @@ import com.azure.resourcemanager.synapse.models.ClusterPrincipalRole; import com.azure.resourcemanager.synapse.models.PrincipalType; -/** Samples for KustoPoolPrincipalAssignments CreateOrUpdate. */ +/** + * Samples for KustoPoolPrincipalAssignments CreateOrUpdate. + */ public final class KustoPoolPrincipalAssignmentsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolPrincipalAssignmentsCreateOrUpdate.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolPrincipalAssignmentsCreateOrUpdate.json */ /** * Sample code: KustoPoolPrincipalAssignmentsCreateOrUpdate. - * + * * @param manager Entry point to SynapseManager. */ - public static void kustoPoolPrincipalAssignmentsCreateOrUpdate( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolPrincipalAssignments() - .define("kustoprincipal1") + public static void + kustoPoolPrincipalAssignmentsCreateOrUpdate(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.kustoPoolPrincipalAssignments().define("kustoprincipal1") .withExistingKustoPool("synapseWorkspaceName", "kustoclusterrptest4", "kustorptest") - .withPrincipalId("87654321-1234-1234-1234-123456789123") - .withRole(ClusterPrincipalRole.ALL_DATABASES_ADMIN) - .withTenantId("12345678-1234-1234-1234-123456789123") - .withPrincipalType(PrincipalType.APP) - .create(); + .withPrincipalId("87654321-1234-1234-1234-123456789123").withRole(ClusterPrincipalRole.ALL_DATABASES_ADMIN) + .withTenantId("12345678-1234-1234-1234-123456789123").withPrincipalType(PrincipalType.APP).create(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsDeleteSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsDeleteSamples.java index 64c75aa33c99..6e7219fd25e1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsDeleteSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsDeleteSamples.java @@ -4,24 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for KustoPoolPrincipalAssignments Delete. */ +/** + * Samples for KustoPoolPrincipalAssignments Delete. + */ public final class KustoPoolPrincipalAssignmentsDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolPrincipalAssignmentsDelete.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolPrincipalAssignmentsDelete.json */ /** * Sample code: KustoPoolPrincipalAssignmentsDelete. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolPrincipalAssignmentsDelete(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolPrincipalAssignments() - .delete( - "synapseWorkspaceName", - "kustoclusterrptest4", - "kustoprincipal1", - "kustorptest", - com.azure.core.util.Context.NONE); + manager.kustoPoolPrincipalAssignments().delete("synapseWorkspaceName", "kustoclusterrptest4", "kustoprincipal1", + "kustorptest", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsGetSamples.java index affd93772dbe..03a9617ac24b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsGetSamples.java @@ -4,24 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for KustoPoolPrincipalAssignments Get. */ +/** + * Samples for KustoPoolPrincipalAssignments Get. + */ public final class KustoPoolPrincipalAssignmentsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolPrincipalAssignmentsGet.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolPrincipalAssignmentsGet.json */ /** * Sample code: KustoPoolPrincipalAssignmentsGet. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolPrincipalAssignmentsGet(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolPrincipalAssignments() - .getWithResponse( - "synapseWorkspaceName", - "kustoclusterrptest4", - "kustoprincipal1", - "kustorptest", - com.azure.core.util.Context.NONE); + manager.kustoPoolPrincipalAssignments().getWithResponse("synapseWorkspaceName", "kustoclusterrptest4", + "kustoprincipal1", "kustorptest", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsListSamples.java index c0878980f4a3..444175e3eace 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsListSamples.java @@ -4,19 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for KustoPoolPrincipalAssignments List. */ +/** + * Samples for KustoPoolPrincipalAssignments List. + */ public final class KustoPoolPrincipalAssignmentsListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolPrincipalAssignmentsList.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolPrincipalAssignmentsList.json */ /** * Sample code: KustoPoolPrincipalAssignmentsList. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolPrincipalAssignmentsList(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolPrincipalAssignments() - .list("synapseWorkspaceName", "kustoclusterrptest4", "kustorptest", com.azure.core.util.Context.NONE); + manager.kustoPoolPrincipalAssignments().list("synapseWorkspaceName", "kustoclusterrptest4", "kustorptest", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrivateLinkResourcesOperationListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrivateLinkResourcesOperationListSamples.java index 05f06fda6fa7..df6101ce1c18 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrivateLinkResourcesOperationListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrivateLinkResourcesOperationListSamples.java @@ -4,19 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for KustoPoolPrivateLinkResourcesOperation List. */ +/** + * Samples for KustoPoolPrivateLinkResourcesOperation List. + */ public final class KustoPoolPrivateLinkResourcesOperationListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolPrivateLinkResourcesList.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolPrivateLinkResourcesList.json */ /** * Sample code: KustoPoolPrivateLinkResourcesList. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolPrivateLinkResourcesList(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPoolPrivateLinkResourcesOperations() - .list("DP-900", "synapse-ws-ebi-data", "dataexplorerpool900", com.azure.core.util.Context.NONE); + manager.kustoPoolPrivateLinkResourcesOperations().list("DP-900", "synapse-ws-ebi-data", "dataexplorerpool900", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsAddLanguageExtensionsSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsAddLanguageExtensionsSamples.java index 80c08ed962a0..4895d255416a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsAddLanguageExtensionsSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsAddLanguageExtensionsSamples.java @@ -9,29 +9,24 @@ import com.azure.resourcemanager.synapse.models.LanguageExtensionsList; import java.util.Arrays; -/** Samples for KustoPools AddLanguageExtensions. */ +/** + * Samples for KustoPools AddLanguageExtensions. + */ public final class KustoPoolsAddLanguageExtensionsSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolLanguageExtensionsAdd.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolLanguageExtensionsAdd.json */ /** * Sample code: KustoPoolAddLanguageExtensions. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolAddLanguageExtensions(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPools() - .addLanguageExtensions( - "kustorptest", - "kustoclusterrptest4", - "kustorptest", - new LanguageExtensionsList() - .withValue( - Arrays - .asList( - new LanguageExtensionInner().withLanguageExtensionName(LanguageExtensionName.PYTHON), - new LanguageExtensionInner().withLanguageExtensionName(LanguageExtensionName.R))), - com.azure.core.util.Context.NONE); + manager.kustoPools().addLanguageExtensions("kustorptest", "kustoclusterrptest4", "kustorptest", + new LanguageExtensionsList().withValue( + Arrays.asList(new LanguageExtensionInner().withLanguageExtensionName(LanguageExtensionName.PYTHON), + new LanguageExtensionInner().withLanguageExtensionName(LanguageExtensionName.R))), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsCheckNameAvailabilitySamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsCheckNameAvailabilitySamples.java index 341130a7ad74..18716398f9b4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsCheckNameAvailabilitySamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsCheckNameAvailabilitySamples.java @@ -6,22 +6,21 @@ import com.azure.resourcemanager.synapse.models.KustoPoolCheckNameRequest; -/** Samples for KustoPools CheckNameAvailability. */ +/** + * Samples for KustoPools CheckNameAvailability. + */ public final class KustoPoolsCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsCheckNameAvailability.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolsCheckNameAvailability.json */ /** * Sample code: KustoPoolsCheckNameAvailability. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolsCheckNameAvailability(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPools() - .checkNameAvailabilityWithResponse( - "westus", - new KustoPoolCheckNameRequest().withName("kustoclusterrptest4"), - com.azure.core.util.Context.NONE); + manager.kustoPools().checkNameAvailabilityWithResponse("westus", + new KustoPoolCheckNameRequest().withName("kustoclusterrptest4"), com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsCreateOrUpdateSamples.java index 909df87a82ee..b2d2fcfabca9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsCreateOrUpdateSamples.java @@ -8,26 +8,24 @@ import com.azure.resourcemanager.synapse.models.SkuName; import com.azure.resourcemanager.synapse.models.SkuSize; -/** Samples for KustoPools CreateOrUpdate. */ +/** + * Samples for KustoPools CreateOrUpdate. + */ public final class KustoPoolsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsCreateOrUpdate.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolsCreateOrUpdate.json */ /** * Sample code: kustoPoolsCreateOrUpdate. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolsCreateOrUpdate(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPools() - .define("kustoclusterrptest4") - .withRegion("westus") + manager.kustoPools().define("kustoclusterrptest4").withRegion("westus") .withExistingWorkspace("synapseWorkspaceName", "kustorptest") .withSku(new AzureSku().withName(SkuName.STORAGE_OPTIMIZED).withCapacity(2).withSize(SkuSize.MEDIUM)) - .withEnableStreamingIngest(true) - .withEnablePurge(true) - .withWorkspaceUid("11111111-2222-3333-444444444444") + .withEnableStreamingIngest(true).withEnablePurge(true).withWorkspaceUid("11111111-2222-3333-444444444444") .create(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsDeleteSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsDeleteSamples.java index 4e3a90cc8a18..c45d8d2f7273 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsDeleteSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsDeleteSamples.java @@ -4,19 +4,22 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for KustoPools Delete. */ +/** + * Samples for KustoPools Delete. + */ public final class KustoPoolsDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsDelete.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsDelete. + * json */ /** * Sample code: kustoPoolsDelete. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolsDelete(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPools() - .delete("kustorptest", "kustorptest", "kustoclusterrptest4", com.azure.core.util.Context.NONE); + manager.kustoPools().delete("kustorptest", "kustorptest", "kustoclusterrptest4", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsDetachFollowerDatabasesSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsDetachFollowerDatabasesSamples.java index 104ee32e575b..b37ea61ed8c9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsDetachFollowerDatabasesSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsDetachFollowerDatabasesSamples.java @@ -6,27 +6,24 @@ import com.azure.resourcemanager.synapse.fluent.models.FollowerDatabaseDefinitionInner; -/** Samples for KustoPools DetachFollowerDatabases. */ +/** + * Samples for KustoPools DetachFollowerDatabases. + */ public final class KustoPoolsDetachFollowerDatabasesSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolFollowerDatabasesDetach.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolFollowerDatabasesDetach.json */ /** * Sample code: KustoPoolDetachFollowerDatabases. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolDetachFollowerDatabases(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPools() - .detachFollowerDatabases( - "kustorptest", - "kustoclusterrptest4", - "kustorptest", - new FollowerDatabaseDefinitionInner() - .withKustoPoolResourceId( - "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/kustorptest/kustoPools/leader4") - .withAttachedDatabaseConfigurationName("myAttachedDatabaseConfiguration"), - com.azure.core.util.Context.NONE); + manager.kustoPools().detachFollowerDatabases("kustorptest", "kustoclusterrptest4", "kustorptest", + new FollowerDatabaseDefinitionInner().withKustoPoolResourceId( + "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/kustorptest/kustoPools/leader4") + .withAttachedDatabaseConfigurationName("myAttachedDatabaseConfiguration"), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsGetSamples.java index 55a82f00727a..32282f05c5c6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsGetSamples.java @@ -4,20 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for KustoPools Get. */ +/** + * Samples for KustoPools Get. + */ public final class KustoPoolsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsGet.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsGet.json */ /** * Sample code: kustoPoolsGet. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolsGet(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPools() - .getWithResponse( - "synapseWorkspaceName", "kustoclusterrptest4", "kustorptest", com.azure.core.util.Context.NONE); + manager.kustoPools().getWithResponse("synapseWorkspaceName", "kustoclusterrptest4", "kustorptest", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListByWorkspaceSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListByWorkspaceSamples.java index 94f055583473..caf2257420d6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListByWorkspaceSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListByWorkspaceSamples.java @@ -4,19 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for KustoPools ListByWorkspace. */ +/** + * Samples for KustoPools ListByWorkspace. + */ public final class KustoPoolsListByWorkspaceSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsListByWorkspace.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolsListByWorkspace.json */ /** * Sample code: List Kusto pools in a workspace. - * + * * @param manager Entry point to SynapseManager. */ public static void listKustoPoolsInAWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPools() - .listByWorkspaceWithResponse("kustorptest", "kustorptest", com.azure.core.util.Context.NONE); + manager.kustoPools().listByWorkspaceWithResponse("kustorptest", "kustorptest", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListFollowerDatabasesSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListFollowerDatabasesSamples.java index 05104253689d..2e78899c4940 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListFollowerDatabasesSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListFollowerDatabasesSamples.java @@ -4,20 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for KustoPools ListFollowerDatabases. */ +/** + * Samples for KustoPools ListFollowerDatabases. + */ public final class KustoPoolsListFollowerDatabasesSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolFollowerDatabasesList.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolFollowerDatabasesList.json */ /** * Sample code: KustoPoolListFollowerDatabases. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolListFollowerDatabases(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPools() - .listFollowerDatabases( - "kustorptest", "kustoclusterrptest4", "kustorptest", com.azure.core.util.Context.NONE); + manager.kustoPools().listFollowerDatabases("kustorptest", "kustoclusterrptest4", "kustorptest", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListLanguageExtensionsSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListLanguageExtensionsSamples.java index 6f9ef69f7ed8..c15b700c718a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListLanguageExtensionsSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListLanguageExtensionsSamples.java @@ -4,20 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for KustoPools ListLanguageExtensions. */ +/** + * Samples for KustoPools ListLanguageExtensions. + */ public final class KustoPoolsListLanguageExtensionsSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolLanguageExtensionsList.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolLanguageExtensionsList.json */ /** * Sample code: KustoPoolListLanguageExtensions. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolListLanguageExtensions(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPools() - .listLanguageExtensions( - "kustorptest", "kustoclusterrptest4", "kustorptest", com.azure.core.util.Context.NONE); + manager.kustoPools().listLanguageExtensions("kustorptest", "kustoclusterrptest4", "kustorptest", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListSamples.java index d49750d1b615..176373064152 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListSamples.java @@ -4,14 +4,18 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for KustoPools List. */ +/** + * Samples for KustoPools List. + */ public final class KustoPoolsListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsListSkus.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsListSkus. + * json */ /** * Sample code: KustoPoolsListSkus. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolsListSkus(com.azure.resourcemanager.synapse.SynapseManager manager) { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListSkusByResourceSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListSkusByResourceSamples.java index 041b72854d24..2ee71624bce2 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListSkusByResourceSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListSkusByResourceSamples.java @@ -4,20 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for KustoPools ListSkusByResource. */ +/** + * Samples for KustoPools ListSkusByResource. + */ public final class KustoPoolsListSkusByResourceSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsListResourceSkus.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolsListResourceSkus.json */ /** * Sample code: KustoPoolsListResourceSkus. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolsListResourceSkus(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPools() - .listSkusByResource( - "synapseWorkspaceName", "kustoclusterrptest4", "kustorptest", com.azure.core.util.Context.NONE); + manager.kustoPools().listSkusByResource("synapseWorkspaceName", "kustoclusterrptest4", "kustorptest", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsRemoveLanguageExtensionsSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsRemoveLanguageExtensionsSamples.java index 792e7ca82947..70d0b3954d3a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsRemoveLanguageExtensionsSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsRemoveLanguageExtensionsSamples.java @@ -9,29 +9,24 @@ import com.azure.resourcemanager.synapse.models.LanguageExtensionsList; import java.util.Arrays; -/** Samples for KustoPools RemoveLanguageExtensions. */ +/** + * Samples for KustoPools RemoveLanguageExtensions. + */ public final class KustoPoolsRemoveLanguageExtensionsSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolLanguageExtensionsRemove.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * KustoPoolLanguageExtensionsRemove.json */ /** * Sample code: KustoPoolRemoveLanguageExtensions. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolRemoveLanguageExtensions(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPools() - .removeLanguageExtensions( - "kustorptest", - "kustoclusterrptest4", - "kustorptest", - new LanguageExtensionsList() - .withValue( - Arrays - .asList( - new LanguageExtensionInner().withLanguageExtensionName(LanguageExtensionName.PYTHON), - new LanguageExtensionInner().withLanguageExtensionName(LanguageExtensionName.R))), - com.azure.core.util.Context.NONE); + manager.kustoPools().removeLanguageExtensions("kustorptest", "kustoclusterrptest4", "kustorptest", + new LanguageExtensionsList().withValue( + Arrays.asList(new LanguageExtensionInner().withLanguageExtensionName(LanguageExtensionName.PYTHON), + new LanguageExtensionInner().withLanguageExtensionName(LanguageExtensionName.R))), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsStartSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsStartSamples.java index a762d2e7afc8..dbb29d4d0f08 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsStartSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsStartSamples.java @@ -4,19 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for KustoPools Start. */ +/** + * Samples for KustoPools Start. + */ public final class KustoPoolsStartSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsStart.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsStart.json */ /** * Sample code: kustoPoolsStop. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolsStop(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPools() - .start("kustorptest", "kustoclusterrptest4", "kustorptest", com.azure.core.util.Context.NONE); + manager.kustoPools().start("kustorptest", "kustoclusterrptest4", "kustorptest", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsStopSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsStopSamples.java index 4206e78754be..096ba93bf011 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsStopSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsStopSamples.java @@ -4,19 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for KustoPools Stop. */ +/** + * Samples for KustoPools Stop. + */ public final class KustoPoolsStopSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsStop.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsStop.json */ /** * Sample code: kustoPoolsStop. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolsStop(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .kustoPools() - .stop("kustorptest", "kustoclusterrptest4", "kustorptest", com.azure.core.util.Context.NONE); + manager.kustoPools().stop("kustorptest", "kustoclusterrptest4", "kustorptest", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsUpdateSamples.java index 4d08c5a3dad2..b02d54f7a91e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/KustoPoolsUpdateSamples.java @@ -9,28 +9,25 @@ import com.azure.resourcemanager.synapse.models.SkuName; import com.azure.resourcemanager.synapse.models.SkuSize; -/** Samples for KustoPools Update. */ +/** + * Samples for KustoPools Update. + */ public final class KustoPoolsUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsUpdate.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsUpdate. + * json */ /** * Sample code: kustoPoolsUpdate. - * + * * @param manager Entry point to SynapseManager. */ public static void kustoPoolsUpdate(com.azure.resourcemanager.synapse.SynapseManager manager) { - KustoPool resource = - manager - .kustoPools() - .getWithResponse( - "synapseWorkspaceName", "kustoclusterrptest4", "kustorptest", com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() + KustoPool resource = manager.kustoPools().getWithResponse("synapseWorkspaceName", "kustoclusterrptest4", + "kustorptest", com.azure.core.util.Context.NONE).getValue(); + resource.update() .withSku(new AzureSku().withName(SkuName.STORAGE_OPTIMIZED).withCapacity(2).withSize(SkuSize.MEDIUM)) - .withEnableStreamingIngest(true) - .withEnablePurge(true) - .apply(); + .withEnableStreamingIngest(true).withEnablePurge(true).apply(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/LibrariesOperationListByWorkspaceSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/LibrariesOperationListByWorkspaceSamples.java index 486c3dd82de3..0d8c388d2213 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/LibrariesOperationListByWorkspaceSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/LibrariesOperationListByWorkspaceSamples.java @@ -4,19 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for LibrariesOperation ListByWorkspace. */ +/** + * Samples for LibrariesOperation ListByWorkspace. + */ public final class LibrariesOperationListByWorkspaceSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/Libraries_ListByWorkspace.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * Libraries_ListByWorkspace.json */ /** * Sample code: List libraries in a workspace. - * + * * @param manager Entry point to SynapseManager. */ public static void listLibrariesInAWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .librariesOperations() - .listByWorkspace("exampleResourceGroup", "exampleWorkspace", com.azure.core.util.Context.NONE); + manager.librariesOperations().listByWorkspace("exampleResourceGroup", "exampleWorkspace", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/LibraryGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/LibraryGetSamples.java index 53d985ba2d4c..918d6ad781f4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/LibraryGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/LibraryGetSamples.java @@ -4,20 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for Library Get. */ +/** + * Samples for Library Get. + */ public final class LibraryGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/Library_Get.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/Library_Get.json */ /** * Sample code: Get Library by name. - * + * * @param manager Entry point to SynapseManager. */ public static void getLibraryByName(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .libraries() - .getWithResponse( - "exampleResourceGroup", "exampleLibraryName.jar", "exampleWorkspace", com.azure.core.util.Context.NONE); + manager.libraries().getWithResponse("exampleResourceGroup", "exampleLibraryName.jar", "exampleWorkspace", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/OperationsCheckNameAvailabilitySamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/OperationsCheckNameAvailabilitySamples.java index ec4b3a2295f7..178b93e73580 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/OperationsCheckNameAvailabilitySamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/OperationsCheckNameAvailabilitySamples.java @@ -6,40 +6,38 @@ import com.azure.resourcemanager.synapse.models.CheckNameAvailabilityRequest; -/** Samples for Operations CheckNameAvailability. */ +/** + * Samples for Operations CheckNameAvailability. + */ public final class OperationsCheckNameAvailabilitySamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CheckNameAvailabilityWorkspaceAlreadyExists.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CheckNameAvailabilityWorkspaceAlreadyExists.json */ /** * Sample code: Check for a workspace name that already exists. - * + * * @param manager Entry point to SynapseManager. */ - public static void checkForAWorkspaceNameThatAlreadyExists( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .operations() - .checkNameAvailabilityWithResponse( - new CheckNameAvailabilityRequest().withName("workspace1").withType("Microsoft.Synapse/workspaces"), - com.azure.core.util.Context.NONE); + public static void + checkForAWorkspaceNameThatAlreadyExists(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.operations().checkNameAvailabilityWithResponse( + new CheckNameAvailabilityRequest().withName("workspace1").withType("Microsoft.Synapse/workspaces"), + com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CheckNameAvailabilityWorkspaceAvailable.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CheckNameAvailabilityWorkspaceAvailable.json */ /** * Sample code: Check for a workspace name that is available. - * + * * @param manager Entry point to SynapseManager. */ public static void checkForAWorkspaceNameThatIsAvailable(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .operations() - .checkNameAvailabilityWithResponse( - new CheckNameAvailabilityRequest() - .withName("workspace1") - .withType("Microsoft.ProjectArcadia/workspaces"), - com.azure.core.util.Context.NONE); + manager.operations().checkNameAvailabilityWithResponse( + new CheckNameAvailabilityRequest().withName("workspace1").withType("Microsoft.ProjectArcadia/workspaces"), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/OperationsGetAzureAsyncHeaderResultSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/OperationsGetAzureAsyncHeaderResultSamples.java index 4a7c9b8205bd..98719d5013a1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/OperationsGetAzureAsyncHeaderResultSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/OperationsGetAzureAsyncHeaderResultSamples.java @@ -4,23 +4,22 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for Operations GetAzureAsyncHeaderResult. */ +/** + * Samples for Operations GetAzureAsyncHeaderResult. + */ public final class OperationsGetAzureAsyncHeaderResultSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetAzureAsyncOperationHeader.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetAzureAsyncOperationHeader. + * json */ /** * Sample code: Get azure async operation header result. - * + * * @param manager Entry point to SynapseManager. */ public static void getAzureAsyncOperationHeaderResult(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .operations() - .getAzureAsyncHeaderResultWithResponse( - "resourceGroup1", - "workspace1", - "01234567-89ab-4def-0123-456789abcdef", - com.azure.core.util.Context.NONE); + manager.operations().getAzureAsyncHeaderResultWithResponse("resourceGroup1", "workspace1", + "01234567-89ab-4def-0123-456789abcdef", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/OperationsGetLocationHeaderResultSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/OperationsGetLocationHeaderResultSamples.java index 8c461391cd17..e0151cc0c11c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/OperationsGetLocationHeaderResultSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/OperationsGetLocationHeaderResultSamples.java @@ -4,23 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for Operations GetLocationHeaderResult. */ +/** + * Samples for Operations GetLocationHeaderResult. + */ public final class OperationsGetLocationHeaderResultSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetLocationHeader.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetLocationHeader.json */ /** * Sample code: Get location header result. - * + * * @param manager Entry point to SynapseManager. */ public static void getLocationHeaderResult(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .operations() - .getLocationHeaderResultWithResponse( - "resourceGroup1", - "workspace1", - "01234567-89ab-4def-0123-456789abcdef", - com.azure.core.util.Context.NONE); + manager.operations().getLocationHeaderResultWithResponse("resourceGroup1", "workspace1", + "01234567-89ab-4def-0123-456789abcdef", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/OperationsGetWorkspacePerSubscriptionQuotaSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/OperationsGetWorkspacePerSubscriptionQuotaSamples.java new file mode 100644 index 000000000000..a63a3dbf11fd --- /dev/null +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/OperationsGetWorkspacePerSubscriptionQuotaSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.synapse.generated; + +/** + * Samples for Operations GetWorkspacePerSubscriptionQuota. + */ +public final class OperationsGetWorkspacePerSubscriptionQuotaSamples { + /* + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * WorkspacePerSubscriptionUsageGet.json + */ + /** + * Sample code: Workspace per subscription usage in given location. + * + * @param manager Entry point to SynapseManager. + */ + public static void + workspacePerSubscriptionUsageInGivenLocation(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.operations().getWorkspacePerSubscriptionQuotaWithResponse("WestUS", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/OperationsListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/OperationsListSamples.java index b5816dca67e3..1ceff6c68022 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/OperationsListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/OperationsListSamples.java @@ -4,14 +4,17 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for Operations List. */ +/** + * Samples for Operations List. + */ public final class OperationsListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetAvailableOperations.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetAvailableOperations.json */ /** * Sample code: Get available operations. - * + * * @param manager Entry point to SynapseManager. */ public static void getAvailableOperations(com.azure.resourcemanager.synapse.SynapseManager manager) { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsCreateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsCreateSamples.java index ffb511f1f5ee..8ecf1966f869 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsCreateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsCreateSamples.java @@ -6,25 +6,24 @@ import com.azure.resourcemanager.synapse.models.PrivateLinkServiceConnectionState; -/** Samples for PrivateEndpointConnections Create. */ +/** + * Samples for PrivateEndpointConnections Create. + */ public final class PrivateEndpointConnectionsCreateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ApprovePrivateEndpointConnection.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * ApprovePrivateEndpointConnection.json */ /** * Sample code: Approve private endpoint connection. - * + * * @param manager Entry point to SynapseManager. */ public static void approvePrivateEndpointConnection(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .privateEndpointConnections() - .define("ExamplePrivateEndpointConnection") + manager.privateEndpointConnections().define("ExamplePrivateEndpointConnection") .withExistingWorkspace("ExampleResourceGroup", "ExampleWorkspace") - .withPrivateLinkServiceConnectionState( - new PrivateLinkServiceConnectionState() - .withStatus("Approved") - .withDescription("Approved by abc@example.com")) + .withPrivateLinkServiceConnectionState(new PrivateLinkServiceConnectionState().withStatus("Approved") + .withDescription("Approved by abc@example.com")) .create(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsDeleteSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsDeleteSamples.java index 926b0a55383c..f9165eb041d7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsDeleteSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsDeleteSamples.java @@ -4,23 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for PrivateEndpointConnections Delete. */ +/** + * Samples for PrivateEndpointConnections Delete. + */ public final class PrivateEndpointConnectionsDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeletePrivateEndpointConnection.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * DeletePrivateEndpointConnection.json */ /** * Sample code: Delete private endpoint connection. - * + * * @param manager Entry point to SynapseManager. */ public static void deletePrivateEndpointConnection(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .privateEndpointConnections() - .delete( - "ExampleResourceGroup", - "ExampleWorkspace", - "ExamplePrivateEndpointConnection", - com.azure.core.util.Context.NONE); + manager.privateEndpointConnections().delete("ExampleResourceGroup", "ExampleWorkspace", + "ExamplePrivateEndpointConnection", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsGetSamples.java index 0508e81c55ef..a07fcd09d38e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsGetSamples.java @@ -4,23 +4,22 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for PrivateEndpointConnections Get. */ +/** + * Samples for PrivateEndpointConnections Get. + */ public final class PrivateEndpointConnectionsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetPrivateEndpointConnection.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetPrivateEndpointConnection. + * json */ /** * Sample code: Get private endpoint connection. - * + * * @param manager Entry point to SynapseManager. */ public static void getPrivateEndpointConnection(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .privateEndpointConnections() - .getWithResponse( - "ExampleResourceGroup", - "ExampleWorkspace", - "ExamplePrivateEndpointConnection", - com.azure.core.util.Context.NONE); + manager.privateEndpointConnections().getWithResponse("ExampleResourceGroup", "ExampleWorkspace", + "ExamplePrivateEndpointConnection", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsListSamples.java index 02bbc1c25230..c02382667d7e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsListSamples.java @@ -4,20 +4,22 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for PrivateEndpointConnections List. */ +/** + * Samples for PrivateEndpointConnections List. + */ public final class PrivateEndpointConnectionsListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListPrivateEndpointConnections.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * ListPrivateEndpointConnections.json */ /** * Sample code: List private endpoint connections in workspace. - * + * * @param manager Entry point to SynapseManager. */ - public static void listPrivateEndpointConnectionsInWorkspace( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .privateEndpointConnections() - .list("ExampleResourceGroup", "ExampleWorkspace", com.azure.core.util.Context.NONE); + public static void + listPrivateEndpointConnectionsInWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.privateEndpointConnections().list("ExampleResourceGroup", "ExampleWorkspace", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsPrivateLinkHubGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsPrivateLinkHubGetSamples.java index d183c9f2996d..eef3fef6ecec 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsPrivateLinkHubGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsPrivateLinkHubGetSamples.java @@ -4,20 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for PrivateEndpointConnectionsPrivateLinkHub Get. */ +/** + * Samples for PrivateEndpointConnectionsPrivateLinkHub Get. + */ public final class PrivateEndpointConnectionsPrivateLinkHubGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/PrivateEndpointConnectionsPrivateLinkHub_Get.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * PrivateEndpointConnectionsPrivateLinkHub_Get.json */ /** * Sample code: Get a privateLinkHub. - * + * * @param manager Entry point to SynapseManager. */ public static void getAPrivateLinkHub(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .privateEndpointConnectionsPrivateLinkHubs() - .getWithResponse( - "gh-res-grp", "pe0", "pe0-f3ed30f5-338c-4855-a542-24a403694ad2", com.azure.core.util.Context.NONE); + manager.privateEndpointConnectionsPrivateLinkHubs().getWithResponse("gh-res-grp", "pe0", + "pe0-f3ed30f5-338c-4855-a542-24a403694ad2", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsPrivateLinkHubListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsPrivateLinkHubListSamples.java index e2556d57d27e..af5a4be36cd6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsPrivateLinkHubListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsPrivateLinkHubListSamples.java @@ -4,14 +4,17 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for PrivateEndpointConnectionsPrivateLinkHub List. */ +/** + * Samples for PrivateEndpointConnectionsPrivateLinkHub List. + */ public final class PrivateEndpointConnectionsPrivateLinkHubListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/PrivateEndpointConnectionsPrivateLinkHub_List.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * PrivateEndpointConnectionsPrivateLinkHub_List.json */ /** * Sample code: Get a privateLinkHub. - * + * * @param manager Entry point to SynapseManager. */ public static void getAPrivateLinkHub(com.azure.resourcemanager.synapse.SynapseManager manager) { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubPrivateLinkResourcesGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubPrivateLinkResourcesGetSamples.java index 7ac915ee92fb..053b0eb4386d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubPrivateLinkResourcesGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubPrivateLinkResourcesGetSamples.java @@ -4,20 +4,22 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for PrivateLinkHubPrivateLinkResources Get. */ +/** + * Samples for PrivateLinkHubPrivateLinkResources Get. + */ public final class PrivateLinkHubPrivateLinkResourcesGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetPrivateLinkHubPrivateLinkResource.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * GetPrivateLinkHubPrivateLinkResource.json */ /** * Sample code: Get private link resources for private link hub. - * + * * @param manager Entry point to SynapseManager. */ - public static void getPrivateLinkResourcesForPrivateLinkHub( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .privateLinkHubPrivateLinkResources() - .getWithResponse("ExampleResourceGroup", "ExamplePrivateLinkHub", "sql", com.azure.core.util.Context.NONE); + public static void + getPrivateLinkResourcesForPrivateLinkHub(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.privateLinkHubPrivateLinkResources().getWithResponse("ExampleResourceGroup", "ExamplePrivateLinkHub", + "sql", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubPrivateLinkResourcesListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubPrivateLinkResourcesListSamples.java index 97cef956866c..39eed43640da 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubPrivateLinkResourcesListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubPrivateLinkResourcesListSamples.java @@ -4,20 +4,22 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for PrivateLinkHubPrivateLinkResources List. */ +/** + * Samples for PrivateLinkHubPrivateLinkResources List. + */ public final class PrivateLinkHubPrivateLinkResourcesListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListPrivateLinkHubPrivateLinkResources.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * ListPrivateLinkHubPrivateLinkResources.json */ /** * Sample code: Get private link resources for private link hub. - * + * * @param manager Entry point to SynapseManager. */ - public static void getPrivateLinkResourcesForPrivateLinkHub( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .privateLinkHubPrivateLinkResources() - .list("ExampleResourceGroup", "ExamplePrivateLinkHub", com.azure.core.util.Context.NONE); + public static void + getPrivateLinkResourcesForPrivateLinkHub(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.privateLinkHubPrivateLinkResources().list("ExampleResourceGroup", "ExamplePrivateLinkHub", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsCreateOrUpdateSamples.java index fde30dd25116..92f53ecb120c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsCreateOrUpdateSamples.java @@ -7,26 +7,26 @@ import java.util.HashMap; import java.util.Map; -/** Samples for PrivateLinkHubs CreateOrUpdate. */ +/** + * Samples for PrivateLinkHubs CreateOrUpdate. + */ public final class PrivateLinkHubsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdatePrivateLinkHub.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdatePrivateLinkHub. + * json */ /** * Sample code: Create or update a privateLinkHub. - * + * * @param manager Entry point to SynapseManager. */ public static void createOrUpdateAPrivateLinkHub(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .privateLinkHubs() - .define("privateLinkHub1") - .withRegion("East US") - .withExistingResourceGroup("resourceGroup1") - .withTags(mapOf("key", "value")) - .create(); + manager.privateLinkHubs().define("privateLinkHub1").withRegion("East US") + .withExistingResourceGroup("resourceGroup1").withTags(mapOf("key", "fakeTokenPlaceholder")).create(); } + // Use "Map.of" if available @SuppressWarnings("unchecked") private static Map mapOf(Object... inputs) { Map map = new HashMap<>(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsDeleteSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsDeleteSamples.java index bde82558912c..2bb005ceebba 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsDeleteSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsDeleteSamples.java @@ -4,14 +4,17 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for PrivateLinkHubs Delete. */ +/** + * Samples for PrivateLinkHubs Delete. + */ public final class PrivateLinkHubsDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeletePrivateLinkHub.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeletePrivateLinkHub.json */ /** * Sample code: Delete a privateLinkHub. - * + * * @param manager Entry point to SynapseManager. */ public static void deleteAPrivateLinkHub(com.azure.resourcemanager.synapse.SynapseManager manager) { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsGetByResourceGroupSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsGetByResourceGroupSamples.java index b6ad9606e309..9b079b24205f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsGetByResourceGroupSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsGetByResourceGroupSamples.java @@ -4,19 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for PrivateLinkHubs GetByResourceGroup. */ +/** + * Samples for PrivateLinkHubs GetByResourceGroup. + */ public final class PrivateLinkHubsGetByResourceGroupSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetPrivateLinkHub.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetPrivateLinkHub.json */ /** * Sample code: Get a privateLinkHub. - * + * * @param manager Entry point to SynapseManager. */ public static void getAPrivateLinkHub(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .privateLinkHubs() - .getByResourceGroupWithResponse("resourceGroup1", "privateLinkHub1", com.azure.core.util.Context.NONE); + manager.privateLinkHubs().getByResourceGroupWithResponse("resourceGroup1", "privateLinkHub1", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsListByResourceGroupSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsListByResourceGroupSamples.java index fc3a747bdf73..8e91bbb937af 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsListByResourceGroupSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsListByResourceGroupSamples.java @@ -4,14 +4,17 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for PrivateLinkHubs ListByResourceGroup. */ +/** + * Samples for PrivateLinkHubs ListByResourceGroup. + */ public final class PrivateLinkHubsListByResourceGroupSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListPrivateLinkHubsInResourceGroup.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * ListPrivateLinkHubsInResourceGroup.json */ /** * Sample code: List privateLinkHubs in resource group. - * + * * @param manager Entry point to SynapseManager. */ public static void listPrivateLinkHubsInResourceGroup(com.azure.resourcemanager.synapse.SynapseManager manager) { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsListSamples.java index fddefab1e2ab..4b5c06df0871 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsListSamples.java @@ -4,14 +4,17 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for PrivateLinkHubs List. */ +/** + * Samples for PrivateLinkHubs List. + */ public final class PrivateLinkHubsListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListPrivateLinkHubsInSubscription.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * ListPrivateLinkHubsInSubscription.json */ /** * Sample code: List privateLinkHubs in subscription. - * + * * @param manager Entry point to SynapseManager. */ public static void listPrivateLinkHubsInSubscription(com.azure.resourcemanager.synapse.SynapseManager manager) { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsUpdateSamples.java index 679ee8899f2a..d3fd4ba97b23 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsUpdateSamples.java @@ -8,25 +8,27 @@ import java.util.HashMap; import java.util.Map; -/** Samples for PrivateLinkHubs Update. */ +/** + * Samples for PrivateLinkHubs Update. + */ public final class PrivateLinkHubsUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/UpdatePrivateLinkHub.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/UpdatePrivateLinkHub.json */ /** * Sample code: Update a privateLinkHub. - * + * * @param manager Entry point to SynapseManager. */ public static void updateAPrivateLinkHub(com.azure.resourcemanager.synapse.SynapseManager manager) { - PrivateLinkHub resource = - manager - .privateLinkHubs() - .getByResourceGroupWithResponse("resourceGroup1", "privateLinkHub1", com.azure.core.util.Context.NONE) - .getValue(); - resource.update().withTags(mapOf("key", "value")).apply(); + PrivateLinkHub resource = manager.privateLinkHubs() + .getByResourceGroupWithResponse("resourceGroup1", "privateLinkHub1", com.azure.core.util.Context.NONE) + .getValue(); + resource.update().withTags(mapOf("key", "fakeTokenPlaceholder")).apply(); } + // Use "Map.of" if available @SuppressWarnings("unchecked") private static Map mapOf(Object... inputs) { Map map = new HashMap<>(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesOperationGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesOperationGetSamples.java index 18f1bd4a9be0..656a8cdc19d7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesOperationGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesOperationGetSamples.java @@ -4,19 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for PrivateLinkResourcesOperation Get. */ +/** + * Samples for PrivateLinkResourcesOperation Get. + */ public final class PrivateLinkResourcesOperationGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetPrivateLinkResource.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetPrivateLinkResource.json */ /** * Sample code: Get private link resources for workspace. - * + * * @param manager Entry point to SynapseManager. */ public static void getPrivateLinkResourcesForWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .privateLinkResourcesOperations() - .getWithResponse("ExampleResourceGroup", "ExampleWorkspace", "sql", com.azure.core.util.Context.NONE); + manager.privateLinkResourcesOperations().getWithResponse("ExampleResourceGroup", "ExampleWorkspace", "sql", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesOperationListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesOperationListSamples.java index dc6eedeef7e9..0bc647056018 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesOperationListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesOperationListSamples.java @@ -4,19 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for PrivateLinkResourcesOperation List. */ +/** + * Samples for PrivateLinkResourcesOperation List. + */ public final class PrivateLinkResourcesOperationListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListPrivateLinkResources.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListPrivateLinkResources.json */ /** * Sample code: Get private link resources for workspace. - * + * * @param manager Entry point to SynapseManager. */ public static void getPrivateLinkResourcesForWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .privateLinkResourcesOperations() - .list("ExampleResourceGroup", "ExampleWorkspace", com.azure.core.util.Context.NONE); + manager.privateLinkResourcesOperations().list("ExampleResourceGroup", "ExampleWorkspace", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/RestorableDroppedSqlPoolsGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/RestorableDroppedSqlPoolsGetSamples.java index 6b0ae5c6069c..f10902de008b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/RestorableDroppedSqlPoolsGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/RestorableDroppedSqlPoolsGetSamples.java @@ -4,23 +4,23 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for RestorableDroppedSqlPools Get. */ +/** + * Samples for RestorableDroppedSqlPools Get. + */ public final class RestorableDroppedSqlPoolsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/RestorableDroppedSqlPoolGet.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/RestorableDroppedSqlPoolGet. + * json */ /** * Sample code: Get a restorable dropped Sql pool. - * + * * @param manager Entry point to SynapseManager. */ public static void getARestorableDroppedSqlPool(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .restorableDroppedSqlPools() - .getWithResponse( - "restorabledroppeddatabasetest-1257", - "restorabledroppeddatabasetest-2389", - "restorabledroppeddatabasetest-7654,131403269876900000", - com.azure.core.util.Context.NONE); + manager.restorableDroppedSqlPools().getWithResponse("restorabledroppeddatabasetest-1257", + "restorabledroppeddatabasetest-2389", "restorabledroppeddatabasetest-7654,131403269876900000", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/RestorableDroppedSqlPoolsListByWorkspaceSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/RestorableDroppedSqlPoolsListByWorkspaceSamples.java index 499747bf05b5..5064bd544afa 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/RestorableDroppedSqlPoolsListByWorkspaceSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/RestorableDroppedSqlPoolsListByWorkspaceSamples.java @@ -4,22 +4,22 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for RestorableDroppedSqlPools ListByWorkspace. */ +/** + * Samples for RestorableDroppedSqlPools ListByWorkspace. + */ public final class RestorableDroppedSqlPoolsListByWorkspaceSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/RestorableDroppedSqlpoolList.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/RestorableDroppedSqlpoolList. + * json */ /** * Sample code: Get list of restorable dropped Sql pools. - * + * * @param manager Entry point to SynapseManager. */ public static void getListOfRestorableDroppedSqlPools(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .restorableDroppedSqlPools() - .listByWorkspace( - "restorabledroppeddatabasetest-1349", - "restorabledroppeddatabasetest-1840", - com.azure.core.util.Context.NONE); + manager.restorableDroppedSqlPools().listByWorkspace("restorabledroppeddatabasetest-1349", + "restorabledroppeddatabasetest-1840", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SparkConfigurationGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SparkConfigurationGetSamples.java index 8513d62cc37c..e43789ed512b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SparkConfigurationGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SparkConfigurationGetSamples.java @@ -4,23 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for SparkConfiguration Get. */ +/** + * Samples for SparkConfiguration Get. + */ public final class SparkConfigurationGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/SparkConfiguration_Get.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * SparkConfiguration_Get.json */ /** * Sample code: Get SparkConfiguration by name. - * + * * @param manager Entry point to SynapseManager. */ public static void getSparkConfigurationByName(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sparkConfigurations() - .getWithResponse( - "exampleResourceGroup", - "exampleSparkConfigurationName", - "exampleWorkspace", - com.azure.core.util.Context.NONE); + manager.sparkConfigurations().getWithResponse("exampleResourceGroup", "exampleSparkConfigurationName", + "exampleWorkspace", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SparkConfigurationsOperationListByWorkspaceSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SparkConfigurationsOperationListByWorkspaceSamples.java index 3364e4b4a5bb..3a3fe518ee13 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SparkConfigurationsOperationListByWorkspaceSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SparkConfigurationsOperationListByWorkspaceSamples.java @@ -4,19 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for SparkConfigurationsOperation ListByWorkspace. */ +/** + * Samples for SparkConfigurationsOperation ListByWorkspace. + */ public final class SparkConfigurationsOperationListByWorkspaceSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/SparkConfigurations_ListByWorkspace.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ + * SparkConfigurations_ListByWorkspace.json */ /** * Sample code: List sparkConfigurations in a workspace. - * + * * @param manager Entry point to SynapseManager. */ public static void listSparkConfigurationsInAWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sparkConfigurationsOperations() - .listByWorkspace("exampleResourceGroup", "exampleWorkspace", com.azure.core.util.Context.NONE); + manager.sparkConfigurationsOperations().listByWorkspace("exampleResourceGroup", "exampleWorkspace", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolBlobAuditingPoliciesCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolBlobAuditingPoliciesCreateOrUpdateSamples.java index 29ff012fcf37..1900faa126d9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolBlobAuditingPoliciesCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolBlobAuditingPoliciesCreateOrUpdateSamples.java @@ -8,55 +8,47 @@ import java.util.Arrays; import java.util.UUID; -/** Samples for SqlPoolBlobAuditingPolicies CreateOrUpdate. */ +/** + * Samples for SqlPoolBlobAuditingPolicies CreateOrUpdate. + */ public final class SqlPoolBlobAuditingPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateSqlPoolBlobAuditingWithAllParameters.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CreateOrUpdateSqlPoolBlobAuditingWithAllParameters.json */ /** * Sample code: Create or update a database's blob auditing policy with all parameters. - * + * * @param manager Entry point to SynapseManager. */ public static void createOrUpdateADatabaseSBlobAuditingPolicyWithAllParameters( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolBlobAuditingPolicies() - .define() + manager.sqlPoolBlobAuditingPolicies().define() .withExistingSqlPool("blobauditingtest-4799", "blobauditingtest-6440", "testdb") - .withState(BlobAuditingPolicyState.ENABLED) - .withStorageEndpoint("https://mystorage.blob.core.windows.net") + .withState(BlobAuditingPolicyState.ENABLED).withStorageEndpoint("https://mystorage.blob.core.windows.net") .withStorageAccountAccessKey( "sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==") .withRetentionDays(6) - .withAuditActionsAndGroups( - Arrays - .asList( - "DATABASE_LOGOUT_GROUP", - "DATABASE_ROLE_MEMBER_CHANGE_GROUP", - "UPDATE on database::TestDatabaseName by public")) + .withAuditActionsAndGroups(Arrays.asList("DATABASE_LOGOUT_GROUP", "DATABASE_ROLE_MEMBER_CHANGE_GROUP", + "UPDATE on database::TestDatabaseName by public")) .withStorageAccountSubscriptionId(UUID.fromString("00000000-1234-0000-5678-000000000000")) - .withIsStorageSecondaryKeyInUse(false) - .withIsAzureMonitorTargetEnabled(true) - .create(); + .withIsStorageSecondaryKeyInUse(false).withIsAzureMonitorTargetEnabled(true).create(); } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateSqlPoolBlobAuditingWithMinParameters.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CreateOrUpdateSqlPoolBlobAuditingWithMinParameters.json */ /** * Sample code: Create or update a database's blob auditing policy with minimal parameters. - * + * * @param manager Entry point to SynapseManager. */ public static void createOrUpdateADatabaseSBlobAuditingPolicyWithMinimalParameters( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolBlobAuditingPolicies() - .define() + manager.sqlPoolBlobAuditingPolicies().define() .withExistingSqlPool("blobauditingtest-4799", "blobauditingtest-6440", "testdb") - .withState(BlobAuditingPolicyState.ENABLED) - .withStorageEndpoint("https://mystorage.blob.core.windows.net") + .withState(BlobAuditingPolicyState.ENABLED).withStorageEndpoint("https://mystorage.blob.core.windows.net") .withStorageAccountAccessKey( "sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==") .create(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolBlobAuditingPoliciesGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolBlobAuditingPoliciesGetSamples.java index 1ac184a2c278..f794fa0b3a31 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolBlobAuditingPoliciesGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolBlobAuditingPoliciesGetSamples.java @@ -4,21 +4,22 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for SqlPoolBlobAuditingPolicies Get. */ +/** + * Samples for SqlPoolBlobAuditingPolicies Get. + */ public final class SqlPoolBlobAuditingPoliciesGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolBlobAuditing.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolBlobAuditing.json */ /** * Sample code: Get blob auditing policy of a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ - public static void getBlobAuditingPolicyOfASQLAnalyticsPool( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolBlobAuditingPolicies() - .getWithResponse( - "blobauditingtest-6852", "blobauditingtest-2080", "testdb", com.azure.core.util.Context.NONE); + public static void + getBlobAuditingPolicyOfASQLAnalyticsPool(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.sqlPoolBlobAuditingPolicies().getWithResponse("blobauditingtest-6852", "blobauditingtest-2080", + "testdb", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolBlobAuditingPoliciesListBySqlPoolSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolBlobAuditingPoliciesListBySqlPoolSamples.java index 6a929a961ed9..65ff74b9c763 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolBlobAuditingPoliciesListBySqlPoolSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolBlobAuditingPoliciesListBySqlPoolSamples.java @@ -4,20 +4,22 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for SqlPoolBlobAuditingPolicies ListBySqlPool. */ +/** + * Samples for SqlPoolBlobAuditingPolicies ListBySqlPool. + */ public final class SqlPoolBlobAuditingPoliciesListBySqlPoolSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolAuditingSettingsList.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolAuditingSettingsList. + * json */ /** * Sample code: List audit settings of a database. - * + * * @param manager Entry point to SynapseManager. */ public static void listAuditSettingsOfADatabase(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolBlobAuditingPolicies() - .listBySqlPool( - "blobauditingtest-6852", "blobauditingtest-2080", "testdb", com.azure.core.util.Context.NONE); + manager.sqlPoolBlobAuditingPolicies().listBySqlPool("blobauditingtest-6852", "blobauditingtest-2080", "testdb", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolColumnsGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolColumnsGetSamples.java index 423e11857b4a..cffd2f382c7b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolColumnsGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolColumnsGetSamples.java @@ -4,20 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for SqlPoolColumns Get. */ +/** + * Samples for SqlPoolColumns Get. + */ public final class SqlPoolColumnsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolColumnGet.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolColumnGet.json */ /** * Sample code: Get database column. - * + * * @param manager Entry point to SynapseManager. */ public static void getDatabaseColumn(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolColumns() - .getWithResponse( - "myRG", "serverName", "myDatabase", "dbo", "table1", "column1", com.azure.core.util.Context.NONE); + manager.sqlPoolColumns().getWithResponse("myRG", "serverName", "myDatabase", "dbo", "table1", "column1", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolConnectionPoliciesGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolConnectionPoliciesGetSamples.java index 3ecb45949c8b..a18dff2f4e40 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolConnectionPoliciesGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolConnectionPoliciesGetSamples.java @@ -6,25 +6,23 @@ import com.azure.resourcemanager.synapse.models.ConnectionPolicyName; -/** Samples for SqlPoolConnectionPolicies Get. */ +/** + * Samples for SqlPoolConnectionPolicies Get. + */ public final class SqlPoolConnectionPoliciesGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolConnectionPolicy.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolConnectionPolicy. + * json */ /** * Sample code: Get a connection policy of a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ - public static void getAConnectionPolicyOfASQLAnalyticsPool( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolConnectionPolicies() - .getWithResponse( - "blobauditingtest-6852", - "blobauditingtest-2080", - "testdb", - ConnectionPolicyName.DEFAULT, - com.azure.core.util.Context.NONE); + public static void + getAConnectionPolicyOfASQLAnalyticsPool(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.sqlPoolConnectionPolicies().getWithResponse("blobauditingtest-6852", "blobauditingtest-2080", "testdb", + ConnectionPolicyName.DEFAULT, com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolDataWarehouseUserActivitiesGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolDataWarehouseUserActivitiesGetSamples.java index 27e110fe4cf4..6a66a9a14dd4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolDataWarehouseUserActivitiesGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolDataWarehouseUserActivitiesGetSamples.java @@ -6,24 +6,21 @@ import com.azure.resourcemanager.synapse.models.DataWarehouseUserActivityName; -/** Samples for SqlPoolDataWarehouseUserActivities Get. */ +/** + * Samples for SqlPoolDataWarehouseUserActivities Get. + */ public final class SqlPoolDataWarehouseUserActivitiesGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolUserActivity.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolUserActivity.json */ /** * Sample code: Get a SQL Analytics pool user activity. - * + * * @param manager Entry point to SynapseManager. */ public static void getASQLAnalyticsPoolUserActivity(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolDataWarehouseUserActivities() - .getWithResponse( - "Default-SQL-SouthEastAsia", - "testsvr", - "testdb", - DataWarehouseUserActivityName.CURRENT, - com.azure.core.util.Context.NONE); + manager.sqlPoolDataWarehouseUserActivities().getWithResponse("Default-SQL-SouthEastAsia", "testsvr", "testdb", + DataWarehouseUserActivityName.CURRENT, com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolGeoBackupPoliciesCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolGeoBackupPoliciesCreateOrUpdateSamples.java index 7ef296d0740d..f1fecf0d1e4f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolGeoBackupPoliciesCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolGeoBackupPoliciesCreateOrUpdateSamples.java @@ -7,22 +7,21 @@ import com.azure.resourcemanager.synapse.models.GeoBackupPolicyName; import com.azure.resourcemanager.synapse.models.GeoBackupPolicyState; -/** Samples for SqlPoolGeoBackupPolicies CreateOrUpdate. */ +/** + * Samples for SqlPoolGeoBackupPolicies CreateOrUpdate. + */ public final class SqlPoolGeoBackupPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateGeoBackupPolicies.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CreateOrUpdateGeoBackupPolicies.json */ /** * Sample code: Create geo backup policy. - * + * * @param manager Entry point to SynapseManager. */ public static void createGeoBackupPolicy(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolGeoBackupPolicies() - .define(GeoBackupPolicyName.DEFAULT) - .withExistingSqlPool("testrg", "testws", "testdw") - .withState(GeoBackupPolicyState.ENABLED) - .create(); + manager.sqlPoolGeoBackupPolicies().define(GeoBackupPolicyName.DEFAULT) + .withExistingSqlPool("testrg", "testws", "testdw").withState(GeoBackupPolicyState.ENABLED).create(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolGeoBackupPoliciesGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolGeoBackupPoliciesGetSamples.java index 653baaf3b4da..af9e6b6db1a8 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolGeoBackupPoliciesGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolGeoBackupPoliciesGetSamples.java @@ -6,24 +6,22 @@ import com.azure.resourcemanager.synapse.models.GeoBackupPolicyName; -/** Samples for SqlPoolGeoBackupPolicies Get. */ +/** + * Samples for SqlPoolGeoBackupPolicies Get. + */ public final class SqlPoolGeoBackupPoliciesGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolGeoBackupPolicy.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolGeoBackupPolicy. + * json */ /** * Sample code: Get Sql pool geo backup policy. - * + * * @param manager Entry point to SynapseManager. */ public static void getSqlPoolGeoBackupPolicy(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolGeoBackupPolicies() - .getWithResponse( - "sqlcrudtest-4799", - "sqlcrudtest-5961", - "testdw", - GeoBackupPolicyName.DEFAULT, - com.azure.core.util.Context.NONE); + manager.sqlPoolGeoBackupPolicies().getWithResponse("sqlcrudtest-4799", "sqlcrudtest-5961", "testdw", + GeoBackupPolicyName.DEFAULT, com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolGeoBackupPoliciesListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolGeoBackupPoliciesListSamples.java index 8b53865500c0..656d096fd031 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolGeoBackupPoliciesListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolGeoBackupPoliciesListSamples.java @@ -4,19 +4,22 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for SqlPoolGeoBackupPolicies List. */ +/** + * Samples for SqlPoolGeoBackupPolicies List. + */ public final class SqlPoolGeoBackupPoliciesListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolGeoBackupPolicies_List.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolGeoBackupPolicies_List + * .json */ /** * Sample code: Get Sql pool geo backup policy. - * + * * @param manager Entry point to SynapseManager. */ public static void getSqlPoolGeoBackupPolicy(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolGeoBackupPolicies() - .list("sqlcrudtest-4799", "sqlcrudtest-5961", "testdw", com.azure.core.util.Context.NONE); + manager.sqlPoolGeoBackupPolicies().list("sqlcrudtest-4799", "sqlcrudtest-5961", "testdw", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolMaintenanceWindowOptionsGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolMaintenanceWindowOptionsGetSamples.java index b2ea3c8e1647..e68b0b97bf32 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolMaintenanceWindowOptionsGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolMaintenanceWindowOptionsGetSamples.java @@ -4,20 +4,23 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for SqlPoolMaintenanceWindowOptions Get. */ +/** + * Samples for SqlPoolMaintenanceWindowOptions Get. + */ public final class SqlPoolMaintenanceWindowOptionsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetMaintenanceWindowOptions.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetMaintenanceWindowOptions. + * json */ /** * Sample code: Get list of transparent data encryption configurations of a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ public static void getListOfTransparentDataEncryptionConfigurationsOfASQLAnalyticsPool( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolMaintenanceWindowOptions() - .getWithResponse("samplerg", "testworkspace", "testsp", "current", com.azure.core.util.Context.NONE); + manager.sqlPoolMaintenanceWindowOptions().getWithResponse("samplerg", "testworkspace", "testsp", "current", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolMaintenanceWindowsCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolMaintenanceWindowsCreateOrUpdateSamples.java index d0a2a7768421..21d604b7f19c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolMaintenanceWindowsCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolMaintenanceWindowsCreateOrUpdateSamples.java @@ -9,33 +9,24 @@ import com.azure.resourcemanager.synapse.models.MaintenanceWindowTimeRange; import java.util.Arrays; -/** Samples for SqlPoolMaintenanceWindows CreateOrUpdate. */ +/** + * Samples for SqlPoolMaintenanceWindows CreateOrUpdate. + */ public final class SqlPoolMaintenanceWindowsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateMaintenanceWindows.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CreateOrUpdateMaintenanceWindows.json */ /** * Sample code: Sets maintenance window settings for a selected SQL Analytics Pool. - * + * * @param manager Entry point to SynapseManager. */ public static void setsMaintenanceWindowSettingsForASelectedSQLAnalyticsPool( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolMaintenanceWindows() - .createOrUpdateWithResponse( - "samplerg", - "testworkspace", - "testsp", - "current", - new MaintenanceWindowsInner() - .withTimeRanges( - Arrays - .asList( - new MaintenanceWindowTimeRange() - .withDayOfWeek(DayOfWeek.SATURDAY) - .withStartTime("00:00:00") - .withDuration("PT60M"))), - com.azure.core.util.Context.NONE); + manager.sqlPoolMaintenanceWindows().createOrUpdateWithResponse("samplerg", "testworkspace", "testsp", "current", + new MaintenanceWindowsInner().withTimeRanges(Arrays.asList(new MaintenanceWindowTimeRange() + .withDayOfWeek(DayOfWeek.SATURDAY).withStartTime("00:00:00").withDuration("PT60M"))), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolMaintenanceWindowsGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolMaintenanceWindowsGetSamples.java index f26a7c0428f9..122168da2d4f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolMaintenanceWindowsGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolMaintenanceWindowsGetSamples.java @@ -4,20 +4,22 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for SqlPoolMaintenanceWindows Get. */ +/** + * Samples for SqlPoolMaintenanceWindows Get. + */ public final class SqlPoolMaintenanceWindowsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetMaintenanceWindows.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetMaintenanceWindows.json */ /** * Sample code: Gets maintenance window settings for a selected SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ public static void getsMaintenanceWindowSettingsForASelectedSQLAnalyticsPool( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolMaintenanceWindows() - .getWithResponse("samplerg", "testworkspace", "testsp", "current", com.azure.core.util.Context.NONE); + manager.sqlPoolMaintenanceWindows().getWithResponse("samplerg", "testworkspace", "testsp", "current", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolMetadataSyncConfigsCreateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolMetadataSyncConfigsCreateSamples.java index aa6f73cde6f4..9fd8d7325d7f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolMetadataSyncConfigsCreateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolMetadataSyncConfigsCreateSamples.java @@ -6,25 +6,22 @@ import com.azure.resourcemanager.synapse.fluent.models.MetadataSyncConfigInner; -/** Samples for SqlPoolMetadataSyncConfigs Create. */ +/** + * Samples for SqlPoolMetadataSyncConfigs Create. + */ public final class SqlPoolMetadataSyncConfigsCreateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateSqlPoolMetadataSyncConfig.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CreateSqlPoolMetadataSyncConfig.json */ /** * Sample code: Set metadata sync config for a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ - public static void setMetadataSyncConfigForASQLAnalyticsPool( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolMetadataSyncConfigs() - .createWithResponse( - "ExampleResourceGroup", - "ExampleWorkspace", - "ExampleSqlPool", - new MetadataSyncConfigInner().withEnabled(true), - com.azure.core.util.Context.NONE); + public static void + setMetadataSyncConfigForASQLAnalyticsPool(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.sqlPoolMetadataSyncConfigs().createWithResponse("ExampleResourceGroup", "ExampleWorkspace", + "ExampleSqlPool", new MetadataSyncConfigInner().withEnabled(true), com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolMetadataSyncConfigsGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolMetadataSyncConfigsGetSamples.java index 5fe0edc36cce..2f7def7157c0 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolMetadataSyncConfigsGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolMetadataSyncConfigsGetSamples.java @@ -4,21 +4,23 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for SqlPoolMetadataSyncConfigs Get. */ +/** + * Samples for SqlPoolMetadataSyncConfigs Get. + */ public final class SqlPoolMetadataSyncConfigsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolMetadataSyncConfig.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolMetadataSyncConfig. + * json */ /** * Sample code: Get metadata sync config for a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ - public static void getMetadataSyncConfigForASQLAnalyticsPool( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolMetadataSyncConfigs() - .getWithResponse( - "ExampleResourceGroup", "ExampleWorkspace", "ExampleSqlPool", com.azure.core.util.Context.NONE); + public static void + getMetadataSyncConfigForASQLAnalyticsPool(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.sqlPoolMetadataSyncConfigs().getWithResponse("ExampleResourceGroup", "ExampleWorkspace", + "ExampleSqlPool", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolOperationResultsGetLocationHeaderResultSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolOperationResultsGetLocationHeaderResultSamples.java index bfaa1908d3a6..ad8f8c322e24 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolOperationResultsGetLocationHeaderResultSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolOperationResultsGetLocationHeaderResultSamples.java @@ -4,25 +4,22 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for SqlPoolOperationResults GetLocationHeaderResult. */ +/** + * Samples for SqlPoolOperationResults GetLocationHeaderResult. + */ public final class SqlPoolOperationResultsGetLocationHeaderResultSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetLocationHeaderResultWithSqlPool.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * GetLocationHeaderResultWithSqlPool.json */ /** * Sample code: Get the result of an operation on a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ - public static void getTheResultOfAnOperationOnASQLAnalyticsPool( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolOperationResults() - .getLocationHeaderResult( - "ExampleResourceGroup", - "ExampleWorkspace", - "ExampleSqlPool", - "fedcba98-7654-4210-fedc-ba9876543210", - com.azure.core.util.Context.NONE); + public static void + getTheResultOfAnOperationOnASQLAnalyticsPool(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.sqlPoolOperationResults().getLocationHeaderResult("ExampleResourceGroup", "ExampleWorkspace", + "ExampleSqlPool", "fedcba98-7654-4210-fedc-ba9876543210", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolOperationsListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolOperationsListSamples.java index 6a2a9be5849f..651aee0827e9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolOperationsListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolOperationsListSamples.java @@ -4,20 +4,22 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for SqlPoolOperations List. */ +/** + * Samples for SqlPoolOperations List. + */ public final class SqlPoolOperationsListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolOperations.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolOperations.json */ /** * Sample code: List the Sql Analytics pool management operations. - * + * * @param manager Entry point to SynapseManager. */ - public static void listTheSqlAnalyticsPoolManagementOperations( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolOperations() - .list("sqlcrudtest-7398", "sqlcrudtest-4645", "testdb", com.azure.core.util.Context.NONE); + public static void + listTheSqlAnalyticsPoolManagementOperations(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.sqlPoolOperations().list("sqlcrudtest-7398", "sqlcrudtest-4645", "testdb", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolRecommendedSensitivityLabelsUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolRecommendedSensitivityLabelsUpdateSamples.java index 25878ede5a2a..29aaa4f91bd9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolRecommendedSensitivityLabelsUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolRecommendedSensitivityLabelsUpdateSamples.java @@ -9,43 +9,29 @@ import com.azure.resourcemanager.synapse.models.RecommendedSensitivityLabelUpdateList; import java.util.Arrays; -/** Samples for SqlPoolRecommendedSensitivityLabels Update. */ +/** + * Samples for SqlPoolRecommendedSensitivityLabels Update. + */ public final class SqlPoolRecommendedSensitivityLabelsUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SensitivityLabelsRecommendedUpdate.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * SensitivityLabelsRecommendedUpdate.json */ /** * Sample code: Update recommended sensitivity labels of a given SQL Pool using an operations batch. - * + * * @param manager Entry point to SynapseManager. */ public static void updateRecommendedSensitivityLabelsOfAGivenSQLPoolUsingAnOperationsBatch( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolRecommendedSensitivityLabels() - .updateWithResponse( - "myRG", - "myWorkspace", - "mySqlPool", - new RecommendedSensitivityLabelUpdateList() - .withOperations( - Arrays - .asList( - new RecommendedSensitivityLabelUpdate() - .withOp(RecommendedSensitivityLabelUpdateKind.ENABLE) - .withSchema("dbo") - .withTable("table1") - .withColumn("column1"), - new RecommendedSensitivityLabelUpdate() - .withOp(RecommendedSensitivityLabelUpdateKind.ENABLE) - .withSchema("dbo") - .withTable("table2") - .withColumn("column2"), - new RecommendedSensitivityLabelUpdate() - .withOp(RecommendedSensitivityLabelUpdateKind.DISABLE) - .withSchema("dbo") - .withTable("table1") - .withColumn("column3"))), - com.azure.core.util.Context.NONE); + manager.sqlPoolRecommendedSensitivityLabels().updateWithResponse("myRG", "myWorkspace", "mySqlPool", + new RecommendedSensitivityLabelUpdateList().withOperations(Arrays.asList( + new RecommendedSensitivityLabelUpdate().withOp(RecommendedSensitivityLabelUpdateKind.ENABLE) + .withSchema("dbo").withTable("table1").withColumn("column1"), + new RecommendedSensitivityLabelUpdate().withOp(RecommendedSensitivityLabelUpdateKind.ENABLE) + .withSchema("dbo").withTable("table2").withColumn("column2"), + new RecommendedSensitivityLabelUpdate().withOp(RecommendedSensitivityLabelUpdateKind.DISABLE) + .withSchema("dbo").withTable("table1").withColumn("column3"))), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolReplicationLinksGetByNameSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolReplicationLinksGetByNameSamples.java index 6fb6909d3597..7e38ed96172f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolReplicationLinksGetByNameSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolReplicationLinksGetByNameSamples.java @@ -4,25 +4,22 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for SqlPoolReplicationLinks GetByName. */ +/** + * Samples for SqlPoolReplicationLinks GetByName. + */ public final class SqlPoolReplicationLinksGetByNameSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolReplicationLinks_GetByName.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * SqlPoolReplicationLinks_GetByName.json */ /** * Sample code: Lists a Sql Analytic pool's replication links. - * + * * @param manager Entry point to SynapseManager. */ - public static void listsASqlAnalyticPoolSReplicationLinks( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolReplicationLinks() - .getByNameWithResponse( - "sqlcrudtest-4799", - "sqlcrudtest-6440", - "testdb", - "5b301b68-03f6-4b26-b0f4-73ebb8634238", - com.azure.core.util.Context.NONE); + public static void + listsASqlAnalyticPoolSReplicationLinks(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.sqlPoolReplicationLinks().getByNameWithResponse("sqlcrudtest-4799", "sqlcrudtest-6440", "testdb", + "5b301b68-03f6-4b26-b0f4-73ebb8634238", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolReplicationLinksListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolReplicationLinksListSamples.java index 283e1be67a87..05c74cc17595 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolReplicationLinksListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolReplicationLinksListSamples.java @@ -4,20 +4,23 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for SqlPoolReplicationLinks List. */ +/** + * Samples for SqlPoolReplicationLinks List. + */ public final class SqlPoolReplicationLinksListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolReplicationLinks.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolReplicationLinks. + * json */ /** * Sample code: Lists a Sql Analytic pool's replication links. - * + * * @param manager Entry point to SynapseManager. */ - public static void listsASqlAnalyticPoolSReplicationLinks( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolReplicationLinks() - .list("sqlcrudtest-4799", "sqlcrudtest-6440", "testdb", com.azure.core.util.Context.NONE); + public static void + listsASqlAnalyticPoolSReplicationLinks(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.sqlPoolReplicationLinks().list("sqlcrudtest-4799", "sqlcrudtest-6440", "testdb", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsCreateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsCreateSamples.java index ac2d1602514d..203eabefb405 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsCreateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsCreateSamples.java @@ -6,24 +6,23 @@ import com.azure.resourcemanager.synapse.models.CreateSqlPoolRestorePointDefinition; -/** Samples for SqlPoolRestorePoints Create. */ +/** + * Samples for SqlPoolRestorePoints Create. + */ public final class SqlPoolRestorePointsCreateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateSqlPoolRestorePoints.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateSqlPoolRestorePoints. + * json */ /** * Sample code: Creates Sql pool restore point. - * + * * @param manager Entry point to SynapseManager. */ public static void createsSqlPoolRestorePoint(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolRestorePoints() - .create( - "Default-SQL-SouthEastAsia", - "testserver", - "testDatabase", - new CreateSqlPoolRestorePointDefinition().withRestorePointLabel("mylabel"), - com.azure.core.util.Context.NONE); + manager.sqlPoolRestorePoints().create("Default-SQL-SouthEastAsia", "testserver", "testDatabase", + new CreateSqlPoolRestorePointDefinition().withRestorePointLabel("mylabel"), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsDeleteSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsDeleteSamples.java index 23ee3a7c7760..6a5f86e26bc1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsDeleteSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsDeleteSamples.java @@ -4,24 +4,22 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for SqlPoolRestorePoints Delete. */ +/** + * Samples for SqlPoolRestorePoints Delete. + */ public final class SqlPoolRestorePointsDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolRestorePointsDelete.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolRestorePointsDelete. + * json */ /** * Sample code: Deletes a restore point. - * + * * @param manager Entry point to SynapseManager. */ public static void deletesARestorePoint(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolRestorePoints() - .deleteWithResponse( - "Default-SQL-SouthEastAsia", - "testws", - "testpool", - "131546477590000000", - com.azure.core.util.Context.NONE); + manager.sqlPoolRestorePoints().deleteWithResponse("Default-SQL-SouthEastAsia", "testws", "testpool", + "131546477590000000", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsGetSamples.java index 78eae3152164..044bc446dab8 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsGetSamples.java @@ -4,24 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for SqlPoolRestorePoints Get. */ +/** + * Samples for SqlPoolRestorePoints Get. + */ public final class SqlPoolRestorePointsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolRestorePointsGet.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolRestorePointsGet.json */ /** * Sample code: Gets a Sql pool restore point. - * + * * @param manager Entry point to SynapseManager. */ public static void getsASqlPoolRestorePoint(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolRestorePoints() - .getWithResponse( - "Default-SQL-SouthEastAsia", - "testws", - "testpool", - "131546477590000000", - com.azure.core.util.Context.NONE); + manager.sqlPoolRestorePoints().getWithResponse("Default-SQL-SouthEastAsia", "testws", "testpool", + "131546477590000000", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsListSamples.java index dc0216c69b95..c47c2080014a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsListSamples.java @@ -4,20 +4,22 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for SqlPoolRestorePoints List. */ +/** + * Samples for SqlPoolRestorePoints List. + */ public final class SqlPoolRestorePointsListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolRestorePoints.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolRestorePoints.json */ /** * Sample code: Get a list of restore points of a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ - public static void getAListOfRestorePointsOfASQLAnalyticsPool( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolRestorePoints() - .list("Default-SQL-SouthEastAsia", "testserver", "testDatabase", com.azure.core.util.Context.NONE); + public static void + getAListOfRestorePointsOfASQLAnalyticsPool(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.sqlPoolRestorePoints().list("Default-SQL-SouthEastAsia", "testserver", "testDatabase", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSchemasGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSchemasGetSamples.java index 6084bc4f45ce..edd398e7928a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSchemasGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSchemasGetSamples.java @@ -4,19 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for SqlPoolSchemas Get. */ +/** + * Samples for SqlPoolSchemas Get. + */ public final class SqlPoolSchemasGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolSchemaGet.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolSchemaGet.json */ /** * Sample code: Get database schema. - * + * * @param manager Entry point to SynapseManager. */ public static void getDatabaseSchema(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolSchemas() - .getWithResponse("myRG", "serverName", "myDatabase", "dbo", com.azure.core.util.Context.NONE); + manager.sqlPoolSchemas().getWithResponse("myRG", "serverName", "myDatabase", "dbo", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSchemasListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSchemasListSamples.java index 071dff89fb3d..ae469a7e1f9f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSchemasListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSchemasListSamples.java @@ -4,14 +4,17 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for SqlPoolSchemas List. */ +/** + * Samples for SqlPoolSchemas List. + */ public final class SqlPoolSchemasListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolSchema.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolSchema.json */ /** * Sample code: List the schema in a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ public static void listTheSchemaInASQLAnalyticsPool(com.azure.resourcemanager.synapse.SynapseManager manager) { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSecurityAlertPoliciesCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSecurityAlertPoliciesCreateOrUpdateSamples.java index 5215bf86502d..6c773833fafc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSecurityAlertPoliciesCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSecurityAlertPoliciesCreateOrUpdateSamples.java @@ -8,59 +8,45 @@ import com.azure.resourcemanager.synapse.models.SecurityAlertPolicyState; import com.azure.resourcemanager.synapse.models.SqlPoolSecurityAlertPolicy; -/** Samples for SqlPoolSecurityAlertPolicies CreateOrUpdate. */ +/** + * Samples for SqlPoolSecurityAlertPolicies CreateOrUpdate. + */ public final class SqlPoolSecurityAlertPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateSqlPoolSecurityAlertWithAllParameters.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CreateOrUpdateSqlPoolSecurityAlertWithAllParameters.json */ /** * Sample code: Update a Sql pool's threat detection policy with all parameters. - * + * * @param manager Entry point to SynapseManager. */ public static void updateASqlPoolSThreatDetectionPolicyWithAllParameters( com.azure.resourcemanager.synapse.SynapseManager manager) { - SqlPoolSecurityAlertPolicy resource = - manager - .sqlPoolSecurityAlertPolicies() - .getWithResponse( - "securityalert-4799", - "securityalert-6440", - "testdb", - SecurityAlertPolicyName.DEFAULT, - com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() - .withState(SecurityAlertPolicyState.ENABLED) - .withEmailAccountAdmins(true) + SqlPoolSecurityAlertPolicy resource + = manager.sqlPoolSecurityAlertPolicies().getWithResponse("securityalert-4799", "securityalert-6440", + "testdb", SecurityAlertPolicyName.DEFAULT, com.azure.core.util.Context.NONE).getValue(); + resource.update().withState(SecurityAlertPolicyState.ENABLED).withEmailAccountAdmins(true) .withStorageEndpoint("https://mystorage.blob.core.windows.net") .withStorageAccountAccessKey( "sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==") - .withRetentionDays(6) - .apply(); + .withRetentionDays(6).apply(); } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateSqlPoolSecurityAlertWithMinParameters.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CreateOrUpdateSqlPoolSecurityAlertWithMinParameters.json */ /** * Sample code: Update a Sql pool's threat detection policy with minimal parameters. - * + * * @param manager Entry point to SynapseManager. */ public static void updateASqlPoolSThreatDetectionPolicyWithMinimalParameters( com.azure.resourcemanager.synapse.SynapseManager manager) { - SqlPoolSecurityAlertPolicy resource = - manager - .sqlPoolSecurityAlertPolicies() - .getWithResponse( - "securityalert-4799", - "securityalert-6440", - "testdb", - SecurityAlertPolicyName.DEFAULT, - com.azure.core.util.Context.NONE) - .getValue(); + SqlPoolSecurityAlertPolicy resource + = manager.sqlPoolSecurityAlertPolicies().getWithResponse("securityalert-4799", "securityalert-6440", + "testdb", SecurityAlertPolicyName.DEFAULT, com.azure.core.util.Context.NONE).getValue(); resource.update().withState(SecurityAlertPolicyState.ENABLED).apply(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSecurityAlertPoliciesGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSecurityAlertPoliciesGetSamples.java index b0b21cb88583..43114d6d2d8a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSecurityAlertPoliciesGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSecurityAlertPoliciesGetSamples.java @@ -6,24 +6,21 @@ import com.azure.resourcemanager.synapse.models.SecurityAlertPolicyName; -/** Samples for SqlPoolSecurityAlertPolicies Get. */ +/** + * Samples for SqlPoolSecurityAlertPolicies Get. + */ public final class SqlPoolSecurityAlertPoliciesGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolSecurityAlert.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolSecurityAlert.json */ /** * Sample code: Get a security alert of a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ public static void getASecurityAlertOfASQLAnalyticsPool(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolSecurityAlertPolicies() - .getWithResponse( - "securityalert-6852", - "securityalert-2080", - "testdb", - SecurityAlertPolicyName.DEFAULT, - com.azure.core.util.Context.NONE); + manager.sqlPoolSecurityAlertPolicies().getWithResponse("securityalert-6852", "securityalert-2080", "testdb", + SecurityAlertPolicyName.DEFAULT, com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSecurityAlertPoliciesListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSecurityAlertPoliciesListSamples.java index cc9a01a87a65..b95ce8fa1eaa 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSecurityAlertPoliciesListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSecurityAlertPoliciesListSamples.java @@ -4,19 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for SqlPoolSecurityAlertPolicies List. */ +/** + * Samples for SqlPoolSecurityAlertPolicies List. + */ public final class SqlPoolSecurityAlertPoliciesListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolSecurityAlertPolicies_List.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * SqlPoolSecurityAlertPolicies_List.json */ /** * Sample code: Get a security alert of a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ public static void getASecurityAlertOfASQLAnalyticsPool(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolSecurityAlertPolicies() - .list("securityalert-6852", "securityalert-2080", "testdb", com.azure.core.util.Context.NONE); + manager.sqlPoolSecurityAlertPolicies().list("securityalert-6852", "securityalert-2080", "testdb", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsDeleteSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsDeleteSamples.java index 60de14905323..4874c3cab5b1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsDeleteSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsDeleteSamples.java @@ -4,21 +4,22 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for SqlPoolSensitivityLabels Delete. */ +/** + * Samples for SqlPoolSensitivityLabels Delete. + */ public final class SqlPoolSensitivityLabelsDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteSqlPoolColumnSensitivityLabel.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * DeleteSqlPoolColumnSensitivityLabel.json */ /** * Sample code: Deletes the sensitivity label of a given column. - * + * * @param manager Entry point to SynapseManager. */ - public static void deletesTheSensitivityLabelOfAGivenColumn( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolSensitivityLabels() - .deleteWithResponse( - "myRG", "myServer", "myDatabase", "dbo", "myTable", "myColumn", com.azure.core.util.Context.NONE); + public static void + deletesTheSensitivityLabelOfAGivenColumn(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.sqlPoolSensitivityLabels().deleteWithResponse("myRG", "myServer", "myDatabase", "dbo", "myTable", + "myColumn", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsDisableRecommendationSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsDisableRecommendationSamples.java index 801ebdea93d4..4675a40ef752 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsDisableRecommendationSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsDisableRecommendationSamples.java @@ -4,21 +4,22 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for SqlPoolSensitivityLabels DisableRecommendation. */ +/** + * Samples for SqlPoolSensitivityLabels DisableRecommendation. + */ public final class SqlPoolSensitivityLabelsDisableRecommendationSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/RecommendedColumnSensitivityLabelDisable.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * RecommendedColumnSensitivityLabelDisable.json */ /** * Sample code: Disables sensitivity recommendations on a given column. - * + * * @param manager Entry point to SynapseManager. */ - public static void disablesSensitivityRecommendationsOnAGivenColumn( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolSensitivityLabels() - .disableRecommendationWithResponse( - "myRG", "myServer", "myDatabase", "dbo", "myTable", "myColumn", com.azure.core.util.Context.NONE); + public static void + disablesSensitivityRecommendationsOnAGivenColumn(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.sqlPoolSensitivityLabels().disableRecommendationWithResponse("myRG", "myServer", "myDatabase", "dbo", + "myTable", "myColumn", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsEnableRecommendationSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsEnableRecommendationSamples.java index 4329dfb9dc23..723cfebd609a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsEnableRecommendationSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsEnableRecommendationSamples.java @@ -4,21 +4,22 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for SqlPoolSensitivityLabels EnableRecommendation. */ +/** + * Samples for SqlPoolSensitivityLabels EnableRecommendation. + */ public final class SqlPoolSensitivityLabelsEnableRecommendationSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/RecommendedColumnSensitivityLabelEnable.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * RecommendedColumnSensitivityLabelEnable.json */ /** * Sample code: Enables sensitivity recommendations on a given column. - * + * * @param manager Entry point to SynapseManager. */ - public static void enablesSensitivityRecommendationsOnAGivenColumn( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolSensitivityLabels() - .enableRecommendationWithResponse( - "myRG", "myServer", "myDatabase", "dbo", "myTable", "myColumn", com.azure.core.util.Context.NONE); + public static void + enablesSensitivityRecommendationsOnAGivenColumn(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.sqlPoolSensitivityLabels().enableRecommendationWithResponse("myRG", "myServer", "myDatabase", "dbo", + "myTable", "myColumn", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsGetSamples.java index 2861089fc098..a314f0ba766f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsGetSamples.java @@ -6,27 +6,21 @@ import com.azure.resourcemanager.synapse.models.SensitivityLabelSource; -/** Samples for SqlPoolSensitivityLabels Get. */ +/** + * Samples for SqlPoolSensitivityLabels Get. + */ public final class SqlPoolSensitivityLabelsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolColumnSensitivityLabelGet.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * GetSqlPoolColumnSensitivityLabelGet.json */ /** * Sample code: Gets the sensitivity label of a given column. - * + * * @param manager Entry point to SynapseManager. */ public static void getsTheSensitivityLabelOfAGivenColumn(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolSensitivityLabels() - .getWithResponse( - "myRG", - "myServer", - "myDatabase", - "dbo", - "myTable", - "myColumn", - SensitivityLabelSource.CURRENT, - com.azure.core.util.Context.NONE); + manager.sqlPoolSensitivityLabels().getWithResponse("myRG", "myServer", "myDatabase", "dbo", "myTable", + "myColumn", SensitivityLabelSource.CURRENT, com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsListCurrentSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsListCurrentSamples.java index ca11285fb566..dd18b69516fc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsListCurrentSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsListCurrentSamples.java @@ -4,20 +4,22 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for SqlPoolSensitivityLabels ListCurrent. */ +/** + * Samples for SqlPoolSensitivityLabels ListCurrent. + */ public final class SqlPoolSensitivityLabelsListCurrentSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolsSensitivityLabelsWithSourceCurrent.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * ListSqlPoolsSensitivityLabelsWithSourceCurrent.json */ /** * Sample code: Gets the current sensitivity labels of a given SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ public static void getsTheCurrentSensitivityLabelsOfAGivenSQLAnalyticsPool( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolSensitivityLabels() - .listCurrent("myRG", "myServer", "myDatabase", null, com.azure.core.util.Context.NONE); + manager.sqlPoolSensitivityLabels().listCurrent("myRG", "myServer", "myDatabase", null, + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsListRecommendedSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsListRecommendedSamples.java index f58e313deaa1..ddd902d58412 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsListRecommendedSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsListRecommendedSamples.java @@ -4,20 +4,22 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for SqlPoolSensitivityLabels ListRecommended. */ +/** + * Samples for SqlPoolSensitivityLabels ListRecommended. + */ public final class SqlPoolSensitivityLabelsListRecommendedSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolSensitivityLabelsWithSourceRecommended.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * ListSqlPoolSensitivityLabelsWithSourceRecommended.json */ /** * Sample code: Gets the recommended sensitivity labels of a given SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ public static void getsTheRecommendedSensitivityLabelsOfAGivenSQLAnalyticsPool( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolSensitivityLabels() - .listRecommended("myRG", "myServer", "myDatabase", null, null, null, com.azure.core.util.Context.NONE); + manager.sqlPoolSensitivityLabels().listRecommended("myRG", "myServer", "myDatabase", null, null, null, + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsUpdateSamples.java index 59dbdeee0821..6cc97aeb8ca8 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsUpdateSamples.java @@ -11,57 +11,35 @@ import com.azure.resourcemanager.synapse.models.SensitivityLabelUpdateList; import java.util.Arrays; -/** Samples for SqlPoolSensitivityLabels Update. */ +/** + * Samples for SqlPoolSensitivityLabels Update. + */ public final class SqlPoolSensitivityLabelsUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SensitivityLabelsCurrentUpdate.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * SensitivityLabelsCurrentUpdate.json */ /** * Sample code: Update sensitivity labels of a given database using an operations batch. - * + * * @param manager Entry point to SynapseManager. */ public static void updateSensitivityLabelsOfAGivenDatabaseUsingAnOperationsBatch( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolSensitivityLabels() - .updateWithResponse( - "myRG", - "myWorkspace", - "mySqlPool", - new SensitivityLabelUpdateList() - .withOperations( - Arrays - .asList( - new SensitivityLabelUpdateInner() - .withOp(SensitivityLabelUpdateKind.SET) - .withSchema("dbo") - .withTable("table1") - .withColumn("column1") - .withSensitivityLabel( - new SensitivityLabelInner() - .withLabelName("Highly Confidential") - .withLabelId("3A477B16-9423-432B-AA97-6069B481CEC3") - .withInformationType("Financial") - .withInformationTypeId("1D3652D6-422C-4115-82F1-65DAEBC665C8") - .withRank(SensitivityLabelRank.LOW)), - new SensitivityLabelUpdateInner() - .withOp(SensitivityLabelUpdateKind.SET) - .withSchema("dbo") - .withTable("table2") - .withColumn("column2") - .withSensitivityLabel( - new SensitivityLabelInner() - .withLabelName("PII") - .withLabelId("bf91e08c-f4f0-478a-b016-25164b2a65ff") - .withInformationType("PhoneNumber") - .withInformationTypeId("d22fa6e9-5ee4-3bde-4c2b-a409604c4646") - .withRank(SensitivityLabelRank.CRITICAL)), - new SensitivityLabelUpdateInner() - .withOp(SensitivityLabelUpdateKind.REMOVE) - .withSchema("dbo") - .withTable("Table1") - .withColumn("Column3"))), - com.azure.core.util.Context.NONE); + manager.sqlPoolSensitivityLabels().updateWithResponse("myRG", "myWorkspace", "mySqlPool", + new SensitivityLabelUpdateList().withOperations(Arrays.asList(new SensitivityLabelUpdateInner() + .withOp(SensitivityLabelUpdateKind.SET).withSchema("dbo").withTable("table1").withColumn("column1") + .withSensitivityLabel(new SensitivityLabelInner().withLabelName("Highly Confidential") + .withLabelId("3A477B16-9423-432B-AA97-6069B481CEC3").withInformationType("Financial") + .withInformationTypeId("1D3652D6-422C-4115-82F1-65DAEBC665C8").withRank(SensitivityLabelRank.LOW)), + new SensitivityLabelUpdateInner().withOp(SensitivityLabelUpdateKind.SET).withSchema("dbo") + .withTable("table2").withColumn("column2") + .withSensitivityLabel(new SensitivityLabelInner().withLabelName("PII") + .withLabelId("bf91e08c-f4f0-478a-b016-25164b2a65ff").withInformationType("PhoneNumber") + .withInformationTypeId("d22fa6e9-5ee4-3bde-4c2b-a409604c4646") + .withRank(SensitivityLabelRank.CRITICAL)), + new SensitivityLabelUpdateInner().withOp(SensitivityLabelUpdateKind.REMOVE).withSchema("dbo") + .withTable("Table1").withColumn("Column3"))), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolTableColumnsListByTableNameSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolTableColumnsListByTableNameSamples.java index 9a9f9d971cbb..bbe0f0330da9 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolTableColumnsListByTableNameSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolTableColumnsListByTableNameSamples.java @@ -4,21 +4,22 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for SqlPoolTableColumns ListByTableName. */ +/** + * Samples for SqlPoolTableColumns ListByTableName. + */ public final class SqlPoolTableColumnsListByTableNameSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolColumns.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolColumns.json */ /** * Sample code: List the columns in a table of a given schema in a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ public static void listTheColumnsInATableOfAGivenSchemaInASQLAnalyticsPool( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolTableColumns() - .listByTableName( - "myRG", "serverName", "myDatabase", "dbo", "table1", null, com.azure.core.util.Context.NONE); + manager.sqlPoolTableColumns().listByTableName("myRG", "serverName", "myDatabase", "dbo", "table1", null, + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolTablesGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolTablesGetSamples.java index 60a24e679f6c..bde7aaf6877b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolTablesGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolTablesGetSamples.java @@ -4,19 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for SqlPoolTables Get. */ +/** + * Samples for SqlPoolTables Get. + */ public final class SqlPoolTablesGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolTableGet.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolTableGet.json */ /** * Sample code: Get database table. - * + * * @param manager Entry point to SynapseManager. */ public static void getDatabaseTable(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolTables() - .getWithResponse("myRG", "serverName", "myDatabase", "dbo", "table1", com.azure.core.util.Context.NONE); + manager.sqlPoolTables().getWithResponse("myRG", "serverName", "myDatabase", "dbo", "table1", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolTablesListBySchemaSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolTablesListBySchemaSamples.java index 67a27fcc2350..de6831db08be 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolTablesListBySchemaSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolTablesListBySchemaSamples.java @@ -4,20 +4,22 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for SqlPoolTables ListBySchema. */ +/** + * Samples for SqlPoolTables ListBySchema. + */ public final class SqlPoolTablesListBySchemaSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolTables.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolTables.json */ /** * Sample code: List the tables of a given schema in a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ - public static void listTheTablesOfAGivenSchemaInASQLAnalyticsPool( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolTables() - .listBySchema("myRG", "serverName", "myDatabase", "dbo", null, com.azure.core.util.Context.NONE); + public static void + listTheTablesOfAGivenSchemaInASQLAnalyticsPool(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.sqlPoolTables().listBySchema("myRG", "serverName", "myDatabase", "dbo", null, + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolTransparentDataEncryptionsCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolTransparentDataEncryptionsCreateOrUpdateSamples.java index 086e6ddb4109..96dad5c6a2b3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolTransparentDataEncryptionsCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolTransparentDataEncryptionsCreateOrUpdateSamples.java @@ -7,23 +7,23 @@ import com.azure.resourcemanager.synapse.models.TransparentDataEncryptionName; import com.azure.resourcemanager.synapse.models.TransparentDataEncryptionStatus; -/** Samples for SqlPoolTransparentDataEncryptions CreateOrUpdate. */ +/** + * Samples for SqlPoolTransparentDataEncryptions CreateOrUpdate. + */ public final class SqlPoolTransparentDataEncryptionsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateSqlPoolTransparentDataEncryption.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CreateOrUpdateSqlPoolTransparentDataEncryption.json */ /** * Sample code: Create or update a Sql pool's transparent data encryption configuration. - * + * * @param manager Entry point to SynapseManager. */ public static void createOrUpdateASqlPoolSTransparentDataEncryptionConfiguration( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolTransparentDataEncryptions() - .define(TransparentDataEncryptionName.CURRENT) + manager.sqlPoolTransparentDataEncryptions().define(TransparentDataEncryptionName.CURRENT) .withExistingSqlPool("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187") - .withStatus(TransparentDataEncryptionStatus.ENABLED) - .create(); + .withStatus(TransparentDataEncryptionStatus.ENABLED).create(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolTransparentDataEncryptionsGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolTransparentDataEncryptionsGetSamples.java index 5e515982dbd3..aa19cc36dbae 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolTransparentDataEncryptionsGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolTransparentDataEncryptionsGetSamples.java @@ -6,25 +6,22 @@ import com.azure.resourcemanager.synapse.models.TransparentDataEncryptionName; -/** Samples for SqlPoolTransparentDataEncryptions Get. */ +/** + * Samples for SqlPoolTransparentDataEncryptions Get. + */ public final class SqlPoolTransparentDataEncryptionsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolTransparentDataEncryption.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * GetSqlPoolTransparentDataEncryption.json */ /** * Sample code: Get transparent data encryption configuration of a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ public static void getTransparentDataEncryptionConfigurationOfASQLAnalyticsPool( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolTransparentDataEncryptions() - .getWithResponse( - "sqlcrudtest-6852", - "sqlcrudtest-2080", - "sqlcrudtest-9187", - TransparentDataEncryptionName.CURRENT, - com.azure.core.util.Context.NONE); + manager.sqlPoolTransparentDataEncryptions().getWithResponse("sqlcrudtest-6852", "sqlcrudtest-2080", + "sqlcrudtest-9187", TransparentDataEncryptionName.CURRENT, com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolTransparentDataEncryptionsListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolTransparentDataEncryptionsListSamples.java index a3a86a1c22d0..8ab08091ae05 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolTransparentDataEncryptionsListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolTransparentDataEncryptionsListSamples.java @@ -4,20 +4,22 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for SqlPoolTransparentDataEncryptions List. */ +/** + * Samples for SqlPoolTransparentDataEncryptions List. + */ public final class SqlPoolTransparentDataEncryptionsListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolTransparentDataEncryptionList.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * GetSqlPoolTransparentDataEncryptionList.json */ /** * Sample code: Get list of transparent data encryption configurations of a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ public static void getListOfTransparentDataEncryptionConfigurationsOfASQLAnalyticsPool( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolTransparentDataEncryptions() - .list("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187", com.azure.core.util.Context.NONE); + manager.sqlPoolTransparentDataEncryptions().list("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolUsagesListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolUsagesListSamples.java index a3ed33c3fe37..2d9446afdf7f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolUsagesListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolUsagesListSamples.java @@ -4,14 +4,17 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for SqlPoolUsages List. */ +/** + * Samples for SqlPoolUsages List. + */ public final class SqlPoolUsagesListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolUsageMetricsList.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolUsageMetricsList.json */ /** * Sample code: List the usages of a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ public static void listTheUsagesOfASQLAnalyticsPool(com.azure.resourcemanager.synapse.SynapseManager manager) { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinesCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinesCreateOrUpdateSamples.java index 7b3ec1445252..f70001cfd4eb 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinesCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinesCreateOrUpdateSamples.java @@ -9,36 +9,29 @@ import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentPolicyBaselineName; import java.util.Arrays; -/** Samples for SqlPoolVulnerabilityAssessmentRuleBaselines CreateOrUpdate. */ +/** + * Samples for SqlPoolVulnerabilityAssessmentRuleBaselines CreateOrUpdate. + */ public final class SqlPoolVulnerabilityAssessmentRuleBaselinesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateSqlPoolVulnerabilityAssessmentRuleBaseline.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CreateOrUpdateSqlPoolVulnerabilityAssessmentRuleBaseline.json */ /** * Sample code: Creates or updates a database's vulnerability assessment rule baseline. - * + * * @param manager Entry point to SynapseManager. */ public static void createsOrUpdatesADatabaseSVulnerabilityAssessmentRuleBaseline( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolVulnerabilityAssessmentRuleBaselines() - .define(VulnerabilityAssessmentPolicyBaselineName.DEFAULT) - .withExistingRule( - "vulnerabilityaseessmenttest-4799", - "vulnerabilityaseessmenttest-6440", - "testdb", - VulnerabilityAssessmentName.DEFAULT, - "VA1001") - .withBaselineResults( - Arrays - .asList( - new SqlPoolVulnerabilityAssessmentRuleBaselineItem() - .withResult(Arrays.asList("userA", "SELECT")), - new SqlPoolVulnerabilityAssessmentRuleBaselineItem() - .withResult(Arrays.asList("userB", "SELECT")), - new SqlPoolVulnerabilityAssessmentRuleBaselineItem() - .withResult(Arrays.asList("userC", "SELECT", "tableId_4")))) + manager.sqlPoolVulnerabilityAssessmentRuleBaselines().define(VulnerabilityAssessmentPolicyBaselineName.DEFAULT) + .withExistingRule("vulnerabilityaseessmenttest-4799", "vulnerabilityaseessmenttest-6440", "testdb", + VulnerabilityAssessmentName.DEFAULT, "VA1001") + .withBaselineResults(Arrays.asList( + new SqlPoolVulnerabilityAssessmentRuleBaselineItem().withResult(Arrays.asList("userA", "SELECT")), + new SqlPoolVulnerabilityAssessmentRuleBaselineItem().withResult(Arrays.asList("userB", "SELECT")), + new SqlPoolVulnerabilityAssessmentRuleBaselineItem() + .withResult(Arrays.asList("userC", "SELECT", "tableId_4")))) .create(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinesDeleteSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinesDeleteSamples.java index b97829cb740d..33c49049e593 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinesDeleteSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinesDeleteSamples.java @@ -7,27 +7,23 @@ import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentPolicyBaselineName; -/** Samples for SqlPoolVulnerabilityAssessmentRuleBaselines Delete. */ +/** + * Samples for SqlPoolVulnerabilityAssessmentRuleBaselines Delete. + */ public final class SqlPoolVulnerabilityAssessmentRuleBaselinesDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteSqlPoolVulnerabilityAssessmentRuleBaseline.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * DeleteSqlPoolVulnerabilityAssessmentRuleBaseline.json */ /** * Sample code: Removes a database's vulnerability assessment rule baseline. - * + * * @param manager Entry point to SynapseManager. */ - public static void removesADatabaseSVulnerabilityAssessmentRuleBaseline( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolVulnerabilityAssessmentRuleBaselines() - .deleteWithResponse( - "vulnerabilityaseessmenttest-4799", - "vulnerabilityaseessmenttest-6440", - "testdb", - VulnerabilityAssessmentName.DEFAULT, - "VA1001", - VulnerabilityAssessmentPolicyBaselineName.DEFAULT, - com.azure.core.util.Context.NONE); + public static void + removesADatabaseSVulnerabilityAssessmentRuleBaseline(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.sqlPoolVulnerabilityAssessmentRuleBaselines().deleteWithResponse("vulnerabilityaseessmenttest-4799", + "vulnerabilityaseessmenttest-6440", "testdb", VulnerabilityAssessmentName.DEFAULT, "VA1001", + VulnerabilityAssessmentPolicyBaselineName.DEFAULT, com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinesGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinesGetSamples.java index e678649cd442..69e639f1c5a7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinesGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinesGetSamples.java @@ -7,27 +7,23 @@ import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentPolicyBaselineName; -/** Samples for SqlPoolVulnerabilityAssessmentRuleBaselines Get. */ +/** + * Samples for SqlPoolVulnerabilityAssessmentRuleBaselines Get. + */ public final class SqlPoolVulnerabilityAssessmentRuleBaselinesGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolVulnerabilityAssessmentRuleBaselineGet.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * SqlPoolVulnerabilityAssessmentRuleBaselineGet.json */ /** * Sample code: Gets a Sql pool's vulnerability assessment rule baseline. - * + * * @param manager Entry point to SynapseManager. */ - public static void getsASqlPoolSVulnerabilityAssessmentRuleBaseline( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolVulnerabilityAssessmentRuleBaselines() - .getWithResponse( - "vulnerabilityaseessmenttest-4711", - "vulnerabilityaseessmenttest-6411", - "testdb", - VulnerabilityAssessmentName.DEFAULT, - "VA1001", - VulnerabilityAssessmentPolicyBaselineName.MASTER, - com.azure.core.util.Context.NONE); + public static void + getsASqlPoolSVulnerabilityAssessmentRuleBaseline(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.sqlPoolVulnerabilityAssessmentRuleBaselines().getWithResponse("vulnerabilityaseessmenttest-4711", + "vulnerabilityaseessmenttest-6411", "testdb", VulnerabilityAssessmentName.DEFAULT, "VA1001", + VulnerabilityAssessmentPolicyBaselineName.MASTER, com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansExportSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansExportSamples.java index b4d9d4cf385b..be8e44862c6e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansExportSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansExportSamples.java @@ -6,26 +6,23 @@ import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; -/** Samples for SqlPoolVulnerabilityAssessmentScans Export. */ +/** + * Samples for SqlPoolVulnerabilityAssessmentScans Export. + */ public final class SqlPoolVulnerabilityAssessmentScansExportSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ExportSqlPoolVulnerabilityAssessmentScan.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * ExportSqlPoolVulnerabilityAssessmentScan.json */ /** * Sample code: Export a database's vulnerability assessment scan results. - * + * * @param manager Entry point to SynapseManager. */ - public static void exportADatabaseSVulnerabilityAssessmentScanResults( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolVulnerabilityAssessmentScans() - .exportWithResponse( - "vulnerabilityassessmenttest-4799", - "vulnerabilityassessmenttest-6440", - "testdb", - VulnerabilityAssessmentName.DEFAULT, - "scan001", - com.azure.core.util.Context.NONE); + public static void + exportADatabaseSVulnerabilityAssessmentScanResults(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.sqlPoolVulnerabilityAssessmentScans().exportWithResponse("vulnerabilityassessmenttest-4799", + "vulnerabilityassessmenttest-6440", "testdb", VulnerabilityAssessmentName.DEFAULT, "scan001", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansGetSamples.java index 0905e5dfaaa5..4b612437d339 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansGetSamples.java @@ -6,26 +6,23 @@ import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; -/** Samples for SqlPoolVulnerabilityAssessmentScans Get. */ +/** + * Samples for SqlPoolVulnerabilityAssessmentScans Get. + */ public final class SqlPoolVulnerabilityAssessmentScansGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolVulnerabilityAssessmentScanRecordsGet.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * SqlPoolVulnerabilityAssessmentScanRecordsGet.json */ /** * Sample code: Gets a database vulnerability assessment scan record by scan ID. - * + * * @param manager Entry point to SynapseManager. */ public static void getsADatabaseVulnerabilityAssessmentScanRecordByScanID( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolVulnerabilityAssessmentScans() - .getWithResponse( - "vulnerabilityassessmenttest-4711", - "vulnerabilityassessmenttest-6411", - "testdb", - VulnerabilityAssessmentName.DEFAULT, - "scan001", - com.azure.core.util.Context.NONE); + manager.sqlPoolVulnerabilityAssessmentScans().getWithResponse("vulnerabilityassessmenttest-4711", + "vulnerabilityassessmenttest-6411", "testdb", VulnerabilityAssessmentName.DEFAULT, "scan001", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansInitiateScanSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansInitiateScanSamples.java index 18b84541b1b4..1403ec436210 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansInitiateScanSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansInitiateScanSamples.java @@ -6,26 +6,23 @@ import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; -/** Samples for SqlPoolVulnerabilityAssessmentScans InitiateScan. */ +/** + * Samples for SqlPoolVulnerabilityAssessmentScans InitiateScan. + */ public final class SqlPoolVulnerabilityAssessmentScansInitiateScanSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ExecuteSqlPoolVulnerabilityAssessmentScans.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * ExecuteSqlPoolVulnerabilityAssessmentScans.json */ /** * Sample code: Executes a Sql pool's vulnerability assessment scan. - * + * * @param manager Entry point to SynapseManager. */ - public static void executesASqlPoolSVulnerabilityAssessmentScan( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolVulnerabilityAssessmentScans() - .initiateScan( - "vulnerabilityassessmenttest-4711", - "vulnerabilityassessmenttest-6411", - "testdb", - VulnerabilityAssessmentName.DEFAULT, - "scan01", - com.azure.core.util.Context.NONE); + public static void + executesASqlPoolSVulnerabilityAssessmentScan(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.sqlPoolVulnerabilityAssessmentScans().initiateScan("vulnerabilityassessmenttest-4711", + "vulnerabilityassessmenttest-6411", "testdb", VulnerabilityAssessmentName.DEFAULT, "scan01", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansListSamples.java index ebce5ab1fd19..034b2123bd60 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansListSamples.java @@ -6,25 +6,23 @@ import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; -/** Samples for SqlPoolVulnerabilityAssessmentScans List. */ +/** + * Samples for SqlPoolVulnerabilityAssessmentScans List. + */ public final class SqlPoolVulnerabilityAssessmentScansListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolVulnerabilityAssessmentScanRecords.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * ListSqlPoolVulnerabilityAssessmentScanRecords.json */ /** * Sample code: Get a vulnerability scan record of a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ - public static void getAVulnerabilityScanRecordOfASQLAnalyticsPool( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolVulnerabilityAssessmentScans() - .list( - "vulnerabilityassessmenttest-4711", - "vulnerabilityassessmenttest-6411", - "testdb", - VulnerabilityAssessmentName.DEFAULT, - com.azure.core.util.Context.NONE); + public static void + getAVulnerabilityScanRecordOfASQLAnalyticsPool(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.sqlPoolVulnerabilityAssessmentScans().list("vulnerabilityassessmenttest-4711", + "vulnerabilityassessmenttest-6411", "testdb", VulnerabilityAssessmentName.DEFAULT, + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentsCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentsCreateOrUpdateSamples.java index 7d2140060b96..429d082c95f3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentsCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentsCreateOrUpdateSamples.java @@ -8,72 +8,66 @@ import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentRecurringScansProperties; import java.util.Arrays; -/** Samples for SqlPoolVulnerabilityAssessments CreateOrUpdate. */ +/** + * Samples for SqlPoolVulnerabilityAssessments CreateOrUpdate. + */ public final class SqlPoolVulnerabilityAssessmentsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateSqlPoolVulnerabilityAssessmentWithContainerSasKeyAndMinParameters.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CreateOrUpdateSqlPoolVulnerabilityAssessmentWithContainerSasKeyAndMinParameters.json */ /** * Sample code: Create a database's vulnerability assessment with minimal parameters, when storageContainerSasKey is * specified. - * + * * @param manager Entry point to SynapseManager. */ public static void createADatabaseSVulnerabilityAssessmentWithMinimalParametersWhenStorageContainerSasKeyIsSpecified( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolVulnerabilityAssessments() - .define(VulnerabilityAssessmentName.DEFAULT) + manager.sqlPoolVulnerabilityAssessments().define(VulnerabilityAssessmentName.DEFAULT) .withExistingSqlPool("vulnerabilityaseessmenttest-4799", "vulnerabilityaseessmenttest-6440", "testdb") .withStorageContainerPath("https://myStorage.blob.core.windows.net/vulnerability-assessment/") - .withStorageContainerSasKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") - .create(); + .withStorageContainerSasKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").create(); } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateSqlPoolVulnerabilityAssessmentWithAllParameters.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CreateOrUpdateSqlPoolVulnerabilityAssessmentWithAllParameters.json */ /** * Sample code: Create a database's vulnerability assessment with all parameters. - * + * * @param manager Entry point to SynapseManager. */ public static void createADatabaseSVulnerabilityAssessmentWithAllParameters( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolVulnerabilityAssessments() - .define(VulnerabilityAssessmentName.DEFAULT) + manager.sqlPoolVulnerabilityAssessments().define(VulnerabilityAssessmentName.DEFAULT) .withExistingSqlPool("vulnerabilityaseessmenttest-4799", "vulnerabilityaseessmenttest-6440", "testdb") .withStorageContainerPath("https://myStorage.blob.core.windows.net/vulnerability-assessment/") .withStorageContainerSasKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") .withStorageAccountAccessKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") - .withRecurringScans( - new VulnerabilityAssessmentRecurringScansProperties() - .withIsEnabled(true) - .withEmailSubscriptionAdmins(true) - .withEmails(Arrays.asList("email1@mail.com", "email2@mail.com"))) + .withRecurringScans(new VulnerabilityAssessmentRecurringScansProperties().withIsEnabled(true) + .withEmailSubscriptionAdmins(true).withEmails(Arrays.asList("email1@mail.com", "email2@mail.com"))) .create(); } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateVulnerabilityAssessmentWithStorageAccessKeyAndMinParameters.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CreateOrUpdateVulnerabilityAssessmentWithStorageAccessKeyAndMinParameters.json */ /** * Sample code: Create a database's vulnerability assessment with minimal parameters, when storageAccountAccessKey * is specified. - * + * * @param manager Entry point to SynapseManager. */ public static void createADatabaseSVulnerabilityAssessmentWithMinimalParametersWhenStorageAccountAccessKeyIsSpecified( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolVulnerabilityAssessments() - .define(VulnerabilityAssessmentName.DEFAULT) + manager.sqlPoolVulnerabilityAssessments().define(VulnerabilityAssessmentName.DEFAULT) .withExistingSqlPool("vulnerabilityaseessmenttest-4799", "vulnerabilityaseessmenttest-6440", "testdb") .withStorageContainerPath("https://myStorage.blob.core.windows.net/vulnerability-assessment/") - .withStorageAccountAccessKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") - .create(); + .withStorageAccountAccessKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").create(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentsDeleteSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentsDeleteSamples.java index 91f8d5a0e92a..6bc63e3abd76 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentsDeleteSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentsDeleteSamples.java @@ -6,25 +6,23 @@ import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; -/** Samples for SqlPoolVulnerabilityAssessments Delete. */ +/** + * Samples for SqlPoolVulnerabilityAssessments Delete. + */ public final class SqlPoolVulnerabilityAssessmentsDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteSqlPoolVulnerabilityAssessment.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * DeleteSqlPoolVulnerabilityAssessment.json */ /** * Sample code: Remove a database's vulnerability assessment. - * + * * @param manager Entry point to SynapseManager. */ - public static void removeADatabaseSVulnerabilityAssessment( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolVulnerabilityAssessments() - .deleteWithResponse( - "vulnerabilityaseessmenttest-4799", - "vulnerabilityaseessmenttest-6440", - "testdb", - VulnerabilityAssessmentName.DEFAULT, - com.azure.core.util.Context.NONE); + public static void + removeADatabaseSVulnerabilityAssessment(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.sqlPoolVulnerabilityAssessments().deleteWithResponse("vulnerabilityaseessmenttest-4799", + "vulnerabilityaseessmenttest-6440", "testdb", VulnerabilityAssessmentName.DEFAULT, + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentsGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentsGetSamples.java index 21bfd712a409..05b76da79e2c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentsGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentsGetSamples.java @@ -6,24 +6,22 @@ import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; -/** Samples for SqlPoolVulnerabilityAssessments Get. */ +/** + * Samples for SqlPoolVulnerabilityAssessments Get. + */ public final class SqlPoolVulnerabilityAssessmentsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolVulnerabilityAssessment.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * GetSqlPoolVulnerabilityAssessment.json */ /** * Sample code: Get a Sql pool's vulnerability assessment. - * + * * @param manager Entry point to SynapseManager. */ public static void getASqlPoolSVulnerabilityAssessment(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolVulnerabilityAssessments() - .getWithResponse( - "vulnerabilityaseessmenttest-4799", - "vulnerabilityaseessmenttest-6440", - "testdb", - VulnerabilityAssessmentName.DEFAULT, - com.azure.core.util.Context.NONE); + manager.sqlPoolVulnerabilityAssessments().getWithResponse("vulnerabilityaseessmenttest-4799", + "vulnerabilityaseessmenttest-6440", "testdb", VulnerabilityAssessmentName.DEFAULT, + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentsListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentsListSamples.java index 668d6e24d027..c747552c181b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentsListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentsListSamples.java @@ -4,24 +4,22 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for SqlPoolVulnerabilityAssessments List. */ +/** + * Samples for SqlPoolVulnerabilityAssessments List. + */ public final class SqlPoolVulnerabilityAssessmentsListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolVulnerabilityAssessments.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * ListSqlPoolVulnerabilityAssessments.json */ /** * Sample code: Get a vulnerability assessment of a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ - public static void getAVulnerabilityAssessmentOfASQLAnalyticsPool( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolVulnerabilityAssessments() - .list( - "vulnerabilityaseessmenttest-4799", - "vulnerabilityaseessmenttest-6440", - "testdb", - com.azure.core.util.Context.NONE); + public static void + getAVulnerabilityAssessmentOfASQLAnalyticsPool(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.sqlPoolVulnerabilityAssessments().list("vulnerabilityaseessmenttest-4799", + "vulnerabilityaseessmenttest-6440", "testdb", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifierCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifierCreateOrUpdateSamples.java index 909e8e36d5fe..78bd491cf345 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifierCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifierCreateOrUpdateSamples.java @@ -4,46 +4,40 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for SqlPoolWorkloadClassifier CreateOrUpdate. */ +/** + * Samples for SqlPoolWorkloadClassifier CreateOrUpdate. + */ public final class SqlPoolWorkloadClassifierCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateSqlPoolWorkloadClassifierMin.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CreateOrUpdateSqlPoolWorkloadClassifierMin.json */ /** * Sample code: Create a workload classifier with the required properties specified. - * + * * @param manager Entry point to SynapseManager. */ public static void createAWorkloadClassifierWithTheRequiredPropertiesSpecified( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolWorkloadClassifiers() - .define("wlm_workloadclassifier") + manager.sqlPoolWorkloadClassifiers().define("wlm_workloadclassifier") .withExistingWorkloadGroup("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187", "wlm_workloadgroup") - .withMemberName("dbo") - .create(); + .withMemberName("dbo").create(); } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateSqlPoolWorkloadClassifierMax.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CreateOrUpdateSqlPoolWorkloadClassifierMax.json */ /** * Sample code: Create a workload classifier with all properties specified. - * + * * @param manager Entry point to SynapseManager. */ - public static void createAWorkloadClassifierWithAllPropertiesSpecified( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolWorkloadClassifiers() - .define("wlm_workloadclassifier") + public static void + createAWorkloadClassifierWithAllPropertiesSpecified(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.sqlPoolWorkloadClassifiers().define("wlm_workloadclassifier") .withExistingWorkloadGroup("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187", "wlm_workloadgroup") - .withMemberName("dbo") - .withLabel("test_label") - .withContext("test_context") - .withStartTime("12:00") - .withEndTime("14:00") - .withImportance("high") - .create(); + .withMemberName("dbo").withLabel("test_label").withContext("test_context").withStartTime("12:00") + .withEndTime("14:00").withImportance("high").create(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifierDeleteSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifierDeleteSamples.java index 906a0c8c7753..51859541d8c1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifierDeleteSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifierDeleteSamples.java @@ -4,26 +4,22 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for SqlPoolWorkloadClassifier Delete. */ +/** + * Samples for SqlPoolWorkloadClassifier Delete. + */ public final class SqlPoolWorkloadClassifierDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteSqlPoolWorkloadGroupWorkloadClassifer.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * DeleteSqlPoolWorkloadGroupWorkloadClassifer.json */ /** * Sample code: Delete a workload classifier of a SQL Analytics pool's workload group. - * + * * @param manager Entry point to SynapseManager. */ public static void deleteAWorkloadClassifierOfASQLAnalyticsPoolSWorkloadGroup( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolWorkloadClassifiers() - .delete( - "sqlcrudtest-6852", - "sqlcrudtest-2080", - "sqlcrudtest-9187", - "wlm_workloadgroup", - "wlm_workloadclassifier", - com.azure.core.util.Context.NONE); + manager.sqlPoolWorkloadClassifiers().delete("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187", + "wlm_workloadgroup", "wlm_workloadclassifier", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifierGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifierGetSamples.java index 848e94cbecdc..67b73ecc4de3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifierGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifierGetSamples.java @@ -4,26 +4,22 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for SqlPoolWorkloadClassifier Get. */ +/** + * Samples for SqlPoolWorkloadClassifier Get. + */ public final class SqlPoolWorkloadClassifierGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolWorkloadGroupWorkloadClassifier.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * GetSqlPoolWorkloadGroupWorkloadClassifier.json */ /** * Sample code: Get a workload classifier for SQL Analytics pool's workload group. - * + * * @param manager Entry point to SynapseManager. */ public static void getAWorkloadClassifierForSQLAnalyticsPoolSWorkloadGroup( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolWorkloadClassifiers() - .getWithResponse( - "sqlcrudtest-6852", - "sqlcrudtest-2080", - "sqlcrudtest-9187", - "wlm_workloadgroup", - "wlm_classifier", - com.azure.core.util.Context.NONE); + manager.sqlPoolWorkloadClassifiers().getWithResponse("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187", + "wlm_workloadgroup", "wlm_classifier", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifierListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifierListSamples.java index 1559cdfb9fc8..4f2abcb3cb63 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifierListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifierListSamples.java @@ -4,25 +4,22 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for SqlPoolWorkloadClassifier List. */ +/** + * Samples for SqlPoolWorkloadClassifier List. + */ public final class SqlPoolWorkloadClassifierListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolWorkloadGroupWorkloadClassifierList.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * GetSqlPoolWorkloadGroupWorkloadClassifierList.json */ /** * Sample code: Get the list of workload classifiers of a SQL Analytics pool's workload group. - * + * * @param manager Entry point to SynapseManager. */ public static void getTheListOfWorkloadClassifiersOfASQLAnalyticsPoolSWorkloadGroup( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolWorkloadClassifiers() - .list( - "sqlcrudtest-6852", - "sqlcrudtest-2080", - "sqlcrudtest-9187", - "wlm_workloadgroup", - com.azure.core.util.Context.NONE); + manager.sqlPoolWorkloadClassifiers().list("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187", + "wlm_workloadgroup", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupCreateOrUpdateSamples.java index 93970879756d..4ecfde14a4fc 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupCreateOrUpdateSamples.java @@ -4,48 +4,40 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for SqlPoolWorkloadGroup CreateOrUpdate. */ +/** + * Samples for SqlPoolWorkloadGroup CreateOrUpdate. + */ public final class SqlPoolWorkloadGroupCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateSqlPoolWorkloadGroupMin.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CreateOrUpdateSqlPoolWorkloadGroupMin.json */ /** * Sample code: Create a workload group with the required properties specified. - * + * * @param manager Entry point to SynapseManager. */ public static void createAWorkloadGroupWithTheRequiredPropertiesSpecified( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolWorkloadGroups() - .define("smallrc") - .withExistingSqlPool("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187") - .withMinResourcePercent(0) - .withMaxResourcePercent(100) - .withMinResourcePercentPerRequest(3.0) - .create(); + manager.sqlPoolWorkloadGroups().define("smallrc") + .withExistingSqlPool("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187").withMinResourcePercent(0) + .withMaxResourcePercent(100).withMinResourcePercentPerRequest(3.0).create(); } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateSqlPoolWorkloadGroupMax.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CreateOrUpdateSqlPoolWorkloadGroupMax.json */ /** * Sample code: Create a workload group with all properties specified. - * + * * @param manager Entry point to SynapseManager. */ - public static void createAWorkloadGroupWithAllPropertiesSpecified( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolWorkloadGroups() - .define("smallrc") - .withExistingSqlPool("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187") - .withMinResourcePercent(0) - .withMaxResourcePercent(100) - .withMinResourcePercentPerRequest(3.0) - .withMaxResourcePercentPerRequest(3.0D) - .withImportance("normal") - .withQueryExecutionTimeout(0) - .create(); + public static void + createAWorkloadGroupWithAllPropertiesSpecified(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.sqlPoolWorkloadGroups().define("smallrc") + .withExistingSqlPool("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187").withMinResourcePercent(0) + .withMaxResourcePercent(100).withMinResourcePercentPerRequest(3.0).withMaxResourcePercentPerRequest(3.0D) + .withImportance("normal").withQueryExecutionTimeout(0).create(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupDeleteSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupDeleteSamples.java index 66fb19ce5960..43c85338b822 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupDeleteSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupDeleteSamples.java @@ -4,25 +4,23 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for SqlPoolWorkloadGroup Delete. */ +/** + * Samples for SqlPoolWorkloadGroup Delete. + */ public final class SqlPoolWorkloadGroupDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteSqlPoolWorkloadGroup.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteSqlPoolWorkloadGroup. + * json */ /** * Sample code: Delete a workload group of a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ - public static void deleteAWorkloadGroupOfASQLAnalyticsPool( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolWorkloadGroups() - .delete( - "sqlcrudtest-6852", - "sqlcrudtest-2080", - "sqlcrudtest-9187", - "wlm_workloadgroup", - com.azure.core.util.Context.NONE); + public static void + deleteAWorkloadGroupOfASQLAnalyticsPool(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.sqlPoolWorkloadGroups().delete("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187", + "wlm_workloadgroup", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupGetSamples.java index 30c6be49a9a6..1a8476e5b3cb 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupGetSamples.java @@ -4,24 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for SqlPoolWorkloadGroup Get. */ +/** + * Samples for SqlPoolWorkloadGroup Get. + */ public final class SqlPoolWorkloadGroupGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolWorkloadGroup.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolWorkloadGroup.json */ /** * Sample code: Get a a workload group of a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ public static void getAAWorkloadGroupOfASQLAnalyticsPool(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolWorkloadGroups() - .getWithResponse( - "sqlcrudtest-6852", - "sqlcrudtest-2080", - "sqlcrudtest-9187", - "smallrc", - com.azure.core.util.Context.NONE); + manager.sqlPoolWorkloadGroups().getWithResponse("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187", + "smallrc", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupListSamples.java index 5d1cdeda8f05..706e87e71a79 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupListSamples.java @@ -4,20 +4,23 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for SqlPoolWorkloadGroup List. */ +/** + * Samples for SqlPoolWorkloadGroup List. + */ public final class SqlPoolWorkloadGroupListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolWorkloadGroupList.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolWorkloadGroupList. + * json */ /** * Sample code: Get the list of workload groups of a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ - public static void getTheListOfWorkloadGroupsOfASQLAnalyticsPool( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPoolWorkloadGroups() - .list("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187", com.azure.core.util.Context.NONE); + public static void + getTheListOfWorkloadGroupsOfASQLAnalyticsPool(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.sqlPoolWorkloadGroups().list("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsCreateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsCreateSamples.java index d30eb5e802e7..3ab357ab4ecf 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsCreateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsCreateSamples.java @@ -10,33 +10,28 @@ import java.util.HashMap; import java.util.Map; -/** Samples for SqlPools Create. */ +/** + * Samples for SqlPools Create. + */ public final class SqlPoolsCreateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateSqlPool.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateSqlPool.json */ /** * Sample code: Create a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ public static void createASQLAnalyticsPool(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPools() - .define("ExampleSqlPool") - .withRegion("Southeast Asia") - .withExistingWorkspace("ExampleResourceGroup", "ExampleWorkspace") - .withTags(mapOf()) - .withSku(new Sku().withTier("").withName("")) - .withMaxSizeBytes(0L) - .withCollation("") - .withSourceDatabaseId("") - .withRecoverableDatabaseId("") - .withCreateMode(CreateMode.fromString("")) - .withStorageAccountType(StorageAccountType.LRS) - .create(); + manager.sqlPools().define("ExampleSqlPool").withRegion("Southeast Asia") + .withExistingWorkspace("ExampleResourceGroup", "ExampleWorkspace").withTags(mapOf()) + .withSku(new Sku().withTier("").withName("")).withMaxSizeBytes(0L).withCollation("") + .withSourceDatabaseId("").withRecoverableDatabaseId("").withCreateMode(CreateMode.fromString("")) + .withStorageAccountType(StorageAccountType.LRS).create(); } + // Use "Map.of" if available @SuppressWarnings("unchecked") private static Map mapOf(Object... inputs) { Map map = new HashMap<>(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsDeleteSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsDeleteSamples.java index c17d7d7ea499..693932f0b5cb 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsDeleteSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsDeleteSamples.java @@ -4,19 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for SqlPools Delete. */ +/** + * Samples for SqlPools Delete. + */ public final class SqlPoolsDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteSqlPool.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteSqlPool.json */ /** * Sample code: Delete a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ public static void deleteASQLAnalyticsPool(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPools() - .delete("ExampleResourceGroup", "ExampleWorkspace", "ExampleSqlPool", com.azure.core.util.Context.NONE); + manager.sqlPools().delete("ExampleResourceGroup", "ExampleWorkspace", "ExampleSqlPool", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsGetSamples.java index 9f096ed4394d..0322a2c9e195 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsGetSamples.java @@ -4,20 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for SqlPools Get. */ +/** + * Samples for SqlPools Get. + */ public final class SqlPoolsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPool.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPool.json */ /** * Sample code: Get a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ public static void getASQLAnalyticsPool(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPools() - .getWithResponse( - "sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187", com.azure.core.util.Context.NONE); + manager.sqlPools().getWithResponse("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsListByWorkspaceSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsListByWorkspaceSamples.java index d1c92f4144b7..76c8c57efa76 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsListByWorkspaceSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsListByWorkspaceSamples.java @@ -4,27 +4,31 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for SqlPools ListByWorkspace. */ +/** + * Samples for SqlPools ListByWorkspace. + */ public final class SqlPoolsListByWorkspaceSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolsInWorkspaceWithFilter.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * ListSqlPoolsInWorkspaceWithFilter.json */ /** * Sample code: List SQL Analytics pools in a workspace with filter. - * + * * @param manager Entry point to SynapseManager. */ - public static void listSQLAnalyticsPoolsInAWorkspaceWithFilter( - com.azure.resourcemanager.synapse.SynapseManager manager) { + public static void + listSQLAnalyticsPoolsInAWorkspaceWithFilter(com.azure.resourcemanager.synapse.SynapseManager manager) { manager.sqlPools().listByWorkspace("sqlcrudtest-6845", "sqlcrudtest-7177", com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolsInWorkspace.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolsInWorkspace.json */ /** * Sample code: List SQL Analytics pools in a workspace. - * + * * @param manager Entry point to SynapseManager. */ public static void listSQLAnalyticsPoolsInAWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsPauseSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsPauseSamples.java index 7f390f8c1729..86a1def423f3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsPauseSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsPauseSamples.java @@ -4,14 +4,17 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for SqlPools Pause. */ +/** + * Samples for SqlPools Pause. + */ public final class SqlPoolsPauseSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/PauseSqlPool.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/PauseSqlPool.json */ /** * Sample code: Pause a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ public static void pauseASQLAnalyticsPool(com.azure.resourcemanager.synapse.SynapseManager manager) { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsRenameSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsRenameSamples.java deleted file mode 100644 index 7749a01b1cc8..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsRenameSamples.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.resourcemanager.synapse.models.ResourceMoveDefinition; - -/** Samples for SqlPools Rename. */ -public final class SqlPoolsRenameSamples { - /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/RenameSqlPool.json - */ - /** - * Sample code: Rename a SQL Analytics pool. - * - * @param manager Entry point to SynapseManager. - */ - public static void renameASQLAnalyticsPool(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPools() - .renameWithResponse( - "Default-SQL-SouthEastAsia", - "testsvr", - "testdb", - new ResourceMoveDefinition() - .withId( - "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Synapse/workspaces/testsvr/sqlPools/newtestdb"), - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsResumeSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsResumeSamples.java index 3ec00b9e816c..97905f27f49c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsResumeSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsResumeSamples.java @@ -4,19 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for SqlPools Resume. */ +/** + * Samples for SqlPools Resume. + */ public final class SqlPoolsResumeSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ResumeSqlPool.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ResumeSqlPool.json */ /** * Sample code: Resume a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ public static void resumeASQLAnalyticsPool(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .sqlPools() - .resume("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187", com.azure.core.util.Context.NONE); + manager.sqlPools().resume("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsUpdateSamples.java index 7b8fbda16d9d..3193717c346b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/SqlPoolsUpdateSamples.java @@ -9,26 +9,26 @@ import java.util.HashMap; import java.util.Map; -/** Samples for SqlPools Update. */ +/** + * Samples for SqlPools Update. + */ public final class SqlPoolsUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/UpdateSqlPool.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/UpdateSqlPool.json */ /** * Sample code: Update a SQL Analytics pool. - * + * * @param manager Entry point to SynapseManager. */ public static void updateASQLAnalyticsPool(com.azure.resourcemanager.synapse.SynapseManager manager) { - SqlPool resource = - manager - .sqlPools() - .getWithResponse( - "ExampleResourceGroup", "ExampleWorkspace", "ExampleSqlPool", com.azure.core.util.Context.NONE) - .getValue(); + SqlPool resource = manager.sqlPools().getWithResponse("ExampleResourceGroup", "ExampleWorkspace", + "ExampleSqlPool", com.azure.core.util.Context.NONE).getValue(); resource.update().withTags(mapOf()).withSku(new Sku().withTier("").withName("")).withMaxSizeBytes(0L).apply(); } + // Use "Map.of" if available @SuppressWarnings("unchecked") private static Map mapOf(Object... inputs) { Map map = new HashMap<>(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminsCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminsCreateOrUpdateSamples.java index 0a629b80a443..cd772527c547 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminsCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminsCreateOrUpdateSamples.java @@ -6,28 +6,25 @@ import com.azure.resourcemanager.synapse.fluent.models.WorkspaceAadAdminInfoInner; -/** Samples for WorkspaceAadAdmins CreateOrUpdate. */ +/** + * Samples for WorkspaceAadAdmins CreateOrUpdate. + */ public final class WorkspaceAadAdminsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateWorkspaceAadAdmin.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CreateOrUpdateWorkspaceAadAdmin.json */ /** * Sample code: Create or update workspace active directory admin. - * + * * @param manager Entry point to SynapseManager. */ - public static void createOrUpdateWorkspaceActiveDirectoryAdmin( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceAadAdmins() - .createOrUpdate( - "resourceGroup1", - "workspace1", - new WorkspaceAadAdminInfoInner() - .withTenantId("c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c") - .withLogin("bob@contoso.com") - .withAdministratorType("ActiveDirectory") - .withSid("c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c"), - com.azure.core.util.Context.NONE); + public static void + createOrUpdateWorkspaceActiveDirectoryAdmin(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.workspaceAadAdmins().createOrUpdate("resourceGroup1", "workspace1", + new WorkspaceAadAdminInfoInner().withTenantId("c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c") + .withLogin("bob@contoso.com").withAdministratorType("ActiveDirectory") + .withSid("c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c"), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminsDeleteSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminsDeleteSamples.java index 631111cf4f7e..02d34c93fec7 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminsDeleteSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminsDeleteSamples.java @@ -4,14 +4,17 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for WorkspaceAadAdmins Delete. */ +/** + * Samples for WorkspaceAadAdmins Delete. + */ public final class WorkspaceAadAdminsDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteWorkspaceAadAdmin.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteWorkspaceAadAdmin.json */ /** * Sample code: Delete workspace active directory admin. - * + * * @param manager Entry point to SynapseManager. */ public static void deleteWorkspaceActiveDirectoryAdmin(com.azure.resourcemanager.synapse.SynapseManager manager) { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminsGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminsGetSamples.java index bc658b30041c..66e700ab49ac 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminsGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminsGetSamples.java @@ -4,14 +4,17 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for WorkspaceAadAdmins Get. */ +/** + * Samples for WorkspaceAadAdmins Get. + */ public final class WorkspaceAadAdminsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceAadAdmin.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceAadAdmin.json */ /** * Sample code: Get workspace active directory admin. - * + * * @param manager Entry point to SynapseManager. */ public static void getWorkspaceActiveDirectoryAdmin(com.azure.resourcemanager.synapse.SynapseManager manager) { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateSamples.java index ff5ba476a700..0283d8d227af 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateSamples.java @@ -8,27 +8,25 @@ import com.azure.resourcemanager.synapse.models.DesiredState; import com.azure.resourcemanager.synapse.models.ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity; -/** Samples for WorkspaceManagedIdentitySqlControlSettings CreateOrUpdate. */ +/** + * Samples for WorkspaceManagedIdentitySqlControlSettings CreateOrUpdate. + */ public final class WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateManagedIdentitySqlControlSettings.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CreateOrUpdateManagedIdentitySqlControlSettings.json */ /** * Sample code: Create or update managed identity sql control settings. - * + * * @param manager Entry point to SynapseManager. */ - public static void createOrUpdateManagedIdentitySqlControlSettings( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedIdentitySqlControlSettings() - .createOrUpdate( - "resourceGroup1", - "workspace1", - new ManagedIdentitySqlControlSettingsModelInner() - .withGrantSqlControlToManagedIdentity( - new ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity() - .withDesiredState(DesiredState.ENABLED)), - com.azure.core.util.Context.NONE); + public static void + createOrUpdateManagedIdentitySqlControlSettings(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.workspaceManagedIdentitySqlControlSettings().createOrUpdate("resourceGroup1", "workspace1", + new ManagedIdentitySqlControlSettingsModelInner().withGrantSqlControlToManagedIdentity( + new ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity() + .withDesiredState(DesiredState.ENABLED)), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedIdentitySqlControlSettingsGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedIdentitySqlControlSettingsGetSamples.java index 03dc341414b2..b03afc710b54 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedIdentitySqlControlSettingsGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedIdentitySqlControlSettingsGetSamples.java @@ -4,19 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for WorkspaceManagedIdentitySqlControlSettings Get. */ +/** + * Samples for WorkspaceManagedIdentitySqlControlSettings Get. + */ public final class WorkspaceManagedIdentitySqlControlSettingsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetManagedIdentitySqlControlSettings.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * GetManagedIdentitySqlControlSettings.json */ /** * Sample code: Get managed identity sql control settings. - * + * * @param manager Entry point to SynapseManager. */ public static void getManagedIdentitySqlControlSettings(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedIdentitySqlControlSettings() - .getWithResponse("resourceGroup1", "workspace1", com.azure.core.util.Context.NONE); + manager.workspaceManagedIdentitySqlControlSettings().getWithResponse("resourceGroup1", "workspace1", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateSamples.java index 6e24bdef03ee..263507a9c092 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateSamples.java @@ -9,57 +9,48 @@ import java.util.Arrays; import java.util.UUID; -/** Samples for WorkspaceManagedSqlServerBlobAuditingPolicies CreateOrUpdate. */ +/** + * Samples for WorkspaceManagedSqlServerBlobAuditingPolicies CreateOrUpdate. + */ public final class WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateWorkspaceManagedSqlServerBlobAuditingSettingsWithAllParameters.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CreateWorkspaceManagedSqlServerBlobAuditingSettingsWithAllParameters.json */ /** * Sample code: Create or update blob auditing policy of workspace SQL Server with all parameters. - * + * * @param manager Entry point to SynapseManager. */ public static void createOrUpdateBlobAuditingPolicyOfWorkspaceSQLServerWithAllParameters( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedSqlServerBlobAuditingPolicies() - .define(BlobAuditingPolicyName.DEFAULT) - .withExistingWorkspace("wsg-7398", "testWorkspace") - .withState(BlobAuditingPolicyState.ENABLED) + manager.workspaceManagedSqlServerBlobAuditingPolicies().define(BlobAuditingPolicyName.DEFAULT) + .withExistingWorkspace("wsg-7398", "testWorkspace").withState(BlobAuditingPolicyState.ENABLED) .withStorageEndpoint("https://mystorage.blob.core.windows.net") .withStorageAccountAccessKey( "sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==") .withRetentionDays(6) - .withAuditActionsAndGroups( - Arrays - .asList( - "SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP", - "FAILED_DATABASE_AUTHENTICATION_GROUP", - "BATCH_COMPLETED_GROUP")) + .withAuditActionsAndGroups(Arrays.asList("SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP", + "FAILED_DATABASE_AUTHENTICATION_GROUP", "BATCH_COMPLETED_GROUP")) .withStorageAccountSubscriptionId(UUID.fromString("00000000-1234-0000-5678-000000000000")) - .withIsStorageSecondaryKeyInUse(false) - .withIsAzureMonitorTargetEnabled(true) - .withQueueDelayMs(4000) + .withIsStorageSecondaryKeyInUse(false).withIsAzureMonitorTargetEnabled(true).withQueueDelayMs(4000) .create(); } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateWorkspaceManagedSqlServerBlobAuditingSettingsWithMinParameters.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CreateWorkspaceManagedSqlServerBlobAuditingSettingsWithMinParameters.json */ /** * Sample code: Create or update blob auditing policy of workspace managed Sql Server with minimal parameters. - * + * * @param manager Entry point to SynapseManager. */ public static void createOrUpdateBlobAuditingPolicyOfWorkspaceManagedSqlServerWithMinimalParameters( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedSqlServerBlobAuditingPolicies() - .define(BlobAuditingPolicyName.DEFAULT) - .withExistingWorkspace("wsg-7398", "testWorkspace") - .withState(BlobAuditingPolicyState.ENABLED) - .withStorageEndpoint("https://mystorage.blob.core.windows.net") - .withStorageAccountAccessKey( + manager.workspaceManagedSqlServerBlobAuditingPolicies().define(BlobAuditingPolicyName.DEFAULT) + .withExistingWorkspace("wsg-7398", "testWorkspace").withState(BlobAuditingPolicyState.ENABLED) + .withStorageEndpoint("https://mystorage.blob.core.windows.net").withStorageAccountAccessKey( "sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==") .create(); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerBlobAuditingPoliciesGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerBlobAuditingPoliciesGetSamples.java index 7097368b940f..11f7a992f9c2 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerBlobAuditingPoliciesGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerBlobAuditingPoliciesGetSamples.java @@ -6,21 +6,22 @@ import com.azure.resourcemanager.synapse.models.BlobAuditingPolicyName; -/** Samples for WorkspaceManagedSqlServerBlobAuditingPolicies Get. */ +/** + * Samples for WorkspaceManagedSqlServerBlobAuditingPolicies Get. + */ public final class WorkspaceManagedSqlServerBlobAuditingPoliciesGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceManagedSqlServerBlobAuditingSettings.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * GetWorkspaceManagedSqlServerBlobAuditingSettings.json */ /** * Sample code: Get blob auditing setting of workspace managed sql Server. - * + * * @param manager Entry point to SynapseManager. */ - public static void getBlobAuditingSettingOfWorkspaceManagedSqlServer( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedSqlServerBlobAuditingPolicies() - .getWithResponse( - "wsg-7398", "testWorkspace", BlobAuditingPolicyName.DEFAULT, com.azure.core.util.Context.NONE); + public static void + getBlobAuditingSettingOfWorkspaceManagedSqlServer(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.workspaceManagedSqlServerBlobAuditingPolicies().getWithResponse("wsg-7398", "testWorkspace", + BlobAuditingPolicyName.DEFAULT, com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceSamples.java index 1c737a673abf..1f7da8da070d 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceSamples.java @@ -4,20 +4,22 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for WorkspaceManagedSqlServerBlobAuditingPolicies ListByWorkspace. */ +/** + * Samples for WorkspaceManagedSqlServerBlobAuditingPolicies ListByWorkspace. + */ public final class WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListWorkspaceManagedSqlServerBlobAuditingSettings.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * ListWorkspaceManagedSqlServerBlobAuditingSettings.json */ /** * Sample code: Get blob auditing policy of workspace manged sql Server. - * + * * @param manager Entry point to SynapseManager. */ - public static void getBlobAuditingPolicyOfWorkspaceMangedSqlServer( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedSqlServerBlobAuditingPolicies() - .listByWorkspace("wsg-7398", "testWorkspace", com.azure.core.util.Context.NONE); + public static void + getBlobAuditingPolicyOfWorkspaceMangedSqlServer(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.workspaceManagedSqlServerBlobAuditingPolicies().listByWorkspace("wsg-7398", "testWorkspace", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsGetSamples.java index 2a6802bb7b14..a0817dc766f6 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsGetSamples.java @@ -4,20 +4,22 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings Get. */ +/** + * Samples for WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings Get. + */ public final class WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * GetWorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings.json */ /** * Sample code: Get workspace managed sql server dedicated sql minimal tls settings. - * + * * @param manager Entry point to SynapseManager. */ public static void getWorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings() - .getWithResponse("workspace-6852", "workspace-2080", "default", com.azure.core.util.Context.NONE); + manager.workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings().getWithResponse("workspace-6852", + "workspace-2080", "default", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsListSamples.java index a29a13e43684..689825af4caa 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsListSamples.java @@ -4,20 +4,22 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings List. */ +/** + * Samples for WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings List. + */ public final class WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListWorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * ListWorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings.json */ /** * Sample code: List dedicated sql minimal tls settings of the workspace managed sql server. - * + * * @param manager Entry point to SynapseManager. */ public static void listDedicatedSqlMinimalTlsSettingsOfTheWorkspaceManagedSqlServer( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings() - .list("workspace-6852", "workspace-2080", com.azure.core.util.Context.NONE); + manager.workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings().list("workspace-6852", "workspace-2080", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsUpdateSamples.java index a163c2d9b5b0..daf082e3f6fb 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsUpdateSamples.java @@ -7,25 +7,23 @@ import com.azure.resourcemanager.synapse.fluent.models.DedicatedSQLminimalTlsSettingsInner; import com.azure.resourcemanager.synapse.models.DedicatedSqlMinimalTlsSettingsName; -/** Samples for WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings Update. */ +/** + * Samples for WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings Update. + */ public final class WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/UpdateWorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * UpdateWorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings.json */ /** * Sample code: Update tls version of the workspace managed sql server. - * + * * @param manager Entry point to SynapseManager. */ - public static void updateTlsVersionOfTheWorkspaceManagedSqlServer( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings() - .update( - "workspace-6852", - "workspace-2080", - DedicatedSqlMinimalTlsSettingsName.DEFAULT, - new DedicatedSQLminimalTlsSettingsInner().withMinimalTlsVersion("1.1"), - com.azure.core.util.Context.NONE); + public static void + updateTlsVersionOfTheWorkspaceManagedSqlServer(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings().update("workspace-6852", "workspace-2080", + DedicatedSqlMinimalTlsSettingsName.DEFAULT, + new DedicatedSQLminimalTlsSettingsInner().withMinimalTlsVersion("1.1"), com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateSamples.java index 87b82df9c708..aa69276ae92e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateSamples.java @@ -8,47 +8,42 @@ import com.azure.resourcemanager.synapse.models.EncryptionProtectorName; import com.azure.resourcemanager.synapse.models.ServerKeyType; -/** Samples for WorkspaceManagedSqlServerEncryptionProtector CreateOrUpdate. */ +/** + * Samples for WorkspaceManagedSqlServerEncryptionProtector CreateOrUpdate. + */ public final class WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateKeyVault.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateKeyVault.json */ /** * Sample code: Update the encryption protector to key vault. - * + * * @param manager Entry point to SynapseManager. */ - public static void updateTheEncryptionProtectorToKeyVault( - com.azure.resourcemanager.synapse.SynapseManager manager) { - EncryptionProtector resource = - manager - .workspaceManagedSqlServerEncryptionProtectors() - .getWithResponse( - "wsg-7398", "testWorkspace", EncryptionProtectorName.CURRENT, com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() - .withServerKeyName("someVault_someKey_01234567890123456789012345678901") - .withServerKeyType(ServerKeyType.AZURE_KEY_VAULT) - .apply(); + public static void + updateTheEncryptionProtectorToKeyVault(com.azure.resourcemanager.synapse.SynapseManager manager) { + EncryptionProtector resource + = manager.workspaceManagedSqlServerEncryptionProtectors().getWithResponse("wsg-7398", "testWorkspace", + EncryptionProtectorName.CURRENT, com.azure.core.util.Context.NONE).getValue(); + resource.update().withServerKeyName("someVault_someKey_01234567890123456789012345678901") + .withServerKeyType(ServerKeyType.AZURE_KEY_VAULT).apply(); } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateServiceManaged.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateServiceManaged.json */ /** * Sample code: Update the encryption protector to service managed. - * + * * @param manager Entry point to SynapseManager. */ - public static void updateTheEncryptionProtectorToServiceManaged( - com.azure.resourcemanager.synapse.SynapseManager manager) { - EncryptionProtector resource = - manager - .workspaceManagedSqlServerEncryptionProtectors() - .getWithResponse( - "wsg-7398", "testWorkspace", EncryptionProtectorName.CURRENT, com.azure.core.util.Context.NONE) - .getValue(); + public static void + updateTheEncryptionProtectorToServiceManaged(com.azure.resourcemanager.synapse.SynapseManager manager) { + EncryptionProtector resource + = manager.workspaceManagedSqlServerEncryptionProtectors().getWithResponse("wsg-7398", "testWorkspace", + EncryptionProtectorName.CURRENT, com.azure.core.util.Context.NONE).getValue(); resource.update().withServerKeyName("ServiceManaged").withServerKeyType(ServerKeyType.SERVICE_MANAGED).apply(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerEncryptionProtectorGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerEncryptionProtectorGetSamples.java index 170b2ce6e656..232c596a0691 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerEncryptionProtectorGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerEncryptionProtectorGetSamples.java @@ -6,21 +6,22 @@ import com.azure.resourcemanager.synapse.models.EncryptionProtectorName; -/** Samples for WorkspaceManagedSqlServerEncryptionProtector Get. */ +/** + * Samples for WorkspaceManagedSqlServerEncryptionProtector Get. + */ public final class WorkspaceManagedSqlServerEncryptionProtectorGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceManagedSqlServerEncryptionProtector.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * GetWorkspaceManagedSqlServerEncryptionProtector.json */ /** * Sample code: Get workspace managed sql Server's encryption protector. - * + * * @param manager Entry point to SynapseManager. */ - public static void getWorkspaceManagedSqlServerSEncryptionProtector( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedSqlServerEncryptionProtectors() - .getWithResponse( - "wsg-7398", "testWorkspace", EncryptionProtectorName.CURRENT, com.azure.core.util.Context.NONE); + public static void + getWorkspaceManagedSqlServerSEncryptionProtector(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.workspaceManagedSqlServerEncryptionProtectors().getWithResponse("wsg-7398", "testWorkspace", + EncryptionProtectorName.CURRENT, com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerEncryptionProtectorListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerEncryptionProtectorListSamples.java index 515c9653c70c..f3728f8a884c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerEncryptionProtectorListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerEncryptionProtectorListSamples.java @@ -4,20 +4,22 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for WorkspaceManagedSqlServerEncryptionProtector List. */ +/** + * Samples for WorkspaceManagedSqlServerEncryptionProtector List. + */ public final class WorkspaceManagedSqlServerEncryptionProtectorListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceManagedSqlServerEncryptionProtectorList.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * GetWorkspaceManagedSqlServerEncryptionProtectorList.json */ /** * Sample code: Get workspace managed sql Server's encryption protectors. - * + * * @param manager Entry point to SynapseManager. */ - public static void getWorkspaceManagedSqlServerSEncryptionProtectors( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedSqlServerEncryptionProtectors() - .list("wsg-7398", "testWorkspace", com.azure.core.util.Context.NONE); + public static void + getWorkspaceManagedSqlServerSEncryptionProtectors(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.workspaceManagedSqlServerEncryptionProtectors().list("wsg-7398", "testWorkspace", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerEncryptionProtectorRevalidateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerEncryptionProtectorRevalidateSamples.java index 8e9267f8c574..e54c5abc1555 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerEncryptionProtectorRevalidateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerEncryptionProtectorRevalidateSamples.java @@ -6,19 +6,21 @@ import com.azure.resourcemanager.synapse.models.EncryptionProtectorName; -/** Samples for WorkspaceManagedSqlServerEncryptionProtector Revalidate. */ +/** + * Samples for WorkspaceManagedSqlServerEncryptionProtector Revalidate. + */ public final class WorkspaceManagedSqlServerEncryptionProtectorRevalidateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/WorkspaceManagedSqlServerEncryptionProtectorRevalidate.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * WorkspaceManagedSqlServerEncryptionProtectorRevalidate.json */ /** * Sample code: Revalidates the encryption protector. - * + * * @param manager Entry point to SynapseManager. */ public static void revalidatesTheEncryptionProtector(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedSqlServerEncryptionProtectors() - .revalidate("wsg-7398", "testWorkspace", EncryptionProtectorName.CURRENT, com.azure.core.util.Context.NONE); + manager.workspaceManagedSqlServerEncryptionProtectors().revalidate("wsg-7398", "testWorkspace", + EncryptionProtectorName.CURRENT, com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateSamples.java index 1a797eaec790..f2ea9dcb7c4a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateSamples.java @@ -9,59 +9,49 @@ import java.util.Arrays; import java.util.UUID; -/** Samples for WorkspaceManagedSqlServerExtendedBlobAuditingPolicies CreateOrUpdate. */ +/** + * Samples for WorkspaceManagedSqlServerExtendedBlobAuditingPolicies CreateOrUpdate. + */ public final class WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateWorkspaceManagedSqlServerExtendedBlobAuditingSettingsWithAllParameters.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CreateWorkspaceManagedSqlServerExtendedBlobAuditingSettingsWithAllParameters.json */ /** * Sample code: Create or update workspace managed sql server's extended blob auditing policy of with all * parameters. - * + * * @param manager Entry point to SynapseManager. */ public static void createOrUpdateWorkspaceManagedSqlServerSExtendedBlobAuditingPolicyOfWithAllParameters( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedSqlServerExtendedBlobAuditingPolicies() - .define(BlobAuditingPolicyName.DEFAULT) - .withExistingWorkspace("wsg-7398", "testWorkspace") - .withPredicateExpression("object_name = 'SensitiveData'") - .withState(BlobAuditingPolicyState.ENABLED) - .withStorageEndpoint("https://mystorage.blob.core.windows.net") + manager.workspaceManagedSqlServerExtendedBlobAuditingPolicies().define(BlobAuditingPolicyName.DEFAULT) + .withExistingWorkspace("wsg-7398", "testWorkspace").withPredicateExpression("object_name = 'SensitiveData'") + .withState(BlobAuditingPolicyState.ENABLED).withStorageEndpoint("https://mystorage.blob.core.windows.net") .withStorageAccountAccessKey( "sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==") .withRetentionDays(6) - .withAuditActionsAndGroups( - Arrays - .asList( - "SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP", - "FAILED_DATABASE_AUTHENTICATION_GROUP", - "BATCH_COMPLETED_GROUP")) + .withAuditActionsAndGroups(Arrays.asList("SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP", + "FAILED_DATABASE_AUTHENTICATION_GROUP", "BATCH_COMPLETED_GROUP")) .withStorageAccountSubscriptionId(UUID.fromString("00000000-1234-0000-5678-000000000000")) - .withIsStorageSecondaryKeyInUse(false) - .withIsAzureMonitorTargetEnabled(true) - .create(); + .withIsStorageSecondaryKeyInUse(false).withIsAzureMonitorTargetEnabled(true).create(); } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateWorkspaceManagedSqlServerExetendedBlobAuditingSettingsWithMinParameters.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CreateWorkspaceManagedSqlServerExetendedBlobAuditingSettingsWithMinParameters.json */ /** * Sample code: Create or update workspace managed sql server's extended blob auditing policy of with minimal * parameters. - * + * * @param manager Entry point to SynapseManager. */ public static void createOrUpdateWorkspaceManagedSqlServerSExtendedBlobAuditingPolicyOfWithMinimalParameters( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedSqlServerExtendedBlobAuditingPolicies() - .define(BlobAuditingPolicyName.DEFAULT) - .withExistingWorkspace("wsg-7398", "testWorkspace") - .withState(BlobAuditingPolicyState.ENABLED) - .withStorageEndpoint("https://mystorage.blob.core.windows.net") - .withStorageAccountAccessKey( + manager.workspaceManagedSqlServerExtendedBlobAuditingPolicies().define(BlobAuditingPolicyName.DEFAULT) + .withExistingWorkspace("wsg-7398", "testWorkspace").withState(BlobAuditingPolicyState.ENABLED) + .withStorageEndpoint("https://mystorage.blob.core.windows.net").withStorageAccountAccessKey( "sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==") .create(); } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesGetSamples.java index d7c07fa17c10..e90e3ffeb837 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesGetSamples.java @@ -6,21 +6,22 @@ import com.azure.resourcemanager.synapse.models.BlobAuditingPolicyName; -/** Samples for WorkspaceManagedSqlServerExtendedBlobAuditingPolicies Get. */ +/** + * Samples for WorkspaceManagedSqlServerExtendedBlobAuditingPolicies Get. + */ public final class WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceManagedSqlExtendedServerBlobAuditingSettings.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * GetWorkspaceManagedSqlExtendedServerBlobAuditingSettings.json */ /** * Sample code: Get workspace managed sql servers' extended blob auditing settings. - * + * * @param manager Entry point to SynapseManager. */ public static void getWorkspaceManagedSqlServersExtendedBlobAuditingSettings( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedSqlServerExtendedBlobAuditingPolicies() - .getWithResponse( - "wsg-7398", "testWorkspace", BlobAuditingPolicyName.DEFAULT, com.azure.core.util.Context.NONE); + manager.workspaceManagedSqlServerExtendedBlobAuditingPolicies().getWithResponse("wsg-7398", "testWorkspace", + BlobAuditingPolicyName.DEFAULT, com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceSamples.java index 0ac089fef99a..b248479dfab2 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceSamples.java @@ -4,20 +4,22 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for WorkspaceManagedSqlServerExtendedBlobAuditingPolicies ListByWorkspace. */ +/** + * Samples for WorkspaceManagedSqlServerExtendedBlobAuditingPolicies ListByWorkspace. + */ public final class WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListWorkspaceManagedSqlServerExtendedBlobAuditingSettings.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * ListWorkspaceManagedSqlServerExtendedBlobAuditingSettings.json */ /** * Sample code: Get workspace managed sql server's extended blob auditing settings. - * + * * @param manager Entry point to SynapseManager. */ public static void getWorkspaceManagedSqlServerSExtendedBlobAuditingSettings( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedSqlServerExtendedBlobAuditingPolicies() - .listByWorkspace("wsg-7398", "testWorkspace", com.azure.core.util.Context.NONE); + manager.workspaceManagedSqlServerExtendedBlobAuditingPolicies().listByWorkspace("wsg-7398", "testWorkspace", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerRecoverableSqlPoolsGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerRecoverableSqlPoolsGetSamples.java index c44e8293ca31..c2a89ed62b9b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerRecoverableSqlPoolsGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerRecoverableSqlPoolsGetSamples.java @@ -4,19 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for WorkspaceManagedSqlServerRecoverableSqlPools Get. */ +/** + * Samples for WorkspaceManagedSqlServerRecoverableSqlPools Get. + */ public final class WorkspaceManagedSqlServerRecoverableSqlPoolsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceManagedSqlServerRecoverableSqlPool.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * GetWorkspaceManagedSqlServerRecoverableSqlPool.json */ /** * Sample code: Get recoverable sql pools for the server. - * + * * @param manager Entry point to SynapseManager. */ public static void getRecoverableSqlPoolsForTheServer(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedSqlServerRecoverableSqlPools() - .getWithResponse("wsg-7398", "testWorkspace", "recoverableSqlpools-1235", com.azure.core.util.Context.NONE); + manager.workspaceManagedSqlServerRecoverableSqlPools().getWithResponse("wsg-7398", "testWorkspace", + "recoverableSqlpools-1235", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerRecoverableSqlPoolsListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerRecoverableSqlPoolsListSamples.java index e45816e59ffe..ba43d302f437 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerRecoverableSqlPoolsListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerRecoverableSqlPoolsListSamples.java @@ -4,19 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for WorkspaceManagedSqlServerRecoverableSqlPools List. */ +/** + * Samples for WorkspaceManagedSqlServerRecoverableSqlPools List. + */ public final class WorkspaceManagedSqlServerRecoverableSqlPoolsListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListWorkspaceManagedSqlServerRecoverableSqlPool.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * ListWorkspaceManagedSqlServerRecoverableSqlPool.json */ /** * Sample code: List recoverable sql pools for the server. - * + * * @param manager Entry point to SynapseManager. */ public static void listRecoverableSqlPoolsForTheServer(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedSqlServerRecoverableSqlPools() - .list("wsg-7398", "testWorkspace", com.azure.core.util.Context.NONE); + manager.workspaceManagedSqlServerRecoverableSqlPools().list("wsg-7398", "testWorkspace", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateSamples.java index c9c1b31d01ce..ac80120e9433 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateSamples.java @@ -8,59 +8,43 @@ import com.azure.resourcemanager.synapse.models.SecurityAlertPolicyState; import com.azure.resourcemanager.synapse.models.ServerSecurityAlertPolicy; -/** Samples for WorkspaceManagedSqlServerSecurityAlertPolicy CreateOrUpdate. */ +/** + * Samples for WorkspaceManagedSqlServerSecurityAlertPolicy CreateOrUpdate. + */ public final class WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/WorkspaceManagedSqlServerSecurityAlertWithAllParameters.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * WorkspaceManagedSqlServerSecurityAlertWithAllParameters.json */ /** * Sample code: Update a workspace managed sql server's threat detection policy with all parameters. - * + * * @param manager Entry point to SynapseManager. */ public static void updateAWorkspaceManagedSqlServerSThreatDetectionPolicyWithAllParameters( com.azure.resourcemanager.synapse.SynapseManager manager) { - ServerSecurityAlertPolicy resource = - manager - .workspaceManagedSqlServerSecurityAlertPolicies() - .getWithResponse( - "wsg-7398", - "testWorkspace", - SecurityAlertPolicyNameAutoGenerated.DEFAULT, - com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() - .withState(SecurityAlertPolicyState.ENABLED) - .withStorageAccountAccessKey( - "sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==") - .apply(); + ServerSecurityAlertPolicy resource + = manager.workspaceManagedSqlServerSecurityAlertPolicies().getWithResponse("wsg-7398", "testWorkspace", + SecurityAlertPolicyNameAutoGenerated.DEFAULT, com.azure.core.util.Context.NONE).getValue(); + resource.update().withState(SecurityAlertPolicyState.ENABLED).withStorageAccountAccessKey( + "sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==").apply(); } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/WorkspaceManagedSqlServerSecurityAlertCreateWithMinParameters.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * WorkspaceManagedSqlServerSecurityAlertCreateWithMinParameters.json */ /** * Sample code: Update a workspace managed sql server's threat detection policy with minimal parameters. - * + * * @param manager Entry point to SynapseManager. */ public static void updateAWorkspaceManagedSqlServerSThreatDetectionPolicyWithMinimalParameters( com.azure.resourcemanager.synapse.SynapseManager manager) { - ServerSecurityAlertPolicy resource = - manager - .workspaceManagedSqlServerSecurityAlertPolicies() - .getWithResponse( - "wsg-7398", - "testWorkspace", - SecurityAlertPolicyNameAutoGenerated.DEFAULT, - com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() - .withState(SecurityAlertPolicyState.DISABLED) - .withStorageAccountAccessKey( - "sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==") - .apply(); + ServerSecurityAlertPolicy resource + = manager.workspaceManagedSqlServerSecurityAlertPolicies().getWithResponse("wsg-7398", "testWorkspace", + SecurityAlertPolicyNameAutoGenerated.DEFAULT, com.azure.core.util.Context.NONE).getValue(); + resource.update().withState(SecurityAlertPolicyState.DISABLED).withStorageAccountAccessKey( + "sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==").apply(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerSecurityAlertPolicyGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerSecurityAlertPolicyGetSamples.java index 9354ae6b507e..052b068cdd93 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerSecurityAlertPolicyGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerSecurityAlertPolicyGetSamples.java @@ -6,24 +6,22 @@ import com.azure.resourcemanager.synapse.models.SecurityAlertPolicyNameAutoGenerated; -/** Samples for WorkspaceManagedSqlServerSecurityAlertPolicy Get. */ +/** + * Samples for WorkspaceManagedSqlServerSecurityAlertPolicy Get. + */ public final class WorkspaceManagedSqlServerSecurityAlertPolicyGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceManagedSqlServerSecurityAlertPolicy.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * GetWorkspaceManagedSqlServerSecurityAlertPolicy.json */ /** * Sample code: Get workspace managed sql Server's security alert policy. - * + * * @param manager Entry point to SynapseManager. */ - public static void getWorkspaceManagedSqlServerSSecurityAlertPolicy( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedSqlServerSecurityAlertPolicies() - .getWithResponse( - "wsg-7398", - "testWorkspace", - SecurityAlertPolicyNameAutoGenerated.DEFAULT, - com.azure.core.util.Context.NONE); + public static void + getWorkspaceManagedSqlServerSSecurityAlertPolicy(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.workspaceManagedSqlServerSecurityAlertPolicies().getWithResponse("wsg-7398", "testWorkspace", + SecurityAlertPolicyNameAutoGenerated.DEFAULT, com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerSecurityAlertPolicyListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerSecurityAlertPolicyListSamples.java index 64fae351d7cf..f9779a845fc1 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerSecurityAlertPolicyListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerSecurityAlertPolicyListSamples.java @@ -4,20 +4,22 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for WorkspaceManagedSqlServerSecurityAlertPolicy List. */ +/** + * Samples for WorkspaceManagedSqlServerSecurityAlertPolicy List. + */ public final class WorkspaceManagedSqlServerSecurityAlertPolicyListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListWorkspaceManagedSqlServerSecurityAlertPolicies.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * ListWorkspaceManagedSqlServerSecurityAlertPolicies.json */ /** * Sample code: Get workspace managed sql server's security alert policy. - * + * * @param manager Entry point to SynapseManager. */ - public static void getWorkspaceManagedSqlServerSSecurityAlertPolicy( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedSqlServerSecurityAlertPolicies() - .list("wsg-7398", "testWorkspace", com.azure.core.util.Context.NONE); + public static void + getWorkspaceManagedSqlServerSSecurityAlertPolicy(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.workspaceManagedSqlServerSecurityAlertPolicies().list("wsg-7398", "testWorkspace", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerUsagesListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerUsagesListSamples.java index d776ae324c28..753f758a270a 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerUsagesListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerUsagesListSamples.java @@ -4,18 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for WorkspaceManagedSqlServerUsages List. */ +/** + * Samples for WorkspaceManagedSqlServerUsages List. + */ public final class WorkspaceManagedSqlServerUsagesListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListWorkspaceManagedSqlServerUsages.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * ListWorkspaceManagedSqlServerUsages.json */ /** * Sample code: List usages metric for the workspace managed sql server. - * + * * @param manager Entry point to SynapseManager. */ - public static void listUsagesMetricForTheWorkspaceManagedSqlServer( - com.azure.resourcemanager.synapse.SynapseManager manager) { + public static void + listUsagesMetricForTheWorkspaceManagedSqlServer(com.azure.resourcemanager.synapse.SynapseManager manager) { manager.workspaceManagedSqlServerUsages().list("wsg-7398", "testWorkspace", com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerVulnerabilityAssessmentsCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerVulnerabilityAssessmentsCreateOrUpdateSamples.java index bff8109789dd..e58b9f18b36e 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerVulnerabilityAssessmentsCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerVulnerabilityAssessmentsCreateOrUpdateSamples.java @@ -5,75 +5,69 @@ package com.azure.resourcemanager.synapse.generated; import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; -import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated; +import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentRecurringScansProperties; import java.util.Arrays; -/** Samples for WorkspaceManagedSqlServerVulnerabilityAssessments CreateOrUpdate. */ +/** + * Samples for WorkspaceManagedSqlServerVulnerabilityAssessments CreateOrUpdate. + */ public final class WorkspaceManagedSqlServerVulnerabilityAssessmentsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/PutWorkspaceMangedSqlServerVulnerabilityAssessmentCreateContainerSasKeyMin.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * PutWorkspaceMangedSqlServerVulnerabilityAssessmentCreateContainerSasKeyMin.json */ /** * Sample code: Create or Update a workspace managed sql server's vulnerability assessment with minimal parameters, * when storageContainerSasKey is specified. - * + * * @param manager Entry point to SynapseManager. */ public static void createOrUpdateAWorkspaceManagedSqlServerSVulnerabilityAssessmentWithMinimalParametersWhenStorageContainerSasKeyIsSpecified( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedSqlServerVulnerabilityAssessments() - .define(VulnerabilityAssessmentName.DEFAULT) + manager.workspaceManagedSqlServerVulnerabilityAssessments().define(VulnerabilityAssessmentName.DEFAULT) .withExistingWorkspace("wsg-7398", "testWorkspace") .withStorageContainerPath("https://myStorage.blob.core.windows.net/vulnerability-assessment/") - .withStorageContainerSasKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") - .create(); + .withStorageContainerSasKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").create(); } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/PutWorkspaceMangedSqlServerVulnerabilityAssessmentCreateStorageAccessKeyMin.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * PutWorkspaceMangedSqlServerVulnerabilityAssessmentCreateStorageAccessKeyMin.json */ /** * Sample code: Create or Update a workspace managed sql server's vulnerability assessment with minimal parameters, * when storageAccountAccessKey is specified. - * + * * @param manager Entry point to SynapseManager. */ public static void createOrUpdateAWorkspaceManagedSqlServerSVulnerabilityAssessmentWithMinimalParametersWhenStorageAccountAccessKeyIsSpecified( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedSqlServerVulnerabilityAssessments() - .define(VulnerabilityAssessmentName.DEFAULT) + manager.workspaceManagedSqlServerVulnerabilityAssessments().define(VulnerabilityAssessmentName.DEFAULT) .withExistingWorkspace("wsg-7398", "testWorkspace") .withStorageContainerPath("https://myStorage.blob.core.windows.net/vulnerability-assessment/") - .withStorageAccountAccessKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") - .create(); + .withStorageAccountAccessKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").create(); } /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/PutWorkspaceManagedSqlServerVulnerabilityAssessmentWithAllParameters.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * PutWorkspaceManagedSqlServerVulnerabilityAssessmentWithAllParameters.json */ /** * Sample code: Create or Update a workspace managed sql server's vulnerability assessment with all parameters. - * + * * @param manager Entry point to SynapseManager. */ public static void createOrUpdateAWorkspaceManagedSqlServerSVulnerabilityAssessmentWithAllParameters( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedSqlServerVulnerabilityAssessments() - .define(VulnerabilityAssessmentName.DEFAULT) + manager.workspaceManagedSqlServerVulnerabilityAssessments().define(VulnerabilityAssessmentName.DEFAULT) .withExistingWorkspace("wsg-7398", "testWorkspace") .withStorageContainerPath("https://myStorage.blob.core.windows.net/vulnerability-assessment/") .withStorageContainerSasKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") .withStorageAccountAccessKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") - .withRecurringScans( - new VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated() - .withIsEnabled(true) - .withEmailSubscriptionAdmins(true) - .withEmails(Arrays.asList("email1@mail.com", "email2@mail.com"))) + .withRecurringScans(new VulnerabilityAssessmentRecurringScansProperties().withIsEnabled(true) + .withEmailSubscriptionAdmins(true).withEmails(Arrays.asList("email1@mail.com", "email2@mail.com"))) .create(); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerVulnerabilityAssessmentsDeleteSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerVulnerabilityAssessmentsDeleteSamples.java index efd61c083481..9253a4ed2d29 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerVulnerabilityAssessmentsDeleteSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerVulnerabilityAssessmentsDeleteSamples.java @@ -6,21 +6,22 @@ import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; -/** Samples for WorkspaceManagedSqlServerVulnerabilityAssessments Delete. */ +/** + * Samples for WorkspaceManagedSqlServerVulnerabilityAssessments Delete. + */ public final class WorkspaceManagedSqlServerVulnerabilityAssessmentsDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteWorkspaceManagedSqlServerVulnerabilityAssessment.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * DeleteWorkspaceManagedSqlServerVulnerabilityAssessment.json */ /** * Sample code: Remove workspace managed sql Server's vulnerability assessment. - * + * * @param manager Entry point to SynapseManager. */ public static void removeWorkspaceManagedSqlServerSVulnerabilityAssessment( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedSqlServerVulnerabilityAssessments() - .deleteWithResponse( - "wsg-7398", "testWorkspace", VulnerabilityAssessmentName.DEFAULT, com.azure.core.util.Context.NONE); + manager.workspaceManagedSqlServerVulnerabilityAssessments().deleteWithResponse("wsg-7398", "testWorkspace", + VulnerabilityAssessmentName.DEFAULT, com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerVulnerabilityAssessmentsGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerVulnerabilityAssessmentsGetSamples.java index 0249f1cf62a1..10f85078dc7c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerVulnerabilityAssessmentsGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerVulnerabilityAssessmentsGetSamples.java @@ -6,21 +6,22 @@ import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; -/** Samples for WorkspaceManagedSqlServerVulnerabilityAssessments Get. */ +/** + * Samples for WorkspaceManagedSqlServerVulnerabilityAssessments Get. + */ public final class WorkspaceManagedSqlServerVulnerabilityAssessmentsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceManagedSqlServerVulnerabilityAssessment.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * GetWorkspaceManagedSqlServerVulnerabilityAssessment.json */ /** * Sample code: Get workspace managed sql Server's vulnerability assessment. - * + * * @param manager Entry point to SynapseManager. */ - public static void getWorkspaceManagedSqlServerSVulnerabilityAssessment( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedSqlServerVulnerabilityAssessments() - .getWithResponse( - "wsg-7398", "testWorkspace", VulnerabilityAssessmentName.DEFAULT, com.azure.core.util.Context.NONE); + public static void + getWorkspaceManagedSqlServerSVulnerabilityAssessment(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.workspaceManagedSqlServerVulnerabilityAssessments().getWithResponse("wsg-7398", "testWorkspace", + VulnerabilityAssessmentName.DEFAULT, com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerVulnerabilityAssessmentsListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerVulnerabilityAssessmentsListSamples.java index e15fd68659c7..9cc99b8e4e5f 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerVulnerabilityAssessmentsListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerVulnerabilityAssessmentsListSamples.java @@ -4,20 +4,22 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for WorkspaceManagedSqlServerVulnerabilityAssessments List. */ +/** + * Samples for WorkspaceManagedSqlServerVulnerabilityAssessments List. + */ public final class WorkspaceManagedSqlServerVulnerabilityAssessmentsListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListWorkspaceManagedSqlServerVulnerabilityAssessmentPolicies.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * ListWorkspaceManagedSqlServerVulnerabilityAssessmentPolicies.json */ /** * Sample code: Get workspace managed sql Server's vulnerability assessment policies. - * + * * @param manager Entry point to SynapseManager. */ public static void getWorkspaceManagedSqlServerSVulnerabilityAssessmentPolicies( com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceManagedSqlServerVulnerabilityAssessments() - .list("wsg-7398", "testWorkspace", com.azure.core.util.Context.NONE); + manager.workspaceManagedSqlServerVulnerabilityAssessments().list("wsg-7398", "testWorkspace", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceSqlAadAdminsCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceSqlAadAdminsCreateOrUpdateSamples.java index c6447e064f96..37985d4aa672 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceSqlAadAdminsCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceSqlAadAdminsCreateOrUpdateSamples.java @@ -6,28 +6,25 @@ import com.azure.resourcemanager.synapse.fluent.models.WorkspaceAadAdminInfoInner; -/** Samples for WorkspaceSqlAadAdmins CreateOrUpdate. */ +/** + * Samples for WorkspaceSqlAadAdmins CreateOrUpdate. + */ public final class WorkspaceSqlAadAdminsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateWorkspaceAadAdmin.json + * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ + * CreateOrUpdateWorkspaceAadAdmin.json */ /** * Sample code: Create or update workspace active directory admin. - * + * * @param manager Entry point to SynapseManager. */ - public static void createOrUpdateWorkspaceActiveDirectoryAdmin( - com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceSqlAadAdmins() - .createOrUpdate( - "resourceGroup1", - "workspace1", - new WorkspaceAadAdminInfoInner() - .withTenantId("c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c") - .withLogin("bob@contoso.com") - .withAdministratorType("ActiveDirectory") - .withSid("c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c"), - com.azure.core.util.Context.NONE); + public static void + createOrUpdateWorkspaceActiveDirectoryAdmin(com.azure.resourcemanager.synapse.SynapseManager manager) { + manager.workspaceSqlAadAdmins().createOrUpdate("resourceGroup1", "workspace1", + new WorkspaceAadAdminInfoInner().withTenantId("c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c") + .withLogin("bob@contoso.com").withAdministratorType("ActiveDirectory") + .withSid("c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c"), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceSqlAadAdminsDeleteSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceSqlAadAdminsDeleteSamples.java index 39ad83050c4d..bc1610081cb4 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceSqlAadAdminsDeleteSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceSqlAadAdminsDeleteSamples.java @@ -4,14 +4,17 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for WorkspaceSqlAadAdmins Delete. */ +/** + * Samples for WorkspaceSqlAadAdmins Delete. + */ public final class WorkspaceSqlAadAdminsDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteWorkspaceAadAdmin.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteWorkspaceAadAdmin.json */ /** * Sample code: Delete workspace active directory admin. - * + * * @param manager Entry point to SynapseManager. */ public static void deleteWorkspaceActiveDirectoryAdmin(com.azure.resourcemanager.synapse.SynapseManager manager) { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceSqlAadAdminsGetSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceSqlAadAdminsGetSamples.java index 4ff130d7f2eb..09241b66dd37 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceSqlAadAdminsGetSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceSqlAadAdminsGetSamples.java @@ -4,19 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for WorkspaceSqlAadAdmins Get. */ +/** + * Samples for WorkspaceSqlAadAdmins Get. + */ public final class WorkspaceSqlAadAdminsGetSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceAadAdmin.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceAadAdmin.json */ /** * Sample code: Get workspace active directory admin. - * + * * @param manager Entry point to SynapseManager. */ public static void getWorkspaceActiveDirectoryAdmin(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaceSqlAadAdmins() - .getWithResponse("resourceGroup1", "workspace1", com.azure.core.util.Context.NONE); + manager.workspaceSqlAadAdmins().getWithResponse("resourceGroup1", "workspace1", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspacesCreateOrUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspacesCreateOrUpdateSamples.java index 185b504e11ba..681c1d451a36 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspacesCreateOrUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspacesCreateOrUpdateSamples.java @@ -21,74 +21,52 @@ import java.util.HashMap; import java.util.Map; -/** Samples for Workspaces CreateOrUpdate. */ +/** + * Samples for Workspaces CreateOrUpdate. + */ public final class WorkspacesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateWorkspace.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateWorkspace.json */ /** * Sample code: Create or update a workspace. - * + * * @param manager Entry point to SynapseManager. */ public static void createOrUpdateAWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaces() - .define("workspace1") - .withRegion("East US") - .withExistingResourceGroup("resourceGroup1") - .withTags(mapOf("key", "value")) - .withIdentity( - new ManagedIdentity() - .withType(ResourceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED) - .withUserAssignedIdentities( - mapOf( - "/subscriptions/00000000-1111-2222-3333-444444444444/resourcegroups/resourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uami1", - new UserAssignedManagedIdentity()))) - .withDefaultDataLakeStorage( - new DataLakeStorageAccountDetails() - .withAccountUrl("https://accountname.dfs.core.windows.net") - .withFilesystem("default")) + manager.workspaces().define("workspace1").withRegion("East US").withExistingResourceGroup("resourceGroup1") + .withTags(mapOf("key", "fakeTokenPlaceholder")) + .withIdentity(new ManagedIdentity().withType(ResourceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED) + .withUserAssignedIdentities(mapOf( + "/subscriptions/00000000-1111-2222-3333-444444444444/resourcegroups/resourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uami1", + new UserAssignedManagedIdentity()))) + .withDefaultDataLakeStorage(new DataLakeStorageAccountDetails() + .withAccountUrl("https://accountname.dfs.core.windows.net").withFilesystem("default")) .withSqlAdministratorLoginPassword("password") - .withManagedResourceGroupName("workspaceManagedResourceGroupUnique") - .withSqlAdministratorLogin("login") + .withManagedResourceGroupName("workspaceManagedResourceGroupUnique").withSqlAdministratorLogin("login") .withManagedVirtualNetwork("default") - .withEncryption( - new EncryptionDetails() - .withCmk( - new CustomerManagedKeyDetails() - .withKey( - new WorkspaceKeyDetails().withName("default").withKeyVaultUrl("fakeTokenPlaceholder")) - .withKekIdentity( - new KekIdentityProperties() - .withUserAssignedIdentity( - "/subscriptions/b64d7b94-73e7-4d36-94b2-7764ea3fd74a/resourcegroups/SynapseCI/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uami1") - .withUseSystemAssignedIdentity(false)))) - .withManagedVirtualNetworkSettings( - new ManagedVirtualNetworkSettings() - .withPreventDataExfiltration(false) - .withLinkedAccessCheckOnTargetResource(false) - .withAllowedAadTenantIdsForLinking(Arrays.asList("740239CE-A25B-485B-86A0-262F29F6EBDB"))) + .withEncryption(new EncryptionDetails().withCmk(new CustomerManagedKeyDetails() + .withKey(new WorkspaceKeyDetails().withName("default").withKeyVaultUrl("fakeTokenPlaceholder")) + .withKekIdentity(new KekIdentityProperties().withUserAssignedIdentity( + "/subscriptions/b64d7b94-73e7-4d36-94b2-7764ea3fd74a/resourcegroups/SynapseCI/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uami1") + .withUseSystemAssignedIdentity(false)))) + .withManagedVirtualNetworkSettings(new ManagedVirtualNetworkSettings().withPreventDataExfiltration(false) + .withLinkedAccessCheckOnTargetResource(false) + .withAllowedAadTenantIdsForLinking(Arrays.asList("740239CE-A25B-485B-86A0-262F29F6EBDB"))) .withWorkspaceRepositoryConfiguration( - new WorkspaceRepositoryConfiguration() - .withType("FactoryGitHubConfiguration") - .withHostname("") - .withAccountName("mygithubaccount") - .withProjectName("myproject") - .withRepositoryName("myrepository") - .withCollaborationBranch("master") - .withRootFolder("/")) - .withPurviewConfiguration( - new PurviewConfiguration() - .withPurviewResourceId( - "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup1/providers/Microsoft.ProjectPurview/accounts/accountname1")) + new WorkspaceRepositoryConfiguration().withType("FactoryGitHubConfiguration").withHostname("") + .withAccountName("mygithubaccount").withProjectName("myproject").withRepositoryName("myrepository") + .withCollaborationBranch("master").withRootFolder("/")) + .withPurviewConfiguration(new PurviewConfiguration().withPurviewResourceId( + "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup1/providers/Microsoft.ProjectPurview/accounts/accountname1")) .withPublicNetworkAccess(WorkspacePublicNetworkAccess.ENABLED) - .withCspWorkspaceAdminProperties( - new CspWorkspaceAdminProperties() - .withInitialWorkspaceAdminObjectId("6c20646f-8050-49ec-b3b1-80a0e58e454d")) + .withCspWorkspaceAdminProperties(new CspWorkspaceAdminProperties() + .withInitialWorkspaceAdminObjectId("6c20646f-8050-49ec-b3b1-80a0e58e454d")) .create(); } + // Use "Map.of" if available @SuppressWarnings("unchecked") private static Map mapOf(Object... inputs) { Map map = new HashMap<>(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspacesDeleteSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspacesDeleteSamples.java index 362cd72f9c92..2b32c865c6ef 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspacesDeleteSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspacesDeleteSamples.java @@ -4,14 +4,17 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for Workspaces Delete. */ +/** + * Samples for Workspaces Delete. + */ public final class WorkspacesDeleteSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteWorkspace.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteWorkspace.json */ /** * Sample code: Delete a workspace. - * + * * @param manager Entry point to SynapseManager. */ public static void deleteAWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspacesGetByResourceGroupSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspacesGetByResourceGroupSamples.java index 69866154a681..7eed90e34415 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspacesGetByResourceGroupSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspacesGetByResourceGroupSamples.java @@ -4,19 +4,21 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for Workspaces GetByResourceGroup. */ +/** + * Samples for Workspaces GetByResourceGroup. + */ public final class WorkspacesGetByResourceGroupSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspace.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspace.json */ /** * Sample code: Get a workspace. - * + * * @param manager Entry point to SynapseManager. */ public static void getAWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { - manager - .workspaces() - .getByResourceGroupWithResponse("resourceGroup1", "workspace1", com.azure.core.util.Context.NONE); + manager.workspaces().getByResourceGroupWithResponse("resourceGroup1", "workspace1", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspacesListByResourceGroupSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspacesListByResourceGroupSamples.java index 783c6bf7e79a..51c9ac3dcb3b 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspacesListByResourceGroupSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspacesListByResourceGroupSamples.java @@ -4,14 +4,18 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for Workspaces ListByResourceGroup. */ +/** + * Samples for Workspaces ListByResourceGroup. + */ public final class WorkspacesListByResourceGroupSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListWorkspacesInResourceGroup.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListWorkspacesInResourceGroup + * .json */ /** * Sample code: List workspaces in resource group. - * + * * @param manager Entry point to SynapseManager. */ public static void listWorkspacesInResourceGroup(com.azure.resourcemanager.synapse.SynapseManager manager) { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspacesListSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspacesListSamples.java index 35cbed625f4d..b19e8f9495d3 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspacesListSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspacesListSamples.java @@ -4,14 +4,18 @@ package com.azure.resourcemanager.synapse.generated; -/** Samples for Workspaces List. */ +/** + * Samples for Workspaces List. + */ public final class WorkspacesListSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListWorkspacesInSubscription.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListWorkspacesInSubscription. + * json */ /** * Sample code: List workspaces in subscription. - * + * * @param manager Entry point to SynapseManager. */ public static void listWorkspacesInSubscription(com.azure.resourcemanager.synapse.SynapseManager manager) { diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspacesUpdateSamples.java b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspacesUpdateSamples.java index 85d1fc975114..50e3a77b7a7c 100644 --- a/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspacesUpdateSamples.java +++ b/sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspacesUpdateSamples.java @@ -18,55 +18,41 @@ import java.util.HashMap; import java.util.Map; -/** Samples for Workspaces Update. */ +/** + * Samples for Workspaces Update. + */ public final class WorkspacesUpdateSamples { /* - * x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/UpdateWorkspace.json + * x-ms-original-file: + * specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/UpdateWorkspace.json */ /** * Sample code: Update a workspace. - * + * * @param manager Entry point to SynapseManager. */ public static void updateAWorkspace(com.azure.resourcemanager.synapse.SynapseManager manager) { - Workspace resource = - manager - .workspaces() - .getByResourceGroupWithResponse("resourceGroup1", "workspace1", com.azure.core.util.Context.NONE) - .getValue(); - resource - .update() - .withTags(mapOf("key", "value")) + Workspace resource = manager.workspaces() + .getByResourceGroupWithResponse("resourceGroup1", "workspace1", com.azure.core.util.Context.NONE) + .getValue(); + resource.update().withTags(mapOf("key", "fakeTokenPlaceholder")) .withIdentity(new ManagedIdentity().withType(ResourceIdentityType.SYSTEM_ASSIGNED)) .withSqlAdministratorLoginPassword("password") - .withManagedVirtualNetworkSettings( - new ManagedVirtualNetworkSettings() - .withPreventDataExfiltration(false) - .withLinkedAccessCheckOnTargetResource(false) - .withAllowedAadTenantIdsForLinking(Arrays.asList("740239CE-A25B-485B-86A0-262F29F6EBDB"))) + .withManagedVirtualNetworkSettings(new ManagedVirtualNetworkSettings().withPreventDataExfiltration(false) + .withLinkedAccessCheckOnTargetResource(false) + .withAllowedAadTenantIdsForLinking(Arrays.asList("740239CE-A25B-485B-86A0-262F29F6EBDB"))) .withWorkspaceRepositoryConfiguration( - new WorkspaceRepositoryConfiguration() - .withType("FactoryGitHubConfiguration") - .withHostname("") - .withAccountName("adifferentacount") - .withProjectName("myproject") - .withRepositoryName("myrepository") - .withCollaborationBranch("master") - .withRootFolder("/")) - .withPurviewConfiguration( - new PurviewConfiguration() - .withPurviewResourceId( - "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup1/providers/Microsoft.ProjectPurview/accounts/accountname1")) - .withEncryption( - new EncryptionDetails() - .withCmk( - new CustomerManagedKeyDetails() - .withKey( - new WorkspaceKeyDetails().withName("default").withKeyVaultUrl("fakeTokenPlaceholder")))) - .withPublicNetworkAccess(WorkspacePublicNetworkAccess.ENABLED) - .apply(); + new WorkspaceRepositoryConfiguration().withType("FactoryGitHubConfiguration").withHostname("") + .withAccountName("adifferentacount").withProjectName("myproject").withRepositoryName("myrepository") + .withCollaborationBranch("master").withRootFolder("/")) + .withPurviewConfiguration(new PurviewConfiguration().withPurviewResourceId( + "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup1/providers/Microsoft.ProjectPurview/accounts/accountname1")) + .withEncryption(new EncryptionDetails().withCmk(new CustomerManagedKeyDetails() + .withKey(new WorkspaceKeyDetails().withName("default").withKeyVaultUrl("fakeTokenPlaceholder")))) + .withPublicNetworkAccess(WorkspacePublicNetworkAccess.ENABLED).apply(); } + // Use "Map.of" if available @SuppressWarnings("unchecked") private static Map mapOf(Object... inputs) { Map map = new HashMap<>(); diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AadAdminPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AadAdminPropertiesTests.java deleted file mode 100644 index 731d8c5a0fe0..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AadAdminPropertiesTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.AadAdminProperties; -import org.junit.jupiter.api.Assertions; - -public final class AadAdminPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AadAdminProperties model = - BinaryData - .fromString("{\"tenantId\":\"ypq\",\"login\":\"sfj\",\"administratorType\":\"b\",\"sid\":\"hhxud\"}") - .toObject(AadAdminProperties.class); - Assertions.assertEquals("ypq", model.tenantId()); - Assertions.assertEquals("sfj", model.login()); - Assertions.assertEquals("b", model.administratorType()); - Assertions.assertEquals("hhxud", model.sid()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AadAdminProperties model = - new AadAdminProperties().withTenantId("ypq").withLogin("sfj").withAdministratorType("b").withSid("hhxud"); - model = BinaryData.fromObject(model).toObject(AadAdminProperties.class); - Assertions.assertEquals("ypq", model.tenantId()); - Assertions.assertEquals("sfj", model.login()); - Assertions.assertEquals("b", model.administratorType()); - Assertions.assertEquals("hhxud", model.sid()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AttachedDatabaseConfigurationInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AttachedDatabaseConfigurationInnerTests.java deleted file mode 100644 index 4c0bbb1bb51c..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AttachedDatabaseConfigurationInnerTests.java +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.AttachedDatabaseConfigurationInner; -import com.azure.resourcemanager.synapse.models.DefaultPrincipalsModificationKind; -import com.azure.resourcemanager.synapse.models.TableLevelSharingProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class AttachedDatabaseConfigurationInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AttachedDatabaseConfigurationInner model = - BinaryData - .fromString( - "{\"location\":\"yapucygvoa\",\"properties\":{\"provisioningState\":\"Moving\",\"databaseName\":\"ssxlghieegjlg\",\"clusterResourceId\":\"vpaseksgbu\",\"attachedDatabaseNames\":[\"tu\",\"gdhg\",\"qipir\",\"iwrqofulopmjnl\"],\"defaultPrincipalsModificationKind\":\"Replace\",\"tableLevelSharingProperties\":{\"tablesToInclude\":[\"bjpi\",\"k\",\"phuuuerctato\"],\"tablesToExclude\":[\"tqpbrlcy\",\"duczkgof\"],\"externalTablesToInclude\":[\"srucvcrrpcjtt\",\"st\"],\"externalTablesToExclude\":[\"aqnrmvvfkoxmlg\",\"ktuidvrm\",\"zlpdwwex\",\"mzvlazipbh\"],\"materializedViewsToInclude\":[\"qsg\"],\"materializedViewsToExclude\":[\"uuzivensrpmeyyvp\",\"patlbijp\",\"gsksrfhf\"]}},\"id\":\"lmknbnxwcdom\",\"name\":\"pvfqawz\",\"type\":\"gbrt\"}") - .toObject(AttachedDatabaseConfigurationInner.class); - Assertions.assertEquals("yapucygvoa", model.location()); - Assertions.assertEquals("ssxlghieegjlg", model.databaseName()); - Assertions.assertEquals("vpaseksgbu", model.kustoPoolResourceId()); - Assertions.assertEquals(DefaultPrincipalsModificationKind.REPLACE, model.defaultPrincipalsModificationKind()); - Assertions.assertEquals("bjpi", model.tableLevelSharingProperties().tablesToInclude().get(0)); - Assertions.assertEquals("tqpbrlcy", model.tableLevelSharingProperties().tablesToExclude().get(0)); - Assertions.assertEquals("srucvcrrpcjtt", model.tableLevelSharingProperties().externalTablesToInclude().get(0)); - Assertions.assertEquals("aqnrmvvfkoxmlg", model.tableLevelSharingProperties().externalTablesToExclude().get(0)); - Assertions.assertEquals("qsg", model.tableLevelSharingProperties().materializedViewsToInclude().get(0)); - Assertions - .assertEquals("uuzivensrpmeyyvp", model.tableLevelSharingProperties().materializedViewsToExclude().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AttachedDatabaseConfigurationInner model = - new AttachedDatabaseConfigurationInner() - .withLocation("yapucygvoa") - .withDatabaseName("ssxlghieegjlg") - .withKustoPoolResourceId("vpaseksgbu") - .withDefaultPrincipalsModificationKind(DefaultPrincipalsModificationKind.REPLACE) - .withTableLevelSharingProperties( - new TableLevelSharingProperties() - .withTablesToInclude(Arrays.asList("bjpi", "k", "phuuuerctato")) - .withTablesToExclude(Arrays.asList("tqpbrlcy", "duczkgof")) - .withExternalTablesToInclude(Arrays.asList("srucvcrrpcjtt", "st")) - .withExternalTablesToExclude( - Arrays.asList("aqnrmvvfkoxmlg", "ktuidvrm", "zlpdwwex", "mzvlazipbh")) - .withMaterializedViewsToInclude(Arrays.asList("qsg")) - .withMaterializedViewsToExclude(Arrays.asList("uuzivensrpmeyyvp", "patlbijp", "gsksrfhf"))); - model = BinaryData.fromObject(model).toObject(AttachedDatabaseConfigurationInner.class); - Assertions.assertEquals("yapucygvoa", model.location()); - Assertions.assertEquals("ssxlghieegjlg", model.databaseName()); - Assertions.assertEquals("vpaseksgbu", model.kustoPoolResourceId()); - Assertions.assertEquals(DefaultPrincipalsModificationKind.REPLACE, model.defaultPrincipalsModificationKind()); - Assertions.assertEquals("bjpi", model.tableLevelSharingProperties().tablesToInclude().get(0)); - Assertions.assertEquals("tqpbrlcy", model.tableLevelSharingProperties().tablesToExclude().get(0)); - Assertions.assertEquals("srucvcrrpcjtt", model.tableLevelSharingProperties().externalTablesToInclude().get(0)); - Assertions.assertEquals("aqnrmvvfkoxmlg", model.tableLevelSharingProperties().externalTablesToExclude().get(0)); - Assertions.assertEquals("qsg", model.tableLevelSharingProperties().materializedViewsToInclude().get(0)); - Assertions - .assertEquals("uuzivensrpmeyyvp", model.tableLevelSharingProperties().materializedViewsToExclude().get(0)); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AttachedDatabaseConfigurationListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AttachedDatabaseConfigurationListResultTests.java deleted file mode 100644 index 75d3d3f5bc9d..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AttachedDatabaseConfigurationListResultTests.java +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.AttachedDatabaseConfigurationInner; -import com.azure.resourcemanager.synapse.models.AttachedDatabaseConfigurationListResult; -import com.azure.resourcemanager.synapse.models.DefaultPrincipalsModificationKind; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class AttachedDatabaseConfigurationListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AttachedDatabaseConfigurationListResult model = - BinaryData - .fromString( - "{\"value\":[{\"location\":\"ptsoqfyiase\",\"properties\":{\"provisioningState\":\"Failed\",\"databaseName\":\"rttzrazisgykiu\",\"clusterResourceId\":\"mvanbwzo\",\"attachedDatabaseNames\":[],\"defaultPrincipalsModificationKind\":\"None\"},\"id\":\"xbsojkli\",\"name\":\"hmdp\",\"type\":\"ysprq\"},{\"location\":\"nzxojpslsvjgpli\",\"properties\":{\"provisioningState\":\"Canceled\",\"databaseName\":\"woyxqvapcohhou\",\"clusterResourceId\":\"qpqojxcxzrzd\",\"attachedDatabaseNames\":[],\"defaultPrincipalsModificationKind\":\"Replace\"},\"id\":\"enribc\",\"name\":\"wetzqddtjwfljh\",\"type\":\"namtuatmzw\"},{\"location\":\"jncqtjzmi\",\"properties\":{\"provisioningState\":\"Failed\",\"databaseName\":\"gat\",\"clusterResourceId\":\"uuvbx\",\"attachedDatabaseNames\":[],\"defaultPrincipalsModificationKind\":\"Union\"},\"id\":\"wggahttzlswvaj\",\"name\":\"fu\",\"type\":\"lx\"},{\"location\":\"qzasunwqrjzfrgqh\",\"properties\":{\"provisioningState\":\"Canceled\",\"databaseName\":\"mbuocnjrohmbp\",\"clusterResourceId\":\"ryxameblydyvkfkm\",\"attachedDatabaseNames\":[],\"defaultPrincipalsModificationKind\":\"Union\"},\"id\":\"e\",\"name\":\"v\",\"type\":\"mtodl\"}]}") - .toObject(AttachedDatabaseConfigurationListResult.class); - Assertions.assertEquals("ptsoqfyiase", model.value().get(0).location()); - Assertions.assertEquals("rttzrazisgykiu", model.value().get(0).databaseName()); - Assertions.assertEquals("mvanbwzo", model.value().get(0).kustoPoolResourceId()); - Assertions - .assertEquals( - DefaultPrincipalsModificationKind.NONE, model.value().get(0).defaultPrincipalsModificationKind()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AttachedDatabaseConfigurationListResult model = - new AttachedDatabaseConfigurationListResult() - .withValue( - Arrays - .asList( - new AttachedDatabaseConfigurationInner() - .withLocation("ptsoqfyiase") - .withDatabaseName("rttzrazisgykiu") - .withKustoPoolResourceId("mvanbwzo") - .withDefaultPrincipalsModificationKind(DefaultPrincipalsModificationKind.NONE), - new AttachedDatabaseConfigurationInner() - .withLocation("nzxojpslsvjgpli") - .withDatabaseName("woyxqvapcohhou") - .withKustoPoolResourceId("qpqojxcxzrzd") - .withDefaultPrincipalsModificationKind(DefaultPrincipalsModificationKind.REPLACE), - new AttachedDatabaseConfigurationInner() - .withLocation("jncqtjzmi") - .withDatabaseName("gat") - .withKustoPoolResourceId("uuvbx") - .withDefaultPrincipalsModificationKind(DefaultPrincipalsModificationKind.UNION), - new AttachedDatabaseConfigurationInner() - .withLocation("qzasunwqrjzfrgqh") - .withDatabaseName("mbuocnjrohmbp") - .withKustoPoolResourceId("ryxameblydyvkfkm") - .withDefaultPrincipalsModificationKind(DefaultPrincipalsModificationKind.UNION))); - model = BinaryData.fromObject(model).toObject(AttachedDatabaseConfigurationListResult.class); - Assertions.assertEquals("ptsoqfyiase", model.value().get(0).location()); - Assertions.assertEquals("rttzrazisgykiu", model.value().get(0).databaseName()); - Assertions.assertEquals("mvanbwzo", model.value().get(0).kustoPoolResourceId()); - Assertions - .assertEquals( - DefaultPrincipalsModificationKind.NONE, model.value().get(0).defaultPrincipalsModificationKind()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AttachedDatabaseConfigurationPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AttachedDatabaseConfigurationPropertiesTests.java deleted file mode 100644 index 8d80731221e9..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AttachedDatabaseConfigurationPropertiesTests.java +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.AttachedDatabaseConfigurationProperties; -import com.azure.resourcemanager.synapse.models.DefaultPrincipalsModificationKind; -import com.azure.resourcemanager.synapse.models.TableLevelSharingProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class AttachedDatabaseConfigurationPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AttachedDatabaseConfigurationProperties model = - BinaryData - .fromString( - "{\"provisioningState\":\"Canceled\",\"databaseName\":\"aclkiexhajlfnt\",\"clusterResourceId\":\"iqfyuttdi\",\"attachedDatabaseNames\":[\"pvn\"],\"defaultPrincipalsModificationKind\":\"Union\",\"tableLevelSharingProperties\":{\"tablesToInclude\":[\"xkyctwwgzwx\",\"l\",\"ecvo\",\"ygzyvneezaifght\"],\"tablesToExclude\":[\"qtlffhzbk\",\"kjj\",\"avfqnvhnqoewdogi\",\"etesypvidbztjhqt\"],\"externalTablesToInclude\":[\"vnynkb\",\"etnjuhpsprkz\",\"aupia\",\"cxnafbwqrooh\"],\"externalTablesToExclude\":[\"vmaonurjt\",\"mghihp\",\"ecmslclbl\"],\"materializedViewsToInclude\":[\"lt\",\"sjuscvsfxigctmg\",\"uupb\"],\"materializedViewsToExclude\":[\"ccyd\",\"tce\",\"kdqkkyihzt\",\"eq\"]}}") - .toObject(AttachedDatabaseConfigurationProperties.class); - Assertions.assertEquals("aclkiexhajlfnt", model.databaseName()); - Assertions.assertEquals("iqfyuttdi", model.kustoPoolResourceId()); - Assertions.assertEquals(DefaultPrincipalsModificationKind.UNION, model.defaultPrincipalsModificationKind()); - Assertions.assertEquals("xkyctwwgzwx", model.tableLevelSharingProperties().tablesToInclude().get(0)); - Assertions.assertEquals("qtlffhzbk", model.tableLevelSharingProperties().tablesToExclude().get(0)); - Assertions.assertEquals("vnynkb", model.tableLevelSharingProperties().externalTablesToInclude().get(0)); - Assertions.assertEquals("vmaonurjt", model.tableLevelSharingProperties().externalTablesToExclude().get(0)); - Assertions.assertEquals("lt", model.tableLevelSharingProperties().materializedViewsToInclude().get(0)); - Assertions.assertEquals("ccyd", model.tableLevelSharingProperties().materializedViewsToExclude().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AttachedDatabaseConfigurationProperties model = - new AttachedDatabaseConfigurationProperties() - .withDatabaseName("aclkiexhajlfnt") - .withKustoPoolResourceId("iqfyuttdi") - .withDefaultPrincipalsModificationKind(DefaultPrincipalsModificationKind.UNION) - .withTableLevelSharingProperties( - new TableLevelSharingProperties() - .withTablesToInclude(Arrays.asList("xkyctwwgzwx", "l", "ecvo", "ygzyvneezaifght")) - .withTablesToExclude(Arrays.asList("qtlffhzbk", "kjj", "avfqnvhnqoewdogi", "etesypvidbztjhqt")) - .withExternalTablesToInclude(Arrays.asList("vnynkb", "etnjuhpsprkz", "aupia", "cxnafbwqrooh")) - .withExternalTablesToExclude(Arrays.asList("vmaonurjt", "mghihp", "ecmslclbl")) - .withMaterializedViewsToInclude(Arrays.asList("lt", "sjuscvsfxigctmg", "uupb")) - .withMaterializedViewsToExclude(Arrays.asList("ccyd", "tce", "kdqkkyihzt", "eq"))); - model = BinaryData.fromObject(model).toObject(AttachedDatabaseConfigurationProperties.class); - Assertions.assertEquals("aclkiexhajlfnt", model.databaseName()); - Assertions.assertEquals("iqfyuttdi", model.kustoPoolResourceId()); - Assertions.assertEquals(DefaultPrincipalsModificationKind.UNION, model.defaultPrincipalsModificationKind()); - Assertions.assertEquals("xkyctwwgzwx", model.tableLevelSharingProperties().tablesToInclude().get(0)); - Assertions.assertEquals("qtlffhzbk", model.tableLevelSharingProperties().tablesToExclude().get(0)); - Assertions.assertEquals("vnynkb", model.tableLevelSharingProperties().externalTablesToInclude().get(0)); - Assertions.assertEquals("vmaonurjt", model.tableLevelSharingProperties().externalTablesToExclude().get(0)); - Assertions.assertEquals("lt", model.tableLevelSharingProperties().materializedViewsToInclude().get(0)); - Assertions.assertEquals("ccyd", model.tableLevelSharingProperties().materializedViewsToExclude().get(0)); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AutoPausePropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AutoPausePropertiesTests.java deleted file mode 100644 index 9abf7ff03e82..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AutoPausePropertiesTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.AutoPauseProperties; -import org.junit.jupiter.api.Assertions; - -public final class AutoPausePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AutoPauseProperties model = - BinaryData - .fromString("{\"delayInMinutes\":1622856853,\"enabled\":false}") - .toObject(AutoPauseProperties.class); - Assertions.assertEquals(1622856853, model.delayInMinutes()); - Assertions.assertEquals(false, model.enabled()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AutoPauseProperties model = new AutoPauseProperties().withDelayInMinutes(1622856853).withEnabled(false); - model = BinaryData.fromObject(model).toObject(AutoPauseProperties.class); - Assertions.assertEquals(1622856853, model.delayInMinutes()); - Assertions.assertEquals(false, model.enabled()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AutoScalePropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AutoScalePropertiesTests.java deleted file mode 100644 index a1d606140f5b..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AutoScalePropertiesTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.AutoScaleProperties; -import org.junit.jupiter.api.Assertions; - -public final class AutoScalePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AutoScaleProperties model = - BinaryData - .fromString("{\"minNodeCount\":1303035802,\"enabled\":true,\"maxNodeCount\":111762942}") - .toObject(AutoScaleProperties.class); - Assertions.assertEquals(1303035802, model.minNodeCount()); - Assertions.assertEquals(true, model.enabled()); - Assertions.assertEquals(111762942, model.maxNodeCount()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AutoScaleProperties model = - new AutoScaleProperties().withMinNodeCount(1303035802).withEnabled(true).withMaxNodeCount(111762942); - model = BinaryData.fromObject(model).toObject(AutoScaleProperties.class); - Assertions.assertEquals(1303035802, model.minNodeCount()); - Assertions.assertEquals(true, model.enabled()); - Assertions.assertEquals(111762942, model.maxNodeCount()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AvailableRpOperationDisplayInfoTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AvailableRpOperationDisplayInfoTests.java deleted file mode 100644 index 4807088bb4b5..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AvailableRpOperationDisplayInfoTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.AvailableRpOperationDisplayInfo; -import org.junit.jupiter.api.Assertions; - -public final class AvailableRpOperationDisplayInfoTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AvailableRpOperationDisplayInfo model = - BinaryData - .fromString( - "{\"description\":\"odjpslwejd\",\"resource\":\"wryoqpsoacc\",\"provider\":\"zakljlahbc\",\"operation\":\"ffdfdosygexpa\"}") - .toObject(AvailableRpOperationDisplayInfo.class); - Assertions.assertEquals("odjpslwejd", model.description()); - Assertions.assertEquals("wryoqpsoacc", model.resource()); - Assertions.assertEquals("zakljlahbc", model.provider()); - Assertions.assertEquals("ffdfdosygexpa", model.operation()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AvailableRpOperationDisplayInfo model = - new AvailableRpOperationDisplayInfo() - .withDescription("odjpslwejd") - .withResource("wryoqpsoacc") - .withProvider("zakljlahbc") - .withOperation("ffdfdosygexpa"); - model = BinaryData.fromObject(model).toObject(AvailableRpOperationDisplayInfo.class); - Assertions.assertEquals("odjpslwejd", model.description()); - Assertions.assertEquals("wryoqpsoacc", model.resource()); - Assertions.assertEquals("zakljlahbc", model.provider()); - Assertions.assertEquals("ffdfdosygexpa", model.operation()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AvailableRpOperationInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AvailableRpOperationInnerTests.java deleted file mode 100644 index 56f5377b4826..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AvailableRpOperationInnerTests.java +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.AvailableRpOperationInner; -import com.azure.resourcemanager.synapse.models.AvailableRpOperationDisplayInfo; -import com.azure.resourcemanager.synapse.models.OperationMetaServiceSpecification; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class AvailableRpOperationInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AvailableRpOperationInner model = - BinaryData - .fromString( - "{\"display\":{\"description\":\"z\",\"resource\":\"chgejspodm\",\"provider\":\"lzydehojwyahux\",\"operation\":\"pmqnja\"},\"isDataAction\":\"ixjsprozvcputeg\",\"name\":\"wmfdatscmdvpjhul\",\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[],\"logSpecifications\":[]}},\"origin\":\"zkrwfn\"}") - .toObject(AvailableRpOperationInner.class); - Assertions.assertEquals("z", model.display().description()); - Assertions.assertEquals("chgejspodm", model.display().resource()); - Assertions.assertEquals("lzydehojwyahux", model.display().provider()); - Assertions.assertEquals("pmqnja", model.display().operation()); - Assertions.assertEquals("ixjsprozvcputeg", model.isDataAction()); - Assertions.assertEquals("wmfdatscmdvpjhul", model.name()); - Assertions.assertEquals("zkrwfn", model.origin()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AvailableRpOperationInner model = - new AvailableRpOperationInner() - .withDisplay( - new AvailableRpOperationDisplayInfo() - .withDescription("z") - .withResource("chgejspodm") - .withProvider("lzydehojwyahux") - .withOperation("pmqnja")) - .withIsDataAction("ixjsprozvcputeg") - .withName("wmfdatscmdvpjhul") - .withOrigin("zkrwfn") - .withServiceSpecification( - new OperationMetaServiceSpecification() - .withMetricSpecifications(Arrays.asList()) - .withLogSpecifications(Arrays.asList())); - model = BinaryData.fromObject(model).toObject(AvailableRpOperationInner.class); - Assertions.assertEquals("z", model.display().description()); - Assertions.assertEquals("chgejspodm", model.display().resource()); - Assertions.assertEquals("lzydehojwyahux", model.display().provider()); - Assertions.assertEquals("pmqnja", model.display().operation()); - Assertions.assertEquals("ixjsprozvcputeg", model.isDataAction()); - Assertions.assertEquals("wmfdatscmdvpjhul", model.name()); - Assertions.assertEquals("zkrwfn", model.origin()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationInnerTests.java deleted file mode 100644 index cb0621d36abd..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationInnerTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.AzureADOnlyAuthenticationInner; -import org.junit.jupiter.api.Assertions; - -public final class AzureADOnlyAuthenticationInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureADOnlyAuthenticationInner model = - BinaryData - .fromString( - "{\"properties\":{\"azureADOnlyAuthentication\":true,\"state\":\"InConsistent\",\"creationDate\":\"2021-07-30T08:26:42Z\"},\"id\":\"gjxpybczmehmt\",\"name\":\"opb\",\"type\":\"phrupidgsybbejhp\"}") - .toObject(AzureADOnlyAuthenticationInner.class); - Assertions.assertEquals(true, model.azureADOnlyAuthentication()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureADOnlyAuthenticationInner model = new AzureADOnlyAuthenticationInner().withAzureADOnlyAuthentication(true); - model = BinaryData.fromObject(model).toObject(AzureADOnlyAuthenticationInner.class); - Assertions.assertEquals(true, model.azureADOnlyAuthentication()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationListResultTests.java deleted file mode 100644 index 132450079a63..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationListResultTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.AzureADOnlyAuthenticationListResult; - -public final class AzureADOnlyAuthenticationListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureADOnlyAuthenticationListResult model = - BinaryData - .fromString( - "{\"value\":[{\"properties\":{\"azureADOnlyAuthentication\":false,\"state\":\"Consistent\",\"creationDate\":\"2021-03-23T13:19:49Z\"},\"id\":\"mtqio\",\"name\":\"jzehtb\",\"type\":\"ufpo\"}],\"nextLink\":\"oizh\"}") - .toObject(AzureADOnlyAuthenticationListResult.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureADOnlyAuthenticationListResult model = new AzureADOnlyAuthenticationListResult(); - model = BinaryData.fromObject(model).toObject(AzureADOnlyAuthenticationListResult.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationPropertiesTests.java deleted file mode 100644 index 9efc2740c62d..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationPropertiesTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.AzureADOnlyAuthenticationProperties; -import org.junit.jupiter.api.Assertions; - -public final class AzureADOnlyAuthenticationPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureADOnlyAuthenticationProperties model = - BinaryData - .fromString( - "{\"azureADOnlyAuthentication\":true,\"state\":\"InConsistent\",\"creationDate\":\"2021-08-10T00:52:22Z\"}") - .toObject(AzureADOnlyAuthenticationProperties.class); - Assertions.assertEquals(true, model.azureADOnlyAuthentication()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureADOnlyAuthenticationProperties model = - new AzureADOnlyAuthenticationProperties().withAzureADOnlyAuthentication(true); - model = BinaryData.fromObject(model).toObject(AzureADOnlyAuthenticationProperties.class); - Assertions.assertEquals(true, model.azureADOnlyAuthentication()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationsCreateMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationsCreateMockTests.java deleted file mode 100644 index 8003b6f2c08c..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationsCreateMockTests.java +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.AzureADOnlyAuthentication; -import com.azure.resourcemanager.synapse.models.AzureADOnlyAuthenticationName; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class AzureADOnlyAuthenticationsCreateMockTests { - @Test - public void testCreate() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"azureADOnlyAuthentication\":true,\"state\":\"Consistent\",\"creationDate\":\"2021-09-16T05:32:49Z\"},\"id\":\"acvumepj\",\"name\":\"bibnzpphepifex\",\"type\":\"eqir\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - AzureADOnlyAuthentication response = - manager - .azureADOnlyAuthentications() - .define(AzureADOnlyAuthenticationName.DEFAULT) - .withExistingWorkspace("mbiipsnawwlqk", "nxhhl") - .withAzureADOnlyAuthentication(false) - .create(); - - Assertions.assertEquals(true, response.azureADOnlyAuthentication()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationsGetWithResponseMockTests.java deleted file mode 100644 index 610d3651f121..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationsGetWithResponseMockTests.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.AzureADOnlyAuthentication; -import com.azure.resourcemanager.synapse.models.AzureADOnlyAuthenticationName; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class AzureADOnlyAuthenticationsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"azureADOnlyAuthentication\":true,\"state\":\"Updating\",\"creationDate\":\"2021-03-24T21:47:21Z\"},\"id\":\"tjrrlkmds\",\"name\":\"jhhxdlajf\",\"type\":\"xcxscvslxlh\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - AzureADOnlyAuthentication response = - manager - .azureADOnlyAuthentications() - .getWithResponse( - "gsut", "hllnmwynefxe", AzureADOnlyAuthenticationName.DEFAULT, com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(true, response.azureADOnlyAuthentication()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationsListMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationsListMockTests.java deleted file mode 100644 index e8d7f894ac0d..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationsListMockTests.java +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.AzureADOnlyAuthentication; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class AzureADOnlyAuthenticationsListMockTests { - @Test - public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"properties\":{\"azureADOnlyAuthentication\":true,\"state\":\"InConsistent\",\"creationDate\":\"2021-11-21T13:19:39Z\"},\"id\":\"qid\",\"name\":\"qtoqxjhqxcsq\",\"type\":\"tkbtnqlrngl\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager.azureADOnlyAuthentications().list("a", "krmukmyjmkxett", com.azure.core.util.Context.NONE); - - Assertions.assertEquals(true, response.iterator().next().azureADOnlyAuthentication()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureCapacityTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureCapacityTests.java deleted file mode 100644 index c5b0609b2558..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureCapacityTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.AzureCapacity; -import com.azure.resourcemanager.synapse.models.AzureScaleType; -import org.junit.jupiter.api.Assertions; - -public final class AzureCapacityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureCapacity model = - BinaryData - .fromString( - "{\"scaleType\":\"automatic\",\"minimum\":1248191689,\"maximum\":1441731136,\"default\":576028683}") - .toObject(AzureCapacity.class); - Assertions.assertEquals(AzureScaleType.AUTOMATIC, model.scaleType()); - Assertions.assertEquals(1248191689, model.minimum()); - Assertions.assertEquals(1441731136, model.maximum()); - Assertions.assertEquals(576028683, model.defaultProperty()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureCapacity model = - new AzureCapacity() - .withScaleType(AzureScaleType.AUTOMATIC) - .withMinimum(1248191689) - .withMaximum(1441731136) - .withDefaultProperty(576028683); - model = BinaryData.fromObject(model).toObject(AzureCapacity.class); - Assertions.assertEquals(AzureScaleType.AUTOMATIC, model.scaleType()); - Assertions.assertEquals(1248191689, model.minimum()); - Assertions.assertEquals(1441731136, model.maximum()); - Assertions.assertEquals(576028683, model.defaultProperty()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureEntityResourceTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureEntityResourceTests.java deleted file mode 100644 index 0f90848160aa..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureEntityResourceTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.AzureEntityResource; - -public final class AzureEntityResourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureEntityResource model = - BinaryData - .fromString("{\"etag\":\"stbz\",\"id\":\"kiwbuqnyoph\",\"name\":\"fy\",\"type\":\"sgcrpfbcunezzce\"}") - .toObject(AzureEntityResource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureEntityResource model = new AzureEntityResource(); - model = BinaryData.fromObject(model).toObject(AzureEntityResource.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureResourceSkuInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureResourceSkuInnerTests.java deleted file mode 100644 index 067d41476821..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureResourceSkuInnerTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.AzureResourceSkuInner; -import com.azure.resourcemanager.synapse.models.AzureCapacity; -import com.azure.resourcemanager.synapse.models.AzureScaleType; -import com.azure.resourcemanager.synapse.models.AzureSku; -import com.azure.resourcemanager.synapse.models.SkuName; -import com.azure.resourcemanager.synapse.models.SkuSize; -import org.junit.jupiter.api.Assertions; - -public final class AzureResourceSkuInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureResourceSkuInner model = - BinaryData - .fromString( - "{\"resourceType\":\"pcmsplbyrrueqth\",\"sku\":{\"name\":\"Storage" - + " optimized\",\"capacity\":1745918799,\"size\":\"Extra" - + " small\"},\"capacity\":{\"scaleType\":\"none\",\"minimum\":1035435705,\"maximum\":806995622,\"default\":1214736566}}") - .toObject(AzureResourceSkuInner.class); - Assertions.assertEquals("pcmsplbyrrueqth", model.resourceType()); - Assertions.assertEquals(SkuName.STORAGE_OPTIMIZED, model.sku().name()); - Assertions.assertEquals(1745918799, model.sku().capacity()); - Assertions.assertEquals(SkuSize.EXTRA_SMALL, model.sku().size()); - Assertions.assertEquals(AzureScaleType.NONE, model.capacity().scaleType()); - Assertions.assertEquals(1035435705, model.capacity().minimum()); - Assertions.assertEquals(806995622, model.capacity().maximum()); - Assertions.assertEquals(1214736566, model.capacity().defaultProperty()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureResourceSkuInner model = - new AzureResourceSkuInner() - .withResourceType("pcmsplbyrrueqth") - .withSku( - new AzureSku() - .withName(SkuName.STORAGE_OPTIMIZED) - .withCapacity(1745918799) - .withSize(SkuSize.EXTRA_SMALL)) - .withCapacity( - new AzureCapacity() - .withScaleType(AzureScaleType.NONE) - .withMinimum(1035435705) - .withMaximum(806995622) - .withDefaultProperty(1214736566)); - model = BinaryData.fromObject(model).toObject(AzureResourceSkuInner.class); - Assertions.assertEquals("pcmsplbyrrueqth", model.resourceType()); - Assertions.assertEquals(SkuName.STORAGE_OPTIMIZED, model.sku().name()); - Assertions.assertEquals(1745918799, model.sku().capacity()); - Assertions.assertEquals(SkuSize.EXTRA_SMALL, model.sku().size()); - Assertions.assertEquals(AzureScaleType.NONE, model.capacity().scaleType()); - Assertions.assertEquals(1035435705, model.capacity().minimum()); - Assertions.assertEquals(806995622, model.capacity().maximum()); - Assertions.assertEquals(1214736566, model.capacity().defaultProperty()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureSkuTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureSkuTests.java deleted file mode 100644 index 526eadee2ddf..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/AzureSkuTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.AzureSku; -import com.azure.resourcemanager.synapse.models.SkuName; -import com.azure.resourcemanager.synapse.models.SkuSize; -import org.junit.jupiter.api.Assertions; - -public final class AzureSkuTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - AzureSku model = - BinaryData - .fromString("{\"name\":\"Compute optimized\",\"capacity\":1186548828,\"size\":\"Extra small\"}") - .toObject(AzureSku.class); - Assertions.assertEquals(SkuName.COMPUTE_OPTIMIZED, model.name()); - Assertions.assertEquals(1186548828, model.capacity()); - Assertions.assertEquals(SkuSize.EXTRA_SMALL, model.size()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - AzureSku model = - new AzureSku().withName(SkuName.COMPUTE_OPTIMIZED).withCapacity(1186548828).withSize(SkuSize.EXTRA_SMALL); - model = BinaryData.fromObject(model).toObject(AzureSku.class); - Assertions.assertEquals(SkuName.COMPUTE_OPTIMIZED, model.name()); - Assertions.assertEquals(1186548828, model.capacity()); - Assertions.assertEquals(SkuSize.EXTRA_SMALL, model.size()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolPatchInfoTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolPatchInfoTests.java deleted file mode 100644 index 6b9bd4e0ad98..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolPatchInfoTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.BigDataPoolPatchInfo; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class BigDataPoolPatchInfoTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BigDataPoolPatchInfo model = - BinaryData.fromString("{\"tags\":{\"rsnm\":\"hppr\"}}").toObject(BigDataPoolPatchInfo.class); - Assertions.assertEquals("hppr", model.tags().get("rsnm")); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BigDataPoolPatchInfo model = new BigDataPoolPatchInfo().withTags(mapOf("rsnm", "hppr")); - model = BinaryData.fromObject(model).toObject(BigDataPoolPatchInfo.class); - Assertions.assertEquals("hppr", model.tags().get("rsnm")); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolResourceInfoInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolResourceInfoInnerTests.java deleted file mode 100644 index 17cb0e3b1d84..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolResourceInfoInnerTests.java +++ /dev/null @@ -1,161 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.BigDataPoolResourceInfoInner; -import com.azure.resourcemanager.synapse.fluent.models.LibraryInfo; -import com.azure.resourcemanager.synapse.models.AutoPauseProperties; -import com.azure.resourcemanager.synapse.models.AutoScaleProperties; -import com.azure.resourcemanager.synapse.models.ConfigurationType; -import com.azure.resourcemanager.synapse.models.DynamicExecutorAllocation; -import com.azure.resourcemanager.synapse.models.LibraryRequirements; -import com.azure.resourcemanager.synapse.models.NodeSize; -import com.azure.resourcemanager.synapse.models.NodeSizeFamily; -import com.azure.resourcemanager.synapse.models.SparkConfigProperties; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class BigDataPoolResourceInfoInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BigDataPoolResourceInfoInner model = - BinaryData - .fromString( - "{\"properties\":{\"provisioningState\":\"e\",\"autoScale\":{\"minNodeCount\":2052127591,\"enabled\":true,\"maxNodeCount\":619135714},\"creationDate\":\"2021-01-05T00:16:17Z\",\"autoPause\":{\"delayInMinutes\":639795933,\"enabled\":false},\"isComputeIsolationEnabled\":false,\"isAutotuneEnabled\":false,\"sessionLevelPackagesEnabled\":false,\"cacheSize\":364204104,\"dynamicExecutorAllocation\":{\"enabled\":true,\"minExecutors\":1714927386,\"maxExecutors\":1816331305},\"sparkEventsFolder\":\"uqyrxpdl\",\"nodeCount\":1303034345,\"libraryRequirements\":{\"time\":\"2021-06-26T18:12:50Z\",\"content\":\"mjqfrddgamquhio\",\"filename\":\"sjuivfcdisyir\"},\"customLibraries\":[{\"name\":\"czexrxzbujrtrhqv\",\"path\":\"evkh\",\"containerName\":\"lnzonzlrpiqywn\",\"uploadedTimestamp\":\"2021-10-30T09:16:37Z\",\"type\":\"szcofizeht\",\"provisioningStatus\":\"gbjkvreljeamur\",\"creatorId\":\"mlovuanashcxl\"},{\"name\":\"jerbdkelvidizozs\",\"path\":\"ccxjm\",\"containerName\":\"fdgnwncypuuwwlt\",\"uploadedTimestamp\":\"2021-11-20T18:00Z\",\"type\":\"ctzenkeifzzhmkd\",\"provisioningStatus\":\"vflyhbxcu\",\"creatorId\":\"hxgsrboldfor\"},{\"name\":\"wjlvizbfhfov\",\"path\":\"cqpbtuo\",\"containerName\":\"eszabbelawumuas\",\"uploadedTimestamp\":\"2021-02-28T06:26:09Z\",\"type\":\"rrwoycqucwyhahn\",\"provisioningStatus\":\"drkywuhps\",\"creatorId\":\"uurutlwexxwlalni\"},{\"name\":\"zsrzpgepq\",\"path\":\"bb\",\"containerName\":\"pgdakchzyvli\",\"uploadedTimestamp\":\"2021-05-06T06:22:36Z\",\"type\":\"kcxk\",\"provisioningStatus\":\"bn\",\"creatorId\":\"ysux\"}],\"sparkConfigProperties\":{\"time\":\"2021-12-01T11:30:12Z\",\"content\":\"tvlwijpsttexoq\",\"filename\":\"wcyyufmhruncu\",\"configurationType\":\"Artifact\"},\"sparkVersion\":\"pkcdqzhlct\",\"defaultSparkLogFolder\":\"unqndyfpchrqb\",\"nodeSize\":\"Large\",\"nodeSizeFamily\":\"HardwareAcceleratedFPGA\",\"lastSucceededTimestamp\":\"2021-11-25T18:15:14Z\"},\"location\":\"gydcw\",\"tags\":{\"aubrjtloq\":\"jumvqqolihrraio\",\"rzpasccbiuimzdly\":\"fuojrngif\"},\"id\":\"dfqwmkyoq\",\"name\":\"fdvruz\",\"type\":\"lzo\"}") - .toObject(BigDataPoolResourceInfoInner.class); - Assertions.assertEquals("gydcw", model.location()); - Assertions.assertEquals("jumvqqolihrraio", model.tags().get("aubrjtloq")); - Assertions.assertEquals("e", model.provisioningState()); - Assertions.assertEquals(2052127591, model.autoScale().minNodeCount()); - Assertions.assertEquals(true, model.autoScale().enabled()); - Assertions.assertEquals(619135714, model.autoScale().maxNodeCount()); - Assertions.assertEquals(639795933, model.autoPause().delayInMinutes()); - Assertions.assertEquals(false, model.autoPause().enabled()); - Assertions.assertEquals(false, model.isComputeIsolationEnabled()); - Assertions.assertEquals(false, model.isAutotuneEnabled()); - Assertions.assertEquals(false, model.sessionLevelPackagesEnabled()); - Assertions.assertEquals(true, model.dynamicExecutorAllocation().enabled()); - Assertions.assertEquals(1714927386, model.dynamicExecutorAllocation().minExecutors()); - Assertions.assertEquals(1816331305, model.dynamicExecutorAllocation().maxExecutors()); - Assertions.assertEquals("uqyrxpdl", model.sparkEventsFolder()); - Assertions.assertEquals(1303034345, model.nodeCount()); - Assertions.assertEquals("mjqfrddgamquhio", model.libraryRequirements().content()); - Assertions.assertEquals("sjuivfcdisyir", model.libraryRequirements().filename()); - Assertions.assertEquals("czexrxzbujrtrhqv", model.customLibraries().get(0).name()); - Assertions.assertEquals("evkh", model.customLibraries().get(0).path()); - Assertions.assertEquals("lnzonzlrpiqywn", model.customLibraries().get(0).containerName()); - Assertions.assertEquals("szcofizeht", model.customLibraries().get(0).type()); - Assertions.assertEquals("tvlwijpsttexoq", model.sparkConfigProperties().content()); - Assertions.assertEquals("wcyyufmhruncu", model.sparkConfigProperties().filename()); - Assertions.assertEquals(ConfigurationType.ARTIFACT, model.sparkConfigProperties().configurationType()); - Assertions.assertEquals("pkcdqzhlct", model.sparkVersion()); - Assertions.assertEquals("unqndyfpchrqb", model.defaultSparkLogFolder()); - Assertions.assertEquals(NodeSize.LARGE, model.nodeSize()); - Assertions.assertEquals(NodeSizeFamily.HARDWARE_ACCELERATED_FPGA, model.nodeSizeFamily()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BigDataPoolResourceInfoInner model = - new BigDataPoolResourceInfoInner() - .withLocation("gydcw") - .withTags(mapOf("aubrjtloq", "jumvqqolihrraio", "rzpasccbiuimzdly", "fuojrngif")) - .withProvisioningState("e") - .withAutoScale( - new AutoScaleProperties() - .withMinNodeCount(2052127591) - .withEnabled(true) - .withMaxNodeCount(619135714)) - .withAutoPause(new AutoPauseProperties().withDelayInMinutes(639795933).withEnabled(false)) - .withIsComputeIsolationEnabled(false) - .withIsAutotuneEnabled(false) - .withSessionLevelPackagesEnabled(false) - .withDynamicExecutorAllocation( - new DynamicExecutorAllocation() - .withEnabled(true) - .withMinExecutors(1714927386) - .withMaxExecutors(1816331305)) - .withSparkEventsFolder("uqyrxpdl") - .withNodeCount(1303034345) - .withLibraryRequirements( - new LibraryRequirements().withContent("mjqfrddgamquhio").withFilename("sjuivfcdisyir")) - .withCustomLibraries( - Arrays - .asList( - new LibraryInfo() - .withName("czexrxzbujrtrhqv") - .withPath("evkh") - .withContainerName("lnzonzlrpiqywn") - .withType("szcofizeht"), - new LibraryInfo() - .withName("jerbdkelvidizozs") - .withPath("ccxjm") - .withContainerName("fdgnwncypuuwwlt") - .withType("ctzenkeifzzhmkd"), - new LibraryInfo() - .withName("wjlvizbfhfov") - .withPath("cqpbtuo") - .withContainerName("eszabbelawumuas") - .withType("rrwoycqucwyhahn"), - new LibraryInfo() - .withName("zsrzpgepq") - .withPath("bb") - .withContainerName("pgdakchzyvli") - .withType("kcxk"))) - .withSparkConfigProperties( - new SparkConfigProperties() - .withContent("tvlwijpsttexoq") - .withFilename("wcyyufmhruncu") - .withConfigurationType(ConfigurationType.ARTIFACT)) - .withSparkVersion("pkcdqzhlct") - .withDefaultSparkLogFolder("unqndyfpchrqb") - .withNodeSize(NodeSize.LARGE) - .withNodeSizeFamily(NodeSizeFamily.HARDWARE_ACCELERATED_FPGA); - model = BinaryData.fromObject(model).toObject(BigDataPoolResourceInfoInner.class); - Assertions.assertEquals("gydcw", model.location()); - Assertions.assertEquals("jumvqqolihrraio", model.tags().get("aubrjtloq")); - Assertions.assertEquals("e", model.provisioningState()); - Assertions.assertEquals(2052127591, model.autoScale().minNodeCount()); - Assertions.assertEquals(true, model.autoScale().enabled()); - Assertions.assertEquals(619135714, model.autoScale().maxNodeCount()); - Assertions.assertEquals(639795933, model.autoPause().delayInMinutes()); - Assertions.assertEquals(false, model.autoPause().enabled()); - Assertions.assertEquals(false, model.isComputeIsolationEnabled()); - Assertions.assertEquals(false, model.isAutotuneEnabled()); - Assertions.assertEquals(false, model.sessionLevelPackagesEnabled()); - Assertions.assertEquals(true, model.dynamicExecutorAllocation().enabled()); - Assertions.assertEquals(1714927386, model.dynamicExecutorAllocation().minExecutors()); - Assertions.assertEquals(1816331305, model.dynamicExecutorAllocation().maxExecutors()); - Assertions.assertEquals("uqyrxpdl", model.sparkEventsFolder()); - Assertions.assertEquals(1303034345, model.nodeCount()); - Assertions.assertEquals("mjqfrddgamquhio", model.libraryRequirements().content()); - Assertions.assertEquals("sjuivfcdisyir", model.libraryRequirements().filename()); - Assertions.assertEquals("czexrxzbujrtrhqv", model.customLibraries().get(0).name()); - Assertions.assertEquals("evkh", model.customLibraries().get(0).path()); - Assertions.assertEquals("lnzonzlrpiqywn", model.customLibraries().get(0).containerName()); - Assertions.assertEquals("szcofizeht", model.customLibraries().get(0).type()); - Assertions.assertEquals("tvlwijpsttexoq", model.sparkConfigProperties().content()); - Assertions.assertEquals("wcyyufmhruncu", model.sparkConfigProperties().filename()); - Assertions.assertEquals(ConfigurationType.ARTIFACT, model.sparkConfigProperties().configurationType()); - Assertions.assertEquals("pkcdqzhlct", model.sparkVersion()); - Assertions.assertEquals("unqndyfpchrqb", model.defaultSparkLogFolder()); - Assertions.assertEquals(NodeSize.LARGE, model.nodeSize()); - Assertions.assertEquals(NodeSizeFamily.HARDWARE_ACCELERATED_FPGA, model.nodeSizeFamily()); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolResourceInfoListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolResourceInfoListResultTests.java deleted file mode 100644 index e93f7c5a14e3..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolResourceInfoListResultTests.java +++ /dev/null @@ -1,134 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.BigDataPoolResourceInfoInner; -import com.azure.resourcemanager.synapse.models.BigDataPoolResourceInfoListResult; -import com.azure.resourcemanager.synapse.models.NodeSize; -import com.azure.resourcemanager.synapse.models.NodeSizeFamily; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class BigDataPoolResourceInfoListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BigDataPoolResourceInfoListResult model = - BinaryData - .fromString( - "{\"nextLink\":\"ayzejnhlbkpbz\",\"value\":[{\"properties\":{\"provisioningState\":\"jh\",\"creationDate\":\"2021-11-24T03:49:25Z\",\"isComputeIsolationEnabled\":false,\"isAutotuneEnabled\":false,\"sessionLevelPackagesEnabled\":true,\"cacheSize\":320038857,\"sparkEventsFolder\":\"olewjwi\",\"nodeCount\":1773241461,\"customLibraries\":[],\"sparkVersion\":\"sfapaqtferrq\",\"defaultSparkLogFolder\":\"x\",\"nodeSize\":\"XXXLarge\",\"nodeSizeFamily\":\"None\",\"lastSucceededTimestamp\":\"2021-11-03T09:57:06Z\"},\"location\":\"jwogqqnobpudc\",\"tags\":{\"bzasqbucljgkyexa\":\"tqwpwya\",\"dsdaultxijjumf\":\"guyaip\",\"nqnm\":\"waz\",\"qdqx\":\"jng\"},\"id\":\"bjwgnyfus\",\"name\":\"zsvtuikzhajqgl\",\"type\":\"fh\"},{\"properties\":{\"provisioningState\":\"qryxyn\",\"creationDate\":\"2021-09-26T14:22:07Z\",\"isComputeIsolationEnabled\":true,\"isAutotuneEnabled\":false,\"sessionLevelPackagesEnabled\":true,\"cacheSize\":569967866,\"sparkEventsFolder\":\"goeiybbabpfhvfsl\",\"nodeCount\":1073753139,\"customLibraries\":[],\"sparkVersion\":\"igjkskyrio\",\"defaultSparkLogFolder\":\"zid\",\"nodeSize\":\"XXXLarge\",\"nodeSizeFamily\":\"HardwareAcceleratedGPU\",\"lastSucceededTimestamp\":\"2021-06-03T04:19:09Z\"},\"location\":\"mifrygznmma\",\"tags\":{\"ieixynllxe\":\"zkzobgopxlhslnel\",\"u\":\"wcrojphslhcaw\"},\"id\":\"i\",\"name\":\"dwfmvigorqjb\",\"type\":\"tzh\"},{\"properties\":{\"provisioningState\":\"lkafhonqjuje\",\"creationDate\":\"2021-03-08T01:24:12Z\",\"isComputeIsolationEnabled\":false,\"isAutotuneEnabled\":false,\"sessionLevelPackagesEnabled\":true,\"cacheSize\":1711533455,\"sparkEventsFolder\":\"wcltyjede\",\"nodeCount\":1626288503,\"customLibraries\":[],\"sparkVersion\":\"qscazuawxtz\",\"defaultSparkLogFolder\":\"uamwabzxrvxc\",\"nodeSize\":\"XXXLarge\",\"nodeSizeFamily\":\"None\",\"lastSucceededTimestamp\":\"2021-07-14T13:30:43Z\"},\"location\":\"ivmxyasfl\",\"tags\":{\"ihknsmjbl\":\"gzwywak\",\"ryuzcbmqqv\":\"ljhlnymzotq\",\"fgtayxonsup\":\"mv\",\"oibgsxg\":\"ujlzqnhcvsqltn\"},\"id\":\"xfyqonmpqoxwdo\",\"name\":\"dbxiqx\",\"type\":\"iiqbi\"}]}") - .toObject(BigDataPoolResourceInfoListResult.class); - Assertions.assertEquals("ayzejnhlbkpbz", model.nextLink()); - Assertions.assertEquals("jwogqqnobpudc", model.value().get(0).location()); - Assertions.assertEquals("tqwpwya", model.value().get(0).tags().get("bzasqbucljgkyexa")); - Assertions.assertEquals("jh", model.value().get(0).provisioningState()); - Assertions.assertEquals(false, model.value().get(0).isComputeIsolationEnabled()); - Assertions.assertEquals(false, model.value().get(0).isAutotuneEnabled()); - Assertions.assertEquals(true, model.value().get(0).sessionLevelPackagesEnabled()); - Assertions.assertEquals("olewjwi", model.value().get(0).sparkEventsFolder()); - Assertions.assertEquals(1773241461, model.value().get(0).nodeCount()); - Assertions.assertEquals("sfapaqtferrq", model.value().get(0).sparkVersion()); - Assertions.assertEquals("x", model.value().get(0).defaultSparkLogFolder()); - Assertions.assertEquals(NodeSize.XXXLARGE, model.value().get(0).nodeSize()); - Assertions.assertEquals(NodeSizeFamily.NONE, model.value().get(0).nodeSizeFamily()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BigDataPoolResourceInfoListResult model = - new BigDataPoolResourceInfoListResult() - .withNextLink("ayzejnhlbkpbz") - .withValue( - Arrays - .asList( - new BigDataPoolResourceInfoInner() - .withLocation("jwogqqnobpudc") - .withTags( - mapOf( - "bzasqbucljgkyexa", - "tqwpwya", - "dsdaultxijjumf", - "guyaip", - "nqnm", - "waz", - "qdqx", - "jng")) - .withProvisioningState("jh") - .withIsComputeIsolationEnabled(false) - .withIsAutotuneEnabled(false) - .withSessionLevelPackagesEnabled(true) - .withSparkEventsFolder("olewjwi") - .withNodeCount(1773241461) - .withCustomLibraries(Arrays.asList()) - .withSparkVersion("sfapaqtferrq") - .withDefaultSparkLogFolder("x") - .withNodeSize(NodeSize.XXXLARGE) - .withNodeSizeFamily(NodeSizeFamily.NONE), - new BigDataPoolResourceInfoInner() - .withLocation("mifrygznmma") - .withTags(mapOf("ieixynllxe", "zkzobgopxlhslnel", "u", "wcrojphslhcaw")) - .withProvisioningState("qryxyn") - .withIsComputeIsolationEnabled(true) - .withIsAutotuneEnabled(false) - .withSessionLevelPackagesEnabled(true) - .withSparkEventsFolder("goeiybbabpfhvfsl") - .withNodeCount(1073753139) - .withCustomLibraries(Arrays.asList()) - .withSparkVersion("igjkskyrio") - .withDefaultSparkLogFolder("zid") - .withNodeSize(NodeSize.XXXLARGE) - .withNodeSizeFamily(NodeSizeFamily.HARDWARE_ACCELERATED_GPU), - new BigDataPoolResourceInfoInner() - .withLocation("ivmxyasfl") - .withTags( - mapOf( - "ihknsmjbl", - "gzwywak", - "ryuzcbmqqv", - "ljhlnymzotq", - "fgtayxonsup", - "mv", - "oibgsxg", - "ujlzqnhcvsqltn")) - .withProvisioningState("lkafhonqjuje") - .withIsComputeIsolationEnabled(false) - .withIsAutotuneEnabled(false) - .withSessionLevelPackagesEnabled(true) - .withSparkEventsFolder("wcltyjede") - .withNodeCount(1626288503) - .withCustomLibraries(Arrays.asList()) - .withSparkVersion("qscazuawxtz") - .withDefaultSparkLogFolder("uamwabzxrvxc") - .withNodeSize(NodeSize.XXXLARGE) - .withNodeSizeFamily(NodeSizeFamily.NONE))); - model = BinaryData.fromObject(model).toObject(BigDataPoolResourceInfoListResult.class); - Assertions.assertEquals("ayzejnhlbkpbz", model.nextLink()); - Assertions.assertEquals("jwogqqnobpudc", model.value().get(0).location()); - Assertions.assertEquals("tqwpwya", model.value().get(0).tags().get("bzasqbucljgkyexa")); - Assertions.assertEquals("jh", model.value().get(0).provisioningState()); - Assertions.assertEquals(false, model.value().get(0).isComputeIsolationEnabled()); - Assertions.assertEquals(false, model.value().get(0).isAutotuneEnabled()); - Assertions.assertEquals(true, model.value().get(0).sessionLevelPackagesEnabled()); - Assertions.assertEquals("olewjwi", model.value().get(0).sparkEventsFolder()); - Assertions.assertEquals(1773241461, model.value().get(0).nodeCount()); - Assertions.assertEquals("sfapaqtferrq", model.value().get(0).sparkVersion()); - Assertions.assertEquals("x", model.value().get(0).defaultSparkLogFolder()); - Assertions.assertEquals(NodeSize.XXXLARGE, model.value().get(0).nodeSize()); - Assertions.assertEquals(NodeSizeFamily.NONE, model.value().get(0).nodeSizeFamily()); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolResourcePropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolResourcePropertiesTests.java deleted file mode 100644 index ff94f082cfbb..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolResourcePropertiesTests.java +++ /dev/null @@ -1,138 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.BigDataPoolResourceProperties; -import com.azure.resourcemanager.synapse.fluent.models.LibraryInfo; -import com.azure.resourcemanager.synapse.models.AutoPauseProperties; -import com.azure.resourcemanager.synapse.models.AutoScaleProperties; -import com.azure.resourcemanager.synapse.models.ConfigurationType; -import com.azure.resourcemanager.synapse.models.DynamicExecutorAllocation; -import com.azure.resourcemanager.synapse.models.LibraryRequirements; -import com.azure.resourcemanager.synapse.models.NodeSize; -import com.azure.resourcemanager.synapse.models.NodeSizeFamily; -import com.azure.resourcemanager.synapse.models.SparkConfigProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class BigDataPoolResourcePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - BigDataPoolResourceProperties model = - BinaryData - .fromString( - "{\"provisioningState\":\"pctf\",\"autoScale\":{\"minNodeCount\":585208607,\"enabled\":true,\"maxNodeCount\":352780430},\"creationDate\":\"2020-12-22T17:50:01Z\",\"autoPause\":{\"delayInMinutes\":1282016388,\"enabled\":true},\"isComputeIsolationEnabled\":false,\"isAutotuneEnabled\":true,\"sessionLevelPackagesEnabled\":true,\"cacheSize\":404369728,\"dynamicExecutorAllocation\":{\"enabled\":false,\"minExecutors\":1099098499,\"maxExecutors\":698820955},\"sparkEventsFolder\":\"pphoj\",\"nodeCount\":474168225,\"libraryRequirements\":{\"time\":\"2021-01-01T12:47:11Z\",\"content\":\"sgzfczbg\",\"filename\":\"fgbegl\"},\"customLibraries\":[{\"name\":\"o\",\"path\":\"betnluankrrfxee\",\"containerName\":\"tijv\",\"uploadedTimestamp\":\"2021-02-01T20:32:36Z\",\"type\":\"mq\",\"provisioningStatus\":\"qqxlajr\",\"creatorId\":\"xaceve\"},{\"name\":\"kuyxoafg\",\"path\":\"qltfaey\",\"containerName\":\"nm\",\"uploadedTimestamp\":\"2021-02-15T15:51:36Z\",\"type\":\"irpghriypoqeyh\",\"provisioningStatus\":\"h\",\"creatorId\":\"prlpy\"},{\"name\":\"uciqdsme\",\"path\":\"itdfuxtyasiib\",\"containerName\":\"ybnnustg\",\"uploadedTimestamp\":\"2021-05-02T07:22:39Z\",\"type\":\"nmgixh\",\"provisioningStatus\":\"avmqfoudor\",\"creatorId\":\"gyyprotwy\"},{\"name\":\"ndm\",\"path\":\"hu\",\"containerName\":\"mjkavlgorbmft\",\"uploadedTimestamp\":\"2021-05-15T15:16:26Z\",\"type\":\"zfjltfvnzcyjto\",\"provisioningStatus\":\"vopvp\",\"creatorId\":\"bzqgqqi\"}],\"sparkConfigProperties\":{\"time\":\"2021-09-18T06:49:03Z\",\"content\":\"qwthmky\",\"filename\":\"cysihs\",\"configurationType\":\"File\"},\"sparkVersion\":\"dhohsdtmcdzsuf\",\"defaultSparkLogFolder\":\"hdxbzlm\",\"nodeSize\":\"XLarge\",\"nodeSizeFamily\":\"HardwareAcceleratedGPU\",\"lastSucceededTimestamp\":\"2021-11-13T23:35:42Z\"}") - .toObject(BigDataPoolResourceProperties.class); - Assertions.assertEquals("pctf", model.provisioningState()); - Assertions.assertEquals(585208607, model.autoScale().minNodeCount()); - Assertions.assertEquals(true, model.autoScale().enabled()); - Assertions.assertEquals(352780430, model.autoScale().maxNodeCount()); - Assertions.assertEquals(1282016388, model.autoPause().delayInMinutes()); - Assertions.assertEquals(true, model.autoPause().enabled()); - Assertions.assertEquals(false, model.isComputeIsolationEnabled()); - Assertions.assertEquals(true, model.isAutotuneEnabled()); - Assertions.assertEquals(true, model.sessionLevelPackagesEnabled()); - Assertions.assertEquals(false, model.dynamicExecutorAllocation().enabled()); - Assertions.assertEquals(1099098499, model.dynamicExecutorAllocation().minExecutors()); - Assertions.assertEquals(698820955, model.dynamicExecutorAllocation().maxExecutors()); - Assertions.assertEquals("pphoj", model.sparkEventsFolder()); - Assertions.assertEquals(474168225, model.nodeCount()); - Assertions.assertEquals("sgzfczbg", model.libraryRequirements().content()); - Assertions.assertEquals("fgbegl", model.libraryRequirements().filename()); - Assertions.assertEquals("o", model.customLibraries().get(0).name()); - Assertions.assertEquals("betnluankrrfxee", model.customLibraries().get(0).path()); - Assertions.assertEquals("tijv", model.customLibraries().get(0).containerName()); - Assertions.assertEquals("mq", model.customLibraries().get(0).type()); - Assertions.assertEquals("qwthmky", model.sparkConfigProperties().content()); - Assertions.assertEquals("cysihs", model.sparkConfigProperties().filename()); - Assertions.assertEquals(ConfigurationType.FILE, model.sparkConfigProperties().configurationType()); - Assertions.assertEquals("dhohsdtmcdzsuf", model.sparkVersion()); - Assertions.assertEquals("hdxbzlm", model.defaultSparkLogFolder()); - Assertions.assertEquals(NodeSize.XLARGE, model.nodeSize()); - Assertions.assertEquals(NodeSizeFamily.HARDWARE_ACCELERATED_GPU, model.nodeSizeFamily()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - BigDataPoolResourceProperties model = - new BigDataPoolResourceProperties() - .withProvisioningState("pctf") - .withAutoScale( - new AutoScaleProperties().withMinNodeCount(585208607).withEnabled(true).withMaxNodeCount(352780430)) - .withAutoPause(new AutoPauseProperties().withDelayInMinutes(1282016388).withEnabled(true)) - .withIsComputeIsolationEnabled(false) - .withIsAutotuneEnabled(true) - .withSessionLevelPackagesEnabled(true) - .withDynamicExecutorAllocation( - new DynamicExecutorAllocation() - .withEnabled(false) - .withMinExecutors(1099098499) - .withMaxExecutors(698820955)) - .withSparkEventsFolder("pphoj") - .withNodeCount(474168225) - .withLibraryRequirements(new LibraryRequirements().withContent("sgzfczbg").withFilename("fgbegl")) - .withCustomLibraries( - Arrays - .asList( - new LibraryInfo() - .withName("o") - .withPath("betnluankrrfxee") - .withContainerName("tijv") - .withType("mq"), - new LibraryInfo() - .withName("kuyxoafg") - .withPath("qltfaey") - .withContainerName("nm") - .withType("irpghriypoqeyh"), - new LibraryInfo() - .withName("uciqdsme") - .withPath("itdfuxtyasiib") - .withContainerName("ybnnustg") - .withType("nmgixh"), - new LibraryInfo() - .withName("ndm") - .withPath("hu") - .withContainerName("mjkavlgorbmft") - .withType("zfjltfvnzcyjto"))) - .withSparkConfigProperties( - new SparkConfigProperties() - .withContent("qwthmky") - .withFilename("cysihs") - .withConfigurationType(ConfigurationType.FILE)) - .withSparkVersion("dhohsdtmcdzsuf") - .withDefaultSparkLogFolder("hdxbzlm") - .withNodeSize(NodeSize.XLARGE) - .withNodeSizeFamily(NodeSizeFamily.HARDWARE_ACCELERATED_GPU); - model = BinaryData.fromObject(model).toObject(BigDataPoolResourceProperties.class); - Assertions.assertEquals("pctf", model.provisioningState()); - Assertions.assertEquals(585208607, model.autoScale().minNodeCount()); - Assertions.assertEquals(true, model.autoScale().enabled()); - Assertions.assertEquals(352780430, model.autoScale().maxNodeCount()); - Assertions.assertEquals(1282016388, model.autoPause().delayInMinutes()); - Assertions.assertEquals(true, model.autoPause().enabled()); - Assertions.assertEquals(false, model.isComputeIsolationEnabled()); - Assertions.assertEquals(true, model.isAutotuneEnabled()); - Assertions.assertEquals(true, model.sessionLevelPackagesEnabled()); - Assertions.assertEquals(false, model.dynamicExecutorAllocation().enabled()); - Assertions.assertEquals(1099098499, model.dynamicExecutorAllocation().minExecutors()); - Assertions.assertEquals(698820955, model.dynamicExecutorAllocation().maxExecutors()); - Assertions.assertEquals("pphoj", model.sparkEventsFolder()); - Assertions.assertEquals(474168225, model.nodeCount()); - Assertions.assertEquals("sgzfczbg", model.libraryRequirements().content()); - Assertions.assertEquals("fgbegl", model.libraryRequirements().filename()); - Assertions.assertEquals("o", model.customLibraries().get(0).name()); - Assertions.assertEquals("betnluankrrfxee", model.customLibraries().get(0).path()); - Assertions.assertEquals("tijv", model.customLibraries().get(0).containerName()); - Assertions.assertEquals("mq", model.customLibraries().get(0).type()); - Assertions.assertEquals("qwthmky", model.sparkConfigProperties().content()); - Assertions.assertEquals("cysihs", model.sparkConfigProperties().filename()); - Assertions.assertEquals(ConfigurationType.FILE, model.sparkConfigProperties().configurationType()); - Assertions.assertEquals("dhohsdtmcdzsuf", model.sparkVersion()); - Assertions.assertEquals("hdxbzlm", model.defaultSparkLogFolder()); - Assertions.assertEquals(NodeSize.XLARGE, model.nodeSize()); - Assertions.assertEquals(NodeSizeFamily.HARDWARE_ACCELERATED_GPU, model.nodeSizeFamily()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsCreateOrUpdateMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsCreateOrUpdateMockTests.java deleted file mode 100644 index 9697905dee6e..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsCreateOrUpdateMockTests.java +++ /dev/null @@ -1,148 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.AutoPauseProperties; -import com.azure.resourcemanager.synapse.models.AutoScaleProperties; -import com.azure.resourcemanager.synapse.models.BigDataPoolResourceInfo; -import com.azure.resourcemanager.synapse.models.ConfigurationType; -import com.azure.resourcemanager.synapse.models.DynamicExecutorAllocation; -import com.azure.resourcemanager.synapse.models.LibraryRequirements; -import com.azure.resourcemanager.synapse.models.NodeSize; -import com.azure.resourcemanager.synapse.models.NodeSizeFamily; -import com.azure.resourcemanager.synapse.models.SparkConfigProperties; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class BigDataPoolsCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"provisioningState\":\"Succeeded\",\"autoScale\":{\"minNodeCount\":985648973,\"enabled\":true,\"maxNodeCount\":1004177849},\"creationDate\":\"2021-05-07T09:49:36Z\",\"autoPause\":{\"delayInMinutes\":26783847,\"enabled\":false},\"isComputeIsolationEnabled\":false,\"isAutotuneEnabled\":false,\"sessionLevelPackagesEnabled\":false,\"cacheSize\":880047238,\"dynamicExecutorAllocation\":{\"enabled\":true,\"minExecutors\":876002990,\"maxExecutors\":21089033},\"sparkEventsFolder\":\"tkutnjil\",\"nodeCount\":1110899441,\"libraryRequirements\":{\"time\":\"2021-06-03T08:07:55Z\",\"content\":\"yhtmjoduif\",\"filename\":\"lxfary\"},\"customLibraries\":[],\"sparkConfigProperties\":{\"time\":\"2021-05-20T15:40Z\",\"content\":\"zvj\",\"filename\":\"ahoyiyaxqvj\",\"configurationType\":\"File\"},\"sparkVersion\":\"tcz\",\"defaultSparkLogFolder\":\"dn\",\"nodeSize\":\"XXXLarge\",\"nodeSizeFamily\":\"None\",\"lastSucceededTimestamp\":\"2021-02-26T05:46:20Z\"},\"location\":\"bmdqrxyglae\",\"tags\":{\"riefoo\":\"flwtjdt\",\"dudgcozzomeh\":\"ycuxdtzcqip\",\"juxkqll\":\"lantolamlb\"},\"id\":\"z\",\"name\":\"pvwdtgckzdqiq\",\"type\":\"lrat\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - BigDataPoolResourceInfo response = - manager - .bigDataPools() - .define("afofu") - .withRegion("wfldsiuorinik") - .withExistingWorkspace("hnzrsbkkzovlzdm", "fmfws") - .withTags(mapOf("iwm", "pks")) - .withProvisioningState("immovzwd") - .withAutoScale( - new AutoScaleProperties() - .withMinNodeCount(1674817788) - .withEnabled(false) - .withMaxNodeCount(1123352219)) - .withAutoPause(new AutoPauseProperties().withDelayInMinutes(960263436).withEnabled(true)) - .withIsComputeIsolationEnabled(false) - .withIsAutotuneEnabled(false) - .withSessionLevelPackagesEnabled(false) - .withDynamicExecutorAllocation( - new DynamicExecutorAllocation() - .withEnabled(true) - .withMinExecutors(420672272) - .withMaxExecutors(1302381284)) - .withSparkEventsFolder("aq") - .withNodeCount(806621998) - .withLibraryRequirements(new LibraryRequirements().withContent("qoq").withFilename("movsfbpbvz")) - .withCustomLibraries(Arrays.asList()) - .withSparkConfigProperties( - new SparkConfigProperties() - .withContent("vsmcwo") - .withFilename("axdtnqif") - .withConfigurationType(ConfigurationType.FILE)) - .withSparkVersion("roiauesugmo") - .withDefaultSparkLogFolder("cjycb") - .withNodeSize(NodeSize.XLARGE) - .withNodeSizeFamily(NodeSizeFamily.HARDWARE_ACCELERATED_FPGA) - .withForce(false) - .create(); - - Assertions.assertEquals("bmdqrxyglae", response.location()); - Assertions.assertEquals("flwtjdt", response.tags().get("riefoo")); - Assertions.assertEquals("Succeeded", response.provisioningState()); - Assertions.assertEquals(985648973, response.autoScale().minNodeCount()); - Assertions.assertEquals(true, response.autoScale().enabled()); - Assertions.assertEquals(1004177849, response.autoScale().maxNodeCount()); - Assertions.assertEquals(26783847, response.autoPause().delayInMinutes()); - Assertions.assertEquals(false, response.autoPause().enabled()); - Assertions.assertEquals(false, response.isComputeIsolationEnabled()); - Assertions.assertEquals(false, response.isAutotuneEnabled()); - Assertions.assertEquals(false, response.sessionLevelPackagesEnabled()); - Assertions.assertEquals(true, response.dynamicExecutorAllocation().enabled()); - Assertions.assertEquals(876002990, response.dynamicExecutorAllocation().minExecutors()); - Assertions.assertEquals(21089033, response.dynamicExecutorAllocation().maxExecutors()); - Assertions.assertEquals("tkutnjil", response.sparkEventsFolder()); - Assertions.assertEquals(1110899441, response.nodeCount()); - Assertions.assertEquals("yhtmjoduif", response.libraryRequirements().content()); - Assertions.assertEquals("lxfary", response.libraryRequirements().filename()); - Assertions.assertEquals("zvj", response.sparkConfigProperties().content()); - Assertions.assertEquals("ahoyiyaxqvj", response.sparkConfigProperties().filename()); - Assertions.assertEquals(ConfigurationType.FILE, response.sparkConfigProperties().configurationType()); - Assertions.assertEquals("tcz", response.sparkVersion()); - Assertions.assertEquals("dn", response.defaultSparkLogFolder()); - Assertions.assertEquals(NodeSize.XXXLARGE, response.nodeSize()); - Assertions.assertEquals(NodeSizeFamily.NONE, response.nodeSizeFamily()); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsDeleteMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsDeleteMockTests.java deleted file mode 100644 index bbf1189f864c..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsDeleteMockTests.java +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.BigDataPoolResourceInfo; -import com.azure.resourcemanager.synapse.models.ConfigurationType; -import com.azure.resourcemanager.synapse.models.NodeSize; -import com.azure.resourcemanager.synapse.models.NodeSizeFamily; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class BigDataPoolsDeleteMockTests { - @Test - public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"provisioningState\":\"Succeeded\",\"autoScale\":{\"minNodeCount\":1849214480,\"enabled\":false,\"maxNodeCount\":1305807197},\"creationDate\":\"2021-06-14T14:12:10Z\",\"autoPause\":{\"delayInMinutes\":722501870,\"enabled\":true},\"isComputeIsolationEnabled\":false,\"isAutotuneEnabled\":false,\"sessionLevelPackagesEnabled\":false,\"cacheSize\":1339035720,\"dynamicExecutorAllocation\":{\"enabled\":false,\"minExecutors\":585595148,\"maxExecutors\":1104081037},\"sparkEventsFolder\":\"xrdfddtu\",\"nodeCount\":1027095078,\"libraryRequirements\":{\"time\":\"2021-10-02T21:47:41Z\",\"content\":\"czcxdfw\",\"filename\":\"pyfml\"},\"customLibraries\":[],\"sparkConfigProperties\":{\"time\":\"2021-11-16T18:58:57Z\",\"content\":\"aspiflei\",\"filename\":\"x\",\"configurationType\":\"Artifact\"},\"sparkVersion\":\"gicehfgsmdr\",\"defaultSparkLogFolder\":\"qbpxt\",\"nodeSize\":\"Small\",\"nodeSizeFamily\":\"HardwareAcceleratedGPU\",\"lastSucceededTimestamp\":\"2021-11-09T19:32:01Z\"},\"location\":\"np\",\"tags\":{\"tyyqiprcltungb\":\"f\",\"kmii\":\"olj\",\"iiqqcqikclsmalns\":\"zbkuckgkdsksw\"},\"id\":\"woykdnonaaxwm\",\"name\":\"zrujlqcwnyn\",\"type\":\"lei\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - BigDataPoolResourceInfo response = - manager.bigDataPools().delete("kftbaewhte", "loamfmxtllfltym", "cn", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("np", response.location()); - Assertions.assertEquals("f", response.tags().get("tyyqiprcltungb")); - Assertions.assertEquals("Succeeded", response.provisioningState()); - Assertions.assertEquals(1849214480, response.autoScale().minNodeCount()); - Assertions.assertEquals(false, response.autoScale().enabled()); - Assertions.assertEquals(1305807197, response.autoScale().maxNodeCount()); - Assertions.assertEquals(722501870, response.autoPause().delayInMinutes()); - Assertions.assertEquals(true, response.autoPause().enabled()); - Assertions.assertEquals(false, response.isComputeIsolationEnabled()); - Assertions.assertEquals(false, response.isAutotuneEnabled()); - Assertions.assertEquals(false, response.sessionLevelPackagesEnabled()); - Assertions.assertEquals(false, response.dynamicExecutorAllocation().enabled()); - Assertions.assertEquals(585595148, response.dynamicExecutorAllocation().minExecutors()); - Assertions.assertEquals(1104081037, response.dynamicExecutorAllocation().maxExecutors()); - Assertions.assertEquals("xrdfddtu", response.sparkEventsFolder()); - Assertions.assertEquals(1027095078, response.nodeCount()); - Assertions.assertEquals("czcxdfw", response.libraryRequirements().content()); - Assertions.assertEquals("pyfml", response.libraryRequirements().filename()); - Assertions.assertEquals("aspiflei", response.sparkConfigProperties().content()); - Assertions.assertEquals("x", response.sparkConfigProperties().filename()); - Assertions.assertEquals(ConfigurationType.ARTIFACT, response.sparkConfigProperties().configurationType()); - Assertions.assertEquals("gicehfgsmdr", response.sparkVersion()); - Assertions.assertEquals("qbpxt", response.defaultSparkLogFolder()); - Assertions.assertEquals(NodeSize.SMALL, response.nodeSize()); - Assertions.assertEquals(NodeSizeFamily.HARDWARE_ACCELERATED_GPU, response.nodeSizeFamily()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsGetWithResponseMockTests.java deleted file mode 100644 index 67c15508105b..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsGetWithResponseMockTests.java +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.BigDataPoolResourceInfo; -import com.azure.resourcemanager.synapse.models.ConfigurationType; -import com.azure.resourcemanager.synapse.models.NodeSize; -import com.azure.resourcemanager.synapse.models.NodeSizeFamily; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class BigDataPoolsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"provisioningState\":\"fqi\",\"autoScale\":{\"minNodeCount\":1741595014,\"enabled\":false,\"maxNodeCount\":1389523048},\"creationDate\":\"2021-11-10T23:03:02Z\",\"autoPause\":{\"delayInMinutes\":2102268452,\"enabled\":true},\"isComputeIsolationEnabled\":false,\"isAutotuneEnabled\":true,\"sessionLevelPackagesEnabled\":true,\"cacheSize\":2061594918,\"dynamicExecutorAllocation\":{\"enabled\":false,\"minExecutors\":1265513467,\"maxExecutors\":1929102863},\"sparkEventsFolder\":\"cttgzkjt\",\"nodeCount\":84412621,\"libraryRequirements\":{\"time\":\"2021-07-27T06:31:22Z\",\"content\":\"egh\",\"filename\":\"ldsvc\"},\"customLibraries\":[],\"sparkConfigProperties\":{\"time\":\"2021-03-01T16:47:44Z\",\"content\":\"qymjzucwwmejjqhd\",\"filename\":\"vmqxi\",\"configurationType\":\"File\"},\"sparkVersion\":\"yfozkbnzxbypfqp\",\"defaultSparkLogFolder\":\"ixwrgrk\",\"nodeSize\":\"Large\",\"nodeSizeFamily\":\"HardwareAcceleratedFPGA\",\"lastSucceededTimestamp\":\"2021-12-05T10:03:37Z\"},\"location\":\"wqikwepwogggic\",\"tags\":{\"zpgf\":\"htfmcqbsudzpgc\",\"dkynrceqa\":\"umjdjxhzghg\",\"naj\":\"fdbdfmmxj\",\"oqdejkluxxr\":\"opjyyqmkwlhvcw\"},\"id\":\"zobuzmsxgamtdtk\",\"name\":\"ppthuzdprmimrl\",\"type\":\"dpoqfxyem\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - BigDataPoolResourceInfo response = - manager - .bigDataPools() - .getWithResponse("udbkuwpzq", "lcwe", "kfecjvxf", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("wqikwepwogggic", response.location()); - Assertions.assertEquals("htfmcqbsudzpgc", response.tags().get("zpgf")); - Assertions.assertEquals("fqi", response.provisioningState()); - Assertions.assertEquals(1741595014, response.autoScale().minNodeCount()); - Assertions.assertEquals(false, response.autoScale().enabled()); - Assertions.assertEquals(1389523048, response.autoScale().maxNodeCount()); - Assertions.assertEquals(2102268452, response.autoPause().delayInMinutes()); - Assertions.assertEquals(true, response.autoPause().enabled()); - Assertions.assertEquals(false, response.isComputeIsolationEnabled()); - Assertions.assertEquals(true, response.isAutotuneEnabled()); - Assertions.assertEquals(true, response.sessionLevelPackagesEnabled()); - Assertions.assertEquals(false, response.dynamicExecutorAllocation().enabled()); - Assertions.assertEquals(1265513467, response.dynamicExecutorAllocation().minExecutors()); - Assertions.assertEquals(1929102863, response.dynamicExecutorAllocation().maxExecutors()); - Assertions.assertEquals("cttgzkjt", response.sparkEventsFolder()); - Assertions.assertEquals(84412621, response.nodeCount()); - Assertions.assertEquals("egh", response.libraryRequirements().content()); - Assertions.assertEquals("ldsvc", response.libraryRequirements().filename()); - Assertions.assertEquals("qymjzucwwmejjqhd", response.sparkConfigProperties().content()); - Assertions.assertEquals("vmqxi", response.sparkConfigProperties().filename()); - Assertions.assertEquals(ConfigurationType.FILE, response.sparkConfigProperties().configurationType()); - Assertions.assertEquals("yfozkbnzxbypfqp", response.sparkVersion()); - Assertions.assertEquals("ixwrgrk", response.defaultSparkLogFolder()); - Assertions.assertEquals(NodeSize.LARGE, response.nodeSize()); - Assertions.assertEquals(NodeSizeFamily.HARDWARE_ACCELERATED_FPGA, response.nodeSizeFamily()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsListByWorkspaceMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsListByWorkspaceMockTests.java deleted file mode 100644 index 863401310b3a..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/BigDataPoolsListByWorkspaceMockTests.java +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.BigDataPoolResourceInfo; -import com.azure.resourcemanager.synapse.models.ConfigurationType; -import com.azure.resourcemanager.synapse.models.NodeSize; -import com.azure.resourcemanager.synapse.models.NodeSizeFamily; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class BigDataPoolsListByWorkspaceMockTests { - @Test - public void testListByWorkspace() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"properties\":{\"provisioningState\":\"uvjhxmnrqstjc\",\"autoScale\":{\"minNodeCount\":349818575,\"enabled\":false,\"maxNodeCount\":20482320},\"creationDate\":\"2021-01-07T08:16:32Z\",\"autoPause\":{\"delayInMinutes\":1842363515,\"enabled\":true},\"isComputeIsolationEnabled\":true,\"isAutotuneEnabled\":true,\"sessionLevelPackagesEnabled\":false,\"cacheSize\":1379408625,\"dynamicExecutorAllocation\":{\"enabled\":false,\"minExecutors\":998671671,\"maxExecutors\":1528855768},\"sparkEventsFolder\":\"dsvmwbitekdtf\",\"nodeCount\":1288145851,\"libraryRequirements\":{\"time\":\"2021-07-23T16:06:56Z\",\"content\":\"x\",\"filename\":\"chgy\"},\"customLibraries\":[],\"sparkConfigProperties\":{\"time\":\"2021-08-20T05:15:16Z\",\"content\":\"ivycpzcvdi\",\"filename\":\"lrqtbhtrezp\",\"configurationType\":\"Artifact\"},\"sparkVersion\":\"yfmx\",\"defaultSparkLogFolder\":\"utzfkgilnoudc\",\"nodeSize\":\"Large\",\"nodeSizeFamily\":\"HardwareAcceleratedFPGA\",\"lastSucceededTimestamp\":\"2021-07-21T08:25:46Z\"},\"location\":\"prigg\",\"tags\":{\"flqjfshtu\":\"eqfcbuulpy\",\"lkq\":\"cyohigimwdcs\",\"imb\":\"qvkixnmbzmecuyrz\"},\"id\":\"ayspzvriet\",\"name\":\"fphmdzxplg\",\"type\":\"pvdvatlzmgs\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager.bigDataPools().listByWorkspace("bcbgv", "btsertoxa", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("prigg", response.iterator().next().location()); - Assertions.assertEquals("eqfcbuulpy", response.iterator().next().tags().get("flqjfshtu")); - Assertions.assertEquals("uvjhxmnrqstjc", response.iterator().next().provisioningState()); - Assertions.assertEquals(349818575, response.iterator().next().autoScale().minNodeCount()); - Assertions.assertEquals(false, response.iterator().next().autoScale().enabled()); - Assertions.assertEquals(20482320, response.iterator().next().autoScale().maxNodeCount()); - Assertions.assertEquals(1842363515, response.iterator().next().autoPause().delayInMinutes()); - Assertions.assertEquals(true, response.iterator().next().autoPause().enabled()); - Assertions.assertEquals(true, response.iterator().next().isComputeIsolationEnabled()); - Assertions.assertEquals(true, response.iterator().next().isAutotuneEnabled()); - Assertions.assertEquals(false, response.iterator().next().sessionLevelPackagesEnabled()); - Assertions.assertEquals(false, response.iterator().next().dynamicExecutorAllocation().enabled()); - Assertions.assertEquals(998671671, response.iterator().next().dynamicExecutorAllocation().minExecutors()); - Assertions.assertEquals(1528855768, response.iterator().next().dynamicExecutorAllocation().maxExecutors()); - Assertions.assertEquals("dsvmwbitekdtf", response.iterator().next().sparkEventsFolder()); - Assertions.assertEquals(1288145851, response.iterator().next().nodeCount()); - Assertions.assertEquals("x", response.iterator().next().libraryRequirements().content()); - Assertions.assertEquals("chgy", response.iterator().next().libraryRequirements().filename()); - Assertions.assertEquals("ivycpzcvdi", response.iterator().next().sparkConfigProperties().content()); - Assertions.assertEquals("lrqtbhtrezp", response.iterator().next().sparkConfigProperties().filename()); - Assertions - .assertEquals( - ConfigurationType.ARTIFACT, response.iterator().next().sparkConfigProperties().configurationType()); - Assertions.assertEquals("yfmx", response.iterator().next().sparkVersion()); - Assertions.assertEquals("utzfkgilnoudc", response.iterator().next().defaultSparkLogFolder()); - Assertions.assertEquals(NodeSize.LARGE, response.iterator().next().nodeSize()); - Assertions.assertEquals(NodeSizeFamily.HARDWARE_ACCELERATED_FPGA, response.iterator().next().nodeSizeFamily()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/CheckNameAvailabilityRequestTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/CheckNameAvailabilityRequestTests.java deleted file mode 100644 index 288514aa47f5..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/CheckNameAvailabilityRequestTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.CheckNameAvailabilityRequest; -import org.junit.jupiter.api.Assertions; - -public final class CheckNameAvailabilityRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CheckNameAvailabilityRequest model = - BinaryData - .fromString("{\"name\":\"rxybqsoq\",\"type\":\"gkdmb\"}") - .toObject(CheckNameAvailabilityRequest.class); - Assertions.assertEquals("rxybqsoq", model.name()); - Assertions.assertEquals("gkdmb", model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CheckNameAvailabilityRequest model = new CheckNameAvailabilityRequest().withName("rxybqsoq").withType("gkdmb"); - model = BinaryData.fromObject(model).toObject(CheckNameAvailabilityRequest.class); - Assertions.assertEquals("rxybqsoq", model.name()); - Assertions.assertEquals("gkdmb", model.type()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/CheckNameAvailabilityResponseInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/CheckNameAvailabilityResponseInnerTests.java deleted file mode 100644 index 7929ffb9ae1b..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/CheckNameAvailabilityResponseInnerTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.CheckNameAvailabilityResponseInner; -import org.junit.jupiter.api.Assertions; - -public final class CheckNameAvailabilityResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CheckNameAvailabilityResponseInner model = - BinaryData - .fromString( - "{\"message\":\"zlobcufpd\",\"available\":false,\"reason\":\"t\",\"name\":\"qjnqglhqgnufoooj\"}") - .toObject(CheckNameAvailabilityResponseInner.class); - Assertions.assertEquals("zlobcufpd", model.message()); - Assertions.assertEquals(false, model.available()); - Assertions.assertEquals("t", model.reason()); - Assertions.assertEquals("qjnqglhqgnufoooj", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CheckNameAvailabilityResponseInner model = - new CheckNameAvailabilityResponseInner() - .withMessage("zlobcufpd") - .withAvailable(false) - .withReason("t") - .withName("qjnqglhqgnufoooj"); - model = BinaryData.fromObject(model).toObject(CheckNameAvailabilityResponseInner.class); - Assertions.assertEquals("zlobcufpd", model.message()); - Assertions.assertEquals(false, model.available()); - Assertions.assertEquals("t", model.reason()); - Assertions.assertEquals("qjnqglhqgnufoooj", model.name()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/CheckNameResultInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/CheckNameResultInnerTests.java deleted file mode 100644 index 39db881c01ea..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/CheckNameResultInnerTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.CheckNameResultInner; -import com.azure.resourcemanager.synapse.models.Reason; -import org.junit.jupiter.api.Assertions; - -public final class CheckNameResultInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CheckNameResultInner model = - BinaryData - .fromString( - "{\"nameAvailable\":true,\"name\":\"kglklbyulidwcw\",\"message\":\"zegjonfhjirwgdn\",\"reason\":\"Invalid\"}") - .toObject(CheckNameResultInner.class); - Assertions.assertEquals(true, model.nameAvailable()); - Assertions.assertEquals("kglklbyulidwcw", model.name()); - Assertions.assertEquals("zegjonfhjirwgdn", model.message()); - Assertions.assertEquals(Reason.INVALID, model.reason()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CheckNameResultInner model = - new CheckNameResultInner() - .withNameAvailable(true) - .withName("kglklbyulidwcw") - .withMessage("zegjonfhjirwgdn") - .withReason(Reason.INVALID); - model = BinaryData.fromObject(model).toObject(CheckNameResultInner.class); - Assertions.assertEquals(true, model.nameAvailable()); - Assertions.assertEquals("kglklbyulidwcw", model.name()); - Assertions.assertEquals("zegjonfhjirwgdn", model.message()); - Assertions.assertEquals(Reason.INVALID, model.reason()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ClusterPrincipalAssignmentCheckNameRequestTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ClusterPrincipalAssignmentCheckNameRequestTests.java deleted file mode 100644 index 9c24b78bdcc2..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ClusterPrincipalAssignmentCheckNameRequestTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.ClusterPrincipalAssignmentCheckNameRequest; -import org.junit.jupiter.api.Assertions; - -public final class ClusterPrincipalAssignmentCheckNameRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ClusterPrincipalAssignmentCheckNameRequest model = - BinaryData - .fromString("{\"name\":\"ttjzcfyjzpt\"}") - .toObject(ClusterPrincipalAssignmentCheckNameRequest.class); - Assertions.assertEquals("ttjzcfyjzpt", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ClusterPrincipalAssignmentCheckNameRequest model = - new ClusterPrincipalAssignmentCheckNameRequest().withName("ttjzcfyjzpt"); - model = BinaryData.fromObject(model).toObject(ClusterPrincipalAssignmentCheckNameRequest.class); - Assertions.assertEquals("ttjzcfyjzpt", model.name()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ClusterPrincipalAssignmentInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ClusterPrincipalAssignmentInnerTests.java deleted file mode 100644 index 032dbf37e7f4..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ClusterPrincipalAssignmentInnerTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.ClusterPrincipalAssignmentInner; -import com.azure.resourcemanager.synapse.models.ClusterPrincipalRole; -import com.azure.resourcemanager.synapse.models.PrincipalType; -import org.junit.jupiter.api.Assertions; - -public final class ClusterPrincipalAssignmentInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ClusterPrincipalAssignmentInner model = - BinaryData - .fromString( - "{\"properties\":{\"principalId\":\"wnlzafwxu\",\"role\":\"AllDatabasesAdmin\",\"tenantId\":\"hgookrtalvnbwgpb\",\"principalType\":\"App\",\"tenantName\":\"luclvdjjuk\",\"principalName\":\"dnqodx\",\"provisioningState\":\"Running\",\"aadObjectId\":\"hqfaqnvz\"},\"id\":\"gyipem\",\"name\":\"hgav\",\"type\":\"czuejdtxptl\"}") - .toObject(ClusterPrincipalAssignmentInner.class); - Assertions.assertEquals("wnlzafwxu", model.principalId()); - Assertions.assertEquals(ClusterPrincipalRole.ALL_DATABASES_ADMIN, model.role()); - Assertions.assertEquals("hgookrtalvnbwgpb", model.tenantId()); - Assertions.assertEquals(PrincipalType.APP, model.principalType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ClusterPrincipalAssignmentInner model = - new ClusterPrincipalAssignmentInner() - .withPrincipalId("wnlzafwxu") - .withRole(ClusterPrincipalRole.ALL_DATABASES_ADMIN) - .withTenantId("hgookrtalvnbwgpb") - .withPrincipalType(PrincipalType.APP); - model = BinaryData.fromObject(model).toObject(ClusterPrincipalAssignmentInner.class); - Assertions.assertEquals("wnlzafwxu", model.principalId()); - Assertions.assertEquals(ClusterPrincipalRole.ALL_DATABASES_ADMIN, model.role()); - Assertions.assertEquals("hgookrtalvnbwgpb", model.tenantId()); - Assertions.assertEquals(PrincipalType.APP, model.principalType()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ClusterPrincipalAssignmentListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ClusterPrincipalAssignmentListResultTests.java deleted file mode 100644 index 0b60cf42c419..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ClusterPrincipalAssignmentListResultTests.java +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.ClusterPrincipalAssignmentInner; -import com.azure.resourcemanager.synapse.models.ClusterPrincipalAssignmentListResult; -import com.azure.resourcemanager.synapse.models.ClusterPrincipalRole; -import com.azure.resourcemanager.synapse.models.PrincipalType; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ClusterPrincipalAssignmentListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ClusterPrincipalAssignmentListResult model = - BinaryData - .fromString( - "{\"value\":[{\"properties\":{\"principalId\":\"h\",\"role\":\"AllDatabasesAdmin\",\"tenantId\":\"infsz\",\"principalType\":\"User\",\"tenantName\":\"lqdhmrjzr\",\"principalName\":\"cxpjbyypsj\",\"provisioningState\":\"Deleting\",\"aadObjectId\":\"enky\"},\"id\":\"qzvs\",\"name\":\"xfxjelgcmpzqj\",\"type\":\"hhqxuwyvcacoyviv\"},{\"properties\":{\"principalId\":\"izus\",\"role\":\"AllDatabasesAdmin\",\"tenantId\":\"lbscmnlz\",\"principalType\":\"Group\",\"tenantName\":\"uf\",\"principalName\":\"gmvflnwyvqkx\",\"provisioningState\":\"Running\",\"aadObjectId\":\"niylyly\"},\"id\":\"xzutgqztwhghmupg\",\"name\":\"yjtcdxabbujftab\",\"type\":\"nbbklqpxzucafed\"}]}") - .toObject(ClusterPrincipalAssignmentListResult.class); - Assertions.assertEquals("h", model.value().get(0).principalId()); - Assertions.assertEquals(ClusterPrincipalRole.ALL_DATABASES_ADMIN, model.value().get(0).role()); - Assertions.assertEquals("infsz", model.value().get(0).tenantId()); - Assertions.assertEquals(PrincipalType.USER, model.value().get(0).principalType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ClusterPrincipalAssignmentListResult model = - new ClusterPrincipalAssignmentListResult() - .withValue( - Arrays - .asList( - new ClusterPrincipalAssignmentInner() - .withPrincipalId("h") - .withRole(ClusterPrincipalRole.ALL_DATABASES_ADMIN) - .withTenantId("infsz") - .withPrincipalType(PrincipalType.USER), - new ClusterPrincipalAssignmentInner() - .withPrincipalId("izus") - .withRole(ClusterPrincipalRole.ALL_DATABASES_ADMIN) - .withTenantId("lbscmnlz") - .withPrincipalType(PrincipalType.GROUP))); - model = BinaryData.fromObject(model).toObject(ClusterPrincipalAssignmentListResult.class); - Assertions.assertEquals("h", model.value().get(0).principalId()); - Assertions.assertEquals(ClusterPrincipalRole.ALL_DATABASES_ADMIN, model.value().get(0).role()); - Assertions.assertEquals("infsz", model.value().get(0).tenantId()); - Assertions.assertEquals(PrincipalType.USER, model.value().get(0).principalType()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ClusterPrincipalPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ClusterPrincipalPropertiesTests.java deleted file mode 100644 index 9b929d39f838..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ClusterPrincipalPropertiesTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.ClusterPrincipalProperties; -import com.azure.resourcemanager.synapse.models.ClusterPrincipalRole; -import com.azure.resourcemanager.synapse.models.PrincipalType; -import org.junit.jupiter.api.Assertions; - -public final class ClusterPrincipalPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ClusterPrincipalProperties model = - BinaryData - .fromString( - "{\"principalId\":\"h\",\"role\":\"AllDatabasesViewer\",\"tenantId\":\"omew\",\"principalType\":\"User\",\"tenantName\":\"tl\",\"principalName\":\"hqawmo\",\"provisioningState\":\"Succeeded\",\"aadObjectId\":\"cz\"}") - .toObject(ClusterPrincipalProperties.class); - Assertions.assertEquals("h", model.principalId()); - Assertions.assertEquals(ClusterPrincipalRole.ALL_DATABASES_VIEWER, model.role()); - Assertions.assertEquals("omew", model.tenantId()); - Assertions.assertEquals(PrincipalType.USER, model.principalType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ClusterPrincipalProperties model = - new ClusterPrincipalProperties() - .withPrincipalId("h") - .withRole(ClusterPrincipalRole.ALL_DATABASES_VIEWER) - .withTenantId("omew") - .withPrincipalType(PrincipalType.USER); - model = BinaryData.fromObject(model).toObject(ClusterPrincipalProperties.class); - Assertions.assertEquals("h", model.principalId()); - Assertions.assertEquals(ClusterPrincipalRole.ALL_DATABASES_VIEWER, model.role()); - Assertions.assertEquals("omew", model.tenantId()); - Assertions.assertEquals(PrincipalType.USER, model.principalType()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/CreateSqlPoolRestorePointDefinitionTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/CreateSqlPoolRestorePointDefinitionTests.java deleted file mode 100644 index 3b4526fc05b9..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/CreateSqlPoolRestorePointDefinitionTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.CreateSqlPoolRestorePointDefinition; -import org.junit.jupiter.api.Assertions; - -public final class CreateSqlPoolRestorePointDefinitionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CreateSqlPoolRestorePointDefinition model = - BinaryData - .fromString("{\"restorePointLabel\":\"hin\"}") - .toObject(CreateSqlPoolRestorePointDefinition.class); - Assertions.assertEquals("hin", model.restorePointLabel()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CreateSqlPoolRestorePointDefinition model = - new CreateSqlPoolRestorePointDefinition().withRestorePointLabel("hin"); - model = BinaryData.fromObject(model).toObject(CreateSqlPoolRestorePointDefinition.class); - Assertions.assertEquals("hin", model.restorePointLabel()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/CspWorkspaceAdminPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/CspWorkspaceAdminPropertiesTests.java deleted file mode 100644 index 3cc078c81ed5..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/CspWorkspaceAdminPropertiesTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.CspWorkspaceAdminProperties; -import org.junit.jupiter.api.Assertions; - -public final class CspWorkspaceAdminPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CspWorkspaceAdminProperties model = - BinaryData - .fromString("{\"initialWorkspaceAdminObjectId\":\"idxas\"}") - .toObject(CspWorkspaceAdminProperties.class); - Assertions.assertEquals("idxas", model.initialWorkspaceAdminObjectId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CspWorkspaceAdminProperties model = - new CspWorkspaceAdminProperties().withInitialWorkspaceAdminObjectId("idxas"); - model = BinaryData.fromObject(model).toObject(CspWorkspaceAdminProperties.class); - Assertions.assertEquals("idxas", model.initialWorkspaceAdminObjectId()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/CustomSetupBaseTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/CustomSetupBaseTests.java deleted file mode 100644 index b5be01dc865a..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/CustomSetupBaseTests.java +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.CustomSetupBase; - -public final class CustomSetupBaseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CustomSetupBase model = BinaryData.fromString("{\"type\":\"CustomSetupBase\"}").toObject(CustomSetupBase.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CustomSetupBase model = new CustomSetupBase(); - model = BinaryData.fromObject(model).toObject(CustomSetupBase.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataConnectionCheckNameRequestTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataConnectionCheckNameRequestTests.java deleted file mode 100644 index 300a1aea850b..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataConnectionCheckNameRequestTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.DataConnectionCheckNameRequest; -import org.junit.jupiter.api.Assertions; - -public final class DataConnectionCheckNameRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataConnectionCheckNameRequest model = - BinaryData.fromString("{\"name\":\"ndo\"}").toObject(DataConnectionCheckNameRequest.class); - Assertions.assertEquals("ndo", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataConnectionCheckNameRequest model = new DataConnectionCheckNameRequest().withName("ndo"); - model = BinaryData.fromObject(model).toObject(DataConnectionCheckNameRequest.class); - Assertions.assertEquals("ndo", model.name()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataConnectionInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataConnectionInnerTests.java deleted file mode 100644 index fa2899895b7b..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataConnectionInnerTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.DataConnectionInner; -import org.junit.jupiter.api.Assertions; - -public final class DataConnectionInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataConnectionInner model = - BinaryData - .fromString( - "{\"kind\":\"DataConnection\",\"location\":\"inbmh\",\"id\":\"jijkgqxnhmbke\",\"name\":\"njaujvaan\",\"type\":\"ggiycwkdtaawxwf\"}") - .toObject(DataConnectionInner.class); - Assertions.assertEquals("inbmh", model.location()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataConnectionInner model = new DataConnectionInner().withLocation("inbmh"); - model = BinaryData.fromObject(model).toObject(DataConnectionInner.class); - Assertions.assertEquals("inbmh", model.location()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataConnectionListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataConnectionListResultTests.java deleted file mode 100644 index 7a41a51764f9..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataConnectionListResultTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.DataConnectionInner; -import com.azure.resourcemanager.synapse.models.DataConnectionListResult; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class DataConnectionListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataConnectionListResult model = - BinaryData - .fromString( - "{\"value\":[{\"kind\":\"DataConnection\",\"location\":\"smffjkutycyarnr\",\"id\":\"hguabzoghktdp\",\"name\":\"czhcoeocnh\",\"type\":\"qr\"}]}") - .toObject(DataConnectionListResult.class); - Assertions.assertEquals("smffjkutycyarnr", model.value().get(0).location()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataConnectionListResult model = - new DataConnectionListResult() - .withValue(Arrays.asList(new DataConnectionInner().withLocation("smffjkutycyarnr"))); - model = BinaryData.fromObject(model).toObject(DataConnectionListResult.class); - Assertions.assertEquals("smffjkutycyarnr", model.value().get(0).location()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataConnectionValidationInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataConnectionValidationInnerTests.java deleted file mode 100644 index 7f71200618bf..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataConnectionValidationInnerTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.DataConnectionInner; -import com.azure.resourcemanager.synapse.fluent.models.DataConnectionValidationInner; -import org.junit.jupiter.api.Assertions; - -public final class DataConnectionValidationInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataConnectionValidationInner model = - BinaryData - .fromString( - "{\"dataConnectionName\":\"mbltoo\",\"properties\":{\"kind\":\"DataConnection\",\"location\":\"fqlwxldykalsy\",\"id\":\"olnjpnnbmjksibj\",\"name\":\"sjjx\",\"type\":\"ahmrnadzyqegxyi\"}}") - .toObject(DataConnectionValidationInner.class); - Assertions.assertEquals("mbltoo", model.dataConnectionName()); - Assertions.assertEquals("fqlwxldykalsy", model.properties().location()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataConnectionValidationInner model = - new DataConnectionValidationInner() - .withDataConnectionName("mbltoo") - .withProperties(new DataConnectionInner().withLocation("fqlwxldykalsy")); - model = BinaryData.fromObject(model).toObject(DataConnectionValidationInner.class); - Assertions.assertEquals("mbltoo", model.dataConnectionName()); - Assertions.assertEquals("fqlwxldykalsy", model.properties().location()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataConnectionValidationListResultInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataConnectionValidationListResultInnerTests.java deleted file mode 100644 index b0bb81155550..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataConnectionValidationListResultInnerTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.DataConnectionValidationListResultInner; -import com.azure.resourcemanager.synapse.models.DataConnectionValidationResult; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class DataConnectionValidationListResultInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataConnectionValidationListResultInner model = - BinaryData - .fromString( - "{\"value\":[{\"errorMessage\":\"mrrqmbzmqkratb\"},{\"errorMessage\":\"wbjsidbirkf\"},{\"errorMessage\":\"sokdgoge\"},{\"errorMessage\":\"jymrhbg\"}]}") - .toObject(DataConnectionValidationListResultInner.class); - Assertions.assertEquals("mrrqmbzmqkratb", model.value().get(0).errorMessage()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataConnectionValidationListResultInner model = - new DataConnectionValidationListResultInner() - .withValue( - Arrays - .asList( - new DataConnectionValidationResult().withErrorMessage("mrrqmbzmqkratb"), - new DataConnectionValidationResult().withErrorMessage("wbjsidbirkf"), - new DataConnectionValidationResult().withErrorMessage("sokdgoge"), - new DataConnectionValidationResult().withErrorMessage("jymrhbg"))); - model = BinaryData.fromObject(model).toObject(DataConnectionValidationListResultInner.class); - Assertions.assertEquals("mrrqmbzmqkratb", model.value().get(0).errorMessage()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataConnectionValidationResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataConnectionValidationResultTests.java deleted file mode 100644 index c1f3f77789f8..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataConnectionValidationResultTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.DataConnectionValidationResult; -import org.junit.jupiter.api.Assertions; - -public final class DataConnectionValidationResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataConnectionValidationResult model = - BinaryData.fromString("{\"errorMessage\":\"ozkyewnfnzh\"}").toObject(DataConnectionValidationResult.class); - Assertions.assertEquals("ozkyewnfnzh", model.errorMessage()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataConnectionValidationResult model = new DataConnectionValidationResult().withErrorMessage("ozkyewnfnzh"); - model = BinaryData.fromObject(model).toObject(DataConnectionValidationResult.class); - Assertions.assertEquals("ozkyewnfnzh", model.errorMessage()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataLakeStorageAccountDetailsTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataLakeStorageAccountDetailsTests.java deleted file mode 100644 index 2129b23a1bb8..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataLakeStorageAccountDetailsTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.DataLakeStorageAccountDetails; -import org.junit.jupiter.api.Assertions; - -public final class DataLakeStorageAccountDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataLakeStorageAccountDetails model = - BinaryData - .fromString( - "{\"accountUrl\":\"twzhhzjhfjmhv\",\"filesystem\":\"uvgp\",\"resourceId\":\"neqsxvmh\",\"createManagedPrivateEndpoint\":true}") - .toObject(DataLakeStorageAccountDetails.class); - Assertions.assertEquals("twzhhzjhfjmhv", model.accountUrl()); - Assertions.assertEquals("uvgp", model.filesystem()); - Assertions.assertEquals("neqsxvmh", model.resourceId()); - Assertions.assertEquals(true, model.createManagedPrivateEndpoint()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataLakeStorageAccountDetails model = - new DataLakeStorageAccountDetails() - .withAccountUrl("twzhhzjhfjmhv") - .withFilesystem("uvgp") - .withResourceId("neqsxvmh") - .withCreateManagedPrivateEndpoint(true); - model = BinaryData.fromObject(model).toObject(DataLakeStorageAccountDetails.class); - Assertions.assertEquals("twzhhzjhfjmhv", model.accountUrl()); - Assertions.assertEquals("uvgp", model.filesystem()); - Assertions.assertEquals("neqsxvmh", model.resourceId()); - Assertions.assertEquals(true, model.createManagedPrivateEndpoint()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingPoliciesCreateOrUpdateWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingPoliciesCreateOrUpdateWithResponseMockTests.java deleted file mode 100644 index e581196528d2..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingPoliciesCreateOrUpdateWithResponseMockTests.java +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.DataMaskingPolicy; -import com.azure.resourcemanager.synapse.models.DataMaskingState; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class DataMaskingPoliciesCreateOrUpdateWithResponseMockTests { - @Test - public void testCreateOrUpdateWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"dataMaskingState\":\"Disabled\",\"exemptPrincipals\":\"awmpjprd\",\"applicationPrincipals\":\"rpcfpcfjfwzl\",\"maskingLevel\":\"awkgy\"},\"location\":\"eyam\",\"kind\":\"idmdiawpzxkzrntm\",\"managedBy\":\"tdhuo\",\"id\":\"gwqpsqazih\",\"name\":\"odvqgcnbhcbmj\",\"type\":\"ztibniyntsxjmfm\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - DataMaskingPolicy response = - manager - .dataMaskingPolicies() - .define() - .withExistingSqlPool("oti", "fbbcngkegxcypxbb", "etwilyrzoxpd") - .withDataMaskingState(DataMaskingState.DISABLED) - .withExemptPrincipals("r") - .create(); - - Assertions.assertEquals(DataMaskingState.DISABLED, response.dataMaskingState()); - Assertions.assertEquals("awmpjprd", response.exemptPrincipals()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingPoliciesGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingPoliciesGetWithResponseMockTests.java deleted file mode 100644 index bf7d0e63f293..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingPoliciesGetWithResponseMockTests.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.DataMaskingPolicy; -import com.azure.resourcemanager.synapse.models.DataMaskingState; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class DataMaskingPoliciesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"dataMaskingState\":\"Disabled\",\"exemptPrincipals\":\"h\",\"applicationPrincipals\":\"tqstqkqsygxiyne\",\"maskingLevel\":\"vagzkheuba\"},\"location\":\"xunpqcckqiawzlz\",\"kind\":\"aslgacizuxlrarwp\",\"managedBy\":\"saudoejtighsx\",\"id\":\"pytn\",\"name\":\"qbalahovuuwxhme\",\"type\":\"jnhj\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - DataMaskingPolicy response = - manager - .dataMaskingPolicies() - .getWithResponse("xbrdvcehqwh", "txnmxgnmguz", "uwvorbalkjn", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(DataMaskingState.DISABLED, response.dataMaskingState()); - Assertions.assertEquals("h", response.exemptPrincipals()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingPolicyInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingPolicyInnerTests.java deleted file mode 100644 index 62f651208698..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingPolicyInnerTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.DataMaskingPolicyInner; -import com.azure.resourcemanager.synapse.models.DataMaskingState; -import org.junit.jupiter.api.Assertions; - -public final class DataMaskingPolicyInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataMaskingPolicyInner model = - BinaryData - .fromString( - "{\"properties\":{\"dataMaskingState\":\"Enabled\",\"exemptPrincipals\":\"jviylwdshfs\",\"applicationPrincipals\":\"rbgyefry\",\"maskingLevel\":\"gaojf\"},\"location\":\"nc\",\"kind\":\"mrfhirctymox\",\"managedBy\":\"tpipiwyczuhx\",\"id\":\"cpqjlihhyu\",\"name\":\"pskasdvlmfwdg\",\"type\":\"x\"}") - .toObject(DataMaskingPolicyInner.class); - Assertions.assertEquals(DataMaskingState.ENABLED, model.dataMaskingState()); - Assertions.assertEquals("jviylwdshfs", model.exemptPrincipals()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataMaskingPolicyInner model = - new DataMaskingPolicyInner() - .withDataMaskingState(DataMaskingState.ENABLED) - .withExemptPrincipals("jviylwdshfs"); - model = BinaryData.fromObject(model).toObject(DataMaskingPolicyInner.class); - Assertions.assertEquals(DataMaskingState.ENABLED, model.dataMaskingState()); - Assertions.assertEquals("jviylwdshfs", model.exemptPrincipals()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingPolicyPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingPolicyPropertiesTests.java deleted file mode 100644 index 60783e843e48..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingPolicyPropertiesTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.DataMaskingPolicyProperties; -import com.azure.resourcemanager.synapse.models.DataMaskingState; -import org.junit.jupiter.api.Assertions; - -public final class DataMaskingPolicyPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataMaskingPolicyProperties model = - BinaryData - .fromString( - "{\"dataMaskingState\":\"Disabled\",\"exemptPrincipals\":\"cvpa\",\"applicationPrincipals\":\"sreuzvxurisjnh\",\"maskingLevel\":\"txifqj\"}") - .toObject(DataMaskingPolicyProperties.class); - Assertions.assertEquals(DataMaskingState.DISABLED, model.dataMaskingState()); - Assertions.assertEquals("cvpa", model.exemptPrincipals()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataMaskingPolicyProperties model = - new DataMaskingPolicyProperties() - .withDataMaskingState(DataMaskingState.DISABLED) - .withExemptPrincipals("cvpa"); - model = BinaryData.fromObject(model).toObject(DataMaskingPolicyProperties.class); - Assertions.assertEquals(DataMaskingState.DISABLED, model.dataMaskingState()); - Assertions.assertEquals("cvpa", model.exemptPrincipals()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingRuleInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingRuleInnerTests.java deleted file mode 100644 index 9cfe5400689a..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingRuleInnerTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.DataMaskingRuleInner; -import com.azure.resourcemanager.synapse.models.DataMaskingFunction; -import com.azure.resourcemanager.synapse.models.DataMaskingRuleState; -import org.junit.jupiter.api.Assertions; - -public final class DataMaskingRuleInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataMaskingRuleInner model = - BinaryData - .fromString( - "{\"properties\":{\"id\":\"mrhublwpc\",\"aliasName\":\"utr\",\"ruleState\":\"Disabled\",\"schemaName\":\"pauutpw\",\"tableName\":\"qhih\",\"columnName\":\"jqgwzp\",\"maskingFunction\":\"CCN\",\"numberFrom\":\"n\",\"numberTo\":\"ypsxjvfoim\",\"prefixSize\":\"slirciz\",\"suffixSize\":\"vydfceacvlhvygdy\",\"replacementString\":\"umrtwnawjsl\"},\"location\":\"wkojgcyztsfmzn\",\"kind\":\"eqphchqnrnr\",\"id\":\"x\",\"name\":\"huwrykqgaifm\",\"type\":\"iklbydvkhb\"}") - .toObject(DataMaskingRuleInner.class); - Assertions.assertEquals("utr", model.aliasName()); - Assertions.assertEquals(DataMaskingRuleState.DISABLED, model.ruleState()); - Assertions.assertEquals("pauutpw", model.schemaName()); - Assertions.assertEquals("qhih", model.tableName()); - Assertions.assertEquals("jqgwzp", model.columnName()); - Assertions.assertEquals(DataMaskingFunction.CCN, model.maskingFunction()); - Assertions.assertEquals("n", model.numberFrom()); - Assertions.assertEquals("ypsxjvfoim", model.numberTo()); - Assertions.assertEquals("slirciz", model.prefixSize()); - Assertions.assertEquals("vydfceacvlhvygdy", model.suffixSize()); - Assertions.assertEquals("umrtwnawjsl", model.replacementString()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataMaskingRuleInner model = - new DataMaskingRuleInner() - .withAliasName("utr") - .withRuleState(DataMaskingRuleState.DISABLED) - .withSchemaName("pauutpw") - .withTableName("qhih") - .withColumnName("jqgwzp") - .withMaskingFunction(DataMaskingFunction.CCN) - .withNumberFrom("n") - .withNumberTo("ypsxjvfoim") - .withPrefixSize("slirciz") - .withSuffixSize("vydfceacvlhvygdy") - .withReplacementString("umrtwnawjsl"); - model = BinaryData.fromObject(model).toObject(DataMaskingRuleInner.class); - Assertions.assertEquals("utr", model.aliasName()); - Assertions.assertEquals(DataMaskingRuleState.DISABLED, model.ruleState()); - Assertions.assertEquals("pauutpw", model.schemaName()); - Assertions.assertEquals("qhih", model.tableName()); - Assertions.assertEquals("jqgwzp", model.columnName()); - Assertions.assertEquals(DataMaskingFunction.CCN, model.maskingFunction()); - Assertions.assertEquals("n", model.numberFrom()); - Assertions.assertEquals("ypsxjvfoim", model.numberTo()); - Assertions.assertEquals("slirciz", model.prefixSize()); - Assertions.assertEquals("vydfceacvlhvygdy", model.suffixSize()); - Assertions.assertEquals("umrtwnawjsl", model.replacementString()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingRuleListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingRuleListResultTests.java deleted file mode 100644 index 0921e9f318b6..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingRuleListResultTests.java +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.DataMaskingRuleInner; -import com.azure.resourcemanager.synapse.models.DataMaskingFunction; -import com.azure.resourcemanager.synapse.models.DataMaskingRuleListResult; -import com.azure.resourcemanager.synapse.models.DataMaskingRuleState; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class DataMaskingRuleListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataMaskingRuleListResult model = - BinaryData - .fromString( - "{\"value\":[{\"properties\":{\"id\":\"hvbbxuripltfnh\",\"aliasName\":\"axkgx\",\"ruleState\":\"Disabled\",\"schemaName\":\"ckpyklyhplu\",\"tableName\":\"dpvruud\",\"columnName\":\"gzibthostgktstv\",\"maskingFunction\":\"Number\",\"numberFrom\":\"clzedqbcvh\",\"numberTo\":\"h\",\"prefixSize\":\"odqkdlwwqfb\",\"suffixSize\":\"lkxt\",\"replacementString\":\"jfsmlmbtxhwgfwsr\"},\"location\":\"wcoezbrhub\",\"kind\":\"hud\",\"id\":\"goo\",\"name\":\"kkqfqjbvle\",\"type\":\"rfmluiqtq\"},{\"properties\":{\"id\":\"vyvnqqyb\",\"aliasName\":\"yeua\",\"ruleState\":\"Disabled\",\"schemaName\":\"qabqgzslesjcb\",\"tableName\":\"ernntiewdjcvbquw\",\"columnName\":\"behwagohb\",\"maskingFunction\":\"SSN\",\"numberFrom\":\"kmr\",\"numberTo\":\"mvvhmxtdrjfuta\",\"prefixSize\":\"ebjvewzcjzn\",\"suffixSize\":\"cpmguaadraufact\",\"replacementString\":\"hzovaj\"},\"location\":\"iuxxpshneekulfg\",\"kind\":\"qubkw\",\"id\":\"lenrd\",\"name\":\"utujba\",\"type\":\"pjuohminyfl\"},{\"properties\":{\"id\":\"wmd\",\"aliasName\":\"wpklvxw\",\"ruleState\":\"Disabled\",\"schemaName\":\"dxpgpqchiszepnnb\",\"tableName\":\"crxgibb\",\"columnName\":\"axconfozauo\",\"maskingFunction\":\"Text\",\"numberFrom\":\"kokwbqplhlvnu\",\"numberTo\":\"pzlrphw\",\"prefixSize\":\"oldweyuqdu\",\"suffixSize\":\"mnnrwr\",\"replacementString\":\"ork\"},\"location\":\"lywjhh\",\"kind\":\"nhxmsi\",\"id\":\"fomiloxgg\",\"name\":\"ufiqndieuzaof\",\"type\":\"chvcyyysfgdo\"}]}") - .toObject(DataMaskingRuleListResult.class); - Assertions.assertEquals("axkgx", model.value().get(0).aliasName()); - Assertions.assertEquals(DataMaskingRuleState.DISABLED, model.value().get(0).ruleState()); - Assertions.assertEquals("ckpyklyhplu", model.value().get(0).schemaName()); - Assertions.assertEquals("dpvruud", model.value().get(0).tableName()); - Assertions.assertEquals("gzibthostgktstv", model.value().get(0).columnName()); - Assertions.assertEquals(DataMaskingFunction.NUMBER, model.value().get(0).maskingFunction()); - Assertions.assertEquals("clzedqbcvh", model.value().get(0).numberFrom()); - Assertions.assertEquals("h", model.value().get(0).numberTo()); - Assertions.assertEquals("odqkdlwwqfb", model.value().get(0).prefixSize()); - Assertions.assertEquals("lkxt", model.value().get(0).suffixSize()); - Assertions.assertEquals("jfsmlmbtxhwgfwsr", model.value().get(0).replacementString()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataMaskingRuleListResult model = - new DataMaskingRuleListResult() - .withValue( - Arrays - .asList( - new DataMaskingRuleInner() - .withAliasName("axkgx") - .withRuleState(DataMaskingRuleState.DISABLED) - .withSchemaName("ckpyklyhplu") - .withTableName("dpvruud") - .withColumnName("gzibthostgktstv") - .withMaskingFunction(DataMaskingFunction.NUMBER) - .withNumberFrom("clzedqbcvh") - .withNumberTo("h") - .withPrefixSize("odqkdlwwqfb") - .withSuffixSize("lkxt") - .withReplacementString("jfsmlmbtxhwgfwsr"), - new DataMaskingRuleInner() - .withAliasName("yeua") - .withRuleState(DataMaskingRuleState.DISABLED) - .withSchemaName("qabqgzslesjcb") - .withTableName("ernntiewdjcvbquw") - .withColumnName("behwagohb") - .withMaskingFunction(DataMaskingFunction.SSN) - .withNumberFrom("kmr") - .withNumberTo("mvvhmxtdrjfuta") - .withPrefixSize("ebjvewzcjzn") - .withSuffixSize("cpmguaadraufact") - .withReplacementString("hzovaj"), - new DataMaskingRuleInner() - .withAliasName("wpklvxw") - .withRuleState(DataMaskingRuleState.DISABLED) - .withSchemaName("dxpgpqchiszepnnb") - .withTableName("crxgibb") - .withColumnName("axconfozauo") - .withMaskingFunction(DataMaskingFunction.TEXT) - .withNumberFrom("kokwbqplhlvnu") - .withNumberTo("pzlrphw") - .withPrefixSize("oldweyuqdu") - .withSuffixSize("mnnrwr") - .withReplacementString("ork"))); - model = BinaryData.fromObject(model).toObject(DataMaskingRuleListResult.class); - Assertions.assertEquals("axkgx", model.value().get(0).aliasName()); - Assertions.assertEquals(DataMaskingRuleState.DISABLED, model.value().get(0).ruleState()); - Assertions.assertEquals("ckpyklyhplu", model.value().get(0).schemaName()); - Assertions.assertEquals("dpvruud", model.value().get(0).tableName()); - Assertions.assertEquals("gzibthostgktstv", model.value().get(0).columnName()); - Assertions.assertEquals(DataMaskingFunction.NUMBER, model.value().get(0).maskingFunction()); - Assertions.assertEquals("clzedqbcvh", model.value().get(0).numberFrom()); - Assertions.assertEquals("h", model.value().get(0).numberTo()); - Assertions.assertEquals("odqkdlwwqfb", model.value().get(0).prefixSize()); - Assertions.assertEquals("lkxt", model.value().get(0).suffixSize()); - Assertions.assertEquals("jfsmlmbtxhwgfwsr", model.value().get(0).replacementString()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulePropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulePropertiesTests.java deleted file mode 100644 index e69270a7ba81..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulePropertiesTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.DataMaskingRuleProperties; -import com.azure.resourcemanager.synapse.models.DataMaskingFunction; -import com.azure.resourcemanager.synapse.models.DataMaskingRuleState; -import org.junit.jupiter.api.Assertions; - -public final class DataMaskingRulePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataMaskingRuleProperties model = - BinaryData - .fromString( - "{\"id\":\"dznx\",\"aliasName\":\"dsrhnjiv\",\"ruleState\":\"Disabled\",\"schemaName\":\"tnovqfzgemjdftul\",\"tableName\":\"ltducea\",\"columnName\":\"tmczuomejwcwwqi\",\"maskingFunction\":\"SSN\",\"numberFrom\":\"ssxmojms\",\"numberTo\":\"kjprvk\",\"prefixSize\":\"fz\",\"suffixSize\":\"jyxgtczh\",\"replacementString\":\"dbsdshm\"}") - .toObject(DataMaskingRuleProperties.class); - Assertions.assertEquals("dsrhnjiv", model.aliasName()); - Assertions.assertEquals(DataMaskingRuleState.DISABLED, model.ruleState()); - Assertions.assertEquals("tnovqfzgemjdftul", model.schemaName()); - Assertions.assertEquals("ltducea", model.tableName()); - Assertions.assertEquals("tmczuomejwcwwqi", model.columnName()); - Assertions.assertEquals(DataMaskingFunction.SSN, model.maskingFunction()); - Assertions.assertEquals("ssxmojms", model.numberFrom()); - Assertions.assertEquals("kjprvk", model.numberTo()); - Assertions.assertEquals("fz", model.prefixSize()); - Assertions.assertEquals("jyxgtczh", model.suffixSize()); - Assertions.assertEquals("dbsdshm", model.replacementString()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataMaskingRuleProperties model = - new DataMaskingRuleProperties() - .withAliasName("dsrhnjiv") - .withRuleState(DataMaskingRuleState.DISABLED) - .withSchemaName("tnovqfzgemjdftul") - .withTableName("ltducea") - .withColumnName("tmczuomejwcwwqi") - .withMaskingFunction(DataMaskingFunction.SSN) - .withNumberFrom("ssxmojms") - .withNumberTo("kjprvk") - .withPrefixSize("fz") - .withSuffixSize("jyxgtczh") - .withReplacementString("dbsdshm"); - model = BinaryData.fromObject(model).toObject(DataMaskingRuleProperties.class); - Assertions.assertEquals("dsrhnjiv", model.aliasName()); - Assertions.assertEquals(DataMaskingRuleState.DISABLED, model.ruleState()); - Assertions.assertEquals("tnovqfzgemjdftul", model.schemaName()); - Assertions.assertEquals("ltducea", model.tableName()); - Assertions.assertEquals("tmczuomejwcwwqi", model.columnName()); - Assertions.assertEquals(DataMaskingFunction.SSN, model.maskingFunction()); - Assertions.assertEquals("ssxmojms", model.numberFrom()); - Assertions.assertEquals("kjprvk", model.numberTo()); - Assertions.assertEquals("fz", model.prefixSize()); - Assertions.assertEquals("jyxgtczh", model.suffixSize()); - Assertions.assertEquals("dbsdshm", model.replacementString()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulesCreateOrUpdateWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulesCreateOrUpdateWithResponseMockTests.java deleted file mode 100644 index 17a8abb521da..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulesCreateOrUpdateWithResponseMockTests.java +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.DataMaskingFunction; -import com.azure.resourcemanager.synapse.models.DataMaskingRule; -import com.azure.resourcemanager.synapse.models.DataMaskingRuleState; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class DataMaskingRulesCreateOrUpdateWithResponseMockTests { - @Test - public void testCreateOrUpdateWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"id\":\"wly\",\"aliasName\":\"chpqvctsfaeuhww\",\"ruleState\":\"Enabled\",\"schemaName\":\"stvzuzhasupml\",\"tableName\":\"pdpg\",\"columnName\":\"vzqazvbkarkptg\",\"maskingFunction\":\"SSN\",\"numberFrom\":\"ruatsyiysjqhen\",\"numberTo\":\"beqngubabyjde\",\"prefixSize\":\"sc\",\"suffixSize\":\"ydzjemexm\",\"replacementString\":\"kvmuwrxlniwmcp\"},\"location\":\"rdlhvdvmiphbe\",\"kind\":\"qjzmhkdcl\",\"id\":\"croczf\",\"name\":\"unerke\",\"type\":\"uxzshxz\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - DataMaskingRule response = - manager - .dataMaskingRules() - .define("aczmuh") - .withExistingSqlPool("abtvkbi", "znhtf", "ficudyhiz") - .withAliasName("mmazdnckid") - .withRuleState(DataMaskingRuleState.DISABLED) - .withSchemaName("glhzqp") - .withTableName("zbawkikcdgfh") - .withColumnName("ssdpjeyoqxded") - .withMaskingFunction(DataMaskingFunction.EMAIL) - .withNumberFrom("iwhagxsur") - .withNumberTo("qrshzzbgullcxiq") - .withPrefixSize("jkoxdupna") - .withSuffixSize("lrouigdmfiv") - .withReplacementString("terdqqi") - .create(); - - Assertions.assertEquals("chpqvctsfaeuhww", response.aliasName()); - Assertions.assertEquals(DataMaskingRuleState.ENABLED, response.ruleState()); - Assertions.assertEquals("stvzuzhasupml", response.schemaName()); - Assertions.assertEquals("pdpg", response.tableName()); - Assertions.assertEquals("vzqazvbkarkptg", response.columnName()); - Assertions.assertEquals(DataMaskingFunction.SSN, response.maskingFunction()); - Assertions.assertEquals("ruatsyiysjqhen", response.numberFrom()); - Assertions.assertEquals("beqngubabyjde", response.numberTo()); - Assertions.assertEquals("sc", response.prefixSize()); - Assertions.assertEquals("ydzjemexm", response.suffixSize()); - Assertions.assertEquals("kvmuwrxlniwmcp", response.replacementString()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulesGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulesGetWithResponseMockTests.java deleted file mode 100644 index 8c7ef766d973..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulesGetWithResponseMockTests.java +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.DataMaskingFunction; -import com.azure.resourcemanager.synapse.models.DataMaskingRule; -import com.azure.resourcemanager.synapse.models.DataMaskingRuleState; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class DataMaskingRulesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"id\":\"fdz\",\"aliasName\":\"ouzfwofwakuk\",\"ruleState\":\"Disabled\",\"schemaName\":\"tzxsoednlwglihe\",\"tableName\":\"o\",\"columnName\":\"ucmqgisnione\",\"maskingFunction\":\"CCN\",\"numberFrom\":\"dr\",\"numberTo\":\"uenxkgtlzlmt\",\"prefixSize\":\"xcznnhzkb\",\"suffixSize\":\"mxlxmwtygeq\",\"replacementString\":\"sito\"},\"location\":\"ahfsgb\",\"kind\":\"lreesrfwsszvlcwl\",\"id\":\"solntfxxcrqmipf\",\"name\":\"wfo\",\"type\":\"gizmshxxbaizabu\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - DataMaskingRule response = - manager - .dataMaskingRules() - .getWithResponse("ftvhkmoogj", "hskb", "gmjgrul", "fogxhcxnw", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("ouzfwofwakuk", response.aliasName()); - Assertions.assertEquals(DataMaskingRuleState.DISABLED, response.ruleState()); - Assertions.assertEquals("tzxsoednlwglihe", response.schemaName()); - Assertions.assertEquals("o", response.tableName()); - Assertions.assertEquals("ucmqgisnione", response.columnName()); - Assertions.assertEquals(DataMaskingFunction.CCN, response.maskingFunction()); - Assertions.assertEquals("dr", response.numberFrom()); - Assertions.assertEquals("uenxkgtlzlmt", response.numberTo()); - Assertions.assertEquals("xcznnhzkb", response.prefixSize()); - Assertions.assertEquals("mxlxmwtygeq", response.suffixSize()); - Assertions.assertEquals("sito", response.replacementString()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulesListBySqlPoolMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulesListBySqlPoolMockTests.java deleted file mode 100644 index f1e24963f89b..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataMaskingRulesListBySqlPoolMockTests.java +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.DataMaskingFunction; -import com.azure.resourcemanager.synapse.models.DataMaskingRule; -import com.azure.resourcemanager.synapse.models.DataMaskingRuleState; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class DataMaskingRulesListBySqlPoolMockTests { - @Test - public void testListBySqlPool() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"properties\":{\"id\":\"aydhf\",\"aliasName\":\"ocxm\",\"ruleState\":\"Disabled\",\"schemaName\":\"hksnyzmspamwbw\",\"tableName\":\"bnl\",\"columnName\":\"lcefiqdktw\",\"maskingFunction\":\"Number\",\"numberFrom\":\"ih\",\"numberTo\":\"fliwoynguuzhwvl\",\"prefixSize\":\"p\",\"suffixSize\":\"hjhausy\",\"replacementString\":\"ekymffztsilscvqs\"},\"location\":\"iihfymkoui\",\"kind\":\"eseuugci\",\"id\":\"zhogsmgbvmtdw\",\"name\":\"qbe\",\"type\":\"jnfveg\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager.dataMaskingRules().listBySqlPool("nvgskjtoxjd", "jsjznv", "xqqm", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("ocxm", response.iterator().next().aliasName()); - Assertions.assertEquals(DataMaskingRuleState.DISABLED, response.iterator().next().ruleState()); - Assertions.assertEquals("hksnyzmspamwbw", response.iterator().next().schemaName()); - Assertions.assertEquals("bnl", response.iterator().next().tableName()); - Assertions.assertEquals("lcefiqdktw", response.iterator().next().columnName()); - Assertions.assertEquals(DataMaskingFunction.NUMBER, response.iterator().next().maskingFunction()); - Assertions.assertEquals("ih", response.iterator().next().numberFrom()); - Assertions.assertEquals("fliwoynguuzhwvl", response.iterator().next().numberTo()); - Assertions.assertEquals("p", response.iterator().next().prefixSize()); - Assertions.assertEquals("hjhausy", response.iterator().next().suffixSize()); - Assertions.assertEquals("ekymffztsilscvqs", response.iterator().next().replacementString()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataWarehouseUserActivitiesInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataWarehouseUserActivitiesInnerTests.java deleted file mode 100644 index b8c3dc8d5c83..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataWarehouseUserActivitiesInnerTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.DataWarehouseUserActivitiesInner; - -public final class DataWarehouseUserActivitiesInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataWarehouseUserActivitiesInner model = - BinaryData - .fromString( - "{\"properties\":{\"activeQueriesCount\":297001975},\"id\":\"nalaulppg\",\"name\":\"dtpnapnyiropuhp\",\"type\":\"gvpgy\"}") - .toObject(DataWarehouseUserActivitiesInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataWarehouseUserActivitiesInner model = new DataWarehouseUserActivitiesInner(); - model = BinaryData.fromObject(model).toObject(DataWarehouseUserActivitiesInner.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataWarehouseUserActivitiesPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataWarehouseUserActivitiesPropertiesTests.java deleted file mode 100644 index 26a94001f2c4..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DataWarehouseUserActivitiesPropertiesTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.DataWarehouseUserActivitiesProperties; - -public final class DataWarehouseUserActivitiesPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DataWarehouseUserActivitiesProperties model = - BinaryData - .fromString("{\"activeQueriesCount\":2050375248}") - .toObject(DataWarehouseUserActivitiesProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DataWarehouseUserActivitiesProperties model = new DataWarehouseUserActivitiesProperties(); - model = BinaryData.fromObject(model).toObject(DataWarehouseUserActivitiesProperties.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabaseCheckNameRequestTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabaseCheckNameRequestTests.java deleted file mode 100644 index 23e355de6ee3..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabaseCheckNameRequestTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.DatabaseCheckNameRequest; -import com.azure.resourcemanager.synapse.models.Type; -import org.junit.jupiter.api.Assertions; - -public final class DatabaseCheckNameRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatabaseCheckNameRequest model = - BinaryData - .fromString("{\"name\":\"xiidloped\",\"type\":\"Microsoft.Synapse/workspaces/kustoPools/databases\"}") - .toObject(DatabaseCheckNameRequest.class); - Assertions.assertEquals("xiidloped", model.name()); - Assertions.assertEquals(Type.MICROSOFT_SYNAPSE_WORKSPACES_KUSTO_POOLS_DATABASES, model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatabaseCheckNameRequest model = - new DatabaseCheckNameRequest() - .withName("xiidloped") - .withType(Type.MICROSOFT_SYNAPSE_WORKSPACES_KUSTO_POOLS_DATABASES); - model = BinaryData.fromObject(model).toObject(DatabaseCheckNameRequest.class); - Assertions.assertEquals("xiidloped", model.name()); - Assertions.assertEquals(Type.MICROSOFT_SYNAPSE_WORKSPACES_KUSTO_POOLS_DATABASES, model.type()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabaseInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabaseInnerTests.java deleted file mode 100644 index 4448e7a05863..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabaseInnerTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.DatabaseInner; -import org.junit.jupiter.api.Assertions; - -public final class DatabaseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatabaseInner model = - BinaryData - .fromString( - "{\"kind\":\"Database\",\"location\":\"wyskbruffgll\",\"id\":\"kutvlxhrpqhv\",\"name\":\"blcouqehbhbcdszi\",\"type\":\"yr\"}") - .toObject(DatabaseInner.class); - Assertions.assertEquals("wyskbruffgll", model.location()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatabaseInner model = new DatabaseInner().withLocation("wyskbruffgll"); - model = BinaryData.fromObject(model).toObject(DatabaseInner.class); - Assertions.assertEquals("wyskbruffgll", model.location()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabaseListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabaseListResultTests.java deleted file mode 100644 index 63dbc7a761ee..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabaseListResultTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.DatabaseInner; -import com.azure.resourcemanager.synapse.models.DatabaseListResult; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class DatabaseListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatabaseListResult model = - BinaryData - .fromString( - "{\"value\":[{\"kind\":\"Database\",\"location\":\"qb\",\"id\":\"h\",\"name\":\"efgwbmqjc\",\"type\":\"ntasfaymxbu\"},{\"kind\":\"Database\",\"location\":\"zealbmqkyo\",\"id\":\"yvfkmbts\",\"name\":\"ahxsgxjcmm\",\"type\":\"rrscubiwsdrnp\"},{\"kind\":\"Database\",\"location\":\"wodiffjxc\",\"id\":\"mmuabwi\",\"name\":\"vjogjonmcyefo\",\"type\":\"zbamwine\"},{\"kind\":\"Database\",\"location\":\"vfkakpold\",\"id\":\"evboclzhzjknyuxg\",\"name\":\"ttxpnrupza\",\"type\":\"mrdixtreki\"}]}") - .toObject(DatabaseListResult.class); - Assertions.assertEquals("qb", model.value().get(0).location()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatabaseListResult model = - new DatabaseListResult() - .withValue( - Arrays - .asList( - new DatabaseInner().withLocation("qb"), - new DatabaseInner().withLocation("zealbmqkyo"), - new DatabaseInner().withLocation("wodiffjxc"), - new DatabaseInner().withLocation("vfkakpold"))); - model = BinaryData.fromObject(model).toObject(DatabaseListResult.class); - Assertions.assertEquals("qb", model.value().get(0).location()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabasePrincipalAssignmentCheckNameRequestTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabasePrincipalAssignmentCheckNameRequestTests.java deleted file mode 100644 index 1de3ff64d72c..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabasePrincipalAssignmentCheckNameRequestTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.DatabasePrincipalAssignmentCheckNameRequest; -import org.junit.jupiter.api.Assertions; - -public final class DatabasePrincipalAssignmentCheckNameRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatabasePrincipalAssignmentCheckNameRequest model = - BinaryData - .fromString("{\"name\":\"vodrrslblxydkxr\"}") - .toObject(DatabasePrincipalAssignmentCheckNameRequest.class); - Assertions.assertEquals("vodrrslblxydkxr", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatabasePrincipalAssignmentCheckNameRequest model = - new DatabasePrincipalAssignmentCheckNameRequest().withName("vodrrslblxydkxr"); - model = BinaryData.fromObject(model).toObject(DatabasePrincipalAssignmentCheckNameRequest.class); - Assertions.assertEquals("vodrrslblxydkxr", model.name()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabasePrincipalAssignmentInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabasePrincipalAssignmentInnerTests.java deleted file mode 100644 index e3618e22ed4d..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabasePrincipalAssignmentInnerTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.DatabasePrincipalAssignmentInner; -import com.azure.resourcemanager.synapse.models.DatabasePrincipalRole; -import com.azure.resourcemanager.synapse.models.PrincipalType; -import org.junit.jupiter.api.Assertions; - -public final class DatabasePrincipalAssignmentInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatabasePrincipalAssignmentInner model = - BinaryData - .fromString( - "{\"properties\":{\"principalId\":\"faoytehqpuv\",\"role\":\"Viewer\",\"tenantId\":\"qm\",\"principalType\":\"App\",\"tenantName\":\"ckygroejnndljdju\",\"principalName\":\"br\",\"provisioningState\":\"Moving\",\"aadObjectId\":\"n\"},\"id\":\"eysfaqegplw\",\"name\":\"ysh\",\"type\":\"ddkvbxgkqu\"}") - .toObject(DatabasePrincipalAssignmentInner.class); - Assertions.assertEquals("faoytehqpuv", model.principalId()); - Assertions.assertEquals(DatabasePrincipalRole.VIEWER, model.role()); - Assertions.assertEquals("qm", model.tenantId()); - Assertions.assertEquals(PrincipalType.APP, model.principalType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatabasePrincipalAssignmentInner model = - new DatabasePrincipalAssignmentInner() - .withPrincipalId("faoytehqpuv") - .withRole(DatabasePrincipalRole.VIEWER) - .withTenantId("qm") - .withPrincipalType(PrincipalType.APP); - model = BinaryData.fromObject(model).toObject(DatabasePrincipalAssignmentInner.class); - Assertions.assertEquals("faoytehqpuv", model.principalId()); - Assertions.assertEquals(DatabasePrincipalRole.VIEWER, model.role()); - Assertions.assertEquals("qm", model.tenantId()); - Assertions.assertEquals(PrincipalType.APP, model.principalType()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabasePrincipalAssignmentListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabasePrincipalAssignmentListResultTests.java deleted file mode 100644 index aff7347f9c16..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabasePrincipalAssignmentListResultTests.java +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.DatabasePrincipalAssignmentInner; -import com.azure.resourcemanager.synapse.models.DatabasePrincipalAssignmentListResult; -import com.azure.resourcemanager.synapse.models.DatabasePrincipalRole; -import com.azure.resourcemanager.synapse.models.PrincipalType; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class DatabasePrincipalAssignmentListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatabasePrincipalAssignmentListResult model = - BinaryData - .fromString( - "{\"value\":[{\"properties\":{\"principalId\":\"xiwkgfbql\",\"role\":\"Ingestor\",\"tenantId\":\"khychocokulehur\",\"principalType\":\"Group\",\"tenantName\":\"qffawey\",\"principalName\":\"kphyjdxrav\",\"provisioningState\":\"Running\",\"aadObjectId\":\"brxmrgch\"},\"id\":\"pxkiyf\",\"name\":\"j\",\"type\":\"bajbuscgduusi\"},{\"properties\":{\"principalId\":\"cblevpmc\",\"role\":\"User\",\"tenantId\":\"yxkyxlz\",\"principalType\":\"Group\",\"tenantName\":\"gkzz\",\"principalName\":\"afhbzf\",\"provisioningState\":\"Canceled\",\"aadObjectId\":\"mbj\"},\"id\":\"qsczpgvdwnapfdqw\",\"name\":\"wf\",\"type\":\"ptnuwjtkschgc\"},{\"properties\":{\"principalId\":\"y\",\"role\":\"Viewer\",\"tenantId\":\"seyqrhvyeldotjv\",\"principalType\":\"Group\",\"tenantName\":\"iswskuk\",\"principalName\":\"asbvw\",\"provisioningState\":\"Creating\",\"aadObjectId\":\"xkdtxfkndlqvtwkn\"},\"id\":\"mmbugtywatmqaq\",\"name\":\"ueatgroe\",\"type\":\"hoygzcbyfq\"}]}") - .toObject(DatabasePrincipalAssignmentListResult.class); - Assertions.assertEquals("xiwkgfbql", model.value().get(0).principalId()); - Assertions.assertEquals(DatabasePrincipalRole.INGESTOR, model.value().get(0).role()); - Assertions.assertEquals("khychocokulehur", model.value().get(0).tenantId()); - Assertions.assertEquals(PrincipalType.GROUP, model.value().get(0).principalType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatabasePrincipalAssignmentListResult model = - new DatabasePrincipalAssignmentListResult() - .withValue( - Arrays - .asList( - new DatabasePrincipalAssignmentInner() - .withPrincipalId("xiwkgfbql") - .withRole(DatabasePrincipalRole.INGESTOR) - .withTenantId("khychocokulehur") - .withPrincipalType(PrincipalType.GROUP), - new DatabasePrincipalAssignmentInner() - .withPrincipalId("cblevpmc") - .withRole(DatabasePrincipalRole.USER) - .withTenantId("yxkyxlz") - .withPrincipalType(PrincipalType.GROUP), - new DatabasePrincipalAssignmentInner() - .withPrincipalId("y") - .withRole(DatabasePrincipalRole.VIEWER) - .withTenantId("seyqrhvyeldotjv") - .withPrincipalType(PrincipalType.GROUP))); - model = BinaryData.fromObject(model).toObject(DatabasePrincipalAssignmentListResult.class); - Assertions.assertEquals("xiwkgfbql", model.value().get(0).principalId()); - Assertions.assertEquals(DatabasePrincipalRole.INGESTOR, model.value().get(0).role()); - Assertions.assertEquals("khychocokulehur", model.value().get(0).tenantId()); - Assertions.assertEquals(PrincipalType.GROUP, model.value().get(0).principalType()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabasePrincipalPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabasePrincipalPropertiesTests.java deleted file mode 100644 index c54f80be4d6e..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabasePrincipalPropertiesTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.DatabasePrincipalProperties; -import com.azure.resourcemanager.synapse.models.DatabasePrincipalRole; -import com.azure.resourcemanager.synapse.models.PrincipalType; -import org.junit.jupiter.api.Assertions; - -public final class DatabasePrincipalPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatabasePrincipalProperties model = - BinaryData - .fromString( - "{\"principalId\":\"ybwptda\",\"role\":\"Monitor\",\"tenantId\":\"vvlfntymtp\",\"principalType\":\"Group\",\"tenantName\":\"enazerohzrsqals\",\"principalName\":\"dnwqapfg\",\"provisioningState\":\"Creating\",\"aadObjectId\":\"vessm\"}") - .toObject(DatabasePrincipalProperties.class); - Assertions.assertEquals("ybwptda", model.principalId()); - Assertions.assertEquals(DatabasePrincipalRole.MONITOR, model.role()); - Assertions.assertEquals("vvlfntymtp", model.tenantId()); - Assertions.assertEquals(PrincipalType.GROUP, model.principalType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatabasePrincipalProperties model = - new DatabasePrincipalProperties() - .withPrincipalId("ybwptda") - .withRole(DatabasePrincipalRole.MONITOR) - .withTenantId("vvlfntymtp") - .withPrincipalType(PrincipalType.GROUP); - model = BinaryData.fromObject(model).toObject(DatabasePrincipalProperties.class); - Assertions.assertEquals("ybwptda", model.principalId()); - Assertions.assertEquals(DatabasePrincipalRole.MONITOR, model.role()); - Assertions.assertEquals("vvlfntymtp", model.tenantId()); - Assertions.assertEquals(PrincipalType.GROUP, model.principalType()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabaseStatisticsTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabaseStatisticsTests.java deleted file mode 100644 index ee71fa56dbb9..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DatabaseStatisticsTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.DatabaseStatistics; -import org.junit.jupiter.api.Assertions; - -public final class DatabaseStatisticsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DatabaseStatistics model = BinaryData.fromString("{\"size\":9.833252}").toObject(DatabaseStatistics.class); - Assertions.assertEquals(9.833252F, model.size()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DatabaseStatistics model = new DatabaseStatistics().withSize(9.833252F); - model = BinaryData.fromObject(model).toObject(DatabaseStatistics.class); - Assertions.assertEquals(9.833252F, model.size()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DedicatedSQLminimalTlsSettingsInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DedicatedSQLminimalTlsSettingsInnerTests.java deleted file mode 100644 index 119412e0be95..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DedicatedSQLminimalTlsSettingsInnerTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.DedicatedSQLminimalTlsSettingsInner; -import org.junit.jupiter.api.Assertions; - -public final class DedicatedSQLminimalTlsSettingsInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DedicatedSQLminimalTlsSettingsInner model = - BinaryData - .fromString( - "{\"location\":\"imlnwiaaomylw\",\"properties\":{\"minimalTlsVersion\":\"ulcsethwwnpj\"},\"id\":\"l\",\"name\":\"zswpchwa\",\"type\":\"fb\"}") - .toObject(DedicatedSQLminimalTlsSettingsInner.class); - Assertions.assertEquals("ulcsethwwnpj", model.minimalTlsVersion()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DedicatedSQLminimalTlsSettingsInner model = - new DedicatedSQLminimalTlsSettingsInner().withMinimalTlsVersion("ulcsethwwnpj"); - model = BinaryData.fromObject(model).toObject(DedicatedSQLminimalTlsSettingsInner.class); - Assertions.assertEquals("ulcsethwwnpj", model.minimalTlsVersion()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DedicatedSQLminimalTlsSettingsListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DedicatedSQLminimalTlsSettingsListResultTests.java deleted file mode 100644 index d4abf6a71d33..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DedicatedSQLminimalTlsSettingsListResultTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.DedicatedSQLminimalTlsSettingsListResult; - -public final class DedicatedSQLminimalTlsSettingsListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DedicatedSQLminimalTlsSettingsListResult model = - BinaryData - .fromString( - "{\"value\":[{\"location\":\"ykxhdjh\",\"properties\":{\"minimalTlsVersion\":\"mbcxfhbcp\"},\"id\":\"rxvxcjzh\",\"name\":\"izxfpxt\",\"type\":\"qscjavftjuh\"}],\"nextLink\":\"azkmtgguwp\"}") - .toObject(DedicatedSQLminimalTlsSettingsListResult.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DedicatedSQLminimalTlsSettingsListResult model = new DedicatedSQLminimalTlsSettingsListResult(); - model = BinaryData.fromObject(model).toObject(DedicatedSQLminimalTlsSettingsListResult.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DedicatedSQLminimalTlsSettingsPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DedicatedSQLminimalTlsSettingsPropertiesTests.java deleted file mode 100644 index 5b6526fe610c..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DedicatedSQLminimalTlsSettingsPropertiesTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.DedicatedSQLminimalTlsSettingsProperties; -import org.junit.jupiter.api.Assertions; - -public final class DedicatedSQLminimalTlsSettingsPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DedicatedSQLminimalTlsSettingsProperties model = - BinaryData - .fromString("{\"minimalTlsVersion\":\"snfepgfewetwlyx\"}") - .toObject(DedicatedSQLminimalTlsSettingsProperties.class); - Assertions.assertEquals("snfepgfewetwlyx", model.minimalTlsVersion()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DedicatedSQLminimalTlsSettingsProperties model = - new DedicatedSQLminimalTlsSettingsProperties().withMinimalTlsVersion("snfepgfewetwlyx"); - model = BinaryData.fromObject(model).toObject(DedicatedSQLminimalTlsSettingsProperties.class); - Assertions.assertEquals("snfepgfewetwlyx", model.minimalTlsVersion()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DynamicExecutorAllocationTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DynamicExecutorAllocationTests.java deleted file mode 100644 index dcfb6624042f..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/DynamicExecutorAllocationTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.DynamicExecutorAllocation; -import org.junit.jupiter.api.Assertions; - -public final class DynamicExecutorAllocationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - DynamicExecutorAllocation model = - BinaryData - .fromString("{\"enabled\":true,\"minExecutors\":1923322437,\"maxExecutors\":55870102}") - .toObject(DynamicExecutorAllocation.class); - Assertions.assertEquals(true, model.enabled()); - Assertions.assertEquals(1923322437, model.minExecutors()); - Assertions.assertEquals(55870102, model.maxExecutors()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - DynamicExecutorAllocation model = - new DynamicExecutorAllocation().withEnabled(true).withMinExecutors(1923322437).withMaxExecutors(55870102); - model = BinaryData.fromObject(model).toObject(DynamicExecutorAllocation.class); - Assertions.assertEquals(true, model.enabled()); - Assertions.assertEquals(1923322437, model.minExecutors()); - Assertions.assertEquals(55870102, model.maxExecutors()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EntityReferenceTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EntityReferenceTests.java deleted file mode 100644 index a82c723f69de..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EntityReferenceTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.EntityReference; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeEntityReferenceType; -import org.junit.jupiter.api.Assertions; - -public final class EntityReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - EntityReference model = - BinaryData - .fromString("{\"type\":\"LinkedServiceReference\",\"referenceName\":\"hzagxnvhycvdimw\"}") - .toObject(EntityReference.class); - Assertions.assertEquals(IntegrationRuntimeEntityReferenceType.LINKED_SERVICE_REFERENCE, model.type()); - Assertions.assertEquals("hzagxnvhycvdimw", model.referenceName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EntityReference model = - new EntityReference() - .withType(IntegrationRuntimeEntityReferenceType.LINKED_SERVICE_REFERENCE) - .withReferenceName("hzagxnvhycvdimw"); - model = BinaryData.fromObject(model).toObject(EntityReference.class); - Assertions.assertEquals(IntegrationRuntimeEntityReferenceType.LINKED_SERVICE_REFERENCE, model.type()); - Assertions.assertEquals("hzagxnvhycvdimw", model.referenceName()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EntityResourceTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EntityResourceTests.java deleted file mode 100644 index c8a50ef4a8aa..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EntityResourceTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.EntityResource; - -public final class EntityResourceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - EntityResource model = - BinaryData - .fromString( - "{\"etag\":\"mspofapvuhryl\",\"id\":\"iofrzgbzjedmstk\",\"name\":\"nlvxbcuii\",\"type\":\"nktwfansnvpdibmi\"}") - .toObject(EntityResource.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EntityResource model = new EntityResource(); - model = BinaryData.fromObject(model).toObject(EntityResource.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EnvironmentVariableSetupTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EnvironmentVariableSetupTests.java deleted file mode 100644 index 15c759255c9c..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EnvironmentVariableSetupTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.EnvironmentVariableSetup; -import org.junit.jupiter.api.Assertions; - -public final class EnvironmentVariableSetupTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - EnvironmentVariableSetup model = - BinaryData - .fromString( - "{\"type\":\"EnvironmentVariableSetup\",\"typeProperties\":{\"variableName\":\"lxeehuxiq\",\"variableValue\":\"zlrayme\"}}") - .toObject(EnvironmentVariableSetup.class); - Assertions.assertEquals("lxeehuxiq", model.variableName()); - Assertions.assertEquals("zlrayme", model.variableValue()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EnvironmentVariableSetup model = - new EnvironmentVariableSetup().withVariableName("lxeehuxiq").withVariableValue("zlrayme"); - model = BinaryData.fromObject(model).toObject(EnvironmentVariableSetup.class); - Assertions.assertEquals("lxeehuxiq", model.variableName()); - Assertions.assertEquals("zlrayme", model.variableValue()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EnvironmentVariableSetupTypePropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EnvironmentVariableSetupTypePropertiesTests.java deleted file mode 100644 index 3ac04df1c6c4..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EnvironmentVariableSetupTypePropertiesTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.EnvironmentVariableSetupTypeProperties; -import org.junit.jupiter.api.Assertions; - -public final class EnvironmentVariableSetupTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - EnvironmentVariableSetupTypeProperties model = - BinaryData - .fromString("{\"variableName\":\"xls\",\"variableValue\":\"ihmxrfdsajredn\"}") - .toObject(EnvironmentVariableSetupTypeProperties.class); - Assertions.assertEquals("xls", model.variableName()); - Assertions.assertEquals("ihmxrfdsajredn", model.variableValue()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EnvironmentVariableSetupTypeProperties model = - new EnvironmentVariableSetupTypeProperties().withVariableName("xls").withVariableValue("ihmxrfdsajredn"); - model = BinaryData.fromObject(model).toObject(EnvironmentVariableSetupTypeProperties.class); - Assertions.assertEquals("xls", model.variableName()); - Assertions.assertEquals("ihmxrfdsajredn", model.variableValue()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EventGridConnectionPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EventGridConnectionPropertiesTests.java deleted file mode 100644 index 897811c09ebc..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EventGridConnectionPropertiesTests.java +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.EventGridConnectionProperties; -import com.azure.resourcemanager.synapse.models.BlobStorageEventType; -import com.azure.resourcemanager.synapse.models.EventGridDataFormat; -import org.junit.jupiter.api.Assertions; - -public final class EventGridConnectionPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - EventGridConnectionProperties model = - BinaryData - .fromString( - "{\"storageAccountResourceId\":\"yutrymd\",\"eventHubResourceId\":\"mfjhpycvjqdvdwkq\",\"consumerGroup\":\"ldrlefgnaavua\",\"tableName\":\"tetaoutnpdctuhs\",\"mappingRuleName\":\"efyihduyeuyl\",\"dataFormat\":\"APACHEAVRO\",\"ignoreFirstRecord\":false,\"blobStorageEventType\":\"Microsoft.Storage.BlobRenamed\",\"provisioningState\":\"Running\"}") - .toObject(EventGridConnectionProperties.class); - Assertions.assertEquals("yutrymd", model.storageAccountResourceId()); - Assertions.assertEquals("mfjhpycvjqdvdwkq", model.eventHubResourceId()); - Assertions.assertEquals("ldrlefgnaavua", model.consumerGroup()); - Assertions.assertEquals("tetaoutnpdctuhs", model.tableName()); - Assertions.assertEquals("efyihduyeuyl", model.mappingRuleName()); - Assertions.assertEquals(EventGridDataFormat.APACHEAVRO, model.dataFormat()); - Assertions.assertEquals(false, model.ignoreFirstRecord()); - Assertions.assertEquals(BlobStorageEventType.MICROSOFT_STORAGE_BLOB_RENAMED, model.blobStorageEventType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EventGridConnectionProperties model = - new EventGridConnectionProperties() - .withStorageAccountResourceId("yutrymd") - .withEventHubResourceId("mfjhpycvjqdvdwkq") - .withConsumerGroup("ldrlefgnaavua") - .withTableName("tetaoutnpdctuhs") - .withMappingRuleName("efyihduyeuyl") - .withDataFormat(EventGridDataFormat.APACHEAVRO) - .withIgnoreFirstRecord(false) - .withBlobStorageEventType(BlobStorageEventType.MICROSOFT_STORAGE_BLOB_RENAMED); - model = BinaryData.fromObject(model).toObject(EventGridConnectionProperties.class); - Assertions.assertEquals("yutrymd", model.storageAccountResourceId()); - Assertions.assertEquals("mfjhpycvjqdvdwkq", model.eventHubResourceId()); - Assertions.assertEquals("ldrlefgnaavua", model.consumerGroup()); - Assertions.assertEquals("tetaoutnpdctuhs", model.tableName()); - Assertions.assertEquals("efyihduyeuyl", model.mappingRuleName()); - Assertions.assertEquals(EventGridDataFormat.APACHEAVRO, model.dataFormat()); - Assertions.assertEquals(false, model.ignoreFirstRecord()); - Assertions.assertEquals(BlobStorageEventType.MICROSOFT_STORAGE_BLOB_RENAMED, model.blobStorageEventType()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EventGridDataConnectionTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EventGridDataConnectionTests.java deleted file mode 100644 index 299838ca6b65..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EventGridDataConnectionTests.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.BlobStorageEventType; -import com.azure.resourcemanager.synapse.models.EventGridDataConnection; -import com.azure.resourcemanager.synapse.models.EventGridDataFormat; -import org.junit.jupiter.api.Assertions; - -public final class EventGridDataConnectionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - EventGridDataConnection model = - BinaryData - .fromString( - "{\"kind\":\"EventGrid\",\"properties\":{\"storageAccountResourceId\":\"pmfbfununmpzkr\",\"eventHubResourceId\":\"fyif\",\"consumerGroup\":\"dschlzvfictnkjjw\",\"tableName\":\"wnphbkgfyrto\",\"mappingRuleName\":\"hmjpjscdfpdqwtyg\",\"dataFormat\":\"TSVE\",\"ignoreFirstRecord\":false,\"blobStorageEventType\":\"Microsoft.Storage.BlobCreated\",\"provisioningState\":\"Deleting\"},\"location\":\"xifvqnrxtmbpjpt\",\"id\":\"wjhrsidqpxlbtpa\",\"name\":\"f\",\"type\":\"ngatwmy\"}") - .toObject(EventGridDataConnection.class); - Assertions.assertEquals("xifvqnrxtmbpjpt", model.location()); - Assertions.assertEquals("pmfbfununmpzkr", model.storageAccountResourceId()); - Assertions.assertEquals("fyif", model.eventHubResourceId()); - Assertions.assertEquals("dschlzvfictnkjjw", model.consumerGroup()); - Assertions.assertEquals("wnphbkgfyrto", model.tableName()); - Assertions.assertEquals("hmjpjscdfpdqwtyg", model.mappingRuleName()); - Assertions.assertEquals(EventGridDataFormat.TSVE, model.dataFormat()); - Assertions.assertEquals(false, model.ignoreFirstRecord()); - Assertions.assertEquals(BlobStorageEventType.MICROSOFT_STORAGE_BLOB_CREATED, model.blobStorageEventType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EventGridDataConnection model = - new EventGridDataConnection() - .withLocation("xifvqnrxtmbpjpt") - .withStorageAccountResourceId("pmfbfununmpzkr") - .withEventHubResourceId("fyif") - .withConsumerGroup("dschlzvfictnkjjw") - .withTableName("wnphbkgfyrto") - .withMappingRuleName("hmjpjscdfpdqwtyg") - .withDataFormat(EventGridDataFormat.TSVE) - .withIgnoreFirstRecord(false) - .withBlobStorageEventType(BlobStorageEventType.MICROSOFT_STORAGE_BLOB_CREATED); - model = BinaryData.fromObject(model).toObject(EventGridDataConnection.class); - Assertions.assertEquals("xifvqnrxtmbpjpt", model.location()); - Assertions.assertEquals("pmfbfununmpzkr", model.storageAccountResourceId()); - Assertions.assertEquals("fyif", model.eventHubResourceId()); - Assertions.assertEquals("dschlzvfictnkjjw", model.consumerGroup()); - Assertions.assertEquals("wnphbkgfyrto", model.tableName()); - Assertions.assertEquals("hmjpjscdfpdqwtyg", model.mappingRuleName()); - Assertions.assertEquals(EventGridDataFormat.TSVE, model.dataFormat()); - Assertions.assertEquals(false, model.ignoreFirstRecord()); - Assertions.assertEquals(BlobStorageEventType.MICROSOFT_STORAGE_BLOB_CREATED, model.blobStorageEventType()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EventHubConnectionPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EventHubConnectionPropertiesTests.java deleted file mode 100644 index 3c83cfb059cf..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EventHubConnectionPropertiesTests.java +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.EventHubConnectionProperties; -import com.azure.resourcemanager.synapse.models.Compression; -import com.azure.resourcemanager.synapse.models.EventHubDataFormat; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class EventHubConnectionPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - EventHubConnectionProperties model = - BinaryData - .fromString( - "{\"eventHubResourceId\":\"gmnhjevd\",\"consumerGroup\":\"znfaj\",\"tableName\":\"kskmqozzkivyhjrl\",\"mappingRuleName\":\"zji\",\"dataFormat\":\"TSVE\",\"eventSystemProperties\":[\"ef\",\"wabs\",\"lronqqlmg\",\"lqxsjxtelex\"],\"compression\":\"None\",\"provisioningState\":\"Succeeded\",\"managedIdentityResourceId\":\"zoolzqoca\"}") - .toObject(EventHubConnectionProperties.class); - Assertions.assertEquals("gmnhjevd", model.eventHubResourceId()); - Assertions.assertEquals("znfaj", model.consumerGroup()); - Assertions.assertEquals("kskmqozzkivyhjrl", model.tableName()); - Assertions.assertEquals("zji", model.mappingRuleName()); - Assertions.assertEquals(EventHubDataFormat.TSVE, model.dataFormat()); - Assertions.assertEquals("ef", model.eventSystemProperties().get(0)); - Assertions.assertEquals(Compression.NONE, model.compression()); - Assertions.assertEquals("zoolzqoca", model.managedIdentityResourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EventHubConnectionProperties model = - new EventHubConnectionProperties() - .withEventHubResourceId("gmnhjevd") - .withConsumerGroup("znfaj") - .withTableName("kskmqozzkivyhjrl") - .withMappingRuleName("zji") - .withDataFormat(EventHubDataFormat.TSVE) - .withEventSystemProperties(Arrays.asList("ef", "wabs", "lronqqlmg", "lqxsjxtelex")) - .withCompression(Compression.NONE) - .withManagedIdentityResourceId("zoolzqoca"); - model = BinaryData.fromObject(model).toObject(EventHubConnectionProperties.class); - Assertions.assertEquals("gmnhjevd", model.eventHubResourceId()); - Assertions.assertEquals("znfaj", model.consumerGroup()); - Assertions.assertEquals("kskmqozzkivyhjrl", model.tableName()); - Assertions.assertEquals("zji", model.mappingRuleName()); - Assertions.assertEquals(EventHubDataFormat.TSVE, model.dataFormat()); - Assertions.assertEquals("ef", model.eventSystemProperties().get(0)); - Assertions.assertEquals(Compression.NONE, model.compression()); - Assertions.assertEquals("zoolzqoca", model.managedIdentityResourceId()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EventHubDataConnectionTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EventHubDataConnectionTests.java deleted file mode 100644 index a1312eb46ad4..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/EventHubDataConnectionTests.java +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.Compression; -import com.azure.resourcemanager.synapse.models.EventHubDataConnection; -import com.azure.resourcemanager.synapse.models.EventHubDataFormat; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class EventHubDataConnectionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - EventHubDataConnection model = - BinaryData - .fromString( - "{\"kind\":\"EventHub\",\"properties\":{\"eventHubResourceId\":\"lhdjzqd\",\"consumerGroup\":\"a\",\"tableName\":\"vpsozjiihjri\",\"mappingRuleName\":\"mrzoep\",\"dataFormat\":\"PARQUET\",\"eventSystemProperties\":[\"wnjkgvfn\"],\"compression\":\"GZip\",\"provisioningState\":\"Moving\",\"managedIdentityResourceId\":\"q\"},\"location\":\"ibtyibuyvpirfqjp\",\"id\":\"noow\",\"name\":\"bedenrexkx\",\"type\":\"hxvucnu\"}") - .toObject(EventHubDataConnection.class); - Assertions.assertEquals("ibtyibuyvpirfqjp", model.location()); - Assertions.assertEquals("lhdjzqd", model.eventHubResourceId()); - Assertions.assertEquals("a", model.consumerGroup()); - Assertions.assertEquals("vpsozjiihjri", model.tableName()); - Assertions.assertEquals("mrzoep", model.mappingRuleName()); - Assertions.assertEquals(EventHubDataFormat.PARQUET, model.dataFormat()); - Assertions.assertEquals("wnjkgvfn", model.eventSystemProperties().get(0)); - Assertions.assertEquals(Compression.GZIP, model.compression()); - Assertions.assertEquals("q", model.managedIdentityResourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - EventHubDataConnection model = - new EventHubDataConnection() - .withLocation("ibtyibuyvpirfqjp") - .withEventHubResourceId("lhdjzqd") - .withConsumerGroup("a") - .withTableName("vpsozjiihjri") - .withMappingRuleName("mrzoep") - .withDataFormat(EventHubDataFormat.PARQUET) - .withEventSystemProperties(Arrays.asList("wnjkgvfn")) - .withCompression(Compression.GZIP) - .withManagedIdentityResourceId("q"); - model = BinaryData.fromObject(model).toObject(EventHubDataConnection.class); - Assertions.assertEquals("ibtyibuyvpirfqjp", model.location()); - Assertions.assertEquals("lhdjzqd", model.eventHubResourceId()); - Assertions.assertEquals("a", model.consumerGroup()); - Assertions.assertEquals("vpsozjiihjri", model.tableName()); - Assertions.assertEquals("mrzoep", model.mappingRuleName()); - Assertions.assertEquals(EventHubDataFormat.PARQUET, model.dataFormat()); - Assertions.assertEquals("wnjkgvfn", model.eventSystemProperties().get(0)); - Assertions.assertEquals(Compression.GZIP, model.compression()); - Assertions.assertEquals("q", model.managedIdentityResourceId()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/FollowerDatabaseDefinitionInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/FollowerDatabaseDefinitionInnerTests.java deleted file mode 100644 index ac7b6d41d622..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/FollowerDatabaseDefinitionInnerTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.FollowerDatabaseDefinitionInner; -import org.junit.jupiter.api.Assertions; - -public final class FollowerDatabaseDefinitionInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FollowerDatabaseDefinitionInner model = - BinaryData - .fromString( - "{\"clusterResourceId\":\"jelaqacigele\",\"attachedDatabaseConfigurationName\":\"hdbvqvwzkjop\",\"databaseName\":\"eonrlkwzdqybxce\"}") - .toObject(FollowerDatabaseDefinitionInner.class); - Assertions.assertEquals("jelaqacigele", model.kustoPoolResourceId()); - Assertions.assertEquals("hdbvqvwzkjop", model.attachedDatabaseConfigurationName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FollowerDatabaseDefinitionInner model = - new FollowerDatabaseDefinitionInner() - .withKustoPoolResourceId("jelaqacigele") - .withAttachedDatabaseConfigurationName("hdbvqvwzkjop"); - model = BinaryData.fromObject(model).toObject(FollowerDatabaseDefinitionInner.class); - Assertions.assertEquals("jelaqacigele", model.kustoPoolResourceId()); - Assertions.assertEquals("hdbvqvwzkjop", model.attachedDatabaseConfigurationName()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/FollowerDatabaseListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/FollowerDatabaseListResultTests.java deleted file mode 100644 index 02362658d5e8..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/FollowerDatabaseListResultTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.FollowerDatabaseDefinitionInner; -import com.azure.resourcemanager.synapse.models.FollowerDatabaseListResult; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class FollowerDatabaseListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FollowerDatabaseListResult model = - BinaryData - .fromString( - "{\"value\":[{\"clusterResourceId\":\"yqyybxubmdna\",\"attachedDatabaseConfigurationName\":\"cbq\",\"databaseName\":\"e\"}]}") - .toObject(FollowerDatabaseListResult.class); - Assertions.assertEquals("yqyybxubmdna", model.value().get(0).kustoPoolResourceId()); - Assertions.assertEquals("cbq", model.value().get(0).attachedDatabaseConfigurationName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FollowerDatabaseListResult model = - new FollowerDatabaseListResult() - .withValue( - Arrays - .asList( - new FollowerDatabaseDefinitionInner() - .withKustoPoolResourceId("yqyybxubmdna") - .withAttachedDatabaseConfigurationName("cbq"))); - model = BinaryData.fromObject(model).toObject(FollowerDatabaseListResult.class); - Assertions.assertEquals("yqyybxubmdna", model.value().get(0).kustoPoolResourceId()); - Assertions.assertEquals("cbq", model.value().get(0).attachedDatabaseConfigurationName()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/GeoBackupPolicyInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/GeoBackupPolicyInnerTests.java deleted file mode 100644 index b344d399e8f1..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/GeoBackupPolicyInnerTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.GeoBackupPolicyInner; -import com.azure.resourcemanager.synapse.models.GeoBackupPolicyState; -import org.junit.jupiter.api.Assertions; - -public final class GeoBackupPolicyInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GeoBackupPolicyInner model = - BinaryData - .fromString( - "{\"properties\":{\"state\":\"Enabled\",\"storageType\":\"sd\"},\"kind\":\"ouwaboekqvkeln\",\"location\":\"vbxwyjsflhh\",\"id\":\"aalnjixi\",\"name\":\"xyawj\",\"type\":\"yaqcslyjpkiidz\"}") - .toObject(GeoBackupPolicyInner.class); - Assertions.assertEquals(GeoBackupPolicyState.ENABLED, model.state()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GeoBackupPolicyInner model = new GeoBackupPolicyInner().withState(GeoBackupPolicyState.ENABLED); - model = BinaryData.fromObject(model).toObject(GeoBackupPolicyInner.class); - Assertions.assertEquals(GeoBackupPolicyState.ENABLED, model.state()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/GeoBackupPolicyListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/GeoBackupPolicyListResultTests.java deleted file mode 100644 index e09233dc5feb..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/GeoBackupPolicyListResultTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.GeoBackupPolicyInner; -import com.azure.resourcemanager.synapse.models.GeoBackupPolicyListResult; -import com.azure.resourcemanager.synapse.models.GeoBackupPolicyState; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class GeoBackupPolicyListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GeoBackupPolicyListResult model = - BinaryData - .fromString( - "{\"value\":[{\"properties\":{\"state\":\"Enabled\",\"storageType\":\"v\"},\"kind\":\"jkbegibtnmxiebww\",\"location\":\"oayqc\",\"id\":\"wrtz\",\"name\":\"uzgwyzmhtx\",\"type\":\"ngmtsavjcb\"},{\"properties\":{\"state\":\"Enabled\",\"storageType\":\"qpsrknftguvri\"},\"kind\":\"prwmdyvxqt\",\"location\":\"riwwroy\",\"id\":\"bexrmcq\",\"name\":\"bycnojvkn\",\"type\":\"e\"},{\"properties\":{\"state\":\"Enabled\",\"storageType\":\"gzva\"},\"kind\":\"pjyzhpv\",\"location\":\"zcjrvxdjzlmwlx\",\"id\":\"vu\",\"name\":\"fhzovawjvzunluth\",\"type\":\"n\"},{\"properties\":{\"state\":\"Disabled\",\"storageType\":\"xipeilpjzuaejx\"},\"kind\":\"ltskzbbtd\",\"location\":\"mv\",\"id\":\"ekg\",\"name\":\"wozuhkf\",\"type\":\"bsjyofdx\"}]}") - .toObject(GeoBackupPolicyListResult.class); - Assertions.assertEquals(GeoBackupPolicyState.ENABLED, model.value().get(0).state()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GeoBackupPolicyListResult model = - new GeoBackupPolicyListResult() - .withValue( - Arrays - .asList( - new GeoBackupPolicyInner().withState(GeoBackupPolicyState.ENABLED), - new GeoBackupPolicyInner().withState(GeoBackupPolicyState.ENABLED), - new GeoBackupPolicyInner().withState(GeoBackupPolicyState.ENABLED), - new GeoBackupPolicyInner().withState(GeoBackupPolicyState.DISABLED))); - model = BinaryData.fromObject(model).toObject(GeoBackupPolicyListResult.class); - Assertions.assertEquals(GeoBackupPolicyState.ENABLED, model.value().get(0).state()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/GeoBackupPolicyPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/GeoBackupPolicyPropertiesTests.java deleted file mode 100644 index 8a6615181cdd..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/GeoBackupPolicyPropertiesTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.GeoBackupPolicyProperties; -import com.azure.resourcemanager.synapse.models.GeoBackupPolicyState; -import org.junit.jupiter.api.Assertions; - -public final class GeoBackupPolicyPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GeoBackupPolicyProperties model = - BinaryData - .fromString("{\"state\":\"Enabled\",\"storageType\":\"znelixhnrztfolh\"}") - .toObject(GeoBackupPolicyProperties.class); - Assertions.assertEquals(GeoBackupPolicyState.ENABLED, model.state()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GeoBackupPolicyProperties model = new GeoBackupPolicyProperties().withState(GeoBackupPolicyState.ENABLED); - model = BinaryData.fromObject(model).toObject(GeoBackupPolicyProperties.class); - Assertions.assertEquals(GeoBackupPolicyState.ENABLED, model.state()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/GetSsisObjectMetadataRequestTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/GetSsisObjectMetadataRequestTests.java deleted file mode 100644 index de7569db6a16..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/GetSsisObjectMetadataRequestTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.GetSsisObjectMetadataRequest; -import org.junit.jupiter.api.Assertions; - -public final class GetSsisObjectMetadataRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - GetSsisObjectMetadataRequest model = - BinaryData.fromString("{\"metadataPath\":\"prltzkatbhjmz\"}").toObject(GetSsisObjectMetadataRequest.class); - Assertions.assertEquals("prltzkatbhjmz", model.metadataPath()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - GetSsisObjectMetadataRequest model = new GetSsisObjectMetadataRequest().withMetadataPath("prltzkatbhjmz"); - model = BinaryData.fromObject(model).toObject(GetSsisObjectMetadataRequest.class); - Assertions.assertEquals("prltzkatbhjmz", model.metadataPath()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/GetsIntegrationRuntimeEnableInteractivequeryWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/GetsIntegrationRuntimeEnableInteractivequeryWithResponseMockTests.java deleted file mode 100644 index 1194bc372914..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/GetsIntegrationRuntimeEnableInteractivequeryWithResponseMockTests.java +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeEnableinteractivequery; -import com.azure.resourcemanager.synapse.models.WorkspaceStatus; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class GetsIntegrationRuntimeEnableInteractivequeryWithResponseMockTests { - @Test - public void testIntegrationRuntimeEnableInteractivequeryWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"status\":\"Succeeded\",\"name\":\"kwdrqmrp\",\"properties\":\"datauuonjkkxukguehvv\",\"error\":\"joegcjojlleuidp\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - IntegrationRuntimeEnableinteractivequery response = - manager - .gets() - .integrationRuntimeEnableInteractivequeryWithResponse( - "fdtncmspsanma", "eubkqiqmlf", "hlq", "skkqjmxptuei", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(WorkspaceStatus.SUCCEEDED, response.status()); - Assertions.assertEquals("kwdrqmrp", response.name()); - Assertions.assertEquals("joegcjojlleuidp", response.error()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/GetsIntegrationRuntimeStartWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/GetsIntegrationRuntimeStartWithResponseMockTests.java deleted file mode 100644 index 1cd324d38771..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/GetsIntegrationRuntimeStartWithResponseMockTests.java +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeOperationStatus; -import com.azure.resourcemanager.synapse.models.WorkspaceStatus; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class GetsIntegrationRuntimeStartWithResponseMockTests { - @Test - public void testIntegrationRuntimeStartWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"status\":\"Succeeded\",\"name\":\"fmthieatn\",\"properties\":\"datarnminzqplgtkih\",\"error\":\"ikzsrzfffji\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - IntegrationRuntimeOperationStatus response = - manager - .gets() - .integrationRuntimeStartWithResponse( - "yhxess", "vrkdpsqeq", "bdxmd", "esbrujbjpppktl", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(WorkspaceStatus.SUCCEEDED, response.status()); - Assertions.assertEquals("fmthieatn", response.name()); - Assertions.assertEquals("ikzsrzfffji", response.error()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/GetsIntegrationRuntimeStopWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/GetsIntegrationRuntimeStopWithResponseMockTests.java deleted file mode 100644 index 1c20fc5401ba..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/GetsIntegrationRuntimeStopWithResponseMockTests.java +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeStopOperationStatus; -import com.azure.resourcemanager.synapse.models.WorkspaceStatus; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class GetsIntegrationRuntimeStopWithResponseMockTests { - @Test - public void testIntegrationRuntimeStopWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"status\":\"Succeeded\",\"name\":\"gga\",\"properties\":\"datadgtfpeersc\",\"error\":\"rnrnjrcufmbgacnr\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - IntegrationRuntimeStopOperationStatus response = - manager - .gets() - .integrationRuntimeStopWithResponse( - "z", "bpntogkensckhb", "carmoyfx", "kwykuqdndxl", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(WorkspaceStatus.SUCCEEDED, response.status()); - Assertions.assertEquals("gga", response.name()); - Assertions.assertEquals("rnrnjrcufmbgacnr", response.error()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeComputePropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeComputePropertiesTests.java deleted file mode 100644 index 4790304c267d..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeComputePropertiesTests.java +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.DataFlowComputeType; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeComputeProperties; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeDataFlowProperties; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeVNetProperties; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeComputePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeComputeProperties model = - BinaryData - .fromString( - "{\"location\":\"itpkpztrgdg\",\"nodeSize\":\"coqra\",\"numberOfNodes\":2040757308,\"maxParallelExecutionsPerNode\":601079141,\"dataFlowProperties\":{\"computeType\":\"General\",\"coreCount\":2036171481,\"timeToLive\":151899144,\"cleanup\":false,\"\":{\"yltcoqcuj\":\"datavskbuhzacaq\",\"ztjofqcvovjufyc\":\"datadsxzakuejkmvb\",\"gthortudaw\":\"datajmlbemyejiriux\",\"qerpptcbgqnzm\":\"datapjfe\"}},\"vNetProperties\":{\"vNetId\":\"ilialwcjgc\",\"subnet\":\"bcccgzpra\",\"publicIPs\":[\"yuffatsgf\",\"ipwcxbyu\"],\"subnetId\":\"iqdxyurnpnuh\",\"\":{\"yl\":\"dataccnuhiig\",\"vxva\":\"dataui\",\"lbnb\":\"datavcrk\"}},\"\":{\"syhzlwx\":\"datah\"}}") - .toObject(IntegrationRuntimeComputeProperties.class); - Assertions.assertEquals("itpkpztrgdg", model.location()); - Assertions.assertEquals("coqra", model.nodeSize()); - Assertions.assertEquals(2040757308, model.numberOfNodes()); - Assertions.assertEquals(601079141, model.maxParallelExecutionsPerNode()); - Assertions.assertEquals(DataFlowComputeType.GENERAL, model.dataFlowProperties().computeType()); - Assertions.assertEquals(2036171481, model.dataFlowProperties().coreCount()); - Assertions.assertEquals(151899144, model.dataFlowProperties().timeToLive()); - Assertions.assertEquals(false, model.dataFlowProperties().cleanup()); - Assertions.assertEquals("ilialwcjgc", model.vNetProperties().vNetId()); - Assertions.assertEquals("bcccgzpra", model.vNetProperties().subnet()); - Assertions.assertEquals("yuffatsgf", model.vNetProperties().publicIPs().get(0)); - Assertions.assertEquals("iqdxyurnpnuh", model.vNetProperties().subnetId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeComputeProperties model = - new IntegrationRuntimeComputeProperties() - .withLocation("itpkpztrgdg") - .withNodeSize("coqra") - .withNumberOfNodes(2040757308) - .withMaxParallelExecutionsPerNode(601079141) - .withDataFlowProperties( - new IntegrationRuntimeDataFlowProperties() - .withComputeType(DataFlowComputeType.GENERAL) - .withCoreCount(2036171481) - .withTimeToLive(151899144) - .withCleanup(false) - .withAdditionalProperties(mapOf())) - .withVNetProperties( - new IntegrationRuntimeVNetProperties() - .withVNetId("ilialwcjgc") - .withSubnet("bcccgzpra") - .withPublicIPs(Arrays.asList("yuffatsgf", "ipwcxbyu")) - .withSubnetId("iqdxyurnpnuh") - .withAdditionalProperties(mapOf())) - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeComputeProperties.class); - Assertions.assertEquals("itpkpztrgdg", model.location()); - Assertions.assertEquals("coqra", model.nodeSize()); - Assertions.assertEquals(2040757308, model.numberOfNodes()); - Assertions.assertEquals(601079141, model.maxParallelExecutionsPerNode()); - Assertions.assertEquals(DataFlowComputeType.GENERAL, model.dataFlowProperties().computeType()); - Assertions.assertEquals(2036171481, model.dataFlowProperties().coreCount()); - Assertions.assertEquals(151899144, model.dataFlowProperties().timeToLive()); - Assertions.assertEquals(false, model.dataFlowProperties().cleanup()); - Assertions.assertEquals("ilialwcjgc", model.vNetProperties().vNetId()); - Assertions.assertEquals("bcccgzpra", model.vNetProperties().subnet()); - Assertions.assertEquals("yuffatsgf", model.vNetProperties().publicIPs().get(0)); - Assertions.assertEquals("iqdxyurnpnuh", model.vNetProperties().subnetId()); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeCredentialsSyncWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeCredentialsSyncWithResponseMockTests.java deleted file mode 100644 index cbe783e653ac..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeCredentialsSyncWithResponseMockTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimeCredentialsSyncWithResponseMockTests { - @Test - public void testSyncWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .integrationRuntimeCredentials() - .syncWithResponse("iyvndjokgwes", "mzqhrqp", "zlpejtznxlueaujq", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeDataFlowPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeDataFlowPropertiesTests.java deleted file mode 100644 index 93c4ec41a0f5..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeDataFlowPropertiesTests.java +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.DataFlowComputeType; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeDataFlowProperties; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeDataFlowPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeDataFlowProperties model = - BinaryData - .fromString( - "{\"computeType\":\"General\",\"coreCount\":1277865813,\"timeToLive\":92922352,\"cleanup\":true,\"\":{\"bdweade\":\"datad\",\"mvmmagoaqylkjz\":\"datazmwntopagt\"}}") - .toObject(IntegrationRuntimeDataFlowProperties.class); - Assertions.assertEquals(DataFlowComputeType.GENERAL, model.computeType()); - Assertions.assertEquals(1277865813, model.coreCount()); - Assertions.assertEquals(92922352, model.timeToLive()); - Assertions.assertEquals(true, model.cleanup()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeDataFlowProperties model = - new IntegrationRuntimeDataFlowProperties() - .withComputeType(DataFlowComputeType.GENERAL) - .withCoreCount(1277865813) - .withTimeToLive(92922352) - .withCleanup(true) - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeDataFlowProperties.class); - Assertions.assertEquals(DataFlowComputeType.GENERAL, model.computeType()); - Assertions.assertEquals(1277865813, model.coreCount()); - Assertions.assertEquals(92922352, model.timeToLive()); - Assertions.assertEquals(true, model.cleanup()); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeDataProxyPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeDataProxyPropertiesTests.java deleted file mode 100644 index 1177ec724f4f..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeDataProxyPropertiesTests.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.EntityReference; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeDataProxyProperties; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeEntityReferenceType; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeDataProxyPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeDataProxyProperties model = - BinaryData - .fromString( - "{\"connectVia\":{\"type\":\"LinkedServiceReference\",\"referenceName\":\"wofali\"},\"stagingLinkedService\":{\"type\":\"IntegrationRuntimeReference\",\"referenceName\":\"iqtamtyvsknxrw\"},\"path\":\"wnv\"}") - .toObject(IntegrationRuntimeDataProxyProperties.class); - Assertions - .assertEquals(IntegrationRuntimeEntityReferenceType.LINKED_SERVICE_REFERENCE, model.connectVia().type()); - Assertions.assertEquals("wofali", model.connectVia().referenceName()); - Assertions - .assertEquals( - IntegrationRuntimeEntityReferenceType.INTEGRATION_RUNTIME_REFERENCE, - model.stagingLinkedService().type()); - Assertions.assertEquals("iqtamtyvsknxrw", model.stagingLinkedService().referenceName()); - Assertions.assertEquals("wnv", model.path()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeDataProxyProperties model = - new IntegrationRuntimeDataProxyProperties() - .withConnectVia( - new EntityReference() - .withType(IntegrationRuntimeEntityReferenceType.LINKED_SERVICE_REFERENCE) - .withReferenceName("wofali")) - .withStagingLinkedService( - new EntityReference() - .withType(IntegrationRuntimeEntityReferenceType.INTEGRATION_RUNTIME_REFERENCE) - .withReferenceName("iqtamtyvsknxrw")) - .withPath("wnv"); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeDataProxyProperties.class); - Assertions - .assertEquals(IntegrationRuntimeEntityReferenceType.LINKED_SERVICE_REFERENCE, model.connectVia().type()); - Assertions.assertEquals("wofali", model.connectVia().referenceName()); - Assertions - .assertEquals( - IntegrationRuntimeEntityReferenceType.INTEGRATION_RUNTIME_REFERENCE, - model.stagingLinkedService().type()); - Assertions.assertEquals("iqtamtyvsknxrw", model.stagingLinkedService().referenceName()); - Assertions.assertEquals("wnv", model.path()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeEnableinteractivequeryInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeEnableinteractivequeryInnerTests.java deleted file mode 100644 index a1329c49795e..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeEnableinteractivequeryInnerTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeEnableinteractivequeryInner; -import com.azure.resourcemanager.synapse.models.WorkspaceStatus; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeEnableinteractivequeryInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeEnableinteractivequeryInner model = - BinaryData - .fromString( - "{\"status\":\"Failed\",\"name\":\"bgdlfgtdysna\",\"properties\":\"dataflq\",\"error\":\"tqhamzjrw\"}") - .toObject(IntegrationRuntimeEnableinteractivequeryInner.class); - Assertions.assertEquals(WorkspaceStatus.FAILED, model.status()); - Assertions.assertEquals("bgdlfgtdysna", model.name()); - Assertions.assertEquals("tqhamzjrw", model.error()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeEnableinteractivequeryInner model = - new IntegrationRuntimeEnableinteractivequeryInner() - .withStatus(WorkspaceStatus.FAILED) - .withName("bgdlfgtdysna") - .withProperties("dataflq") - .withError("tqhamzjrw"); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeEnableinteractivequeryInner.class); - Assertions.assertEquals(WorkspaceStatus.FAILED, model.status()); - Assertions.assertEquals("bgdlfgtdysna", model.name()); - Assertions.assertEquals("tqhamzjrw", model.error()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeListResponseTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeListResponseTests.java deleted file mode 100644 index 7cccbc579e64..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeListResponseTests.java +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeResourceInner; -import com.azure.resourcemanager.synapse.models.IntegrationRuntime; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeListResponse; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeListResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeListResponse model = - BinaryData - .fromString( - "{\"value\":[{\"properties\":{\"type\":\"IntegrationRuntime\",\"description\":\"zytqjtwhauunfpr\",\"\":{}},\"etag\":\"etlxsm\",\"id\":\"pddouifamowaziyn\",\"name\":\"nlqwzdvpiwhx\",\"type\":\"szdtmaajquh\"},{\"properties\":{\"type\":\"IntegrationRuntime\",\"description\":\"ylr\",\"\":{}},\"etag\":\"ty\",\"id\":\"jbmzyospspsh\",\"name\":\"kfkyjp\",\"type\":\"sp\"},{\"properties\":{\"type\":\"IntegrationRuntime\",\"description\":\"ssdfpp\",\"\":{}},\"etag\":\"tieyujtvczkcny\",\"id\":\"rxmunjdxvgln\",\"name\":\"vxlx\",\"type\":\"aglqivbgkcvkh\"}],\"nextLink\":\"vuqd\"}") - .toObject(IntegrationRuntimeListResponse.class); - Assertions.assertEquals("zytqjtwhauunfpr", model.value().get(0).properties().description()); - Assertions.assertEquals("vuqd", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeListResponse model = - new IntegrationRuntimeListResponse() - .withValue( - Arrays - .asList( - new IntegrationRuntimeResourceInner() - .withProperties( - new IntegrationRuntime() - .withDescription("zytqjtwhauunfpr") - .withAdditionalProperties(mapOf("type", "IntegrationRuntime"))), - new IntegrationRuntimeResourceInner() - .withProperties( - new IntegrationRuntime() - .withDescription("ylr") - .withAdditionalProperties(mapOf("type", "IntegrationRuntime"))), - new IntegrationRuntimeResourceInner() - .withProperties( - new IntegrationRuntime() - .withDescription("ssdfpp") - .withAdditionalProperties(mapOf("type", "IntegrationRuntime"))))) - .withNextLink("vuqd"); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeListResponse.class); - Assertions.assertEquals("zytqjtwhauunfpr", model.value().get(0).properties().description()); - Assertions.assertEquals("vuqd", model.nextLink()); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeMonitoringDataInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeMonitoringDataInnerTests.java deleted file mode 100644 index 41c8c90cadc9..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeMonitoringDataInnerTests.java +++ /dev/null @@ -1,124 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeMonitoringDataInner; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeNodeMonitoringData; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeMonitoringDataInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeMonitoringDataInner model = - BinaryData - .fromString( - "{\"name\":\"jfrnxousxauzlwv\",\"nodes\":[{\"nodeName\":\"ohqfzizv\",\"availableMemoryInMB\":1707376707,\"cpuUtilization\":1537872857,\"concurrentJobsLimit\":898982207,\"concurrentJobsRunning\":2035263923,\"maxConcurrentJobs\":1281920058,\"sentBytes\":12.24882,\"receivedBytes\":47.57043,\"\":{\"lu\":\"dataovmribiattg\",\"fhnykzcugs\":\"datafotang\",\"xmcuqud\":\"datavxwlmzqwmvtxnj\"}},{\"nodeName\":\"vclx\",\"availableMemoryInMB\":1138354387,\"cpuUtilization\":267466114,\"concurrentJobsLimit\":1887329670,\"concurrentJobsRunning\":1186529927,\"maxConcurrentJobs\":1392311287,\"sentBytes\":75.20067,\"receivedBytes\":24.185776,\"\":{\"oxgjiuqhibt\":\"datazphdugneiknp\",\"pqwjedm\":\"dataz\",\"lkm\":\"datarrxxgewpktvq\"}},{\"nodeName\":\"zoyhlfbcgwg\",\"availableMemoryInMB\":1700222183,\"cpuUtilization\":325536454,\"concurrentJobsLimit\":809854276,\"concurrentJobsRunning\":189021776,\"maxConcurrentJobs\":1567586671,\"sentBytes\":49.565147,\"receivedBytes\":30.378746,\"\":{\"zpofoiyjwpfilk\":\"dataujqlafcbahh\",\"ogphuartvtiu\":\"datakkholvdndvia\",\"ahmnxhkxjqirw\":\"datayefchnm\"}},{\"nodeName\":\"eooxffifh\",\"availableMemoryInMB\":2004143928,\"cpuUtilization\":109793124,\"concurrentJobsLimit\":225627049,\"concurrentJobsRunning\":682704724,\"maxConcurrentJobs\":557932259,\"sentBytes\":78.87173,\"receivedBytes\":99.20141,\"\":{\"abo\":\"dataamhsycxhxzgazt\"}}]}") - .toObject(IntegrationRuntimeMonitoringDataInner.class); - Assertions.assertEquals("jfrnxousxauzlwv", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeMonitoringDataInner model = - new IntegrationRuntimeMonitoringDataInner() - .withName("jfrnxousxauzlwv") - .withNodes( - Arrays - .asList( - new IntegrationRuntimeNodeMonitoringData() - .withAdditionalProperties( - mapOf( - "nodeName", - "ohqfzizv", - "cpuUtilization", - 1537872857, - "receivedBytes", - 47.57043f, - "concurrentJobsLimit", - 898982207, - "concurrentJobsRunning", - 2035263923, - "maxConcurrentJobs", - 1281920058, - "availableMemoryInMB", - 1707376707, - "sentBytes", - 12.24882f)), - new IntegrationRuntimeNodeMonitoringData() - .withAdditionalProperties( - mapOf( - "nodeName", - "vclx", - "cpuUtilization", - 267466114, - "receivedBytes", - 24.185776f, - "concurrentJobsLimit", - 1887329670, - "concurrentJobsRunning", - 1186529927, - "maxConcurrentJobs", - 1392311287, - "availableMemoryInMB", - 1138354387, - "sentBytes", - 75.20067f)), - new IntegrationRuntimeNodeMonitoringData() - .withAdditionalProperties( - mapOf( - "nodeName", - "zoyhlfbcgwg", - "cpuUtilization", - 325536454, - "receivedBytes", - 30.378746f, - "concurrentJobsLimit", - 809854276, - "concurrentJobsRunning", - 189021776, - "maxConcurrentJobs", - 1567586671, - "availableMemoryInMB", - 1700222183, - "sentBytes", - 49.565147f)), - new IntegrationRuntimeNodeMonitoringData() - .withAdditionalProperties( - mapOf( - "nodeName", - "eooxffifh", - "cpuUtilization", - 109793124, - "receivedBytes", - 99.20141f, - "concurrentJobsLimit", - 225627049, - "concurrentJobsRunning", - 682704724, - "maxConcurrentJobs", - 557932259, - "availableMemoryInMB", - 2004143928, - "sentBytes", - 78.87173f)))); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeMonitoringDataInner.class); - Assertions.assertEquals("jfrnxousxauzlwv", model.name()); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeMonitoringDatasListWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeMonitoringDatasListWithResponseMockTests.java deleted file mode 100644 index 150fed612bb7..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeMonitoringDatasListWithResponseMockTests.java +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeMonitoringData; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimeMonitoringDatasListWithResponseMockTests { - @Test - public void testListWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"name\":\"vvbq\",\"nodes\":[{\"nodeName\":\"pecqxgiqasifubn\",\"availableMemoryInMB\":1709688838,\"cpuUtilization\":1611996375,\"concurrentJobsLimit\":1639928530,\"concurrentJobsRunning\":1006537929,\"maxConcurrentJobs\":1346091286,\"sentBytes\":19.122356,\"receivedBytes\":85.350815,\"\":{\"ztsm\":\"datapsvyouweuiyxfw\"}},{\"nodeName\":\"b\",\"availableMemoryInMB\":1928757915,\"cpuUtilization\":1814212451,\"concurrentJobsLimit\":1282004231,\"concurrentJobsRunning\":144160834,\"maxConcurrentJobs\":391617196,\"sentBytes\":82.4508,\"receivedBytes\":53.69606,\"\":{\"gfzdgjfcycrsvl\":\"datado\",\"ajquzxpixhyoi\":\"datayyhigqkzjuqw\",\"bennmfkbp\":\"datanfdbgsoscienezf\"}},{\"nodeName\":\"rtek\",\"availableMemoryInMB\":1427118648,\"cpuUtilization\":1710851051,\"concurrentJobsLimit\":434969559,\"concurrentJobsRunning\":1382237615,\"maxConcurrentJobs\":379543430,\"sentBytes\":41.117268,\"receivedBytes\":37.443043,\"\":{\"youergaghp\":\"dataztvktjhffecqko\"}},{\"nodeName\":\"xkpyehhfdyldh\",\"availableMemoryInMB\":1925877640,\"cpuUtilization\":773030447,\"concurrentJobsLimit\":711923719,\"concurrentJobsRunning\":1024474601,\"maxConcurrentJobs\":774713965,\"sentBytes\":49.221462,\"receivedBytes\":70.63647,\"\":{\"hpjlwyxedznmxrf\":\"dataeunokakz\",\"px\":\"datamckewvmyif\"}}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - IntegrationRuntimeMonitoringData response = - manager - .integrationRuntimeMonitoringDatas() - .listWithResponse("kk", "xvlzjxplhpevasyn", "vzjyielb", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("vvbq", response.name()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodeIpAddressInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodeIpAddressInnerTests.java deleted file mode 100644 index db61effc25e6..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodeIpAddressInnerTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeNodeIpAddressInner; - -public final class IntegrationRuntimeNodeIpAddressInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeNodeIpAddressInner model = - BinaryData.fromString("{\"ipAddress\":\"tlt\"}").toObject(IntegrationRuntimeNodeIpAddressInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeNodeIpAddressInner model = new IntegrationRuntimeNodeIpAddressInner(); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeNodeIpAddressInner.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodeIpAddressOperationsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodeIpAddressOperationsGetWithResponseMockTests.java deleted file mode 100644 index 16a58e7f91f3..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodeIpAddressOperationsGetWithResponseMockTests.java +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeNodeIpAddress; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimeNodeIpAddressOperationsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{\"ipAddress\":\"kmv\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - IntegrationRuntimeNodeIpAddress response = - manager - .integrationRuntimeNodeIpAddressOperations() - .getWithResponse("opdweoft", "or", "a", "gsioc", com.azure.core.util.Context.NONE) - .getValue(); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodeMonitoringDataTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodeMonitoringDataTests.java deleted file mode 100644 index 6bfcc64dd099..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodeMonitoringDataTests.java +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeNodeMonitoringData; -import java.util.HashMap; -import java.util.Map; - -public final class IntegrationRuntimeNodeMonitoringDataTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeNodeMonitoringData model = - BinaryData - .fromString( - "{\"nodeName\":\"vmfqhppubo\",\"availableMemoryInMB\":1380428673,\"cpuUtilization\":1908236647,\"concurrentJobsLimit\":61402651,\"concurrentJobsRunning\":58075104,\"maxConcurrentJobs\":342947659,\"sentBytes\":99.36763,\"receivedBytes\":14.429962,\"\":{\"kauxof\":\"datatcjuahokqto\",\"ywhslwkojpllndnp\":\"datahfphwpnulaiywze\"}}") - .toObject(IntegrationRuntimeNodeMonitoringData.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeNodeMonitoringData model = - new IntegrationRuntimeNodeMonitoringData() - .withAdditionalProperties( - mapOf( - "nodeName", - "vmfqhppubo", - "cpuUtilization", - 1908236647, - "receivedBytes", - 14.429962f, - "concurrentJobsLimit", - 61402651, - "concurrentJobsRunning", - 58075104, - "maxConcurrentJobs", - 342947659, - "availableMemoryInMB", - 1380428673, - "sentBytes", - 99.36763f)); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeNodeMonitoringData.class); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodesDeleteWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodesDeleteWithResponseMockTests.java deleted file mode 100644 index be2b97ba65fb..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodesDeleteWithResponseMockTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimeNodesDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .integrationRuntimeNodes() - .deleteWithResponse("qz", "ti", "gufy", "fdk", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodesGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodesGetWithResponseMockTests.java deleted file mode 100644 index c348e3952b75..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodesGetWithResponseMockTests.java +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.SelfHostedIntegrationRuntimeNode; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimeNodesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"nodeName\":\"snqliwkmzojfe\",\"machineName\":\"alhtgmknaz\",\"hostServiceUri\":\"jbhrpgiqsttcu\",\"status\":\"Upgrading\",\"capabilities\":{\"wifhbksldttohq\":\"aixpqj\"},\"versionStatus\":\"naihtgsiqikvllr\",\"version\":\"p\",\"registerTime\":\"2021-06-12T06:33:48Z\",\"lastConnectTime\":\"2020-12-24T05:36:47Z\",\"expiryTime\":\"2021-02-19T00:24Z\",\"lastStartTime\":\"2021-04-10T17:50:58Z\",\"lastStopTime\":\"2021-10-02T11:27:17Z\",\"lastUpdateResult\":\"Fail\",\"lastStartUpdateTime\":\"2021-08-08T15:01:23Z\",\"lastEndUpdateTime\":\"2021-06-24T10:13:12Z\",\"isActiveDispatcher\":false,\"concurrentJobsLimit\":505721663,\"maxConcurrentJobs\":608355983,\"\":{\"epr\":\"dataklwzlw\",\"zfjsxscbd\":\"dataejzltka\",\"nwsb\":\"dataxapgrcqebmvrdjom\"}}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - SelfHostedIntegrationRuntimeNode response = - manager - .integrationRuntimeNodes() - .getWithResponse("bkkteo", "ejogmkor", "vmvm", "ofnqhlbs", com.azure.core.util.Context.NONE) - .getValue(); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodesUpdateWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodesUpdateWithResponseMockTests.java deleted file mode 100644 index b2af6e4c208a..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeNodesUpdateWithResponseMockTests.java +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.SelfHostedIntegrationRuntimeNode; -import com.azure.resourcemanager.synapse.models.UpdateIntegrationRuntimeNodeRequest; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimeNodesUpdateWithResponseMockTests { - @Test - public void testUpdateWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"nodeName\":\"toj\",\"machineName\":\"fnybydhuihaouw\",\"hostServiceUri\":\"huao\",\"status\":\"Initializing\",\"capabilities\":{\"amqprlo\":\"hwvumosqir\",\"zcmtagelajdyolj\":\"rugejcvjkjy\",\"qfmzsizzhravrc\":\"qy\"},\"versionStatus\":\"jymgqbgcxhn\",\"version\":\"gzxlermkmerghski\",\"registerTime\":\"2021-05-14T02:10:11Z\",\"lastConnectTime\":\"2021-02-27T06:12:37Z\",\"expiryTime\":\"2021-11-21T06:30:45Z\",\"lastStartTime\":\"2021-03-02T04:05:56Z\",\"lastStopTime\":\"2021-02-15T10:23:10Z\",\"lastUpdateResult\":\"None\",\"lastStartUpdateTime\":\"2021-11-07T19:57:43Z\",\"lastEndUpdateTime\":\"2021-05-23T05:58:13Z\",\"isActiveDispatcher\":true,\"concurrentJobsLimit\":1899853683,\"maxConcurrentJobs\":882272566,\"\":{\"yuf\":\"datahkpafyaloowwzizz\"}}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - SelfHostedIntegrationRuntimeNode response = - manager - .integrationRuntimeNodes() - .updateWithResponse( - "vdlsflxkqesdfeds", - "gzancoinmphy", - "cqidkltvdhqnufbx", - "e", - new UpdateIntegrationRuntimeNodeRequest().withConcurrentJobsLimit(440645964), - com.azure.core.util.Context.NONE) - .getValue(); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeObjectMetadatasListWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeObjectMetadatasListWithResponseMockTests.java deleted file mode 100644 index f6d0a0a60bb7..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeObjectMetadatasListWithResponseMockTests.java +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.GetSsisObjectMetadataRequest; -import com.azure.resourcemanager.synapse.models.SsisObjectMetadataListResponse; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimeObjectMetadatasListWithResponseMockTests { - @Test - public void testListWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"type\":\"SsisObjectMetadata\",\"id\":6737583390037331667,\"name\":\"zwyhjmbjiqe\",\"description\":\"xdbsohcw\"},{\"type\":\"SsisObjectMetadata\",\"id\":2416182295765214933,\"name\":\"kgdet\",\"description\":\"wcanzbjekwuyckyv\"},{\"type\":\"SsisObjectMetadata\",\"id\":3184946001439055930,\"name\":\"uffiwjbctvbpzu\",\"description\":\"jtotdxposcs\"}],\"nextLink\":\"wuusiecktybh\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - SsisObjectMetadataListResponse response = - manager - .integrationRuntimeObjectMetadatas() - .listWithResponse( - "a", - "xvzfffhtjnwos", - "tfjxtvlx", - new GetSsisObjectMetadataRequest().withMetadataPath("qfcwr"), - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(6737583390037331667L, response.value().get(0).id()); - Assertions.assertEquals("zwyhjmbjiqe", response.value().get(0).name()); - Assertions.assertEquals("xdbsohcw", response.value().get(0).description()); - Assertions.assertEquals("wuusiecktybh", response.nextLink()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeObjectMetadatasRefreshMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeObjectMetadatasRefreshMockTests.java deleted file mode 100644 index f676ab517141..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeObjectMetadatasRefreshMockTests.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.SsisObjectMetadataStatusResponse; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimeObjectMetadatasRefreshMockTests { - @Test - public void testRefresh() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"status\":\"rslaatep\",\"name\":\"ujjzgxq\",\"properties\":\"wlxrhgt\",\"error\":\"vtqqy\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - SsisObjectMetadataStatusResponse response = - manager - .integrationRuntimeObjectMetadatas() - .refresh("uxidhhxomilddxj", "d", "gxwjwil", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("rslaatep", response.status()); - Assertions.assertEquals("ujjzgxq", response.name()); - Assertions.assertEquals("wlxrhgt", response.properties()); - Assertions.assertEquals("vtqqy", response.error()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeOperationStatusInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeOperationStatusInnerTests.java deleted file mode 100644 index 2334bcecf9dd..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeOperationStatusInnerTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeOperationStatusInner; -import com.azure.resourcemanager.synapse.models.WorkspaceStatus; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeOperationStatusInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeOperationStatusInner model = - BinaryData - .fromString( - "{\"status\":\"InProgress\",\"name\":\"uughtuqfecjxeyg\",\"properties\":\"datahxuicbuewmrs\",\"error\":\"jlxuz\"}") - .toObject(IntegrationRuntimeOperationStatusInner.class); - Assertions.assertEquals(WorkspaceStatus.IN_PROGRESS, model.status()); - Assertions.assertEquals("uughtuqfecjxeyg", model.name()); - Assertions.assertEquals("jlxuz", model.error()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeOperationStatusInner model = - new IntegrationRuntimeOperationStatusInner() - .withStatus(WorkspaceStatus.IN_PROGRESS) - .withName("uughtuqfecjxeyg") - .withProperties("datahxuicbuewmrs") - .withError("jlxuz"); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeOperationStatusInner.class); - Assertions.assertEquals(WorkspaceStatus.IN_PROGRESS, model.status()); - Assertions.assertEquals("uughtuqfecjxeyg", model.name()); - Assertions.assertEquals("jlxuz", model.error()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpointTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpointTests.java deleted file mode 100644 index 2c8d55ef8be6..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpointTests.java +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeOutboundNetworkDependenciesEndpoint; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpointTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint model = - BinaryData - .fromString( - "{\"category\":\"ixjawrtm\",\"endpoints\":[{\"domainName\":\"yccxlzhcox\",\"endpointDetails\":[]},{\"domainName\":\"khenlus\",\"endpointDetails\":[]},{\"domainName\":\"tjxtxr\",\"endpointDetails\":[]},{\"domainName\":\"jvidttge\",\"endpointDetails\":[]}]}") - .toObject(IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint.class); - Assertions.assertEquals("ixjawrtm", model.category()); - Assertions.assertEquals("yccxlzhcox", model.endpoints().get(0).domainName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint model = - new IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint() - .withCategory("ixjawrtm") - .withEndpoints( - Arrays - .asList( - new IntegrationRuntimeOutboundNetworkDependenciesEndpoint() - .withDomainName("yccxlzhcox") - .withEndpointDetails(Arrays.asList()), - new IntegrationRuntimeOutboundNetworkDependenciesEndpoint() - .withDomainName("khenlus") - .withEndpointDetails(Arrays.asList()), - new IntegrationRuntimeOutboundNetworkDependenciesEndpoint() - .withDomainName("tjxtxr") - .withEndpointDetails(Arrays.asList()), - new IntegrationRuntimeOutboundNetworkDependenciesEndpoint() - .withDomainName("jvidttge") - .withEndpointDetails(Arrays.asList()))); - model = - BinaryData.fromObject(model).toObject(IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint.class); - Assertions.assertEquals("ixjawrtm", model.category()); - Assertions.assertEquals("yccxlzhcox", model.endpoints().get(0).domainName()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointDetailsTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointDetailsTests.java deleted file mode 100644 index 7ea20809a150..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointDetailsTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeOutboundNetworkDependenciesEndpointDetailsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails model = - BinaryData - .fromString("{\"port\":1798028438}") - .toObject(IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails.class); - Assertions.assertEquals(1798028438, model.port()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails model = - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails().withPort(1798028438); - model = - BinaryData.fromObject(model).toObject(IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails.class); - Assertions.assertEquals(1798028438, model.port()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointTests.java deleted file mode 100644 index 89e95cc7006f..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeOutboundNetworkDependenciesEndpoint; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeOutboundNetworkDependenciesEndpointTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeOutboundNetworkDependenciesEndpoint model = - BinaryData - .fromString("{\"domainName\":\"vyjtcvu\",\"endpointDetails\":[{\"port\":1264024384}]}") - .toObject(IntegrationRuntimeOutboundNetworkDependenciesEndpoint.class); - Assertions.assertEquals("vyjtcvu", model.domainName()); - Assertions.assertEquals(1264024384, model.endpointDetails().get(0).port()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeOutboundNetworkDependenciesEndpoint model = - new IntegrationRuntimeOutboundNetworkDependenciesEndpoint() - .withDomainName("vyjtcvu") - .withEndpointDetails( - Arrays - .asList( - new IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails().withPort(1264024384))); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeOutboundNetworkDependenciesEndpoint.class); - Assertions.assertEquals("vyjtcvu", model.domainName()); - Assertions.assertEquals(1264024384, model.endpointDetails().get(0).port()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInnerTests.java deleted file mode 100644 index d1a7a1b19c92..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInnerTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner model = - BinaryData - .fromString( - "{\"value\":[{\"category\":\"tfjgt\",\"endpoints\":[]},{\"category\":\"vzuyturmlmu\",\"endpoints\":[]},{\"category\":\"bauiropi\",\"endpoints\":[]},{\"category\":\"onwpnga\",\"endpoints\":[]}]}") - .toObject(IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner.class); - Assertions.assertEquals("tfjgt", model.value().get(0).category()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner model = - new IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner() - .withValue( - Arrays - .asList( - new IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint() - .withCategory("tfjgt") - .withEndpoints(Arrays.asList()), - new IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint() - .withCategory("vzuyturmlmu") - .withEndpoints(Arrays.asList()), - new IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint() - .withCategory("bauiropi") - .withEndpoints(Arrays.asList()), - new IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint() - .withCategory("onwpnga") - .withEndpoints(Arrays.asList()))); - model = - BinaryData - .fromObject(model) - .toObject(IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponseInner.class); - Assertions.assertEquals("tfjgt", model.value().get(0).category()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeResourceInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeResourceInnerTests.java deleted file mode 100644 index 075a0333951a..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeResourceInnerTests.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeResourceInner; -import com.azure.resourcemanager.synapse.models.IntegrationRuntime; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeResourceInner model = - BinaryData - .fromString( - "{\"properties\":{\"type\":\"IntegrationRuntime\",\"description\":\"xlxqzvn\",\"\":{\"brqbsmswzi\":\"databycucrwnamikz\",\"vhczznvfby\":\"datagfuhokzrusw\",\"vumwmxqh\":\"datajsxjwwix\",\"hflzokxco\":\"datadvnoamldsehaohdj\"}},\"etag\":\"e\",\"id\":\"nje\",\"name\":\"agltsxoa\",\"type\":\"ftgz\"}") - .toObject(IntegrationRuntimeResourceInner.class); - Assertions.assertEquals("xlxqzvn", model.properties().description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeResourceInner model = - new IntegrationRuntimeResourceInner() - .withProperties( - new IntegrationRuntime() - .withDescription("xlxqzvn") - .withAdditionalProperties(mapOf("type", "IntegrationRuntime"))); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeResourceInner.class); - Assertions.assertEquals("xlxqzvn", model.properties().description()); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeStatusOperationsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeStatusOperationsGetWithResponseMockTests.java deleted file mode 100644 index 1b6c90a5c18a..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeStatusOperationsGetWithResponseMockTests.java +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeStatusResponse; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimeStatusOperationsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"name\":\"gjpytpmpvdnogehl\",\"properties\":{\"type\":\"IntegrationRuntimeStatus\",\"dataFactoryName\":\"b\",\"state\":\"AccessDenied\",\"\":{\"k\":\"datau\",\"bx\":\"dataaxzs\",\"clflioe\":\"datayjisskobq\"}}}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - IntegrationRuntimeStatusResponse response = - manager - .integrationRuntimeStatusOperations() - .getWithResponse("jjtpdyzoutxfptof", "gnuywezygva", "gaaqw", com.azure.core.util.Context.NONE) - .getValue(); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeStatusResponseInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeStatusResponseInnerTests.java deleted file mode 100644 index 066aed3dd28a..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeStatusResponseInnerTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeStatusResponseInner; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeStatus; -import java.util.HashMap; -import java.util.Map; - -public final class IntegrationRuntimeStatusResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeStatusResponseInner model = - BinaryData - .fromString( - "{\"name\":\"cpzgpxtiv\",\"properties\":{\"type\":\"IntegrationRuntimeStatus\",\"dataFactoryName\":\"knidib\",\"state\":\"Offline\",\"\":{\"r\":\"datap\",\"rmzvupo\":\"datagovfgpikqmhhaow\"}}}") - .toObject(IntegrationRuntimeStatusResponseInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeStatusResponseInner model = - new IntegrationRuntimeStatusResponseInner() - .withProperties( - new IntegrationRuntimeStatus() - .withAdditionalProperties( - mapOf( - "dataFactoryName", "knidib", "state", "Offline", "type", "IntegrationRuntimeStatus"))); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeStatusResponseInner.class); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeStatusTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeStatusTests.java deleted file mode 100644 index 84cfda64ec77..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeStatusTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeStatus; -import java.util.HashMap; -import java.util.Map; - -public final class IntegrationRuntimeStatusTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeStatus model = - BinaryData - .fromString( - "{\"type\":\"IntegrationRuntimeStatus\",\"dataFactoryName\":\"zdfuydzvkfvxcnqm\",\"state\":\"Offline\",\"\":{\"bemzqkzszuwi\":\"dataokmvkhlggd\",\"ljfp\":\"datatglxx\",\"pqcbfrmbodthsq\":\"datapicrmnzhrgmqgjsx\"}}") - .toObject(IntegrationRuntimeStatus.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeStatus model = - new IntegrationRuntimeStatus() - .withAdditionalProperties( - mapOf( - "dataFactoryName", "zdfuydzvkfvxcnqm", "state", "Offline", "type", "IntegrationRuntimeStatus")); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeStatus.class); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeStopOperationStatusInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeStopOperationStatusInnerTests.java deleted file mode 100644 index d95cca3e1686..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeStopOperationStatusInnerTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeStopOperationStatusInner; -import com.azure.resourcemanager.synapse.models.WorkspaceStatus; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeStopOperationStatusInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeStopOperationStatusInner model = - BinaryData - .fromString( - "{\"status\":\"InProgress\",\"name\":\"usxjbaqehg\",\"properties\":\"dataohzjqatucoigeb\",\"error\":\"cnwfepbnwgfmxjg\"}") - .toObject(IntegrationRuntimeStopOperationStatusInner.class); - Assertions.assertEquals(WorkspaceStatus.IN_PROGRESS, model.status()); - Assertions.assertEquals("usxjbaqehg", model.name()); - Assertions.assertEquals("cnwfepbnwgfmxjg", model.error()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeStopOperationStatusInner model = - new IntegrationRuntimeStopOperationStatusInner() - .withStatus(WorkspaceStatus.IN_PROGRESS) - .withName("usxjbaqehg") - .withProperties("dataohzjqatucoigeb") - .withError("cnwfepbnwgfmxjg"); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeStopOperationStatusInner.class); - Assertions.assertEquals(WorkspaceStatus.IN_PROGRESS, model.status()); - Assertions.assertEquals("usxjbaqehg", model.name()); - Assertions.assertEquals("cnwfepbnwgfmxjg", model.error()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeTests.java deleted file mode 100644 index d27363207916..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.IntegrationRuntime; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntime model = - BinaryData - .fromString( - "{\"type\":\"IntegrationRuntime\",\"description\":\"pbswvefloccsrm\",\"\":{\"cjxgrytf\":\"datahmipgawtxxpkyjc\",\"noxuztrksx\":\"datapcycilrmcaykg\",\"jtwkjaos\":\"datapndfcpfnznt\",\"smgbzahgxqdl\":\"dataxuzvoamktcqi\"}}") - .toObject(IntegrationRuntime.class); - Assertions.assertEquals("pbswvefloccsrm", model.description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntime model = - new IntegrationRuntime() - .withDescription("pbswvefloccsrm") - .withAdditionalProperties(mapOf("type", "IntegrationRuntime")); - model = BinaryData.fromObject(model).toObject(IntegrationRuntime.class); - Assertions.assertEquals("pbswvefloccsrm", model.description()); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeVNetPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeVNetPropertiesTests.java deleted file mode 100644 index 41254ae1cb48..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimeVNetPropertiesTests.java +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeVNetProperties; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class IntegrationRuntimeVNetPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IntegrationRuntimeVNetProperties model = - BinaryData - .fromString( - "{\"vNetId\":\"iua\",\"subnet\":\"cgm\",\"publicIPs\":[\"pfinzcpdltkrlg\",\"mtbdrvcqgu\",\"fzhompheq\",\"urelyujlfyoump\"],\"subnetId\":\"yec\",\"\":{\"joclxiutgjcyzy\":\"dataigptajbrzmqxucyc\"}}") - .toObject(IntegrationRuntimeVNetProperties.class); - Assertions.assertEquals("iua", model.vNetId()); - Assertions.assertEquals("cgm", model.subnet()); - Assertions.assertEquals("pfinzcpdltkrlg", model.publicIPs().get(0)); - Assertions.assertEquals("yec", model.subnetId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IntegrationRuntimeVNetProperties model = - new IntegrationRuntimeVNetProperties() - .withVNetId("iua") - .withSubnet("cgm") - .withPublicIPs(Arrays.asList("pfinzcpdltkrlg", "mtbdrvcqgu", "fzhompheq", "urelyujlfyoump")) - .withSubnetId("yec") - .withAdditionalProperties(mapOf()); - model = BinaryData.fromObject(model).toObject(IntegrationRuntimeVNetProperties.class); - Assertions.assertEquals("iua", model.vNetId()); - Assertions.assertEquals("cgm", model.subnet()); - Assertions.assertEquals("pfinzcpdltkrlg", model.publicIPs().get(0)); - Assertions.assertEquals("yec", model.subnetId()); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesCreateMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesCreateMockTests.java deleted file mode 100644 index 555672154421..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesCreateMockTests.java +++ /dev/null @@ -1,90 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.IntegrationRuntime; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeResource; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimesCreateMockTests { - @Test - public void testCreate() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"type\":\"IntegrationRuntime\",\"description\":\"rkgjnmzpaslavxjf\",\"\":{\"qywjopa\":\"datafpieidzlvs\"}},\"etag\":\"yhydvikmfn\",\"id\":\"pmillxgjsci\",\"name\":\"wgsoriobijeiydy\",\"type\":\"uynhbokayrgwybr\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - IntegrationRuntimeResource response = - manager - .integrationRuntimes() - .define("gtnse") - .withExistingWorkspace("dcaytujraxd", "pryj") - .withProperties( - new IntegrationRuntime() - .withDescription("uxlymsvvyl") - .withAdditionalProperties(mapOf("type", "IntegrationRuntime"))) - .withIfMatch("eylqlocvvujexayg") - .create(); - - Assertions.assertEquals("rkgjnmzpaslavxjf", response.properties().description()); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesDeleteMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesDeleteMockTests.java deleted file mode 100644 index 5ecd1007a53e..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesDeleteMockTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimesDeleteMockTests { - @Test - public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.integrationRuntimes().delete("xlu", "vsolzwil", "ngojfsqebuuxjx", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesDisableInteractiveQueryMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesDisableInteractiveQueryMockTests.java deleted file mode 100644 index d4227c8e758f..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesDisableInteractiveQueryMockTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimesDisableInteractiveQueryMockTests { - @Test - public void testDisableInteractiveQuery() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .integrationRuntimes() - .disableInteractiveQuery("b", "s", "uerbgpxebjl", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesEnableInteractiveQueryMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesEnableInteractiveQueryMockTests.java deleted file mode 100644 index ee74cdaad0eb..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesEnableInteractiveQueryMockTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimesEnableInteractiveQueryMockTests { - @Test - public void testEnableInteractiveQuery() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .integrationRuntimes() - .enableInteractiveQuery("jqlxspmrj", "tryldsxebuhsxr", "nmgsdaluyckhef", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesGetWithResponseMockTests.java deleted file mode 100644 index 0c987574c2ff..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesGetWithResponseMockTests.java +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeResource; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"type\":\"IntegrationRuntime\",\"description\":\"v\",\"\":{\"aqm\":\"dataytoxuwhttnzq\",\"dzzmssgpgv\":\"databgszplusdek\",\"squnycwztlv\":\"datakyejidbdq\"}},\"etag\":\"snmr\",\"id\":\"kyjtrepw\",\"name\":\"wfkcauxuvavcpf\",\"type\":\"dofuckclb\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - IntegrationRuntimeResource response = - manager - .integrationRuntimes() - .getWithResponse("stgfczl", "d", "cidt", "vamyyznmrgcdo", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("v", response.properties().description()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesListByWorkspaceMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesListByWorkspaceMockTests.java deleted file mode 100644 index f67f784318ae..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesListByWorkspaceMockTests.java +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeResource; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimesListByWorkspaceMockTests { - @Test - public void testListByWorkspace() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"properties\":{\"type\":\"IntegrationRuntime\",\"description\":\"w\",\"\":{\"mqiydvxcgdh\":\"dataxakglhpsesrfg\",\"cbqp\":\"datahgoqgsoyqyxyj\"}},\"etag\":\"spglq\",\"id\":\"o\",\"name\":\"tdahneaoovtyjzti\",\"type\":\"fwjlof\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager - .integrationRuntimes() - .listByWorkspace("laumydmhweqjf", "xydgtokvqbvwg", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("w", response.iterator().next().properties().description()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesListOutboundNetworkDependenciesEndpointsWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesListOutboundNetworkDependenciesEndpointsWithResponseMockTests.java deleted file mode 100644 index e097f0cdc5a4..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesListOutboundNetworkDependenciesEndpointsWithResponseMockTests.java +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimesListOutboundNetworkDependenciesEndpointsWithResponseMockTests { - @Test - public void testListOutboundNetworkDependenciesEndpointsWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{\"value\":[{\"category\":\"gbsfsgsaenwldf\",\"endpoints\":[]}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse response = - manager - .integrationRuntimes() - .listOutboundNetworkDependenciesEndpointsWithResponse( - "znllaslk", "khjqjpvbaihxjtg", "gtaiywbq", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("gbsfsgsaenwldf", response.value().get(0).category()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesStartMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesStartMockTests.java deleted file mode 100644 index e2abb5a875b5..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesStartMockTests.java +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeStatusResponse; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimesStartMockTests { - @Test - public void testStart() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"name\":\"wxn\",\"properties\":{\"type\":\"IntegrationRuntimeStatus\",\"dataFactoryName\":\"hhnoyrzaaoee\",\"state\":\"Starting\",\"\":{\"xoxdjxldnaryyi\":\"datanvjeateaxxc\",\"edoyqxlunkft\":\"datazkdolrndwdbvxvza\",\"n\":\"datamcxqqxmyzklao\"}}}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - IntegrationRuntimeStatusResponse response = - manager.integrationRuntimes().start("ekfsrm", "uklajvcfoc", "hapejov", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesStopMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesStopMockTests.java deleted file mode 100644 index 91a0bc2334c0..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesStopMockTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimesStopMockTests { - @Test - public void testStop() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.integrationRuntimes().stop("ohrvmz", "qr", "zadi", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesUpgradeWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesUpgradeWithResponseMockTests.java deleted file mode 100644 index 0a4af40835bf..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IntegrationRuntimesUpgradeWithResponseMockTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class IntegrationRuntimesUpgradeWithResponseMockTests { - @Test - public void testUpgradeWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .integrationRuntimes() - .upgradeWithResponse("fxfjwp", "kktpmbmxbmbr", "gzzxljbkhxsd", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IotHubConnectionPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IotHubConnectionPropertiesTests.java deleted file mode 100644 index 6b925209125d..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IotHubConnectionPropertiesTests.java +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.IotHubConnectionProperties; -import com.azure.resourcemanager.synapse.models.IotHubDataFormat; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class IotHubConnectionPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IotHubConnectionProperties model = - BinaryData - .fromString( - "{\"iotHubResourceId\":\"to\",\"consumerGroup\":\"alswbnfd\",\"tableName\":\"pld\",\"mappingRuleName\":\"jnsfzygleexahvmy\",\"dataFormat\":\"PSV\",\"eventSystemProperties\":[\"carycsjjzyvoaqa\",\"uvehzptd\",\"krrbhmpful\"],\"sharedAccessPolicyName\":\"be\",\"provisioningState\":\"Moving\"}") - .toObject(IotHubConnectionProperties.class); - Assertions.assertEquals("to", model.iotHubResourceId()); - Assertions.assertEquals("alswbnfd", model.consumerGroup()); - Assertions.assertEquals("pld", model.tableName()); - Assertions.assertEquals("jnsfzygleexahvmy", model.mappingRuleName()); - Assertions.assertEquals(IotHubDataFormat.PSV, model.dataFormat()); - Assertions.assertEquals("carycsjjzyvoaqa", model.eventSystemProperties().get(0)); - Assertions.assertEquals("be", model.sharedAccessPolicyName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IotHubConnectionProperties model = - new IotHubConnectionProperties() - .withIotHubResourceId("to") - .withConsumerGroup("alswbnfd") - .withTableName("pld") - .withMappingRuleName("jnsfzygleexahvmy") - .withDataFormat(IotHubDataFormat.PSV) - .withEventSystemProperties(Arrays.asList("carycsjjzyvoaqa", "uvehzptd", "krrbhmpful")) - .withSharedAccessPolicyName("be"); - model = BinaryData.fromObject(model).toObject(IotHubConnectionProperties.class); - Assertions.assertEquals("to", model.iotHubResourceId()); - Assertions.assertEquals("alswbnfd", model.consumerGroup()); - Assertions.assertEquals("pld", model.tableName()); - Assertions.assertEquals("jnsfzygleexahvmy", model.mappingRuleName()); - Assertions.assertEquals(IotHubDataFormat.PSV, model.dataFormat()); - Assertions.assertEquals("carycsjjzyvoaqa", model.eventSystemProperties().get(0)); - Assertions.assertEquals("be", model.sharedAccessPolicyName()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IotHubDataConnectionTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IotHubDataConnectionTests.java deleted file mode 100644 index 88946a4b2553..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IotHubDataConnectionTests.java +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.IotHubDataConnection; -import com.azure.resourcemanager.synapse.models.IotHubDataFormat; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class IotHubDataConnectionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IotHubDataConnection model = - BinaryData - .fromString( - "{\"kind\":\"IotHub\",\"properties\":{\"iotHubResourceId\":\"uzlbcnn\",\"consumerGroup\":\"t\",\"tableName\":\"xawqy\",\"mappingRuleName\":\"lhdyzmyckzex\",\"dataFormat\":\"TXT\",\"eventSystemProperties\":[\"kywymxgaabj\",\"dtfohfaog\",\"vkiwrsiwdyjqu\"],\"sharedAccessPolicyName\":\"ykcrraue\",\"provisioningState\":\"Succeeded\"},\"location\":\"uehogdd\",\"id\":\"bcbgydlqidywmhm\",\"name\":\"tyrilkfbnrqqxvz\",\"type\":\"pbnfnqtx\"}") - .toObject(IotHubDataConnection.class); - Assertions.assertEquals("uehogdd", model.location()); - Assertions.assertEquals("uzlbcnn", model.iotHubResourceId()); - Assertions.assertEquals("t", model.consumerGroup()); - Assertions.assertEquals("xawqy", model.tableName()); - Assertions.assertEquals("lhdyzmyckzex", model.mappingRuleName()); - Assertions.assertEquals(IotHubDataFormat.TXT, model.dataFormat()); - Assertions.assertEquals("kywymxgaabj", model.eventSystemProperties().get(0)); - Assertions.assertEquals("ykcrraue", model.sharedAccessPolicyName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IotHubDataConnection model = - new IotHubDataConnection() - .withLocation("uehogdd") - .withIotHubResourceId("uzlbcnn") - .withConsumerGroup("t") - .withTableName("xawqy") - .withMappingRuleName("lhdyzmyckzex") - .withDataFormat(IotHubDataFormat.TXT) - .withEventSystemProperties(Arrays.asList("kywymxgaabj", "dtfohfaog", "vkiwrsiwdyjqu")) - .withSharedAccessPolicyName("ykcrraue"); - model = BinaryData.fromObject(model).toObject(IotHubDataConnection.class); - Assertions.assertEquals("uehogdd", model.location()); - Assertions.assertEquals("uzlbcnn", model.iotHubResourceId()); - Assertions.assertEquals("t", model.consumerGroup()); - Assertions.assertEquals("xawqy", model.tableName()); - Assertions.assertEquals("lhdyzmyckzex", model.mappingRuleName()); - Assertions.assertEquals(IotHubDataFormat.TXT, model.dataFormat()); - Assertions.assertEquals("kywymxgaabj", model.eventSystemProperties().get(0)); - Assertions.assertEquals("ykcrraue", model.sharedAccessPolicyName()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRuleInfoInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRuleInfoInnerTests.java deleted file mode 100644 index 01857d4c3039..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRuleInfoInnerTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.IpFirewallRuleInfoInner; -import org.junit.jupiter.api.Assertions; - -public final class IpFirewallRuleInfoInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IpFirewallRuleInfoInner model = - BinaryData - .fromString( - "{\"properties\":{\"endIpAddress\":\"kuksjtxukcdm\",\"provisioningState\":\"Succeeded\",\"startIpAddress\":\"ryuanzwuxzdxtay\"},\"id\":\"lhmwhfpmrqobm\",\"name\":\"u\",\"type\":\"knryrtihfxtij\"}") - .toObject(IpFirewallRuleInfoInner.class); - Assertions.assertEquals("kuksjtxukcdm", model.endIpAddress()); - Assertions.assertEquals("ryuanzwuxzdxtay", model.startIpAddress()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IpFirewallRuleInfoInner model = - new IpFirewallRuleInfoInner().withEndIpAddress("kuksjtxukcdm").withStartIpAddress("ryuanzwuxzdxtay"); - model = BinaryData.fromObject(model).toObject(IpFirewallRuleInfoInner.class); - Assertions.assertEquals("kuksjtxukcdm", model.endIpAddress()); - Assertions.assertEquals("ryuanzwuxzdxtay", model.startIpAddress()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRuleInfoListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRuleInfoListResultTests.java deleted file mode 100644 index 39a592406765..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRuleInfoListResultTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.IpFirewallRuleInfoInner; -import com.azure.resourcemanager.synapse.models.IpFirewallRuleInfoListResult; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class IpFirewallRuleInfoListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IpFirewallRuleInfoListResult model = - BinaryData - .fromString( - "{\"nextLink\":\"ifsqesaagdfmg\",\"value\":[{\"properties\":{\"endIpAddress\":\"xrifkwmrvkts\",\"provisioningState\":\"Succeeded\",\"startIpAddress\":\"ocipaouajpsqucm\"},\"id\":\"o\",\"name\":\"fdkfogk\",\"type\":\"ygjofjdd\"},{\"properties\":{\"endIpAddress\":\"rd\",\"provisioningState\":\"Deleting\",\"startIpAddress\":\"wnw\"},\"id\":\"eitjz\",\"name\":\"flusarhmof\",\"type\":\"qhsmyurkdtml\"}]}") - .toObject(IpFirewallRuleInfoListResult.class); - Assertions.assertEquals("ifsqesaagdfmg", model.nextLink()); - Assertions.assertEquals("xrifkwmrvkts", model.value().get(0).endIpAddress()); - Assertions.assertEquals("ocipaouajpsqucm", model.value().get(0).startIpAddress()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IpFirewallRuleInfoListResult model = - new IpFirewallRuleInfoListResult() - .withNextLink("ifsqesaagdfmg") - .withValue( - Arrays - .asList( - new IpFirewallRuleInfoInner() - .withEndIpAddress("xrifkwmrvkts") - .withStartIpAddress("ocipaouajpsqucm"), - new IpFirewallRuleInfoInner().withEndIpAddress("rd").withStartIpAddress("wnw"))); - model = BinaryData.fromObject(model).toObject(IpFirewallRuleInfoListResult.class); - Assertions.assertEquals("ifsqesaagdfmg", model.nextLink()); - Assertions.assertEquals("xrifkwmrvkts", model.value().get(0).endIpAddress()); - Assertions.assertEquals("ocipaouajpsqucm", model.value().get(0).startIpAddress()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulePropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulePropertiesTests.java deleted file mode 100644 index aedfa73b09bf..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulePropertiesTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.IpFirewallRuleProperties; -import org.junit.jupiter.api.Assertions; - -public final class IpFirewallRulePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - IpFirewallRuleProperties model = - BinaryData - .fromString( - "{\"endIpAddress\":\"zvgnwzs\",\"provisioningState\":\"Provisioning\",\"startIpAddress\":\"zufcyzkohdbi\"}") - .toObject(IpFirewallRuleProperties.class); - Assertions.assertEquals("zvgnwzs", model.endIpAddress()); - Assertions.assertEquals("zufcyzkohdbi", model.startIpAddress()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - IpFirewallRuleProperties model = - new IpFirewallRuleProperties().withEndIpAddress("zvgnwzs").withStartIpAddress("zufcyzkohdbi"); - model = BinaryData.fromObject(model).toObject(IpFirewallRuleProperties.class); - Assertions.assertEquals("zvgnwzs", model.endIpAddress()); - Assertions.assertEquals("zufcyzkohdbi", model.startIpAddress()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesCreateOrUpdateMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesCreateOrUpdateMockTests.java deleted file mode 100644 index 363f756b4c01..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesCreateOrUpdateMockTests.java +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.IpFirewallRuleInfo; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class IpFirewallRulesCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"endIpAddress\":\"bmfuvqarwzxu\",\"provisioningState\":\"Succeeded\",\"startIpAddress\":\"lui\"},\"id\":\"mbwxsfg\",\"name\":\"dmbvxekraok\",\"type\":\"kbudbtwaokb\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - IpFirewallRuleInfo response = - manager - .ipFirewallRules() - .define("smmd") - .withExistingWorkspace("yyrlhgenu", "ejgvkvebaqszllrz") - .withEndIpAddress("ihzpimcqrhnxtmi") - .withStartIpAddress("gxsvtza") - .create(); - - Assertions.assertEquals("bmfuvqarwzxu", response.endIpAddress()); - Assertions.assertEquals("lui", response.startIpAddress()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesDeleteMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesDeleteMockTests.java deleted file mode 100644 index 3533734f2549..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesDeleteMockTests.java +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.IpFirewallRuleInfo; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class IpFirewallRulesDeleteMockTests { - @Test - public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"endIpAddress\":\"bglcjkayspthzodu\",\"provisioningState\":\"Succeeded\",\"startIpAddress\":\"jtgblios\"},\"id\":\"kfmkmfdjxyxgbk\",\"name\":\"qvjcteoe\",\"type\":\"l\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - IpFirewallRuleInfo response = - manager.ipFirewallRules().delete("ygg", "pmcrdcuelj", "iahxmfqryarvs", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("bglcjkayspthzodu", response.endIpAddress()); - Assertions.assertEquals("jtgblios", response.startIpAddress()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesGetWithResponseMockTests.java deleted file mode 100644 index ca75a46553ad..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesGetWithResponseMockTests.java +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.IpFirewallRuleInfo; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class IpFirewallRulesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"endIpAddress\":\"cnabxzf\",\"provisioningState\":\"Provisioning\",\"startIpAddress\":\"ytexvzilmhivzk\"},\"id\":\"ww\",\"name\":\"cknrzda\",\"type\":\"lskzptjxul\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - IpFirewallRuleInfo response = - manager - .ipFirewallRules() - .getWithResponse("slskkz", "xv", "nzdpvoco", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("cnabxzf", response.endIpAddress()); - Assertions.assertEquals("ytexvzilmhivzk", response.startIpAddress()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesListByWorkspaceMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesListByWorkspaceMockTests.java deleted file mode 100644 index 1170611a2f21..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesListByWorkspaceMockTests.java +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.IpFirewallRuleInfo; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class IpFirewallRulesListByWorkspaceMockTests { - @Test - public void testListByWorkspace() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"properties\":{\"endIpAddress\":\"mufun\",\"provisioningState\":\"Provisioning\",\"startIpAddress\":\"xvi\"},\"id\":\"yeyng\",\"name\":\"g\",\"type\":\"rquv\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager.ipFirewallRules().listByWorkspace("ifdxkecifhocjxw", "loozrvt", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("mufun", response.iterator().next().endIpAddress()); - Assertions.assertEquals("xvi", response.iterator().next().startIpAddress()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesReplaceAllMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesReplaceAllMockTests.java deleted file mode 100644 index a22edb7d15e0..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/IpFirewallRulesReplaceAllMockTests.java +++ /dev/null @@ -1,91 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.fluent.models.IpFirewallRuleProperties; -import com.azure.resourcemanager.synapse.models.ReplaceAllFirewallRulesOperationResponse; -import com.azure.resourcemanager.synapse.models.ReplaceAllIpFirewallRulesRequest; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class IpFirewallRulesReplaceAllMockTests { - @Test - public void testReplaceAll() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{\"operationId\":\"kpysthhzagjf\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ReplaceAllFirewallRulesOperationResponse response = - manager - .ipFirewallRules() - .replaceAll( - "eucyrth", - "qlehmcgcjeinu", - new ReplaceAllIpFirewallRulesRequest() - .withIpFirewallRules( - mapOf( - "ttmbqdabzfiv", - new IpFirewallRuleProperties().withEndIpAddress("am").withStartIpAddress("vq"))), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("kpysthhzagjf", response.operationId()); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KekIdentityPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KekIdentityPropertiesTests.java deleted file mode 100644 index 8d13d58eb411..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KekIdentityPropertiesTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.KekIdentityProperties; -import org.junit.jupiter.api.Assertions; - -public final class KekIdentityPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - KekIdentityProperties model = - BinaryData - .fromString("{\"userAssignedIdentity\":\"rc\",\"useSystemAssignedIdentity\":\"datatso\"}") - .toObject(KekIdentityProperties.class); - Assertions.assertEquals("rc", model.userAssignedIdentity()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - KekIdentityProperties model = - new KekIdentityProperties().withUserAssignedIdentity("rc").withUseSystemAssignedIdentity("datatso"); - model = BinaryData.fromObject(model).toObject(KekIdentityProperties.class); - Assertions.assertEquals("rc", model.userAssignedIdentity()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoOperationsListMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoOperationsListMockTests.java deleted file mode 100644 index 6980d0fa7eba..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoOperationsListMockTests.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.Operation; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class KustoOperationsListMockTests { - @Test - public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"name\":\"leev\",\"display\":{\"provider\":\"ayrehj\",\"operation\":\"wvap\",\"resource\":\"lzhpzihacenq\",\"description\":\"lxnqzubfonfdbgmk\"},\"origin\":\"mjcwtewfhxwyrkbr\",\"properties\":\"datazl\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.kustoOperations().list(com.azure.core.util.Context.NONE); - - Assertions.assertEquals("leev", response.iterator().next().name()); - Assertions.assertEquals("ayrehj", response.iterator().next().display().provider()); - Assertions.assertEquals("wvap", response.iterator().next().display().operation()); - Assertions.assertEquals("lzhpzihacenq", response.iterator().next().display().resource()); - Assertions.assertEquals("lxnqzubfonfdbgmk", response.iterator().next().display().description()); - Assertions.assertEquals("mjcwtewfhxwyrkbr", response.iterator().next().origin()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateMockTests.java deleted file mode 100644 index df1057fde878..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateMockTests.java +++ /dev/null @@ -1,89 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.AttachedDatabaseConfiguration; -import com.azure.resourcemanager.synapse.models.DefaultPrincipalsModificationKind; -import com.azure.resourcemanager.synapse.models.TableLevelSharingProperties; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"location\":\"frbzakp\",\"properties\":{\"provisioningState\":\"Succeeded\",\"databaseName\":\"raqp\",\"clusterResourceId\":\"jpsucmxi\",\"attachedDatabaseNames\":[\"qxynqj\",\"satkyvscb\",\"ngcrusxhircpgcvs\",\"kkjbjolpy\"],\"defaultPrincipalsModificationKind\":\"Union\",\"tableLevelSharingProperties\":{\"tablesToInclude\":[],\"tablesToExclude\":[],\"externalTablesToInclude\":[],\"externalTablesToExclude\":[],\"materializedViewsToInclude\":[],\"materializedViewsToExclude\":[]}},\"id\":\"vhmlieoi\",\"name\":\"owxxbh\",\"type\":\"psyioqemqwtqszzg\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - AttachedDatabaseConfiguration response = - manager - .kustoPoolAttachedDatabaseConfigurations() - .define("kpkpkocmacc") - .withExistingKustoPool("lhqvbk", "rbpyhssrl", "bxxo") - .withRegion("icyvspeslh") - .withDatabaseName("gvrccpu") - .withKustoPoolResourceId("ddhgajkrdyd") - .withDefaultPrincipalsModificationKind(DefaultPrincipalsModificationKind.UNION) - .withTableLevelSharingProperties( - new TableLevelSharingProperties() - .withTablesToInclude(Arrays.asList()) - .withTablesToExclude(Arrays.asList()) - .withExternalTablesToInclude(Arrays.asList()) - .withExternalTablesToExclude(Arrays.asList()) - .withMaterializedViewsToInclude(Arrays.asList()) - .withMaterializedViewsToExclude(Arrays.asList())) - .create(); - - Assertions.assertEquals("frbzakp", response.location()); - Assertions.assertEquals("raqp", response.databaseName()); - Assertions.assertEquals("jpsucmxi", response.kustoPoolResourceId()); - Assertions.assertEquals(DefaultPrincipalsModificationKind.UNION, response.defaultPrincipalsModificationKind()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsDeleteMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsDeleteMockTests.java deleted file mode 100644 index 817bf79e9149..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsDeleteMockTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class KustoPoolAttachedDatabaseConfigurationsDeleteMockTests { - @Test - public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .kustoPoolAttachedDatabaseConfigurations() - .delete("dzffzjwztsmpchg", "ryelgfyatigfg", "rrkdknczgor", "wnvojtvmdev", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsGetWithResponseMockTests.java deleted file mode 100644 index 995725724a82..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsGetWithResponseMockTests.java +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.AttachedDatabaseConfiguration; -import com.azure.resourcemanager.synapse.models.DefaultPrincipalsModificationKind; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class KustoPoolAttachedDatabaseConfigurationsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"location\":\"rdetawevxehuekdx\",\"properties\":{\"provisioningState\":\"Deleting\",\"databaseName\":\"dovbrbler\",\"clusterResourceId\":\"prdaqcc\",\"attachedDatabaseNames\":[\"bnygdjc\",\"xwbpwyykdig\"],\"defaultPrincipalsModificationKind\":\"None\",\"tableLevelSharingProperties\":{\"tablesToInclude\":[],\"tablesToExclude\":[],\"externalTablesToInclude\":[],\"externalTablesToExclude\":[],\"materializedViewsToInclude\":[],\"materializedViewsToExclude\":[]}},\"id\":\"nidmjqmvytg\",\"name\":\"iqlarhqtwvcaze\",\"type\":\"d\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - AttachedDatabaseConfiguration response = - manager - .kustoPoolAttachedDatabaseConfigurations() - .getWithResponse( - "fpcrtnuguef", "xijtebdveywet", "rhlolmcnwepfg", "vbbvaqdljnpetl", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("rdetawevxehuekdx", response.location()); - Assertions.assertEquals("dovbrbler", response.databaseName()); - Assertions.assertEquals("prdaqcc", response.kustoPoolResourceId()); - Assertions.assertEquals(DefaultPrincipalsModificationKind.NONE, response.defaultPrincipalsModificationKind()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsListByKustoPoolMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsListByKustoPoolMockTests.java deleted file mode 100644 index 08d68d5af25a..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolAttachedDatabaseConfigurationsListByKustoPoolMockTests.java +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.AttachedDatabaseConfiguration; -import com.azure.resourcemanager.synapse.models.DefaultPrincipalsModificationKind; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class KustoPoolAttachedDatabaseConfigurationsListByKustoPoolMockTests { - @Test - public void testListByKustoPool() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"location\":\"uqvcmlaexbzbqufp\",\"properties\":{\"provisioningState\":\"Succeeded\",\"databaseName\":\"jzay\",\"clusterResourceId\":\"ldrorhyogzmsimeh\",\"attachedDatabaseNames\":[\"uwdhtq\",\"hyhnimxtns\"],\"defaultPrincipalsModificationKind\":\"Union\",\"tableLevelSharingProperties\":{\"tablesToInclude\":[],\"tablesToExclude\":[],\"externalTablesToInclude\":[],\"externalTablesToExclude\":[],\"materializedViewsToInclude\":[],\"materializedViewsToExclude\":[]}},\"id\":\"nghojov\",\"name\":\"eyym\",\"type\":\"cjixxf\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager - .kustoPoolAttachedDatabaseConfigurations() - .listByKustoPool("wxywpjhspboxhif", "pskpeswyhhmif", "uajxwwvcmmpeg", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("uqvcmlaexbzbqufp", response.iterator().next().location()); - Assertions.assertEquals("jzay", response.iterator().next().databaseName()); - Assertions.assertEquals("ldrorhyogzmsimeh", response.iterator().next().kustoPoolResourceId()); - Assertions - .assertEquals( - DefaultPrincipalsModificationKind.UNION, - response.iterator().next().defaultPrincipalsModificationKind()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolCheckNameRequestTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolCheckNameRequestTests.java deleted file mode 100644 index 6a4c730ca048..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolCheckNameRequestTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.KustoPoolCheckNameRequest; -import org.junit.jupiter.api.Assertions; - -public final class KustoPoolCheckNameRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - KustoPoolCheckNameRequest model = - BinaryData.fromString("{\"name\":\"fiqgeaar\"}").toObject(KustoPoolCheckNameRequest.class); - Assertions.assertEquals("fiqgeaar", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - KustoPoolCheckNameRequest model = new KustoPoolCheckNameRequest().withName("fiqgeaar"); - model = BinaryData.fromObject(model).toObject(KustoPoolCheckNameRequest.class); - Assertions.assertEquals("fiqgeaar", model.name()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolChildResourcesCheckNameAvailabilityWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolChildResourcesCheckNameAvailabilityWithResponseMockTests.java deleted file mode 100644 index a50f2dc98965..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolChildResourcesCheckNameAvailabilityWithResponseMockTests.java +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.CheckNameResult; -import com.azure.resourcemanager.synapse.models.DatabaseCheckNameRequest; -import com.azure.resourcemanager.synapse.models.Reason; -import com.azure.resourcemanager.synapse.models.Type; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class KustoPoolChildResourcesCheckNameAvailabilityWithResponseMockTests { - @Test - public void testCheckNameAvailabilityWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"nameAvailable\":true,\"name\":\"hlbecgih\",\"message\":\"pemnrrabo\",\"reason\":\"AlreadyExists\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - CheckNameResult response = - manager - .kustoPoolChildResources() - .checkNameAvailabilityWithResponse( - "bfjzabbwzgvzuaix", - "dckixspsaigavkmv", - "xzerej", - new DatabaseCheckNameRequest() - .withName("kpzjbyetjxryopt") - .withType(Type.MICROSOFT_SYNAPSE_WORKSPACES_KUSTO_POOLS_ATTACHED_DATABASE_CONFIGURATIONS), - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(true, response.nameAvailable()); - Assertions.assertEquals("hlbecgih", response.name()); - Assertions.assertEquals("pemnrrabo", response.message()); - Assertions.assertEquals(Reason.ALREADY_EXISTS, response.reason()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsCheckNameAvailabilityWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsCheckNameAvailabilityWithResponseMockTests.java deleted file mode 100644 index ace522d02ca3..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsCheckNameAvailabilityWithResponseMockTests.java +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.CheckNameResult; -import com.azure.resourcemanager.synapse.models.DataConnectionCheckNameRequest; -import com.azure.resourcemanager.synapse.models.Reason; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class KustoPoolDataConnectionsCheckNameAvailabilityWithResponseMockTests { - @Test - public void testCheckNameAvailabilityWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"nameAvailable\":true,\"name\":\"vxrktjcjigcwtsp\",\"message\":\"bqxasevchefpgee\",\"reason\":\"Invalid\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - CheckNameResult response = - manager - .kustoPoolDataConnections() - .checkNameAvailabilityWithResponse( - "bkdbtq", - "vmmnii", - "yholhjns", - "bggicnqwlctmw", - new DataConnectionCheckNameRequest().withName("blxk"), - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(true, response.nameAvailable()); - Assertions.assertEquals("vxrktjcjigcwtsp", response.name()); - Assertions.assertEquals("bqxasevchefpgee", response.message()); - Assertions.assertEquals(Reason.INVALID, response.reason()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsCreateOrUpdateMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsCreateOrUpdateMockTests.java deleted file mode 100644 index 5f2a05c92228..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsCreateOrUpdateMockTests.java +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.fluent.models.DataConnectionInner; -import com.azure.resourcemanager.synapse.models.DataConnection; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class KustoPoolDataConnectionsCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"kind\":\"DataConnection\",\"location\":\"tkqowsd\",\"id\":\"hczygpmg\",\"name\":\"jculojhhylx\",\"type\":\"evfiyymotu\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - DataConnection response = - manager - .kustoPoolDataConnections() - .createOrUpdate( - "mw", - "bios", - "qsykq", - "dqwdrtxtfdaglmr", - "ok", - new DataConnectionInner().withLocation("ert"), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("tkqowsd", response.location()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsDataConnectionValidationMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsDataConnectionValidationMockTests.java deleted file mode 100644 index 3e069a0899b7..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsDataConnectionValidationMockTests.java +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.fluent.models.DataConnectionInner; -import com.azure.resourcemanager.synapse.fluent.models.DataConnectionValidationInner; -import com.azure.resourcemanager.synapse.models.DataConnectionValidationListResult; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class KustoPoolDataConnectionsDataConnectionValidationMockTests { - @Test - public void testDataConnectionValidation() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{\"value\":[{\"errorMessage\":\"xwc\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - DataConnectionValidationListResult response = - manager - .kustoPoolDataConnections() - .dataConnectionValidation( - "bruho", - "aemwcgimm", - "imaabsqqlon", - "z", - new DataConnectionValidationInner() - .withDataConnectionName("wcahdkmbjsmihr") - .withProperties(new DataConnectionInner().withLocation("zbfsjwfczglk")), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("xwc", response.value().get(0).errorMessage()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsDeleteMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsDeleteMockTests.java deleted file mode 100644 index 74b5e2573d4b..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsDeleteMockTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class KustoPoolDataConnectionsDeleteMockTests { - @Test - public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .kustoPoolDataConnections() - .delete("xbozpcjcnwjz", "qblxrnwvds", "oq", "zawwsdsorgf", "jxsawooau", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsGetWithResponseMockTests.java deleted file mode 100644 index 8f0591ade495..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsGetWithResponseMockTests.java +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.DataConnection; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class KustoPoolDataConnectionsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"kind\":\"DataConnection\",\"location\":\"jwyuveox\",\"id\":\"z\",\"name\":\"wahdrdvhaztkxbi\",\"type\":\"zfgxmbry\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - DataConnection response = - manager - .kustoPoolDataConnections() - .getWithResponse( - "txoqxtdn", - "ujsjirkrpskcj", - "mmofbnivdqtkyk", - "axnlsfgnysca", - "cptbzetxygxxicee", - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("jwyuveox", response.location()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsListByDatabaseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsListByDatabaseMockTests.java deleted file mode 100644 index 95754efb5000..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsListByDatabaseMockTests.java +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.DataConnection; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class KustoPoolDataConnectionsListByDatabaseMockTests { - @Test - public void testListByDatabase() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"kind\":\"DataConnection\",\"location\":\"ddtbfmekjcnginxd\",\"id\":\"aoy\",\"name\":\"xf\",\"type\":\"gyxzmxynofxl\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager - .kustoPoolDataConnections() - .listByDatabase("faspsdzkucszghd", "aqipmnxclfrsbzrn", "u", "wvpu", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("ddtbfmekjcnginxd", response.iterator().next().location()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsUpdateMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsUpdateMockTests.java deleted file mode 100644 index 5df8f3b0d3f2..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDataConnectionsUpdateMockTests.java +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.fluent.models.DataConnectionInner; -import com.azure.resourcemanager.synapse.models.DataConnection; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class KustoPoolDataConnectionsUpdateMockTests { - @Test - public void testUpdate() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"kind\":\"DataConnection\",\"location\":\"ufxuzmsvzyqrbr\",\"id\":\"hj\",\"name\":\"lxfikjkxaravww\",\"type\":\"asnjeglht\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - DataConnection response = - manager - .kustoPoolDataConnections() - .update( - "bybwjmtftcvelnir", - "pk", - "nstp", - "qp", - "bj", - new DataConnectionInner().withLocation("vswmehfxrtt"), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("ufxuzmsvzyqrbr", response.location()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsCheckNameAvailabilityWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsCheckNameAvailabilityWithResponseMockTests.java deleted file mode 100644 index 31b3d91ea4cd..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsCheckNameAvailabilityWithResponseMockTests.java +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.CheckNameResult; -import com.azure.resourcemanager.synapse.models.DatabasePrincipalAssignmentCheckNameRequest; -import com.azure.resourcemanager.synapse.models.Reason; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class KustoPoolDatabasePrincipalAssignmentsCheckNameAvailabilityWithResponseMockTests { - @Test - public void testCheckNameAvailabilityWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"nameAvailable\":false,\"name\":\"fuqmmfjewfeqb\",\"message\":\"dostwygufmwe\",\"reason\":\"Invalid\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - CheckNameResult response = - manager - .kustoPoolDatabasePrincipalAssignments() - .checkNameAvailabilityWithResponse( - "zisvbrqgcyjpgaw", - "pkwonrzpghlr", - "tbgblxbuibrvjzta", - "lvsmfjihv", - new DatabasePrincipalAssignmentCheckNameRequest().withName("jcq"), - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(false, response.nameAvailable()); - Assertions.assertEquals("fuqmmfjewfeqb", response.name()); - Assertions.assertEquals("dostwygufmwe", response.message()); - Assertions.assertEquals(Reason.INVALID, response.reason()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateMockTests.java deleted file mode 100644 index f43e5f8b9d93..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateMockTests.java +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.DatabasePrincipalAssignment; -import com.azure.resourcemanager.synapse.models.DatabasePrincipalRole; -import com.azure.resourcemanager.synapse.models.PrincipalType; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"principalId\":\"ttak\",\"role\":\"Monitor\",\"tenantId\":\"zigh\",\"principalType\":\"Group\",\"tenantName\":\"b\",\"principalName\":\"vucfvvraab\",\"provisioningState\":\"Succeeded\",\"aadObjectId\":\"eewlsuxpcbw\"},\"id\":\"wjyji\",\"name\":\"nioroofmft\",\"type\":\"spmcreihuftrnigh\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - DatabasePrincipalAssignment response = - manager - .kustoPoolDatabasePrincipalAssignments() - .define("lynzlyvap") - .withExistingDatabase("scmyhrhjvszf", "bokndwpppq", "ojoevzzufytdx", "krbuoggtdltlcuha") - .withPrincipalId("ijvaylze") - .withRole(DatabasePrincipalRole.UNRESTRICTED_VIEWER) - .withTenantId("psftqkrvmhvbvvc") - .withPrincipalType(PrincipalType.USER) - .create(); - - Assertions.assertEquals("ttak", response.principalId()); - Assertions.assertEquals(DatabasePrincipalRole.MONITOR, response.role()); - Assertions.assertEquals("zigh", response.tenantId()); - Assertions.assertEquals(PrincipalType.GROUP, response.principalType()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsDeleteMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsDeleteMockTests.java deleted file mode 100644 index e2f03b502329..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsDeleteMockTests.java +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class KustoPoolDatabasePrincipalAssignmentsDeleteMockTests { - @Test - public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .kustoPoolDatabasePrincipalAssignments() - .delete( - "ocytjgoeayokrw", - "mihwpadhedb", - "o", - "dczvothmkh", - "aozvbwfcnjhbpoel", - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsGetWithResponseMockTests.java deleted file mode 100644 index 5728fb517b68..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsGetWithResponseMockTests.java +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.DatabasePrincipalAssignment; -import com.azure.resourcemanager.synapse.models.DatabasePrincipalRole; -import com.azure.resourcemanager.synapse.models.PrincipalType; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class KustoPoolDatabasePrincipalAssignmentsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"principalId\":\"syqcjnqswxdowum\",\"role\":\"Viewer\",\"tenantId\":\"krcdi\",\"principalType\":\"Group\",\"tenantName\":\"lqddnhfknebwedd\",\"principalName\":\"yzcwy\",\"provisioningState\":\"Creating\",\"aadObjectId\":\"aqld\"},\"id\":\"bnwvpaq\",\"name\":\"qxfbbigcfddofx\",\"type\":\"fbmjyyrqaedwo\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - DatabasePrincipalAssignment response = - manager - .kustoPoolDatabasePrincipalAssignments() - .getWithResponse( - "l", "okjyghzt", "smiwtpcflc", "zswwvwi", "tdjtvbfpfhru", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("syqcjnqswxdowum", response.principalId()); - Assertions.assertEquals(DatabasePrincipalRole.VIEWER, response.role()); - Assertions.assertEquals("krcdi", response.tenantId()); - Assertions.assertEquals(PrincipalType.GROUP, response.principalType()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsListMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsListMockTests.java deleted file mode 100644 index c6e86611a86f..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasePrincipalAssignmentsListMockTests.java +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.DatabasePrincipalAssignment; -import com.azure.resourcemanager.synapse.models.DatabasePrincipalRole; -import com.azure.resourcemanager.synapse.models.PrincipalType; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class KustoPoolDatabasePrincipalAssignmentsListMockTests { - @Test - public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"properties\":{\"principalId\":\"dvhhplkhwwdkatve\",\"role\":\"Admin\",\"tenantId\":\"k\",\"principalType\":\"App\",\"tenantName\":\"zeyxryearmhp\",\"principalName\":\"uklvsmfa\",\"provisioningState\":\"Failed\",\"aadObjectId\":\"v\"},\"id\":\"poil\",\"name\":\"s\",\"type\":\"aemcezevftmh\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager - .kustoPoolDatabasePrincipalAssignments() - .list("gwzz", "wdtlcjgpvc", "zvzrbvgwxhlx", "mxvmdrwynbgovazo", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("dvhhplkhwwdkatve", response.iterator().next().principalId()); - Assertions.assertEquals(DatabasePrincipalRole.ADMIN, response.iterator().next().role()); - Assertions.assertEquals("k", response.iterator().next().tenantId()); - Assertions.assertEquals(PrincipalType.APP, response.iterator().next().principalType()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesCreateOrUpdateMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesCreateOrUpdateMockTests.java deleted file mode 100644 index 5f81099cd7ca..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesCreateOrUpdateMockTests.java +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.fluent.models.DatabaseInner; -import com.azure.resourcemanager.synapse.models.Database; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class KustoPoolDatabasesCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"kind\":\"Database\",\"location\":\"tcxmmqm\",\"id\":\"jkyjrexw\",\"name\":\"onbexft\",\"type\":\"daubheeggzgr\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - Database response = - manager - .kustoPoolDatabases() - .createOrUpdate( - "xexatmdmnrs", - "nxoirxy", - "dmiplois", - "kzsoxz", - new DatabaseInner().withLocation("twg"), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("tcxmmqm", response.location()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesDeleteMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesDeleteMockTests.java deleted file mode 100644 index 9afb92a189e7..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesDeleteMockTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class KustoPoolDatabasesDeleteMockTests { - @Test - public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .kustoPoolDatabases() - .delete("t", "dhmfppinm", "ikesmkwtzgfr", "gjhxerxl", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesGetWithResponseMockTests.java deleted file mode 100644 index 805019933e71..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesGetWithResponseMockTests.java +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.Database; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class KustoPoolDatabasesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"kind\":\"Database\",\"location\":\"sudy\",\"id\":\"mbhdo\",\"name\":\"m\",\"type\":\"ngkqlgxzduvxd\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - Database response = - manager - .kustoPoolDatabases() - .getWithResponse("bjepzwhj", "nfd", "bggcj", "zhblivw", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("sudy", response.location()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesListByKustoPoolMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesListByKustoPoolMockTests.java deleted file mode 100644 index e9a9e2d61999..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesListByKustoPoolMockTests.java +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.Database; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class KustoPoolDatabasesListByKustoPoolMockTests { - @Test - public void testListByKustoPool() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"kind\":\"Database\",\"location\":\"pgcmahiwfr\",\"id\":\"w\",\"name\":\"ch\",\"type\":\"apitskshfyftt\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager - .kustoPoolDatabases() - .listByKustoPool("ksikawanvmwdv", "jqcrbk", "mpnbnfgyweoj", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("pgcmahiwfr", response.iterator().next().location()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesUpdateMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesUpdateMockTests.java deleted file mode 100644 index 0da310adf82c..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolDatabasesUpdateMockTests.java +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.fluent.models.DatabaseInner; -import com.azure.resourcemanager.synapse.models.Database; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class KustoPoolDatabasesUpdateMockTests { - @Test - public void testUpdate() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"kind\":\"Database\",\"location\":\"ofe\",\"id\":\"hpfixoskkzdf\",\"name\":\"vsujybsrwz\",\"type\":\"mr\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - Database response = - manager - .kustoPoolDatabases() - .update( - "qtlfoz", - "umrtgjqg", - "cant", - "syxzxjmkanbc", - new DatabaseInner().withLocation("zofmexvtemaspm"), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("ofe", response.location()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolInnerTests.java deleted file mode 100644 index 911835f6d6a8..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolInnerTests.java +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.KustoPoolInner; -import com.azure.resourcemanager.synapse.models.AzureSku; -import com.azure.resourcemanager.synapse.models.OptimizedAutoscale; -import com.azure.resourcemanager.synapse.models.SkuName; -import com.azure.resourcemanager.synapse.models.SkuSize; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class KustoPoolInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - KustoPoolInner model = - BinaryData - .fromString( - "{\"sku\":{\"name\":\"Storage" - + " optimized\",\"capacity\":882727572,\"size\":\"Large\"},\"properties\":{\"state\":\"Creating\",\"provisioningState\":\"Moving\",\"uri\":\"kdfrdbiqmrjgeihf\",\"dataIngestionUri\":\"ggwfiwz\",\"stateReason\":\"mjpb\",\"optimizedAutoscale\":{\"version\":1813948953,\"isEnabled\":true,\"minimum\":1564431663,\"maximum\":342558293},\"enableStreamingIngest\":false,\"enablePurge\":false,\"languageExtensions\":{\"value\":[]},\"workspaceUID\":\"yfqi\"},\"etag\":\"xhnpo\",\"location\":\"qwcabvnui\",\"tags\":{\"fjlrxwtoauk\":\"yaswlpaugmr\"},\"id\":\"fkvcisi\",\"name\":\"moaedsxj\",\"type\":\"uivedwcgyeewxeiq\"}") - .toObject(KustoPoolInner.class); - Assertions.assertEquals("qwcabvnui", model.location()); - Assertions.assertEquals("yaswlpaugmr", model.tags().get("fjlrxwtoauk")); - Assertions.assertEquals(SkuName.STORAGE_OPTIMIZED, model.sku().name()); - Assertions.assertEquals(882727572, model.sku().capacity()); - Assertions.assertEquals(SkuSize.LARGE, model.sku().size()); - Assertions.assertEquals(1813948953, model.optimizedAutoscale().version()); - Assertions.assertEquals(true, model.optimizedAutoscale().isEnabled()); - Assertions.assertEquals(1564431663, model.optimizedAutoscale().minimum()); - Assertions.assertEquals(342558293, model.optimizedAutoscale().maximum()); - Assertions.assertEquals(false, model.enableStreamingIngest()); - Assertions.assertEquals(false, model.enablePurge()); - Assertions.assertEquals("yfqi", model.workspaceUid()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - KustoPoolInner model = - new KustoPoolInner() - .withLocation("qwcabvnui") - .withTags(mapOf("fjlrxwtoauk", "yaswlpaugmr")) - .withSku( - new AzureSku().withName(SkuName.STORAGE_OPTIMIZED).withCapacity(882727572).withSize(SkuSize.LARGE)) - .withOptimizedAutoscale( - new OptimizedAutoscale() - .withVersion(1813948953) - .withIsEnabled(true) - .withMinimum(1564431663) - .withMaximum(342558293)) - .withEnableStreamingIngest(false) - .withEnablePurge(false) - .withWorkspaceUid("yfqi"); - model = BinaryData.fromObject(model).toObject(KustoPoolInner.class); - Assertions.assertEquals("qwcabvnui", model.location()); - Assertions.assertEquals("yaswlpaugmr", model.tags().get("fjlrxwtoauk")); - Assertions.assertEquals(SkuName.STORAGE_OPTIMIZED, model.sku().name()); - Assertions.assertEquals(882727572, model.sku().capacity()); - Assertions.assertEquals(SkuSize.LARGE, model.sku().size()); - Assertions.assertEquals(1813948953, model.optimizedAutoscale().version()); - Assertions.assertEquals(true, model.optimizedAutoscale().isEnabled()); - Assertions.assertEquals(1564431663, model.optimizedAutoscale().minimum()); - Assertions.assertEquals(342558293, model.optimizedAutoscale().maximum()); - Assertions.assertEquals(false, model.enableStreamingIngest()); - Assertions.assertEquals(false, model.enablePurge()); - Assertions.assertEquals("yfqi", model.workspaceUid()); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolListResultInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolListResultInnerTests.java deleted file mode 100644 index 23a29a2c8598..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolListResultInnerTests.java +++ /dev/null @@ -1,130 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.KustoPoolInner; -import com.azure.resourcemanager.synapse.fluent.models.KustoPoolListResultInner; -import com.azure.resourcemanager.synapse.models.AzureSku; -import com.azure.resourcemanager.synapse.models.SkuName; -import com.azure.resourcemanager.synapse.models.SkuSize; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class KustoPoolListResultInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - KustoPoolListResultInner model = - BinaryData - .fromString( - "{\"value\":[{\"sku\":{\"name\":\"Storage" - + " optimized\",\"capacity\":949193893,\"size\":\"Medium\"},\"properties\":{\"state\":\"Deleted\",\"provisioningState\":\"Moving\",\"uri\":\"jcitdigsxcdglj\",\"dataIngestionUri\":\"keuachtomf\",\"stateReason\":\"ytswfp\",\"enableStreamingIngest\":true,\"enablePurge\":true,\"workspaceUID\":\"mskwhqjjysl\"},\"etag\":\"lpshhkvpedwqslsr\",\"location\":\"pq\",\"tags\":{\"qejo\":\"skondcbrwimu\",\"tljqobbpih\":\"ovyrrleaesinu\",\"bbmpxdlvykfre\":\"hcecybmrqbr\",\"wjksghudgzhxo\":\"crse\"},\"id\":\"jggsvo\",\"name\":\"jkxibda\",\"type\":\"hrkmdyomkxfbvfbh\"},{\"sku\":{\"name\":\"Compute" - + " optimized\",\"capacity\":1026762793,\"size\":\"Large\"},\"properties\":{\"state\":\"Stopped\",\"provisioningState\":\"Deleting\",\"uri\":\"eimawzovgkkumui\",\"dataIngestionUri\":\"cjc\",\"stateReason\":\"tbw\",\"enableStreamingIngest\":false,\"enablePurge\":false,\"workspaceUID\":\"comlikytwvczc\"},\"etag\":\"k\",\"location\":\"ve\",\"tags\":{\"qthe\":\"dvlvhbwrnfxtgdd\"},\"id\":\"n\",\"name\":\"naoyank\",\"type\":\"oe\"},{\"sku\":{\"name\":\"Storage" - + " optimized\",\"capacity\":1901940761,\"size\":\"Small\"},\"properties\":{\"state\":\"Deleting\",\"provisioningState\":\"Moving\",\"uri\":\"hdroznnh\",\"dataIngestionUri\":\"lktgjc\",\"stateReason\":\"guxhem\",\"enableStreamingIngest\":true,\"enablePurge\":false,\"workspaceUID\":\"zgfbukklelssx\"},\"etag\":\"ycsxzu\",\"location\":\"srlsmd\",\"tags\":{\"cdoewbidyv\":\"plpvm\",\"deugf\":\"eowxvgpi\"},\"id\":\"xzecpaxwkufykhvu\",\"name\":\"xepmrut\",\"type\":\"nabaobnslujd\"},{\"sku\":{\"name\":\"Storage" - + " optimized\",\"capacity\":571478298,\"size\":\"Large\"},\"properties\":{\"state\":\"Stopped\",\"provisioningState\":\"Running\",\"uri\":\"hywartspph\",\"dataIngestionUri\":\"xkykxdssjp\",\"stateReason\":\"mucfxhikkf\",\"enableStreamingIngest\":true,\"enablePurge\":false,\"workspaceUID\":\"cqlh\"},\"etag\":\"s\",\"location\":\"lmiiiovg\",\"tags\":{\"otiowlxteqd\":\"xuugqkc\",\"anblwphqlkccu\":\"tjgwdtguk\",\"iul\":\"gygqwah\",\"wzdufypivlsbb\":\"gniiprglvaw\"},\"id\":\"pmcubkmifoxxkub\",\"name\":\"phavpmhbrb\",\"type\":\"gvgovpbbttefjo\"}]}") - .toObject(KustoPoolListResultInner.class); - Assertions.assertEquals("pq", model.value().get(0).location()); - Assertions.assertEquals("skondcbrwimu", model.value().get(0).tags().get("qejo")); - Assertions.assertEquals(SkuName.STORAGE_OPTIMIZED, model.value().get(0).sku().name()); - Assertions.assertEquals(949193893, model.value().get(0).sku().capacity()); - Assertions.assertEquals(SkuSize.MEDIUM, model.value().get(0).sku().size()); - Assertions.assertEquals(true, model.value().get(0).enableStreamingIngest()); - Assertions.assertEquals(true, model.value().get(0).enablePurge()); - Assertions.assertEquals("mskwhqjjysl", model.value().get(0).workspaceUid()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - KustoPoolListResultInner model = - new KustoPoolListResultInner() - .withValue( - Arrays - .asList( - new KustoPoolInner() - .withLocation("pq") - .withTags( - mapOf( - "qejo", - "skondcbrwimu", - "tljqobbpih", - "ovyrrleaesinu", - "bbmpxdlvykfre", - "hcecybmrqbr", - "wjksghudgzhxo", - "crse")) - .withSku( - new AzureSku() - .withName(SkuName.STORAGE_OPTIMIZED) - .withCapacity(949193893) - .withSize(SkuSize.MEDIUM)) - .withEnableStreamingIngest(true) - .withEnablePurge(true) - .withWorkspaceUid("mskwhqjjysl"), - new KustoPoolInner() - .withLocation("ve") - .withTags(mapOf("qthe", "dvlvhbwrnfxtgdd")) - .withSku( - new AzureSku() - .withName(SkuName.COMPUTE_OPTIMIZED) - .withCapacity(1026762793) - .withSize(SkuSize.LARGE)) - .withEnableStreamingIngest(false) - .withEnablePurge(false) - .withWorkspaceUid("comlikytwvczc"), - new KustoPoolInner() - .withLocation("srlsmd") - .withTags(mapOf("cdoewbidyv", "plpvm", "deugf", "eowxvgpi")) - .withSku( - new AzureSku() - .withName(SkuName.STORAGE_OPTIMIZED) - .withCapacity(1901940761) - .withSize(SkuSize.SMALL)) - .withEnableStreamingIngest(true) - .withEnablePurge(false) - .withWorkspaceUid("zgfbukklelssx"), - new KustoPoolInner() - .withLocation("lmiiiovg") - .withTags( - mapOf( - "otiowlxteqd", - "xuugqkc", - "anblwphqlkccu", - "tjgwdtguk", - "iul", - "gygqwah", - "wzdufypivlsbb", - "gniiprglvaw")) - .withSku( - new AzureSku() - .withName(SkuName.STORAGE_OPTIMIZED) - .withCapacity(571478298) - .withSize(SkuSize.LARGE)) - .withEnableStreamingIngest(true) - .withEnablePurge(false) - .withWorkspaceUid("cqlh"))); - model = BinaryData.fromObject(model).toObject(KustoPoolListResultInner.class); - Assertions.assertEquals("pq", model.value().get(0).location()); - Assertions.assertEquals("skondcbrwimu", model.value().get(0).tags().get("qejo")); - Assertions.assertEquals(SkuName.STORAGE_OPTIMIZED, model.value().get(0).sku().name()); - Assertions.assertEquals(949193893, model.value().get(0).sku().capacity()); - Assertions.assertEquals(SkuSize.MEDIUM, model.value().get(0).sku().size()); - Assertions.assertEquals(true, model.value().get(0).enableStreamingIngest()); - Assertions.assertEquals(true, model.value().get(0).enablePurge()); - Assertions.assertEquals("mskwhqjjysl", model.value().get(0).workspaceUid()); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsCheckNameAvailabilityWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsCheckNameAvailabilityWithResponseMockTests.java deleted file mode 100644 index f83cc24f8849..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsCheckNameAvailabilityWithResponseMockTests.java +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.CheckNameResult; -import com.azure.resourcemanager.synapse.models.ClusterPrincipalAssignmentCheckNameRequest; -import com.azure.resourcemanager.synapse.models.Reason; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class KustoPoolPrincipalAssignmentsCheckNameAvailabilityWithResponseMockTests { - @Test - public void testCheckNameAvailabilityWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"nameAvailable\":false,\"name\":\"ocjnzdaiovrbhr\",\"message\":\"phkvyyz\",\"reason\":\"AlreadyExists\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - CheckNameResult response = - manager - .kustoPoolPrincipalAssignments() - .checkNameAvailabilityWithResponse( - "fh", - "fqkmwz", - "d", - new ClusterPrincipalAssignmentCheckNameRequest().withName("yoybm"), - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(false, response.nameAvailable()); - Assertions.assertEquals("ocjnzdaiovrbhr", response.name()); - Assertions.assertEquals("phkvyyz", response.message()); - Assertions.assertEquals(Reason.ALREADY_EXISTS, response.reason()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsCreateOrUpdateMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsCreateOrUpdateMockTests.java deleted file mode 100644 index c3b6abf5ba3c..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsCreateOrUpdateMockTests.java +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.ClusterPrincipalAssignment; -import com.azure.resourcemanager.synapse.models.ClusterPrincipalRole; -import com.azure.resourcemanager.synapse.models.PrincipalType; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class KustoPoolPrincipalAssignmentsCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"principalId\":\"duydwnwgru\",\"role\":\"AllDatabasesAdmin\",\"tenantId\":\"ldrdymnswx\",\"principalType\":\"User\",\"tenantName\":\"qwqnghxnimvy\",\"principalName\":\"rxgunnqgy\",\"provisioningState\":\"Succeeded\",\"aadObjectId\":\"ny\"},\"id\":\"uevqmvyumgmm\",\"name\":\"ebsnz\",\"type\":\"wgsqufmjxcyoseqc\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ClusterPrincipalAssignment response = - manager - .kustoPoolPrincipalAssignments() - .define("ulmwqgmhmqmiwx") - .withExistingKustoPool("ncgaull", "styygjq", "fvvzucqfgufjnbx") - .withPrincipalId("mwdukinhl") - .withRole(ClusterPrincipalRole.ALL_DATABASES_ADMIN) - .withTenantId("dekekzouyveww") - .withPrincipalType(PrincipalType.APP) - .create(); - - Assertions.assertEquals("duydwnwgru", response.principalId()); - Assertions.assertEquals(ClusterPrincipalRole.ALL_DATABASES_ADMIN, response.role()); - Assertions.assertEquals("ldrdymnswx", response.tenantId()); - Assertions.assertEquals(PrincipalType.USER, response.principalType()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsDeleteMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsDeleteMockTests.java deleted file mode 100644 index ba7d993b3c3f..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsDeleteMockTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class KustoPoolPrincipalAssignmentsDeleteMockTests { - @Test - public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .kustoPoolPrincipalAssignments() - .delete("qnpfydrfb", "cnyxbyx", "k", "mq", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsGetWithResponseMockTests.java deleted file mode 100644 index 33699213e3d4..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsGetWithResponseMockTests.java +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.ClusterPrincipalAssignment; -import com.azure.resourcemanager.synapse.models.ClusterPrincipalRole; -import com.azure.resourcemanager.synapse.models.PrincipalType; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class KustoPoolPrincipalAssignmentsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"principalId\":\"vwjdthkvpy\",\"role\":\"AllDatabasesAdmin\",\"tenantId\":\"afinmp\",\"principalType\":\"User\",\"tenantName\":\"pdkjrzfwkyluobdx\",\"principalName\":\"qdcclcv\",\"provisioningState\":\"Deleting\",\"aadObjectId\":\"p\"},\"id\":\"lcvwbzmfx\",\"name\":\"ry\",\"type\":\"fjxlpiy\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ClusterPrincipalAssignment response = - manager - .kustoPoolPrincipalAssignments() - .getWithResponse("zmz", "pcxitmh", "xrq", "cf", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("vwjdthkvpy", response.principalId()); - Assertions.assertEquals(ClusterPrincipalRole.ALL_DATABASES_ADMIN, response.role()); - Assertions.assertEquals("afinmp", response.tenantId()); - Assertions.assertEquals(PrincipalType.USER, response.principalType()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsListMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsListMockTests.java deleted file mode 100644 index 39d95da23535..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrincipalAssignmentsListMockTests.java +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.ClusterPrincipalAssignment; -import com.azure.resourcemanager.synapse.models.ClusterPrincipalRole; -import com.azure.resourcemanager.synapse.models.PrincipalType; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class KustoPoolPrincipalAssignmentsListMockTests { - @Test - public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"properties\":{\"principalId\":\"shrmnkcclpctuog\",\"role\":\"AllDatabasesViewer\",\"tenantId\":\"xjfsg\",\"principalType\":\"App\",\"tenantName\":\"poebnxsqcow\",\"principalName\":\"uyfqla\",\"provisioningState\":\"Deleting\",\"aadObjectId\":\"hsujk\"},\"id\":\"uzp\",\"name\":\"xqpwnikxkcajgrbr\",\"type\":\"tsvgoocqs\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager - .kustoPoolPrincipalAssignments() - .list("rxylaypd", "yzvelffo", "uriwhjdfrw", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("shrmnkcclpctuog", response.iterator().next().principalId()); - Assertions.assertEquals(ClusterPrincipalRole.ALL_DATABASES_VIEWER, response.iterator().next().role()); - Assertions.assertEquals("xjfsg", response.iterator().next().tenantId()); - Assertions.assertEquals(PrincipalType.APP, response.iterator().next().principalType()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrivateLinkResourcesInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrivateLinkResourcesInnerTests.java deleted file mode 100644 index d138884b71fa..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrivateLinkResourcesInnerTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.KustoPoolPrivateLinkResourcesInner; - -public final class KustoPoolPrivateLinkResourcesInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - KustoPoolPrivateLinkResourcesInner model = - BinaryData - .fromString( - "{\"properties\":{\"groupId\":\"mxhzzysevus\",\"requiredMembers\":[\"zrrryv\",\"imipskdyzatvfuz\",\"aftjvvruxwigsy\"],\"requiredZoneNames\":[\"qdsmjtg\"],\"provisioningState\":\"Moving\"},\"id\":\"gkkileplkcsmkn\",\"name\":\"wtbbaedorvvmqf\",\"type\":\"oygbdgwumgxd\"}") - .toObject(KustoPoolPrivateLinkResourcesInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - KustoPoolPrivateLinkResourcesInner model = new KustoPoolPrivateLinkResourcesInner(); - model = BinaryData.fromObject(model).toObject(KustoPoolPrivateLinkResourcesInner.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrivateLinkResourcesOperationsListMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrivateLinkResourcesOperationsListMockTests.java deleted file mode 100644 index 6a78e2dfb273..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPrivateLinkResourcesOperationsListMockTests.java +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.KustoPoolPrivateLinkResources; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class KustoPoolPrivateLinkResourcesOperationsListMockTests { - @Test - public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"properties\":{\"groupId\":\"jowz\",\"requiredMembers\":[\"erclblt\",\"hpwachyeu\",\"jwmvwryvdi\"],\"requiredZoneNames\":[\"ikgpruccwmec\"],\"provisioningState\":\"Succeeded\"},\"id\":\"ytrtexegwmrq\",\"name\":\"ywiwhvycfjncind\",\"type\":\"loqkajwjuri\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager - .kustoPoolPrivateLinkResourcesOperations() - .list("inuwqxungrob", "wfmsxj", "dylwx", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPropertiesTests.java deleted file mode 100644 index ba8301daa828..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolPropertiesTests.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.KustoPoolProperties; -import com.azure.resourcemanager.synapse.models.OptimizedAutoscale; -import org.junit.jupiter.api.Assertions; - -public final class KustoPoolPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - KustoPoolProperties model = - BinaryData - .fromString( - "{\"state\":\"Running\",\"provisioningState\":\"Moving\",\"uri\":\"mljdlrgmsplzga\",\"dataIngestionUri\":\"cshhv\",\"stateReason\":\"wgnxkympqanxrj\",\"optimizedAutoscale\":{\"version\":1472510277,\"isEnabled\":false,\"minimum\":1632181186,\"maximum\":781825712},\"enableStreamingIngest\":false,\"enablePurge\":true,\"languageExtensions\":{\"value\":[{\"languageExtensionName\":\"R\"}]},\"workspaceUID\":\"hxcylhkgm\"}") - .toObject(KustoPoolProperties.class); - Assertions.assertEquals(1472510277, model.optimizedAutoscale().version()); - Assertions.assertEquals(false, model.optimizedAutoscale().isEnabled()); - Assertions.assertEquals(1632181186, model.optimizedAutoscale().minimum()); - Assertions.assertEquals(781825712, model.optimizedAutoscale().maximum()); - Assertions.assertEquals(false, model.enableStreamingIngest()); - Assertions.assertEquals(true, model.enablePurge()); - Assertions.assertEquals("hxcylhkgm", model.workspaceUid()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - KustoPoolProperties model = - new KustoPoolProperties() - .withOptimizedAutoscale( - new OptimizedAutoscale() - .withVersion(1472510277) - .withIsEnabled(false) - .withMinimum(1632181186) - .withMaximum(781825712)) - .withEnableStreamingIngest(false) - .withEnablePurge(true) - .withWorkspaceUid("hxcylhkgm"); - model = BinaryData.fromObject(model).toObject(KustoPoolProperties.class); - Assertions.assertEquals(1472510277, model.optimizedAutoscale().version()); - Assertions.assertEquals(false, model.optimizedAutoscale().isEnabled()); - Assertions.assertEquals(1632181186, model.optimizedAutoscale().minimum()); - Assertions.assertEquals(781825712, model.optimizedAutoscale().maximum()); - Assertions.assertEquals(false, model.enableStreamingIngest()); - Assertions.assertEquals(true, model.enablePurge()); - Assertions.assertEquals("hxcylhkgm", model.workspaceUid()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolUpdateTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolUpdateTests.java deleted file mode 100644 index e5e302815892..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolUpdateTests.java +++ /dev/null @@ -1,88 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.AzureSku; -import com.azure.resourcemanager.synapse.models.KustoPoolUpdate; -import com.azure.resourcemanager.synapse.models.OptimizedAutoscale; -import com.azure.resourcemanager.synapse.models.SkuName; -import com.azure.resourcemanager.synapse.models.SkuSize; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class KustoPoolUpdateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - KustoPoolUpdate model = - BinaryData - .fromString( - "{\"tags\":{\"qpd\":\"omacluzvxnqmhr\",\"ssffxuifmc\":\"wmkoisq\",\"zsylollgt\":\"ypobkdqzr\",\"vuaurk\":\"czzydmxzjij\"},\"sku\":{\"name\":\"Compute" - + " optimized\",\"capacity\":772541424,\"size\":\"Medium\"},\"properties\":{\"state\":\"Creating\",\"provisioningState\":\"Failed\",\"uri\":\"c\",\"dataIngestionUri\":\"nbkkjanurnnq\",\"stateReason\":\"q\",\"optimizedAutoscale\":{\"version\":170755995,\"isEnabled\":true,\"minimum\":1872065986,\"maximum\":1388268954},\"enableStreamingIngest\":true,\"enablePurge\":false,\"languageExtensions\":{\"value\":[]},\"workspaceUID\":\"pxrxvbfihwu\"},\"id\":\"vctafsrb\",\"name\":\"rblmli\",\"type\":\"wxihs\"}") - .toObject(KustoPoolUpdate.class); - Assertions.assertEquals("omacluzvxnqmhr", model.tags().get("qpd")); - Assertions.assertEquals(SkuName.COMPUTE_OPTIMIZED, model.sku().name()); - Assertions.assertEquals(772541424, model.sku().capacity()); - Assertions.assertEquals(SkuSize.MEDIUM, model.sku().size()); - Assertions.assertEquals(170755995, model.optimizedAutoscale().version()); - Assertions.assertEquals(true, model.optimizedAutoscale().isEnabled()); - Assertions.assertEquals(1872065986, model.optimizedAutoscale().minimum()); - Assertions.assertEquals(1388268954, model.optimizedAutoscale().maximum()); - Assertions.assertEquals(true, model.enableStreamingIngest()); - Assertions.assertEquals(false, model.enablePurge()); - Assertions.assertEquals("pxrxvbfihwu", model.workspaceUid()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - KustoPoolUpdate model = - new KustoPoolUpdate() - .withTags( - mapOf( - "qpd", - "omacluzvxnqmhr", - "ssffxuifmc", - "wmkoisq", - "zsylollgt", - "ypobkdqzr", - "vuaurk", - "czzydmxzjij")) - .withSku( - new AzureSku().withName(SkuName.COMPUTE_OPTIMIZED).withCapacity(772541424).withSize(SkuSize.MEDIUM)) - .withOptimizedAutoscale( - new OptimizedAutoscale() - .withVersion(170755995) - .withIsEnabled(true) - .withMinimum(1872065986) - .withMaximum(1388268954)) - .withEnableStreamingIngest(true) - .withEnablePurge(false) - .withWorkspaceUid("pxrxvbfihwu"); - model = BinaryData.fromObject(model).toObject(KustoPoolUpdate.class); - Assertions.assertEquals("omacluzvxnqmhr", model.tags().get("qpd")); - Assertions.assertEquals(SkuName.COMPUTE_OPTIMIZED, model.sku().name()); - Assertions.assertEquals(772541424, model.sku().capacity()); - Assertions.assertEquals(SkuSize.MEDIUM, model.sku().size()); - Assertions.assertEquals(170755995, model.optimizedAutoscale().version()); - Assertions.assertEquals(true, model.optimizedAutoscale().isEnabled()); - Assertions.assertEquals(1872065986, model.optimizedAutoscale().minimum()); - Assertions.assertEquals(1388268954, model.optimizedAutoscale().maximum()); - Assertions.assertEquals(true, model.enableStreamingIngest()); - Assertions.assertEquals(false, model.enablePurge()); - Assertions.assertEquals("pxrxvbfihwu", model.workspaceUid()); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsAddLanguageExtensionsMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsAddLanguageExtensionsMockTests.java deleted file mode 100644 index 6d1970fe6f04..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsAddLanguageExtensionsMockTests.java +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.fluent.models.LanguageExtensionInner; -import com.azure.resourcemanager.synapse.models.LanguageExtensionName; -import com.azure.resourcemanager.synapse.models.LanguageExtensionsList; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class KustoPoolsAddLanguageExtensionsMockTests { - @Test - public void testAddLanguageExtensions() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .kustoPools() - .addLanguageExtensions( - "rdlmzjotprrmu", - "cuhtuzlxiwy", - "pgarpfctw", - new LanguageExtensionsList() - .withValue( - Arrays - .asList( - new LanguageExtensionInner().withLanguageExtensionName(LanguageExtensionName.R), - new LanguageExtensionInner().withLanguageExtensionName(LanguageExtensionName.PYTHON), - new LanguageExtensionInner().withLanguageExtensionName(LanguageExtensionName.R))), - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsCheckNameAvailabilityWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsCheckNameAvailabilityWithResponseMockTests.java deleted file mode 100644 index d770374d72c2..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsCheckNameAvailabilityWithResponseMockTests.java +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.CheckNameResult; -import com.azure.resourcemanager.synapse.models.KustoPoolCheckNameRequest; -import com.azure.resourcemanager.synapse.models.Reason; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class KustoPoolsCheckNameAvailabilityWithResponseMockTests { - @Test - public void testCheckNameAvailabilityWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"nameAvailable\":false,\"name\":\"flobhahq\",\"message\":\"mfecorkfrocgbmxl\",\"reason\":\"AlreadyExists\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - CheckNameResult response = - manager - .kustoPools() - .checkNameAvailabilityWithResponse( - "hfcaeo", new KustoPoolCheckNameRequest().withName("ifq"), com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(false, response.nameAvailable()); - Assertions.assertEquals("flobhahq", response.name()); - Assertions.assertEquals("mfecorkfrocgbmxl", response.message()); - Assertions.assertEquals(Reason.ALREADY_EXISTS, response.reason()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsCreateOrUpdateMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsCreateOrUpdateMockTests.java deleted file mode 100644 index 598968f4517b..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsCreateOrUpdateMockTests.java +++ /dev/null @@ -1,124 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.AzureSku; -import com.azure.resourcemanager.synapse.models.KustoPool; -import com.azure.resourcemanager.synapse.models.OptimizedAutoscale; -import com.azure.resourcemanager.synapse.models.SkuName; -import com.azure.resourcemanager.synapse.models.SkuSize; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class KustoPoolsCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"sku\":{\"name\":\"Storage optimized\",\"capacity\":1921573518,\"size\":\"Extra" - + " small\"},\"properties\":{\"state\":\"Running\",\"provisioningState\":\"Succeeded\",\"uri\":\"gzb\",\"dataIngestionUri\":\"qfbifo\",\"stateReason\":\"jxdwdrpazqjkr\",\"optimizedAutoscale\":{\"version\":1166812452,\"isEnabled\":false,\"minimum\":1534601140,\"maximum\":178824260},\"enableStreamingIngest\":false,\"enablePurge\":true,\"languageExtensions\":{\"value\":[]},\"workspaceUID\":\"jigpgayiawohfmh\"},\"etag\":\"zmecjjkmqenhai\",\"location\":\"rpvsgloiovs\",\"tags\":{\"suvw\":\"v\",\"i\":\"enbg\",\"oa\":\"pkhc\"},\"id\":\"xukuicjuftekio\",\"name\":\"anduew\",\"type\":\"hvpxjhxz\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - KustoPool response = - manager - .kustoPools() - .define("kwopswnyinxupr") - .withRegion("gvp") - .withExistingWorkspace("pjwkosnyxigf", "ujjcxgdqmrlhn") - .withSku( - new AzureSku().withName(SkuName.STORAGE_OPTIMIZED).withCapacity(1081669809).withSize(SkuSize.LARGE)) - .withTags( - mapOf( - "ulwkq", - "gjjktfinfhoksmm", - "okr", - "cru", - "tqpqsdoctpzpujzf", - "flsgaoj", - "lu", - "mcdsgxcelujisw")) - .withOptimizedAutoscale( - new OptimizedAutoscale() - .withVersion(918352946) - .withIsEnabled(false) - .withMinimum(482333072) - .withMaximum(1912292720)) - .withEnableStreamingIngest(true) - .withEnablePurge(true) - .withWorkspaceUid("m") - .withIfMatch("yt") - .withIfNoneMatch("pdz") - .create(); - - Assertions.assertEquals("rpvsgloiovs", response.location()); - Assertions.assertEquals("v", response.tags().get("suvw")); - Assertions.assertEquals(SkuName.STORAGE_OPTIMIZED, response.sku().name()); - Assertions.assertEquals(1921573518, response.sku().capacity()); - Assertions.assertEquals(SkuSize.EXTRA_SMALL, response.sku().size()); - Assertions.assertEquals(1166812452, response.optimizedAutoscale().version()); - Assertions.assertEquals(false, response.optimizedAutoscale().isEnabled()); - Assertions.assertEquals(1534601140, response.optimizedAutoscale().minimum()); - Assertions.assertEquals(178824260, response.optimizedAutoscale().maximum()); - Assertions.assertEquals(false, response.enableStreamingIngest()); - Assertions.assertEquals(true, response.enablePurge()); - Assertions.assertEquals("jigpgayiawohfmh", response.workspaceUid()); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsDeleteMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsDeleteMockTests.java deleted file mode 100644 index af2ad78b0811..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsDeleteMockTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class KustoPoolsDeleteMockTests { - @Test - public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.kustoPools().delete("dxckdl", "zwhcukvb", "sjjfd", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsDetachFollowerDatabasesMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsDetachFollowerDatabasesMockTests.java deleted file mode 100644 index f7166335f220..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsDetachFollowerDatabasesMockTests.java +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.fluent.models.FollowerDatabaseDefinitionInner; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class KustoPoolsDetachFollowerDatabasesMockTests { - @Test - public void testDetachFollowerDatabases() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .kustoPools() - .detachFollowerDatabases( - "sp", - "r", - "cspimtcvvfxrdy", - new FollowerDatabaseDefinitionInner() - .withKustoPoolResourceId("zfslxizhqikmgob") - .withAttachedDatabaseConfigurationName("iqemcdiiisklbon"), - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsGetWithResponseMockTests.java deleted file mode 100644 index 491b00faf58a..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsGetWithResponseMockTests.java +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.KustoPool; -import com.azure.resourcemanager.synapse.models.SkuName; -import com.azure.resourcemanager.synapse.models.SkuSize; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class KustoPoolsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"sku\":{\"name\":\"Compute" - + " optimized\",\"capacity\":797241887,\"size\":\"Medium\"},\"properties\":{\"state\":\"Stopped\",\"provisioningState\":\"Moving\",\"uri\":\"npiyuxlv\",\"dataIngestionUri\":\"prrv\",\"stateReason\":\"onleqflvtl\",\"optimizedAutoscale\":{\"version\":407535743,\"isEnabled\":false,\"minimum\":1195854621,\"maximum\":1769963402},\"enableStreamingIngest\":false,\"enablePurge\":true,\"languageExtensions\":{\"value\":[]},\"workspaceUID\":\"nttlnrjd\"},\"etag\":\"dbuziciqppoqvg\",\"location\":\"e\",\"tags\":{\"wjnoxuo\":\"w\",\"cjmgvsnvbtqdxfm\":\"tfnressfepgck\"},\"id\":\"ym\",\"name\":\"n\",\"type\":\"jluqllbsupu\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - KustoPool response = - manager - .kustoPools() - .getWithResponse("pkvegeatt", "zkgtzqn", "qsttewuvcysjeuf", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("e", response.location()); - Assertions.assertEquals("w", response.tags().get("wjnoxuo")); - Assertions.assertEquals(SkuName.COMPUTE_OPTIMIZED, response.sku().name()); - Assertions.assertEquals(797241887, response.sku().capacity()); - Assertions.assertEquals(SkuSize.MEDIUM, response.sku().size()); - Assertions.assertEquals(407535743, response.optimizedAutoscale().version()); - Assertions.assertEquals(false, response.optimizedAutoscale().isEnabled()); - Assertions.assertEquals(1195854621, response.optimizedAutoscale().minimum()); - Assertions.assertEquals(1769963402, response.optimizedAutoscale().maximum()); - Assertions.assertEquals(false, response.enableStreamingIngest()); - Assertions.assertEquals(true, response.enablePurge()); - Assertions.assertEquals("nttlnrjd", response.workspaceUid()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListByWorkspaceWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListByWorkspaceWithResponseMockTests.java deleted file mode 100644 index aa76cd14e759..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListByWorkspaceWithResponseMockTests.java +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.KustoPoolListResult; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class KustoPoolsListByWorkspaceWithResponseMockTests { - @Test - public void testListByWorkspaceWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"etag\":\"g\",\"location\":\"y\",\"tags\":{\"sc\":\"zu\",\"hmgw\":\"gqyvouprsytqzss\"},\"id\":\"nivrxpfduio\",\"name\":\"hgyqvpbfj\",\"type\":\"oqzucfzluczdq\"},{\"etag\":\"bormvhvzielbp\",\"location\":\"qu\",\"tags\":{\"mnwsvh\":\"zcqyg\",\"ejto\":\"ngqiw\"},\"id\":\"drrp\",\"name\":\"rehkunsbfjhh\",\"type\":\"w\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - KustoPoolListResult response = - manager - .kustoPools() - .listByWorkspaceWithResponse("zezbjes", "lslu", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("y", response.value().get(0).location()); - Assertions.assertEquals("zu", response.value().get(0).tags().get("sc")); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListFollowerDatabasesMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListFollowerDatabasesMockTests.java deleted file mode 100644 index 90d46363a9f0..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListFollowerDatabasesMockTests.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.FollowerDatabaseDefinition; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class KustoPoolsListFollowerDatabasesMockTests { - @Test - public void testListFollowerDatabases() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"clusterResourceId\":\"freprfvm\",\"attachedDatabaseConfigurationName\":\"inwteyrqsh\",\"databaseName\":\"bcejopylbl\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager - .kustoPools() - .listFollowerDatabases( - "kaupwhlz", "ckremgjlmsvdorsi", "xxhyrkqakofa", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("freprfvm", response.iterator().next().kustoPoolResourceId()); - Assertions.assertEquals("inwteyrqsh", response.iterator().next().attachedDatabaseConfigurationName()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListLanguageExtensionsMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListLanguageExtensionsMockTests.java deleted file mode 100644 index c0b66a831d3d..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListLanguageExtensionsMockTests.java +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.LanguageExtension; -import com.azure.resourcemanager.synapse.models.LanguageExtensionName; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class KustoPoolsListLanguageExtensionsMockTests { - @Test - public void testListLanguageExtensions() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{\"value\":[{\"languageExtensionName\":\"R\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager - .kustoPools() - .listLanguageExtensions("sgfenffdxb", "wfqjch", "vdrijanxndm", com.azure.core.util.Context.NONE); - - Assertions.assertEquals(LanguageExtensionName.R, response.iterator().next().languageExtensionName()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListMockTests.java deleted file mode 100644 index f9d2a15b0911..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListMockTests.java +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.SkuDescription; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class KustoPoolsListMockTests { - @Test - public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"resourceType\":\"njpchamkaeplr\",\"name\":\"ubowuywevtj\",\"size\":\"eikmwlaoklfni\",\"locations\":[\"gucbmt\",\"ed\",\"cnnstjcyy\",\"vtzrxzhclecwwtz\"],\"locationInfo\":[{\"location\":\"loyhyupgidhzgy\",\"zones\":[\"gzsdtmwbyorjp\",\"bchycha\",\"vyrfbqvum\",\"xqjsiuepm\"]},{\"location\":\"xfnzlpq\",\"zones\":[\"t\"]}],\"restrictions\":[\"datavulb\",\"datamrtuxyp\"]}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.kustoPools().list(com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListSkusByResourceMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListSkusByResourceMockTests.java deleted file mode 100644 index 3bfbf18fe849..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsListSkusByResourceMockTests.java +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.AzureResourceSku; -import com.azure.resourcemanager.synapse.models.AzureScaleType; -import com.azure.resourcemanager.synapse.models.SkuName; -import com.azure.resourcemanager.synapse.models.SkuSize; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class KustoPoolsListSkusByResourceMockTests { - @Test - public void testListSkusByResource() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"resourceType\":\"dxdyyrudma\",\"sku\":{\"name\":\"Compute" - + " optimized\",\"capacity\":1725220315,\"size\":\"Small\"},\"capacity\":{\"scaleType\":\"automatic\",\"minimum\":1881904123,\"maximum\":561042330,\"default\":1978635992}}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager - .kustoPools() - .listSkusByResource("crtfodqhuauzm", "iv", "trfzhhezvh", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("dxdyyrudma", response.iterator().next().resourceType()); - Assertions.assertEquals(SkuName.COMPUTE_OPTIMIZED, response.iterator().next().sku().name()); - Assertions.assertEquals(1725220315, response.iterator().next().sku().capacity()); - Assertions.assertEquals(SkuSize.SMALL, response.iterator().next().sku().size()); - Assertions.assertEquals(AzureScaleType.AUTOMATIC, response.iterator().next().capacity().scaleType()); - Assertions.assertEquals(1881904123, response.iterator().next().capacity().minimum()); - Assertions.assertEquals(561042330, response.iterator().next().capacity().maximum()); - Assertions.assertEquals(1978635992, response.iterator().next().capacity().defaultProperty()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsRemoveLanguageExtensionsMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsRemoveLanguageExtensionsMockTests.java deleted file mode 100644 index f4bf77f1b8c7..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsRemoveLanguageExtensionsMockTests.java +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.fluent.models.LanguageExtensionInner; -import com.azure.resourcemanager.synapse.models.LanguageExtensionName; -import com.azure.resourcemanager.synapse.models.LanguageExtensionsList; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class KustoPoolsRemoveLanguageExtensionsMockTests { - @Test - public void testRemoveLanguageExtensions() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .kustoPools() - .removeLanguageExtensions( - "yvzesipiysnjq", - "owa", - "dcndazabun", - new LanguageExtensionsList() - .withValue( - Arrays.asList(new LanguageExtensionInner().withLanguageExtensionName(LanguageExtensionName.R))), - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsStartMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsStartMockTests.java deleted file mode 100644 index 0e02f1ddfcdd..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsStartMockTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class KustoPoolsStartMockTests { - @Test - public void testStart() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.kustoPools().start("dgujjgnfgrzxbarc", "paefzqsy", "jwenjcytesmf", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsStopMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsStopMockTests.java deleted file mode 100644 index 4edb0f1703ad..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/KustoPoolsStopMockTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class KustoPoolsStopMockTests { - @Test - public void testStop() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.kustoPools().stop("zhrjqfyaytvsly", "kcgn", "uarlcjiwgsxfaioc", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LanguageExtensionInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LanguageExtensionInnerTests.java deleted file mode 100644 index 209ac6bac2d2..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LanguageExtensionInnerTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.LanguageExtensionInner; -import com.azure.resourcemanager.synapse.models.LanguageExtensionName; -import org.junit.jupiter.api.Assertions; - -public final class LanguageExtensionInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LanguageExtensionInner model = - BinaryData.fromString("{\"languageExtensionName\":\"PYTHON\"}").toObject(LanguageExtensionInner.class); - Assertions.assertEquals(LanguageExtensionName.PYTHON, model.languageExtensionName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LanguageExtensionInner model = - new LanguageExtensionInner().withLanguageExtensionName(LanguageExtensionName.PYTHON); - model = BinaryData.fromObject(model).toObject(LanguageExtensionInner.class); - Assertions.assertEquals(LanguageExtensionName.PYTHON, model.languageExtensionName()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LanguageExtensionsListTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LanguageExtensionsListTests.java deleted file mode 100644 index f9ef243098f2..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LanguageExtensionsListTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.LanguageExtensionInner; -import com.azure.resourcemanager.synapse.models.LanguageExtensionName; -import com.azure.resourcemanager.synapse.models.LanguageExtensionsList; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class LanguageExtensionsListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LanguageExtensionsList model = - BinaryData - .fromString( - "{\"value\":[{\"languageExtensionName\":\"PYTHON\"},{\"languageExtensionName\":\"R\"},{\"languageExtensionName\":\"PYTHON\"},{\"languageExtensionName\":\"R\"}]}") - .toObject(LanguageExtensionsList.class); - Assertions.assertEquals(LanguageExtensionName.PYTHON, model.value().get(0).languageExtensionName()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LanguageExtensionsList model = - new LanguageExtensionsList() - .withValue( - Arrays - .asList( - new LanguageExtensionInner().withLanguageExtensionName(LanguageExtensionName.PYTHON), - new LanguageExtensionInner().withLanguageExtensionName(LanguageExtensionName.R), - new LanguageExtensionInner().withLanguageExtensionName(LanguageExtensionName.PYTHON), - new LanguageExtensionInner().withLanguageExtensionName(LanguageExtensionName.R))); - model = BinaryData.fromObject(model).toObject(LanguageExtensionsList.class); - Assertions.assertEquals(LanguageExtensionName.PYTHON, model.value().get(0).languageExtensionName()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LibrariesGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LibrariesGetWithResponseMockTests.java deleted file mode 100644 index e9e60cf1edf0..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LibrariesGetWithResponseMockTests.java +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.LibraryResource; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class LibrariesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"name\":\"ocpajt\",\"path\":\"yvkbdgddk\",\"containerName\":\"dccxbeuuqu\",\"uploadedTimestamp\":\"2021-06-25T15:50:46Z\",\"type\":\"tjwwg\",\"provisioningStatus\":\"ytijcxfnond\",\"creatorId\":\"jdydhq\"},\"etag\":\"kbjuckcatuqbhp\",\"id\":\"wcnxtpzdlyseid\",\"name\":\"oa\",\"type\":\"atprytgrhzbq\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - LibraryResource response = - manager - .libraries() - .getWithResponse("kwx", "auwxsuykznhrfgsl", "lhpryjfzihuio", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("ocpajt", response.namePropertiesName()); - Assertions.assertEquals("yvkbdgddk", response.path()); - Assertions.assertEquals("dccxbeuuqu", response.containerName()); - Assertions.assertEquals("tjwwg", response.typePropertiesType()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LibrariesOperationsListByWorkspaceMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LibrariesOperationsListByWorkspaceMockTests.java deleted file mode 100644 index 11b43b3686ac..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LibrariesOperationsListByWorkspaceMockTests.java +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.LibraryResource; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class LibrariesOperationsListByWorkspaceMockTests { - @Test - public void testListByWorkspace() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"properties\":{\"name\":\"ptvcs\",\"path\":\"kutzct\",\"containerName\":\"qgdirda\",\"uploadedTimestamp\":\"2021-05-15T11:21:30Z\",\"type\":\"jgcf\",\"provisioningStatus\":\"xtbw\",\"creatorId\":\"irmu\"},\"etag\":\"gftt\",\"id\":\"dofgeoagfuoftnx\",\"name\":\"dwxmda\",\"type\":\"wiygmgsevmdmzenl\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager.librariesOperations().listByWorkspace("d", "fa", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("ptvcs", response.iterator().next().namePropertiesName()); - Assertions.assertEquals("kutzct", response.iterator().next().path()); - Assertions.assertEquals("qgdirda", response.iterator().next().containerName()); - Assertions.assertEquals("jgcf", response.iterator().next().typePropertiesType()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LibraryInfoTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LibraryInfoTests.java deleted file mode 100644 index 9101aa6810bf..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LibraryInfoTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.LibraryInfo; -import org.junit.jupiter.api.Assertions; - -public final class LibraryInfoTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LibraryInfo model = - BinaryData - .fromString( - "{\"name\":\"kbzefezrxcczurt\",\"path\":\"ipqxbkwvzgnzv\",\"containerName\":\"bzdixzmq\",\"uploadedTimestamp\":\"2021-03-19T22:04:23Z\",\"type\":\"awopqh\",\"provisioningStatus\":\"jptmcgsbost\",\"creatorId\":\"lnd\"}") - .toObject(LibraryInfo.class); - Assertions.assertEquals("kbzefezrxcczurt", model.name()); - Assertions.assertEquals("ipqxbkwvzgnzv", model.path()); - Assertions.assertEquals("bzdixzmq", model.containerName()); - Assertions.assertEquals("awopqh", model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LibraryInfo model = - new LibraryInfo() - .withName("kbzefezrxcczurt") - .withPath("ipqxbkwvzgnzv") - .withContainerName("bzdixzmq") - .withType("awopqh"); - model = BinaryData.fromObject(model).toObject(LibraryInfo.class); - Assertions.assertEquals("kbzefezrxcczurt", model.name()); - Assertions.assertEquals("ipqxbkwvzgnzv", model.path()); - Assertions.assertEquals("bzdixzmq", model.containerName()); - Assertions.assertEquals("awopqh", model.type()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LibraryListResponseTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LibraryListResponseTests.java deleted file mode 100644 index 20593c816e1d..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LibraryListResponseTests.java +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.LibraryResourceInner; -import com.azure.resourcemanager.synapse.models.LibraryListResponse; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class LibraryListResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LibraryListResponse model = - BinaryData - .fromString( - "{\"value\":[{\"properties\":{\"name\":\"fwyfwlwxjwet\",\"path\":\"sihclafzvaylp\",\"containerName\":\"sqqw\",\"uploadedTimestamp\":\"2021-10-08T01:02:03Z\",\"type\":\"w\",\"provisioningStatus\":\"chcxwaxfewzj\",\"creatorId\":\"exfdeqvhpsylk\"},\"etag\":\"hkbffmbm\",\"id\":\"zjrgyww\",\"name\":\"gjxsnptfu\",\"type\":\"gicgaaoepttaq\"},{\"properties\":{\"name\":\"dewemxswv\",\"path\":\"unzzjgehk\",\"containerName\":\"imrt\",\"uploadedTimestamp\":\"2021-10-31T23:30:22Z\",\"type\":\"fqyinljqepqw\",\"provisioningStatus\":\"xmonstshi\",\"creatorId\":\"gvelfc\"},\"etag\":\"uccbirdsvuw\",\"id\":\"o\",\"name\":\"iegstm\",\"type\":\"inwjizcilngh\"}],\"nextLink\":\"h\"}") - .toObject(LibraryListResponse.class); - Assertions.assertEquals("fwyfwlwxjwet", model.value().get(0).namePropertiesName()); - Assertions.assertEquals("sihclafzvaylp", model.value().get(0).path()); - Assertions.assertEquals("sqqw", model.value().get(0).containerName()); - Assertions.assertEquals("w", model.value().get(0).typePropertiesType()); - Assertions.assertEquals("h", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LibraryListResponse model = - new LibraryListResponse() - .withValue( - Arrays - .asList( - new LibraryResourceInner() - .withNamePropertiesName("fwyfwlwxjwet") - .withPath("sihclafzvaylp") - .withContainerName("sqqw") - .withTypePropertiesType("w"), - new LibraryResourceInner() - .withNamePropertiesName("dewemxswv") - .withPath("unzzjgehk") - .withContainerName("imrt") - .withTypePropertiesType("fqyinljqepqw"))) - .withNextLink("h"); - model = BinaryData.fromObject(model).toObject(LibraryListResponse.class); - Assertions.assertEquals("fwyfwlwxjwet", model.value().get(0).namePropertiesName()); - Assertions.assertEquals("sihclafzvaylp", model.value().get(0).path()); - Assertions.assertEquals("sqqw", model.value().get(0).containerName()); - Assertions.assertEquals("w", model.value().get(0).typePropertiesType()); - Assertions.assertEquals("h", model.nextLink()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LibraryRequirementsTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LibraryRequirementsTests.java deleted file mode 100644 index 5a17be959db4..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LibraryRequirementsTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.LibraryRequirements; -import org.junit.jupiter.api.Assertions; - -public final class LibraryRequirementsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LibraryRequirements model = - BinaryData - .fromString( - "{\"time\":\"2021-02-12T17:13:55Z\",\"content\":\"kfkbgbzbowxeqocl\",\"filename\":\"ygvkzqkjj\"}") - .toObject(LibraryRequirements.class); - Assertions.assertEquals("kfkbgbzbowxeqocl", model.content()); - Assertions.assertEquals("ygvkzqkjj", model.filename()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LibraryRequirements model = new LibraryRequirements().withContent("kfkbgbzbowxeqocl").withFilename("ygvkzqkjj"); - model = BinaryData.fromObject(model).toObject(LibraryRequirements.class); - Assertions.assertEquals("kfkbgbzbowxeqocl", model.content()); - Assertions.assertEquals("ygvkzqkjj", model.filename()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LibraryResourceInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LibraryResourceInnerTests.java deleted file mode 100644 index d350ecf26eee..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LibraryResourceInnerTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.LibraryResourceInner; -import org.junit.jupiter.api.Assertions; - -public final class LibraryResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LibraryResourceInner model = - BinaryData - .fromString( - "{\"properties\":{\"name\":\"tmwwi\",\"path\":\"ehfqpofvwbc\",\"containerName\":\"embnkbw\",\"uploadedTimestamp\":\"2021-03-18T02:40:22Z\",\"type\":\"kdi\",\"provisioningStatus\":\"ihebwtsw\",\"creatorId\":\"uwfmduragegizvc\"},\"etag\":\"elisdjub\",\"id\":\"gbqi\",\"name\":\"kxkbsazgakgacyr\",\"type\":\"m\"}") - .toObject(LibraryResourceInner.class); - Assertions.assertEquals("tmwwi", model.namePropertiesName()); - Assertions.assertEquals("ehfqpofvwbc", model.path()); - Assertions.assertEquals("embnkbw", model.containerName()); - Assertions.assertEquals("kdi", model.typePropertiesType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LibraryResourceInner model = - new LibraryResourceInner() - .withNamePropertiesName("tmwwi") - .withPath("ehfqpofvwbc") - .withContainerName("embnkbw") - .withTypePropertiesType("kdi"); - model = BinaryData.fromObject(model).toObject(LibraryResourceInner.class); - Assertions.assertEquals("tmwwi", model.namePropertiesName()); - Assertions.assertEquals("ehfqpofvwbc", model.path()); - Assertions.assertEquals("embnkbw", model.containerName()); - Assertions.assertEquals("kdi", model.typePropertiesType()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LinkedIntegrationRuntimeRbacAuthorizationTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LinkedIntegrationRuntimeRbacAuthorizationTests.java deleted file mode 100644 index 4da7c1956c3b..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LinkedIntegrationRuntimeRbacAuthorizationTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.LinkedIntegrationRuntimeRbacAuthorization; -import org.junit.jupiter.api.Assertions; - -public final class LinkedIntegrationRuntimeRbacAuthorizationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LinkedIntegrationRuntimeRbacAuthorization model = - BinaryData - .fromString("{\"authorizationType\":\"RBAC\",\"resourceId\":\"qm\"}") - .toObject(LinkedIntegrationRuntimeRbacAuthorization.class); - Assertions.assertEquals("qm", model.resourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LinkedIntegrationRuntimeRbacAuthorization model = - new LinkedIntegrationRuntimeRbacAuthorization().withResourceId("qm"); - model = BinaryData.fromObject(model).toObject(LinkedIntegrationRuntimeRbacAuthorization.class); - Assertions.assertEquals("qm", model.resourceId()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LinkedIntegrationRuntimeTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LinkedIntegrationRuntimeTests.java deleted file mode 100644 index a91c8757fc03..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LinkedIntegrationRuntimeTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.LinkedIntegrationRuntime; - -public final class LinkedIntegrationRuntimeTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LinkedIntegrationRuntime model = - BinaryData - .fromString( - "{\"name\":\"s\",\"subscriptionId\":\"k\",\"dataFactoryName\":\"bcufqbvntn\",\"dataFactoryLocation\":\"mqso\",\"createTime\":\"2021-05-17T14:08:07Z\"}") - .toObject(LinkedIntegrationRuntime.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LinkedIntegrationRuntime model = new LinkedIntegrationRuntime(); - model = BinaryData.fromObject(model).toObject(LinkedIntegrationRuntime.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LinkedIntegrationRuntimeTypeTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LinkedIntegrationRuntimeTypeTests.java deleted file mode 100644 index 8b7ab08ceee1..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/LinkedIntegrationRuntimeTypeTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.LinkedIntegrationRuntimeType; - -public final class LinkedIntegrationRuntimeTypeTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - LinkedIntegrationRuntimeType model = - BinaryData - .fromString("{\"authorizationType\":\"LinkedIntegrationRuntimeType\"}") - .toObject(LinkedIntegrationRuntimeType.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - LinkedIntegrationRuntimeType model = new LinkedIntegrationRuntimeType(); - model = BinaryData.fromObject(model).toObject(LinkedIntegrationRuntimeType.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ListResourceSkusResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ListResourceSkusResultTests.java deleted file mode 100644 index 754c8e690b87..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ListResourceSkusResultTests.java +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.AzureResourceSkuInner; -import com.azure.resourcemanager.synapse.models.AzureCapacity; -import com.azure.resourcemanager.synapse.models.AzureScaleType; -import com.azure.resourcemanager.synapse.models.AzureSku; -import com.azure.resourcemanager.synapse.models.ListResourceSkusResult; -import com.azure.resourcemanager.synapse.models.SkuName; -import com.azure.resourcemanager.synapse.models.SkuSize; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ListResourceSkusResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ListResourceSkusResult model = - BinaryData - .fromString( - "{\"value\":[{\"resourceType\":\"qagnepzwakl\",\"sku\":{\"name\":\"Compute" - + " optimized\",\"capacity\":1527114971,\"size\":\"Small\"},\"capacity\":{\"scaleType\":\"automatic\",\"minimum\":622507993,\"maximum\":1059203016,\"default\":465336840}},{\"resourceType\":\"xaomzisglrrc\",\"sku\":{\"name\":\"Storage" - + " optimized\",\"capacity\":552300576,\"size\":\"Large\"},\"capacity\":{\"scaleType\":\"manual\",\"minimum\":1031281718,\"maximum\":244052018,\"default\":1388509479}},{\"resourceType\":\"hqo\",\"sku\":{\"name\":\"Storage" - + " optimized\",\"capacity\":1275493501,\"size\":\"Medium\"},\"capacity\":{\"scaleType\":\"none\",\"minimum\":1715281264,\"maximum\":536422928,\"default\":177387520}}]}") - .toObject(ListResourceSkusResult.class); - Assertions.assertEquals("qagnepzwakl", model.value().get(0).resourceType()); - Assertions.assertEquals(SkuName.COMPUTE_OPTIMIZED, model.value().get(0).sku().name()); - Assertions.assertEquals(1527114971, model.value().get(0).sku().capacity()); - Assertions.assertEquals(SkuSize.SMALL, model.value().get(0).sku().size()); - Assertions.assertEquals(AzureScaleType.AUTOMATIC, model.value().get(0).capacity().scaleType()); - Assertions.assertEquals(622507993, model.value().get(0).capacity().minimum()); - Assertions.assertEquals(1059203016, model.value().get(0).capacity().maximum()); - Assertions.assertEquals(465336840, model.value().get(0).capacity().defaultProperty()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ListResourceSkusResult model = - new ListResourceSkusResult() - .withValue( - Arrays - .asList( - new AzureResourceSkuInner() - .withResourceType("qagnepzwakl") - .withSku( - new AzureSku() - .withName(SkuName.COMPUTE_OPTIMIZED) - .withCapacity(1527114971) - .withSize(SkuSize.SMALL)) - .withCapacity( - new AzureCapacity() - .withScaleType(AzureScaleType.AUTOMATIC) - .withMinimum(622507993) - .withMaximum(1059203016) - .withDefaultProperty(465336840)), - new AzureResourceSkuInner() - .withResourceType("xaomzisglrrc") - .withSku( - new AzureSku() - .withName(SkuName.STORAGE_OPTIMIZED) - .withCapacity(552300576) - .withSize(SkuSize.LARGE)) - .withCapacity( - new AzureCapacity() - .withScaleType(AzureScaleType.MANUAL) - .withMinimum(1031281718) - .withMaximum(244052018) - .withDefaultProperty(1388509479)), - new AzureResourceSkuInner() - .withResourceType("hqo") - .withSku( - new AzureSku() - .withName(SkuName.STORAGE_OPTIMIZED) - .withCapacity(1275493501) - .withSize(SkuSize.MEDIUM)) - .withCapacity( - new AzureCapacity() - .withScaleType(AzureScaleType.NONE) - .withMinimum(1715281264) - .withMaximum(536422928) - .withDefaultProperty(177387520)))); - model = BinaryData.fromObject(model).toObject(ListResourceSkusResult.class); - Assertions.assertEquals("qagnepzwakl", model.value().get(0).resourceType()); - Assertions.assertEquals(SkuName.COMPUTE_OPTIMIZED, model.value().get(0).sku().name()); - Assertions.assertEquals(1527114971, model.value().get(0).sku().capacity()); - Assertions.assertEquals(SkuSize.SMALL, model.value().get(0).sku().size()); - Assertions.assertEquals(AzureScaleType.AUTOMATIC, model.value().get(0).capacity().scaleType()); - Assertions.assertEquals(622507993, model.value().get(0).capacity().minimum()); - Assertions.assertEquals(1059203016, model.value().get(0).capacity().maximum()); - Assertions.assertEquals(465336840, model.value().get(0).capacity().defaultProperty()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/MaintenanceWindowOptionsInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/MaintenanceWindowOptionsInnerTests.java deleted file mode 100644 index 2f0686f6a0c0..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/MaintenanceWindowOptionsInnerTests.java +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.MaintenanceWindowOptionsInner; -import com.azure.resourcemanager.synapse.models.DayOfWeek; -import com.azure.resourcemanager.synapse.models.MaintenanceWindowTimeRange; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class MaintenanceWindowOptionsInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MaintenanceWindowOptionsInner model = - BinaryData - .fromString( - "{\"properties\":{\"isEnabled\":false,\"maintenanceWindowCycles\":[{\"dayOfWeek\":\"Saturday\",\"startTime\":\"sjnkal\",\"duration\":\"tiiswacffg\"},{\"dayOfWeek\":\"Wednesday\",\"startTime\":\"ewkfvhqcrai\",\"duration\":\"pnppfuf\"},{\"dayOfWeek\":\"Monday\",\"startTime\":\"mh\",\"duration\":\"xyjrxsagafcnih\"},{\"dayOfWeek\":\"Tuesday\",\"startTime\":\"pnedgf\",\"duration\":\"vkcvqvpkeqd\"}],\"minDurationInMinutes\":978047634,\"defaultDurationInMinutes\":1258366887,\"minCycles\":649477703,\"timeGranularityInMinutes\":60814629,\"allowMultipleMaintenanceWindowsPerCycle\":true},\"id\":\"tbobz\",\"name\":\"opcjwvnhd\",\"type\":\"d\"}") - .toObject(MaintenanceWindowOptionsInner.class); - Assertions.assertEquals(false, model.isEnabled()); - Assertions.assertEquals(DayOfWeek.SATURDAY, model.maintenanceWindowCycles().get(0).dayOfWeek()); - Assertions.assertEquals("sjnkal", model.maintenanceWindowCycles().get(0).startTime()); - Assertions.assertEquals("tiiswacffg", model.maintenanceWindowCycles().get(0).duration()); - Assertions.assertEquals(978047634, model.minDurationInMinutes()); - Assertions.assertEquals(1258366887, model.defaultDurationInMinutes()); - Assertions.assertEquals(649477703, model.minCycles()); - Assertions.assertEquals(60814629, model.timeGranularityInMinutes()); - Assertions.assertEquals(true, model.allowMultipleMaintenanceWindowsPerCycle()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MaintenanceWindowOptionsInner model = - new MaintenanceWindowOptionsInner() - .withIsEnabled(false) - .withMaintenanceWindowCycles( - Arrays - .asList( - new MaintenanceWindowTimeRange() - .withDayOfWeek(DayOfWeek.SATURDAY) - .withStartTime("sjnkal") - .withDuration("tiiswacffg"), - new MaintenanceWindowTimeRange() - .withDayOfWeek(DayOfWeek.WEDNESDAY) - .withStartTime("ewkfvhqcrai") - .withDuration("pnppfuf"), - new MaintenanceWindowTimeRange() - .withDayOfWeek(DayOfWeek.MONDAY) - .withStartTime("mh") - .withDuration("xyjrxsagafcnih"), - new MaintenanceWindowTimeRange() - .withDayOfWeek(DayOfWeek.TUESDAY) - .withStartTime("pnedgf") - .withDuration("vkcvqvpkeqd"))) - .withMinDurationInMinutes(978047634) - .withDefaultDurationInMinutes(1258366887) - .withMinCycles(649477703) - .withTimeGranularityInMinutes(60814629) - .withAllowMultipleMaintenanceWindowsPerCycle(true); - model = BinaryData.fromObject(model).toObject(MaintenanceWindowOptionsInner.class); - Assertions.assertEquals(false, model.isEnabled()); - Assertions.assertEquals(DayOfWeek.SATURDAY, model.maintenanceWindowCycles().get(0).dayOfWeek()); - Assertions.assertEquals("sjnkal", model.maintenanceWindowCycles().get(0).startTime()); - Assertions.assertEquals("tiiswacffg", model.maintenanceWindowCycles().get(0).duration()); - Assertions.assertEquals(978047634, model.minDurationInMinutes()); - Assertions.assertEquals(1258366887, model.defaultDurationInMinutes()); - Assertions.assertEquals(649477703, model.minCycles()); - Assertions.assertEquals(60814629, model.timeGranularityInMinutes()); - Assertions.assertEquals(true, model.allowMultipleMaintenanceWindowsPerCycle()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/MaintenanceWindowOptionsPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/MaintenanceWindowOptionsPropertiesTests.java deleted file mode 100644 index b8c3dacb2fe9..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/MaintenanceWindowOptionsPropertiesTests.java +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.MaintenanceWindowOptionsProperties; -import com.azure.resourcemanager.synapse.models.DayOfWeek; -import com.azure.resourcemanager.synapse.models.MaintenanceWindowTimeRange; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class MaintenanceWindowOptionsPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MaintenanceWindowOptionsProperties model = - BinaryData - .fromString( - "{\"isEnabled\":false,\"maintenanceWindowCycles\":[{\"dayOfWeek\":\"Saturday\",\"startTime\":\"lpmutwuoegrpkhj\",\"duration\":\"iyq\"},{\"dayOfWeek\":\"Tuesday\",\"startTime\":\"cpdggkzzlvmbmp\",\"duration\":\"modfvuefywsbpfvm\"},{\"dayOfWeek\":\"Saturday\",\"startTime\":\"fouyf\",\"duration\":\"akcp\"},{\"dayOfWeek\":\"Wednesday\",\"startTime\":\"vqtmnub\",\"duration\":\"kpzksmondjmq\"}],\"minDurationInMinutes\":1083170526,\"defaultDurationInMinutes\":1371154692,\"minCycles\":326974416,\"timeGranularityInMinutes\":1838860649,\"allowMultipleMaintenanceWindowsPerCycle\":true}") - .toObject(MaintenanceWindowOptionsProperties.class); - Assertions.assertEquals(false, model.isEnabled()); - Assertions.assertEquals(DayOfWeek.SATURDAY, model.maintenanceWindowCycles().get(0).dayOfWeek()); - Assertions.assertEquals("lpmutwuoegrpkhj", model.maintenanceWindowCycles().get(0).startTime()); - Assertions.assertEquals("iyq", model.maintenanceWindowCycles().get(0).duration()); - Assertions.assertEquals(1083170526, model.minDurationInMinutes()); - Assertions.assertEquals(1371154692, model.defaultDurationInMinutes()); - Assertions.assertEquals(326974416, model.minCycles()); - Assertions.assertEquals(1838860649, model.timeGranularityInMinutes()); - Assertions.assertEquals(true, model.allowMultipleMaintenanceWindowsPerCycle()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MaintenanceWindowOptionsProperties model = - new MaintenanceWindowOptionsProperties() - .withIsEnabled(false) - .withMaintenanceWindowCycles( - Arrays - .asList( - new MaintenanceWindowTimeRange() - .withDayOfWeek(DayOfWeek.SATURDAY) - .withStartTime("lpmutwuoegrpkhj") - .withDuration("iyq"), - new MaintenanceWindowTimeRange() - .withDayOfWeek(DayOfWeek.TUESDAY) - .withStartTime("cpdggkzzlvmbmp") - .withDuration("modfvuefywsbpfvm"), - new MaintenanceWindowTimeRange() - .withDayOfWeek(DayOfWeek.SATURDAY) - .withStartTime("fouyf") - .withDuration("akcp"), - new MaintenanceWindowTimeRange() - .withDayOfWeek(DayOfWeek.WEDNESDAY) - .withStartTime("vqtmnub") - .withDuration("kpzksmondjmq"))) - .withMinDurationInMinutes(1083170526) - .withDefaultDurationInMinutes(1371154692) - .withMinCycles(326974416) - .withTimeGranularityInMinutes(1838860649) - .withAllowMultipleMaintenanceWindowsPerCycle(true); - model = BinaryData.fromObject(model).toObject(MaintenanceWindowOptionsProperties.class); - Assertions.assertEquals(false, model.isEnabled()); - Assertions.assertEquals(DayOfWeek.SATURDAY, model.maintenanceWindowCycles().get(0).dayOfWeek()); - Assertions.assertEquals("lpmutwuoegrpkhj", model.maintenanceWindowCycles().get(0).startTime()); - Assertions.assertEquals("iyq", model.maintenanceWindowCycles().get(0).duration()); - Assertions.assertEquals(1083170526, model.minDurationInMinutes()); - Assertions.assertEquals(1371154692, model.defaultDurationInMinutes()); - Assertions.assertEquals(326974416, model.minCycles()); - Assertions.assertEquals(1838860649, model.timeGranularityInMinutes()); - Assertions.assertEquals(true, model.allowMultipleMaintenanceWindowsPerCycle()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/MaintenanceWindowTimeRangeTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/MaintenanceWindowTimeRangeTests.java deleted file mode 100644 index 481d19e2efed..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/MaintenanceWindowTimeRangeTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.DayOfWeek; -import com.azure.resourcemanager.synapse.models.MaintenanceWindowTimeRange; -import org.junit.jupiter.api.Assertions; - -public final class MaintenanceWindowTimeRangeTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MaintenanceWindowTimeRange model = - BinaryData - .fromString("{\"dayOfWeek\":\"Thursday\",\"startTime\":\"o\",\"duration\":\"sg\"}") - .toObject(MaintenanceWindowTimeRange.class); - Assertions.assertEquals(DayOfWeek.THURSDAY, model.dayOfWeek()); - Assertions.assertEquals("o", model.startTime()); - Assertions.assertEquals("sg", model.duration()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MaintenanceWindowTimeRange model = - new MaintenanceWindowTimeRange().withDayOfWeek(DayOfWeek.THURSDAY).withStartTime("o").withDuration("sg"); - model = BinaryData.fromObject(model).toObject(MaintenanceWindowTimeRange.class); - Assertions.assertEquals(DayOfWeek.THURSDAY, model.dayOfWeek()); - Assertions.assertEquals("o", model.startTime()); - Assertions.assertEquals("sg", model.duration()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/MaintenanceWindowsInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/MaintenanceWindowsInnerTests.java deleted file mode 100644 index d46d472d9d0f..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/MaintenanceWindowsInnerTests.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.MaintenanceWindowsInner; -import com.azure.resourcemanager.synapse.models.DayOfWeek; -import com.azure.resourcemanager.synapse.models.MaintenanceWindowTimeRange; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class MaintenanceWindowsInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MaintenanceWindowsInner model = - BinaryData - .fromString( - "{\"properties\":{\"timeRanges\":[{\"dayOfWeek\":\"Sunday\",\"startTime\":\"eodkwobda\",\"duration\":\"tibqdxbxwakb\"},{\"dayOfWeek\":\"Wednesday\",\"startTime\":\"ndlkzgxhurip\",\"duration\":\"podxunkb\"}]},\"id\":\"bxmubyynt\",\"name\":\"lrb\",\"type\":\"tkoievseotgq\"}") - .toObject(MaintenanceWindowsInner.class); - Assertions.assertEquals(DayOfWeek.SUNDAY, model.timeRanges().get(0).dayOfWeek()); - Assertions.assertEquals("eodkwobda", model.timeRanges().get(0).startTime()); - Assertions.assertEquals("tibqdxbxwakb", model.timeRanges().get(0).duration()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MaintenanceWindowsInner model = - new MaintenanceWindowsInner() - .withTimeRanges( - Arrays - .asList( - new MaintenanceWindowTimeRange() - .withDayOfWeek(DayOfWeek.SUNDAY) - .withStartTime("eodkwobda") - .withDuration("tibqdxbxwakb"), - new MaintenanceWindowTimeRange() - .withDayOfWeek(DayOfWeek.WEDNESDAY) - .withStartTime("ndlkzgxhurip") - .withDuration("podxunkb"))); - model = BinaryData.fromObject(model).toObject(MaintenanceWindowsInner.class); - Assertions.assertEquals(DayOfWeek.SUNDAY, model.timeRanges().get(0).dayOfWeek()); - Assertions.assertEquals("eodkwobda", model.timeRanges().get(0).startTime()); - Assertions.assertEquals("tibqdxbxwakb", model.timeRanges().get(0).duration()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/MaintenanceWindowsPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/MaintenanceWindowsPropertiesTests.java deleted file mode 100644 index 256d809b96ff..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/MaintenanceWindowsPropertiesTests.java +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.MaintenanceWindowsProperties; -import com.azure.resourcemanager.synapse.models.DayOfWeek; -import com.azure.resourcemanager.synapse.models.MaintenanceWindowTimeRange; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class MaintenanceWindowsPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MaintenanceWindowsProperties model = - BinaryData - .fromString( - "{\"timeRanges\":[{\"dayOfWeek\":\"Tuesday\",\"startTime\":\"wlauwzizxbmpg\",\"duration\":\"efuzmuvpbttd\"},{\"dayOfWeek\":\"Sunday\",\"startTime\":\"p\",\"duration\":\"ebmnzbtbhjpglk\"},{\"dayOfWeek\":\"Monday\",\"startTime\":\"dneu\",\"duration\":\"fphsdyhtozfikdow\"},{\"dayOfWeek\":\"Sunday\",\"startTime\":\"v\",\"duration\":\"xclvit\"}]}") - .toObject(MaintenanceWindowsProperties.class); - Assertions.assertEquals(DayOfWeek.TUESDAY, model.timeRanges().get(0).dayOfWeek()); - Assertions.assertEquals("wlauwzizxbmpg", model.timeRanges().get(0).startTime()); - Assertions.assertEquals("efuzmuvpbttd", model.timeRanges().get(0).duration()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MaintenanceWindowsProperties model = - new MaintenanceWindowsProperties() - .withTimeRanges( - Arrays - .asList( - new MaintenanceWindowTimeRange() - .withDayOfWeek(DayOfWeek.TUESDAY) - .withStartTime("wlauwzizxbmpg") - .withDuration("efuzmuvpbttd"), - new MaintenanceWindowTimeRange() - .withDayOfWeek(DayOfWeek.SUNDAY) - .withStartTime("p") - .withDuration("ebmnzbtbhjpglk"), - new MaintenanceWindowTimeRange() - .withDayOfWeek(DayOfWeek.MONDAY) - .withStartTime("dneu") - .withDuration("fphsdyhtozfikdow"), - new MaintenanceWindowTimeRange() - .withDayOfWeek(DayOfWeek.SUNDAY) - .withStartTime("v") - .withDuration("xclvit"))); - model = BinaryData.fromObject(model).toObject(MaintenanceWindowsProperties.class); - Assertions.assertEquals(DayOfWeek.TUESDAY, model.timeRanges().get(0).dayOfWeek()); - Assertions.assertEquals("wlauwzizxbmpg", model.timeRanges().get(0).startTime()); - Assertions.assertEquals("efuzmuvpbttd", model.timeRanges().get(0).duration()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ManagedIdentitySqlControlSettingsModelInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ManagedIdentitySqlControlSettingsModelInnerTests.java deleted file mode 100644 index 0c57aa6ce818..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ManagedIdentitySqlControlSettingsModelInnerTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.ManagedIdentitySqlControlSettingsModelInner; -import com.azure.resourcemanager.synapse.models.DesiredState; -import com.azure.resourcemanager.synapse.models.ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity; -import org.junit.jupiter.api.Assertions; - -public final class ManagedIdentitySqlControlSettingsModelInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ManagedIdentitySqlControlSettingsModelInner model = - BinaryData - .fromString( - "{\"properties\":{\"grantSqlControlToManagedIdentity\":{\"desiredState\":\"Enabled\",\"actualState\":\"Disabling\"}},\"id\":\"nsiru\",\"name\":\"hzmme\",\"type\":\"ckdlpag\"}") - .toObject(ManagedIdentitySqlControlSettingsModelInner.class); - Assertions.assertEquals(DesiredState.ENABLED, model.grantSqlControlToManagedIdentity().desiredState()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedIdentitySqlControlSettingsModelInner model = - new ManagedIdentitySqlControlSettingsModelInner() - .withGrantSqlControlToManagedIdentity( - new ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity() - .withDesiredState(DesiredState.ENABLED)); - model = BinaryData.fromObject(model).toObject(ManagedIdentitySqlControlSettingsModelInner.class); - Assertions.assertEquals(DesiredState.ENABLED, model.grantSqlControlToManagedIdentity().desiredState()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityTests.java deleted file mode 100644 index 3e18792ea99a..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.DesiredState; -import com.azure.resourcemanager.synapse.models.ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity; -import org.junit.jupiter.api.Assertions; - -public final class ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity model = - BinaryData - .fromString("{\"desiredState\":\"Enabled\",\"actualState\":\"Unknown\"}") - .toObject(ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity.class); - Assertions.assertEquals(DesiredState.ENABLED, model.desiredState()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity model = - new ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity() - .withDesiredState(DesiredState.ENABLED); - model = - BinaryData - .fromObject(model) - .toObject(ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity.class); - Assertions.assertEquals(DesiredState.ENABLED, model.desiredState()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ManagedIdentitySqlControlSettingsModelPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ManagedIdentitySqlControlSettingsModelPropertiesTests.java deleted file mode 100644 index 8d3c34860942..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ManagedIdentitySqlControlSettingsModelPropertiesTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.ManagedIdentitySqlControlSettingsModelProperties; -import com.azure.resourcemanager.synapse.models.DesiredState; -import com.azure.resourcemanager.synapse.models.ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity; -import org.junit.jupiter.api.Assertions; - -public final class ManagedIdentitySqlControlSettingsModelPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ManagedIdentitySqlControlSettingsModelProperties model = - BinaryData - .fromString( - "{\"grantSqlControlToManagedIdentity\":{\"desiredState\":\"Enabled\",\"actualState\":\"Disabled\"}}") - .toObject(ManagedIdentitySqlControlSettingsModelProperties.class); - Assertions.assertEquals(DesiredState.ENABLED, model.grantSqlControlToManagedIdentity().desiredState()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedIdentitySqlControlSettingsModelProperties model = - new ManagedIdentitySqlControlSettingsModelProperties() - .withGrantSqlControlToManagedIdentity( - new ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity() - .withDesiredState(DesiredState.ENABLED)); - model = BinaryData.fromObject(model).toObject(ManagedIdentitySqlControlSettingsModelProperties.class); - Assertions.assertEquals(DesiredState.ENABLED, model.grantSqlControlToManagedIdentity().desiredState()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ManagedIdentityTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ManagedIdentityTests.java deleted file mode 100644 index 28518f423c18..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ManagedIdentityTests.java +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.ManagedIdentity; -import com.azure.resourcemanager.synapse.models.ResourceIdentityType; -import com.azure.resourcemanager.synapse.models.UserAssignedManagedIdentity; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ManagedIdentityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ManagedIdentity model = - BinaryData - .fromString( - "{\"principalId\":\"ddyvvjskgfmo\",\"tenantId\":\"83f756fc-ba99-4f6f-abf8-45dc84541b54\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"tjeaahhvjhh\":{\"clientId\":\"bf52dee7-0664-441f-809b-5e69007ef11b\",\"principalId\":\"3aa66067-17f3-44fb-99cf-205da1c152f2\"},\"zybbj\":{\"clientId\":\"0c631fe0-e671-415f-a9fc-bf6ba14da35e\",\"principalId\":\"70f0a1be-5d32-4ca6-b8d2-df225199043f\"},\"jks\":{\"clientId\":\"4ce29efb-a2e4-48b2-acf0-8bafc2106bb5\",\"principalId\":\"dfb475a2-3c00-4d35-ae90-9cebc91c3124\"},\"yxvxevblbjed\":{\"clientId\":\"0f9fc1fd-de08-45c4-9892-1a46ddd831c0\",\"principalId\":\"e66c4165-b322-403a-89fa-acb8b979cb30\"}}}") - .toObject(ManagedIdentity.class); - Assertions.assertEquals(ResourceIdentityType.SYSTEM_ASSIGNED, model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedIdentity model = - new ManagedIdentity() - .withType(ResourceIdentityType.SYSTEM_ASSIGNED) - .withUserAssignedIdentities( - mapOf( - "tjeaahhvjhh", - new UserAssignedManagedIdentity(), - "zybbj", - new UserAssignedManagedIdentity(), - "jks", - new UserAssignedManagedIdentity(), - "yxvxevblbjed", - new UserAssignedManagedIdentity())); - model = BinaryData.fromObject(model).toObject(ManagedIdentity.class); - Assertions.assertEquals(ResourceIdentityType.SYSTEM_ASSIGNED, model.type()); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ManagedIntegrationRuntimeManagedVirtualNetworkReferenceTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ManagedIntegrationRuntimeManagedVirtualNetworkReferenceTests.java deleted file mode 100644 index 22fe4a3130fc..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ManagedIntegrationRuntimeManagedVirtualNetworkReferenceTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.ManagedIntegrationRuntimeManagedVirtualNetworkReference; -import org.junit.jupiter.api.Assertions; - -public final class ManagedIntegrationRuntimeManagedVirtualNetworkReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ManagedIntegrationRuntimeManagedVirtualNetworkReference model = - BinaryData - .fromString("{\"referenceName\":\"regzgyufutrwpwer\",\"type\":\"kzkdhmeott\",\"id\":\"jyosxwwh\"}") - .toObject(ManagedIntegrationRuntimeManagedVirtualNetworkReference.class); - Assertions.assertEquals("regzgyufutrwpwer", model.referenceName()); - Assertions.assertEquals("kzkdhmeott", model.type()); - Assertions.assertEquals("jyosxwwh", model.id()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedIntegrationRuntimeManagedVirtualNetworkReference model = - new ManagedIntegrationRuntimeManagedVirtualNetworkReference() - .withReferenceName("regzgyufutrwpwer") - .withType("kzkdhmeott") - .withId("jyosxwwh"); - model = BinaryData.fromObject(model).toObject(ManagedIntegrationRuntimeManagedVirtualNetworkReference.class); - Assertions.assertEquals("regzgyufutrwpwer", model.referenceName()); - Assertions.assertEquals("kzkdhmeott", model.type()); - Assertions.assertEquals("jyosxwwh", model.id()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ManagedIntegrationRuntimeTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ManagedIntegrationRuntimeTests.java deleted file mode 100644 index c2d4f2bba6a1..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ManagedIntegrationRuntimeTests.java +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeComputeProperties; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeEdition; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeLicenseType; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeSsisProperties; -import com.azure.resourcemanager.synapse.models.ManagedIntegrationRuntime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ManagedIntegrationRuntimeTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ManagedIntegrationRuntime model = - BinaryData - .fromString( - "{\"type\":\"Managed\",\"state\":\"Limited\",\"typeProperties\":{\"computeProperties\":{\"location\":\"lkhhu\",\"nodeSize\":\"cpoq\",\"numberOfNodes\":2065973208,\"maxParallelExecutionsPerNode\":1853837051,\"\":{\"nlejjjkxybwf\":\"datao\"}},\"ssisProperties\":{\"licenseType\":\"LicenseIncluded\",\"edition\":\"Standard\",\"expressCustomSetupProperties\":[],\"\":{\"tjknsxfwushcdp\":\"datayk\",\"kuwxeoiojfizfavk\":\"dataupnqrmgjfb\",\"fwxrzxmdew\":\"datazwfbcyaykmmfzs\"}}},\"managedVirtualNetwork\":{\"referenceName\":\"xkrplbjaz\",\"type\":\"wwviyo\",\"id\":\"suhbrnn\"},\"description\":\"xs\",\"\":{\"wetp\":\"datahqkb\",\"se\":\"datazycyqiqyhg\",\"sfledyn\":\"datazlex\",\"fbzkk\":\"datajpziu\"}}") - .toObject(ManagedIntegrationRuntime.class); - Assertions.assertEquals("xs", model.description()); - Assertions.assertEquals("lkhhu", model.computeProperties().location()); - Assertions.assertEquals("cpoq", model.computeProperties().nodeSize()); - Assertions.assertEquals(2065973208, model.computeProperties().numberOfNodes()); - Assertions.assertEquals(1853837051, model.computeProperties().maxParallelExecutionsPerNode()); - Assertions.assertEquals(IntegrationRuntimeLicenseType.LICENSE_INCLUDED, model.ssisProperties().licenseType()); - Assertions.assertEquals(IntegrationRuntimeEdition.STANDARD, model.ssisProperties().edition()); - Assertions.assertEquals("xkrplbjaz", model.referenceName()); - Assertions.assertEquals("wwviyo", model.typeManagedVirtualNetworkType()); - Assertions.assertEquals("suhbrnn", model.id()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedIntegrationRuntime model = - new ManagedIntegrationRuntime() - .withDescription("xs") - .withComputeProperties( - new IntegrationRuntimeComputeProperties() - .withLocation("lkhhu") - .withNodeSize("cpoq") - .withNumberOfNodes(2065973208) - .withMaxParallelExecutionsPerNode(1853837051) - .withAdditionalProperties(mapOf())) - .withSsisProperties( - new IntegrationRuntimeSsisProperties() - .withLicenseType(IntegrationRuntimeLicenseType.LICENSE_INCLUDED) - .withEdition(IntegrationRuntimeEdition.STANDARD) - .withExpressCustomSetupProperties(Arrays.asList()) - .withAdditionalProperties(mapOf())) - .withReferenceName("xkrplbjaz") - .withTypeManagedVirtualNetworkType("wwviyo") - .withId("suhbrnn"); - model = BinaryData.fromObject(model).toObject(ManagedIntegrationRuntime.class); - Assertions.assertEquals("xs", model.description()); - Assertions.assertEquals("lkhhu", model.computeProperties().location()); - Assertions.assertEquals("cpoq", model.computeProperties().nodeSize()); - Assertions.assertEquals(2065973208, model.computeProperties().numberOfNodes()); - Assertions.assertEquals(1853837051, model.computeProperties().maxParallelExecutionsPerNode()); - Assertions.assertEquals(IntegrationRuntimeLicenseType.LICENSE_INCLUDED, model.ssisProperties().licenseType()); - Assertions.assertEquals(IntegrationRuntimeEdition.STANDARD, model.ssisProperties().edition()); - Assertions.assertEquals("xkrplbjaz", model.referenceName()); - Assertions.assertEquals("wwviyo", model.typeManagedVirtualNetworkType()); - Assertions.assertEquals("suhbrnn", model.id()); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ManagedIntegrationRuntimeTypePropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ManagedIntegrationRuntimeTypePropertiesTests.java deleted file mode 100644 index cfdd0f326683..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ManagedIntegrationRuntimeTypePropertiesTests.java +++ /dev/null @@ -1,146 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.ManagedIntegrationRuntimeTypeProperties; -import com.azure.resourcemanager.synapse.models.CustomSetupBase; -import com.azure.resourcemanager.synapse.models.DataFlowComputeType; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeComputeProperties; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeCustomSetupScriptProperties; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeDataFlowProperties; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeDataProxyProperties; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeEdition; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeLicenseType; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeSsisCatalogInfo; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeSsisCatalogPricingTier; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeSsisProperties; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeVNetProperties; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ManagedIntegrationRuntimeTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ManagedIntegrationRuntimeTypeProperties model = - BinaryData - .fromString( - "{\"computeProperties\":{\"location\":\"hqsycljselp\",\"nodeSize\":\"bafvafhlbylcc\",\"numberOfNodes\":1015294496,\"maxParallelExecutionsPerNode\":1495868863,\"dataFlowProperties\":{\"computeType\":\"ComputeOptimized\",\"coreCount\":1737850278,\"timeToLive\":1616798113,\"cleanup\":false,\"\":{\"airrhvhfnracw\":\"dataltdb\"}},\"vNetProperties\":{\"vNetId\":\"igtuu\",\"subnet\":\"ouhdawsigrb\",\"publicIPs\":[\"sjybvitv\",\"kjyaznumtg\",\"m\"],\"subnetId\":\"dchozfnkfexl\",\"\":{\"naqln\":\"dataoakizvoai\",\"phvxz\":\"datawiguyxlyk\"}},\"\":{\"vkcqhr\":\"datahmpejtlkexaonw\",\"ubyqj\":\"datahxknlccrmmkyupi\",\"em\":\"datakakfqfr\"}},\"ssisProperties\":{\"catalogInfo\":{\"catalogServerEndpoint\":\"udxjascowv\",\"catalogAdminUserName\":\"jkpdxphlkksnm\",\"catalogPricingTier\":\"Premium\",\"\":{\"zuqnwsithuqo\":\"datajd\"}},\"licenseType\":\"BasePrice\",\"customSetupScriptProperties\":{\"blobContainerUri\":\"uqwqulsutrjbhxyk\"},\"dataProxyProperties\":{\"path\":\"vqqugdrftbcv\"},\"edition\":\"Enterprise\",\"expressCustomSetupProperties\":[{\"type\":\"CustomSetupBase\"},{\"type\":\"CustomSetupBase\"},{\"type\":\"CustomSetupBase\"},{\"type\":\"CustomSetupBase\"}],\"\":{\"reagkhyxvrqt\":\"dataowtljvfw\",\"s\":\"databczsulmdgglmepjp\",\"fpgylkve\":\"dataykgsangpszng\",\"edmzrgjfoknub\":\"datajujcngoad\"}}}") - .toObject(ManagedIntegrationRuntimeTypeProperties.class); - Assertions.assertEquals("hqsycljselp", model.computeProperties().location()); - Assertions.assertEquals("bafvafhlbylcc", model.computeProperties().nodeSize()); - Assertions.assertEquals(1015294496, model.computeProperties().numberOfNodes()); - Assertions.assertEquals(1495868863, model.computeProperties().maxParallelExecutionsPerNode()); - Assertions - .assertEquals( - DataFlowComputeType.COMPUTE_OPTIMIZED, model.computeProperties().dataFlowProperties().computeType()); - Assertions.assertEquals(1737850278, model.computeProperties().dataFlowProperties().coreCount()); - Assertions.assertEquals(1616798113, model.computeProperties().dataFlowProperties().timeToLive()); - Assertions.assertEquals(false, model.computeProperties().dataFlowProperties().cleanup()); - Assertions.assertEquals("igtuu", model.computeProperties().vNetProperties().vNetId()); - Assertions.assertEquals("ouhdawsigrb", model.computeProperties().vNetProperties().subnet()); - Assertions.assertEquals("sjybvitv", model.computeProperties().vNetProperties().publicIPs().get(0)); - Assertions.assertEquals("dchozfnkfexl", model.computeProperties().vNetProperties().subnetId()); - Assertions.assertEquals("udxjascowv", model.ssisProperties().catalogInfo().catalogServerEndpoint()); - Assertions.assertEquals("jkpdxphlkksnm", model.ssisProperties().catalogInfo().catalogAdminUsername()); - Assertions - .assertEquals( - IntegrationRuntimeSsisCatalogPricingTier.PREMIUM, - model.ssisProperties().catalogInfo().catalogPricingTier()); - Assertions.assertEquals(IntegrationRuntimeLicenseType.BASE_PRICE, model.ssisProperties().licenseType()); - Assertions - .assertEquals("uqwqulsutrjbhxyk", model.ssisProperties().customSetupScriptProperties().blobContainerUri()); - Assertions.assertEquals("vqqugdrftbcv", model.ssisProperties().dataProxyProperties().path()); - Assertions.assertEquals(IntegrationRuntimeEdition.ENTERPRISE, model.ssisProperties().edition()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedIntegrationRuntimeTypeProperties model = - new ManagedIntegrationRuntimeTypeProperties() - .withComputeProperties( - new IntegrationRuntimeComputeProperties() - .withLocation("hqsycljselp") - .withNodeSize("bafvafhlbylcc") - .withNumberOfNodes(1015294496) - .withMaxParallelExecutionsPerNode(1495868863) - .withDataFlowProperties( - new IntegrationRuntimeDataFlowProperties() - .withComputeType(DataFlowComputeType.COMPUTE_OPTIMIZED) - .withCoreCount(1737850278) - .withTimeToLive(1616798113) - .withCleanup(false) - .withAdditionalProperties(mapOf())) - .withVNetProperties( - new IntegrationRuntimeVNetProperties() - .withVNetId("igtuu") - .withSubnet("ouhdawsigrb") - .withPublicIPs(Arrays.asList("sjybvitv", "kjyaznumtg", "m")) - .withSubnetId("dchozfnkfexl") - .withAdditionalProperties(mapOf())) - .withAdditionalProperties(mapOf())) - .withSsisProperties( - new IntegrationRuntimeSsisProperties() - .withCatalogInfo( - new IntegrationRuntimeSsisCatalogInfo() - .withCatalogServerEndpoint("udxjascowv") - .withCatalogAdminUsername("jkpdxphlkksnm") - .withCatalogPricingTier(IntegrationRuntimeSsisCatalogPricingTier.PREMIUM) - .withAdditionalProperties(mapOf())) - .withLicenseType(IntegrationRuntimeLicenseType.BASE_PRICE) - .withCustomSetupScriptProperties( - new IntegrationRuntimeCustomSetupScriptProperties() - .withBlobContainerUri("uqwqulsutrjbhxyk")) - .withDataProxyProperties(new IntegrationRuntimeDataProxyProperties().withPath("vqqugdrftbcv")) - .withEdition(IntegrationRuntimeEdition.ENTERPRISE) - .withExpressCustomSetupProperties( - Arrays - .asList( - new CustomSetupBase(), - new CustomSetupBase(), - new CustomSetupBase(), - new CustomSetupBase())) - .withAdditionalProperties(mapOf())); - model = BinaryData.fromObject(model).toObject(ManagedIntegrationRuntimeTypeProperties.class); - Assertions.assertEquals("hqsycljselp", model.computeProperties().location()); - Assertions.assertEquals("bafvafhlbylcc", model.computeProperties().nodeSize()); - Assertions.assertEquals(1015294496, model.computeProperties().numberOfNodes()); - Assertions.assertEquals(1495868863, model.computeProperties().maxParallelExecutionsPerNode()); - Assertions - .assertEquals( - DataFlowComputeType.COMPUTE_OPTIMIZED, model.computeProperties().dataFlowProperties().computeType()); - Assertions.assertEquals(1737850278, model.computeProperties().dataFlowProperties().coreCount()); - Assertions.assertEquals(1616798113, model.computeProperties().dataFlowProperties().timeToLive()); - Assertions.assertEquals(false, model.computeProperties().dataFlowProperties().cleanup()); - Assertions.assertEquals("igtuu", model.computeProperties().vNetProperties().vNetId()); - Assertions.assertEquals("ouhdawsigrb", model.computeProperties().vNetProperties().subnet()); - Assertions.assertEquals("sjybvitv", model.computeProperties().vNetProperties().publicIPs().get(0)); - Assertions.assertEquals("dchozfnkfexl", model.computeProperties().vNetProperties().subnetId()); - Assertions.assertEquals("udxjascowv", model.ssisProperties().catalogInfo().catalogServerEndpoint()); - Assertions.assertEquals("jkpdxphlkksnm", model.ssisProperties().catalogInfo().catalogAdminUsername()); - Assertions - .assertEquals( - IntegrationRuntimeSsisCatalogPricingTier.PREMIUM, - model.ssisProperties().catalogInfo().catalogPricingTier()); - Assertions.assertEquals(IntegrationRuntimeLicenseType.BASE_PRICE, model.ssisProperties().licenseType()); - Assertions - .assertEquals("uqwqulsutrjbhxyk", model.ssisProperties().customSetupScriptProperties().blobContainerUri()); - Assertions.assertEquals("vqqugdrftbcv", model.ssisProperties().dataProxyProperties().path()); - Assertions.assertEquals(IntegrationRuntimeEdition.ENTERPRISE, model.ssisProperties().edition()); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ManagedVirtualNetworkSettingsTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ManagedVirtualNetworkSettingsTests.java deleted file mode 100644 index 97e356d3118e..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ManagedVirtualNetworkSettingsTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.ManagedVirtualNetworkSettings; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ManagedVirtualNetworkSettingsTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ManagedVirtualNetworkSettings model = - BinaryData - .fromString( - "{\"preventDataExfiltration\":false,\"linkedAccessCheckOnTargetResource\":true,\"allowedAadTenantIdsForLinking\":[\"pmyyefrpmpdnqq\",\"ka\",\"ao\",\"vmm\"]}") - .toObject(ManagedVirtualNetworkSettings.class); - Assertions.assertEquals(false, model.preventDataExfiltration()); - Assertions.assertEquals(true, model.linkedAccessCheckOnTargetResource()); - Assertions.assertEquals("pmyyefrpmpdnqq", model.allowedAadTenantIdsForLinking().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedVirtualNetworkSettings model = - new ManagedVirtualNetworkSettings() - .withPreventDataExfiltration(false) - .withLinkedAccessCheckOnTargetResource(true) - .withAllowedAadTenantIdsForLinking(Arrays.asList("pmyyefrpmpdnqq", "ka", "ao", "vmm")); - model = BinaryData.fromObject(model).toObject(ManagedVirtualNetworkSettings.class); - Assertions.assertEquals(false, model.preventDataExfiltration()); - Assertions.assertEquals(true, model.linkedAccessCheckOnTargetResource()); - Assertions.assertEquals("pmyyefrpmpdnqq", model.allowedAadTenantIdsForLinking().get(0)); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/MetadataSyncConfigInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/MetadataSyncConfigInnerTests.java deleted file mode 100644 index 1bf3551e1718..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/MetadataSyncConfigInnerTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.MetadataSyncConfigInner; -import org.junit.jupiter.api.Assertions; - -public final class MetadataSyncConfigInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MetadataSyncConfigInner model = - BinaryData - .fromString( - "{\"properties\":{\"enabled\":true,\"syncIntervalInMinutes\":96984034},\"id\":\"sw\",\"name\":\"rtjriplrbpbew\",\"type\":\"ghfg\"}") - .toObject(MetadataSyncConfigInner.class); - Assertions.assertEquals(true, model.enabled()); - Assertions.assertEquals(96984034, model.syncIntervalInMinutes()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MetadataSyncConfigInner model = - new MetadataSyncConfigInner().withEnabled(true).withSyncIntervalInMinutes(96984034); - model = BinaryData.fromObject(model).toObject(MetadataSyncConfigInner.class); - Assertions.assertEquals(true, model.enabled()); - Assertions.assertEquals(96984034, model.syncIntervalInMinutes()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/MetadataSyncConfigPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/MetadataSyncConfigPropertiesTests.java deleted file mode 100644 index 87564fbad4e6..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/MetadataSyncConfigPropertiesTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.MetadataSyncConfigProperties; -import org.junit.jupiter.api.Assertions; - -public final class MetadataSyncConfigPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - MetadataSyncConfigProperties model = - BinaryData - .fromString("{\"enabled\":false,\"syncIntervalInMinutes\":658652165}") - .toObject(MetadataSyncConfigProperties.class); - Assertions.assertEquals(false, model.enabled()); - Assertions.assertEquals(658652165, model.syncIntervalInMinutes()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - MetadataSyncConfigProperties model = - new MetadataSyncConfigProperties().withEnabled(false).withSyncIntervalInMinutes(658652165); - model = BinaryData.fromObject(model).toObject(MetadataSyncConfigProperties.class); - Assertions.assertEquals(false, model.enabled()); - Assertions.assertEquals(658652165, model.syncIntervalInMinutes()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationDisplayTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationDisplayTests.java deleted file mode 100644 index 86780e9ca332..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationDisplayTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.OperationDisplay; -import org.junit.jupiter.api.Assertions; - -public final class OperationDisplayTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationDisplay model = - BinaryData - .fromString( - "{\"provider\":\"vuicp\",\"operation\":\"trrmhwrb\",\"resource\":\"pyf\",\"description\":\"bhvjglr\"}") - .toObject(OperationDisplay.class); - Assertions.assertEquals("vuicp", model.provider()); - Assertions.assertEquals("trrmhwrb", model.operation()); - Assertions.assertEquals("pyf", model.resource()); - Assertions.assertEquals("bhvjglr", model.description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationDisplay model = - new OperationDisplay() - .withProvider("vuicp") - .withOperation("trrmhwrb") - .withResource("pyf") - .withDescription("bhvjglr"); - model = BinaryData.fromObject(model).toObject(OperationDisplay.class); - Assertions.assertEquals("vuicp", model.provider()); - Assertions.assertEquals("trrmhwrb", model.operation()); - Assertions.assertEquals("pyf", model.resource()); - Assertions.assertEquals("bhvjglr", model.description()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationInnerTests.java deleted file mode 100644 index a6470c611dc5..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationInnerTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.OperationInner; -import com.azure.resourcemanager.synapse.models.OperationDisplay; -import org.junit.jupiter.api.Assertions; - -public final class OperationInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationInner model = - BinaryData - .fromString( - "{\"name\":\"cjimryvwgcwwpbmz\",\"display\":{\"provider\":\"sydsxwefohe\",\"operation\":\"vopwndyqleallk\",\"resource\":\"tkhlowkxxpvbr\",\"description\":\"jmzsyzfh\"},\"origin\":\"lhikcyychunsj\",\"properties\":\"datajrtwsz\"}") - .toObject(OperationInner.class); - Assertions.assertEquals("cjimryvwgcwwpbmz", model.name()); - Assertions.assertEquals("sydsxwefohe", model.display().provider()); - Assertions.assertEquals("vopwndyqleallk", model.display().operation()); - Assertions.assertEquals("tkhlowkxxpvbr", model.display().resource()); - Assertions.assertEquals("jmzsyzfh", model.display().description()); - Assertions.assertEquals("lhikcyychunsj", model.origin()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationInner model = - new OperationInner() - .withName("cjimryvwgcwwpbmz") - .withDisplay( - new OperationDisplay() - .withProvider("sydsxwefohe") - .withOperation("vopwndyqleallk") - .withResource("tkhlowkxxpvbr") - .withDescription("jmzsyzfh")) - .withOrigin("lhikcyychunsj") - .withProperties("datajrtwsz"); - model = BinaryData.fromObject(model).toObject(OperationInner.class); - Assertions.assertEquals("cjimryvwgcwwpbmz", model.name()); - Assertions.assertEquals("sydsxwefohe", model.display().provider()); - Assertions.assertEquals("vopwndyqleallk", model.display().operation()); - Assertions.assertEquals("tkhlowkxxpvbr", model.display().resource()); - Assertions.assertEquals("jmzsyzfh", model.display().description()); - Assertions.assertEquals("lhikcyychunsj", model.origin()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationListResultTests.java deleted file mode 100644 index f64536b990c7..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationListResultTests.java +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.OperationInner; -import com.azure.resourcemanager.synapse.models.OperationDisplay; -import com.azure.resourcemanager.synapse.models.OperationListResult; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class OperationListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationListResult model = - BinaryData - .fromString( - "{\"value\":[{\"name\":\"qofyuicdhzbdy\",\"display\":{\"provider\":\"gbdvibidmhmwff\",\"operation\":\"fmuvapckccr\",\"resource\":\"weyoxoy\",\"description\":\"k\"},\"origin\":\"aimmoiroqb\",\"properties\":\"datahbragapyyr\"},{\"name\":\"svbpavbopfppdbwn\",\"display\":{\"provider\":\"ahxku\",\"operation\":\"sjcaacfdmmcpugm\",\"resource\":\"qepvufhbzeh\",\"description\":\"hoqhnl\"},\"origin\":\"nbldxeaclgschori\",\"properties\":\"datarsrrmoucsofldp\"},{\"name\":\"iyfc\",\"display\":{\"provider\":\"eolhbhlvbmx\",\"operation\":\"ibsxtkcud\",\"resource\":\"sfar\",\"description\":\"iowl\"},\"origin\":\"xnq\",\"properties\":\"datawgfstmhqykizm\"}],\"nextLink\":\"saoafcluqvox\"}") - .toObject(OperationListResult.class); - Assertions.assertEquals("qofyuicdhzbdy", model.value().get(0).name()); - Assertions.assertEquals("gbdvibidmhmwff", model.value().get(0).display().provider()); - Assertions.assertEquals("fmuvapckccr", model.value().get(0).display().operation()); - Assertions.assertEquals("weyoxoy", model.value().get(0).display().resource()); - Assertions.assertEquals("k", model.value().get(0).display().description()); - Assertions.assertEquals("aimmoiroqb", model.value().get(0).origin()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationListResult model = - new OperationListResult() - .withValue( - Arrays - .asList( - new OperationInner() - .withName("qofyuicdhzbdy") - .withDisplay( - new OperationDisplay() - .withProvider("gbdvibidmhmwff") - .withOperation("fmuvapckccr") - .withResource("weyoxoy") - .withDescription("k")) - .withOrigin("aimmoiroqb") - .withProperties("datahbragapyyr"), - new OperationInner() - .withName("svbpavbopfppdbwn") - .withDisplay( - new OperationDisplay() - .withProvider("ahxku") - .withOperation("sjcaacfdmmcpugm") - .withResource("qepvufhbzeh") - .withDescription("hoqhnl")) - .withOrigin("nbldxeaclgschori") - .withProperties("datarsrrmoucsofldp"), - new OperationInner() - .withName("iyfc") - .withDisplay( - new OperationDisplay() - .withProvider("eolhbhlvbmx") - .withOperation("ibsxtkcud") - .withResource("sfar") - .withDescription("iowl")) - .withOrigin("xnq") - .withProperties("datawgfstmhqykizm"))); - model = BinaryData.fromObject(model).toObject(OperationListResult.class); - Assertions.assertEquals("qofyuicdhzbdy", model.value().get(0).name()); - Assertions.assertEquals("gbdvibidmhmwff", model.value().get(0).display().provider()); - Assertions.assertEquals("fmuvapckccr", model.value().get(0).display().operation()); - Assertions.assertEquals("weyoxoy", model.value().get(0).display().resource()); - Assertions.assertEquals("k", model.value().get(0).display().description()); - Assertions.assertEquals("aimmoiroqb", model.value().get(0).origin()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationMetaLogSpecificationTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationMetaLogSpecificationTests.java deleted file mode 100644 index 6f80738c025a..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationMetaLogSpecificationTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.OperationMetaLogSpecification; -import org.junit.jupiter.api.Assertions; - -public final class OperationMetaLogSpecificationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationMetaLogSpecification model = - BinaryData - .fromString("{\"displayName\":\"toqcjmklja\",\"blobDuration\":\"qidtqajzyu\",\"name\":\"kudjkrlkhb\"}") - .toObject(OperationMetaLogSpecification.class); - Assertions.assertEquals("toqcjmklja", model.displayName()); - Assertions.assertEquals("qidtqajzyu", model.blobDuration()); - Assertions.assertEquals("kudjkrlkhb", model.name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationMetaLogSpecification model = - new OperationMetaLogSpecification() - .withDisplayName("toqcjmklja") - .withBlobDuration("qidtqajzyu") - .withName("kudjkrlkhb"); - model = BinaryData.fromObject(model).toObject(OperationMetaLogSpecification.class); - Assertions.assertEquals("toqcjmklja", model.displayName()); - Assertions.assertEquals("qidtqajzyu", model.blobDuration()); - Assertions.assertEquals("kudjkrlkhb", model.name()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationMetaMetricDimensionSpecificationTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationMetaMetricDimensionSpecificationTests.java deleted file mode 100644 index 32b1f0378cc2..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationMetaMetricDimensionSpecificationTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.OperationMetaMetricDimensionSpecification; -import org.junit.jupiter.api.Assertions; - -public final class OperationMetaMetricDimensionSpecificationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationMetaMetricDimensionSpecification model = - BinaryData - .fromString("{\"displayName\":\"cpc\",\"name\":\"hurzafblj\",\"toBeExportedForShoebox\":true}") - .toObject(OperationMetaMetricDimensionSpecification.class); - Assertions.assertEquals("cpc", model.displayName()); - Assertions.assertEquals("hurzafblj", model.name()); - Assertions.assertEquals(true, model.toBeExportedForShoebox()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationMetaMetricDimensionSpecification model = - new OperationMetaMetricDimensionSpecification() - .withDisplayName("cpc") - .withName("hurzafblj") - .withToBeExportedForShoebox(true); - model = BinaryData.fromObject(model).toObject(OperationMetaMetricDimensionSpecification.class); - Assertions.assertEquals("cpc", model.displayName()); - Assertions.assertEquals("hurzafblj", model.name()); - Assertions.assertEquals(true, model.toBeExportedForShoebox()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationMetaMetricSpecificationTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationMetaMetricSpecificationTests.java deleted file mode 100644 index 062c0f9b76fb..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationMetaMetricSpecificationTests.java +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.OperationMetaMetricDimensionSpecification; -import com.azure.resourcemanager.synapse.models.OperationMetaMetricSpecification; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class OperationMetaMetricSpecificationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationMetaMetricSpecification model = - BinaryData - .fromString( - "{\"sourceMdmNamespace\":\"rfidfvzwdz\",\"displayName\":\"tymw\",\"name\":\"dkfthwxmnt\",\"aggregationType\":\"waopvkmijcmmxd\",\"displayDescription\":\"fufsrpymzi\",\"sourceMdmAccount\":\"sezcxtb\",\"enableRegionalMdmAccount\":false,\"unit\":\"yc\",\"dimensions\":[{\"displayName\":\"wmdwzjeiachboo\",\"name\":\"lnrosfqp\",\"toBeExportedForShoebox\":true},{\"displayName\":\"zzvypyqrimzinp\",\"name\":\"wjdk\",\"toBeExportedForShoebox\":true},{\"displayName\":\"od\",\"name\":\"hc\",\"toBeExportedForShoebox\":false},{\"displayName\":\"hjtckwhd\",\"name\":\"ifiyipjxsqwpgrj\",\"toBeExportedForShoebox\":true}],\"supportsInstanceLevelAggregation\":true,\"metricFilterPattern\":\"jxvsnbyxqabn\"}") - .toObject(OperationMetaMetricSpecification.class); - Assertions.assertEquals("rfidfvzwdz", model.sourceMdmNamespace()); - Assertions.assertEquals("tymw", model.displayName()); - Assertions.assertEquals("dkfthwxmnt", model.name()); - Assertions.assertEquals("waopvkmijcmmxd", model.aggregationType()); - Assertions.assertEquals("fufsrpymzi", model.displayDescription()); - Assertions.assertEquals("sezcxtb", model.sourceMdmAccount()); - Assertions.assertEquals(false, model.enableRegionalMdmAccount()); - Assertions.assertEquals("yc", model.unit()); - Assertions.assertEquals("wmdwzjeiachboo", model.dimensions().get(0).displayName()); - Assertions.assertEquals("lnrosfqp", model.dimensions().get(0).name()); - Assertions.assertEquals(true, model.dimensions().get(0).toBeExportedForShoebox()); - Assertions.assertEquals(true, model.supportsInstanceLevelAggregation()); - Assertions.assertEquals("jxvsnbyxqabn", model.metricFilterPattern()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationMetaMetricSpecification model = - new OperationMetaMetricSpecification() - .withSourceMdmNamespace("rfidfvzwdz") - .withDisplayName("tymw") - .withName("dkfthwxmnt") - .withAggregationType("waopvkmijcmmxd") - .withDisplayDescription("fufsrpymzi") - .withSourceMdmAccount("sezcxtb") - .withEnableRegionalMdmAccount(false) - .withUnit("yc") - .withDimensions( - Arrays - .asList( - new OperationMetaMetricDimensionSpecification() - .withDisplayName("wmdwzjeiachboo") - .withName("lnrosfqp") - .withToBeExportedForShoebox(true), - new OperationMetaMetricDimensionSpecification() - .withDisplayName("zzvypyqrimzinp") - .withName("wjdk") - .withToBeExportedForShoebox(true), - new OperationMetaMetricDimensionSpecification() - .withDisplayName("od") - .withName("hc") - .withToBeExportedForShoebox(false), - new OperationMetaMetricDimensionSpecification() - .withDisplayName("hjtckwhd") - .withName("ifiyipjxsqwpgrj") - .withToBeExportedForShoebox(true))) - .withSupportsInstanceLevelAggregation(true) - .withMetricFilterPattern("jxvsnbyxqabn"); - model = BinaryData.fromObject(model).toObject(OperationMetaMetricSpecification.class); - Assertions.assertEquals("rfidfvzwdz", model.sourceMdmNamespace()); - Assertions.assertEquals("tymw", model.displayName()); - Assertions.assertEquals("dkfthwxmnt", model.name()); - Assertions.assertEquals("waopvkmijcmmxd", model.aggregationType()); - Assertions.assertEquals("fufsrpymzi", model.displayDescription()); - Assertions.assertEquals("sezcxtb", model.sourceMdmAccount()); - Assertions.assertEquals(false, model.enableRegionalMdmAccount()); - Assertions.assertEquals("yc", model.unit()); - Assertions.assertEquals("wmdwzjeiachboo", model.dimensions().get(0).displayName()); - Assertions.assertEquals("lnrosfqp", model.dimensions().get(0).name()); - Assertions.assertEquals(true, model.dimensions().get(0).toBeExportedForShoebox()); - Assertions.assertEquals(true, model.supportsInstanceLevelAggregation()); - Assertions.assertEquals("jxvsnbyxqabn", model.metricFilterPattern()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationMetaPropertyInfoTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationMetaPropertyInfoTests.java deleted file mode 100644 index 769c4209cca3..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationMetaPropertyInfoTests.java +++ /dev/null @@ -1,109 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.OperationMetaPropertyInfo; -import com.azure.resourcemanager.synapse.models.OperationMetaLogSpecification; -import com.azure.resourcemanager.synapse.models.OperationMetaMetricSpecification; -import com.azure.resourcemanager.synapse.models.OperationMetaServiceSpecification; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class OperationMetaPropertyInfoTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationMetaPropertyInfo model = - BinaryData - .fromString( - "{\"serviceSpecification\":{\"metricSpecifications\":[{\"sourceMdmNamespace\":\"msbzjhcrz\",\"displayName\":\"dphlxaolt\",\"name\":\"trg\",\"aggregationType\":\"bpf\",\"displayDescription\":\"s\",\"sourceMdmAccount\":\"zgvfcjrwz\",\"enableRegionalMdmAccount\":true,\"unit\":\"tfell\",\"dimensions\":[],\"supportsInstanceLevelAggregation\":true,\"metricFilterPattern\":\"tonpe\"},{\"sourceMdmNamespace\":\"pjkjlxofpdv\",\"displayName\":\"fxxypininmayhuy\",\"name\":\"kpode\",\"aggregationType\":\"oginuvamiheognar\",\"displayDescription\":\"xth\",\"sourceMdmAccount\":\"tusivyevcciqihn\",\"enableRegionalMdmAccount\":false,\"unit\":\"bwjzr\",\"dimensions\":[],\"supportsInstanceLevelAggregation\":false,\"metricFilterPattern\":\"gispemvtzfkufubl\"}],\"logSpecifications\":[{\"displayName\":\"qeof\",\"blobDuration\":\"e\",\"name\":\"hqjbasvmsmj\"},{\"displayName\":\"lngsntnbybkzgcwr\",\"blobDuration\":\"lxxwrljdouskc\",\"name\":\"kocrcjdkwtnhx\"}]}}") - .toObject(OperationMetaPropertyInfo.class); - Assertions - .assertEquals("msbzjhcrz", model.serviceSpecification().metricSpecifications().get(0).sourceMdmNamespace()); - Assertions.assertEquals("dphlxaolt", model.serviceSpecification().metricSpecifications().get(0).displayName()); - Assertions.assertEquals("trg", model.serviceSpecification().metricSpecifications().get(0).name()); - Assertions.assertEquals("bpf", model.serviceSpecification().metricSpecifications().get(0).aggregationType()); - Assertions.assertEquals("s", model.serviceSpecification().metricSpecifications().get(0).displayDescription()); - Assertions - .assertEquals("zgvfcjrwz", model.serviceSpecification().metricSpecifications().get(0).sourceMdmAccount()); - Assertions - .assertEquals(true, model.serviceSpecification().metricSpecifications().get(0).enableRegionalMdmAccount()); - Assertions.assertEquals("tfell", model.serviceSpecification().metricSpecifications().get(0).unit()); - Assertions - .assertEquals( - true, model.serviceSpecification().metricSpecifications().get(0).supportsInstanceLevelAggregation()); - Assertions - .assertEquals("tonpe", model.serviceSpecification().metricSpecifications().get(0).metricFilterPattern()); - Assertions.assertEquals("qeof", model.serviceSpecification().logSpecifications().get(0).displayName()); - Assertions.assertEquals("e", model.serviceSpecification().logSpecifications().get(0).blobDuration()); - Assertions.assertEquals("hqjbasvmsmj", model.serviceSpecification().logSpecifications().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationMetaPropertyInfo model = - new OperationMetaPropertyInfo() - .withServiceSpecification( - new OperationMetaServiceSpecification() - .withMetricSpecifications( - Arrays - .asList( - new OperationMetaMetricSpecification() - .withSourceMdmNamespace("msbzjhcrz") - .withDisplayName("dphlxaolt") - .withName("trg") - .withAggregationType("bpf") - .withDisplayDescription("s") - .withSourceMdmAccount("zgvfcjrwz") - .withEnableRegionalMdmAccount(true) - .withUnit("tfell") - .withDimensions(Arrays.asList()) - .withSupportsInstanceLevelAggregation(true) - .withMetricFilterPattern("tonpe"), - new OperationMetaMetricSpecification() - .withSourceMdmNamespace("pjkjlxofpdv") - .withDisplayName("fxxypininmayhuy") - .withName("kpode") - .withAggregationType("oginuvamiheognar") - .withDisplayDescription("xth") - .withSourceMdmAccount("tusivyevcciqihn") - .withEnableRegionalMdmAccount(false) - .withUnit("bwjzr") - .withDimensions(Arrays.asList()) - .withSupportsInstanceLevelAggregation(false) - .withMetricFilterPattern("gispemvtzfkufubl"))) - .withLogSpecifications( - Arrays - .asList( - new OperationMetaLogSpecification() - .withDisplayName("qeof") - .withBlobDuration("e") - .withName("hqjbasvmsmj"), - new OperationMetaLogSpecification() - .withDisplayName("lngsntnbybkzgcwr") - .withBlobDuration("lxxwrljdouskc") - .withName("kocrcjdkwtnhx")))); - model = BinaryData.fromObject(model).toObject(OperationMetaPropertyInfo.class); - Assertions - .assertEquals("msbzjhcrz", model.serviceSpecification().metricSpecifications().get(0).sourceMdmNamespace()); - Assertions.assertEquals("dphlxaolt", model.serviceSpecification().metricSpecifications().get(0).displayName()); - Assertions.assertEquals("trg", model.serviceSpecification().metricSpecifications().get(0).name()); - Assertions.assertEquals("bpf", model.serviceSpecification().metricSpecifications().get(0).aggregationType()); - Assertions.assertEquals("s", model.serviceSpecification().metricSpecifications().get(0).displayDescription()); - Assertions - .assertEquals("zgvfcjrwz", model.serviceSpecification().metricSpecifications().get(0).sourceMdmAccount()); - Assertions - .assertEquals(true, model.serviceSpecification().metricSpecifications().get(0).enableRegionalMdmAccount()); - Assertions.assertEquals("tfell", model.serviceSpecification().metricSpecifications().get(0).unit()); - Assertions - .assertEquals( - true, model.serviceSpecification().metricSpecifications().get(0).supportsInstanceLevelAggregation()); - Assertions - .assertEquals("tonpe", model.serviceSpecification().metricSpecifications().get(0).metricFilterPattern()); - Assertions.assertEquals("qeof", model.serviceSpecification().logSpecifications().get(0).displayName()); - Assertions.assertEquals("e", model.serviceSpecification().logSpecifications().get(0).blobDuration()); - Assertions.assertEquals("hqjbasvmsmj", model.serviceSpecification().logSpecifications().get(0).name()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationMetaServiceSpecificationTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationMetaServiceSpecificationTests.java deleted file mode 100644 index 43ae773bd098..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationMetaServiceSpecificationTests.java +++ /dev/null @@ -1,118 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.OperationMetaLogSpecification; -import com.azure.resourcemanager.synapse.models.OperationMetaMetricSpecification; -import com.azure.resourcemanager.synapse.models.OperationMetaServiceSpecification; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class OperationMetaServiceSpecificationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationMetaServiceSpecification model = - BinaryData - .fromString( - "{\"metricSpecifications\":[{\"sourceMdmNamespace\":\"iksqr\",\"displayName\":\"ssainqpjwnzll\",\"name\":\"mppeebvmgxs\",\"aggregationType\":\"kyqduujit\",\"displayDescription\":\"czdzev\",\"sourceMdmAccount\":\"hkr\",\"enableRegionalMdmAccount\":false,\"unit\":\"ppdsbdkvwrwj\",\"dimensions\":[],\"supportsInstanceLevelAggregation\":true,\"metricFilterPattern\":\"utjeltmrldhugj\"},{\"sourceMdmNamespace\":\"datqxhocdgeabl\",\"displayName\":\"huticndvkao\",\"name\":\"yiftyhxhuro\",\"aggregationType\":\"tyxolniwpwc\",\"displayDescription\":\"jfkgiawxk\",\"sourceMdmAccount\":\"ypl\",\"enableRegionalMdmAccount\":false,\"unit\":\"asy\",\"dimensions\":[],\"supportsInstanceLevelAggregation\":false,\"metricFilterPattern\":\"sgcbac\"},{\"sourceMdmNamespace\":\"ejk\",\"displayName\":\"ynqgoulzndlikwyq\",\"name\":\"fgibmadgakeq\",\"aggregationType\":\"xybz\",\"displayDescription\":\"e\",\"sourceMdmAccount\":\"ytb\",\"enableRegionalMdmAccount\":false,\"unit\":\"ouf\",\"dimensions\":[],\"supportsInstanceLevelAggregation\":false,\"metricFilterPattern\":\"smodmgloug\"},{\"sourceMdmNamespace\":\"kwtmutduqktapspw\",\"displayName\":\"uertumk\",\"name\":\"svqwhbmdgbbjfd\",\"aggregationType\":\"mbmbexppbh\",\"displayDescription\":\"qrolfpf\",\"sourceMdmAccount\":\"algbquxigjyjg\",\"enableRegionalMdmAccount\":true,\"unit\":\"yfhrtxilnerkujy\",\"dimensions\":[],\"supportsInstanceLevelAggregation\":false,\"metricFilterPattern\":\"vfqawrlyxwjkcpr\"}],\"logSpecifications\":[{\"displayName\":\"xgjvtbv\",\"blobDuration\":\"sszdnru\",\"name\":\"guhmuouqfpr\"},{\"displayName\":\"wbnguitnwui\",\"blobDuration\":\"a\",\"name\":\"ufizuckyf\"}]}") - .toObject(OperationMetaServiceSpecification.class); - Assertions.assertEquals("iksqr", model.metricSpecifications().get(0).sourceMdmNamespace()); - Assertions.assertEquals("ssainqpjwnzll", model.metricSpecifications().get(0).displayName()); - Assertions.assertEquals("mppeebvmgxs", model.metricSpecifications().get(0).name()); - Assertions.assertEquals("kyqduujit", model.metricSpecifications().get(0).aggregationType()); - Assertions.assertEquals("czdzev", model.metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("hkr", model.metricSpecifications().get(0).sourceMdmAccount()); - Assertions.assertEquals(false, model.metricSpecifications().get(0).enableRegionalMdmAccount()); - Assertions.assertEquals("ppdsbdkvwrwj", model.metricSpecifications().get(0).unit()); - Assertions.assertEquals(true, model.metricSpecifications().get(0).supportsInstanceLevelAggregation()); - Assertions.assertEquals("utjeltmrldhugj", model.metricSpecifications().get(0).metricFilterPattern()); - Assertions.assertEquals("xgjvtbv", model.logSpecifications().get(0).displayName()); - Assertions.assertEquals("sszdnru", model.logSpecifications().get(0).blobDuration()); - Assertions.assertEquals("guhmuouqfpr", model.logSpecifications().get(0).name()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationMetaServiceSpecification model = - new OperationMetaServiceSpecification() - .withMetricSpecifications( - Arrays - .asList( - new OperationMetaMetricSpecification() - .withSourceMdmNamespace("iksqr") - .withDisplayName("ssainqpjwnzll") - .withName("mppeebvmgxs") - .withAggregationType("kyqduujit") - .withDisplayDescription("czdzev") - .withSourceMdmAccount("hkr") - .withEnableRegionalMdmAccount(false) - .withUnit("ppdsbdkvwrwj") - .withDimensions(Arrays.asList()) - .withSupportsInstanceLevelAggregation(true) - .withMetricFilterPattern("utjeltmrldhugj"), - new OperationMetaMetricSpecification() - .withSourceMdmNamespace("datqxhocdgeabl") - .withDisplayName("huticndvkao") - .withName("yiftyhxhuro") - .withAggregationType("tyxolniwpwc") - .withDisplayDescription("jfkgiawxk") - .withSourceMdmAccount("ypl") - .withEnableRegionalMdmAccount(false) - .withUnit("asy") - .withDimensions(Arrays.asList()) - .withSupportsInstanceLevelAggregation(false) - .withMetricFilterPattern("sgcbac"), - new OperationMetaMetricSpecification() - .withSourceMdmNamespace("ejk") - .withDisplayName("ynqgoulzndlikwyq") - .withName("fgibmadgakeq") - .withAggregationType("xybz") - .withDisplayDescription("e") - .withSourceMdmAccount("ytb") - .withEnableRegionalMdmAccount(false) - .withUnit("ouf") - .withDimensions(Arrays.asList()) - .withSupportsInstanceLevelAggregation(false) - .withMetricFilterPattern("smodmgloug"), - new OperationMetaMetricSpecification() - .withSourceMdmNamespace("kwtmutduqktapspw") - .withDisplayName("uertumk") - .withName("svqwhbmdgbbjfd") - .withAggregationType("mbmbexppbh") - .withDisplayDescription("qrolfpf") - .withSourceMdmAccount("algbquxigjyjg") - .withEnableRegionalMdmAccount(true) - .withUnit("yfhrtxilnerkujy") - .withDimensions(Arrays.asList()) - .withSupportsInstanceLevelAggregation(false) - .withMetricFilterPattern("vfqawrlyxwjkcpr"))) - .withLogSpecifications( - Arrays - .asList( - new OperationMetaLogSpecification() - .withDisplayName("xgjvtbv") - .withBlobDuration("sszdnru") - .withName("guhmuouqfpr"), - new OperationMetaLogSpecification() - .withDisplayName("wbnguitnwui") - .withBlobDuration("a") - .withName("ufizuckyf"))); - model = BinaryData.fromObject(model).toObject(OperationMetaServiceSpecification.class); - Assertions.assertEquals("iksqr", model.metricSpecifications().get(0).sourceMdmNamespace()); - Assertions.assertEquals("ssainqpjwnzll", model.metricSpecifications().get(0).displayName()); - Assertions.assertEquals("mppeebvmgxs", model.metricSpecifications().get(0).name()); - Assertions.assertEquals("kyqduujit", model.metricSpecifications().get(0).aggregationType()); - Assertions.assertEquals("czdzev", model.metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("hkr", model.metricSpecifications().get(0).sourceMdmAccount()); - Assertions.assertEquals(false, model.metricSpecifications().get(0).enableRegionalMdmAccount()); - Assertions.assertEquals("ppdsbdkvwrwj", model.metricSpecifications().get(0).unit()); - Assertions.assertEquals(true, model.metricSpecifications().get(0).supportsInstanceLevelAggregation()); - Assertions.assertEquals("utjeltmrldhugj", model.metricSpecifications().get(0).metricFilterPattern()); - Assertions.assertEquals("xgjvtbv", model.logSpecifications().get(0).displayName()); - Assertions.assertEquals("sszdnru", model.logSpecifications().get(0).blobDuration()); - Assertions.assertEquals("guhmuouqfpr", model.logSpecifications().get(0).name()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationResourceInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationResourceInnerTests.java deleted file mode 100644 index d4c8d3753bff..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationResourceInnerTests.java +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.OperationResourceInner; -import com.azure.resourcemanager.synapse.models.OperationStatus; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; - -public final class OperationResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OperationResourceInner model = - BinaryData - .fromString( - "{\"id\":\"fepgzgq\",\"name\":\"zloc\",\"status\":\"InProgress\",\"properties\":\"dataaierhhb\",\"startTime\":\"2021-09-10T20:40:36Z\",\"endTime\":\"2021-07-20T05:11Z\",\"percentComplete\":4.375696}") - .toObject(OperationResourceInner.class); - Assertions.assertEquals("fepgzgq", model.id()); - Assertions.assertEquals("zloc", model.name()); - Assertions.assertEquals(OperationStatus.IN_PROGRESS, model.status()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-10T20:40:36Z"), model.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-20T05:11Z"), model.endTime()); - Assertions.assertEquals(4.375696F, model.percentComplete()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OperationResourceInner model = - new OperationResourceInner() - .withId("fepgzgq") - .withName("zloc") - .withStatus(OperationStatus.IN_PROGRESS) - .withProperties("dataaierhhb") - .withStartTime(OffsetDateTime.parse("2021-09-10T20:40:36Z")) - .withEndTime(OffsetDateTime.parse("2021-07-20T05:11Z")) - .withPercentComplete(4.375696F); - model = BinaryData.fromObject(model).toObject(OperationResourceInner.class); - Assertions.assertEquals("fepgzgq", model.id()); - Assertions.assertEquals("zloc", model.name()); - Assertions.assertEquals(OperationStatus.IN_PROGRESS, model.status()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-10T20:40:36Z"), model.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-20T05:11Z"), model.endTime()); - Assertions.assertEquals(4.375696F, model.percentComplete()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationsCheckNameAvailabilityWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationsCheckNameAvailabilityWithResponseMockTests.java deleted file mode 100644 index 5d44faa446ad..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationsCheckNameAvailabilityWithResponseMockTests.java +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.CheckNameAvailabilityRequest; -import com.azure.resourcemanager.synapse.models.CheckNameAvailabilityResponse; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class OperationsCheckNameAvailabilityWithResponseMockTests { - @Test - public void testCheckNameAvailabilityWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"message\":\"zuodacpun\",\"available\":true,\"reason\":\"pdjxqeskoynu\",\"name\":\"lpckaewsedves\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - CheckNameAvailabilityResponse response = - manager - .operations() - .checkNameAvailabilityWithResponse( - new CheckNameAvailabilityRequest().withName("jclykcg").withType("rpjl"), - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("zuodacpun", response.message()); - Assertions.assertEquals(true, response.available()); - Assertions.assertEquals("pdjxqeskoynu", response.reason()); - Assertions.assertEquals("lpckaewsedves", response.name()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationsGetAzureAsyncHeaderResultWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationsGetAzureAsyncHeaderResultWithResponseMockTests.java deleted file mode 100644 index 8d4bbaaa016b..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationsGetAzureAsyncHeaderResultWithResponseMockTests.java +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.OperationResource; -import com.azure.resourcemanager.synapse.models.OperationStatus; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class OperationsGetAzureAsyncHeaderResultWithResponseMockTests { - @Test - public void testGetAzureAsyncHeaderResultWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"id\":\"cbbprtugav\",\"name\":\"bcyksivmfogd\",\"status\":\"Failed\",\"properties\":\"datacmkrftsjcwjj\",\"startTime\":\"2021-06-09T20:33:36Z\",\"endTime\":\"2021-03-04T07:58:33Z\",\"percentComplete\":89.56149}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - OperationResource response = - manager - .operations() - .getAzureAsyncHeaderResultWithResponse( - "pgeumilh", "uitrdexyiono", "ninbdbzsxcwqqrs", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("cbbprtugav", response.id()); - Assertions.assertEquals("bcyksivmfogd", response.name()); - Assertions.assertEquals(OperationStatus.FAILED, response.status()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-09T20:33:36Z"), response.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-04T07:58:33Z"), response.endTime()); - Assertions.assertEquals(89.56149F, response.percentComplete()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationsGetLocationHeaderResultWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationsGetLocationHeaderResultWithResponseMockTests.java deleted file mode 100644 index 8e41eb94085b..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationsGetLocationHeaderResultWithResponseMockTests.java +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class OperationsGetLocationHeaderResultWithResponseMockTests { - @Test - public void testGetLocationHeaderResultWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .operations() - .getLocationHeaderResultWithResponse( - "iukvzwydwt", "haokgkskjiv", "sshajqfukpee", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationsListWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationsListWithResponseMockTests.java deleted file mode 100644 index fa8f1d2948d4..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OperationsListWithResponseMockTests.java +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.AvailableRpOperation; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.List; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class OperationsListWithResponseMockTests { - @Test - public void testListWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "[{\"display\":{\"description\":\"gqphrgfnzhctmjts\",\"resource\":\"pbcbcpzar\",\"provider\":\"eqacd\",\"operation\":\"tz\"},\"isDataAction\":\"ypefcpczshnuqnda\",\"name\":\"upfkhuytuszxhmtv\",\"properties\":{},\"origin\":\"w\"}]"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - List response = - manager.operations().listWithResponse(com.azure.core.util.Context.NONE).getValue(); - - Assertions.assertEquals("gqphrgfnzhctmjts", response.get(0).display().description()); - Assertions.assertEquals("pbcbcpzar", response.get(0).display().resource()); - Assertions.assertEquals("eqacd", response.get(0).display().provider()); - Assertions.assertEquals("tz", response.get(0).display().operation()); - Assertions.assertEquals("ypefcpczshnuqnda", response.get(0).isDataAction()); - Assertions.assertEquals("upfkhuytuszxhmtv", response.get(0).name()); - Assertions.assertEquals("w", response.get(0).origin()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OptimizedAutoscaleTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OptimizedAutoscaleTests.java deleted file mode 100644 index c7ee024e53ba..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/OptimizedAutoscaleTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.OptimizedAutoscale; -import org.junit.jupiter.api.Assertions; - -public final class OptimizedAutoscaleTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - OptimizedAutoscale model = - BinaryData - .fromString("{\"version\":1324330930,\"isEnabled\":true,\"minimum\":1273890373,\"maximum\":1963006150}") - .toObject(OptimizedAutoscale.class); - Assertions.assertEquals(1324330930, model.version()); - Assertions.assertEquals(true, model.isEnabled()); - Assertions.assertEquals(1273890373, model.minimum()); - Assertions.assertEquals(1963006150, model.maximum()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - OptimizedAutoscale model = - new OptimizedAutoscale() - .withVersion(1324330930) - .withIsEnabled(true) - .withMinimum(1273890373) - .withMaximum(1963006150); - model = BinaryData.fromObject(model).toObject(OptimizedAutoscale.class); - Assertions.assertEquals(1324330930, model.version()); - Assertions.assertEquals(true, model.isEnabled()); - Assertions.assertEquals(1273890373, model.minimum()); - Assertions.assertEquals(1963006150, model.maximum()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionForPrivateLinkHubBasicAutoGeneratedTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionForPrivateLinkHubBasicAutoGeneratedTests.java deleted file mode 100644 index da0725353325..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionForPrivateLinkHubBasicAutoGeneratedTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.PrivateEndpointConnectionProperties; -import com.azure.resourcemanager.synapse.models.PrivateEndpoint; -import com.azure.resourcemanager.synapse.models.PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated; -import com.azure.resourcemanager.synapse.models.PrivateLinkServiceConnectionState; -import org.junit.jupiter.api.Assertions; - -public final class PrivateEndpointConnectionForPrivateLinkHubBasicAutoGeneratedTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated model = - BinaryData - .fromString( - "{\"id\":\"wankixzbi\",\"properties\":{\"privateEndpoint\":{\"id\":\"uttmrywnuzoqft\"},\"privateLinkServiceConnectionState\":{\"status\":\"zrnkcqvyxlwh\",\"description\":\"sicohoqqnwvlry\",\"actionsRequired\":\"w\"},\"provisioningState\":\"eun\"}}") - .toObject(PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated.class); - Assertions.assertEquals("wankixzbi", model.id()); - Assertions.assertEquals("zrnkcqvyxlwh", model.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("sicohoqqnwvlry", model.properties().privateLinkServiceConnectionState().description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated model = - new PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated() - .withId("wankixzbi") - .withProperties( - new PrivateEndpointConnectionProperties() - .withPrivateEndpoint(new PrivateEndpoint()) - .withPrivateLinkServiceConnectionState( - new PrivateLinkServiceConnectionState() - .withStatus("zrnkcqvyxlwh") - .withDescription("sicohoqqnwvlry"))); - model = - BinaryData.fromObject(model).toObject(PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated.class); - Assertions.assertEquals("wankixzbi", model.id()); - Assertions.assertEquals("zrnkcqvyxlwh", model.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("sicohoqqnwvlry", model.properties().privateLinkServiceConnectionState().description()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionForPrivateLinkHubBasicTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionForPrivateLinkHubBasicTests.java deleted file mode 100644 index f4b647b8bcbe..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionForPrivateLinkHubBasicTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.PrivateEndpoint; -import com.azure.resourcemanager.synapse.models.PrivateEndpointConnectionForPrivateLinkHubBasic; -import com.azure.resourcemanager.synapse.models.PrivateLinkServiceConnectionState; -import org.junit.jupiter.api.Assertions; - -public final class PrivateEndpointConnectionForPrivateLinkHubBasicTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateEndpointConnectionForPrivateLinkHubBasic model = - BinaryData - .fromString( - "{\"id\":\"uwiqzb\",\"properties\":{\"privateEndpoint\":{\"id\":\"ovm\"},\"privateLinkServiceConnectionState\":{\"status\":\"acspkwl\",\"description\":\"dobpxjmflbvvn\",\"actionsRequired\":\"rkcciwwzjuqk\"},\"provisioningState\":\"sa\"}}") - .toObject(PrivateEndpointConnectionForPrivateLinkHubBasic.class); - Assertions.assertEquals("acspkwl", model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("dobpxjmflbvvn", model.privateLinkServiceConnectionState().description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateEndpointConnectionForPrivateLinkHubBasic model = - new PrivateEndpointConnectionForPrivateLinkHubBasic() - .withPrivateEndpoint(new PrivateEndpoint()) - .withPrivateLinkServiceConnectionState( - new PrivateLinkServiceConnectionState().withStatus("acspkwl").withDescription("dobpxjmflbvvn")); - model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionForPrivateLinkHubBasic.class); - Assertions.assertEquals("acspkwl", model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("dobpxjmflbvvn", model.privateLinkServiceConnectionState().description()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionForPrivateLinkHubInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionForPrivateLinkHubInnerTests.java deleted file mode 100644 index 8cdf0e7a2d61..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionForPrivateLinkHubInnerTests.java +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.PrivateEndpointConnectionForPrivateLinkHubInner; -import com.azure.resourcemanager.synapse.fluent.models.PrivateEndpointConnectionProperties; -import com.azure.resourcemanager.synapse.models.PrivateEndpoint; -import com.azure.resourcemanager.synapse.models.PrivateLinkServiceConnectionState; -import org.junit.jupiter.api.Assertions; - -public final class PrivateEndpointConnectionForPrivateLinkHubInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateEndpointConnectionForPrivateLinkHubInner model = - BinaryData - .fromString( - "{\"name\":\"ipazyxoegukgjnpi\",\"type\":\"gygev\",\"id\":\"ntypmrbpizcdrqj\",\"properties\":{\"privateEndpoint\":{\"id\":\"dnfyhxdeoejzicwi\"},\"privateLinkServiceConnectionState\":{\"status\":\"ttgzfbis\",\"description\":\"bkh\",\"actionsRequired\":\"deyeamdphagalpbu\"},\"provisioningState\":\"gipwhonowkg\"}}") - .toObject(PrivateEndpointConnectionForPrivateLinkHubInner.class); - Assertions.assertEquals("ntypmrbpizcdrqj", model.id()); - Assertions.assertEquals("ttgzfbis", model.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("bkh", model.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("ipazyxoegukgjnpi", model.name()); - Assertions.assertEquals("gygev", model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateEndpointConnectionForPrivateLinkHubInner model = - new PrivateEndpointConnectionForPrivateLinkHubInner() - .withId("ntypmrbpizcdrqj") - .withProperties( - new PrivateEndpointConnectionProperties() - .withPrivateEndpoint(new PrivateEndpoint()) - .withPrivateLinkServiceConnectionState( - new PrivateLinkServiceConnectionState().withStatus("ttgzfbis").withDescription("bkh"))) - .withName("ipazyxoegukgjnpi") - .withType("gygev"); - model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionForPrivateLinkHubInner.class); - Assertions.assertEquals("ntypmrbpizcdrqj", model.id()); - Assertions.assertEquals("ttgzfbis", model.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("bkh", model.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("ipazyxoegukgjnpi", model.name()); - Assertions.assertEquals("gygev", model.type()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponseTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponseTests.java deleted file mode 100644 index 8f27f695a0fe..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponseTests.java +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.PrivateEndpointConnectionForPrivateLinkHubInner; -import com.azure.resourcemanager.synapse.fluent.models.PrivateEndpointConnectionProperties; -import com.azure.resourcemanager.synapse.models.PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse model = - BinaryData - .fromString( - "{\"value\":[{\"name\":\"yvshxmz\",\"type\":\"bzoggigrx\",\"id\":\"ur\",\"properties\":{\"provisioningState\":\"nspydptkoenkoukn\"}}],\"nextLink\":\"dwtiukbldngkp\"}") - .toObject(PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse.class); - Assertions.assertEquals("ur", model.value().get(0).id()); - Assertions.assertEquals("yvshxmz", model.value().get(0).name()); - Assertions.assertEquals("bzoggigrx", model.value().get(0).type()); - Assertions.assertEquals("dwtiukbldngkp", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse model = - new PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse() - .withValue( - Arrays - .asList( - new PrivateEndpointConnectionForPrivateLinkHubInner() - .withId("ur") - .withProperties(new PrivateEndpointConnectionProperties()) - .withName("yvshxmz") - .withType("bzoggigrx"))) - .withNextLink("dwtiukbldngkp"); - model = - BinaryData - .fromObject(model) - .toObject(PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse.class); - Assertions.assertEquals("ur", model.value().get(0).id()); - Assertions.assertEquals("yvshxmz", model.value().get(0).name()); - Assertions.assertEquals("bzoggigrx", model.value().get(0).type()); - Assertions.assertEquals("dwtiukbldngkp", model.nextLink()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionInnerTests.java deleted file mode 100644 index a7253c2356b7..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionInnerTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.PrivateEndpointConnectionInner; -import com.azure.resourcemanager.synapse.models.PrivateEndpoint; -import com.azure.resourcemanager.synapse.models.PrivateLinkServiceConnectionState; -import org.junit.jupiter.api.Assertions; - -public final class PrivateEndpointConnectionInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateEndpointConnectionInner model = - BinaryData - .fromString( - "{\"properties\":{\"privateEndpoint\":{\"id\":\"aodxo\"},\"privateLinkServiceConnectionState\":{\"status\":\"dxkqpx\",\"description\":\"ajionpimexgstxg\",\"actionsRequired\":\"odgmaajrmvdjwz\"},\"provisioningState\":\"ovmclwhijcoejct\"},\"id\":\"zaqsqsycbkbfk\",\"name\":\"ukdkexxppofmxa\",\"type\":\"c\"}") - .toObject(PrivateEndpointConnectionInner.class); - Assertions.assertEquals("dxkqpx", model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("ajionpimexgstxg", model.privateLinkServiceConnectionState().description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateEndpointConnectionInner model = - new PrivateEndpointConnectionInner() - .withPrivateEndpoint(new PrivateEndpoint()) - .withPrivateLinkServiceConnectionState( - new PrivateLinkServiceConnectionState().withStatus("dxkqpx").withDescription("ajionpimexgstxg")); - model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionInner.class); - Assertions.assertEquals("dxkqpx", model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("ajionpimexgstxg", model.privateLinkServiceConnectionState().description()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionListTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionListTests.java deleted file mode 100644 index 0685630af4b0..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionListTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.PrivateEndpointConnectionList; - -public final class PrivateEndpointConnectionListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateEndpointConnectionList model = - BinaryData - .fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"khixuigdtopbo\"},\"id\":\"joghmewuama\",\"name\":\"hrzayvvtpgvdf\",\"type\":\"iotkftutqxl\"},{\"properties\":{\"provisioningState\":\"fgugnxkrxdqmid\"},\"id\":\"thz\",\"name\":\"vqdra\",\"type\":\"hjybigehoqfbo\"}],\"nextLink\":\"kanyktzlcuiywg\"}") - .toObject(PrivateEndpointConnectionList.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateEndpointConnectionList model = new PrivateEndpointConnectionList(); - model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionList.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionPropertiesTests.java deleted file mode 100644 index 62ddbc20c318..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionPropertiesTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.PrivateEndpointConnectionProperties; -import com.azure.resourcemanager.synapse.models.PrivateEndpoint; -import com.azure.resourcemanager.synapse.models.PrivateLinkServiceConnectionState; -import org.junit.jupiter.api.Assertions; - -public final class PrivateEndpointConnectionPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateEndpointConnectionProperties model = - BinaryData - .fromString( - "{\"privateEndpoint\":{\"id\":\"gddtocj\"},\"privateLinkServiceConnectionState\":{\"status\":\"vpmouexhdzxib\",\"description\":\"ojnxqbzvdd\",\"actionsRequired\":\"wndeicbtwnp\"},\"provisioningState\":\"oqvuhr\"}") - .toObject(PrivateEndpointConnectionProperties.class); - Assertions.assertEquals("vpmouexhdzxib", model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("ojnxqbzvdd", model.privateLinkServiceConnectionState().description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateEndpointConnectionProperties model = - new PrivateEndpointConnectionProperties() - .withPrivateEndpoint(new PrivateEndpoint()) - .withPrivateLinkServiceConnectionState( - new PrivateLinkServiceConnectionState().withStatus("vpmouexhdzxib").withDescription("ojnxqbzvdd")); - model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionProperties.class); - Assertions.assertEquals("vpmouexhdzxib", model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("ojnxqbzvdd", model.privateLinkServiceConnectionState().description()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsCreateMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsCreateMockTests.java deleted file mode 100644 index f3a1549a624c..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsCreateMockTests.java +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.PrivateEndpoint; -import com.azure.resourcemanager.synapse.models.PrivateEndpointConnection; -import com.azure.resourcemanager.synapse.models.PrivateLinkServiceConnectionState; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class PrivateEndpointConnectionsCreateMockTests { - @Test - public void testCreate() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"privateEndpoint\":{\"id\":\"vjrktpgaeukyawoh\"},\"privateLinkServiceConnectionState\":{\"status\":\"hqnucs\",\"description\":\"hsidsjtdlpbnin\",\"actionsRequired\":\"azlsvbzfcpuo\"},\"provisioningState\":\"Succeeded\"},\"id\":\"ekrdr\",\"name\":\"nxolriyehqb\",\"type\":\"iv\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PrivateEndpointConnection response = - manager - .privateEndpointConnections() - .define("jhffbxrqrkij") - .withExistingWorkspace("kxiuxqggvqr", "hyhlwcjsqg") - .withPrivateEndpoint(new PrivateEndpoint()) - .withPrivateLinkServiceConnectionState( - new PrivateLinkServiceConnectionState().withStatus("swenawwa").withDescription("cleqioulndhzyo")) - .create(); - - Assertions.assertEquals("hqnucs", response.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("hsidsjtdlpbnin", response.privateLinkServiceConnectionState().description()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsDeleteMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsDeleteMockTests.java deleted file mode 100644 index 7439efc3a82b..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsDeleteMockTests.java +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.OperationResource; -import com.azure.resourcemanager.synapse.models.OperationStatus; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class PrivateEndpointConnectionsDeleteMockTests { - @Test - public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"id\":\"qagynoipr\",\"name\":\"calincryqxz\",\"status\":\"InProgress\",\"properties\":\"dataibmq\",\"startTime\":\"2021-05-30T20:40:28Z\",\"endTime\":\"2021-11-06T06:39:58Z\",\"percentComplete\":94.34178}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - OperationResource response = - manager - .privateEndpointConnections() - .delete("fcmfcn", "jajqmatxjt", "elnzqgxxgfbbmt", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("qagynoipr", response.id()); - Assertions.assertEquals("calincryqxz", response.name()); - Assertions.assertEquals(OperationStatus.IN_PROGRESS, response.status()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-30T20:40:28Z"), response.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-06T06:39:58Z"), response.endTime()); - Assertions.assertEquals(94.34178F, response.percentComplete()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java deleted file mode 100644 index 774b37d16579..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.PrivateEndpointConnection; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class PrivateEndpointConnectionsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"privateEndpoint\":{\"id\":\"xvjabjq\"},\"privateLinkServiceConnectionState\":{\"status\":\"uyvymcnu\",\"description\":\"doabhj\",\"actionsRequired\":\"xqweu\"},\"provisioningState\":\"mp\"},\"id\":\"ksmitnsqxtlt\",\"name\":\"lkrdpqgfhy\",\"type\":\"frakkldgrc\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PrivateEndpointConnection response = - manager - .privateEndpointConnections() - .getWithResponse("ukosrn", "wnvz", "lnk", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("uyvymcnu", response.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("doabhj", response.privateLinkServiceConnectionState().description()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsListMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsListMockTests.java deleted file mode 100644 index 732812d7a717..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsListMockTests.java +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.PrivateEndpointConnection; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class PrivateEndpointConnectionsListMockTests { - @Test - public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"properties\":{\"privateEndpoint\":{\"id\":\"k\"},\"privateLinkServiceConnectionState\":{\"status\":\"yao\",\"description\":\"zowpuohdkcprgukx\",\"actionsRequired\":\"tiochlutixmqr\"},\"provisioningState\":\"jizcbfzmcrunfhiu\"},\"id\":\"nmfbc\",\"name\":\"aqktkrumzu\",\"type\":\"dkyzbfvxov\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager.privateEndpointConnections().list("qguhfupetasvvo", "sbpkf", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("yao", response.iterator().next().privateLinkServiceConnectionState().status()); - Assertions - .assertEquals( - "zowpuohdkcprgukx", response.iterator().next().privateLinkServiceConnectionState().description()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsPrivateLinkHubsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsPrivateLinkHubsGetWithResponseMockTests.java deleted file mode 100644 index a758e168d8a5..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsPrivateLinkHubsGetWithResponseMockTests.java +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.PrivateEndpointConnectionForPrivateLinkHub; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class PrivateEndpointConnectionsPrivateLinkHubsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"name\":\"wnbaf\",\"type\":\"to\",\"id\":\"haquvwsxbgnvk\",\"properties\":{\"privateEndpoint\":{\"id\":\"choadhrsxqv\"},\"privateLinkServiceConnectionState\":{\"status\":\"pabdsrg\",\"description\":\"jglzrsubklrxhjnl\",\"actionsRequired\":\"etjdvqydieqqkwa\"},\"provisioningState\":\"wdxvqzxoebwg\"}}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PrivateEndpointConnectionForPrivateLinkHub response = - manager - .privateEndpointConnectionsPrivateLinkHubs() - .getWithResponse("bwxgoooxzpra", "mskxknp", "gzigjsugswhgsaod", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("haquvwsxbgnvk", response.id()); - Assertions.assertEquals("pabdsrg", response.properties().privateLinkServiceConnectionState().status()); - Assertions - .assertEquals("jglzrsubklrxhjnl", response.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("wnbaf", response.name()); - Assertions.assertEquals("to", response.type()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsPrivateLinkHubsListMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsPrivateLinkHubsListMockTests.java deleted file mode 100644 index a04fb045c0fe..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointConnectionsPrivateLinkHubsListMockTests.java +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.PrivateEndpointConnectionForPrivateLinkHub; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class PrivateEndpointConnectionsPrivateLinkHubsListMockTests { - @Test - public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"name\":\"zmqilrixysfnim\",\"type\":\"y\",\"id\":\"wmhkruwaedrympml\",\"properties\":{\"privateEndpoint\":{\"id\":\"hzdue\"},\"privateLinkServiceConnectionState\":{\"status\":\"apfjiik\",\"description\":\"diqfliejhpclbi\",\"actionsRequired\":\"fsbw\"},\"provisioningState\":\"ivbvzi\"}}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager - .privateEndpointConnectionsPrivateLinkHubs() - .list("hyqgsdrmmttjx", "phgerhsmvgoh", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("wmhkruwaedrympml", response.iterator().next().id()); - Assertions - .assertEquals( - "apfjiik", response.iterator().next().properties().privateLinkServiceConnectionState().status()); - Assertions - .assertEquals( - "diqfliejhpclbi", - response.iterator().next().properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("zmqilrixysfnim", response.iterator().next().name()); - Assertions.assertEquals("y", response.iterator().next().type()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointTests.java deleted file mode 100644 index 4264d185d8f5..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateEndpointTests.java +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.PrivateEndpoint; - -public final class PrivateEndpointTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateEndpoint model = BinaryData.fromString("{\"id\":\"f\"}").toObject(PrivateEndpoint.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateEndpoint model = new PrivateEndpoint(); - model = BinaryData.fromObject(model).toObject(PrivateEndpoint.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubInfoListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubInfoListResultTests.java deleted file mode 100644 index cb187b09585c..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubInfoListResultTests.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.PrivateLinkHubInner; -import com.azure.resourcemanager.synapse.models.PrivateLinkHubInfoListResult; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class PrivateLinkHubInfoListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateLinkHubInfoListResult model = - BinaryData - .fromString( - "{\"nextLink\":\"aamdect\",\"value\":[{\"properties\":{\"provisioningState\":\"scjeypv\",\"privateEndpointConnections\":[]},\"location\":\"zrkgqhcjrefovg\",\"tags\":{\"yvxyqjp\":\"sle\"},\"id\":\"cattpngjcrcczsq\",\"name\":\"jh\",\"type\":\"mdajv\"}]}") - .toObject(PrivateLinkHubInfoListResult.class); - Assertions.assertEquals("aamdect", model.nextLink()); - Assertions.assertEquals("zrkgqhcjrefovg", model.value().get(0).location()); - Assertions.assertEquals("sle", model.value().get(0).tags().get("yvxyqjp")); - Assertions.assertEquals("scjeypv", model.value().get(0).provisioningState()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateLinkHubInfoListResult model = - new PrivateLinkHubInfoListResult() - .withNextLink("aamdect") - .withValue( - Arrays - .asList( - new PrivateLinkHubInner() - .withLocation("zrkgqhcjrefovg") - .withTags(mapOf("yvxyqjp", "sle")) - .withProvisioningState("scjeypv"))); - model = BinaryData.fromObject(model).toObject(PrivateLinkHubInfoListResult.class); - Assertions.assertEquals("aamdect", model.nextLink()); - Assertions.assertEquals("zrkgqhcjrefovg", model.value().get(0).location()); - Assertions.assertEquals("sle", model.value().get(0).tags().get("yvxyqjp")); - Assertions.assertEquals("scjeypv", model.value().get(0).provisioningState()); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubInnerTests.java deleted file mode 100644 index d742bc62c2e6..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubInnerTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.PrivateLinkHubInner; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class PrivateLinkHubInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateLinkHubInner model = - BinaryData - .fromString( - "{\"properties\":{\"provisioningState\":\"ounqecano\",\"privateEndpointConnections\":[{\"id\":\"fhyhltrpmopjmcma\"}]},\"location\":\"okth\",\"tags\":{\"xodpuozmyzydagfu\":\"uaodsfcpk\",\"dxwzywqsmbsurexi\":\"xbezyiuokktwh\"},\"id\":\"o\",\"name\":\"yocf\",\"type\":\"fksymddystki\"}") - .toObject(PrivateLinkHubInner.class); - Assertions.assertEquals("okth", model.location()); - Assertions.assertEquals("uaodsfcpk", model.tags().get("xodpuozmyzydagfu")); - Assertions.assertEquals("ounqecano", model.provisioningState()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateLinkHubInner model = - new PrivateLinkHubInner() - .withLocation("okth") - .withTags(mapOf("xodpuozmyzydagfu", "uaodsfcpk", "dxwzywqsmbsurexi", "xbezyiuokktwh")) - .withProvisioningState("ounqecano"); - model = BinaryData.fromObject(model).toObject(PrivateLinkHubInner.class); - Assertions.assertEquals("okth", model.location()); - Assertions.assertEquals("uaodsfcpk", model.tags().get("xodpuozmyzydagfu")); - Assertions.assertEquals("ounqecano", model.provisioningState()); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubPatchInfoTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubPatchInfoTests.java deleted file mode 100644 index c0679128e108..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubPatchInfoTests.java +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.PrivateLinkHubPatchInfo; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class PrivateLinkHubPatchInfoTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateLinkHubPatchInfo model = - BinaryData - .fromString( - "{\"tags\":{\"foskghsauuimj\":\"ku\",\"rfbyaosvexcso\":\"vxieduugidyj\",\"vleggzfbuhfmvfax\":\"pclhocohslk\",\"hl\":\"ffeii\"}}") - .toObject(PrivateLinkHubPatchInfo.class); - Assertions.assertEquals("ku", model.tags().get("foskghsauuimj")); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateLinkHubPatchInfo model = - new PrivateLinkHubPatchInfo() - .withTags( - mapOf( - "foskghsauuimj", - "ku", - "rfbyaosvexcso", - "vxieduugidyj", - "vleggzfbuhfmvfax", - "pclhocohslk", - "hl", - "ffeii")); - model = BinaryData.fromObject(model).toObject(PrivateLinkHubPatchInfo.class); - Assertions.assertEquals("ku", model.tags().get("foskghsauuimj")); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubPrivateLinkResourcesGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubPrivateLinkResourcesGetWithResponseMockTests.java deleted file mode 100644 index 5234b566f6d2..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubPrivateLinkResourcesGetWithResponseMockTests.java +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.PrivateLinkResource; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class PrivateLinkHubPrivateLinkResourcesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"groupId\":\"mnitmujd\",\"requiredMembers\":[\"clyymffhmjpddn\"],\"requiredZoneNames\":[\"zuvrzmzqmz\",\"qrbrpvnmdyfoeboj\"]},\"id\":\"jpp\",\"name\":\"laohoqkp\",\"type\":\"t\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PrivateLinkResource response = - manager - .privateLinkHubPrivateLinkResources() - .getWithResponse("pjlh", "yxpzruzythqk", "whbgxvellvul", com.azure.core.util.Context.NONE) - .getValue(); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubPrivateLinkResourcesListMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubPrivateLinkResourcesListMockTests.java deleted file mode 100644 index efeaed8b29c1..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubPrivateLinkResourcesListMockTests.java +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.PrivateLinkResource; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class PrivateLinkHubPrivateLinkResourcesListMockTests { - @Test - public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"properties\":{\"groupId\":\"tfgcwvrr\",\"requiredMembers\":[\"ntycnawt\"],\"requiredZoneNames\":[\"ax\",\"nuyeamcmhud\",\"jecehokwc\",\"qtwloes\"]},\"id\":\"rg\",\"name\":\"vrbnyrukoil\",\"type\":\"ciduwjle\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager.privateLinkHubPrivateLinkResources().list("fj", "rwq", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubPropertiesTests.java deleted file mode 100644 index 810560be810e..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubPropertiesTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.PrivateLinkHubProperties; -import org.junit.jupiter.api.Assertions; - -public final class PrivateLinkHubPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateLinkHubProperties model = - BinaryData - .fromString( - "{\"provisioningState\":\"xhqyudxorrqnb\",\"privateEndpointConnections\":[{\"id\":\"vyifqrvkdvjsl\",\"properties\":{\"provisioningState\":\"d\"}},{\"id\":\"atkpnp\",\"properties\":{\"provisioningState\":\"bczw\"}}]}") - .toObject(PrivateLinkHubProperties.class); - Assertions.assertEquals("xhqyudxorrqnb", model.provisioningState()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateLinkHubProperties model = new PrivateLinkHubProperties().withProvisioningState("xhqyudxorrqnb"); - model = BinaryData.fromObject(model).toObject(PrivateLinkHubProperties.class); - Assertions.assertEquals("xhqyudxorrqnb", model.provisioningState()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsCreateOrUpdateWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsCreateOrUpdateWithResponseMockTests.java deleted file mode 100644 index bb9c2626f8b9..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsCreateOrUpdateWithResponseMockTests.java +++ /dev/null @@ -1,89 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.PrivateLinkHub; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class PrivateLinkHubsCreateOrUpdateWithResponseMockTests { - @Test - public void testCreateOrUpdateWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"provisioningState\":\"xjsgbi\",\"privateEndpointConnections\":[]},\"location\":\"kdveksb\",\"tags\":{\"rdpibfd\":\"duchvls\",\"wlkaaggkrehbfrnu\":\"jdusspyszekb\",\"qtaadusrexxfavsq\":\"bffljfiimreoag\"},\"id\":\"udo\",\"name\":\"zilfmnlikps\",\"type\":\"msfeypofqpm\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PrivateLinkHub response = - manager - .privateLinkHubs() - .define("es") - .withRegion("lajmllp") - .withExistingResourceGroup("kkwa") - .withTags(mapOf("mfowgwbtmkek", "vh", "xofqovchi", "pkzwa", "ztekxbyjgmsfep", "bplvfidu")) - .withProvisioningState("jlpzeqtoyrp") - .create(); - - Assertions.assertEquals("kdveksb", response.location()); - Assertions.assertEquals("duchvls", response.tags().get("rdpibfd")); - Assertions.assertEquals("xjsgbi", response.provisioningState()); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsDeleteMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsDeleteMockTests.java deleted file mode 100644 index 6376b4e04583..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsDeleteMockTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class PrivateLinkHubsDeleteMockTests { - @Test - public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.privateLinkHubs().delete("wljuxlkbectvt", "j", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsGetByResourceGroupWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsGetByResourceGroupWithResponseMockTests.java deleted file mode 100644 index e479e3163c83..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsGetByResourceGroupWithResponseMockTests.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.PrivateLinkHub; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class PrivateLinkHubsGetByResourceGroupWithResponseMockTests { - @Test - public void testGetByResourceGroupWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"provisioningState\":\"jnsxzajlnsjhwjuy\",\"privateEndpointConnections\":[]},\"location\":\"xqvmvuay\",\"tags\":{\"eqbw\":\"dxk\",\"xsl\":\"ntghyksarcdr\",\"x\":\"vlzladl\",\"wzdanojisgglmvo\":\"pbqhvfdqqjwkr\"},\"id\":\"atuztjct\",\"name\":\"bpvbkaehxsmzygd\",\"type\":\"wakwseivmakxhys\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PrivateLinkHub response = - manager - .privateLinkHubs() - .getByResourceGroupWithResponse("zuu", "ljcirvpefycdvei", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("xqvmvuay", response.location()); - Assertions.assertEquals("dxk", response.tags().get("eqbw")); - Assertions.assertEquals("jnsxzajlnsjhwjuy", response.provisioningState()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsListByResourceGroupMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsListByResourceGroupMockTests.java deleted file mode 100644 index 8a6411e88898..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsListByResourceGroupMockTests.java +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.PrivateLinkHub; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class PrivateLinkHubsListByResourceGroupMockTests { - @Test - public void testListByResourceGroup() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"properties\":{\"provisioningState\":\"hxdqaol\",\"privateEndpointConnections\":[]},\"location\":\"nkkbjpjvlywltmfw\",\"tags\":{\"lwyjfnqzocrdz\":\"jw\",\"ncaqttiekoifu\":\"czeuntgx\",\"yri\":\"nyttzgix\",\"lqtxnrflkndrn\":\"lgmgbe\"},\"id\":\"pgfjo\",\"name\":\"hdaqotwfhipxwg\",\"type\":\"abvcipowzaf\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager.privateLinkHubs().listByResourceGroup("qjilaywkdcwmqsyr", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("nkkbjpjvlywltmfw", response.iterator().next().location()); - Assertions.assertEquals("jw", response.iterator().next().tags().get("lwyjfnqzocrdz")); - Assertions.assertEquals("hxdqaol", response.iterator().next().provisioningState()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsListMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsListMockTests.java deleted file mode 100644 index d195bbdd33a6..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkHubsListMockTests.java +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.PrivateLinkHub; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class PrivateLinkHubsListMockTests { - @Test - public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"properties\":{\"provisioningState\":\"dchmaiubavlz\",\"privateEndpointConnections\":[]},\"location\":\"gmfalkzazmgoked\",\"tags\":{\"wpqrtvaozn\":\"afkmkrokzrthqe\",\"iezeagm\":\"ni\",\"lzmb\":\"eituugedhfpjs\",\"fsyrledjc\":\"syjdeolctae\"},\"id\":\"stbvtqig\",\"name\":\"xzvsgeafgf\",\"type\":\"sehxlzsxezp\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = manager.privateLinkHubs().list(com.azure.core.util.Context.NONE); - - Assertions.assertEquals("gmfalkzazmgoked", response.iterator().next().location()); - Assertions.assertEquals("afkmkrokzrthqe", response.iterator().next().tags().get("wpqrtvaozn")); - Assertions.assertEquals("dchmaiubavlz", response.iterator().next().provisioningState()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourceInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourceInnerTests.java deleted file mode 100644 index 0a07031bc4aa..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourceInnerTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.PrivateLinkResourceInner; - -public final class PrivateLinkResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateLinkResourceInner model = - BinaryData - .fromString( - "{\"properties\":{\"groupId\":\"wtgrhpdjpj\",\"requiredMembers\":[\"sxazjpq\",\"e\",\"ualhbxxhejj\",\"zvdudgwdslfhotwm\"],\"requiredZoneNames\":[\"pwlbjnpg\",\"cftadeh\",\"nltyfsoppusuesnz\"]},\"id\":\"dejbavo\",\"name\":\"xzdmohctb\",\"type\":\"vudwx\"}") - .toObject(PrivateLinkResourceInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateLinkResourceInner model = new PrivateLinkResourceInner(); - model = BinaryData.fromObject(model).toObject(PrivateLinkResourceInner.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourceListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourceListResultTests.java deleted file mode 100644 index 0a1d736fea73..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourceListResultTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.PrivateLinkResourceListResult; - -public final class PrivateLinkResourceListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateLinkResourceListResult model = - BinaryData - .fromString( - "{\"value\":[{\"properties\":{\"groupId\":\"drvyn\",\"requiredMembers\":[],\"requiredZoneNames\":[]},\"id\":\"pphrcgynco\",\"name\":\"pec\",\"type\":\"vmmcoofs\"},{\"properties\":{\"groupId\":\"evgbmqjq\",\"requiredMembers\":[],\"requiredZoneNames\":[]},\"id\":\"y\",\"name\":\"mivkwlzuvcc\",\"type\":\"wnfnbacf\"},{\"properties\":{\"groupId\":\"l\",\"requiredMembers\":[],\"requiredZoneNames\":[]},\"id\":\"etqgtzxdpnq\",\"name\":\"qqwx\",\"type\":\"jfeallnwsub\"},{\"properties\":{\"groupId\":\"jampmngnzscxaqw\",\"requiredMembers\":[],\"requiredZoneNames\":[]},\"id\":\"hcbonqvpkvlr\",\"name\":\"njeaseipheofloke\",\"type\":\"y\"}],\"nextLink\":\"nj\"}") - .toObject(PrivateLinkResourceListResult.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateLinkResourceListResult model = new PrivateLinkResourceListResult(); - model = BinaryData.fromObject(model).toObject(PrivateLinkResourceListResult.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcePropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcePropertiesTests.java deleted file mode 100644 index f405dd3433c3..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcePropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.PrivateLinkResourceProperties; - -public final class PrivateLinkResourcePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateLinkResourceProperties model = - BinaryData - .fromString( - "{\"groupId\":\"dnvowg\",\"requiredMembers\":[\"ugw\",\"kcglhslaz\",\"dyggdtjixhbku\"],\"requiredZoneNames\":[\"wey\",\"hmenevfyexfwhybc\",\"bvyvdcsity\"]}") - .toObject(PrivateLinkResourceProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateLinkResourceProperties model = new PrivateLinkResourceProperties(); - model = BinaryData.fromObject(model).toObject(PrivateLinkResourceProperties.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesOperationsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesOperationsGetWithResponseMockTests.java deleted file mode 100644 index 3f3b62aaf8c7..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesOperationsGetWithResponseMockTests.java +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.PrivateLinkResource; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class PrivateLinkResourcesOperationsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"groupId\":\"be\",\"requiredMembers\":[\"isrz\"],\"requiredZoneNames\":[\"kdidjc\",\"lrmpwctofldse\"]},\"id\":\"cdhz\",\"name\":\"xkbrfg\",\"type\":\"rwjiyew\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PrivateLinkResource response = - manager - .privateLinkResourcesOperations() - .getWithResponse("njzudr", "pzkg", "eboywhczzqrhm", com.azure.core.util.Context.NONE) - .getValue(); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesOperationsListMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesOperationsListMockTests.java deleted file mode 100644 index 0a8210dd7bfe..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesOperationsListMockTests.java +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.PrivateLinkResource; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class PrivateLinkResourcesOperationsListMockTests { - @Test - public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"properties\":{\"groupId\":\"ah\",\"requiredMembers\":[\"niiwllbvgwz\"],\"requiredZoneNames\":[\"tedousnktjtgrava\"]},\"id\":\"ogfkbebauzlqb\",\"name\":\"xxw\",\"type\":\"f\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager - .privateLinkResourcesOperations() - .list("lhydwbdbfgrlpu", "ytjlkesmmpath", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesPropertiesTests.java deleted file mode 100644 index 80ffa5046e45..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesPropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.PrivateLinkResourcesProperties; - -public final class PrivateLinkResourcesPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateLinkResourcesProperties model = - BinaryData - .fromString( - "{\"groupId\":\"hpabgdexjddvjs\",\"requiredMembers\":[\"otmmw\",\"lcol\",\"rsxaptefh\",\"xcgjokjljnhvlq\"],\"requiredZoneNames\":[\"kpeeksnbksdqhj\"],\"provisioningState\":\"Creating\"}") - .toObject(PrivateLinkResourcesProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateLinkResourcesProperties model = new PrivateLinkResourcesProperties(); - model = BinaryData.fromObject(model).toObject(PrivateLinkResourcesProperties.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesTests.java deleted file mode 100644 index 53125e74b0ce..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkResourcesTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.KustoPoolPrivateLinkResourcesInner; -import com.azure.resourcemanager.synapse.models.PrivateLinkResources; -import java.util.Arrays; - -public final class PrivateLinkResourcesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateLinkResources model = - BinaryData - .fromString( - "{\"value\":[{\"properties\":{\"groupId\":\"uipldqq\",\"requiredMembers\":[],\"requiredZoneNames\":[],\"provisioningState\":\"Canceled\"},\"id\":\"lblhtjq\",\"name\":\"qyv\",\"type\":\"eh\"}]}") - .toObject(PrivateLinkResources.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateLinkResources model = - new PrivateLinkResources().withValue(Arrays.asList(new KustoPoolPrivateLinkResourcesInner())); - model = BinaryData.fromObject(model).toObject(PrivateLinkResources.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkServiceConnectionStateTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkServiceConnectionStateTests.java deleted file mode 100644 index 2a8457e18408..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PrivateLinkServiceConnectionStateTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.PrivateLinkServiceConnectionState; -import org.junit.jupiter.api.Assertions; - -public final class PrivateLinkServiceConnectionStateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PrivateLinkServiceConnectionState model = - BinaryData - .fromString("{\"status\":\"yd\",\"description\":\"lmjthjq\",\"actionsRequired\":\"pyeicxm\"}") - .toObject(PrivateLinkServiceConnectionState.class); - Assertions.assertEquals("yd", model.status()); - Assertions.assertEquals("lmjthjq", model.description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PrivateLinkServiceConnectionState model = - new PrivateLinkServiceConnectionState().withStatus("yd").withDescription("lmjthjq"); - model = BinaryData.fromObject(model).toObject(PrivateLinkServiceConnectionState.class); - Assertions.assertEquals("yd", model.status()); - Assertions.assertEquals("lmjthjq", model.description()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PurviewConfigurationTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PurviewConfigurationTests.java deleted file mode 100644 index 3cfa0835e4ac..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/PurviewConfigurationTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.PurviewConfiguration; -import org.junit.jupiter.api.Assertions; - -public final class PurviewConfigurationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - PurviewConfiguration model = - BinaryData.fromString("{\"purviewResourceId\":\"ezkgi\"}").toObject(PurviewConfiguration.class); - Assertions.assertEquals("ezkgi", model.purviewResourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PurviewConfiguration model = new PurviewConfiguration().withPurviewResourceId("ezkgi"); - model = BinaryData.fromObject(model).toObject(PurviewConfiguration.class); - Assertions.assertEquals("ezkgi", model.purviewResourceId()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReadOnlyFollowingDatabasePropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReadOnlyFollowingDatabasePropertiesTests.java deleted file mode 100644 index 44e961bbb575..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReadOnlyFollowingDatabasePropertiesTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.ReadOnlyFollowingDatabaseProperties; -import java.time.Duration; -import org.junit.jupiter.api.Assertions; - -public final class ReadOnlyFollowingDatabasePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ReadOnlyFollowingDatabaseProperties model = - BinaryData - .fromString( - "{\"provisioningState\":\"Creating\",\"softDeletePeriod\":\"PT21H33M36S\",\"hotCachePeriod\":\"PT30H42M39S\",\"statistics\":{\"size\":1.7092168},\"leaderClusterResourceId\":\"azyqbxyxoyfp\",\"attachedDatabaseConfigurationName\":\"qi\",\"principalsModificationKind\":\"None\"}") - .toObject(ReadOnlyFollowingDatabaseProperties.class); - Assertions.assertEquals(Duration.parse("PT30H42M39S"), model.hotCachePeriod()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReadOnlyFollowingDatabaseProperties model = - new ReadOnlyFollowingDatabaseProperties().withHotCachePeriod(Duration.parse("PT30H42M39S")); - model = BinaryData.fromObject(model).toObject(ReadOnlyFollowingDatabaseProperties.class); - Assertions.assertEquals(Duration.parse("PT30H42M39S"), model.hotCachePeriod()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReadOnlyFollowingDatabaseTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReadOnlyFollowingDatabaseTests.java deleted file mode 100644 index ebdefc530246..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReadOnlyFollowingDatabaseTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.ReadOnlyFollowingDatabase; -import java.time.Duration; -import org.junit.jupiter.api.Assertions; - -public final class ReadOnlyFollowingDatabaseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ReadOnlyFollowingDatabase model = - BinaryData - .fromString( - "{\"kind\":\"ReadOnlyFollowing\",\"properties\":{\"provisioningState\":\"Deleting\",\"softDeletePeriod\":\"PT1H8M39S\",\"hotCachePeriod\":\"PT168H52M2S\",\"statistics\":{\"size\":48.76836},\"leaderClusterResourceId\":\"jufptbjczjnciuiy\",\"attachedDatabaseConfigurationName\":\"ldaswvpp\",\"principalsModificationKind\":\"None\"},\"location\":\"zlgcndhzxrrf\",\"id\":\"srhkhgsnxuwwkpph\",\"name\":\"fsbzxlbzxo\",\"type\":\"eikjclwza\"}") - .toObject(ReadOnlyFollowingDatabase.class); - Assertions.assertEquals("zlgcndhzxrrf", model.location()); - Assertions.assertEquals(Duration.parse("PT168H52M2S"), model.hotCachePeriod()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReadOnlyFollowingDatabase model = - new ReadOnlyFollowingDatabase() - .withLocation("zlgcndhzxrrf") - .withHotCachePeriod(Duration.parse("PT168H52M2S")); - model = BinaryData.fromObject(model).toObject(ReadOnlyFollowingDatabase.class); - Assertions.assertEquals("zlgcndhzxrrf", model.location()); - Assertions.assertEquals(Duration.parse("PT168H52M2S"), model.hotCachePeriod()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReadWriteDatabasePropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReadWriteDatabasePropertiesTests.java deleted file mode 100644 index 5f541ef850dd..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReadWriteDatabasePropertiesTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.ReadWriteDatabaseProperties; -import java.time.Duration; -import org.junit.jupiter.api.Assertions; - -public final class ReadWriteDatabasePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ReadWriteDatabaseProperties model = - BinaryData - .fromString( - "{\"provisioningState\":\"Moving\",\"softDeletePeriod\":\"PT155H28M34S\",\"hotCachePeriod\":\"PT125H27S\",\"statistics\":{\"size\":51.67798},\"isFollowed\":false}") - .toObject(ReadWriteDatabaseProperties.class); - Assertions.assertEquals(Duration.parse("PT155H28M34S"), model.softDeletePeriod()); - Assertions.assertEquals(Duration.parse("PT125H27S"), model.hotCachePeriod()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReadWriteDatabaseProperties model = - new ReadWriteDatabaseProperties() - .withSoftDeletePeriod(Duration.parse("PT155H28M34S")) - .withHotCachePeriod(Duration.parse("PT125H27S")); - model = BinaryData.fromObject(model).toObject(ReadWriteDatabaseProperties.class); - Assertions.assertEquals(Duration.parse("PT155H28M34S"), model.softDeletePeriod()); - Assertions.assertEquals(Duration.parse("PT125H27S"), model.hotCachePeriod()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReadWriteDatabaseTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReadWriteDatabaseTests.java deleted file mode 100644 index faf734168211..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReadWriteDatabaseTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.ReadWriteDatabase; -import java.time.Duration; -import org.junit.jupiter.api.Assertions; - -public final class ReadWriteDatabaseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ReadWriteDatabase model = - BinaryData - .fromString( - "{\"kind\":\"ReadWrite\",\"properties\":{\"provisioningState\":\"Failed\",\"softDeletePeriod\":\"PT114H20M25S\",\"hotCachePeriod\":\"PT201H28M55S\",\"statistics\":{\"size\":58.395046},\"isFollowed\":true},\"location\":\"tgnjizbeewoiymrv\",\"id\":\"juyrsrziuctixg\",\"name\":\"d\",\"type\":\"uifr\"}") - .toObject(ReadWriteDatabase.class); - Assertions.assertEquals("tgnjizbeewoiymrv", model.location()); - Assertions.assertEquals(Duration.parse("PT114H20M25S"), model.softDeletePeriod()); - Assertions.assertEquals(Duration.parse("PT201H28M55S"), model.hotCachePeriod()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReadWriteDatabase model = - new ReadWriteDatabase() - .withLocation("tgnjizbeewoiymrv") - .withSoftDeletePeriod(Duration.parse("PT114H20M25S")) - .withHotCachePeriod(Duration.parse("PT201H28M55S")); - model = BinaryData.fromObject(model).toObject(ReadWriteDatabase.class); - Assertions.assertEquals("tgnjizbeewoiymrv", model.location()); - Assertions.assertEquals(Duration.parse("PT114H20M25S"), model.softDeletePeriod()); - Assertions.assertEquals(Duration.parse("PT201H28M55S"), model.hotCachePeriod()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RecommendedSensitivityLabelUpdateListTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RecommendedSensitivityLabelUpdateListTests.java deleted file mode 100644 index 0d5774fdfced..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RecommendedSensitivityLabelUpdateListTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.RecommendedSensitivityLabelUpdate; -import com.azure.resourcemanager.synapse.models.RecommendedSensitivityLabelUpdateKind; -import com.azure.resourcemanager.synapse.models.RecommendedSensitivityLabelUpdateList; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class RecommendedSensitivityLabelUpdateListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RecommendedSensitivityLabelUpdateList model = - BinaryData - .fromString( - "{\"operations\":[{\"properties\":{\"op\":\"disable\",\"schema\":\"hoftr\",\"table\":\"ae\",\"column\":\"u\"},\"id\":\"ah\",\"name\":\"icslfaoq\",\"type\":\"piyylhalnswhccsp\"},{\"properties\":{\"op\":\"disable\",\"schema\":\"ivwitqscywugg\",\"table\":\"oluhczbwemh\",\"column\":\"i\"},\"id\":\"sbrgz\",\"name\":\"wmsweypqwd\",\"type\":\"ggicccnxqhue\"},{\"properties\":{\"op\":\"enable\",\"schema\":\"ttlstvlzywemhz\",\"table\":\"ncsdtclusiyp\",\"column\":\"sfgytguslfead\"},\"id\":\"ygqukyhejh\",\"name\":\"isxgfp\",\"type\":\"lolp\"},{\"properties\":{\"op\":\"enable\",\"schema\":\"srp\",\"table\":\"vu\",\"column\":\"zraehtwd\"},\"id\":\"r\",\"name\":\"tswiby\",\"type\":\"cdl\"}]}") - .toObject(RecommendedSensitivityLabelUpdateList.class); - Assertions.assertEquals(RecommendedSensitivityLabelUpdateKind.DISABLE, model.operations().get(0).op()); - Assertions.assertEquals("hoftr", model.operations().get(0).schema()); - Assertions.assertEquals("ae", model.operations().get(0).table()); - Assertions.assertEquals("u", model.operations().get(0).column()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecommendedSensitivityLabelUpdateList model = - new RecommendedSensitivityLabelUpdateList() - .withOperations( - Arrays - .asList( - new RecommendedSensitivityLabelUpdate() - .withOp(RecommendedSensitivityLabelUpdateKind.DISABLE) - .withSchema("hoftr") - .withTable("ae") - .withColumn("u"), - new RecommendedSensitivityLabelUpdate() - .withOp(RecommendedSensitivityLabelUpdateKind.DISABLE) - .withSchema("ivwitqscywugg") - .withTable("oluhczbwemh") - .withColumn("i"), - new RecommendedSensitivityLabelUpdate() - .withOp(RecommendedSensitivityLabelUpdateKind.ENABLE) - .withSchema("ttlstvlzywemhz") - .withTable("ncsdtclusiyp") - .withColumn("sfgytguslfead"), - new RecommendedSensitivityLabelUpdate() - .withOp(RecommendedSensitivityLabelUpdateKind.ENABLE) - .withSchema("srp") - .withTable("vu") - .withColumn("zraehtwd"))); - model = BinaryData.fromObject(model).toObject(RecommendedSensitivityLabelUpdateList.class); - Assertions.assertEquals(RecommendedSensitivityLabelUpdateKind.DISABLE, model.operations().get(0).op()); - Assertions.assertEquals("hoftr", model.operations().get(0).schema()); - Assertions.assertEquals("ae", model.operations().get(0).table()); - Assertions.assertEquals("u", model.operations().get(0).column()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RecommendedSensitivityLabelUpdatePropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RecommendedSensitivityLabelUpdatePropertiesTests.java deleted file mode 100644 index b52cfe21ac91..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RecommendedSensitivityLabelUpdatePropertiesTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.RecommendedSensitivityLabelUpdateProperties; -import com.azure.resourcemanager.synapse.models.RecommendedSensitivityLabelUpdateKind; -import org.junit.jupiter.api.Assertions; - -public final class RecommendedSensitivityLabelUpdatePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RecommendedSensitivityLabelUpdateProperties model = - BinaryData - .fromString( - "{\"op\":\"enable\",\"schema\":\"qunyowxwlmdjr\",\"table\":\"vfgbvfvpdboda\",\"column\":\"izsjqlhkrr\"}") - .toObject(RecommendedSensitivityLabelUpdateProperties.class); - Assertions.assertEquals(RecommendedSensitivityLabelUpdateKind.ENABLE, model.op()); - Assertions.assertEquals("qunyowxwlmdjr", model.schema()); - Assertions.assertEquals("vfgbvfvpdboda", model.table()); - Assertions.assertEquals("izsjqlhkrr", model.column()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecommendedSensitivityLabelUpdateProperties model = - new RecommendedSensitivityLabelUpdateProperties() - .withOp(RecommendedSensitivityLabelUpdateKind.ENABLE) - .withSchema("qunyowxwlmdjr") - .withTable("vfgbvfvpdboda") - .withColumn("izsjqlhkrr"); - model = BinaryData.fromObject(model).toObject(RecommendedSensitivityLabelUpdateProperties.class); - Assertions.assertEquals(RecommendedSensitivityLabelUpdateKind.ENABLE, model.op()); - Assertions.assertEquals("qunyowxwlmdjr", model.schema()); - Assertions.assertEquals("vfgbvfvpdboda", model.table()); - Assertions.assertEquals("izsjqlhkrr", model.column()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RecommendedSensitivityLabelUpdateTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RecommendedSensitivityLabelUpdateTests.java deleted file mode 100644 index f2b914aff459..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RecommendedSensitivityLabelUpdateTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.RecommendedSensitivityLabelUpdate; -import com.azure.resourcemanager.synapse.models.RecommendedSensitivityLabelUpdateKind; -import org.junit.jupiter.api.Assertions; - -public final class RecommendedSensitivityLabelUpdateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RecommendedSensitivityLabelUpdate model = - BinaryData - .fromString( - "{\"properties\":{\"op\":\"disable\",\"schema\":\"hfwpracstwit\",\"table\":\"khevxccedc\",\"column\":\"nmdyodnwzxl\"},\"id\":\"jc\",\"name\":\"nhltiugcxn\",\"type\":\"vvwxqi\"}") - .toObject(RecommendedSensitivityLabelUpdate.class); - Assertions.assertEquals(RecommendedSensitivityLabelUpdateKind.DISABLE, model.op()); - Assertions.assertEquals("hfwpracstwit", model.schema()); - Assertions.assertEquals("khevxccedc", model.table()); - Assertions.assertEquals("nmdyodnwzxl", model.column()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecommendedSensitivityLabelUpdate model = - new RecommendedSensitivityLabelUpdate() - .withOp(RecommendedSensitivityLabelUpdateKind.DISABLE) - .withSchema("hfwpracstwit") - .withTable("khevxccedc") - .withColumn("nmdyodnwzxl"); - model = BinaryData.fromObject(model).toObject(RecommendedSensitivityLabelUpdate.class); - Assertions.assertEquals(RecommendedSensitivityLabelUpdateKind.DISABLE, model.op()); - Assertions.assertEquals("hfwpracstwit", model.schema()); - Assertions.assertEquals("khevxccedc", model.table()); - Assertions.assertEquals("nmdyodnwzxl", model.column()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RecoverableSqlPoolInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RecoverableSqlPoolInnerTests.java deleted file mode 100644 index 5855bb8028ea..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RecoverableSqlPoolInnerTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.RecoverableSqlPoolInner; - -public final class RecoverableSqlPoolInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RecoverableSqlPoolInner model = - BinaryData - .fromString( - "{\"properties\":{\"edition\":\"cjbtrgaehvvib\",\"serviceLevelObjective\":\"jj\",\"elasticPoolName\":\"oqbeitpkxzt\",\"lastAvailableBackupDate\":\"2021-07-13T13:28:06Z\"},\"id\":\"bklftidgfcwqmpim\",\"name\":\"qxzhem\",\"type\":\"yhohujswtwkozzwc\"}") - .toObject(RecoverableSqlPoolInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecoverableSqlPoolInner model = new RecoverableSqlPoolInner(); - model = BinaryData.fromObject(model).toObject(RecoverableSqlPoolInner.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RecoverableSqlPoolListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RecoverableSqlPoolListResultTests.java deleted file mode 100644 index 464bfb4aeeb3..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RecoverableSqlPoolListResultTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.RecoverableSqlPoolListResult; - -public final class RecoverableSqlPoolListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RecoverableSqlPoolListResult model = - BinaryData - .fromString( - "{\"value\":[{\"properties\":{\"edition\":\"efojyqdhcupl\",\"serviceLevelObjective\":\"lcwkhihihlhz\",\"elasticPoolName\":\"qtz\",\"lastAvailableBackupDate\":\"2021-02-23T09:25:04Z\"},\"id\":\"gnowcjhfgmveca\",\"name\":\"txmwoteyow\",\"type\":\"luqovekqvg\"},{\"properties\":{\"edition\":\"wifzmp\",\"serviceLevelObjective\":\"yivqikfxcvhrfsp\",\"elasticPoolName\":\"agr\",\"lastAvailableBackupDate\":\"2021-07-10T20:58:35Z\"},\"id\":\"kteusqczk\",\"name\":\"yklxubyjaffmmfbl\",\"type\":\"qcuubgqibrta\"},{\"properties\":{\"edition\":\"tttwgdslqxih\",\"serviceLevelObjective\":\"moo\",\"elasticPoolName\":\"qseypxiutcxa\",\"lastAvailableBackupDate\":\"2021-01-03T05:51:25Z\"},\"id\":\"y\",\"name\":\"petogebjox\",\"type\":\"lhvnhlab\"}],\"nextLink\":\"nk\"}") - .toObject(RecoverableSqlPoolListResult.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecoverableSqlPoolListResult model = new RecoverableSqlPoolListResult(); - model = BinaryData.fromObject(model).toObject(RecoverableSqlPoolListResult.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RecoverableSqlPoolPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RecoverableSqlPoolPropertiesTests.java deleted file mode 100644 index e00f9026e989..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RecoverableSqlPoolPropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.RecoverableSqlPoolProperties; - -public final class RecoverableSqlPoolPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RecoverableSqlPoolProperties model = - BinaryData - .fromString( - "{\"edition\":\"kb\",\"serviceLevelObjective\":\"pfajnjwltlwtjj\",\"elasticPoolName\":\"ktalhsnvkcdmxz\",\"lastAvailableBackupDate\":\"2021-05-04T00:50:01Z\"}") - .toObject(RecoverableSqlPoolProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RecoverableSqlPoolProperties model = new RecoverableSqlPoolProperties(); - model = BinaryData.fromObject(model).toObject(RecoverableSqlPoolProperties.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReplaceAllFirewallRulesOperationResponseInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReplaceAllFirewallRulesOperationResponseInnerTests.java deleted file mode 100644 index 82f16e31949d..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReplaceAllFirewallRulesOperationResponseInnerTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.ReplaceAllFirewallRulesOperationResponseInner; -import org.junit.jupiter.api.Assertions; - -public final class ReplaceAllFirewallRulesOperationResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ReplaceAllFirewallRulesOperationResponseInner model = - BinaryData - .fromString("{\"operationId\":\"rtfw\"}") - .toObject(ReplaceAllFirewallRulesOperationResponseInner.class); - Assertions.assertEquals("rtfw", model.operationId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReplaceAllFirewallRulesOperationResponseInner model = - new ReplaceAllFirewallRulesOperationResponseInner().withOperationId("rtfw"); - model = BinaryData.fromObject(model).toObject(ReplaceAllFirewallRulesOperationResponseInner.class); - Assertions.assertEquals("rtfw", model.operationId()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReplaceAllIpFirewallRulesRequestTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReplaceAllIpFirewallRulesRequestTests.java deleted file mode 100644 index 8bf5874ea499..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReplaceAllIpFirewallRulesRequestTests.java +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.IpFirewallRuleProperties; -import com.azure.resourcemanager.synapse.models.ReplaceAllIpFirewallRulesRequest; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ReplaceAllIpFirewallRulesRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ReplaceAllIpFirewallRulesRequest model = - BinaryData - .fromString( - "{\"ipFirewallRules\":{\"xqhabi\":{\"endIpAddress\":\"fhfcb\",\"provisioningState\":\"DeleteError\",\"startIpAddress\":\"git\"},\"rkxvdum\":{\"endIpAddress\":\"ikxwc\",\"provisioningState\":\"Provisioning\",\"startIpAddress\":\"cnpqxuhivyqniwby\"}}}") - .toObject(ReplaceAllIpFirewallRulesRequest.class); - Assertions.assertEquals("fhfcb", model.ipFirewallRules().get("xqhabi").endIpAddress()); - Assertions.assertEquals("git", model.ipFirewallRules().get("xqhabi").startIpAddress()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReplaceAllIpFirewallRulesRequest model = - new ReplaceAllIpFirewallRulesRequest() - .withIpFirewallRules( - mapOf( - "xqhabi", - new IpFirewallRuleProperties().withEndIpAddress("fhfcb").withStartIpAddress("git"), - "rkxvdum", - new IpFirewallRuleProperties() - .withEndIpAddress("ikxwc") - .withStartIpAddress("cnpqxuhivyqniwby"))); - model = BinaryData.fromObject(model).toObject(ReplaceAllIpFirewallRulesRequest.class); - Assertions.assertEquals("fhfcb", model.ipFirewallRules().get("xqhabi").endIpAddress()); - Assertions.assertEquals("git", model.ipFirewallRules().get("xqhabi").startIpAddress()); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReplicationLinkInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReplicationLinkInnerTests.java deleted file mode 100644 index 5681b4cfabfe..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReplicationLinkInnerTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.ReplicationLinkInner; - -public final class ReplicationLinkInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ReplicationLinkInner model = - BinaryData - .fromString( - "{\"location\":\"dfznudaodv\",\"properties\":{\"isTerminationAllowed\":true,\"replicationMode\":\"blylpstdbh\",\"partnerServer\":\"srzdzucerscdn\",\"partnerDatabase\":\"evfiwjmygt\",\"partnerLocation\":\"slswtm\",\"role\":\"Secondary\",\"partnerRole\":\"Primary\",\"startTime\":\"2021-10-28T16:23:15Z\",\"percentComplete\":1861097710,\"replicationState\":\"CATCH_UP\"},\"id\":\"emwabnet\",\"name\":\"hhszh\",\"type\":\"d\"}") - .toObject(ReplicationLinkInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReplicationLinkInner model = new ReplicationLinkInner(); - model = BinaryData.fromObject(model).toObject(ReplicationLinkInner.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReplicationLinkListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReplicationLinkListResultTests.java deleted file mode 100644 index 4242f3818f5c..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReplicationLinkListResultTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.ReplicationLinkInner; -import com.azure.resourcemanager.synapse.models.ReplicationLinkListResult; -import java.util.Arrays; - -public final class ReplicationLinkListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ReplicationLinkListResult model = - BinaryData - .fromString( - "{\"value\":[{\"location\":\"mifthnzdnd\",\"properties\":{\"isTerminationAllowed\":false,\"replicationMode\":\"yq\",\"partnerServer\":\"ynduha\",\"partnerDatabase\":\"qlkth\",\"partnerLocation\":\"aqolbgycduiertg\",\"role\":\"Source\",\"partnerRole\":\"Primary\",\"startTime\":\"2021-09-08T08:41:54Z\",\"percentComplete\":76010479,\"replicationState\":\"CATCH_UP\"},\"id\":\"lqlfm\",\"name\":\"dnbbglzps\",\"type\":\"iydmcwyhzdxs\"}],\"nextLink\":\"dbzm\"}") - .toObject(ReplicationLinkListResult.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReplicationLinkListResult model = - new ReplicationLinkListResult().withValue(Arrays.asList(new ReplicationLinkInner())); - model = BinaryData.fromObject(model).toObject(ReplicationLinkListResult.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReplicationLinkPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReplicationLinkPropertiesTests.java deleted file mode 100644 index 7e11e012b96b..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ReplicationLinkPropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.ReplicationLinkProperties; - -public final class ReplicationLinkPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ReplicationLinkProperties model = - BinaryData - .fromString( - "{\"isTerminationAllowed\":true,\"replicationMode\":\"iwubmwmbesldnk\",\"partnerServer\":\"tppjflcx\",\"partnerDatabase\":\"aokonzmnsik\",\"partnerLocation\":\"kqze\",\"role\":\"Copy\",\"partnerRole\":\"NonReadableSecondary\",\"startTime\":\"2021-09-09T14:39:27Z\",\"percentComplete\":684892546,\"replicationState\":\"PENDING\"}") - .toObject(ReplicationLinkProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ReplicationLinkProperties model = new ReplicationLinkProperties(); - model = BinaryData.fromObject(model).toObject(ReplicationLinkProperties.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ResourceMoveDefinitionTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ResourceMoveDefinitionTests.java deleted file mode 100644 index 941fbe15edba..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ResourceMoveDefinitionTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.ResourceMoveDefinition; -import org.junit.jupiter.api.Assertions; - -public final class ResourceMoveDefinitionTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ResourceMoveDefinition model = - BinaryData.fromString("{\"id\":\"qlveualupjmkh\"}").toObject(ResourceMoveDefinition.class); - Assertions.assertEquals("qlveualupjmkh", model.id()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ResourceMoveDefinition model = new ResourceMoveDefinition().withId("qlveualupjmkh"); - model = BinaryData.fromObject(model).toObject(ResourceMoveDefinition.class); - Assertions.assertEquals("qlveualupjmkh", model.id()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorableDroppedSqlPoolInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorableDroppedSqlPoolInnerTests.java deleted file mode 100644 index 1dc2e0da36cc..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorableDroppedSqlPoolInnerTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.RestorableDroppedSqlPoolInner; - -public final class RestorableDroppedSqlPoolInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RestorableDroppedSqlPoolInner model = - BinaryData - .fromString( - "{\"location\":\"wmdboxdfgsftuf\",\"properties\":{\"databaseName\":\"rjlnacgcck\",\"edition\":\"hxkizvytnrzv\",\"maxSizeBytes\":\"jraaeranokqguk\",\"serviceLevelObjective\":\"qnvb\",\"elasticPoolName\":\"ylaxxulcdi\",\"creationDate\":\"2021-07-14T04:09:25Z\",\"deletionDate\":\"2021-02-01T10:54:28Z\",\"earliestRestoreDate\":\"2021-04-13T22:50:17Z\"},\"id\":\"jsvg\",\"name\":\"rwhryvycytd\",\"type\":\"lxgccknfnwmbtm\"}") - .toObject(RestorableDroppedSqlPoolInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RestorableDroppedSqlPoolInner model = new RestorableDroppedSqlPoolInner(); - model = BinaryData.fromObject(model).toObject(RestorableDroppedSqlPoolInner.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorableDroppedSqlPoolListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorableDroppedSqlPoolListResultTests.java deleted file mode 100644 index c756b42fcdfb..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorableDroppedSqlPoolListResultTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.RestorableDroppedSqlPoolInner; -import com.azure.resourcemanager.synapse.models.RestorableDroppedSqlPoolListResult; -import java.util.Arrays; - -public final class RestorableDroppedSqlPoolListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RestorableDroppedSqlPoolListResult model = - BinaryData - .fromString( - "{\"value\":[{\"location\":\"qlgehg\",\"properties\":{\"databaseName\":\"pifhpfeoajvgcxtx\",\"edition\":\"sheafid\",\"maxSizeBytes\":\"ugsresmkssjhoi\",\"serviceLevelObjective\":\"xfkfwegprhptill\",\"elasticPoolName\":\"biqtgdq\",\"creationDate\":\"2021-07-05T05:21:27Z\",\"deletionDate\":\"2021-06-27T02:38:30Z\",\"earliestRestoreDate\":\"2021-05-01T07:33:50Z\"},\"id\":\"drizetpwbr\",\"name\":\"lllibph\",\"type\":\"qzmiza\"},{\"location\":\"kan\",\"properties\":{\"databaseName\":\"dnjzh\",\"edition\":\"oylhjlmuoyxprimr\",\"maxSizeBytes\":\"pteecjme\",\"serviceLevelObjective\":\"ls\",\"elasticPoolName\":\"asylwx\",\"creationDate\":\"2021-07-29T15:52:33Z\",\"deletionDate\":\"2021-01-12T02:29:32Z\",\"earliestRestoreDate\":\"2021-03-03T01:17:06Z\"},\"id\":\"oohgu\",\"name\":\"fuzboyjathwtzolb\",\"type\":\"emwmdxmebwjs\"},{\"location\":\"p\",\"properties\":{\"databaseName\":\"xveabf\",\"edition\":\"nmwmqtibx\",\"maxSizeBytes\":\"jddtvqct\",\"serviceLevelObjective\":\"dija\",\"elasticPoolName\":\"kmr\",\"creationDate\":\"2021-09-17T14:17:20Z\",\"deletionDate\":\"2021-06-27T19:58:30Z\",\"earliestRestoreDate\":\"2021-03-21T22:02:33Z\"},\"id\":\"dzaapmudqme\",\"name\":\"wig\",\"type\":\"ibudqwy\"}]}") - .toObject(RestorableDroppedSqlPoolListResult.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RestorableDroppedSqlPoolListResult model = - new RestorableDroppedSqlPoolListResult() - .withValue( - Arrays - .asList( - new RestorableDroppedSqlPoolInner(), - new RestorableDroppedSqlPoolInner(), - new RestorableDroppedSqlPoolInner())); - model = BinaryData.fromObject(model).toObject(RestorableDroppedSqlPoolListResult.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorableDroppedSqlPoolPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorableDroppedSqlPoolPropertiesTests.java deleted file mode 100644 index 65d989cbc02e..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorableDroppedSqlPoolPropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.RestorableDroppedSqlPoolProperties; - -public final class RestorableDroppedSqlPoolPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RestorableDroppedSqlPoolProperties model = - BinaryData - .fromString( - "{\"databaseName\":\"dvjdhttza\",\"edition\":\"edxihchrphkmcrj\",\"maxSizeBytes\":\"nsdfzpbgtgky\",\"serviceLevelObjective\":\"dgh\",\"elasticPoolName\":\"euutlwxezwzh\",\"creationDate\":\"2021-10-29T09:06Z\",\"deletionDate\":\"2021-09-18T08:14:23Z\",\"earliestRestoreDate\":\"2021-06-26T10:05:09Z\"}") - .toObject(RestorableDroppedSqlPoolProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RestorableDroppedSqlPoolProperties model = new RestorableDroppedSqlPoolProperties(); - model = BinaryData.fromObject(model).toObject(RestorableDroppedSqlPoolProperties.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorableDroppedSqlPoolsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorableDroppedSqlPoolsGetWithResponseMockTests.java deleted file mode 100644 index e98229d869be..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorableDroppedSqlPoolsGetWithResponseMockTests.java +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.RestorableDroppedSqlPool; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class RestorableDroppedSqlPoolsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"location\":\"jyrkwfug\",\"properties\":{\"databaseName\":\"rrkuumnqd\",\"edition\":\"hz\",\"maxSizeBytes\":\"opueo\",\"serviceLevelObjective\":\"svwlujop\",\"elasticPoolName\":\"ibittoztjdqum\",\"creationDate\":\"2021-01-19T23:42:11Z\",\"deletionDate\":\"2021-05-21T17:58:08Z\",\"earliestRestoreDate\":\"2021-09-08T08:44:20Z\"},\"id\":\"ddtgctxegtvgwy\",\"name\":\"rbelfnzz\",\"type\":\"yizwbxgdebxla\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - RestorableDroppedSqlPool response = - manager - .restorableDroppedSqlPools() - .getWithResponse("doey", "fpnimtwuuhaueg", "kwmnfeub", com.azure.core.util.Context.NONE) - .getValue(); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorableDroppedSqlPoolsListByWorkspaceMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorableDroppedSqlPoolsListByWorkspaceMockTests.java deleted file mode 100644 index 2da08ee4ac12..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorableDroppedSqlPoolsListByWorkspaceMockTests.java +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.RestorableDroppedSqlPool; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class RestorableDroppedSqlPoolsListByWorkspaceMockTests { - @Test - public void testListByWorkspace() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"location\":\"benqlamwmg\",\"properties\":{\"databaseName\":\"yxflnbcpjstbh\",\"edition\":\"hcucsqsnx\",\"maxSizeBytes\":\"xufeapd\",\"serviceLevelObjective\":\"zyvbsuadulpodk\",\"elasticPoolName\":\"p\",\"creationDate\":\"2021-03-27T03:25:44Z\",\"deletionDate\":\"2021-07-26T00:19:22Z\",\"earliestRestoreDate\":\"2021-03-23T08:11:33Z\"},\"id\":\"hjdqltdeluqr\",\"name\":\"jadhfztl\",\"type\":\"aysrkgzky\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager.restorableDroppedSqlPools().listByWorkspace("unomir", "p", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorePointInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorePointInnerTests.java deleted file mode 100644 index 026ecddc47a7..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorePointInnerTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.RestorePointInner; - -public final class RestorePointInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RestorePointInner model = - BinaryData - .fromString( - "{\"location\":\"bpybsrfbjf\",\"properties\":{\"restorePointType\":\"CONTINUOUS\",\"earliestRestoreDate\":\"2021-01-25T00:48:06Z\",\"restorePointCreationDate\":\"2021-06-01T18:34:35Z\",\"restorePointLabel\":\"pvjzbe\"},\"id\":\"ilzznfqqnvwp\",\"name\":\"qtaruoujmkcjhwq\",\"type\":\"tjrybnwjewgdr\"}") - .toObject(RestorePointInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RestorePointInner model = new RestorePointInner(); - model = BinaryData.fromObject(model).toObject(RestorePointInner.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorePointListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorePointListResultTests.java deleted file mode 100644 index b98539e3f478..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorePointListResultTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.RestorePointListResult; - -public final class RestorePointListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RestorePointListResult model = - BinaryData - .fromString( - "{\"value\":[{\"location\":\"xmedjvcsly\",\"properties\":{\"restorePointType\":\"DISCRETE\",\"earliestRestoreDate\":\"2021-06-18T01:03:59Z\",\"restorePointCreationDate\":\"2021-02-16T11:10:06Z\",\"restorePointLabel\":\"hxg\"},\"id\":\"trmgucnapkte\",\"name\":\"ellwptfdy\",\"type\":\"pfqbuaceopzf\"},{\"location\":\"hhuao\",\"properties\":{\"restorePointType\":\"CONTINUOUS\",\"earliestRestoreDate\":\"2021-06-20T04:26:50Z\",\"restorePointCreationDate\":\"2021-08-17T00:04:54Z\",\"restorePointLabel\":\"lzdahzxctobgbkdm\"},\"id\":\"izpost\",\"name\":\"grcfb\",\"type\":\"nrmfqjhhk\"},{\"location\":\"pvjymjhxxjyng\",\"properties\":{\"restorePointType\":\"CONTINUOUS\",\"earliestRestoreDate\":\"2021-03-03T06:08:52Z\",\"restorePointCreationDate\":\"2021-05-11T10:46:47Z\",\"restorePointLabel\":\"bxqz\"},\"id\":\"szjfauvjfdxxivet\",\"name\":\"t\",\"type\":\"qaqtdoqmcbxvwvxy\"},{\"location\":\"qbhsfxobl\",\"properties\":{\"restorePointType\":\"CONTINUOUS\",\"earliestRestoreDate\":\"2021-11-17T19:10:27Z\",\"restorePointCreationDate\":\"2021-08-02T07:01:05Z\",\"restorePointLabel\":\"wwfbkrvrnsvshq\"},\"id\":\"ohxcrsbfova\",\"name\":\"rruvwbhsq\",\"type\":\"sub\"}],\"nextLink\":\"jbi\"}") - .toObject(RestorePointListResult.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RestorePointListResult model = new RestorePointListResult(); - model = BinaryData.fromObject(model).toObject(RestorePointListResult.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorePointPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorePointPropertiesTests.java deleted file mode 100644 index 8f7d4fa945fd..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/RestorePointPropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.RestorePointProperties; - -public final class RestorePointPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RestorePointProperties model = - BinaryData - .fromString( - "{\"restorePointType\":\"DISCRETE\",\"earliestRestoreDate\":\"2021-02-06T06:59:31Z\",\"restorePointCreationDate\":\"2021-09-18T13:17Z\",\"restorePointLabel\":\"qp\"}") - .toObject(RestorePointProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RestorePointProperties model = new RestorePointProperties(); - model = BinaryData.fromObject(model).toObject(RestorePointProperties.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SecretBaseTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SecretBaseTests.java deleted file mode 100644 index f2132036905b..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SecretBaseTests.java +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.SecretBase; - -public final class SecretBaseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SecretBase model = BinaryData.fromString("{\"type\":\"SecretBase\"}").toObject(SecretBase.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SecretBase model = new SecretBase(); - model = BinaryData.fromObject(model).toObject(SecretBase.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SecureStringTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SecureStringTests.java deleted file mode 100644 index 19d8bc3043e5..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SecureStringTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.SecureString; -import org.junit.jupiter.api.Assertions; - -public final class SecureStringTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SecureString model = - BinaryData.fromString("{\"type\":\"SecureString\",\"value\":\"ormcqmic\"}").toObject(SecureString.class); - Assertions.assertEquals("ormcqmic", model.value()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SecureString model = new SecureString().withValue("ormcqmic"); - model = BinaryData.fromObject(model).toObject(SecureString.class); - Assertions.assertEquals("ormcqmic", model.value()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SelfHostedIntegrationRuntimeNodeInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SelfHostedIntegrationRuntimeNodeInnerTests.java deleted file mode 100644 index fa55ca4577d4..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SelfHostedIntegrationRuntimeNodeInnerTests.java +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.core.util.serializer.JacksonAdapter; -import com.azure.core.util.serializer.SerializerEncoding; -import com.azure.resourcemanager.synapse.fluent.models.SelfHostedIntegrationRuntimeNodeInner; -import java.util.HashMap; -import java.util.Map; - -public final class SelfHostedIntegrationRuntimeNodeInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SelfHostedIntegrationRuntimeNodeInner model = - BinaryData - .fromString( - "{\"nodeName\":\"denxau\",\"machineName\":\"pakdkifmjnnawt\",\"hostServiceUri\":\"bpxuckpggqoweyi\",\"status\":\"Upgrading\",\"capabilities\":{\"wfl\":\"sn\",\"zruwn\":\"qmp\",\"iixtmkzj\":\"qxpxiwfcngjsaa\",\"irhgfgrwsdp\":\"kv\"},\"versionStatus\":\"atzv\",\"version\":\"glbyvi\",\"registerTime\":\"2021-05-26T01:46:31Z\",\"lastConnectTime\":\"2021-03-31T05:55:27Z\",\"expiryTime\":\"2021-10-06T10:18:17Z\",\"lastStartTime\":\"2021-07-31T12:16:42Z\",\"lastStopTime\":\"2021-01-04T19:12:22Z\",\"lastUpdateResult\":\"Succeed\",\"lastStartUpdateTime\":\"2021-04-03T23:49:09Z\",\"lastEndUpdateTime\":\"2021-12-06T00:37:58Z\",\"isActiveDispatcher\":false,\"concurrentJobsLimit\":1340920016,\"maxConcurrentJobs\":1977846106,\"\":{\"clnapxbiygnugjkn\":\"datazxwopdbydpizq\",\"oiquvrehmrnjhvs\":\"datasmfcttuxuuyilfl\"}}") - .toObject(SelfHostedIntegrationRuntimeNodeInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SelfHostedIntegrationRuntimeNodeInner model = - new SelfHostedIntegrationRuntimeNodeInner() - .withAdditionalProperties( - mapOf( - "nodeName", - "denxau", - "lastStartUpdateTime", - "2021-04-03T23:49:09Z", - "lastConnectTime", - "2021-03-31T05:55:27Z", - "capabilities", - JacksonAdapter - .createDefaultSerializerAdapter() - .deserialize( - "{\"wfl\":\"sn\",\"zruwn\":\"qmp\",\"iixtmkzj\":\"qxpxiwfcngjsaa\",\"irhgfgrwsdp\":\"kv\"}", - Object.class, - SerializerEncoding.JSON), - "hostServiceUri", - "bpxuckpggqoweyi", - "registerTime", - "2021-05-26T01:46:31Z", - "maxConcurrentJobs", - 1977846106, - "lastStopTime", - "2021-01-04T19:12:22Z", - "version", - "glbyvi", - "machineName", - "pakdkifmjnnawt", - "versionStatus", - "atzv", - "concurrentJobsLimit", - 1340920016, - "lastEndUpdateTime", - "2021-12-06T00:37:58Z", - "expiryTime", - "2021-10-06T10:18:17Z", - "lastStartTime", - "2021-07-31T12:16:42Z", - "lastUpdateResult", - "Succeed", - "isActiveDispatcher", - false, - "status", - "Upgrading")); - model = BinaryData.fromObject(model).toObject(SelfHostedIntegrationRuntimeNodeInner.class); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SelfHostedIntegrationRuntimeStatusTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SelfHostedIntegrationRuntimeStatusTests.java deleted file mode 100644 index ad823611728b..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SelfHostedIntegrationRuntimeStatusTests.java +++ /dev/null @@ -1,178 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.core.util.serializer.JacksonAdapter; -import com.azure.core.util.serializer.SerializerEncoding; -import com.azure.resourcemanager.synapse.fluent.models.SelfHostedIntegrationRuntimeNodeInner; -import com.azure.resourcemanager.synapse.models.LinkedIntegrationRuntime; -import com.azure.resourcemanager.synapse.models.SelfHostedIntegrationRuntimeStatus; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SelfHostedIntegrationRuntimeStatusTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SelfHostedIntegrationRuntimeStatus model = - BinaryData - .fromString( - "{\"type\":\"SelfHosted\",\"typeProperties\":{\"createTime\":\"2020-12-26T02:01:59Z\",\"taskQueueId\":\"nokzwjjz\",\"nodeCommunicationChannelEncryptionMode\":\"tixldzyyfytpqs\",\"internalChannelEncryption\":\"SslEncrypted\",\"version\":\"m\",\"nodes\":[{\"nodeName\":\"vyqlkjuvsmbmslzo\",\"machineName\":\"vwzdbpqvyb\",\"hostServiceUri\":\"gvmxnok\",\"status\":\"Offline\",\"capabilities\":{},\"versionStatus\":\"bse\",\"version\":\"vcuartrhun\",\"registerTime\":\"2021-10-23T09:44:51Z\",\"lastConnectTime\":\"2021-03-25T16:48:43Z\",\"expiryTime\":\"2021-01-17T22:26:54Z\",\"lastStartTime\":\"2021-09-25T18:28:14Z\",\"lastStopTime\":\"2021-08-08T22:57:09Z\",\"lastUpdateResult\":\"Fail\",\"lastStartUpdateTime\":\"2021-05-27T06:07:42Z\",\"lastEndUpdateTime\":\"2021-10-29T14:16:23Z\",\"isActiveDispatcher\":false,\"concurrentJobsLimit\":924088824,\"maxConcurrentJobs\":1327984375,\"\":{}},{\"nodeName\":\"wagltbxoeeonqlnf\",\"machineName\":\"y\",\"hostServiceUri\":\"vqdbpbhfck\",\"status\":\"Offline\",\"capabilities\":{},\"versionStatus\":\"rcssbzhddubbnq\",\"version\":\"lhkalehpavawugi\",\"registerTime\":\"2021-02-25T01:40:45Z\",\"lastConnectTime\":\"2021-04-01T19:27:08Z\",\"expiryTime\":\"2021-07-26T21:58:24Z\",\"lastStartTime\":\"2021-07-01T06:50:20Z\",\"lastStopTime\":\"2021-09-05T10:18:10Z\",\"lastUpdateResult\":\"Fail\",\"lastStartUpdateTime\":\"2021-05-05T10:06:38Z\",\"lastEndUpdateTime\":\"2021-08-05T18:56:25Z\",\"isActiveDispatcher\":false,\"concurrentJobsLimit\":495911185,\"maxConcurrentJobs\":1621846817,\"\":{}},{\"nodeName\":\"pnbonhpcz\",\"machineName\":\"mktp\",\"hostServiceUri\":\"xqcsehch\",\"status\":\"InitializeFailed\",\"capabilities\":{},\"versionStatus\":\"pqumqyjgydzulo\",\"version\":\"aeuzanh\",\"registerTime\":\"2021-11-19T22:08:29Z\",\"lastConnectTime\":\"2021-09-25T14:16:25Z\",\"expiryTime\":\"2021-09-07T18:47:04Z\",\"lastStartTime\":\"2020-12-23T17:30:48Z\",\"lastStopTime\":\"2021-07-07T19:48:07Z\",\"lastUpdateResult\":\"Fail\",\"lastStartUpdateTime\":\"2021-08-08T10:34:07Z\",\"lastEndUpdateTime\":\"2021-07-05T02:00:42Z\",\"isActiveDispatcher\":true,\"concurrentJobsLimit\":1809951616,\"maxConcurrentJobs\":1731697979,\"\":{}}],\"scheduledUpdateDate\":\"2020-12-23T03:00:17Z\",\"updateDelayOffset\":\"jufwbeqrkuorhtss\",\"localTimeZoneOffset\":\"qnmdvhazcvjy\",\"capabilities\":{\"txtd\":\"swbqerzwxi\",\"ktg\":\"ukvlb\",\"bewreswmowegmmut\":\"styoua\"},\"serviceUrls\":[\"eyguq\"],\"autoUpdate\":\"On\",\"versionStatus\":\"ii\",\"links\":[{\"name\":\"xlzdesygrijwa\",\"subscriptionId\":\"fanraybfu\",\"dataFactoryName\":\"frojsydgr\",\"dataFactoryLocation\":\"dkygywezski\",\"createTime\":\"2021-01-02T19:13:56Z\"},{\"name\":\"ygzmxieqvdsmak\",\"subscriptionId\":\"xq\",\"dataFactoryName\":\"hyhxa\",\"dataFactoryLocation\":\"bx\",\"createTime\":\"2021-08-24T02:30:22Z\"}],\"pushedVersion\":\"jpodtbl\",\"latestVersion\":\"kkwjdjodq\",\"autoUpdateETA\":\"2021-01-07T22:22:02Z\",\"serviceRegion\":\"ncn\",\"newerVersions\":[\"ehllizhceum\",\"qodkadppyibngql\",\"d\"],\"osType\":30824840,\"targetFramework\":1164247130},\"dataFactoryName\":\"yd\",\"state\":\"Stopped\",\"\":{\"nuyemlowuo\":\"dataadswz\",\"blgmokzkltrfowtd\":\"datahlxlnwyrmou\"}}") - .toObject(SelfHostedIntegrationRuntimeStatus.class); - Assertions.assertEquals("ncn", model.serviceRegion()); - Assertions.assertEquals("ehllizhceum", model.newerVersions().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SelfHostedIntegrationRuntimeStatus model = - new SelfHostedIntegrationRuntimeStatus() - .withNodes( - Arrays - .asList( - new SelfHostedIntegrationRuntimeNodeInner() - .withAdditionalProperties( - mapOf( - "nodeName", - "vyqlkjuvsmbmslzo", - "lastStartUpdateTime", - "2021-05-27T06:07:42Z", - "lastConnectTime", - "2021-03-25T16:48:43Z", - "capabilities", - JacksonAdapter - .createDefaultSerializerAdapter() - .deserialize("{}", Object.class, SerializerEncoding.JSON), - "hostServiceUri", - "gvmxnok", - "registerTime", - "2021-10-23T09:44:51Z", - "maxConcurrentJobs", - 1327984375, - "lastStopTime", - "2021-08-08T22:57:09Z", - "version", - "vcuartrhun", - "machineName", - "vwzdbpqvyb", - "versionStatus", - "bse", - "concurrentJobsLimit", - 924088824, - "lastEndUpdateTime", - "2021-10-29T14:16:23Z", - "expiryTime", - "2021-01-17T22:26:54Z", - "lastStartTime", - "2021-09-25T18:28:14Z", - "lastUpdateResult", - "Fail", - "isActiveDispatcher", - false, - "status", - "Offline")), - new SelfHostedIntegrationRuntimeNodeInner() - .withAdditionalProperties( - mapOf( - "nodeName", - "wagltbxoeeonqlnf", - "lastStartUpdateTime", - "2021-05-05T10:06:38Z", - "lastConnectTime", - "2021-04-01T19:27:08Z", - "capabilities", - JacksonAdapter - .createDefaultSerializerAdapter() - .deserialize("{}", Object.class, SerializerEncoding.JSON), - "hostServiceUri", - "vqdbpbhfck", - "registerTime", - "2021-02-25T01:40:45Z", - "maxConcurrentJobs", - 1621846817, - "lastStopTime", - "2021-09-05T10:18:10Z", - "version", - "lhkalehpavawugi", - "machineName", - "y", - "versionStatus", - "rcssbzhddubbnq", - "concurrentJobsLimit", - 495911185, - "lastEndUpdateTime", - "2021-08-05T18:56:25Z", - "expiryTime", - "2021-07-26T21:58:24Z", - "lastStartTime", - "2021-07-01T06:50:20Z", - "lastUpdateResult", - "Fail", - "isActiveDispatcher", - false, - "status", - "Offline")), - new SelfHostedIntegrationRuntimeNodeInner() - .withAdditionalProperties( - mapOf( - "nodeName", - "pnbonhpcz", - "lastStartUpdateTime", - "2021-08-08T10:34:07Z", - "lastConnectTime", - "2021-09-25T14:16:25Z", - "capabilities", - JacksonAdapter - .createDefaultSerializerAdapter() - .deserialize("{}", Object.class, SerializerEncoding.JSON), - "hostServiceUri", - "xqcsehch", - "registerTime", - "2021-11-19T22:08:29Z", - "maxConcurrentJobs", - 1731697979, - "lastStopTime", - "2021-07-07T19:48:07Z", - "version", - "aeuzanh", - "machineName", - "mktp", - "versionStatus", - "pqumqyjgydzulo", - "concurrentJobsLimit", - 1809951616, - "lastEndUpdateTime", - "2021-07-05T02:00:42Z", - "expiryTime", - "2021-09-07T18:47:04Z", - "lastStartTime", - "2020-12-23T17:30:48Z", - "lastUpdateResult", - "Fail", - "isActiveDispatcher", - true, - "status", - "InitializeFailed")))) - .withLinks(Arrays.asList(new LinkedIntegrationRuntime(), new LinkedIntegrationRuntime())) - .withServiceRegion("ncn") - .withNewerVersions(Arrays.asList("ehllizhceum", "qodkadppyibngql", "d")); - model = BinaryData.fromObject(model).toObject(SelfHostedIntegrationRuntimeStatus.class); - Assertions.assertEquals("ncn", model.serviceRegion()); - Assertions.assertEquals("ehllizhceum", model.newerVersions().get(0)); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SelfHostedIntegrationRuntimeStatusTypePropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SelfHostedIntegrationRuntimeStatusTypePropertiesTests.java deleted file mode 100644 index 18cb0fc4d426..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SelfHostedIntegrationRuntimeStatusTypePropertiesTests.java +++ /dev/null @@ -1,104 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.core.util.serializer.JacksonAdapter; -import com.azure.core.util.serializer.SerializerEncoding; -import com.azure.resourcemanager.synapse.fluent.models.SelfHostedIntegrationRuntimeNodeInner; -import com.azure.resourcemanager.synapse.fluent.models.SelfHostedIntegrationRuntimeStatusTypeProperties; -import com.azure.resourcemanager.synapse.models.LinkedIntegrationRuntime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SelfHostedIntegrationRuntimeStatusTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SelfHostedIntegrationRuntimeStatusTypeProperties model = - BinaryData - .fromString( - "{\"createTime\":\"2021-08-26T18:49:19Z\",\"taskQueueId\":\"vlihcvjd\",\"nodeCommunicationChannelEncryptionMode\":\"crjidhftukv\",\"internalChannelEncryption\":\"NotSet\",\"version\":\"wyojbfqzdkfnjyi\",\"nodes\":[{\"nodeName\":\"ratqxmbjro\",\"machineName\":\"zznval\",\"hostServiceUri\":\"rhuzgfxonjtpu\",\"status\":\"Offline\",\"capabilities\":{\"tzbpdbollgry\":\"pvti\",\"c\":\"qiuasigrows\",\"kqevadrmmw\":\"equygdjboqgrmtq\",\"iidisczskoswoqiq\":\"uawvcmjzk\"},\"versionStatus\":\"ugam\",\"version\":\"krrcoiisbamnpp\",\"registerTime\":\"2021-02-16T12:39:32Z\",\"lastConnectTime\":\"2021-01-26T11:50:54Z\",\"expiryTime\":\"2021-06-25T00:19:43Z\",\"lastStartTime\":\"2021-07-04T11:10:13Z\",\"lastStopTime\":\"2021-01-07T18:31:11Z\",\"lastUpdateResult\":\"Succeed\",\"lastStartUpdateTime\":\"2021-10-12T09:23:03Z\",\"lastEndUpdateTime\":\"2021-06-30T10:07:15Z\",\"isActiveDispatcher\":true,\"concurrentJobsLimit\":844556330,\"maxConcurrentJobs\":1620840016,\"\":{\"rx\":\"datahnepkpeti\"}}],\"scheduledUpdateDate\":\"2021-11-06T16:28:06Z\",\"updateDelayOffset\":\"xdukecpxd\",\"localTimeZoneOffset\":\"v\",\"capabilities\":{\"dblnsntrp\":\"tmmkosz\",\"fmhklbnld\":\"aqkiofkb\",\"hez\":\"vcb\"},\"serviceUrls\":[\"wusqx\"],\"autoUpdate\":\"On\",\"versionStatus\":\"brruyuuatv\",\"links\":[{\"name\":\"wcolbmxl\",\"subscriptionId\":\"w\",\"dataFactoryName\":\"cpahprzrvxhm\",\"dataFactoryLocation\":\"hocn\",\"createTime\":\"2021-11-27T20:51:03Z\"},{\"name\":\"jhngxnoq\",\"subscriptionId\":\"tdisnjevhdlmyd\",\"dataFactoryName\":\"whepfww\",\"dataFactoryLocation\":\"f\",\"createTime\":\"2020-12-22T04:54:50Z\"},{\"name\":\"xxhmwcdbc\",\"subscriptionId\":\"oikxkxhnegk\",\"dataFactoryName\":\"z\",\"dataFactoryLocation\":\"h\",\"createTime\":\"2021-03-01T09:51:56Z\"}],\"pushedVersion\":\"lvukaobrlb\",\"latestVersion\":\"snbagnchjhg\",\"autoUpdateETA\":\"2021-04-12T07:19:34Z\",\"serviceRegion\":\"wakywalhjymxcgq\",\"newerVersions\":[\"drclssoljome\",\"tfy\",\"nlbvgjcodkk\"],\"osType\":712624970,\"targetFramework\":1951024208}") - .toObject(SelfHostedIntegrationRuntimeStatusTypeProperties.class); - Assertions.assertEquals("wakywalhjymxcgq", model.serviceRegion()); - Assertions.assertEquals("drclssoljome", model.newerVersions().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SelfHostedIntegrationRuntimeStatusTypeProperties model = - new SelfHostedIntegrationRuntimeStatusTypeProperties() - .withNodes( - Arrays - .asList( - new SelfHostedIntegrationRuntimeNodeInner() - .withAdditionalProperties( - mapOf( - "nodeName", - "ratqxmbjro", - "lastStartUpdateTime", - "2021-10-12T09:23:03Z", - "lastConnectTime", - "2021-01-26T11:50:54Z", - "capabilities", - JacksonAdapter - .createDefaultSerializerAdapter() - .deserialize( - "{\"tzbpdbollgry\":\"pvti\",\"c\":\"qiuasigrows\",\"kqevadrmmw\":\"equygdjboqgrmtq\",\"iidisczskoswoqiq\":\"uawvcmjzk\"}", - Object.class, - SerializerEncoding.JSON), - "hostServiceUri", - "rhuzgfxonjtpu", - "registerTime", - "2021-02-16T12:39:32Z", - "maxConcurrentJobs", - 1620840016, - "lastStopTime", - "2021-01-07T18:31:11Z", - "version", - "krrcoiisbamnpp", - "machineName", - "zznval", - "versionStatus", - "ugam", - "concurrentJobsLimit", - 844556330, - "lastEndUpdateTime", - "2021-06-30T10:07:15Z", - "expiryTime", - "2021-06-25T00:19:43Z", - "lastStartTime", - "2021-07-04T11:10:13Z", - "lastUpdateResult", - "Succeed", - "isActiveDispatcher", - true, - "status", - "Offline")))) - .withLinks( - Arrays - .asList( - new LinkedIntegrationRuntime(), - new LinkedIntegrationRuntime(), - new LinkedIntegrationRuntime())) - .withServiceRegion("wakywalhjymxcgq") - .withNewerVersions(Arrays.asList("drclssoljome", "tfy", "nlbvgjcodkk")); - model = BinaryData.fromObject(model).toObject(SelfHostedIntegrationRuntimeStatusTypeProperties.class); - Assertions.assertEquals("wakywalhjymxcgq", model.serviceRegion()); - Assertions.assertEquals("drclssoljome", model.newerVersions().get(0)); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SelfHostedIntegrationRuntimeTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SelfHostedIntegrationRuntimeTests.java deleted file mode 100644 index de90d24953d4..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SelfHostedIntegrationRuntimeTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.LinkedIntegrationRuntimeType; -import com.azure.resourcemanager.synapse.models.SelfHostedIntegrationRuntime; -import org.junit.jupiter.api.Assertions; - -public final class SelfHostedIntegrationRuntimeTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SelfHostedIntegrationRuntime model = - BinaryData - .fromString( - "{\"type\":\"SelfHosted\",\"typeProperties\":{\"linkedInfo\":{\"authorizationType\":\"LinkedIntegrationRuntimeType\"}},\"description\":\"txeqi\",\"\":{\"sfayorpravkjoges\":\"datazdyi\",\"wynqxaekqsykvwj\":\"dataabnsmj\",\"spxklu\":\"dataqpkevmyltjc\",\"ytzpo\":\"datacclfgxannn\"}}") - .toObject(SelfHostedIntegrationRuntime.class); - Assertions.assertEquals("txeqi", model.description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SelfHostedIntegrationRuntime model = - new SelfHostedIntegrationRuntime() - .withDescription("txeqi") - .withLinkedInfo(new LinkedIntegrationRuntimeType()); - model = BinaryData.fromObject(model).toObject(SelfHostedIntegrationRuntime.class); - Assertions.assertEquals("txeqi", model.description()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SelfHostedIntegrationRuntimeTypePropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SelfHostedIntegrationRuntimeTypePropertiesTests.java deleted file mode 100644 index cf758012830c..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SelfHostedIntegrationRuntimeTypePropertiesTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.SelfHostedIntegrationRuntimeTypeProperties; -import com.azure.resourcemanager.synapse.models.LinkedIntegrationRuntimeType; - -public final class SelfHostedIntegrationRuntimeTypePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SelfHostedIntegrationRuntimeTypeProperties model = - BinaryData - .fromString("{\"linkedInfo\":{\"authorizationType\":\"LinkedIntegrationRuntimeType\"}}") - .toObject(SelfHostedIntegrationRuntimeTypeProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SelfHostedIntegrationRuntimeTypeProperties model = - new SelfHostedIntegrationRuntimeTypeProperties().withLinkedInfo(new LinkedIntegrationRuntimeType()); - model = BinaryData.fromObject(model).toObject(SelfHostedIntegrationRuntimeTypeProperties.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SensitivityLabelInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SensitivityLabelInnerTests.java deleted file mode 100644 index c083a79f99c3..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SensitivityLabelInnerTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.SensitivityLabelInner; -import com.azure.resourcemanager.synapse.models.SensitivityLabelRank; -import org.junit.jupiter.api.Assertions; - -public final class SensitivityLabelInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SensitivityLabelInner model = - BinaryData - .fromString( - "{\"properties\":{\"schemaName\":\"odko\",\"tableName\":\"bw\",\"columnName\":\"jhemms\",\"labelName\":\"dkcrodt\",\"labelId\":\"nfwjlfltkacjvefk\",\"informationType\":\"foakgg\",\"informationTypeId\":\"pagao\",\"isDisabled\":true,\"rank\":\"None\"},\"managedBy\":\"blylsyxkqjnsj\",\"id\":\"r\",\"name\":\"tiagx\",\"type\":\"dszue\"}") - .toObject(SensitivityLabelInner.class); - Assertions.assertEquals("dkcrodt", model.labelName()); - Assertions.assertEquals("nfwjlfltkacjvefk", model.labelId()); - Assertions.assertEquals("foakgg", model.informationType()); - Assertions.assertEquals("pagao", model.informationTypeId()); - Assertions.assertEquals(SensitivityLabelRank.NONE, model.rank()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SensitivityLabelInner model = - new SensitivityLabelInner() - .withLabelName("dkcrodt") - .withLabelId("nfwjlfltkacjvefk") - .withInformationType("foakgg") - .withInformationTypeId("pagao") - .withRank(SensitivityLabelRank.NONE); - model = BinaryData.fromObject(model).toObject(SensitivityLabelInner.class); - Assertions.assertEquals("dkcrodt", model.labelName()); - Assertions.assertEquals("nfwjlfltkacjvefk", model.labelId()); - Assertions.assertEquals("foakgg", model.informationType()); - Assertions.assertEquals("pagao", model.informationTypeId()); - Assertions.assertEquals(SensitivityLabelRank.NONE, model.rank()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SensitivityLabelListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SensitivityLabelListResultTests.java deleted file mode 100644 index 70da2178388a..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SensitivityLabelListResultTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.SensitivityLabelListResult; - -public final class SensitivityLabelListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SensitivityLabelListResult model = - BinaryData - .fromString( - "{\"value\":[{\"properties\":{\"schemaName\":\"irels\",\"tableName\":\"aenwabf\",\"columnName\":\"kl\",\"labelName\":\"xbjhwuaanozjosph\",\"labelId\":\"ulpjr\",\"informationType\":\"ag\",\"informationTypeId\":\"vimjwos\",\"isDisabled\":false,\"rank\":\"High\"},\"managedBy\":\"skfc\",\"id\":\"tq\",\"name\":\"miekkezzikhlyfjh\",\"type\":\"gqggebdunygae\"},{\"properties\":{\"schemaName\":\"bqfatpxllrxcyjmo\",\"tableName\":\"su\",\"columnName\":\"r\",\"labelName\":\"wdmjsjqbjhhyx\",\"labelId\":\"wlycoduhpkxkg\",\"informationType\":\"areqna\",\"informationTypeId\":\"qugjhkycube\",\"isDisabled\":false,\"rank\":\"High\"},\"managedBy\":\"fwqmzqalkrmn\",\"id\":\"i\",\"name\":\"pxacqqudfn\",\"type\":\"yxbaaabjyvayf\"},{\"properties\":{\"schemaName\":\"rzrtuzqogsex\",\"tableName\":\"vfdnwnwmewzsyyce\",\"columnName\":\"soibjudpfrx\",\"labelName\":\"thzvaytdwkqbrqu\",\"labelId\":\"axhexiilivp\",\"informationType\":\"iirqtd\",\"informationTypeId\":\"axoruzfgsquy\",\"isDisabled\":false,\"rank\":\"High\"},\"managedBy\":\"eptra\",\"id\":\"xje\",\"name\":\"wlwnwxuqlcv\",\"type\":\"dy\"}],\"nextLink\":\"tdooaoj\"}") - .toObject(SensitivityLabelListResult.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SensitivityLabelListResult model = new SensitivityLabelListResult(); - model = BinaryData.fromObject(model).toObject(SensitivityLabelListResult.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SensitivityLabelPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SensitivityLabelPropertiesTests.java deleted file mode 100644 index fa6c5b497efc..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SensitivityLabelPropertiesTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.SensitivityLabelProperties; -import com.azure.resourcemanager.synapse.models.SensitivityLabelRank; -import org.junit.jupiter.api.Assertions; - -public final class SensitivityLabelPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SensitivityLabelProperties model = - BinaryData - .fromString( - "{\"schemaName\":\"sbzkf\",\"tableName\":\"eyvpnqicvinvkj\",\"columnName\":\"dxrbuukzcle\",\"labelName\":\"hmlwpaztzpo\",\"labelId\":\"cckwyfzqwhxxbu\",\"informationType\":\"a\",\"informationTypeId\":\"feqztppriol\",\"isDisabled\":true,\"rank\":\"High\"}") - .toObject(SensitivityLabelProperties.class); - Assertions.assertEquals("hmlwpaztzpo", model.labelName()); - Assertions.assertEquals("cckwyfzqwhxxbu", model.labelId()); - Assertions.assertEquals("a", model.informationType()); - Assertions.assertEquals("feqztppriol", model.informationTypeId()); - Assertions.assertEquals(SensitivityLabelRank.HIGH, model.rank()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SensitivityLabelProperties model = - new SensitivityLabelProperties() - .withLabelName("hmlwpaztzpo") - .withLabelId("cckwyfzqwhxxbu") - .withInformationType("a") - .withInformationTypeId("feqztppriol") - .withRank(SensitivityLabelRank.HIGH); - model = BinaryData.fromObject(model).toObject(SensitivityLabelProperties.class); - Assertions.assertEquals("hmlwpaztzpo", model.labelName()); - Assertions.assertEquals("cckwyfzqwhxxbu", model.labelId()); - Assertions.assertEquals("a", model.informationType()); - Assertions.assertEquals("feqztppriol", model.informationTypeId()); - Assertions.assertEquals(SensitivityLabelRank.HIGH, model.rank()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SensitivityLabelUpdateInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SensitivityLabelUpdateInnerTests.java deleted file mode 100644 index cae1227a35db..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SensitivityLabelUpdateInnerTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.SensitivityLabelInner; -import com.azure.resourcemanager.synapse.fluent.models.SensitivityLabelUpdateInner; -import com.azure.resourcemanager.synapse.models.SensitivityLabelUpdateKind; -import org.junit.jupiter.api.Assertions; - -public final class SensitivityLabelUpdateInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SensitivityLabelUpdateInner model = - BinaryData - .fromString( - "{\"properties\":{\"op\":\"remove\",\"schema\":\"qouicybxarzgsz\",\"table\":\"foxciq\",\"column\":\"p\",\"sensitivityLabel\":{\"managedBy\":\"mciodhkhazxkhn\",\"id\":\"bon\",\"name\":\"wntoegokdwbwh\",\"type\":\"szzcmrvexztv\"}},\"id\":\"t\",\"name\":\"gsfraoyzkoow\",\"type\":\"lmnguxaw\"}") - .toObject(SensitivityLabelUpdateInner.class); - Assertions.assertEquals(SensitivityLabelUpdateKind.REMOVE, model.op()); - Assertions.assertEquals("qouicybxarzgsz", model.schema()); - Assertions.assertEquals("foxciq", model.table()); - Assertions.assertEquals("p", model.column()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SensitivityLabelUpdateInner model = - new SensitivityLabelUpdateInner() - .withOp(SensitivityLabelUpdateKind.REMOVE) - .withSchema("qouicybxarzgsz") - .withTable("foxciq") - .withColumn("p") - .withSensitivityLabel(new SensitivityLabelInner()); - model = BinaryData.fromObject(model).toObject(SensitivityLabelUpdateInner.class); - Assertions.assertEquals(SensitivityLabelUpdateKind.REMOVE, model.op()); - Assertions.assertEquals("qouicybxarzgsz", model.schema()); - Assertions.assertEquals("foxciq", model.table()); - Assertions.assertEquals("p", model.column()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SensitivityLabelUpdateListTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SensitivityLabelUpdateListTests.java deleted file mode 100644 index 887d2e45ea56..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SensitivityLabelUpdateListTests.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.SensitivityLabelUpdateInner; -import com.azure.resourcemanager.synapse.models.SensitivityLabelUpdateKind; -import com.azure.resourcemanager.synapse.models.SensitivityLabelUpdateList; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class SensitivityLabelUpdateListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SensitivityLabelUpdateList model = - BinaryData - .fromString( - "{\"operations\":[{\"properties\":{\"op\":\"set\",\"schema\":\"mncwsobqwcsdb\",\"table\":\"wdcfhucqdpfuv\",\"column\":\"lsbjjcanvxbv\"},\"id\":\"udutnco\",\"name\":\"mr\",\"type\":\"xqtvcofu\"},{\"properties\":{\"op\":\"set\",\"schema\":\"vkg\",\"table\":\"u\",\"column\":\"gdknnqv\"},\"id\":\"znqntoru\",\"name\":\"sgsahmkycgr\",\"type\":\"uwjuetaeburuvdmo\"},{\"properties\":{\"op\":\"set\",\"schema\":\"zlxwabmqoefkifr\",\"table\":\"tpuqujmq\",\"column\":\"gkfbtndoaong\"},\"id\":\"cn\",\"name\":\"ujitcjedftww\",\"type\":\"ezkojvdcp\"}]}") - .toObject(SensitivityLabelUpdateList.class); - Assertions.assertEquals(SensitivityLabelUpdateKind.SET, model.operations().get(0).op()); - Assertions.assertEquals("mncwsobqwcsdb", model.operations().get(0).schema()); - Assertions.assertEquals("wdcfhucqdpfuv", model.operations().get(0).table()); - Assertions.assertEquals("lsbjjcanvxbv", model.operations().get(0).column()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SensitivityLabelUpdateList model = - new SensitivityLabelUpdateList() - .withOperations( - Arrays - .asList( - new SensitivityLabelUpdateInner() - .withOp(SensitivityLabelUpdateKind.SET) - .withSchema("mncwsobqwcsdb") - .withTable("wdcfhucqdpfuv") - .withColumn("lsbjjcanvxbv"), - new SensitivityLabelUpdateInner() - .withOp(SensitivityLabelUpdateKind.SET) - .withSchema("vkg") - .withTable("u") - .withColumn("gdknnqv"), - new SensitivityLabelUpdateInner() - .withOp(SensitivityLabelUpdateKind.SET) - .withSchema("zlxwabmqoefkifr") - .withTable("tpuqujmq") - .withColumn("gkfbtndoaong"))); - model = BinaryData.fromObject(model).toObject(SensitivityLabelUpdateList.class); - Assertions.assertEquals(SensitivityLabelUpdateKind.SET, model.operations().get(0).op()); - Assertions.assertEquals("mncwsobqwcsdb", model.operations().get(0).schema()); - Assertions.assertEquals("wdcfhucqdpfuv", model.operations().get(0).table()); - Assertions.assertEquals("lsbjjcanvxbv", model.operations().get(0).column()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SensitivityLabelUpdatePropertiesInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SensitivityLabelUpdatePropertiesInnerTests.java deleted file mode 100644 index 26c8dd02815b..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SensitivityLabelUpdatePropertiesInnerTests.java +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.SensitivityLabelInner; -import com.azure.resourcemanager.synapse.fluent.models.SensitivityLabelUpdatePropertiesInner; -import com.azure.resourcemanager.synapse.models.SensitivityLabelRank; -import com.azure.resourcemanager.synapse.models.SensitivityLabelUpdateKind; -import org.junit.jupiter.api.Assertions; - -public final class SensitivityLabelUpdatePropertiesInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SensitivityLabelUpdatePropertiesInner model = - BinaryData - .fromString( - "{\"op\":\"set\",\"schema\":\"ldsyuuximerqfob\",\"table\":\"yznkby\",\"column\":\"utwpfhp\",\"sensitivityLabel\":{\"properties\":{\"schemaName\":\"r\",\"tableName\":\"dsnfdsdoakgtdl\",\"columnName\":\"kzevdlhewpusds\",\"labelName\":\"wvogvbbejdc\",\"labelId\":\"qqmoaku\",\"informationType\":\"m\",\"informationTypeId\":\"rwr\",\"isDisabled\":true,\"rank\":\"Critical\"},\"managedBy\":\"enuuzkopbm\",\"id\":\"nrfdw\",\"name\":\"yuhhziu\",\"type\":\"efozbhdms\"}}") - .toObject(SensitivityLabelUpdatePropertiesInner.class); - Assertions.assertEquals(SensitivityLabelUpdateKind.SET, model.op()); - Assertions.assertEquals("ldsyuuximerqfob", model.schema()); - Assertions.assertEquals("yznkby", model.table()); - Assertions.assertEquals("utwpfhp", model.column()); - Assertions.assertEquals("wvogvbbejdc", model.sensitivityLabel().labelName()); - Assertions.assertEquals("qqmoaku", model.sensitivityLabel().labelId()); - Assertions.assertEquals("m", model.sensitivityLabel().informationType()); - Assertions.assertEquals("rwr", model.sensitivityLabel().informationTypeId()); - Assertions.assertEquals(SensitivityLabelRank.CRITICAL, model.sensitivityLabel().rank()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SensitivityLabelUpdatePropertiesInner model = - new SensitivityLabelUpdatePropertiesInner() - .withOp(SensitivityLabelUpdateKind.SET) - .withSchema("ldsyuuximerqfob") - .withTable("yznkby") - .withColumn("utwpfhp") - .withSensitivityLabel( - new SensitivityLabelInner() - .withLabelName("wvogvbbejdc") - .withLabelId("qqmoaku") - .withInformationType("m") - .withInformationTypeId("rwr") - .withRank(SensitivityLabelRank.CRITICAL)); - model = BinaryData.fromObject(model).toObject(SensitivityLabelUpdatePropertiesInner.class); - Assertions.assertEquals(SensitivityLabelUpdateKind.SET, model.op()); - Assertions.assertEquals("ldsyuuximerqfob", model.schema()); - Assertions.assertEquals("yznkby", model.table()); - Assertions.assertEquals("utwpfhp", model.column()); - Assertions.assertEquals("wvogvbbejdc", model.sensitivityLabel().labelName()); - Assertions.assertEquals("qqmoaku", model.sensitivityLabel().labelId()); - Assertions.assertEquals("m", model.sensitivityLabel().informationType()); - Assertions.assertEquals("rwr", model.sensitivityLabel().informationTypeId()); - Assertions.assertEquals(SensitivityLabelRank.CRITICAL, model.sensitivityLabel().rank()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ServerUsageInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ServerUsageInnerTests.java deleted file mode 100644 index 053ac498369b..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ServerUsageInnerTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.ServerUsageInner; - -public final class ServerUsageInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ServerUsageInner model = - BinaryData - .fromString( - "{\"name\":\"cojocqwogfnzjvus\",\"resourceName\":\"ld\",\"displayName\":\"zuxylfsbtkadpyso\",\"currentValue\":86.65607552642484,\"limit\":7.676130945689518,\"unit\":\"grjqctojcmi\",\"nextResetTime\":\"2021-11-09T20:08:20Z\"}") - .toObject(ServerUsageInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ServerUsageInner model = new ServerUsageInner(); - model = BinaryData.fromObject(model).toObject(ServerUsageInner.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ServerUsageListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ServerUsageListResultTests.java deleted file mode 100644 index f831e34acdd8..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/ServerUsageListResultTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.ServerUsageInner; -import com.azure.resourcemanager.synapse.models.ServerUsageListResult; -import java.util.Arrays; - -public final class ServerUsageListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ServerUsageListResult model = - BinaryData - .fromString( - "{\"value\":[{\"name\":\"tdhlfkqo\",\"resourceName\":\"ykvgtrdcnifmz\",\"displayName\":\"dymbrny\",\"currentValue\":46.451447996054554,\"limit\":83.52714933447804,\"unit\":\"wgck\",\"nextResetTime\":\"2021-10-29T18:48:32Z\"},{\"name\":\"vdff\",\"resourceName\":\"afqr\",\"displayName\":\"daspavehhrvk\",\"currentValue\":1.1838483598822447,\"limit\":42.47072653885069,\"unit\":\"hcxgkmoyx\",\"nextResetTime\":\"2021-01-10T03:49:41Z\"},{\"name\":\"ibhmfdn\",\"resourceName\":\"ydvfvfcjnae\",\"displayName\":\"srvhmgorffuki\",\"currentValue\":94.64225623949771,\"limit\":84.35615092688725,\"unit\":\"plef\",\"nextResetTime\":\"2021-07-03T18:39:05Z\"},{\"name\":\"ilcbtgnhnzeyqxtj\",\"resourceName\":\"zqlqhyc\",\"displayName\":\"odggx\",\"currentValue\":8.822766264266713,\"limit\":65.97138391291614,\"unit\":\"knlrariaawiuagy\",\"nextResetTime\":\"2021-09-15T12:14:34Z\"}],\"nextLink\":\"bylyrfgia\"}") - .toObject(ServerUsageListResult.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ServerUsageListResult model = - new ServerUsageListResult() - .withValue( - Arrays - .asList( - new ServerUsageInner(), - new ServerUsageInner(), - new ServerUsageInner(), - new ServerUsageInner())); - model = BinaryData.fromObject(model).toObject(ServerUsageListResult.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SkuDescriptionInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SkuDescriptionInnerTests.java deleted file mode 100644 index 305a5dbf0e68..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SkuDescriptionInnerTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.SkuDescriptionInner; - -public final class SkuDescriptionInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SkuDescriptionInner model = - BinaryData - .fromString( - "{\"resourceType\":\"jvlgfggcvkyyliz\",\"name\":\"bjpsfxsfuztlvtm\",\"size\":\"gbwidqlvh\",\"locations\":[\"veo\",\"i\",\"rvjfnmjmvlw\",\"z\"],\"locationInfo\":[{\"location\":\"lkujrllfojui\",\"zones\":[\"uuyjucejikz\",\"eovvtzej\",\"tjklntikyjuzk\"]},{\"location\":\"bqzolxr\",\"zones\":[\"qjwt\",\"htgv\",\"zpcrrkolawj\"]},{\"location\":\"jsmwrokc\",\"zones\":[\"zzzwy\",\"afitlhguynuchlg\",\"ltxdwhmozu\",\"gzvlnsnn\"]},{\"location\":\"zfpafolpymwamxqz\",\"zones\":[\"p\",\"dphtv\",\"ulajvlejchc\",\"rlzk\"]}],\"restrictions\":[\"datalanrupdwvnp\",\"datacnzqtpjhmqr\",\"datav\",\"datahlaiwd\"]}") - .toObject(SkuDescriptionInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SkuDescriptionInner model = new SkuDescriptionInner(); - model = BinaryData.fromObject(model).toObject(SkuDescriptionInner.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SkuDescriptionListTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SkuDescriptionListTests.java deleted file mode 100644 index d2c3b9ffa95a..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SkuDescriptionListTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.SkuDescriptionList; - -public final class SkuDescriptionListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SkuDescriptionList model = - BinaryData - .fromString( - "{\"value\":[{\"resourceType\":\"zlwhhmemhooclu\",\"name\":\"pqmem\",\"size\":\"jk\",\"locations\":[\"kyujxsglhsrrr\",\"ejylmbkzu\"],\"locationInfo\":[],\"restrictions\":[\"datafihotj\"]},{\"resourceType\":\"lpxuzzjgnrefq\",\"name\":\"qotoihiqakydiwfb\",\"size\":\"wpzdqtvhcspo\",\"locations\":[\"axsipietgb\",\"bjfu\",\"bmoichd\",\"pnfpubntnbat\"],\"locationInfo\":[],\"restrictions\":[\"dataowsaaelcattcjuh\",\"datalrvkmjc\"]}]}") - .toObject(SkuDescriptionList.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SkuDescriptionList model = new SkuDescriptionList(); - model = BinaryData.fromObject(model).toObject(SkuDescriptionList.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SkuLocationInfoItemTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SkuLocationInfoItemTests.java deleted file mode 100644 index cecce4be835b..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SkuLocationInfoItemTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.SkuLocationInfoItem; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class SkuLocationInfoItemTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SkuLocationInfoItem model = - BinaryData - .fromString("{\"location\":\"xsmlz\",\"zones\":[\"dtxetlgydlh\",\"vlnnpx\",\"b\"]}") - .toObject(SkuLocationInfoItem.class); - Assertions.assertEquals("xsmlz", model.location()); - Assertions.assertEquals("dtxetlgydlh", model.zones().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SkuLocationInfoItem model = - new SkuLocationInfoItem().withLocation("xsmlz").withZones(Arrays.asList("dtxetlgydlh", "vlnnpx", "b")); - model = BinaryData.fromObject(model).toObject(SkuLocationInfoItem.class); - Assertions.assertEquals("xsmlz", model.location()); - Assertions.assertEquals("dtxetlgydlh", model.zones().get(0)); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SkuTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SkuTests.java deleted file mode 100644 index 083df91469ef..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SkuTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.Sku; -import org.junit.jupiter.api.Assertions; - -public final class SkuTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - Sku model = - BinaryData - .fromString("{\"tier\":\"spnqzahmgkb\",\"name\":\"yydhibnuqqk\",\"capacity\":1850827957}") - .toObject(Sku.class); - Assertions.assertEquals("spnqzahmgkb", model.tier()); - Assertions.assertEquals("yydhibnuqqk", model.name()); - Assertions.assertEquals(1850827957, model.capacity()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Sku model = new Sku().withTier("spnqzahmgkb").withName("yydhibnuqqk").withCapacity(1850827957); - model = BinaryData.fromObject(model).toObject(Sku.class); - Assertions.assertEquals("spnqzahmgkb", model.tier()); - Assertions.assertEquals("yydhibnuqqk", model.name()); - Assertions.assertEquals(1850827957, model.capacity()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SparkConfigPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SparkConfigPropertiesTests.java deleted file mode 100644 index 43eeedb3ccdc..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SparkConfigPropertiesTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.ConfigurationType; -import com.azure.resourcemanager.synapse.models.SparkConfigProperties; -import org.junit.jupiter.api.Assertions; - -public final class SparkConfigPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SparkConfigProperties model = - BinaryData - .fromString( - "{\"time\":\"2021-10-16T17:09:06Z\",\"content\":\"tmzlbiojlv\",\"filename\":\"rbbpneqvcwwyy\",\"configurationType\":\"Artifact\"}") - .toObject(SparkConfigProperties.class); - Assertions.assertEquals("tmzlbiojlv", model.content()); - Assertions.assertEquals("rbbpneqvcwwyy", model.filename()); - Assertions.assertEquals(ConfigurationType.ARTIFACT, model.configurationType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SparkConfigProperties model = - new SparkConfigProperties() - .withContent("tmzlbiojlv") - .withFilename("rbbpneqvcwwyy") - .withConfigurationType(ConfigurationType.ARTIFACT); - model = BinaryData.fromObject(model).toObject(SparkConfigProperties.class); - Assertions.assertEquals("tmzlbiojlv", model.content()); - Assertions.assertEquals("rbbpneqvcwwyy", model.filename()); - Assertions.assertEquals(ConfigurationType.ARTIFACT, model.configurationType()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SparkConfigurationInfoTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SparkConfigurationInfoTests.java deleted file mode 100644 index f1c2e891a65e..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SparkConfigurationInfoTests.java +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.SparkConfigurationInfo; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SparkConfigurationInfoTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SparkConfigurationInfo model = - BinaryData - .fromString( - "{\"description\":\"enuygbq\",\"configs\":{\"guaucmfdjwnla\":\"qekewvnqvcd\",\"ikczvvitacgxmf\":\"punj\",\"sjgqrsxyp\":\"sserxhtvsoxhlwn\",\"yuel\":\"uuuybnchrsziz\"},\"annotations\":[\"ndnbfqy\"],\"notes\":\"agfl\",\"createdBy\":\"gm\",\"created\":\"2021-02-22T20:12:59Z\",\"configMergeRule\":{\"pigqfusuckzmkw\":\"zjmucftbyrplroh\",\"jnhgwydyyn\":\"lsnoxaxmqeqalh\",\"ta\":\"svkhgbv\"}}") - .toObject(SparkConfigurationInfo.class); - Assertions.assertEquals("enuygbq", model.description()); - Assertions.assertEquals("qekewvnqvcd", model.configs().get("guaucmfdjwnla")); - Assertions.assertEquals("ndnbfqy", model.annotations().get(0)); - Assertions.assertEquals("agfl", model.notes()); - Assertions.assertEquals("gm", model.createdBy()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-22T20:12:59Z"), model.created()); - Assertions.assertEquals("zjmucftbyrplroh", model.configMergeRule().get("pigqfusuckzmkw")); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SparkConfigurationInfo model = - new SparkConfigurationInfo() - .withDescription("enuygbq") - .withConfigs( - mapOf( - "guaucmfdjwnla", - "qekewvnqvcd", - "ikczvvitacgxmf", - "punj", - "sjgqrsxyp", - "sserxhtvsoxhlwn", - "yuel", - "uuuybnchrsziz")) - .withAnnotations(Arrays.asList("ndnbfqy")) - .withNotes("agfl") - .withCreatedBy("gm") - .withCreated(OffsetDateTime.parse("2021-02-22T20:12:59Z")) - .withConfigMergeRule( - mapOf("pigqfusuckzmkw", "zjmucftbyrplroh", "jnhgwydyyn", "lsnoxaxmqeqalh", "ta", "svkhgbv")); - model = BinaryData.fromObject(model).toObject(SparkConfigurationInfo.class); - Assertions.assertEquals("enuygbq", model.description()); - Assertions.assertEquals("qekewvnqvcd", model.configs().get("guaucmfdjwnla")); - Assertions.assertEquals("ndnbfqy", model.annotations().get(0)); - Assertions.assertEquals("agfl", model.notes()); - Assertions.assertEquals("gm", model.createdBy()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-22T20:12:59Z"), model.created()); - Assertions.assertEquals("zjmucftbyrplroh", model.configMergeRule().get("pigqfusuckzmkw")); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SparkConfigurationListResponseTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SparkConfigurationListResponseTests.java deleted file mode 100644 index 6694ea3e1c05..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SparkConfigurationListResponseTests.java +++ /dev/null @@ -1,89 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.SparkConfigurationResourceInner; -import com.azure.resourcemanager.synapse.models.SparkConfigurationListResponse; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SparkConfigurationListResponseTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SparkConfigurationListResponse model = - BinaryData - .fromString( - "{\"value\":[{\"properties\":{\"description\":\"fdlpukhpyr\",\"configs\":{},\"annotations\":[],\"notes\":\"zjcpeogk\",\"createdBy\":\"mgbro\",\"created\":\"2021-10-26T06:11:35Z\",\"configMergeRule\":{}},\"etag\":\"hfhpfp\",\"id\":\"zjzoywjxhpdul\",\"name\":\"ntacn\",\"type\":\"qwtehtuevr\"},{\"properties\":{\"description\":\"ljyoogwx\",\"configs\":{},\"annotations\":[],\"notes\":\"duugwbsre\",\"createdBy\":\"fqkfuarenl\",\"created\":\"2021-11-15T21:51:51Z\",\"configMergeRule\":{}},\"etag\":\"lnvnafvvkyfedev\",\"id\":\"bo\",\"name\":\"lcqxypokk\",\"type\":\"minqcym\"},{\"properties\":{\"description\":\"ngnbdxxew\",\"configs\":{},\"annotations\":[],\"notes\":\"nvudbchaqdtvqecr\",\"createdBy\":\"tmxxdtddmflhuy\",\"created\":\"2021-10-16T00:35:13Z\",\"configMergeRule\":{}},\"etag\":\"zna\",\"id\":\"xbannovvoxc\",\"name\":\"ytprwnwvroev\",\"type\":\"tlyo\"},{\"properties\":{\"description\":\"rrouuxvnsasbcry\",\"configs\":{},\"annotations\":[],\"notes\":\"izrxklob\",\"createdBy\":\"nazpmk\",\"created\":\"2021-01-20T07:51:57Z\",\"configMergeRule\":{}},\"etag\":\"vfxzopjh\",\"id\":\"zxlioh\",\"name\":\"d\",\"type\":\"dtfgxqbawpcbb\"}],\"nextLink\":\"qcy\"}") - .toObject(SparkConfigurationListResponse.class); - Assertions.assertEquals("fdlpukhpyr", model.value().get(0).description()); - Assertions.assertEquals("zjcpeogk", model.value().get(0).notes()); - Assertions.assertEquals("mgbro", model.value().get(0).createdBy()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-26T06:11:35Z"), model.value().get(0).created()); - Assertions.assertEquals("qcy", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SparkConfigurationListResponse model = - new SparkConfigurationListResponse() - .withValue( - Arrays - .asList( - new SparkConfigurationResourceInner() - .withDescription("fdlpukhpyr") - .withConfigs(mapOf()) - .withAnnotations(Arrays.asList()) - .withNotes("zjcpeogk") - .withCreatedBy("mgbro") - .withCreated(OffsetDateTime.parse("2021-10-26T06:11:35Z")) - .withConfigMergeRule(mapOf()), - new SparkConfigurationResourceInner() - .withDescription("ljyoogwx") - .withConfigs(mapOf()) - .withAnnotations(Arrays.asList()) - .withNotes("duugwbsre") - .withCreatedBy("fqkfuarenl") - .withCreated(OffsetDateTime.parse("2021-11-15T21:51:51Z")) - .withConfigMergeRule(mapOf()), - new SparkConfigurationResourceInner() - .withDescription("ngnbdxxew") - .withConfigs(mapOf()) - .withAnnotations(Arrays.asList()) - .withNotes("nvudbchaqdtvqecr") - .withCreatedBy("tmxxdtddmflhuy") - .withCreated(OffsetDateTime.parse("2021-10-16T00:35:13Z")) - .withConfigMergeRule(mapOf()), - new SparkConfigurationResourceInner() - .withDescription("rrouuxvnsasbcry") - .withConfigs(mapOf()) - .withAnnotations(Arrays.asList()) - .withNotes("izrxklob") - .withCreatedBy("nazpmk") - .withCreated(OffsetDateTime.parse("2021-01-20T07:51:57Z")) - .withConfigMergeRule(mapOf()))) - .withNextLink("qcy"); - model = BinaryData.fromObject(model).toObject(SparkConfigurationListResponse.class); - Assertions.assertEquals("fdlpukhpyr", model.value().get(0).description()); - Assertions.assertEquals("zjcpeogk", model.value().get(0).notes()); - Assertions.assertEquals("mgbro", model.value().get(0).createdBy()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-26T06:11:35Z"), model.value().get(0).created()); - Assertions.assertEquals("qcy", model.nextLink()); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SparkConfigurationResourceInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SparkConfigurationResourceInnerTests.java deleted file mode 100644 index 9a69049b7ca0..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SparkConfigurationResourceInnerTests.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.SparkConfigurationResourceInner; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SparkConfigurationResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SparkConfigurationResourceInner model = - BinaryData - .fromString( - "{\"properties\":{\"description\":\"qzeqyjleziunjxdf\",\"configs\":{\"mlbnseq\":\"ntkwcegy\",\"m\":\"cjjvpilguooqja\",\"hrtdtpdelq\":\"itgueiookjbs\",\"vcjkgd\":\"cslmotoebnfxo\"},\"annotations\":[\"zft\",\"ejwabmdujtmvco\",\"excmjurbuhhl\",\"yqltqsro\"],\"notes\":\"uwkffdjktsysid\",\"createdBy\":\"c\",\"created\":\"2021-11-11T21:46:56Z\",\"configMergeRule\":{\"ogsf\":\"fuijtkbus\"}},\"etag\":\"ayiansharujtji\",\"id\":\"xfz\",\"name\":\"j\",\"type\":\"ttvwkpqh\"}") - .toObject(SparkConfigurationResourceInner.class); - Assertions.assertEquals("qzeqyjleziunjxdf", model.description()); - Assertions.assertEquals("ntkwcegy", model.configs().get("mlbnseq")); - Assertions.assertEquals("zft", model.annotations().get(0)); - Assertions.assertEquals("uwkffdjktsysid", model.notes()); - Assertions.assertEquals("c", model.createdBy()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-11T21:46:56Z"), model.created()); - Assertions.assertEquals("fuijtkbus", model.configMergeRule().get("ogsf")); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SparkConfigurationResourceInner model = - new SparkConfigurationResourceInner() - .withDescription("qzeqyjleziunjxdf") - .withConfigs( - mapOf( - "mlbnseq", - "ntkwcegy", - "m", - "cjjvpilguooqja", - "hrtdtpdelq", - "itgueiookjbs", - "vcjkgd", - "cslmotoebnfxo")) - .withAnnotations(Arrays.asList("zft", "ejwabmdujtmvco", "excmjurbuhhl", "yqltqsro")) - .withNotes("uwkffdjktsysid") - .withCreatedBy("c") - .withCreated(OffsetDateTime.parse("2021-11-11T21:46:56Z")) - .withConfigMergeRule(mapOf("ogsf", "fuijtkbus")); - model = BinaryData.fromObject(model).toObject(SparkConfigurationResourceInner.class); - Assertions.assertEquals("qzeqyjleziunjxdf", model.description()); - Assertions.assertEquals("ntkwcegy", model.configs().get("mlbnseq")); - Assertions.assertEquals("zft", model.annotations().get(0)); - Assertions.assertEquals("uwkffdjktsysid", model.notes()); - Assertions.assertEquals("c", model.createdBy()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-11T21:46:56Z"), model.created()); - Assertions.assertEquals("fuijtkbus", model.configMergeRule().get("ogsf")); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SparkConfigurationsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SparkConfigurationsGetWithResponseMockTests.java deleted file mode 100644 index 31cdc2c0b696..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SparkConfigurationsGetWithResponseMockTests.java +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.SparkConfigurationResource; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SparkConfigurationsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"description\":\"vavucg\",\"configs\":{\"qpmnu\":\"ua\",\"wuzdmh\":\"zhrchx\"},\"annotations\":[\"vivjm\",\"mlitqdsj\"],\"notes\":\"dvisco\",\"createdBy\":\"xbriifefn\",\"created\":\"2021-04-05T15:00:08Z\",\"configMergeRule\":{\"eailwdqmqf\":\"qoemwsi\",\"kd\":\"deotmfx\",\"gnamkuuyiu\":\"g\",\"hdcfm\":\"uafixlxicwgp\"}},\"etag\":\"cfasfodropal\",\"id\":\"ngtwyuskwgq\",\"name\":\"ntaumd\",\"type\":\"cjlvkrkegtyc\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - SparkConfigurationResource response = - manager - .sparkConfigurations() - .getWithResponse("tonvhgnhtmeplhb", "jba", "mumm", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("vavucg", response.description()); - Assertions.assertEquals("ua", response.configs().get("qpmnu")); - Assertions.assertEquals("vivjm", response.annotations().get(0)); - Assertions.assertEquals("dvisco", response.notes()); - Assertions.assertEquals("xbriifefn", response.createdBy()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-05T15:00:08Z"), response.created()); - Assertions.assertEquals("qoemwsi", response.configMergeRule().get("eailwdqmqf")); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SparkConfigurationsOperationsListByWorkspaceMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SparkConfigurationsOperationsListByWorkspaceMockTests.java deleted file mode 100644 index 37894ee25a9f..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SparkConfigurationsOperationsListByWorkspaceMockTests.java +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.SparkConfigurationResource; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SparkConfigurationsOperationsListByWorkspaceMockTests { - @Test - public void testListByWorkspace() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"properties\":{\"description\":\"abm\",\"configs\":{\"xduetbapfc\":\"s\",\"bpxya\":\"ewxtrl\",\"yegbthms\":\"kjpirgzxvbczw\"},\"annotations\":[\"jbuiggru\",\"ozfvualjt\",\"oivsdwsngkrf\"],\"notes\":\"sc\",\"createdBy\":\"akmhz\",\"created\":\"2021-01-22T22:10:09Z\",\"configMergeRule\":{\"nnx\":\"fbwih\"}},\"etag\":\"vynuqqkotauratn\",\"id\":\"cppfzsclefyrle\",\"name\":\"ndqlmfdggnbbuy\",\"type\":\"wovvv\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager - .sparkConfigurationsOperations() - .listByWorkspace("uppiyxlzm", "yddeeqz", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("abm", response.iterator().next().description()); - Assertions.assertEquals("s", response.iterator().next().configs().get("xduetbapfc")); - Assertions.assertEquals("jbuiggru", response.iterator().next().annotations().get(0)); - Assertions.assertEquals("sc", response.iterator().next().notes()); - Assertions.assertEquals("akmhz", response.iterator().next().createdBy()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-22T22:10:09Z"), response.iterator().next().created()); - Assertions.assertEquals("fbwih", response.iterator().next().configMergeRule().get("nnx")); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolColumnInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolColumnInnerTests.java deleted file mode 100644 index a06516f914da..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolColumnInnerTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.SqlPoolColumnInner; -import com.azure.resourcemanager.synapse.models.ColumnDataType; -import org.junit.jupiter.api.Assertions; - -public final class SqlPoolColumnInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SqlPoolColumnInner model = - BinaryData - .fromString( - "{\"properties\":{\"columnType\":\"uniqueidentifier\",\"isComputed\":true},\"id\":\"hftqsxhqxujxukn\",\"name\":\"xdigrjg\",\"type\":\"ufzdmsyq\"}") - .toObject(SqlPoolColumnInner.class); - Assertions.assertEquals(ColumnDataType.UNIQUEIDENTIFIER, model.columnType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlPoolColumnInner model = new SqlPoolColumnInner().withColumnType(ColumnDataType.UNIQUEIDENTIFIER); - model = BinaryData.fromObject(model).toObject(SqlPoolColumnInner.class); - Assertions.assertEquals(ColumnDataType.UNIQUEIDENTIFIER, model.columnType()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolColumnListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolColumnListResultTests.java deleted file mode 100644 index 59177fbe4c97..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolColumnListResultTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.SqlPoolColumnListResult; - -public final class SqlPoolColumnListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SqlPoolColumnListResult model = - BinaryData - .fromString( - "{\"value\":[{\"properties\":{\"columnType\":\"date\",\"isComputed\":false},\"id\":\"rmbzo\",\"name\":\"okixrjqcir\",\"type\":\"zpfrla\"},{\"properties\":{\"columnType\":\"bit\",\"isComputed\":false},\"id\":\"oiindfpwpjy\",\"name\":\"wbtlhflsjcdh\",\"type\":\"zfjvfbgofe\"},{\"properties\":{\"columnType\":\"image\",\"isComputed\":true},\"id\":\"mqhldvrii\",\"name\":\"ojnal\",\"type\":\"hfkvtvsexsowuel\"}],\"nextLink\":\"hhahhxvrhmzkwpjg\"}") - .toObject(SqlPoolColumnListResult.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlPoolColumnListResult model = new SqlPoolColumnListResult(); - model = BinaryData.fromObject(model).toObject(SqlPoolColumnListResult.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolColumnPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolColumnPropertiesTests.java deleted file mode 100644 index 58fb63ee2390..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolColumnPropertiesTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.SqlPoolColumnProperties; -import com.azure.resourcemanager.synapse.models.ColumnDataType; -import org.junit.jupiter.api.Assertions; - -public final class SqlPoolColumnPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SqlPoolColumnProperties model = - BinaryData - .fromString("{\"columnType\":\"tinyint\",\"isComputed\":true}") - .toObject(SqlPoolColumnProperties.class); - Assertions.assertEquals(ColumnDataType.TINYINT, model.columnType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlPoolColumnProperties model = new SqlPoolColumnProperties().withColumnType(ColumnDataType.TINYINT); - model = BinaryData.fromObject(model).toObject(SqlPoolColumnProperties.class); - Assertions.assertEquals(ColumnDataType.TINYINT, model.columnType()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolColumnsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolColumnsGetWithResponseMockTests.java deleted file mode 100644 index e1e96cfde651..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolColumnsGetWithResponseMockTests.java +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.ColumnDataType; -import com.azure.resourcemanager.synapse.models.SqlPoolColumn; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolColumnsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"columnType\":\"text\",\"isComputed\":false},\"id\":\"vfrjwu\",\"name\":\"aonzvaj\",\"type\":\"vbnkrdemdidac\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - SqlPoolColumn response = - manager - .sqlPoolColumns() - .getWithResponse( - "zbzuzudlev", - "skejcgwfsgq", - "styec", - "pyuijp", - "rdavsjcfmazpzdq", - "uzvcmcok", - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(ColumnDataType.TEXT, response.columnType()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolConnectionPoliciesGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolConnectionPoliciesGetWithResponseMockTests.java deleted file mode 100644 index 255ea510ccb7..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolConnectionPoliciesGetWithResponseMockTests.java +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.ConnectionPolicyName; -import com.azure.resourcemanager.synapse.models.SqlPoolConnectionPolicy; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolConnectionPoliciesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"kind\":\"ueqihkkyowlt\",\"location\":\"uwhldxwhieproqks\",\"properties\":{\"securityEnabledAccess\":\"mcvprstvk\",\"proxyDnsName\":\"b\",\"proxyPort\":\"tdyotnplf\",\"visibility\":\"qoccqrqxwetjt\",\"useServerDefault\":\"hutfdoadtxopge\",\"redirectionState\":\"adkm\",\"state\":\"gssz\"},\"id\":\"vctkbbx\",\"name\":\"harls\",\"type\":\"rncclabv\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - SqlPoolConnectionPolicy response = - manager - .sqlPoolConnectionPolicies() - .getWithResponse( - "knpwirfljf", - "wxqouoxudnmc", - "aprhknqiijgencdg", - ConnectionPolicyName.DEFAULT, - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("mcvprstvk", response.securityEnabledAccess()); - Assertions.assertEquals("b", response.proxyDnsName()); - Assertions.assertEquals("tdyotnplf", response.proxyPort()); - Assertions.assertEquals("qoccqrqxwetjt", response.visibility()); - Assertions.assertEquals("hutfdoadtxopge", response.useServerDefault()); - Assertions.assertEquals("adkm", response.redirectionState()); - Assertions.assertEquals("gssz", response.state()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolConnectionPolicyInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolConnectionPolicyInnerTests.java deleted file mode 100644 index f4b38a6e87e3..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolConnectionPolicyInnerTests.java +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.SqlPoolConnectionPolicyInner; -import org.junit.jupiter.api.Assertions; - -public final class SqlPoolConnectionPolicyInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SqlPoolConnectionPolicyInner model = - BinaryData - .fromString( - "{\"kind\":\"botzingamvppho\",\"location\":\"qzudphq\",\"properties\":{\"securityEnabledAccess\":\"dkfw\",\"proxyDnsName\":\"wcvtbvkayhmtnvyq\",\"proxyPort\":\"tkzwpcnpwzc\",\"visibility\":\"esgvvsccyaj\",\"useServerDefault\":\"qfhwyg\",\"redirectionState\":\"vdnkfxusem\",\"state\":\"zrmuhapfcqdps\"},\"id\":\"xqv\",\"name\":\"svuo\",\"type\":\"mgccelvezrypq\"}") - .toObject(SqlPoolConnectionPolicyInner.class); - Assertions.assertEquals("dkfw", model.securityEnabledAccess()); - Assertions.assertEquals("wcvtbvkayhmtnvyq", model.proxyDnsName()); - Assertions.assertEquals("tkzwpcnpwzc", model.proxyPort()); - Assertions.assertEquals("esgvvsccyaj", model.visibility()); - Assertions.assertEquals("qfhwyg", model.useServerDefault()); - Assertions.assertEquals("vdnkfxusem", model.redirectionState()); - Assertions.assertEquals("zrmuhapfcqdps", model.state()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlPoolConnectionPolicyInner model = - new SqlPoolConnectionPolicyInner() - .withSecurityEnabledAccess("dkfw") - .withProxyDnsName("wcvtbvkayhmtnvyq") - .withProxyPort("tkzwpcnpwzc") - .withVisibility("esgvvsccyaj") - .withUseServerDefault("qfhwyg") - .withRedirectionState("vdnkfxusem") - .withState("zrmuhapfcqdps"); - model = BinaryData.fromObject(model).toObject(SqlPoolConnectionPolicyInner.class); - Assertions.assertEquals("dkfw", model.securityEnabledAccess()); - Assertions.assertEquals("wcvtbvkayhmtnvyq", model.proxyDnsName()); - Assertions.assertEquals("tkzwpcnpwzc", model.proxyPort()); - Assertions.assertEquals("esgvvsccyaj", model.visibility()); - Assertions.assertEquals("qfhwyg", model.useServerDefault()); - Assertions.assertEquals("vdnkfxusem", model.redirectionState()); - Assertions.assertEquals("zrmuhapfcqdps", model.state()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolConnectionPolicyPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolConnectionPolicyPropertiesTests.java deleted file mode 100644 index a0c50e4723b4..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolConnectionPolicyPropertiesTests.java +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.SqlPoolConnectionPolicyProperties; -import org.junit.jupiter.api.Assertions; - -public final class SqlPoolConnectionPolicyPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SqlPoolConnectionPolicyProperties model = - BinaryData - .fromString( - "{\"securityEnabledAccess\":\"feo\",\"proxyDnsName\":\"rqwky\",\"proxyPort\":\"ob\",\"visibility\":\"gxedkow\",\"useServerDefault\":\"bqpc\",\"redirectionState\":\"kbwcc\",\"state\":\"jvcdwxlpqekf\"}") - .toObject(SqlPoolConnectionPolicyProperties.class); - Assertions.assertEquals("feo", model.securityEnabledAccess()); - Assertions.assertEquals("rqwky", model.proxyDnsName()); - Assertions.assertEquals("ob", model.proxyPort()); - Assertions.assertEquals("gxedkow", model.visibility()); - Assertions.assertEquals("bqpc", model.useServerDefault()); - Assertions.assertEquals("kbwcc", model.redirectionState()); - Assertions.assertEquals("jvcdwxlpqekf", model.state()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlPoolConnectionPolicyProperties model = - new SqlPoolConnectionPolicyProperties() - .withSecurityEnabledAccess("feo") - .withProxyDnsName("rqwky") - .withProxyPort("ob") - .withVisibility("gxedkow") - .withUseServerDefault("bqpc") - .withRedirectionState("kbwcc") - .withState("jvcdwxlpqekf"); - model = BinaryData.fromObject(model).toObject(SqlPoolConnectionPolicyProperties.class); - Assertions.assertEquals("feo", model.securityEnabledAccess()); - Assertions.assertEquals("rqwky", model.proxyDnsName()); - Assertions.assertEquals("ob", model.proxyPort()); - Assertions.assertEquals("gxedkow", model.visibility()); - Assertions.assertEquals("bqpc", model.useServerDefault()); - Assertions.assertEquals("kbwcc", model.redirectionState()); - Assertions.assertEquals("jvcdwxlpqekf", model.state()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolDataWarehouseUserActivitiesGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolDataWarehouseUserActivitiesGetWithResponseMockTests.java deleted file mode 100644 index d09571cd53da..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolDataWarehouseUserActivitiesGetWithResponseMockTests.java +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.DataWarehouseUserActivities; -import com.azure.resourcemanager.synapse.models.DataWarehouseUserActivityName; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolDataWarehouseUserActivitiesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"activeQueriesCount\":1544076334},\"id\":\"btb\",\"name\":\"ekqhs\",\"type\":\"htfpwpqb\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - DataWarehouseUserActivities response = - manager - .sqlPoolDataWarehouseUserActivities() - .getWithResponse( - "cvstclgqrvwerf", - "xbsmtbljje", - "hci", - DataWarehouseUserActivityName.CURRENT, - com.azure.core.util.Context.NONE) - .getValue(); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolGeoBackupPoliciesCreateOrUpdateWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolGeoBackupPoliciesCreateOrUpdateWithResponseMockTests.java deleted file mode 100644 index 96de9420330a..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolGeoBackupPoliciesCreateOrUpdateWithResponseMockTests.java +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.GeoBackupPolicy; -import com.azure.resourcemanager.synapse.models.GeoBackupPolicyName; -import com.azure.resourcemanager.synapse.models.GeoBackupPolicyState; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolGeoBackupPoliciesCreateOrUpdateWithResponseMockTests { - @Test - public void testCreateOrUpdateWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"state\":\"Disabled\",\"storageType\":\"nracli\"},\"kind\":\"fqpspkladyd\",\"location\":\"hautw\",\"id\":\"kexzgpmnmabeddqi\",\"name\":\"wg\",\"type\":\"fpfqf\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - GeoBackupPolicy response = - manager - .sqlPoolGeoBackupPolicies() - .define(GeoBackupPolicyName.DEFAULT) - .withExistingSqlPool("kwsdgkj", "yacwrasekwefc", "o") - .withState(GeoBackupPolicyState.DISABLED) - .create(); - - Assertions.assertEquals(GeoBackupPolicyState.DISABLED, response.state()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolGeoBackupPoliciesGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolGeoBackupPoliciesGetWithResponseMockTests.java deleted file mode 100644 index 28f7b8df9be7..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolGeoBackupPoliciesGetWithResponseMockTests.java +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.GeoBackupPolicy; -import com.azure.resourcemanager.synapse.models.GeoBackupPolicyName; -import com.azure.resourcemanager.synapse.models.GeoBackupPolicyState; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolGeoBackupPoliciesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"state\":\"Enabled\",\"storageType\":\"rietbg\"},\"kind\":\"xx\",\"location\":\"wzkyf\",\"id\":\"nwpiwxeiicrm\",\"name\":\"e\",\"type\":\"kldmaxxijv\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - GeoBackupPolicy response = - manager - .sqlPoolGeoBackupPolicies() - .getWithResponse( - "msexroqr", "dktxfv", "nfee", GeoBackupPolicyName.DEFAULT, com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(GeoBackupPolicyState.ENABLED, response.state()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolGeoBackupPoliciesListMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolGeoBackupPoliciesListMockTests.java deleted file mode 100644 index 42ffb639860f..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolGeoBackupPoliciesListMockTests.java +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.GeoBackupPolicy; -import com.azure.resourcemanager.synapse.models.GeoBackupPolicyState; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolGeoBackupPoliciesListMockTests { - @Test - public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"properties\":{\"state\":\"Enabled\",\"storageType\":\"eoh\"},\"kind\":\"h\",\"location\":\"uz\",\"id\":\"pceeznzangprbf\",\"name\":\"xyxz\",\"type\":\"bcip\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager - .sqlPoolGeoBackupPolicies() - .list("gkrepdqhqyhw", "wemvxqabckmze", "xin", com.azure.core.util.Context.NONE); - - Assertions.assertEquals(GeoBackupPolicyState.ENABLED, response.iterator().next().state()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolInfoListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolInfoListResultTests.java deleted file mode 100644 index 71025749c68a..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolInfoListResultTests.java +++ /dev/null @@ -1,142 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.SqlPoolInner; -import com.azure.resourcemanager.synapse.models.CreateMode; -import com.azure.resourcemanager.synapse.models.Sku; -import com.azure.resourcemanager.synapse.models.SqlPoolInfoListResult; -import com.azure.resourcemanager.synapse.models.StorageAccountType; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SqlPoolInfoListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SqlPoolInfoListResult model = - BinaryData - .fromString( - "{\"nextLink\":\"ancuxrhd\",\"value\":[{\"sku\":{\"tier\":\"bniwdj\",\"name\":\"zt\",\"capacity\":593552862},\"properties\":{\"maxSizeBytes\":6037940700314515859,\"collation\":\"txhp\",\"sourceDatabaseId\":\"bzpfzab\",\"recoverableDatabaseId\":\"cuh\",\"provisioningState\":\"tcty\",\"status\":\"klbb\",\"restorePointInTime\":\"2021-04-06T10:17:39Z\",\"createMode\":\"Recovery\",\"creationDate\":\"2021-08-16T02:09:31Z\",\"storageAccountType\":\"GRS\",\"sourceDatabaseDeletionDate\":\"2021-01-10T00:04:32Z\"},\"location\":\"u\",\"tags\":{\"fpl\":\"svmkfssxquk\",\"xnkjzkdesl\":\"mg\"},\"id\":\"vlopwiyighx\",\"name\":\"kdwzbaiuebbaumny\",\"type\":\"upedeojnabckhs\"},{\"sku\":{\"tier\":\"psiebtfhvpes\",\"name\":\"skrdqmhjj\",\"capacity\":871941711},\"properties\":{\"maxSizeBytes\":2973722017967146384,\"collation\":\"zxuutkncwscwsvl\",\"sourceDatabaseId\":\"togt\",\"recoverableDatabaseId\":\"upqsx\",\"provisioningState\":\"micykvceoveilo\",\"status\":\"oty\",\"restorePointInTime\":\"2021-10-24T21:54:25Z\",\"createMode\":\"Restore\",\"creationDate\":\"2021-02-15T03:10:17Z\",\"storageAccountType\":\"GRS\",\"sourceDatabaseDeletionDate\":\"2021-03-04T17:11:57Z\"},\"location\":\"dhbt\",\"tags\":{\"wpn\":\"h\",\"mclfplphoxuscr\":\"jtoqne\"},\"id\":\"abgy\",\"name\":\"psbjta\",\"type\":\"qugxywpmueefjzwf\"},{\"sku\":{\"tier\":\"ujidsuyono\",\"name\":\"laocqxtccmg\",\"capacity\":1054992005},\"properties\":{\"maxSizeBytes\":6928065700546189319,\"collation\":\"oyrxvwfudwpzntxh\",\"sourceDatabaseId\":\"hl\",\"recoverableDatabaseId\":\"jbhckfrlhr\",\"provisioningState\":\"bkyvp\",\"status\":\"anuzbpzkafkuw\",\"restorePointInTime\":\"2021-02-12T18:02:16Z\",\"createMode\":\"Default\",\"creationDate\":\"2021-12-08T08:00:45Z\",\"storageAccountType\":\"GRS\",\"sourceDatabaseDeletionDate\":\"2021-06-08T07:46:39Z\"},\"location\":\"eyvjusrtslhspkde\",\"tags\":{\"ahvljuaha\":\"ofmxagkvtmelmqkr\",\"ualaexqpvfadmw\":\"uhcdhm\",\"vgomz\":\"rcrgvx\"},\"id\":\"fmisg\",\"name\":\"bnbbeldawkz\",\"type\":\"ali\"},{\"sku\":{\"tier\":\"qhakauhashsf\",\"name\":\"osow\",\"capacity\":38783234},\"properties\":{\"maxSizeBytes\":48775130109439677,\"collation\":\"ooxdjebwpuc\",\"sourceDatabaseId\":\"fvovbvmeuecivy\",\"recoverableDatabaseId\":\"ce\",\"provisioningState\":\"jgjrwjueiotwm\",\"status\":\"ytdxwit\",\"restorePointInTime\":\"2021-05-14T21:36:27Z\",\"createMode\":\"Recovery\",\"creationDate\":\"2021-06-11T21:37:26Z\",\"storageAccountType\":\"GRS\",\"sourceDatabaseDeletionDate\":\"2021-10-18T22:59:22Z\"},\"location\":\"hniskxfbkpyc\",\"tags\":{\"auwhvylwzbtdhx\":\"wndnhj\"},\"id\":\"jznb\",\"name\":\"pow\",\"type\":\"wpr\"}]}") - .toObject(SqlPoolInfoListResult.class); - Assertions.assertEquals("ancuxrhd", model.nextLink()); - Assertions.assertEquals("u", model.value().get(0).location()); - Assertions.assertEquals("svmkfssxquk", model.value().get(0).tags().get("fpl")); - Assertions.assertEquals("bniwdj", model.value().get(0).sku().tier()); - Assertions.assertEquals("zt", model.value().get(0).sku().name()); - Assertions.assertEquals(593552862, model.value().get(0).sku().capacity()); - Assertions.assertEquals(6037940700314515859L, model.value().get(0).maxSizeBytes()); - Assertions.assertEquals("txhp", model.value().get(0).collation()); - Assertions.assertEquals("bzpfzab", model.value().get(0).sourceDatabaseId()); - Assertions.assertEquals("cuh", model.value().get(0).recoverableDatabaseId()); - Assertions.assertEquals("tcty", model.value().get(0).provisioningState()); - Assertions - .assertEquals(OffsetDateTime.parse("2021-04-06T10:17:39Z"), model.value().get(0).restorePointInTime()); - Assertions.assertEquals(CreateMode.RECOVERY, model.value().get(0).createMode()); - Assertions.assertEquals(StorageAccountType.GRS, model.value().get(0).storageAccountType()); - Assertions - .assertEquals( - OffsetDateTime.parse("2021-01-10T00:04:32Z"), model.value().get(0).sourceDatabaseDeletionDate()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlPoolInfoListResult model = - new SqlPoolInfoListResult() - .withNextLink("ancuxrhd") - .withValue( - Arrays - .asList( - new SqlPoolInner() - .withLocation("u") - .withTags(mapOf("fpl", "svmkfssxquk", "xnkjzkdesl", "mg")) - .withSku(new Sku().withTier("bniwdj").withName("zt").withCapacity(593552862)) - .withMaxSizeBytes(6037940700314515859L) - .withCollation("txhp") - .withSourceDatabaseId("bzpfzab") - .withRecoverableDatabaseId("cuh") - .withProvisioningState("tcty") - .withRestorePointInTime(OffsetDateTime.parse("2021-04-06T10:17:39Z")) - .withCreateMode(CreateMode.RECOVERY) - .withStorageAccountType(StorageAccountType.GRS) - .withSourceDatabaseDeletionDate(OffsetDateTime.parse("2021-01-10T00:04:32Z")), - new SqlPoolInner() - .withLocation("dhbt") - .withTags(mapOf("wpn", "h", "mclfplphoxuscr", "jtoqne")) - .withSku( - new Sku().withTier("psiebtfhvpes").withName("skrdqmhjj").withCapacity(871941711)) - .withMaxSizeBytes(2973722017967146384L) - .withCollation("zxuutkncwscwsvl") - .withSourceDatabaseId("togt") - .withRecoverableDatabaseId("upqsx") - .withProvisioningState("micykvceoveilo") - .withRestorePointInTime(OffsetDateTime.parse("2021-10-24T21:54:25Z")) - .withCreateMode(CreateMode.RESTORE) - .withStorageAccountType(StorageAccountType.GRS) - .withSourceDatabaseDeletionDate(OffsetDateTime.parse("2021-03-04T17:11:57Z")), - new SqlPoolInner() - .withLocation("eyvjusrtslhspkde") - .withTags( - mapOf( - "ahvljuaha", "ofmxagkvtmelmqkr", "ualaexqpvfadmw", "uhcdhm", "vgomz", "rcrgvx")) - .withSku( - new Sku().withTier("ujidsuyono").withName("laocqxtccmg").withCapacity(1054992005)) - .withMaxSizeBytes(6928065700546189319L) - .withCollation("oyrxvwfudwpzntxh") - .withSourceDatabaseId("hl") - .withRecoverableDatabaseId("jbhckfrlhr") - .withProvisioningState("bkyvp") - .withRestorePointInTime(OffsetDateTime.parse("2021-02-12T18:02:16Z")) - .withCreateMode(CreateMode.DEFAULT) - .withStorageAccountType(StorageAccountType.GRS) - .withSourceDatabaseDeletionDate(OffsetDateTime.parse("2021-06-08T07:46:39Z")), - new SqlPoolInner() - .withLocation("hniskxfbkpyc") - .withTags(mapOf("auwhvylwzbtdhx", "wndnhj")) - .withSku(new Sku().withTier("qhakauhashsf").withName("osow").withCapacity(38783234)) - .withMaxSizeBytes(48775130109439677L) - .withCollation("ooxdjebwpuc") - .withSourceDatabaseId("fvovbvmeuecivy") - .withRecoverableDatabaseId("ce") - .withProvisioningState("jgjrwjueiotwm") - .withRestorePointInTime(OffsetDateTime.parse("2021-05-14T21:36:27Z")) - .withCreateMode(CreateMode.RECOVERY) - .withStorageAccountType(StorageAccountType.GRS) - .withSourceDatabaseDeletionDate(OffsetDateTime.parse("2021-10-18T22:59:22Z")))); - model = BinaryData.fromObject(model).toObject(SqlPoolInfoListResult.class); - Assertions.assertEquals("ancuxrhd", model.nextLink()); - Assertions.assertEquals("u", model.value().get(0).location()); - Assertions.assertEquals("svmkfssxquk", model.value().get(0).tags().get("fpl")); - Assertions.assertEquals("bniwdj", model.value().get(0).sku().tier()); - Assertions.assertEquals("zt", model.value().get(0).sku().name()); - Assertions.assertEquals(593552862, model.value().get(0).sku().capacity()); - Assertions.assertEquals(6037940700314515859L, model.value().get(0).maxSizeBytes()); - Assertions.assertEquals("txhp", model.value().get(0).collation()); - Assertions.assertEquals("bzpfzab", model.value().get(0).sourceDatabaseId()); - Assertions.assertEquals("cuh", model.value().get(0).recoverableDatabaseId()); - Assertions.assertEquals("tcty", model.value().get(0).provisioningState()); - Assertions - .assertEquals(OffsetDateTime.parse("2021-04-06T10:17:39Z"), model.value().get(0).restorePointInTime()); - Assertions.assertEquals(CreateMode.RECOVERY, model.value().get(0).createMode()); - Assertions.assertEquals(StorageAccountType.GRS, model.value().get(0).storageAccountType()); - Assertions - .assertEquals( - OffsetDateTime.parse("2021-01-10T00:04:32Z"), model.value().get(0).sourceDatabaseDeletionDate()); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolInnerTests.java deleted file mode 100644 index 7ad5cbcb6951..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolInnerTests.java +++ /dev/null @@ -1,93 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.SqlPoolInner; -import com.azure.resourcemanager.synapse.models.CreateMode; -import com.azure.resourcemanager.synapse.models.Sku; -import com.azure.resourcemanager.synapse.models.StorageAccountType; -import java.time.OffsetDateTime; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SqlPoolInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SqlPoolInner model = - BinaryData - .fromString( - "{\"sku\":{\"tier\":\"hgyxzkonoc\",\"name\":\"oklyaxuconuq\",\"capacity\":1340074682},\"properties\":{\"maxSizeBytes\":3139982845212693168,\"collation\":\"ewrmjmwvvjektc\",\"sourceDatabaseId\":\"enhwlrs\",\"recoverableDatabaseId\":\"rzpwvlqdqgbiq\",\"provisioningState\":\"ihkaetcktvfc\",\"status\":\"fsnkymuctq\",\"restorePointInTime\":\"2021-09-28T09:51:37Z\",\"createMode\":\"PointInTimeRestore\",\"creationDate\":\"2021-08-08T18:22:37Z\",\"storageAccountType\":\"GRS\",\"sourceDatabaseDeletionDate\":\"2021-06-01T09:38:07Z\"},\"location\":\"rfuwutt\",\"tags\":{\"nljky\":\"vjrbirphxepcyvah\",\"ljyoxgvcltb\":\"xjvuujqgidokg\",\"bijhtxfvgxbf\":\"sncghkjeszz\",\"ec\":\"mxnehmp\"},\"id\":\"godebfqkkrbmpu\",\"name\":\"gr\",\"type\":\"wflzlfbxzpuzy\"}") - .toObject(SqlPoolInner.class); - Assertions.assertEquals("rfuwutt", model.location()); - Assertions.assertEquals("vjrbirphxepcyvah", model.tags().get("nljky")); - Assertions.assertEquals("hgyxzkonoc", model.sku().tier()); - Assertions.assertEquals("oklyaxuconuq", model.sku().name()); - Assertions.assertEquals(1340074682, model.sku().capacity()); - Assertions.assertEquals(3139982845212693168L, model.maxSizeBytes()); - Assertions.assertEquals("ewrmjmwvvjektc", model.collation()); - Assertions.assertEquals("enhwlrs", model.sourceDatabaseId()); - Assertions.assertEquals("rzpwvlqdqgbiq", model.recoverableDatabaseId()); - Assertions.assertEquals("ihkaetcktvfc", model.provisioningState()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-28T09:51:37Z"), model.restorePointInTime()); - Assertions.assertEquals(CreateMode.POINT_IN_TIME_RESTORE, model.createMode()); - Assertions.assertEquals(StorageAccountType.GRS, model.storageAccountType()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-01T09:38:07Z"), model.sourceDatabaseDeletionDate()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlPoolInner model = - new SqlPoolInner() - .withLocation("rfuwutt") - .withTags( - mapOf( - "nljky", - "vjrbirphxepcyvah", - "ljyoxgvcltb", - "xjvuujqgidokg", - "bijhtxfvgxbf", - "sncghkjeszz", - "ec", - "mxnehmp")) - .withSku(new Sku().withTier("hgyxzkonoc").withName("oklyaxuconuq").withCapacity(1340074682)) - .withMaxSizeBytes(3139982845212693168L) - .withCollation("ewrmjmwvvjektc") - .withSourceDatabaseId("enhwlrs") - .withRecoverableDatabaseId("rzpwvlqdqgbiq") - .withProvisioningState("ihkaetcktvfc") - .withRestorePointInTime(OffsetDateTime.parse("2021-09-28T09:51:37Z")) - .withCreateMode(CreateMode.POINT_IN_TIME_RESTORE) - .withStorageAccountType(StorageAccountType.GRS) - .withSourceDatabaseDeletionDate(OffsetDateTime.parse("2021-06-01T09:38:07Z")); - model = BinaryData.fromObject(model).toObject(SqlPoolInner.class); - Assertions.assertEquals("rfuwutt", model.location()); - Assertions.assertEquals("vjrbirphxepcyvah", model.tags().get("nljky")); - Assertions.assertEquals("hgyxzkonoc", model.sku().tier()); - Assertions.assertEquals("oklyaxuconuq", model.sku().name()); - Assertions.assertEquals(1340074682, model.sku().capacity()); - Assertions.assertEquals(3139982845212693168L, model.maxSizeBytes()); - Assertions.assertEquals("ewrmjmwvvjektc", model.collation()); - Assertions.assertEquals("enhwlrs", model.sourceDatabaseId()); - Assertions.assertEquals("rzpwvlqdqgbiq", model.recoverableDatabaseId()); - Assertions.assertEquals("ihkaetcktvfc", model.provisioningState()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-28T09:51:37Z"), model.restorePointInTime()); - Assertions.assertEquals(CreateMode.POINT_IN_TIME_RESTORE, model.createMode()); - Assertions.assertEquals(StorageAccountType.GRS, model.storageAccountType()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-01T09:38:07Z"), model.sourceDatabaseDeletionDate()); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolMaintenanceWindowOptionsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolMaintenanceWindowOptionsGetWithResponseMockTests.java deleted file mode 100644 index 31693d5ca7e2..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolMaintenanceWindowOptionsGetWithResponseMockTests.java +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.MaintenanceWindowOptions; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolMaintenanceWindowOptionsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"isEnabled\":false,\"maintenanceWindowCycles\":[],\"minDurationInMinutes\":1450032317,\"defaultDurationInMinutes\":2139767173,\"minCycles\":316800252,\"timeGranularityInMinutes\":522253905,\"allowMultipleMaintenanceWindowsPerCycle\":true},\"id\":\"zltg\",\"name\":\"omqo\",\"type\":\"pepiaeapfs\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - MaintenanceWindowOptions response = - manager - .sqlPoolMaintenanceWindowOptions() - .getWithResponse("xcjzlquze", "okjxebjvb", "inzabwmvoglj", "v", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(false, response.isEnabled()); - Assertions.assertEquals(1450032317, response.minDurationInMinutes()); - Assertions.assertEquals(2139767173, response.defaultDurationInMinutes()); - Assertions.assertEquals(316800252, response.minCycles()); - Assertions.assertEquals(522253905, response.timeGranularityInMinutes()); - Assertions.assertEquals(true, response.allowMultipleMaintenanceWindowsPerCycle()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolMaintenanceWindowsCreateOrUpdateWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolMaintenanceWindowsCreateOrUpdateWithResponseMockTests.java deleted file mode 100644 index cfcd8eb29015..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolMaintenanceWindowsCreateOrUpdateWithResponseMockTests.java +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.fluent.models.MaintenanceWindowsInner; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolMaintenanceWindowsCreateOrUpdateWithResponseMockTests { - @Test - public void testCreateOrUpdateWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .sqlPoolMaintenanceWindows() - .createOrUpdateWithResponse( - "fm", - "fgvqcpdw", - "gquxweysland", - "dcdjhunh", - new MaintenanceWindowsInner().withTimeRanges(Arrays.asList()), - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolMaintenanceWindowsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolMaintenanceWindowsGetWithResponseMockTests.java deleted file mode 100644 index 032b5f83a7c7..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolMaintenanceWindowsGetWithResponseMockTests.java +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.MaintenanceWindows; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolMaintenanceWindowsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"timeRanges\":[]},\"id\":\"reyxelyicghf\",\"name\":\"rufssjyg\",\"type\":\"sfxrkbhammgm\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - MaintenanceWindows response = - manager - .sqlPoolMaintenanceWindows() - .getWithResponse("euairaabmdlqjb", "dp", "ixlhupm", "mihzbdnpxp", com.azure.core.util.Context.NONE) - .getValue(); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolMetadataSyncConfigsCreateWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolMetadataSyncConfigsCreateWithResponseMockTests.java deleted file mode 100644 index 9fd2c2001409..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolMetadataSyncConfigsCreateWithResponseMockTests.java +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.fluent.models.MetadataSyncConfigInner; -import com.azure.resourcemanager.synapse.models.MetadataSyncConfig; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolMetadataSyncConfigsCreateWithResponseMockTests { - @Test - public void testCreateWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"enabled\":true,\"syncIntervalInMinutes\":645754690},\"id\":\"tfwfqchvczevj\",\"name\":\"nctagfyvrtpqpem\",\"type\":\"z\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - MetadataSyncConfig response = - manager - .sqlPoolMetadataSyncConfigs() - .createWithResponse( - "jgmn", - "jotvmrxkhl", - "bvvjbhvhdiq", - new MetadataSyncConfigInner().withEnabled(true).withSyncIntervalInMinutes(699341177), - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(true, response.enabled()); - Assertions.assertEquals(645754690, response.syncIntervalInMinutes()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolMetadataSyncConfigsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolMetadataSyncConfigsGetWithResponseMockTests.java deleted file mode 100644 index 6fe4c34783c2..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolMetadataSyncConfigsGetWithResponseMockTests.java +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.MetadataSyncConfig; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolMetadataSyncConfigsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"enabled\":true,\"syncIntervalInMinutes\":1268752565},\"id\":\"czldbglzoutbaaqg\",\"name\":\"ekaj\",\"type\":\"lyzgsnor\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - MetadataSyncConfig response = - manager - .sqlPoolMetadataSyncConfigs() - .getWithResponse("iegftc", "biiftksdwgdnk", "fgmwd", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(true, response.enabled()); - Assertions.assertEquals(1268752565, response.syncIntervalInMinutes()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolPatchInfoTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolPatchInfoTests.java deleted file mode 100644 index 7bc7fa4d7927..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolPatchInfoTests.java +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.CreateMode; -import com.azure.resourcemanager.synapse.models.Sku; -import com.azure.resourcemanager.synapse.models.SqlPoolPatchInfo; -import com.azure.resourcemanager.synapse.models.StorageAccountType; -import java.time.OffsetDateTime; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class SqlPoolPatchInfoTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SqlPoolPatchInfo model = - BinaryData - .fromString( - "{\"tags\":{\"henbtkcxywnytn\":\"xmyskp\"},\"location\":\"yn\",\"sku\":{\"tier\":\"dybyxczfclhaa\",\"name\":\"babphlwrqlfk\",\"capacity\":1003967781},\"properties\":{\"maxSizeBytes\":3711072422112516968,\"collation\":\"cmnyyazttb\",\"sourceDatabaseId\":\"wrqpue\",\"recoverableDatabaseId\":\"kzywbiex\",\"provisioningState\":\"eyueaxibxujwb\",\"status\":\"walm\",\"restorePointInTime\":\"2021-11-10T04:08:23Z\",\"createMode\":\"Restore\",\"creationDate\":\"2021-07-26T23:02:26Z\",\"storageAccountType\":\"LRS\",\"sourceDatabaseDeletionDate\":\"2021-06-08T12:36:20Z\"}}") - .toObject(SqlPoolPatchInfo.class); - Assertions.assertEquals("xmyskp", model.tags().get("henbtkcxywnytn")); - Assertions.assertEquals("yn", model.location()); - Assertions.assertEquals("dybyxczfclhaa", model.sku().tier()); - Assertions.assertEquals("babphlwrqlfk", model.sku().name()); - Assertions.assertEquals(1003967781, model.sku().capacity()); - Assertions.assertEquals(3711072422112516968L, model.maxSizeBytes()); - Assertions.assertEquals("cmnyyazttb", model.collation()); - Assertions.assertEquals("wrqpue", model.sourceDatabaseId()); - Assertions.assertEquals("kzywbiex", model.recoverableDatabaseId()); - Assertions.assertEquals("eyueaxibxujwb", model.provisioningState()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-10T04:08:23Z"), model.restorePointInTime()); - Assertions.assertEquals(CreateMode.RESTORE, model.createMode()); - Assertions.assertEquals(StorageAccountType.LRS, model.storageAccountType()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-08T12:36:20Z"), model.sourceDatabaseDeletionDate()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlPoolPatchInfo model = - new SqlPoolPatchInfo() - .withTags(mapOf("henbtkcxywnytn", "xmyskp")) - .withLocation("yn") - .withSku(new Sku().withTier("dybyxczfclhaa").withName("babphlwrqlfk").withCapacity(1003967781)) - .withMaxSizeBytes(3711072422112516968L) - .withCollation("cmnyyazttb") - .withSourceDatabaseId("wrqpue") - .withRecoverableDatabaseId("kzywbiex") - .withProvisioningState("eyueaxibxujwb") - .withRestorePointInTime(OffsetDateTime.parse("2021-11-10T04:08:23Z")) - .withCreateMode(CreateMode.RESTORE) - .withStorageAccountType(StorageAccountType.LRS) - .withSourceDatabaseDeletionDate(OffsetDateTime.parse("2021-06-08T12:36:20Z")); - model = BinaryData.fromObject(model).toObject(SqlPoolPatchInfo.class); - Assertions.assertEquals("xmyskp", model.tags().get("henbtkcxywnytn")); - Assertions.assertEquals("yn", model.location()); - Assertions.assertEquals("dybyxczfclhaa", model.sku().tier()); - Assertions.assertEquals("babphlwrqlfk", model.sku().name()); - Assertions.assertEquals(1003967781, model.sku().capacity()); - Assertions.assertEquals(3711072422112516968L, model.maxSizeBytes()); - Assertions.assertEquals("cmnyyazttb", model.collation()); - Assertions.assertEquals("wrqpue", model.sourceDatabaseId()); - Assertions.assertEquals("kzywbiex", model.recoverableDatabaseId()); - Assertions.assertEquals("eyueaxibxujwb", model.provisioningState()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-10T04:08:23Z"), model.restorePointInTime()); - Assertions.assertEquals(CreateMode.RESTORE, model.createMode()); - Assertions.assertEquals(StorageAccountType.LRS, model.storageAccountType()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-08T12:36:20Z"), model.sourceDatabaseDeletionDate()); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolRecommendedSensitivityLabelsUpdateWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolRecommendedSensitivityLabelsUpdateWithResponseMockTests.java deleted file mode 100644 index a0abdde4164a..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolRecommendedSensitivityLabelsUpdateWithResponseMockTests.java +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.RecommendedSensitivityLabelUpdate; -import com.azure.resourcemanager.synapse.models.RecommendedSensitivityLabelUpdateList; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolRecommendedSensitivityLabelsUpdateWithResponseMockTests { - @Test - public void testUpdateWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .sqlPoolRecommendedSensitivityLabels() - .updateWithResponse( - "qa", - "j", - "vaz", - new RecommendedSensitivityLabelUpdateList() - .withOperations( - Arrays - .asList( - new RecommendedSensitivityLabelUpdate(), - new RecommendedSensitivityLabelUpdate(), - new RecommendedSensitivityLabelUpdate(), - new RecommendedSensitivityLabelUpdate())), - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolReplicationLinksGetByNameWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolReplicationLinksGetByNameWithResponseMockTests.java deleted file mode 100644 index ba766e4f5ce8..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolReplicationLinksGetByNameWithResponseMockTests.java +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.ReplicationLink; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolReplicationLinksGetByNameWithResponseMockTests { - @Test - public void testGetByNameWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"location\":\"kiczdfrj\",\"properties\":{\"isTerminationAllowed\":true,\"replicationMode\":\"gqaboohx\",\"partnerServer\":\"sgyc\",\"partnerDatabase\":\"xrmdvewuyqaeohpj\",\"partnerLocation\":\"ejkbvhhdaurgho\",\"role\":\"Primary\",\"partnerRole\":\"Copy\",\"startTime\":\"2021-08-25T17:36:27Z\",\"percentComplete\":1446009255,\"replicationState\":\"SUSPENDED\"},\"id\":\"joezlqxrkdknkobe\",\"name\":\"tmbozomtzamicbig\",\"type\":\"cdgzseznux\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ReplicationLink response = - manager - .sqlPoolReplicationLinks() - .getByNameWithResponse( - "lusnawmhhgzotfr", "yrgkoekv", "wxxyxhighctx", "xmolpcqydeyk", com.azure.core.util.Context.NONE) - .getValue(); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolReplicationLinksListMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolReplicationLinksListMockTests.java deleted file mode 100644 index fafdfc09b784..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolReplicationLinksListMockTests.java +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.ReplicationLink; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolReplicationLinksListMockTests { - @Test - public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"location\":\"fcemftzgyyky\",\"properties\":{\"isTerminationAllowed\":true,\"replicationMode\":\"kd\",\"partnerServer\":\"nht\",\"partnerDatabase\":\"do\",\"partnerLocation\":\"czfjjnn\",\"role\":\"Secondary\",\"partnerRole\":\"Copy\",\"startTime\":\"2021-10-23T07:10:18Z\",\"percentComplete\":1452082126,\"replicationState\":\"SEEDING\"},\"id\":\"lwe\",\"name\":\"pdcifrhju\",\"type\":\"rsulwzp\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager.sqlPoolReplicationLinks().list("bfokxkhu", "ze", "ufgjblcdr", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolResourcePropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolResourcePropertiesTests.java deleted file mode 100644 index 5a8a740ce574..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolResourcePropertiesTests.java +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.SqlPoolResourceProperties; -import com.azure.resourcemanager.synapse.models.CreateMode; -import com.azure.resourcemanager.synapse.models.StorageAccountType; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; - -public final class SqlPoolResourcePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SqlPoolResourceProperties model = - BinaryData - .fromString( - "{\"maxSizeBytes\":547148134768197922,\"collation\":\"vtq\",\"sourceDatabaseId\":\"n\",\"recoverableDatabaseId\":\"ynhijggme\",\"provisioningState\":\"siarbutrcvpn\",\"status\":\"zmhjrunmp\",\"restorePointInTime\":\"2021-03-04T22:45:41Z\",\"createMode\":\"Default\",\"creationDate\":\"2021-07-16T15:39:21Z\",\"storageAccountType\":\"LRS\",\"sourceDatabaseDeletionDate\":\"2021-10-27T21:49:11Z\"}") - .toObject(SqlPoolResourceProperties.class); - Assertions.assertEquals(547148134768197922L, model.maxSizeBytes()); - Assertions.assertEquals("vtq", model.collation()); - Assertions.assertEquals("n", model.sourceDatabaseId()); - Assertions.assertEquals("ynhijggme", model.recoverableDatabaseId()); - Assertions.assertEquals("siarbutrcvpn", model.provisioningState()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-04T22:45:41Z"), model.restorePointInTime()); - Assertions.assertEquals(CreateMode.DEFAULT, model.createMode()); - Assertions.assertEquals(StorageAccountType.LRS, model.storageAccountType()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-27T21:49:11Z"), model.sourceDatabaseDeletionDate()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlPoolResourceProperties model = - new SqlPoolResourceProperties() - .withMaxSizeBytes(547148134768197922L) - .withCollation("vtq") - .withSourceDatabaseId("n") - .withRecoverableDatabaseId("ynhijggme") - .withProvisioningState("siarbutrcvpn") - .withRestorePointInTime(OffsetDateTime.parse("2021-03-04T22:45:41Z")) - .withCreateMode(CreateMode.DEFAULT) - .withStorageAccountType(StorageAccountType.LRS) - .withSourceDatabaseDeletionDate(OffsetDateTime.parse("2021-10-27T21:49:11Z")); - model = BinaryData.fromObject(model).toObject(SqlPoolResourceProperties.class); - Assertions.assertEquals(547148134768197922L, model.maxSizeBytes()); - Assertions.assertEquals("vtq", model.collation()); - Assertions.assertEquals("n", model.sourceDatabaseId()); - Assertions.assertEquals("ynhijggme", model.recoverableDatabaseId()); - Assertions.assertEquals("siarbutrcvpn", model.provisioningState()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-04T22:45:41Z"), model.restorePointInTime()); - Assertions.assertEquals(CreateMode.DEFAULT, model.createMode()); - Assertions.assertEquals(StorageAccountType.LRS, model.storageAccountType()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-27T21:49:11Z"), model.sourceDatabaseDeletionDate()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsCreateMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsCreateMockTests.java deleted file mode 100644 index 906de20187de..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsCreateMockTests.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.CreateSqlPoolRestorePointDefinition; -import com.azure.resourcemanager.synapse.models.RestorePoint; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolRestorePointsCreateMockTests { - @Test - public void testCreate() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"location\":\"udivbxnhsqeaeonq\",\"properties\":{\"restorePointType\":\"CONTINUOUS\",\"earliestRestoreDate\":\"2021-07-02T09:32:39Z\",\"restorePointCreationDate\":\"2021-01-08T21:25:54Z\",\"restorePointLabel\":\"zytzarogatmolj\"},\"id\":\"ywmpinmzvfkneer\",\"name\":\"ztrknsj\",\"type\":\"lugdybnhrxlelf\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - RestorePoint response = - manager - .sqlPoolRestorePoints() - .create( - "voffbkkwvdxae", - "qokmyrljial", - "bn", - new CreateSqlPoolRestorePointDefinition().withRestorePointLabel("brqlpbcjtrpz"), - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsDeleteWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsDeleteWithResponseMockTests.java deleted file mode 100644 index 8a18bd93cb31..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsDeleteWithResponseMockTests.java +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolRestorePointsDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .sqlPoolRestorePoints() - .deleteWithResponse( - "ajnkdflqionswae", "kzfzqxjosho", "totryegpkhxrme", "znlw", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsGetWithResponseMockTests.java deleted file mode 100644 index f2057e9ebd08..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsGetWithResponseMockTests.java +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.RestorePoint; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolRestorePointsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"location\":\"mlcfnzhmhsurl\",\"properties\":{\"restorePointType\":\"CONTINUOUS\",\"earliestRestoreDate\":\"2021-04-20T12:47:45Z\",\"restorePointCreationDate\":\"2021-09-14T19:13:14Z\",\"restorePointLabel\":\"stauolawi\"},\"id\":\"bmom\",\"name\":\"gvvjhvvlr\",\"type\":\"ohewjj\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - RestorePoint response = - manager - .sqlPoolRestorePoints() - .getWithResponse("hkeizcp", "htdm", "wjekptycaydbj", "c", com.azure.core.util.Context.NONE) - .getValue(); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsListMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsListMockTests.java deleted file mode 100644 index 76d8a16b71ed..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolRestorePointsListMockTests.java +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.RestorePoint; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolRestorePointsListMockTests { - @Test - public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"location\":\"kfmkhcqtwmlmhjn\",\"properties\":{\"restorePointType\":\"CONTINUOUS\",\"earliestRestoreDate\":\"2021-08-10T12:42:08Z\",\"restorePointCreationDate\":\"2021-01-27T09:17:43Z\",\"restorePointLabel\":\"vragpokddx\"},\"id\":\"jhhkv\",\"name\":\"uavt\",\"type\":\"tbkewkqynspg\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager - .sqlPoolRestorePoints() - .list("ejuwyqwdqigmghgi", "z", "xlujkhnjcm", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSchemaInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSchemaInnerTests.java deleted file mode 100644 index 61ff28cdedec..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSchemaInnerTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.SqlPoolSchemaInner; - -public final class SqlPoolSchemaInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SqlPoolSchemaInner model = - BinaryData - .fromString("{\"id\":\"wfsdjpvkvpbj\",\"name\":\"bkzbzkd\",\"type\":\"ncj\"}") - .toObject(SqlPoolSchemaInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlPoolSchemaInner model = new SqlPoolSchemaInner(); - model = BinaryData.fromObject(model).toObject(SqlPoolSchemaInner.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSchemaListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSchemaListResultTests.java deleted file mode 100644 index 868d4ce1c03b..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSchemaListResultTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.SqlPoolSchemaListResult; - -public final class SqlPoolSchemaListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SqlPoolSchemaListResult model = - BinaryData - .fromString( - "{\"value\":[{\"id\":\"eibq\",\"name\":\"p\",\"type\":\"kghv\"},{\"id\":\"ndzwmkrefa\",\"name\":\"pjorwkqnyhg\",\"type\":\"ij\"}],\"nextLink\":\"ivfxzsjabibsyst\"}") - .toObject(SqlPoolSchemaListResult.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlPoolSchemaListResult model = new SqlPoolSchemaListResult(); - model = BinaryData.fromObject(model).toObject(SqlPoolSchemaListResult.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSchemasGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSchemasGetWithResponseMockTests.java deleted file mode 100644 index 1d26447b1996..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSchemasGetWithResponseMockTests.java +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.SqlPoolSchema; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolSchemasGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{\"id\":\"nthbbnkgzukwd\",\"name\":\"nzkjthfceyjn\",\"type\":\"jmlfuyfjbp\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - SqlPoolSchema response = - manager - .sqlPoolSchemas() - .getWithResponse("kczynuhhoqeqsh", "vl", "q", "xyrqo", com.azure.core.util.Context.NONE) - .getValue(); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSchemasListMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSchemasListMockTests.java deleted file mode 100644 index 7d0f60289caa..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSchemasListMockTests.java +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.SqlPoolSchema; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolSchemasListMockTests { - @Test - public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{\"value\":[{\"id\":\"fjzc\",\"name\":\"aaxoialahfxwcc\",\"type\":\"kdxkuk\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager - .sqlPoolSchemas() - .list("jjsbcmlzaahzbhur", "olk", "lirh", "mojusuz", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsCreateOrUpdateWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsCreateOrUpdateWithResponseMockTests.java deleted file mode 100644 index 0ded10b63314..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsCreateOrUpdateWithResponseMockTests.java +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.SensitivityLabel; -import com.azure.resourcemanager.synapse.models.SensitivityLabelRank; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolSensitivityLabelsCreateOrUpdateWithResponseMockTests { - @Test - public void testCreateOrUpdateWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"schemaName\":\"squbfajcywh\",\"tableName\":\"wmchqo\",\"columnName\":\"fxcpupukiym\",\"labelName\":\"pwdlvwti\",\"labelId\":\"mosaonh\",\"informationType\":\"amppultassaekewn\",\"informationTypeId\":\"eajbkajlcyizyddc\",\"isDisabled\":false,\"rank\":\"None\"},\"managedBy\":\"vfsxx\",\"id\":\"ydesqlvgec\",\"name\":\"wgoljtzx\",\"type\":\"mxsdobygoog\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - SensitivityLabel response = - manager - .sqlPoolSensitivityLabels() - .define() - .withExistingColumn("apeqiscrpil", "ftr", "rejdaahuqim", "dahlfxlmuifmuadj", "fsn", "skiioshjgczetybn") - .withLabelName("ylrwoxzg") - .withLabelId("syxjijeyp") - .withInformationType("rbkerdkd") - .withInformationTypeId("awqwjxild") - .withRank(SensitivityLabelRank.MEDIUM) - .create(); - - Assertions.assertEquals("pwdlvwti", response.labelName()); - Assertions.assertEquals("mosaonh", response.labelId()); - Assertions.assertEquals("amppultassaekewn", response.informationType()); - Assertions.assertEquals("eajbkajlcyizyddc", response.informationTypeId()); - Assertions.assertEquals(SensitivityLabelRank.NONE, response.rank()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsDeleteWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsDeleteWithResponseMockTests.java deleted file mode 100644 index 1ec7d0bc7b46..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsDeleteWithResponseMockTests.java +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolSensitivityLabelsDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .sqlPoolSensitivityLabels() - .deleteWithResponse( - "zjljmphfk", - "ezolgjzm", - "cuydoccnxshanz", - "uiadhbatecaatsdo", - "zn", - "ucbdaom", - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsDisableRecommendationWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsDisableRecommendationWithResponseMockTests.java deleted file mode 100644 index bc1e807e3b15..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsDisableRecommendationWithResponseMockTests.java +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolSensitivityLabelsDisableRecommendationWithResponseMockTests { - @Test - public void testDisableRecommendationWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .sqlPoolSensitivityLabels() - .disableRecommendationWithResponse( - "qfkyfhiwvjaqu", "by", "nvskpaj", "mgeu", "exmj", "xcbccwkqmt", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsEnableRecommendationWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsEnableRecommendationWithResponseMockTests.java deleted file mode 100644 index f2b0670a7678..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsEnableRecommendationWithResponseMockTests.java +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolSensitivityLabelsEnableRecommendationWithResponseMockTests { - @Test - public void testEnableRecommendationWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .sqlPoolSensitivityLabels() - .enableRecommendationWithResponse( - "ccgrvkcxzznn", - "i", - "ersejeg", - "rkjguwrjmwvvbt", - "qkxximwgxql", - "ekotjgxi", - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsGetWithResponseMockTests.java deleted file mode 100644 index 1c600eb9f0a9..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsGetWithResponseMockTests.java +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.SensitivityLabel; -import com.azure.resourcemanager.synapse.models.SensitivityLabelRank; -import com.azure.resourcemanager.synapse.models.SensitivityLabelSource; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolSensitivityLabelsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"schemaName\":\"kvjgbzs\",\"tableName\":\"br\",\"columnName\":\"ttfyhcdjwsuoard\",\"labelName\":\"gttpufpbpgnrho\",\"labelId\":\"ujbfwxiplkys\",\"informationType\":\"syjprxslwhdmcvh\",\"informationTypeId\":\"bzjhfvhuwzb\",\"isDisabled\":true,\"rank\":\"Medium\"},\"managedBy\":\"ihotjecohmxv\",\"id\":\"lrrskap\",\"name\":\"xwieexuyade\",\"type\":\"ltfokyksyim\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - SensitivityLabel response = - manager - .sqlPoolSensitivityLabels() - .getWithResponse( - "wiinjdllw", - "tlepowavvqxua", - "g", - "qwulynkgfcfdru", - "si", - "xxtclhuulri", - SensitivityLabelSource.RECOMMENDED, - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("gttpufpbpgnrho", response.labelName()); - Assertions.assertEquals("ujbfwxiplkys", response.labelId()); - Assertions.assertEquals("syjprxslwhdmcvh", response.informationType()); - Assertions.assertEquals("bzjhfvhuwzb", response.informationTypeId()); - Assertions.assertEquals(SensitivityLabelRank.MEDIUM, response.rank()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsListCurrentMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsListCurrentMockTests.java deleted file mode 100644 index 6c4176190c6a..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsListCurrentMockTests.java +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.SensitivityLabel; -import com.azure.resourcemanager.synapse.models.SensitivityLabelRank; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolSensitivityLabelsListCurrentMockTests { - @Test - public void testListCurrent() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"properties\":{\"schemaName\":\"waivmuqkevzg\",\"tableName\":\"panhxmpdxxze\",\"columnName\":\"wzjwotnxlkfhg\",\"labelName\":\"rfo\",\"labelId\":\"wecr\",\"informationType\":\"hpcselqxovp\",\"informationTypeId\":\"ibuk\",\"isDisabled\":true,\"rank\":\"Critical\"},\"managedBy\":\"rmlccmet\",\"id\":\"scz\",\"name\":\"vfqbqna\",\"type\":\"dsyenzsieuscpl\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager - .sqlPoolSensitivityLabels() - .listCurrent( - "cgubsrtmdylper", "ilttjzgczfcmfpfb", "detres", "gvtshu", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("rfo", response.iterator().next().labelName()); - Assertions.assertEquals("wecr", response.iterator().next().labelId()); - Assertions.assertEquals("hpcselqxovp", response.iterator().next().informationType()); - Assertions.assertEquals("ibuk", response.iterator().next().informationTypeId()); - Assertions.assertEquals(SensitivityLabelRank.CRITICAL, response.iterator().next().rank()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsListRecommendedMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsListRecommendedMockTests.java deleted file mode 100644 index 1888a41d3fef..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsListRecommendedMockTests.java +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.SensitivityLabel; -import com.azure.resourcemanager.synapse.models.SensitivityLabelRank; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolSensitivityLabelsListRecommendedMockTests { - @Test - public void testListRecommended() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"properties\":{\"schemaName\":\"dajfwnncfma\",\"tableName\":\"qgjjrlhiqlwixv\",\"columnName\":\"ougu\",\"labelName\":\"n\",\"labelId\":\"pg\",\"informationType\":\"tbasu\",\"informationTypeId\":\"ap\",\"isDisabled\":false,\"rank\":\"High\"},\"managedBy\":\"aqbkixvvlwynpbbf\",\"id\":\"vzfjm\",\"name\":\"pu\",\"type\":\"zfe\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager - .sqlPoolSensitivityLabels() - .listRecommended( - "eaqgrvgpomxpupd", - "sdfjyiesoc", - "iqbuou", - false, - "py", - "gleofjsbgbw", - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("n", response.iterator().next().labelName()); - Assertions.assertEquals("pg", response.iterator().next().labelId()); - Assertions.assertEquals("tbasu", response.iterator().next().informationType()); - Assertions.assertEquals("ap", response.iterator().next().informationTypeId()); - Assertions.assertEquals(SensitivityLabelRank.HIGH, response.iterator().next().rank()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsUpdateWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsUpdateWithResponseMockTests.java deleted file mode 100644 index ff84a39b85a1..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolSensitivityLabelsUpdateWithResponseMockTests.java +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.fluent.models.SensitivityLabelUpdateInner; -import com.azure.resourcemanager.synapse.models.SensitivityLabelUpdateList; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolSensitivityLabelsUpdateWithResponseMockTests { - @Test - public void testUpdateWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .sqlPoolSensitivityLabels() - .updateWithResponse( - "yvdgxlyzk", - "itdshezsvkolru", - "jovmozsaye", - new SensitivityLabelUpdateList() - .withOperations( - Arrays - .asList( - new SensitivityLabelUpdateInner(), - new SensitivityLabelUpdateInner(), - new SensitivityLabelUpdateInner(), - new SensitivityLabelUpdateInner())), - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTableColumnsListByTableNameMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTableColumnsListByTableNameMockTests.java deleted file mode 100644 index 771b376a93fe..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTableColumnsListByTableNameMockTests.java +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.ColumnDataType; -import com.azure.resourcemanager.synapse.models.SqlPoolColumn; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolTableColumnsListByTableNameMockTests { - @Test - public void testListByTableName() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"properties\":{\"columnType\":\"timestamp\",\"isComputed\":false},\"id\":\"cxq\",\"name\":\"whscozawmv\",\"type\":\"xsm\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager - .sqlPoolTableColumns() - .listByTableName( - "gwi", - "aaneakhtmhobcya", - "rfvqtvkhgvo", - "gxkfnaoaqymhccto", - "uowyrnskbyhqu", - "czygxv", - com.azure.core.util.Context.NONE); - - Assertions.assertEquals(ColumnDataType.TIMESTAMP, response.iterator().next().columnType()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTableInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTableInnerTests.java deleted file mode 100644 index aeef4bbbedc6..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTableInnerTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.SqlPoolTableInner; - -public final class SqlPoolTableInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SqlPoolTableInner model = - BinaryData - .fromString("{\"id\":\"pdrhne\",\"name\":\"yowqkdwytisibir\",\"type\":\"gpikpzimejza\"}") - .toObject(SqlPoolTableInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlPoolTableInner model = new SqlPoolTableInner(); - model = BinaryData.fromObject(model).toObject(SqlPoolTableInner.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTableListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTableListResultTests.java deleted file mode 100644 index 78ee119c6b61..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTableListResultTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.SqlPoolTableListResult; - -public final class SqlPoolTableListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SqlPoolTableListResult model = - BinaryData - .fromString( - "{\"value\":[{\"id\":\"durgkakmokz\",\"name\":\"jjklff\",\"type\":\"mouwqlgzrfzeey\"},{\"id\":\"bizikayuhq\",\"name\":\"bjbsybb\",\"type\":\"wrv\"},{\"id\":\"ldgmfpgvmpip\",\"name\":\"slthaq\",\"type\":\"x\"}],\"nextLink\":\"mwutwbdsre\"}") - .toObject(SqlPoolTableListResult.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlPoolTableListResult model = new SqlPoolTableListResult(); - model = BinaryData.fromObject(model).toObject(SqlPoolTableListResult.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTablesGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTablesGetWithResponseMockTests.java deleted file mode 100644 index 64da5cb6eb71..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTablesGetWithResponseMockTests.java +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.SqlPoolTable; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolTablesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{\"id\":\"atuwqkokbc\",\"name\":\"othymgobl\",\"type\":\"msn\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - SqlPoolTable response = - manager - .sqlPoolTables() - .getWithResponse("ag", "qfqqdlcvmyolc", "ymjc", "tvsnvl", "qdnzyza", com.azure.core.util.Context.NONE) - .getValue(); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTablesListBySchemaMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTablesListBySchemaMockTests.java deleted file mode 100644 index 8969e193598f..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTablesListBySchemaMockTests.java +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.SqlPoolTable; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolTablesListBySchemaMockTests { - @Test - public void testListBySchema() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{\"value\":[{\"id\":\"sjmrkkhm\",\"name\":\"dmdlgyqixokw\",\"type\":\"jawh\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager - .sqlPoolTables() - .listBySchema( - "iddhlrufzc", "yjmqrf", "iocuselqkr", "azrhxudd", "mdtff", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTransparentDataEncryptionsCreateOrUpdateWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTransparentDataEncryptionsCreateOrUpdateWithResponseMockTests.java deleted file mode 100644 index bd5b0c0a9f34..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTransparentDataEncryptionsCreateOrUpdateWithResponseMockTests.java +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.TransparentDataEncryption; -import com.azure.resourcemanager.synapse.models.TransparentDataEncryptionName; -import com.azure.resourcemanager.synapse.models.TransparentDataEncryptionStatus; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolTransparentDataEncryptionsCreateOrUpdateWithResponseMockTests { - @Test - public void testCreateOrUpdateWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"location\":\"nbpvzlq\",\"properties\":{\"status\":\"Enabled\"},\"id\":\"y\",\"name\":\"njc\",\"type\":\"hmocgjshg\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - TransparentDataEncryption response = - manager - .sqlPoolTransparentDataEncryptions() - .define(TransparentDataEncryptionName.CURRENT) - .withExistingSqlPool("zybspijhfrzgdkk", "gv", "ukhsusmmorf") - .withStatus(TransparentDataEncryptionStatus.DISABLED) - .create(); - - Assertions.assertEquals(TransparentDataEncryptionStatus.ENABLED, response.status()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTransparentDataEncryptionsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTransparentDataEncryptionsGetWithResponseMockTests.java deleted file mode 100644 index 969ffde4a401..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTransparentDataEncryptionsGetWithResponseMockTests.java +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.TransparentDataEncryption; -import com.azure.resourcemanager.synapse.models.TransparentDataEncryptionName; -import com.azure.resourcemanager.synapse.models.TransparentDataEncryptionStatus; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolTransparentDataEncryptionsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"location\":\"cwmbupyvqyvli\",\"properties\":{\"status\":\"Disabled\"},\"id\":\"sejb\",\"name\":\"vsi\",\"type\":\"ieswhddzydisn\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - TransparentDataEncryption response = - manager - .sqlPoolTransparentDataEncryptions() - .getWithResponse( - "rgdtpeqnacyheqw", - "pqqncju", - "khjoz", - TransparentDataEncryptionName.CURRENT, - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(TransparentDataEncryptionStatus.DISABLED, response.status()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTransparentDataEncryptionsListMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTransparentDataEncryptionsListMockTests.java deleted file mode 100644 index 821179be8989..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolTransparentDataEncryptionsListMockTests.java +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.TransparentDataEncryption; -import com.azure.resourcemanager.synapse.models.TransparentDataEncryptionStatus; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolTransparentDataEncryptionsListMockTests { - @Test - public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"location\":\"hweebiph\",\"properties\":{\"status\":\"Enabled\"},\"id\":\"jw\",\"name\":\"w\",\"type\":\"qsratjhd\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager - .sqlPoolTransparentDataEncryptions() - .list("epywyjlnldpxottd", "i", "ocqibz", com.azure.core.util.Context.NONE); - - Assertions.assertEquals(TransparentDataEncryptionStatus.ENABLED, response.iterator().next().status()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolUsageInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolUsageInnerTests.java deleted file mode 100644 index bdcf0a591647..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolUsageInnerTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.SqlPoolUsageInner; - -public final class SqlPoolUsageInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SqlPoolUsageInner model = - BinaryData - .fromString( - "{\"name\":\"lxgwimfnjhf\",\"resourceName\":\"wmszkk\",\"displayName\":\"qreyfkzi\",\"currentValue\":47.32813703422634,\"limit\":4.556100953874753,\"unit\":\"ivx\",\"nextResetTime\":\"2021-12-04T11:19:32Z\"}") - .toObject(SqlPoolUsageInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlPoolUsageInner model = new SqlPoolUsageInner(); - model = BinaryData.fromObject(model).toObject(SqlPoolUsageInner.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolUsageListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolUsageListResultTests.java deleted file mode 100644 index ac52a4ef9b14..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolUsageListResultTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.SqlPoolUsageInner; -import com.azure.resourcemanager.synapse.models.SqlPoolUsageListResult; -import java.util.Arrays; - -public final class SqlPoolUsageListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SqlPoolUsageListResult model = - BinaryData - .fromString( - "{\"value\":[{\"name\":\"rwyhqmibzyhwitsm\",\"resourceName\":\"yynpcdpumnzgmwz\",\"displayName\":\"abikns\",\"currentValue\":6.618364675171895,\"limit\":92.09110647306585,\"unit\":\"dtlwwrlkd\",\"nextResetTime\":\"2021-01-27T13:38:37Z\"},{\"name\":\"vokotllxdyh\",\"resourceName\":\"y\",\"displayName\":\"ogjltdtbnnhad\",\"currentValue\":62.09409186801451,\"limit\":77.71998697253709,\"unit\":\"khnvpam\",\"nextResetTime\":\"2021-05-20T03:12:36Z\"},{\"name\":\"queziky\",\"resourceName\":\"gxk\",\"displayName\":\"la\",\"currentValue\":43.550551381865965,\"limit\":53.32288334528516,\"unit\":\"iccjzkzivgvvcna\",\"nextResetTime\":\"2021-09-08T02:15:33Z\"},{\"name\":\"rnxxmueed\",\"resourceName\":\"rdvstkwqqtch\",\"displayName\":\"lmfmtdaay\",\"currentValue\":1.7891473583619977,\"limit\":89.32689226569329,\"unit\":\"ohgwxrtfudxepxg\",\"nextResetTime\":\"2020-12-22T18:51:20Z\"}],\"nextLink\":\"vrvmnpkukghim\"}") - .toObject(SqlPoolUsageListResult.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlPoolUsageListResult model = - new SqlPoolUsageListResult() - .withValue( - Arrays - .asList( - new SqlPoolUsageInner(), - new SqlPoolUsageInner(), - new SqlPoolUsageInner(), - new SqlPoolUsageInner())); - model = BinaryData.fromObject(model).toObject(SqlPoolUsageListResult.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolUsagesListMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolUsagesListMockTests.java deleted file mode 100644 index e05f80e0f64e..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolUsagesListMockTests.java +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.SqlPoolUsage; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolUsagesListMockTests { - @Test - public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"name\":\"ixdgbyfgwewqkj\",\"resourceName\":\"prwpxsoohu\",\"displayName\":\"lcsklt\",\"currentValue\":72.44728478502968,\"limit\":28.504889051615013,\"unit\":\"lfb\",\"nextResetTime\":\"2021-05-28T15:32:03Z\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager.sqlPoolUsages().list("anmhkscauwazcgw", "friwgybjp", "zokscvg", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselineInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselineInnerTests.java deleted file mode 100644 index f65e063cc81c..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselineInnerTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.SqlPoolVulnerabilityAssessmentRuleBaselineInner; -import com.azure.resourcemanager.synapse.models.SqlPoolVulnerabilityAssessmentRuleBaselineItem; -import java.util.Arrays; - -public final class SqlPoolVulnerabilityAssessmentRuleBaselineInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SqlPoolVulnerabilityAssessmentRuleBaselineInner model = - BinaryData - .fromString( - "{\"properties\":{\"baselineResults\":[{\"result\":[]},{\"result\":[]},{\"result\":[]},{\"result\":[]}]},\"id\":\"x\",\"name\":\"knpirgnepttwq\",\"type\":\"sniffc\"}") - .toObject(SqlPoolVulnerabilityAssessmentRuleBaselineInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlPoolVulnerabilityAssessmentRuleBaselineInner model = - new SqlPoolVulnerabilityAssessmentRuleBaselineInner() - .withBaselineResults( - Arrays - .asList( - new SqlPoolVulnerabilityAssessmentRuleBaselineItem().withResult(Arrays.asList()), - new SqlPoolVulnerabilityAssessmentRuleBaselineItem().withResult(Arrays.asList()), - new SqlPoolVulnerabilityAssessmentRuleBaselineItem().withResult(Arrays.asList()), - new SqlPoolVulnerabilityAssessmentRuleBaselineItem().withResult(Arrays.asList()))); - model = BinaryData.fromObject(model).toObject(SqlPoolVulnerabilityAssessmentRuleBaselineInner.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselineItemTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselineItemTests.java deleted file mode 100644 index a78592098bfa..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselineItemTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.SqlPoolVulnerabilityAssessmentRuleBaselineItem; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class SqlPoolVulnerabilityAssessmentRuleBaselineItemTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SqlPoolVulnerabilityAssessmentRuleBaselineItem model = - BinaryData - .fromString("{\"result\":[\"uswdv\",\"yybyc\",\"unvjsrtkfawnopq\"]}") - .toObject(SqlPoolVulnerabilityAssessmentRuleBaselineItem.class); - Assertions.assertEquals("uswdv", model.result().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlPoolVulnerabilityAssessmentRuleBaselineItem model = - new SqlPoolVulnerabilityAssessmentRuleBaselineItem() - .withResult(Arrays.asList("uswdv", "yybyc", "unvjsrtkfawnopq")); - model = BinaryData.fromObject(model).toObject(SqlPoolVulnerabilityAssessmentRuleBaselineItem.class); - Assertions.assertEquals("uswdv", model.result().get(0)); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinePropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinePropertiesTests.java deleted file mode 100644 index 7570f41220cf..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinePropertiesTests.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.SqlPoolVulnerabilityAssessmentRuleBaselineProperties; -import com.azure.resourcemanager.synapse.models.SqlPoolVulnerabilityAssessmentRuleBaselineItem; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class SqlPoolVulnerabilityAssessmentRuleBaselinePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SqlPoolVulnerabilityAssessmentRuleBaselineProperties model = - BinaryData - .fromString( - "{\"baselineResults\":[{\"result\":[\"nrojlpijnkr\",\"frddhcrati\",\"zronasxift\",\"zq\"]},{\"result\":[\"hftwesgog\"]},{\"result\":[\"honnxkrlgnyhmos\",\"xkk\",\"thrrgh\",\"jbdhqxvc\"]},{\"result\":[\"frpdsofbshrns\"]}]}") - .toObject(SqlPoolVulnerabilityAssessmentRuleBaselineProperties.class); - Assertions.assertEquals("nrojlpijnkr", model.baselineResults().get(0).result().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlPoolVulnerabilityAssessmentRuleBaselineProperties model = - new SqlPoolVulnerabilityAssessmentRuleBaselineProperties() - .withBaselineResults( - Arrays - .asList( - new SqlPoolVulnerabilityAssessmentRuleBaselineItem() - .withResult(Arrays.asList("nrojlpijnkr", "frddhcrati", "zronasxift", "zq")), - new SqlPoolVulnerabilityAssessmentRuleBaselineItem().withResult(Arrays.asList("hftwesgog")), - new SqlPoolVulnerabilityAssessmentRuleBaselineItem() - .withResult(Arrays.asList("honnxkrlgnyhmos", "xkk", "thrrgh", "jbdhqxvc")), - new SqlPoolVulnerabilityAssessmentRuleBaselineItem() - .withResult(Arrays.asList("frpdsofbshrns")))); - model = BinaryData.fromObject(model).toObject(SqlPoolVulnerabilityAssessmentRuleBaselineProperties.class); - Assertions.assertEquals("nrojlpijnkr", model.baselineResults().get(0).result().get(0)); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinesCreateOrUpdateWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinesCreateOrUpdateWithResponseMockTests.java deleted file mode 100644 index 5d390a1b0a98..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinesCreateOrUpdateWithResponseMockTests.java +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.SqlPoolVulnerabilityAssessmentRuleBaseline; -import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; -import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentPolicyBaselineName; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolVulnerabilityAssessmentRuleBaselinesCreateOrUpdateWithResponseMockTests { - @Test - public void testCreateOrUpdateWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"baselineResults\":[]},\"id\":\"gpucdocfq\",\"name\":\"lwgofm\",\"type\":\"xwr\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - SqlPoolVulnerabilityAssessmentRuleBaseline response = - manager - .sqlPoolVulnerabilityAssessmentRuleBaselines() - .define(VulnerabilityAssessmentPolicyBaselineName.DEFAULT) - .withExistingRule( - "hkahmjedbiucvkh", "wmjpjbweunxcqrr", "hu", VulnerabilityAssessmentName.DEFAULT, "ihppiyb") - .withBaselineResults(Arrays.asList()) - .create(); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinesDeleteWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinesDeleteWithResponseMockTests.java deleted file mode 100644 index 31243a369708..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinesDeleteWithResponseMockTests.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; -import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentPolicyBaselineName; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolVulnerabilityAssessmentRuleBaselinesDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .sqlPoolVulnerabilityAssessmentRuleBaselines() - .deleteWithResponse( - "usuaa", - "jakx", - "jnfczmnniixy", - VulnerabilityAssessmentName.DEFAULT, - "qban", - VulnerabilityAssessmentPolicyBaselineName.DEFAULT, - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinesGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinesGetWithResponseMockTests.java deleted file mode 100644 index 4571cf8cbce2..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentRuleBaselinesGetWithResponseMockTests.java +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.SqlPoolVulnerabilityAssessmentRuleBaseline; -import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; -import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentPolicyBaselineName; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolVulnerabilityAssessmentRuleBaselinesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"baselineResults\":[]},\"id\":\"amfdd\",\"name\":\"vlkpzwb\",\"type\":\"nrecchdidrm\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - SqlPoolVulnerabilityAssessmentRuleBaseline response = - manager - .sqlPoolVulnerabilityAssessmentRuleBaselines() - .getWithResponse( - "jtgirnb", - "mgm", - "dorgmynltw", - VulnerabilityAssessmentName.DEFAULT, - "ftmfoeajogsy", - VulnerabilityAssessmentPolicyBaselineName.DEFAULT, - com.azure.core.util.Context.NONE) - .getValue(); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScanExportPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScanExportPropertiesTests.java deleted file mode 100644 index a8c54fa5e1c9..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScanExportPropertiesTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.SqlPoolVulnerabilityAssessmentScanExportProperties; - -public final class SqlPoolVulnerabilityAssessmentScanExportPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SqlPoolVulnerabilityAssessmentScanExportProperties model = - BinaryData - .fromString("{\"exportedReportLocation\":\"aysjkixqtnqttez\"}") - .toObject(SqlPoolVulnerabilityAssessmentScanExportProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlPoolVulnerabilityAssessmentScanExportProperties model = - new SqlPoolVulnerabilityAssessmentScanExportProperties(); - model = BinaryData.fromObject(model).toObject(SqlPoolVulnerabilityAssessmentScanExportProperties.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansExportInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansExportInnerTests.java deleted file mode 100644 index 67eec7f4b3d3..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansExportInnerTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.SqlPoolVulnerabilityAssessmentScansExportInner; - -public final class SqlPoolVulnerabilityAssessmentScansExportInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SqlPoolVulnerabilityAssessmentScansExportInner model = - BinaryData - .fromString( - "{\"properties\":{\"exportedReportLocation\":\"tnkdmkqj\"},\"id\":\"lwuenvrkp\",\"name\":\"ou\",\"type\":\"ibreb\"}") - .toObject(SqlPoolVulnerabilityAssessmentScansExportInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SqlPoolVulnerabilityAssessmentScansExportInner model = new SqlPoolVulnerabilityAssessmentScansExportInner(); - model = BinaryData.fromObject(model).toObject(SqlPoolVulnerabilityAssessmentScansExportInner.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansExportWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansExportWithResponseMockTests.java deleted file mode 100644 index 6f36187a4230..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansExportWithResponseMockTests.java +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.SqlPoolVulnerabilityAssessmentScansExport; -import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolVulnerabilityAssessmentScansExportWithResponseMockTests { - @Test - public void testExportWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"exportedReportLocation\":\"giarksykpgdqxw\"},\"id\":\"b\",\"name\":\"rwiqrxhacl\",\"type\":\"dosqkptjqg\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - SqlPoolVulnerabilityAssessmentScansExport response = - manager - .sqlPoolVulnerabilityAssessmentScans() - .exportWithResponse( - "ysmvxodgwxf", - "zsifcuvbdujgcwx", - "ec", - VulnerabilityAssessmentName.DEFAULT, - "wjtrdxriza", - com.azure.core.util.Context.NONE) - .getValue(); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansGetWithResponseMockTests.java deleted file mode 100644 index fe83042f01f0..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansGetWithResponseMockTests.java +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; -import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentScanRecord; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolVulnerabilityAssessmentScansGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"scanId\":\"elwgvydjufbnkl\",\"triggerType\":\"OnDemand\",\"state\":\"Passed\",\"startTime\":\"2021-05-19T00:09:58Z\",\"endTime\":\"2021-10-19T04:55:03Z\",\"errors\":[],\"storageContainerPath\":\"alf\",\"numberOfFailedSecurityChecks\":516055639},\"id\":\"glzfytl\",\"name\":\"tlqh\",\"type\":\"pxouvmr\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - VulnerabilityAssessmentScanRecord response = - manager - .sqlPoolVulnerabilityAssessmentScans() - .getWithResponse( - "ifmmainwh", - "d", - "kp", - VulnerabilityAssessmentName.DEFAULT, - "wuntobuiz", - com.azure.core.util.Context.NONE) - .getValue(); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansInitiateScanMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansInitiateScanMockTests.java deleted file mode 100644 index 6a8b9dd2ea16..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansInitiateScanMockTests.java +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolVulnerabilityAssessmentScansInitiateScanMockTests { - @Test - public void testInitiateScan() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .sqlPoolVulnerabilityAssessmentScans() - .initiateScan( - "dmncgbf", - "uscstunmlh", - "dfb", - VulnerabilityAssessmentName.DEFAULT, - "ciichgj", - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansListMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansListMockTests.java deleted file mode 100644 index 7cc623ec0293..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentScansListMockTests.java +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; -import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentScanRecord; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolVulnerabilityAssessmentScansListMockTests { - @Test - public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"properties\":{\"scanId\":\"ampqcrzgeuq\",\"triggerType\":\"Recurring\",\"state\":\"Failed\",\"startTime\":\"2021-07-26T16:48:01Z\",\"endTime\":\"2021-01-30T22:45:37Z\",\"errors\":[],\"storageContainerPath\":\"gqdtadrakg\",\"numberOfFailedSecurityChecks\":924951023},\"id\":\"jkrukizyhgsqtnqs\",\"name\":\"txqfpjbq\",\"type\":\"gweeiwd\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager - .sqlPoolVulnerabilityAssessmentScans() - .list( - "pmypgfq", - "mtywhla", - "xpejpewpy", - VulnerabilityAssessmentName.DEFAULT, - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentsDeleteWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentsDeleteWithResponseMockTests.java deleted file mode 100644 index 25b7b1740e9c..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolVulnerabilityAssessmentsDeleteWithResponseMockTests.java +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolVulnerabilityAssessmentsDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .sqlPoolVulnerabilityAssessments() - .deleteWithResponse( - "moxsa", - "uxejgwecywnfyszz", - "czs", - VulnerabilityAssessmentName.DEFAULT, - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifiersCreateOrUpdateMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifiersCreateOrUpdateMockTests.java deleted file mode 100644 index ac8303f4bb1a..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifiersCreateOrUpdateMockTests.java +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.WorkloadClassifier; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolWorkloadClassifiersCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"memberName\":\"ieopexelxqdwr\",\"label\":\"yil\",\"context\":\"ibkgxyxyau\",\"startTime\":\"eddobmcnltm\",\"endTime\":\"tkujsqycm\",\"importance\":\"xfabl\"},\"id\":\"gpwb\",\"name\":\"whrialiwrycgn\",\"type\":\"plrr\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - WorkloadClassifier response = - manager - .sqlPoolWorkloadClassifiers() - .define("ubhg") - .withExistingWorkloadGroup("cmiwdw", "svnmeylajamcajy", "ftpzcrryklleyn", "anhkigglclwalh") - .withMemberName("hetxdqcmyctajqz") - .withLabel("alec") - .withContext("ibiwksdegyxsb") - .withStartTime("zvoikvntwczf") - .withEndTime("ushlcxpblalh") - .withImportance("zpfkis") - .create(); - - Assertions.assertEquals("ieopexelxqdwr", response.memberName()); - Assertions.assertEquals("yil", response.label()); - Assertions.assertEquals("ibkgxyxyau", response.context()); - Assertions.assertEquals("eddobmcnltm", response.startTime()); - Assertions.assertEquals("tkujsqycm", response.endTime()); - Assertions.assertEquals("xfabl", response.importance()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifiersDeleteMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifiersDeleteMockTests.java deleted file mode 100644 index d2e2f6040f7e..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifiersDeleteMockTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolWorkloadClassifiersDeleteMockTests { - @Test - public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .sqlPoolWorkloadClassifiers() - .delete("xhrptyodlh", "fktltdds", "bjop", "ouhbq", "zkqxsalu", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifiersGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifiersGetWithResponseMockTests.java deleted file mode 100644 index dc50f78a671c..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifiersGetWithResponseMockTests.java +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.WorkloadClassifier; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolWorkloadClassifiersGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"memberName\":\"samonat\",\"label\":\"zexroqsqjgh\",\"context\":\"thsplwsttxsr\",\"startTime\":\"fq\",\"endTime\":\"niceovxgzwh\",\"importance\":\"yrujm\"},\"id\":\"i\",\"name\":\"eslikyohzixyqhf\",\"type\":\"kvycqqqdseipnquw\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - WorkloadClassifier response = - manager - .sqlPoolWorkloadClassifiers() - .getWithResponse( - "oyj", - "mfqzwqdnx", - "eedcnwmywx", - "qzkvemyzdpczaq", - "qifdbmptrwtxz", - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("samonat", response.memberName()); - Assertions.assertEquals("zexroqsqjgh", response.label()); - Assertions.assertEquals("thsplwsttxsr", response.context()); - Assertions.assertEquals("fq", response.startTime()); - Assertions.assertEquals("niceovxgzwh", response.endTime()); - Assertions.assertEquals("yrujm", response.importance()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifiersListMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifiersListMockTests.java deleted file mode 100644 index 7a5c79faf95e..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadClassifiersListMockTests.java +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.WorkloadClassifier; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolWorkloadClassifiersListMockTests { - @Test - public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"properties\":{\"memberName\":\"yqmrejpa\",\"label\":\"pvgrszr\",\"context\":\"tdrcwgzwl\",\"startTime\":\"zlhhfix\",\"endTime\":\"fculzjrmhpfyw\",\"importance\":\"ldqpzf\"},\"id\":\"xsoxi\",\"name\":\"unjlzkdrocq\",\"type\":\"xytqq\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager - .sqlPoolWorkloadClassifiers() - .list("yigfcvcew", "wqhdgsjsa", "mrncmaz", "fsq", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("yqmrejpa", response.iterator().next().memberName()); - Assertions.assertEquals("pvgrszr", response.iterator().next().label()); - Assertions.assertEquals("tdrcwgzwl", response.iterator().next().context()); - Assertions.assertEquals("zlhhfix", response.iterator().next().startTime()); - Assertions.assertEquals("fculzjrmhpfyw", response.iterator().next().endTime()); - Assertions.assertEquals("ldqpzf", response.iterator().next().importance()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupsCreateOrUpdateMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupsCreateOrUpdateMockTests.java deleted file mode 100644 index d6f46afa5147..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupsCreateOrUpdateMockTests.java +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.WorkloadGroup; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolWorkloadGroupsCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"minResourcePercent\":453404729,\"maxResourcePercent\":674809851,\"minResourcePercentPerRequest\":32.96738546288102,\"maxResourcePercentPerRequest\":30.618266500851867,\"importance\":\"oejng\",\"queryExecutionTimeout\":1730568794},\"id\":\"s\",\"name\":\"daxjsum\",\"type\":\"pezco\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - WorkloadGroup response = - manager - .sqlPoolWorkloadGroups() - .define("qgkujds") - .withExistingSqlPool("tqm", "wz", "drpizfulgyctsdb") - .withMinResourcePercent(1079434333) - .withMaxResourcePercent(31780783) - .withMinResourcePercentPerRequest(78.9520427818557) - .withMaxResourcePercentPerRequest(89.21254465206381D) - .withImportance("btigapdyarikeejd") - .withQueryExecutionTimeout(348647398) - .create(); - - Assertions.assertEquals(453404729, response.minResourcePercent()); - Assertions.assertEquals(674809851, response.maxResourcePercent()); - Assertions.assertEquals(32.96738546288102, response.minResourcePercentPerRequest()); - Assertions.assertEquals(30.618266500851867D, response.maxResourcePercentPerRequest()); - Assertions.assertEquals("oejng", response.importance()); - Assertions.assertEquals(1730568794, response.queryExecutionTimeout()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupsDeleteMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupsDeleteMockTests.java deleted file mode 100644 index 75faff31a1b0..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupsDeleteMockTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolWorkloadGroupsDeleteMockTests { - @Test - public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .sqlPoolWorkloadGroups() - .delete("fxlupibaq", "izxzpzweghl", "wbogvgfklqiy", "dve", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupsGetWithResponseMockTests.java deleted file mode 100644 index 7f5dbc857c11..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupsGetWithResponseMockTests.java +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.WorkloadGroup; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolWorkloadGroupsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"minResourcePercent\":2137176136,\"maxResourcePercent\":1086346110,\"minResourcePercentPerRequest\":46.161386887148105,\"maxResourcePercentPerRequest\":75.77077117649453,\"importance\":\"xuknsykdtoi\",\"queryExecutionTimeout\":1554888273},\"id\":\"ncdrcoanvxuldx\",\"name\":\"nck\",\"type\":\"nlb\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - WorkloadGroup response = - manager - .sqlPoolWorkloadGroups() - .getWithResponse("zidgzwd", "damisvpztdi", "ykpxkqejt", "j", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(2137176136, response.minResourcePercent()); - Assertions.assertEquals(1086346110, response.maxResourcePercent()); - Assertions.assertEquals(46.161386887148105, response.minResourcePercentPerRequest()); - Assertions.assertEquals(75.77077117649453D, response.maxResourcePercentPerRequest()); - Assertions.assertEquals("xuknsykdtoi", response.importance()); - Assertions.assertEquals(1554888273, response.queryExecutionTimeout()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupsListMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupsListMockTests.java deleted file mode 100644 index 71df6f70a5cf..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolWorkloadGroupsListMockTests.java +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.WorkloadGroup; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolWorkloadGroupsListMockTests { - @Test - public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"properties\":{\"minResourcePercent\":282880446,\"maxResourcePercent\":1621480813,\"minResourcePercentPerRequest\":1.0193954701750108,\"maxResourcePercentPerRequest\":98.46606066426715,\"importance\":\"a\",\"queryExecutionTimeout\":1738475675},\"id\":\"qaqotnn\",\"name\":\"xolousdv\",\"type\":\"g\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager.sqlPoolWorkloadGroups().list("elsbfvd", "trkzxsgtznsvlrds", "o", com.azure.core.util.Context.NONE); - - Assertions.assertEquals(282880446, response.iterator().next().minResourcePercent()); - Assertions.assertEquals(1621480813, response.iterator().next().maxResourcePercent()); - Assertions.assertEquals(1.0193954701750108, response.iterator().next().minResourcePercentPerRequest()); - Assertions.assertEquals(98.46606066426715D, response.iterator().next().maxResourcePercentPerRequest()); - Assertions.assertEquals("a", response.iterator().next().importance()); - Assertions.assertEquals(1738475675, response.iterator().next().queryExecutionTimeout()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolsCreateMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolsCreateMockTests.java deleted file mode 100644 index 47fe0daaa6f6..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolsCreateMockTests.java +++ /dev/null @@ -1,112 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.CreateMode; -import com.azure.resourcemanager.synapse.models.Sku; -import com.azure.resourcemanager.synapse.models.SqlPool; -import com.azure.resourcemanager.synapse.models.StorageAccountType; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolsCreateMockTests { - @Test - public void testCreate() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"sku\":{\"tier\":\"cnadbuwqrgxf\",\"name\":\"mqiyn\",\"capacity\":1277204579},\"properties\":{\"maxSizeBytes\":8493195048582783222,\"collation\":\"kiiwvmtu\",\"sourceDatabaseId\":\"pymdjfuax\",\"recoverableDatabaseId\":\"qvqpilrg\",\"provisioningState\":\"Succeeded\",\"status\":\"x\",\"restorePointInTime\":\"2021-02-04T06:25:12Z\",\"createMode\":\"Default\",\"creationDate\":\"2021-10-19T15:40:56Z\",\"storageAccountType\":\"GRS\",\"sourceDatabaseDeletionDate\":\"2021-01-30T10:04:36Z\"},\"location\":\"fqep\",\"tags\":{\"vpjbowcpjqduq\":\"ltuubw\"},\"id\":\"ixexkydfbwljavhu\",\"name\":\"rkjd\",\"type\":\"vrg\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - SqlPool response = - manager - .sqlPools() - .define("zbeqrztrxa") - .withRegion("fquwzpwiibel") - .withExistingWorkspace("yubqjr", "stvrjeqmt") - .withTags(mapOf("tbxxniuisd", "rwkwbpjxljtxbus")) - .withSku(new Sku().withTier("d").withName("bsrwrsnrhpqat").withCapacity(1985543449)) - .withMaxSizeBytes(575751252969177352L) - .withCollation("xkvvcs") - .withSourceDatabaseId("svuv") - .withRecoverableDatabaseId("kqxetqmmliv") - .withProvisioningState("jxnw") - .withRestorePointInTime(OffsetDateTime.parse("2021-07-27T18:54:55Z")) - .withCreateMode(CreateMode.DEFAULT) - .withStorageAccountType(StorageAccountType.GRS) - .withSourceDatabaseDeletionDate(OffsetDateTime.parse("2021-04-29T09:33:37Z")) - .create(); - - Assertions.assertEquals("fqep", response.location()); - Assertions.assertEquals("ltuubw", response.tags().get("vpjbowcpjqduq")); - Assertions.assertEquals("cnadbuwqrgxf", response.sku().tier()); - Assertions.assertEquals("mqiyn", response.sku().name()); - Assertions.assertEquals(1277204579, response.sku().capacity()); - Assertions.assertEquals(8493195048582783222L, response.maxSizeBytes()); - Assertions.assertEquals("kiiwvmtu", response.collation()); - Assertions.assertEquals("pymdjfuax", response.sourceDatabaseId()); - Assertions.assertEquals("qvqpilrg", response.recoverableDatabaseId()); - Assertions.assertEquals("Succeeded", response.provisioningState()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-04T06:25:12Z"), response.restorePointInTime()); - Assertions.assertEquals(CreateMode.DEFAULT, response.createMode()); - Assertions.assertEquals(StorageAccountType.GRS, response.storageAccountType()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-30T10:04:36Z"), response.sourceDatabaseDeletionDate()); - } - - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolsDeleteMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolsDeleteMockTests.java deleted file mode 100644 index 321de8acc6ff..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolsDeleteMockTests.java +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.CreateMode; -import com.azure.resourcemanager.synapse.models.SqlPool; -import com.azure.resourcemanager.synapse.models.StorageAccountType; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolsDeleteMockTests { - @Test - public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"sku\":{\"tier\":\"gfgf\",\"name\":\"jrykwlefksxqce\",\"capacity\":119953679},\"properties\":{\"maxSizeBytes\":428961828074750240,\"collation\":\"qvzvlu\",\"sourceDatabaseId\":\"qa\",\"recoverableDatabaseId\":\"ssscyvai\",\"provisioningState\":\"Succeeded\",\"status\":\"cvfyeowpsfxtjdhs\",\"restorePointInTime\":\"2021-10-20T12:49:56Z\",\"createMode\":\"Restore\",\"creationDate\":\"2021-06-14T00:45:35Z\",\"storageAccountType\":\"LRS\",\"sourceDatabaseDeletionDate\":\"2021-11-12T07:02:25Z\"},\"location\":\"tehdpboujs\",\"tags\":{\"ygnxcgjtfrnqukt\":\"vvdshxcdedsue\",\"trwntfmtbgw\":\"fnslnlrxsmy\",\"eyz\":\"dxwnazkurrd\",\"uzu\":\"whsetwwjwzzqs\"},\"id\":\"kykcyqhyqqzz\",\"name\":\"c\",\"type\":\"keys\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - SqlPool response = manager.sqlPools().delete("ljssm", "tsnld", "pwolgisubxb", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("tehdpboujs", response.location()); - Assertions.assertEquals("vvdshxcdedsue", response.tags().get("ygnxcgjtfrnqukt")); - Assertions.assertEquals("gfgf", response.sku().tier()); - Assertions.assertEquals("jrykwlefksxqce", response.sku().name()); - Assertions.assertEquals(119953679, response.sku().capacity()); - Assertions.assertEquals(428961828074750240L, response.maxSizeBytes()); - Assertions.assertEquals("qvzvlu", response.collation()); - Assertions.assertEquals("qa", response.sourceDatabaseId()); - Assertions.assertEquals("ssscyvai", response.recoverableDatabaseId()); - Assertions.assertEquals("Succeeded", response.provisioningState()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-20T12:49:56Z"), response.restorePointInTime()); - Assertions.assertEquals(CreateMode.RESTORE, response.createMode()); - Assertions.assertEquals(StorageAccountType.LRS, response.storageAccountType()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-12T07:02:25Z"), response.sourceDatabaseDeletionDate()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolsGetWithResponseMockTests.java deleted file mode 100644 index 0051d7b7b0ba..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolsGetWithResponseMockTests.java +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.CreateMode; -import com.azure.resourcemanager.synapse.models.SqlPool; -import com.azure.resourcemanager.synapse.models.StorageAccountType; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"sku\":{\"tier\":\"tkgsuxunrswgkpj\",\"name\":\"oyikebhuhks\",\"capacity\":1524104857},\"properties\":{\"maxSizeBytes\":1934129892108471165,\"collation\":\"eoijyzcqypzqzufg\",\"sourceDatabaseId\":\"fejyvdwtfxptpqa\",\"recoverableDatabaseId\":\"mkncfgybmxsnxo\",\"provisioningState\":\"ullojk\",\"status\":\"yhgww\",\"restorePointInTime\":\"2021-03-30T05:34:26Z\",\"createMode\":\"Default\",\"creationDate\":\"2021-05-01T10:12:57Z\",\"storageAccountType\":\"LRS\",\"sourceDatabaseDeletionDate\":\"2020-12-23T13:16:04Z\"},\"location\":\"yrcvuqbsgzlrq\",\"tags\":{\"gdxwbsfpyxx\":\"nq\",\"ecominxojjluxxd\":\"jlf\",\"dzzqjmu\":\"ilz\",\"ovribq\":\"za\"},\"id\":\"otokhtvwtaznk\",\"name\":\"qww\",\"type\":\"wjyofgwhnkbtl\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - SqlPool response = - manager - .sqlPools() - .getWithResponse("xbibanbaupw", "zvpaklozkxbzrpej", "lssan", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("yrcvuqbsgzlrq", response.location()); - Assertions.assertEquals("nq", response.tags().get("gdxwbsfpyxx")); - Assertions.assertEquals("tkgsuxunrswgkpj", response.sku().tier()); - Assertions.assertEquals("oyikebhuhks", response.sku().name()); - Assertions.assertEquals(1524104857, response.sku().capacity()); - Assertions.assertEquals(1934129892108471165L, response.maxSizeBytes()); - Assertions.assertEquals("eoijyzcqypzqzufg", response.collation()); - Assertions.assertEquals("fejyvdwtfxptpqa", response.sourceDatabaseId()); - Assertions.assertEquals("mkncfgybmxsnxo", response.recoverableDatabaseId()); - Assertions.assertEquals("ullojk", response.provisioningState()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-30T05:34:26Z"), response.restorePointInTime()); - Assertions.assertEquals(CreateMode.DEFAULT, response.createMode()); - Assertions.assertEquals(StorageAccountType.LRS, response.storageAccountType()); - Assertions.assertEquals(OffsetDateTime.parse("2020-12-23T13:16:04Z"), response.sourceDatabaseDeletionDate()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolsListByWorkspaceMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolsListByWorkspaceMockTests.java deleted file mode 100644 index 914149025d9a..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolsListByWorkspaceMockTests.java +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.CreateMode; -import com.azure.resourcemanager.synapse.models.SqlPool; -import com.azure.resourcemanager.synapse.models.StorageAccountType; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolsListByWorkspaceMockTests { - @Test - public void testListByWorkspace() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"sku\":{\"tier\":\"pvozglqjbknlzc\",\"name\":\"tzeyowmndcovd\",\"capacity\":1784939466},\"properties\":{\"maxSizeBytes\":7398433099501562238,\"collation\":\"nhmkvfruwku\",\"sourceDatabaseId\":\"bcpftxudqyemebun\",\"recoverableDatabaseId\":\"cmcir\",\"provisioningState\":\"eemmjauwcgx\",\"status\":\"noh\",\"restorePointInTime\":\"2021-06-10T07:29:48Z\",\"createMode\":\"Restore\",\"creationDate\":\"2021-08-02T08:56:51Z\",\"storageAccountType\":\"GRS\",\"sourceDatabaseDeletionDate\":\"2021-03-02T16:05:57Z\"},\"location\":\"gudasmxubvfb\",\"tags\":{\"hpriylfm\":\"coce\",\"vhl\":\"ztraud\",\"tmojhvrztnvgyshq\":\"dculregp\"},\"id\":\"dgrtwmew\",\"name\":\"zlpykcfazzwjcay\",\"type\":\"rzrr\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager.sqlPools().listByWorkspace("ewfopazdazg", "sqgpewqcfu", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("gudasmxubvfb", response.iterator().next().location()); - Assertions.assertEquals("coce", response.iterator().next().tags().get("hpriylfm")); - Assertions.assertEquals("pvozglqjbknlzc", response.iterator().next().sku().tier()); - Assertions.assertEquals("tzeyowmndcovd", response.iterator().next().sku().name()); - Assertions.assertEquals(1784939466, response.iterator().next().sku().capacity()); - Assertions.assertEquals(7398433099501562238L, response.iterator().next().maxSizeBytes()); - Assertions.assertEquals("nhmkvfruwku", response.iterator().next().collation()); - Assertions.assertEquals("bcpftxudqyemebun", response.iterator().next().sourceDatabaseId()); - Assertions.assertEquals("cmcir", response.iterator().next().recoverableDatabaseId()); - Assertions.assertEquals("eemmjauwcgx", response.iterator().next().provisioningState()); - Assertions - .assertEquals( - OffsetDateTime.parse("2021-06-10T07:29:48Z"), response.iterator().next().restorePointInTime()); - Assertions.assertEquals(CreateMode.RESTORE, response.iterator().next().createMode()); - Assertions.assertEquals(StorageAccountType.GRS, response.iterator().next().storageAccountType()); - Assertions - .assertEquals( - OffsetDateTime.parse("2021-03-02T16:05:57Z"), response.iterator().next().sourceDatabaseDeletionDate()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolsPauseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolsPauseMockTests.java deleted file mode 100644 index 4050c1bd3158..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolsPauseMockTests.java +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.CreateMode; -import com.azure.resourcemanager.synapse.models.SqlPool; -import com.azure.resourcemanager.synapse.models.StorageAccountType; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolsPauseMockTests { - @Test - public void testPause() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"sku\":{\"tier\":\"fqwtltngvm\",\"name\":\"uptrklz\",\"capacity\":1008629589},\"properties\":{\"maxSizeBytes\":1427322319045036829,\"collation\":\"xfsv\",\"sourceDatabaseId\":\"h\",\"recoverableDatabaseId\":\"ynwlslrcigtzjcv\",\"provisioningState\":\"Succeeded\",\"status\":\"xpavid\",\"restorePointInTime\":\"2021-01-18T02:31:50Z\",\"createMode\":\"PointInTimeRestore\",\"creationDate\":\"2021-08-20T14:25:11Z\",\"storageAccountType\":\"LRS\",\"sourceDatabaseDeletionDate\":\"2021-01-18T14:39:45Z\"},\"location\":\"ezslp\",\"tags\":{\"gpazwu\":\"cbdsvalpnptwtrk\",\"qvn\":\"x\",\"gqlmfaewzgi\":\"obfelhldiuhz\",\"qhnmhk\":\"djpxpqht\"},\"id\":\"ezsdsuxheq\",\"name\":\"gcruxspinym\",\"type\":\"qgwokmikp\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - SqlPool response = - manager.sqlPools().pause("nsyby", "polwzrghsrlei", "kfscjfncjwv", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("ezslp", response.location()); - Assertions.assertEquals("cbdsvalpnptwtrk", response.tags().get("gpazwu")); - Assertions.assertEquals("fqwtltngvm", response.sku().tier()); - Assertions.assertEquals("uptrklz", response.sku().name()); - Assertions.assertEquals(1008629589, response.sku().capacity()); - Assertions.assertEquals(1427322319045036829L, response.maxSizeBytes()); - Assertions.assertEquals("xfsv", response.collation()); - Assertions.assertEquals("h", response.sourceDatabaseId()); - Assertions.assertEquals("ynwlslrcigtzjcv", response.recoverableDatabaseId()); - Assertions.assertEquals("Succeeded", response.provisioningState()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-18T02:31:50Z"), response.restorePointInTime()); - Assertions.assertEquals(CreateMode.POINT_IN_TIME_RESTORE, response.createMode()); - Assertions.assertEquals(StorageAccountType.LRS, response.storageAccountType()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-18T14:39:45Z"), response.sourceDatabaseDeletionDate()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolsRenameWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolsRenameWithResponseMockTests.java deleted file mode 100644 index 663b740e2869..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolsRenameWithResponseMockTests.java +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.ResourceMoveDefinition; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolsRenameWithResponseMockTests { - @Test - public void testRenameWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .sqlPools() - .renameWithResponse( - "sbvr", - "aqgvto", - "rulfuct", - new ResourceMoveDefinition().withId("jrthcfjzhx"), - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolsResumeMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolsResumeMockTests.java deleted file mode 100644 index 74e9014a405f..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SqlPoolsResumeMockTests.java +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.CreateMode; -import com.azure.resourcemanager.synapse.models.SqlPool; -import com.azure.resourcemanager.synapse.models.StorageAccountType; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class SqlPoolsResumeMockTests { - @Test - public void testResume() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"sku\":{\"tier\":\"xwgiks\",\"name\":\"vtooxrpo\",\"capacity\":1965828924},\"properties\":{\"maxSizeBytes\":5459654282928424634,\"collation\":\"t\",\"sourceDatabaseId\":\"tukfacih\",\"recoverableDatabaseId\":\"fntumeezbxvqx\",\"provisioningState\":\"Succeeded\",\"status\":\"sgomtmjz\",\"restorePointInTime\":\"2021-10-20T22:57:09Z\",\"createMode\":\"Recovery\",\"creationDate\":\"2021-07-29T00:46:34Z\",\"storageAccountType\":\"GRS\",\"sourceDatabaseDeletionDate\":\"2021-07-02T06:01:53Z\"},\"location\":\"wztjfmk\",\"tags\":{\"ll\":\"gfredmlscg\",\"azhpabacoml\":\"cnaovjo\",\"nmvceb\":\"otgkwsxnsrqorcg\",\"dcqjkedwqurc\":\"eetqujxcxxq\"},\"id\":\"ojmrvvxwjongzse\",\"name\":\"qqrsil\",\"type\":\"chskxxka\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - SqlPool response = - manager - .sqlPools() - .resume("zfbmjxuv", "ipfdvhaxdvwzaehp", "hthdklmvetatlakf", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("wztjfmk", response.location()); - Assertions.assertEquals("gfredmlscg", response.tags().get("ll")); - Assertions.assertEquals("xwgiks", response.sku().tier()); - Assertions.assertEquals("vtooxrpo", response.sku().name()); - Assertions.assertEquals(1965828924, response.sku().capacity()); - Assertions.assertEquals(5459654282928424634L, response.maxSizeBytes()); - Assertions.assertEquals("t", response.collation()); - Assertions.assertEquals("tukfacih", response.sourceDatabaseId()); - Assertions.assertEquals("fntumeezbxvqx", response.recoverableDatabaseId()); - Assertions.assertEquals("Succeeded", response.provisioningState()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-20T22:57:09Z"), response.restorePointInTime()); - Assertions.assertEquals(CreateMode.RECOVERY, response.createMode()); - Assertions.assertEquals(StorageAccountType.GRS, response.storageAccountType()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-02T06:01:53Z"), response.sourceDatabaseDeletionDate()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisEnvironmentReferenceTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisEnvironmentReferenceTests.java deleted file mode 100644 index 4a20b461fb96..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisEnvironmentReferenceTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.SsisEnvironmentReference; -import org.junit.jupiter.api.Assertions; - -public final class SsisEnvironmentReferenceTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SsisEnvironmentReference model = - BinaryData - .fromString( - "{\"id\":6838146046681775912,\"environmentFolderName\":\"iqch\",\"environmentName\":\"tuicds\",\"referenceType\":\"dfmmpzhzzwvy\"}") - .toObject(SsisEnvironmentReference.class); - Assertions.assertEquals(6838146046681775912L, model.id()); - Assertions.assertEquals("iqch", model.environmentFolderName()); - Assertions.assertEquals("tuicds", model.environmentName()); - Assertions.assertEquals("dfmmpzhzzwvy", model.referenceType()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisEnvironmentReference model = - new SsisEnvironmentReference() - .withId(6838146046681775912L) - .withEnvironmentFolderName("iqch") - .withEnvironmentName("tuicds") - .withReferenceType("dfmmpzhzzwvy"); - model = BinaryData.fromObject(model).toObject(SsisEnvironmentReference.class); - Assertions.assertEquals(6838146046681775912L, model.id()); - Assertions.assertEquals("iqch", model.environmentFolderName()); - Assertions.assertEquals("tuicds", model.environmentName()); - Assertions.assertEquals("dfmmpzhzzwvy", model.referenceType()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisEnvironmentTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisEnvironmentTests.java deleted file mode 100644 index ba0b1c4386f6..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisEnvironmentTests.java +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.SsisEnvironment; -import com.azure.resourcemanager.synapse.models.SsisVariable; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class SsisEnvironmentTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SsisEnvironment model = - BinaryData - .fromString( - "{\"type\":\"Environment\",\"folderId\":293197962792845943,\"variables\":[{\"id\":1447837022418760517,\"name\":\"bgvopemt\",\"description\":\"qujlyegqa\",\"dataType\":\"igflqqbtnyjp\",\"sensitive\":false,\"value\":\"bf\",\"sensitiveValue\":\"bmvmsxba\"}],\"id\":484983659590178245,\"name\":\"nkottlwuhv\",\"description\":\"mailfemjj\"}") - .toObject(SsisEnvironment.class); - Assertions.assertEquals(484983659590178245L, model.id()); - Assertions.assertEquals("nkottlwuhv", model.name()); - Assertions.assertEquals("mailfemjj", model.description()); - Assertions.assertEquals(293197962792845943L, model.folderId()); - Assertions.assertEquals(1447837022418760517L, model.variables().get(0).id()); - Assertions.assertEquals("bgvopemt", model.variables().get(0).name()); - Assertions.assertEquals("qujlyegqa", model.variables().get(0).description()); - Assertions.assertEquals("igflqqbtnyjp", model.variables().get(0).dataType()); - Assertions.assertEquals(false, model.variables().get(0).sensitive()); - Assertions.assertEquals("bf", model.variables().get(0).value()); - Assertions.assertEquals("bmvmsxba", model.variables().get(0).sensitiveValue()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisEnvironment model = - new SsisEnvironment() - .withId(484983659590178245L) - .withName("nkottlwuhv") - .withDescription("mailfemjj") - .withFolderId(293197962792845943L) - .withVariables( - Arrays - .asList( - new SsisVariable() - .withId(1447837022418760517L) - .withName("bgvopemt") - .withDescription("qujlyegqa") - .withDataType("igflqqbtnyjp") - .withSensitive(false) - .withValue("bf") - .withSensitiveValue("bmvmsxba"))); - model = BinaryData.fromObject(model).toObject(SsisEnvironment.class); - Assertions.assertEquals(484983659590178245L, model.id()); - Assertions.assertEquals("nkottlwuhv", model.name()); - Assertions.assertEquals("mailfemjj", model.description()); - Assertions.assertEquals(293197962792845943L, model.folderId()); - Assertions.assertEquals(1447837022418760517L, model.variables().get(0).id()); - Assertions.assertEquals("bgvopemt", model.variables().get(0).name()); - Assertions.assertEquals("qujlyegqa", model.variables().get(0).description()); - Assertions.assertEquals("igflqqbtnyjp", model.variables().get(0).dataType()); - Assertions.assertEquals(false, model.variables().get(0).sensitive()); - Assertions.assertEquals("bf", model.variables().get(0).value()); - Assertions.assertEquals("bmvmsxba", model.variables().get(0).sensitiveValue()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisFolderTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisFolderTests.java deleted file mode 100644 index a144ef7bc7e7..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisFolderTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.SsisFolder; -import org.junit.jupiter.api.Assertions; - -public final class SsisFolderTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SsisFolder model = - BinaryData - .fromString( - "{\"type\":\"Folder\",\"id\":9026085533674004933,\"name\":\"nl\",\"description\":\"mxcpwzvmdoks\"}") - .toObject(SsisFolder.class); - Assertions.assertEquals(9026085533674004933L, model.id()); - Assertions.assertEquals("nl", model.name()); - Assertions.assertEquals("mxcpwzvmdoks", model.description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisFolder model = new SsisFolder().withId(9026085533674004933L).withName("nl").withDescription("mxcpwzvmdoks"); - model = BinaryData.fromObject(model).toObject(SsisFolder.class); - Assertions.assertEquals(9026085533674004933L, model.id()); - Assertions.assertEquals("nl", model.name()); - Assertions.assertEquals("mxcpwzvmdoks", model.description()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisObjectMetadataListResponseInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisObjectMetadataListResponseInnerTests.java deleted file mode 100644 index 420e5cc334c3..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisObjectMetadataListResponseInnerTests.java +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.SsisObjectMetadataListResponseInner; -import com.azure.resourcemanager.synapse.models.SsisObjectMetadata; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class SsisObjectMetadataListResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SsisObjectMetadataListResponseInner model = - BinaryData - .fromString( - "{\"value\":[{\"type\":\"SsisObjectMetadata\",\"id\":4290491258630313761,\"name\":\"qalarvlagunbtg\",\"description\":\"bwln\"},{\"type\":\"SsisObjectMetadata\",\"id\":6785534445230421786,\"name\":\"e\",\"description\":\"dzqavbpdqmjxlyyz\"},{\"type\":\"SsisObjectMetadata\",\"id\":8314033620834020740,\"name\":\"wtlmjjyuo\",\"description\":\"tob\"}],\"nextLink\":\"kjeytunl\"}") - .toObject(SsisObjectMetadataListResponseInner.class); - Assertions.assertEquals(4290491258630313761L, model.value().get(0).id()); - Assertions.assertEquals("qalarvlagunbtg", model.value().get(0).name()); - Assertions.assertEquals("bwln", model.value().get(0).description()); - Assertions.assertEquals("kjeytunl", model.nextLink()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisObjectMetadataListResponseInner model = - new SsisObjectMetadataListResponseInner() - .withValue( - Arrays - .asList( - new SsisObjectMetadata() - .withId(4290491258630313761L) - .withName("qalarvlagunbtg") - .withDescription("bwln"), - new SsisObjectMetadata() - .withId(6785534445230421786L) - .withName("e") - .withDescription("dzqavbpdqmjxlyyz"), - new SsisObjectMetadata() - .withId(8314033620834020740L) - .withName("wtlmjjyuo") - .withDescription("tob"))) - .withNextLink("kjeytunl"); - model = BinaryData.fromObject(model).toObject(SsisObjectMetadataListResponseInner.class); - Assertions.assertEquals(4290491258630313761L, model.value().get(0).id()); - Assertions.assertEquals("qalarvlagunbtg", model.value().get(0).name()); - Assertions.assertEquals("bwln", model.value().get(0).description()); - Assertions.assertEquals("kjeytunl", model.nextLink()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisObjectMetadataStatusResponseInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisObjectMetadataStatusResponseInnerTests.java deleted file mode 100644 index 6c2ee9d284f3..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisObjectMetadataStatusResponseInnerTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.SsisObjectMetadataStatusResponseInner; -import org.junit.jupiter.api.Assertions; - -public final class SsisObjectMetadataStatusResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SsisObjectMetadataStatusResponseInner model = - BinaryData - .fromString("{\"status\":\"rpqaf\",\"name\":\"ug\",\"properties\":\"n\",\"error\":\"yetefyp\"}") - .toObject(SsisObjectMetadataStatusResponseInner.class); - Assertions.assertEquals("rpqaf", model.status()); - Assertions.assertEquals("ug", model.name()); - Assertions.assertEquals("n", model.properties()); - Assertions.assertEquals("yetefyp", model.error()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisObjectMetadataStatusResponseInner model = - new SsisObjectMetadataStatusResponseInner() - .withStatus("rpqaf") - .withName("ug") - .withProperties("n") - .withError("yetefyp"); - model = BinaryData.fromObject(model).toObject(SsisObjectMetadataStatusResponseInner.class); - Assertions.assertEquals("rpqaf", model.status()); - Assertions.assertEquals("ug", model.name()); - Assertions.assertEquals("n", model.properties()); - Assertions.assertEquals("yetefyp", model.error()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisObjectMetadataTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisObjectMetadataTests.java deleted file mode 100644 index d4c45c075929..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisObjectMetadataTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.SsisObjectMetadata; -import org.junit.jupiter.api.Assertions; - -public final class SsisObjectMetadataTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SsisObjectMetadata model = - BinaryData - .fromString( - "{\"type\":\"SsisObjectMetadata\",\"id\":1092833770450672714,\"name\":\"rusnk\",\"description\":\"hsyrqunj\"}") - .toObject(SsisObjectMetadata.class); - Assertions.assertEquals(1092833770450672714L, model.id()); - Assertions.assertEquals("rusnk", model.name()); - Assertions.assertEquals("hsyrqunj", model.description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisObjectMetadata model = - new SsisObjectMetadata().withId(1092833770450672714L).withName("rusnk").withDescription("hsyrqunj"); - model = BinaryData.fromObject(model).toObject(SsisObjectMetadata.class); - Assertions.assertEquals(1092833770450672714L, model.id()); - Assertions.assertEquals("rusnk", model.name()); - Assertions.assertEquals("hsyrqunj", model.description()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisPackageTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisPackageTests.java deleted file mode 100644 index abd3c6012348..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisPackageTests.java +++ /dev/null @@ -1,100 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.SsisPackage; -import com.azure.resourcemanager.synapse.models.SsisParameter; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class SsisPackageTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SsisPackage model = - BinaryData - .fromString( - "{\"type\":\"Package\",\"folderId\":6921489313242944838,\"projectVersion\":958372626502625816,\"projectId\":2450865455344885392,\"parameters\":[{\"id\":9114509081318263307,\"name\":\"ikkgqo\",\"description\":\"wpin\",\"dataType\":\"dvabbxbhmedeilb\",\"required\":true,\"sensitive\":true,\"designDefaultValue\":\"x\",\"defaultValue\":\"rzzihvwypus\",\"sensitiveDefaultValue\":\"jslczwciidj\",\"valueType\":\"lfryvdmvxadqac\",\"valueSet\":false,\"variable\":\"awba\"},{\"id\":4342234065989621574,\"name\":\"t\",\"description\":\"mfczl\",\"dataType\":\"yq\",\"required\":false,\"sensitive\":false,\"designDefaultValue\":\"owoxqmj\",\"defaultValue\":\"jcx\",\"sensitiveDefaultValue\":\"qg\",\"valueType\":\"lusrv\",\"valueSet\":true,\"variable\":\"mjceagbjqvls\"}],\"id\":6263061070290971808,\"name\":\"ashxgonoyjfqi\",\"description\":\"b\"}") - .toObject(SsisPackage.class); - Assertions.assertEquals(6263061070290971808L, model.id()); - Assertions.assertEquals("ashxgonoyjfqi", model.name()); - Assertions.assertEquals("b", model.description()); - Assertions.assertEquals(6921489313242944838L, model.folderId()); - Assertions.assertEquals(958372626502625816L, model.projectVersion()); - Assertions.assertEquals(2450865455344885392L, model.projectId()); - Assertions.assertEquals(9114509081318263307L, model.parameters().get(0).id()); - Assertions.assertEquals("ikkgqo", model.parameters().get(0).name()); - Assertions.assertEquals("wpin", model.parameters().get(0).description()); - Assertions.assertEquals("dvabbxbhmedeilb", model.parameters().get(0).dataType()); - Assertions.assertEquals(true, model.parameters().get(0).required()); - Assertions.assertEquals(true, model.parameters().get(0).sensitive()); - Assertions.assertEquals("x", model.parameters().get(0).designDefaultValue()); - Assertions.assertEquals("rzzihvwypus", model.parameters().get(0).defaultValue()); - Assertions.assertEquals("jslczwciidj", model.parameters().get(0).sensitiveDefaultValue()); - Assertions.assertEquals("lfryvdmvxadqac", model.parameters().get(0).valueType()); - Assertions.assertEquals(false, model.parameters().get(0).valueSet()); - Assertions.assertEquals("awba", model.parameters().get(0).variable()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisPackage model = - new SsisPackage() - .withId(6263061070290971808L) - .withName("ashxgonoyjfqi") - .withDescription("b") - .withFolderId(6921489313242944838L) - .withProjectVersion(958372626502625816L) - .withProjectId(2450865455344885392L) - .withParameters( - Arrays - .asList( - new SsisParameter() - .withId(9114509081318263307L) - .withName("ikkgqo") - .withDescription("wpin") - .withDataType("dvabbxbhmedeilb") - .withRequired(true) - .withSensitive(true) - .withDesignDefaultValue("x") - .withDefaultValue("rzzihvwypus") - .withSensitiveDefaultValue("jslczwciidj") - .withValueType("lfryvdmvxadqac") - .withValueSet(false) - .withVariable("awba"), - new SsisParameter() - .withId(4342234065989621574L) - .withName("t") - .withDescription("mfczl") - .withDataType("yq") - .withRequired(false) - .withSensitive(false) - .withDesignDefaultValue("owoxqmj") - .withDefaultValue("jcx") - .withSensitiveDefaultValue("qg") - .withValueType("lusrv") - .withValueSet(true) - .withVariable("mjceagbjqvls"))); - model = BinaryData.fromObject(model).toObject(SsisPackage.class); - Assertions.assertEquals(6263061070290971808L, model.id()); - Assertions.assertEquals("ashxgonoyjfqi", model.name()); - Assertions.assertEquals("b", model.description()); - Assertions.assertEquals(6921489313242944838L, model.folderId()); - Assertions.assertEquals(958372626502625816L, model.projectVersion()); - Assertions.assertEquals(2450865455344885392L, model.projectId()); - Assertions.assertEquals(9114509081318263307L, model.parameters().get(0).id()); - Assertions.assertEquals("ikkgqo", model.parameters().get(0).name()); - Assertions.assertEquals("wpin", model.parameters().get(0).description()); - Assertions.assertEquals("dvabbxbhmedeilb", model.parameters().get(0).dataType()); - Assertions.assertEquals(true, model.parameters().get(0).required()); - Assertions.assertEquals(true, model.parameters().get(0).sensitive()); - Assertions.assertEquals("x", model.parameters().get(0).designDefaultValue()); - Assertions.assertEquals("rzzihvwypus", model.parameters().get(0).defaultValue()); - Assertions.assertEquals("jslczwciidj", model.parameters().get(0).sensitiveDefaultValue()); - Assertions.assertEquals("lfryvdmvxadqac", model.parameters().get(0).valueType()); - Assertions.assertEquals(false, model.parameters().get(0).valueSet()); - Assertions.assertEquals("awba", model.parameters().get(0).variable()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisParameterTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisParameterTests.java deleted file mode 100644 index e3e61c66ae54..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisParameterTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.SsisParameter; -import org.junit.jupiter.api.Assertions; - -public final class SsisParameterTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SsisParameter model = - BinaryData - .fromString( - "{\"id\":5832025018417417844,\"name\":\"gydgrpxncakiq\",\"description\":\"ndjrkclamggl\",\"dataType\":\"mfejdoqeykglty\",\"required\":true,\"sensitive\":false,\"designDefaultValue\":\"qkaye\",\"defaultValue\":\"xtlgflwfg\",\"sensitiveDefaultValue\":\"iucijjcea\",\"valueType\":\"ijjj\",\"valueSet\":false,\"variable\":\"mcaszknxkv\"}") - .toObject(SsisParameter.class); - Assertions.assertEquals(5832025018417417844L, model.id()); - Assertions.assertEquals("gydgrpxncakiq", model.name()); - Assertions.assertEquals("ndjrkclamggl", model.description()); - Assertions.assertEquals("mfejdoqeykglty", model.dataType()); - Assertions.assertEquals(true, model.required()); - Assertions.assertEquals(false, model.sensitive()); - Assertions.assertEquals("qkaye", model.designDefaultValue()); - Assertions.assertEquals("xtlgflwfg", model.defaultValue()); - Assertions.assertEquals("iucijjcea", model.sensitiveDefaultValue()); - Assertions.assertEquals("ijjj", model.valueType()); - Assertions.assertEquals(false, model.valueSet()); - Assertions.assertEquals("mcaszknxkv", model.variable()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisParameter model = - new SsisParameter() - .withId(5832025018417417844L) - .withName("gydgrpxncakiq") - .withDescription("ndjrkclamggl") - .withDataType("mfejdoqeykglty") - .withRequired(true) - .withSensitive(false) - .withDesignDefaultValue("qkaye") - .withDefaultValue("xtlgflwfg") - .withSensitiveDefaultValue("iucijjcea") - .withValueType("ijjj") - .withValueSet(false) - .withVariable("mcaszknxkv"); - model = BinaryData.fromObject(model).toObject(SsisParameter.class); - Assertions.assertEquals(5832025018417417844L, model.id()); - Assertions.assertEquals("gydgrpxncakiq", model.name()); - Assertions.assertEquals("ndjrkclamggl", model.description()); - Assertions.assertEquals("mfejdoqeykglty", model.dataType()); - Assertions.assertEquals(true, model.required()); - Assertions.assertEquals(false, model.sensitive()); - Assertions.assertEquals("qkaye", model.designDefaultValue()); - Assertions.assertEquals("xtlgflwfg", model.defaultValue()); - Assertions.assertEquals("iucijjcea", model.sensitiveDefaultValue()); - Assertions.assertEquals("ijjj", model.valueType()); - Assertions.assertEquals(false, model.valueSet()); - Assertions.assertEquals("mcaszknxkv", model.variable()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisProjectTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisProjectTests.java deleted file mode 100644 index 6200279b2a22..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisProjectTests.java +++ /dev/null @@ -1,116 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.SsisEnvironmentReference; -import com.azure.resourcemanager.synapse.models.SsisParameter; -import com.azure.resourcemanager.synapse.models.SsisProject; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class SsisProjectTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SsisProject model = - BinaryData - .fromString( - "{\"type\":\"Project\",\"folderId\":5740210743517169719,\"version\":5762565506238596014,\"environmentRefs\":[{\"id\":5678973155741934160,\"environmentFolderName\":\"qba\",\"environmentName\":\"icqchygtv\",\"referenceType\":\"yjanepubdp\"},{\"id\":7570580498222762249,\"environmentFolderName\":\"gx\",\"environmentName\":\"od\",\"referenceType\":\"vohkxdxuws\"},{\"id\":8618235098095691375,\"environmentFolderName\":\"wnosbzlehgcvkbck\",\"environmentName\":\"olg\",\"referenceType\":\"yxpvelszerqze\"},{\"id\":301493278477517465,\"environmentFolderName\":\"intxwa\",\"environmentName\":\"glzoblqwa\",\"referenceType\":\"r\"}],\"parameters\":[{\"id\":2044046453123145189,\"name\":\"qb\",\"description\":\"vafjrqpjiyrqj\",\"dataType\":\"gaxwmzwdfkbnrzo\",\"required\":false,\"sensitive\":true,\"designDefaultValue\":\"qctqjfg\",\"defaultValue\":\"saetgzdgvpyig\",\"sensitiveDefaultValue\":\"qqil\",\"valueType\":\"cduwjoedx\",\"valueSet\":true,\"variable\":\"aifpaurwwgil\"}],\"id\":3426400212722100237,\"name\":\"cdmkxwxdcvjw\",\"description\":\"z\"}") - .toObject(SsisProject.class); - Assertions.assertEquals(3426400212722100237L, model.id()); - Assertions.assertEquals("cdmkxwxdcvjw", model.name()); - Assertions.assertEquals("z", model.description()); - Assertions.assertEquals(5740210743517169719L, model.folderId()); - Assertions.assertEquals(5762565506238596014L, model.version()); - Assertions.assertEquals(5678973155741934160L, model.environmentRefs().get(0).id()); - Assertions.assertEquals("qba", model.environmentRefs().get(0).environmentFolderName()); - Assertions.assertEquals("icqchygtv", model.environmentRefs().get(0).environmentName()); - Assertions.assertEquals("yjanepubdp", model.environmentRefs().get(0).referenceType()); - Assertions.assertEquals(2044046453123145189L, model.parameters().get(0).id()); - Assertions.assertEquals("qb", model.parameters().get(0).name()); - Assertions.assertEquals("vafjrqpjiyrqj", model.parameters().get(0).description()); - Assertions.assertEquals("gaxwmzwdfkbnrzo", model.parameters().get(0).dataType()); - Assertions.assertEquals(false, model.parameters().get(0).required()); - Assertions.assertEquals(true, model.parameters().get(0).sensitive()); - Assertions.assertEquals("qctqjfg", model.parameters().get(0).designDefaultValue()); - Assertions.assertEquals("saetgzdgvpyig", model.parameters().get(0).defaultValue()); - Assertions.assertEquals("qqil", model.parameters().get(0).sensitiveDefaultValue()); - Assertions.assertEquals("cduwjoedx", model.parameters().get(0).valueType()); - Assertions.assertEquals(true, model.parameters().get(0).valueSet()); - Assertions.assertEquals("aifpaurwwgil", model.parameters().get(0).variable()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisProject model = - new SsisProject() - .withId(3426400212722100237L) - .withName("cdmkxwxdcvjw") - .withDescription("z") - .withFolderId(5740210743517169719L) - .withVersion(5762565506238596014L) - .withEnvironmentRefs( - Arrays - .asList( - new SsisEnvironmentReference() - .withId(5678973155741934160L) - .withEnvironmentFolderName("qba") - .withEnvironmentName("icqchygtv") - .withReferenceType("yjanepubdp"), - new SsisEnvironmentReference() - .withId(7570580498222762249L) - .withEnvironmentFolderName("gx") - .withEnvironmentName("od") - .withReferenceType("vohkxdxuws"), - new SsisEnvironmentReference() - .withId(8618235098095691375L) - .withEnvironmentFolderName("wnosbzlehgcvkbck") - .withEnvironmentName("olg") - .withReferenceType("yxpvelszerqze"), - new SsisEnvironmentReference() - .withId(301493278477517465L) - .withEnvironmentFolderName("intxwa") - .withEnvironmentName("glzoblqwa") - .withReferenceType("r"))) - .withParameters( - Arrays - .asList( - new SsisParameter() - .withId(2044046453123145189L) - .withName("qb") - .withDescription("vafjrqpjiyrqj") - .withDataType("gaxwmzwdfkbnrzo") - .withRequired(false) - .withSensitive(true) - .withDesignDefaultValue("qctqjfg") - .withDefaultValue("saetgzdgvpyig") - .withSensitiveDefaultValue("qqil") - .withValueType("cduwjoedx") - .withValueSet(true) - .withVariable("aifpaurwwgil"))); - model = BinaryData.fromObject(model).toObject(SsisProject.class); - Assertions.assertEquals(3426400212722100237L, model.id()); - Assertions.assertEquals("cdmkxwxdcvjw", model.name()); - Assertions.assertEquals("z", model.description()); - Assertions.assertEquals(5740210743517169719L, model.folderId()); - Assertions.assertEquals(5762565506238596014L, model.version()); - Assertions.assertEquals(5678973155741934160L, model.environmentRefs().get(0).id()); - Assertions.assertEquals("qba", model.environmentRefs().get(0).environmentFolderName()); - Assertions.assertEquals("icqchygtv", model.environmentRefs().get(0).environmentName()); - Assertions.assertEquals("yjanepubdp", model.environmentRefs().get(0).referenceType()); - Assertions.assertEquals(2044046453123145189L, model.parameters().get(0).id()); - Assertions.assertEquals("qb", model.parameters().get(0).name()); - Assertions.assertEquals("vafjrqpjiyrqj", model.parameters().get(0).description()); - Assertions.assertEquals("gaxwmzwdfkbnrzo", model.parameters().get(0).dataType()); - Assertions.assertEquals(false, model.parameters().get(0).required()); - Assertions.assertEquals(true, model.parameters().get(0).sensitive()); - Assertions.assertEquals("qctqjfg", model.parameters().get(0).designDefaultValue()); - Assertions.assertEquals("saetgzdgvpyig", model.parameters().get(0).defaultValue()); - Assertions.assertEquals("qqil", model.parameters().get(0).sensitiveDefaultValue()); - Assertions.assertEquals("cduwjoedx", model.parameters().get(0).valueType()); - Assertions.assertEquals(true, model.parameters().get(0).valueSet()); - Assertions.assertEquals("aifpaurwwgil", model.parameters().get(0).variable()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisVariableTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisVariableTests.java deleted file mode 100644 index aedd3c8891be..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/SsisVariableTests.java +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.SsisVariable; -import org.junit.jupiter.api.Assertions; - -public final class SsisVariableTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SsisVariable model = - BinaryData - .fromString( - "{\"id\":1698212736552270549,\"name\":\"jiqul\",\"description\":\"xbdmvrscmqernd\",\"dataType\":\"nyeofltfnnxrk\",\"sensitive\":true,\"value\":\"ynnfmuiii\",\"sensitiveValue\":\"pfoh\"}") - .toObject(SsisVariable.class); - Assertions.assertEquals(1698212736552270549L, model.id()); - Assertions.assertEquals("jiqul", model.name()); - Assertions.assertEquals("xbdmvrscmqernd", model.description()); - Assertions.assertEquals("nyeofltfnnxrk", model.dataType()); - Assertions.assertEquals(true, model.sensitive()); - Assertions.assertEquals("ynnfmuiii", model.value()); - Assertions.assertEquals("pfoh", model.sensitiveValue()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SsisVariable model = - new SsisVariable() - .withId(1698212736552270549L) - .withName("jiqul") - .withDescription("xbdmvrscmqernd") - .withDataType("nyeofltfnnxrk") - .withSensitive(true) - .withValue("ynnfmuiii") - .withSensitiveValue("pfoh"); - model = BinaryData.fromObject(model).toObject(SsisVariable.class); - Assertions.assertEquals(1698212736552270549L, model.id()); - Assertions.assertEquals("jiqul", model.name()); - Assertions.assertEquals("xbdmvrscmqernd", model.description()); - Assertions.assertEquals("nyeofltfnnxrk", model.dataType()); - Assertions.assertEquals(true, model.sensitive()); - Assertions.assertEquals("ynnfmuiii", model.value()); - Assertions.assertEquals("pfoh", model.sensitiveValue()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/TableLevelSharingPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/TableLevelSharingPropertiesTests.java deleted file mode 100644 index 5b2123e05cf5..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/TableLevelSharingPropertiesTests.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.TableLevelSharingProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class TableLevelSharingPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TableLevelSharingProperties model = - BinaryData - .fromString( - "{\"tablesToInclude\":[\"zgwldoychillcec\",\"ehuwaoa\",\"uhicqllizstacsjv\"],\"tablesToExclude\":[\"eftkwqe\",\"pmvssehaep\"],\"externalTablesToInclude\":[\"cxtczhupeukn\",\"jduyyespydjfb\"],\"externalTablesToExclude\":[\"v\"],\"materializedViewsToInclude\":[\"lrtywikdmhlakuf\",\"gbhgau\",\"cdixmx\"],\"materializedViewsToExclude\":[\"sryjqgdkfno\"]}") - .toObject(TableLevelSharingProperties.class); - Assertions.assertEquals("zgwldoychillcec", model.tablesToInclude().get(0)); - Assertions.assertEquals("eftkwqe", model.tablesToExclude().get(0)); - Assertions.assertEquals("cxtczhupeukn", model.externalTablesToInclude().get(0)); - Assertions.assertEquals("v", model.externalTablesToExclude().get(0)); - Assertions.assertEquals("lrtywikdmhlakuf", model.materializedViewsToInclude().get(0)); - Assertions.assertEquals("sryjqgdkfno", model.materializedViewsToExclude().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TableLevelSharingProperties model = - new TableLevelSharingProperties() - .withTablesToInclude(Arrays.asList("zgwldoychillcec", "ehuwaoa", "uhicqllizstacsjv")) - .withTablesToExclude(Arrays.asList("eftkwqe", "pmvssehaep")) - .withExternalTablesToInclude(Arrays.asList("cxtczhupeukn", "jduyyespydjfb")) - .withExternalTablesToExclude(Arrays.asList("v")) - .withMaterializedViewsToInclude(Arrays.asList("lrtywikdmhlakuf", "gbhgau", "cdixmx")) - .withMaterializedViewsToExclude(Arrays.asList("sryjqgdkfno")); - model = BinaryData.fromObject(model).toObject(TableLevelSharingProperties.class); - Assertions.assertEquals("zgwldoychillcec", model.tablesToInclude().get(0)); - Assertions.assertEquals("eftkwqe", model.tablesToExclude().get(0)); - Assertions.assertEquals("cxtczhupeukn", model.externalTablesToInclude().get(0)); - Assertions.assertEquals("v", model.externalTablesToExclude().get(0)); - Assertions.assertEquals("lrtywikdmhlakuf", model.materializedViewsToInclude().get(0)); - Assertions.assertEquals("sryjqgdkfno", model.materializedViewsToExclude().get(0)); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/TransparentDataEncryptionInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/TransparentDataEncryptionInnerTests.java deleted file mode 100644 index 55deaca01f2e..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/TransparentDataEncryptionInnerTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.TransparentDataEncryptionInner; -import com.azure.resourcemanager.synapse.models.TransparentDataEncryptionStatus; -import org.junit.jupiter.api.Assertions; - -public final class TransparentDataEncryptionInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TransparentDataEncryptionInner model = - BinaryData - .fromString( - "{\"location\":\"whojvp\",\"properties\":{\"status\":\"Disabled\"},\"id\":\"xysmoc\",\"name\":\"bq\",\"type\":\"qvmkcxo\"}") - .toObject(TransparentDataEncryptionInner.class); - Assertions.assertEquals(TransparentDataEncryptionStatus.DISABLED, model.status()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TransparentDataEncryptionInner model = - new TransparentDataEncryptionInner().withStatus(TransparentDataEncryptionStatus.DISABLED); - model = BinaryData.fromObject(model).toObject(TransparentDataEncryptionInner.class); - Assertions.assertEquals(TransparentDataEncryptionStatus.DISABLED, model.status()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/TransparentDataEncryptionListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/TransparentDataEncryptionListResultTests.java deleted file mode 100644 index 67a973026994..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/TransparentDataEncryptionListResultTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.TransparentDataEncryptionListResult; - -public final class TransparentDataEncryptionListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TransparentDataEncryptionListResult model = - BinaryData - .fromString( - "{\"value\":[{\"location\":\"lxprglyatddckcbc\",\"properties\":{\"status\":\"Disabled\"},\"id\":\"jxgciqibrh\",\"name\":\"sxsdqrhzoymibm\",\"type\":\"qyib\"},{\"location\":\"wfluszdt\",\"properties\":{\"status\":\"Disabled\"},\"id\":\"wofyyvoqacpiexp\",\"name\":\"tg\",\"type\":\"wbwo\"},{\"location\":\"washr\",\"properties\":{\"status\":\"Disabled\"},\"id\":\"cnqxwbpokulpi\",\"name\":\"jwaa\",\"type\":\"ipqiiobyuqerpq\"}],\"nextLink\":\"qwcciuqg\"}") - .toObject(TransparentDataEncryptionListResult.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TransparentDataEncryptionListResult model = new TransparentDataEncryptionListResult(); - model = BinaryData.fromObject(model).toObject(TransparentDataEncryptionListResult.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/TransparentDataEncryptionPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/TransparentDataEncryptionPropertiesTests.java deleted file mode 100644 index 5fcb3441b103..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/TransparentDataEncryptionPropertiesTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.TransparentDataEncryptionProperties; -import com.azure.resourcemanager.synapse.models.TransparentDataEncryptionStatus; -import org.junit.jupiter.api.Assertions; - -public final class TransparentDataEncryptionPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - TransparentDataEncryptionProperties model = - BinaryData.fromString("{\"status\":\"Disabled\"}").toObject(TransparentDataEncryptionProperties.class); - Assertions.assertEquals(TransparentDataEncryptionStatus.DISABLED, model.status()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - TransparentDataEncryptionProperties model = - new TransparentDataEncryptionProperties().withStatus(TransparentDataEncryptionStatus.DISABLED); - model = BinaryData.fromObject(model).toObject(TransparentDataEncryptionProperties.class); - Assertions.assertEquals(TransparentDataEncryptionStatus.DISABLED, model.status()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/UpdateIntegrationRuntimeNodeRequestTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/UpdateIntegrationRuntimeNodeRequestTests.java deleted file mode 100644 index fccf7946dbe0..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/UpdateIntegrationRuntimeNodeRequestTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.UpdateIntegrationRuntimeNodeRequest; -import org.junit.jupiter.api.Assertions; - -public final class UpdateIntegrationRuntimeNodeRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UpdateIntegrationRuntimeNodeRequest model = - BinaryData - .fromString("{\"concurrentJobsLimit\":1685978755}") - .toObject(UpdateIntegrationRuntimeNodeRequest.class); - Assertions.assertEquals(1685978755, model.concurrentJobsLimit()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UpdateIntegrationRuntimeNodeRequest model = - new UpdateIntegrationRuntimeNodeRequest().withConcurrentJobsLimit(1685978755); - model = BinaryData.fromObject(model).toObject(UpdateIntegrationRuntimeNodeRequest.class); - Assertions.assertEquals(1685978755, model.concurrentJobsLimit()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/UpdateIntegrationRuntimeRequestTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/UpdateIntegrationRuntimeRequestTests.java deleted file mode 100644 index eae209e9310d..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/UpdateIntegrationRuntimeRequestTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.IntegrationRuntimeAutoUpdate; -import com.azure.resourcemanager.synapse.models.UpdateIntegrationRuntimeRequest; -import org.junit.jupiter.api.Assertions; - -public final class UpdateIntegrationRuntimeRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UpdateIntegrationRuntimeRequest model = - BinaryData - .fromString("{\"autoUpdate\":\"Off\",\"updateDelayOffset\":\"bxqmu\"}") - .toObject(UpdateIntegrationRuntimeRequest.class); - Assertions.assertEquals(IntegrationRuntimeAutoUpdate.OFF, model.autoUpdate()); - Assertions.assertEquals("bxqmu", model.updateDelayOffset()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UpdateIntegrationRuntimeRequest model = - new UpdateIntegrationRuntimeRequest() - .withAutoUpdate(IntegrationRuntimeAutoUpdate.OFF) - .withUpdateDelayOffset("bxqmu"); - model = BinaryData.fromObject(model).toObject(UpdateIntegrationRuntimeRequest.class); - Assertions.assertEquals(IntegrationRuntimeAutoUpdate.OFF, model.autoUpdate()); - Assertions.assertEquals("bxqmu", model.updateDelayOffset()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/UserAssignedManagedIdentityTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/UserAssignedManagedIdentityTests.java deleted file mode 100644 index b940e838211f..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/UserAssignedManagedIdentityTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.UserAssignedManagedIdentity; - -public final class UserAssignedManagedIdentityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - UserAssignedManagedIdentity model = - BinaryData - .fromString( - "{\"clientId\":\"b48130cf-4590-48e3-9818-43aa682948d9\",\"principalId\":\"fd70b50b-b90c-4dcd-9c53-d06fda045691\"}") - .toObject(UserAssignedManagedIdentity.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - UserAssignedManagedIdentity model = new UserAssignedManagedIdentity(); - model = BinaryData.fromObject(model).toObject(UserAssignedManagedIdentity.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/VirtualNetworkProfileTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/VirtualNetworkProfileTests.java deleted file mode 100644 index 970708f7da16..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/VirtualNetworkProfileTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.VirtualNetworkProfile; -import org.junit.jupiter.api.Assertions; - -public final class VirtualNetworkProfileTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VirtualNetworkProfile model = - BinaryData.fromString("{\"computeSubnetId\":\"jyihsasbhudypo\"}").toObject(VirtualNetworkProfile.class); - Assertions.assertEquals("jyihsasbhudypo", model.computeSubnetId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VirtualNetworkProfile model = new VirtualNetworkProfile().withComputeSubnetId("jyihsasbhudypo"); - model = BinaryData.fromObject(model).toObject(VirtualNetworkProfile.class); - Assertions.assertEquals("jyihsasbhudypo", model.computeSubnetId()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/VulnerabilityAssessmentRecurringScansPropertiesAutoGeneratedTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/VulnerabilityAssessmentRecurringScansPropertiesAutoGeneratedTests.java deleted file mode 100644 index 96f0d42d20a2..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/VulnerabilityAssessmentRecurringScansPropertiesAutoGeneratedTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class VulnerabilityAssessmentRecurringScansPropertiesAutoGeneratedTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated model = - BinaryData - .fromString( - "{\"isEnabled\":false,\"emailSubscriptionAdmins\":false,\"emails\":[\"ykhyawfvjlboxqvk\",\"lmxhomdyn\"]}") - .toObject(VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated.class); - Assertions.assertEquals(false, model.isEnabled()); - Assertions.assertEquals(false, model.emailSubscriptionAdmins()); - Assertions.assertEquals("ykhyawfvjlboxqvk", model.emails().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated model = - new VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated() - .withIsEnabled(false) - .withEmailSubscriptionAdmins(false) - .withEmails(Arrays.asList("ykhyawfvjlboxqvk", "lmxhomdyn")); - model = - BinaryData.fromObject(model).toObject(VulnerabilityAssessmentRecurringScansPropertiesAutoGenerated.class); - Assertions.assertEquals(false, model.isEnabled()); - Assertions.assertEquals(false, model.emailSubscriptionAdmins()); - Assertions.assertEquals("ykhyawfvjlboxqvk", model.emails().get(0)); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/VulnerabilityAssessmentRecurringScansPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/VulnerabilityAssessmentRecurringScansPropertiesTests.java deleted file mode 100644 index a273cdd4b734..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/VulnerabilityAssessmentRecurringScansPropertiesTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentRecurringScansProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class VulnerabilityAssessmentRecurringScansPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VulnerabilityAssessmentRecurringScansProperties model = - BinaryData - .fromString( - "{\"isEnabled\":false,\"emailSubscriptionAdmins\":true,\"emails\":[\"pmfi\",\"bfggjioolvr\",\"x\"]}") - .toObject(VulnerabilityAssessmentRecurringScansProperties.class); - Assertions.assertEquals(false, model.isEnabled()); - Assertions.assertEquals(true, model.emailSubscriptionAdmins()); - Assertions.assertEquals("pmfi", model.emails().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VulnerabilityAssessmentRecurringScansProperties model = - new VulnerabilityAssessmentRecurringScansProperties() - .withIsEnabled(false) - .withEmailSubscriptionAdmins(true) - .withEmails(Arrays.asList("pmfi", "bfggjioolvr", "x")); - model = BinaryData.fromObject(model).toObject(VulnerabilityAssessmentRecurringScansProperties.class); - Assertions.assertEquals(false, model.isEnabled()); - Assertions.assertEquals(true, model.emailSubscriptionAdmins()); - Assertions.assertEquals("pmfi", model.emails().get(0)); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/VulnerabilityAssessmentScanRecordListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/VulnerabilityAssessmentScanRecordListResultTests.java deleted file mode 100644 index 0c6f3417b275..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/VulnerabilityAssessmentScanRecordListResultTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentScanRecordListResult; - -public final class VulnerabilityAssessmentScanRecordListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - VulnerabilityAssessmentScanRecordListResult model = - BinaryData - .fromString( - "{\"value\":[{\"properties\":{\"scanId\":\"gllqwjy\",\"triggerType\":\"Recurring\",\"state\":\"FailedToRun\",\"startTime\":\"2021-05-06T19:16:01Z\",\"endTime\":\"2021-08-10T18:33:43Z\",\"errors\":[],\"storageContainerPath\":\"k\",\"numberOfFailedSecurityChecks\":2100624724},\"id\":\"bxvvyhg\",\"name\":\"opbyrqufegxu\",\"type\":\"wz\"},{\"properties\":{\"scanId\":\"hlmctlpdngitvgb\",\"triggerType\":\"Recurring\",\"state\":\"Passed\",\"startTime\":\"2021-08-25T00:52:30Z\",\"endTime\":\"2021-01-21T03:55:34Z\",\"errors\":[],\"storageContainerPath\":\"ejvegrhbpnaixex\",\"numberOfFailedSecurityChecks\":69108212},\"id\":\"dreaxh\",\"name\":\"exdrrvqahqkg\",\"type\":\"tpwijnh\"},{\"properties\":{\"scanId\":\"vfycxzb\",\"triggerType\":\"OnDemand\",\"state\":\"Failed\",\"startTime\":\"2021-12-07T13:01:59Z\",\"endTime\":\"2021-02-04T20:53:33Z\",\"errors\":[],\"storageContainerPath\":\"jqppyostronzmy\",\"numberOfFailedSecurityChecks\":1320458581},\"id\":\"ipn\",\"name\":\"xkmcwaekrrjre\",\"type\":\"fxtsgum\"}],\"nextLink\":\"glikkxwslolb\"}") - .toObject(VulnerabilityAssessmentScanRecordListResult.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - VulnerabilityAssessmentScanRecordListResult model = new VulnerabilityAssessmentScanRecordListResult(); - model = BinaryData.fromObject(model).toObject(VulnerabilityAssessmentScanRecordListResult.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkloadClassifierInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkloadClassifierInnerTests.java deleted file mode 100644 index 6fb5efba831a..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkloadClassifierInnerTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.WorkloadClassifierInner; -import org.junit.jupiter.api.Assertions; - -public final class WorkloadClassifierInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - WorkloadClassifierInner model = - BinaryData - .fromString( - "{\"properties\":{\"memberName\":\"vokqdzfv\",\"label\":\"ivjlfrqttbajlka\",\"context\":\"wxyiopidkqq\",\"startTime\":\"uvscxkdmligov\",\"endTime\":\"rxkpmloazuruoc\",\"importance\":\"oorb\"},\"id\":\"eoybfhjxakvvjgs\",\"name\":\"ordilmywwtkgkxny\",\"type\":\"dabg\"}") - .toObject(WorkloadClassifierInner.class); - Assertions.assertEquals("vokqdzfv", model.memberName()); - Assertions.assertEquals("ivjlfrqttbajlka", model.label()); - Assertions.assertEquals("wxyiopidkqq", model.context()); - Assertions.assertEquals("uvscxkdmligov", model.startTime()); - Assertions.assertEquals("rxkpmloazuruoc", model.endTime()); - Assertions.assertEquals("oorb", model.importance()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WorkloadClassifierInner model = - new WorkloadClassifierInner() - .withMemberName("vokqdzfv") - .withLabel("ivjlfrqttbajlka") - .withContext("wxyiopidkqq") - .withStartTime("uvscxkdmligov") - .withEndTime("rxkpmloazuruoc") - .withImportance("oorb"); - model = BinaryData.fromObject(model).toObject(WorkloadClassifierInner.class); - Assertions.assertEquals("vokqdzfv", model.memberName()); - Assertions.assertEquals("ivjlfrqttbajlka", model.label()); - Assertions.assertEquals("wxyiopidkqq", model.context()); - Assertions.assertEquals("uvscxkdmligov", model.startTime()); - Assertions.assertEquals("rxkpmloazuruoc", model.endTime()); - Assertions.assertEquals("oorb", model.importance()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkloadClassifierListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkloadClassifierListResultTests.java deleted file mode 100644 index 8ca20561cffe..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkloadClassifierListResultTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.WorkloadClassifierListResult; - -public final class WorkloadClassifierListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - WorkloadClassifierListResult model = - BinaryData - .fromString( - "{\"value\":[{\"properties\":{\"memberName\":\"d\",\"label\":\"acegfnmntf\",\"context\":\"vm\",\"startTime\":\"fnczdwvvbalx\",\"endTime\":\"lchpodbzevwrdn\",\"importance\":\"ukuv\"},\"id\":\"jcswsmys\",\"name\":\"uluqypfc\",\"type\":\"lerchpq\"}],\"nextLink\":\"f\"}") - .toObject(WorkloadClassifierListResult.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WorkloadClassifierListResult model = new WorkloadClassifierListResult(); - model = BinaryData.fromObject(model).toObject(WorkloadClassifierListResult.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkloadClassifierPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkloadClassifierPropertiesTests.java deleted file mode 100644 index b3d9e3837149..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkloadClassifierPropertiesTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.WorkloadClassifierProperties; -import org.junit.jupiter.api.Assertions; - -public final class WorkloadClassifierPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - WorkloadClassifierProperties model = - BinaryData - .fromString( - "{\"memberName\":\"vudtjuewbcihx\",\"label\":\"whcjyxcc\",\"context\":\"vpayakkudzpx\",\"startTime\":\"jplmagstcy\",\"endTime\":\"pfkyrkdbdgiogsj\",\"importance\":\"nwqjnoba\"}") - .toObject(WorkloadClassifierProperties.class); - Assertions.assertEquals("vudtjuewbcihx", model.memberName()); - Assertions.assertEquals("whcjyxcc", model.label()); - Assertions.assertEquals("vpayakkudzpx", model.context()); - Assertions.assertEquals("jplmagstcy", model.startTime()); - Assertions.assertEquals("pfkyrkdbdgiogsj", model.endTime()); - Assertions.assertEquals("nwqjnoba", model.importance()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WorkloadClassifierProperties model = - new WorkloadClassifierProperties() - .withMemberName("vudtjuewbcihx") - .withLabel("whcjyxcc") - .withContext("vpayakkudzpx") - .withStartTime("jplmagstcy") - .withEndTime("pfkyrkdbdgiogsj") - .withImportance("nwqjnoba"); - model = BinaryData.fromObject(model).toObject(WorkloadClassifierProperties.class); - Assertions.assertEquals("vudtjuewbcihx", model.memberName()); - Assertions.assertEquals("whcjyxcc", model.label()); - Assertions.assertEquals("vpayakkudzpx", model.context()); - Assertions.assertEquals("jplmagstcy", model.startTime()); - Assertions.assertEquals("pfkyrkdbdgiogsj", model.endTime()); - Assertions.assertEquals("nwqjnoba", model.importance()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkloadGroupInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkloadGroupInnerTests.java deleted file mode 100644 index 4cbb0c8841d1..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkloadGroupInnerTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.WorkloadGroupInner; -import org.junit.jupiter.api.Assertions; - -public final class WorkloadGroupInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - WorkloadGroupInner model = - BinaryData - .fromString( - "{\"properties\":{\"minResourcePercent\":1591499316,\"maxResourcePercent\":122803528,\"minResourcePercentPerRequest\":21.702799317843912,\"maxResourcePercentPerRequest\":97.4438256079908,\"importance\":\"b\",\"queryExecutionTimeout\":1947593422},\"id\":\"ilbywdxsm\",\"name\":\"ccwr\",\"type\":\"fscjfnynszquji\"}") - .toObject(WorkloadGroupInner.class); - Assertions.assertEquals(1591499316, model.minResourcePercent()); - Assertions.assertEquals(122803528, model.maxResourcePercent()); - Assertions.assertEquals(21.702799317843912, model.minResourcePercentPerRequest()); - Assertions.assertEquals(97.4438256079908D, model.maxResourcePercentPerRequest()); - Assertions.assertEquals("b", model.importance()); - Assertions.assertEquals(1947593422, model.queryExecutionTimeout()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WorkloadGroupInner model = - new WorkloadGroupInner() - .withMinResourcePercent(1591499316) - .withMaxResourcePercent(122803528) - .withMinResourcePercentPerRequest(21.702799317843912) - .withMaxResourcePercentPerRequest(97.4438256079908D) - .withImportance("b") - .withQueryExecutionTimeout(1947593422); - model = BinaryData.fromObject(model).toObject(WorkloadGroupInner.class); - Assertions.assertEquals(1591499316, model.minResourcePercent()); - Assertions.assertEquals(122803528, model.maxResourcePercent()); - Assertions.assertEquals(21.702799317843912, model.minResourcePercentPerRequest()); - Assertions.assertEquals(97.4438256079908D, model.maxResourcePercentPerRequest()); - Assertions.assertEquals("b", model.importance()); - Assertions.assertEquals(1947593422, model.queryExecutionTimeout()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkloadGroupListResultTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkloadGroupListResultTests.java deleted file mode 100644 index dd5f341ef50e..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkloadGroupListResultTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.WorkloadGroupListResult; - -public final class WorkloadGroupListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - WorkloadGroupListResult model = - BinaryData - .fromString( - "{\"value\":[{\"properties\":{\"minResourcePercent\":629393280,\"maxResourcePercent\":384824052,\"minResourcePercentPerRequest\":16.797453313308843,\"maxResourcePercentPerRequest\":54.3681983767773,\"importance\":\"oxoismsksbpim\",\"queryExecutionTimeout\":2072188488},\"id\":\"ljxkcgxxlx\",\"name\":\"ffgcvizqz\",\"type\":\"wlvwlyoupf\"},{\"properties\":{\"minResourcePercent\":1825475274,\"maxResourcePercent\":11112663,\"minResourcePercentPerRequest\":15.658754728553815,\"maxResourcePercentPerRequest\":65.38612430460616,\"importance\":\"gkfmins\",\"queryExecutionTimeout\":760014296},\"id\":\"zfttsttktlahb\",\"name\":\"actxtgzukxitm\",\"type\":\"qtgqqqxhrnxr\"}],\"nextLink\":\"pjui\"}") - .toObject(WorkloadGroupListResult.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WorkloadGroupListResult model = new WorkloadGroupListResult(); - model = BinaryData.fromObject(model).toObject(WorkloadGroupListResult.class); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkloadGroupPropertiesTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkloadGroupPropertiesTests.java deleted file mode 100644 index 80e4e9d1dd3f..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkloadGroupPropertiesTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.WorkloadGroupProperties; -import org.junit.jupiter.api.Assertions; - -public final class WorkloadGroupPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - WorkloadGroupProperties model = - BinaryData - .fromString( - "{\"minResourcePercent\":1527085818,\"maxResourcePercent\":1296747978,\"minResourcePercentPerRequest\":84.31488864287606,\"maxResourcePercentPerRequest\":21.38076853827919,\"importance\":\"yo\",\"queryExecutionTimeout\":853520386}") - .toObject(WorkloadGroupProperties.class); - Assertions.assertEquals(1527085818, model.minResourcePercent()); - Assertions.assertEquals(1296747978, model.maxResourcePercent()); - Assertions.assertEquals(84.31488864287606, model.minResourcePercentPerRequest()); - Assertions.assertEquals(21.38076853827919D, model.maxResourcePercentPerRequest()); - Assertions.assertEquals("yo", model.importance()); - Assertions.assertEquals(853520386, model.queryExecutionTimeout()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WorkloadGroupProperties model = - new WorkloadGroupProperties() - .withMinResourcePercent(1527085818) - .withMaxResourcePercent(1296747978) - .withMinResourcePercentPerRequest(84.31488864287606) - .withMaxResourcePercentPerRequest(21.38076853827919D) - .withImportance("yo") - .withQueryExecutionTimeout(853520386); - model = BinaryData.fromObject(model).toObject(WorkloadGroupProperties.class); - Assertions.assertEquals(1527085818, model.minResourcePercent()); - Assertions.assertEquals(1296747978, model.maxResourcePercent()); - Assertions.assertEquals(84.31488864287606, model.minResourcePercentPerRequest()); - Assertions.assertEquals(21.38076853827919D, model.maxResourcePercentPerRequest()); - Assertions.assertEquals("yo", model.importance()); - Assertions.assertEquals(853520386, model.queryExecutionTimeout()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminInfoInnerTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminInfoInnerTests.java deleted file mode 100644 index 0371c35f84b1..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminInfoInnerTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.fluent.models.WorkspaceAadAdminInfoInner; -import org.junit.jupiter.api.Assertions; - -public final class WorkspaceAadAdminInfoInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - WorkspaceAadAdminInfoInner model = - BinaryData - .fromString( - "{\"properties\":{\"tenantId\":\"efdeesve\",\"login\":\"ijpxtx\",\"administratorType\":\"wprtu\",\"sid\":\"sawddjibabxvi\"},\"id\":\"itvtzeexavo\",\"name\":\"tfgle\",\"type\":\"dmdqb\"}") - .toObject(WorkspaceAadAdminInfoInner.class); - Assertions.assertEquals("efdeesve", model.tenantId()); - Assertions.assertEquals("ijpxtx", model.login()); - Assertions.assertEquals("wprtu", model.administratorType()); - Assertions.assertEquals("sawddjibabxvi", model.sid()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WorkspaceAadAdminInfoInner model = - new WorkspaceAadAdminInfoInner() - .withTenantId("efdeesve") - .withLogin("ijpxtx") - .withAdministratorType("wprtu") - .withSid("sawddjibabxvi"); - model = BinaryData.fromObject(model).toObject(WorkspaceAadAdminInfoInner.class); - Assertions.assertEquals("efdeesve", model.tenantId()); - Assertions.assertEquals("ijpxtx", model.login()); - Assertions.assertEquals("wprtu", model.administratorType()); - Assertions.assertEquals("sawddjibabxvi", model.sid()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminsCreateOrUpdateMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminsCreateOrUpdateMockTests.java deleted file mode 100644 index d6ce0532dd9e..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminsCreateOrUpdateMockTests.java +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.fluent.models.WorkspaceAadAdminInfoInner; -import com.azure.resourcemanager.synapse.models.WorkspaceAadAdminInfo; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class WorkspaceAadAdminsCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"tenantId\":\"exzvdube\",\"login\":\"zygba\",\"administratorType\":\"vecovsdqhzr\",\"sid\":\"bakrli\"},\"id\":\"zfvppkeq\",\"name\":\"ifjmclngygnh\",\"type\":\"kombcdtaj\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - WorkspaceAadAdminInfo response = - manager - .workspaceAadAdmins() - .createOrUpdate( - "ecvztsc", - "gmusaictdscnkzzo", - new WorkspaceAadAdminInfoInner() - .withTenantId("ddclzeqozr") - .withLogin("lbz") - .withAdministratorType("xbnjrqvzyuexoz") - .withSid("ynp"), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("exzvdube", response.tenantId()); - Assertions.assertEquals("zygba", response.login()); - Assertions.assertEquals("vecovsdqhzr", response.administratorType()); - Assertions.assertEquals("bakrli", response.sid()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminsDeleteMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminsDeleteMockTests.java deleted file mode 100644 index 4a93bf5576c6..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminsDeleteMockTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class WorkspaceAadAdminsDeleteMockTests { - @Test - public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.workspaceAadAdmins().delete("opggorwjoqtrotp", "clpofyrlmwkp", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminsGetWithResponseMockTests.java deleted file mode 100644 index a02571ae9667..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceAadAdminsGetWithResponseMockTests.java +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.WorkspaceAadAdminInfo; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class WorkspaceAadAdminsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"tenantId\":\"zcntogffjwajnrtw\",\"login\":\"aqkifmxawostfz\",\"administratorType\":\"hrkmjqncfv\",\"sid\":\"cnhemvwfnq\"},\"id\":\"wypvndrwbgo\",\"name\":\"tggrss\",\"type\":\"wjfkainjmuym\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - WorkspaceAadAdminInfo response = - manager.workspaceAadAdmins().getWithResponse("wqlepjj", "kca", com.azure.core.util.Context.NONE).getValue(); - - Assertions.assertEquals("zcntogffjwajnrtw", response.tenantId()); - Assertions.assertEquals("aqkifmxawostfz", response.login()); - Assertions.assertEquals("hrkmjqncfv", response.administratorType()); - Assertions.assertEquals("cnhemvwfnq", response.sid()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateMockTests.java deleted file mode 100644 index 7c73e9d89d64..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateMockTests.java +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.fluent.models.ManagedIdentitySqlControlSettingsModelInner; -import com.azure.resourcemanager.synapse.models.DesiredState; -import com.azure.resourcemanager.synapse.models.ManagedIdentitySqlControlSettingsModel; -import com.azure.resourcemanager.synapse.models.ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"grantSqlControlToManagedIdentity\":{\"desiredState\":\"Enabled\",\"actualState\":\"Enabling\"}},\"id\":\"bnvt\",\"name\":\"o\",\"type\":\"walzyxwhoeamoeo\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ManagedIdentitySqlControlSettingsModel response = - manager - .workspaceManagedIdentitySqlControlSettings() - .createOrUpdate( - "qttbspvkhgla", - "jsgyzstujrzxrk", - new ManagedIdentitySqlControlSettingsModelInner() - .withGrantSqlControlToManagedIdentity( - new ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity() - .withDesiredState(DesiredState.DISABLED)), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals(DesiredState.ENABLED, response.grantSqlControlToManagedIdentity().desiredState()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedIdentitySqlControlSettingsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedIdentitySqlControlSettingsGetWithResponseMockTests.java deleted file mode 100644 index b97e329a4d40..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedIdentitySqlControlSettingsGetWithResponseMockTests.java +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.DesiredState; -import com.azure.resourcemanager.synapse.models.ManagedIdentitySqlControlSettingsModel; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class WorkspaceManagedIdentitySqlControlSettingsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"grantSqlControlToManagedIdentity\":{\"desiredState\":\"Disabled\",\"actualState\":\"Enabled\"}},\"id\":\"bvn\",\"name\":\"rgekzyq\",\"type\":\"adyfhbmwkho\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - ManagedIdentitySqlControlSettingsModel response = - manager - .workspaceManagedIdentitySqlControlSettings() - .getWithResponse("cgjtirjwayhicqq", "wvgwkslvli", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(DesiredState.DISABLED, response.grantSqlControlToManagedIdentity().desiredState()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsGetWithResponseMockTests.java deleted file mode 100644 index eff8a13664b7..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsGetWithResponseMockTests.java +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.DedicatedSQLminimalTlsSettings; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"location\":\"aehtd\",\"properties\":{\"minimalTlsVersion\":\"bnvynfaooea\"},\"id\":\"tedcglsk\",\"name\":\"k\",\"type\":\"didahzl\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - DedicatedSQLminimalTlsSettings response = - manager - .workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings() - .getWithResponse("awsxmrszbknimxlp", "erxrzutylcurza", "mnb", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("bnvynfaooea", response.minimalTlsVersion()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsListMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsListMockTests.java deleted file mode 100644 index fd79b191d5bf..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsListMockTests.java +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.DedicatedSQLminimalTlsSettings; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsListMockTests { - @Test - public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"location\":\"ffmnoiics\",\"properties\":{\"minimalTlsVersion\":\"hbrj\"},\"id\":\"talxrdsj\",\"name\":\"h\",\"type\":\"luqwgusxxhd\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager - .workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings() - .list("rqm", "lpbyxroiduyq", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("hbrj", response.iterator().next().minimalTlsVersion()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsUpdateMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsUpdateMockTests.java deleted file mode 100644 index 86e3dc830be6..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsUpdateMockTests.java +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.fluent.models.DedicatedSQLminimalTlsSettingsInner; -import com.azure.resourcemanager.synapse.models.DedicatedSQLminimalTlsSettings; -import com.azure.resourcemanager.synapse.models.DedicatedSqlMinimalTlsSettingsName; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsUpdateMockTests { - @Test - public void testUpdate() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"location\":\"rxdhgv\",\"properties\":{\"minimalTlsVersion\":\"bxaot\"},\"id\":\"gbzxmbtplefoioy\",\"name\":\"doxzn\",\"type\":\"gvdtmuuv\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - DedicatedSQLminimalTlsSettings response = - manager - .workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings() - .update( - "pyvaosdkluwzx", - "ygz", - DedicatedSqlMinimalTlsSettingsName.DEFAULT, - new DedicatedSQLminimalTlsSettingsInner().withMinimalTlsVersion("qsq"), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("bxaot", response.minimalTlsVersion()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerEncryptionProtectorsRevalidateMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerEncryptionProtectorsRevalidateMockTests.java deleted file mode 100644 index 8dd9cbd0d622..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerEncryptionProtectorsRevalidateMockTests.java +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.EncryptionProtectorName; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class WorkspaceManagedSqlServerEncryptionProtectorsRevalidateMockTests { - @Test - public void testRevalidate() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .workspaceManagedSqlServerEncryptionProtectors() - .revalidate("oizwxvs", "ksgfyyskyekg", EncryptionProtectorName.CURRENT, com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerRecoverableSqlPoolsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerRecoverableSqlPoolsGetWithResponseMockTests.java deleted file mode 100644 index ef8dd10f5021..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerRecoverableSqlPoolsGetWithResponseMockTests.java +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.RecoverableSqlPool; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class WorkspaceManagedSqlServerRecoverableSqlPoolsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"edition\":\"zyohxpthc\",\"serviceLevelObjective\":\"pvkvtwf\",\"elasticPoolName\":\"sobpbo\",\"lastAvailableBackupDate\":\"2021-04-13T06:45:03Z\"},\"id\":\"mlcdyarnggcjfwbl\",\"name\":\"hxkasmc\",\"type\":\"lmu\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - RecoverableSqlPool response = - manager - .workspaceManagedSqlServerRecoverableSqlPools() - .getWithResponse("q", "on", "gnwxl", com.azure.core.util.Context.NONE) - .getValue(); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerRecoverableSqlPoolsListMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerRecoverableSqlPoolsListMockTests.java deleted file mode 100644 index 5791a9761e27..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerRecoverableSqlPoolsListMockTests.java +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.RecoverableSqlPool; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class WorkspaceManagedSqlServerRecoverableSqlPoolsListMockTests { - @Test - public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"properties\":{\"edition\":\"pkshlojermhzic\",\"serviceLevelObjective\":\"fdjhyaaknyukibxi\",\"elasticPoolName\":\"hphzwxqt\",\"lastAvailableBackupDate\":\"2021-03-03T09:40:39Z\"},\"id\":\"iilhvtozyagj\",\"name\":\"nxkbylhyyxgf\",\"type\":\"klvqzrwtrdgscn\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager - .workspaceManagedSqlServerRecoverableSqlPools() - .list("hzqjjtsmuydqfttk", "cybdueurgm", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerUsagesListMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerUsagesListMockTests.java deleted file mode 100644 index cde3cca44961..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerUsagesListMockTests.java +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.ServerUsage; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class WorkspaceManagedSqlServerUsagesListMockTests { - @Test - public void testList() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"value\":[{\"name\":\"bu\",\"resourceName\":\"vqdorbccqcd\",\"displayName\":\"hojvlirkn\",\"currentValue\":12.500824662912958,\"limit\":69.68454789294407,\"unit\":\"tnagzlgpya\",\"nextResetTime\":\"2021-08-26T03:13:43Z\"}]}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - PagedIterable response = - manager - .workspaceManagedSqlServerUsages() - .list("lsmnihqlcoqksyi", "bhyxw", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerVulnerabilityAssessmentsDeleteWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerVulnerabilityAssessmentsDeleteWithResponseMockTests.java deleted file mode 100644 index f214d1075b9c..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerVulnerabilityAssessmentsDeleteWithResponseMockTests.java +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.VulnerabilityAssessmentName; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class WorkspaceManagedSqlServerVulnerabilityAssessmentsDeleteWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager - .workspaceManagedSqlServerVulnerabilityAssessments() - .deleteWithResponse( - "soauoorssatfyb", - "pufdmxuqbdqn", - VulnerabilityAssessmentName.DEFAULT, - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceRepositoryConfigurationTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceRepositoryConfigurationTests.java deleted file mode 100644 index 7074b2269efc..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceRepositoryConfigurationTests.java +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.synapse.models.WorkspaceRepositoryConfiguration; -import java.util.UUID; -import org.junit.jupiter.api.Assertions; - -public final class WorkspaceRepositoryConfigurationTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - WorkspaceRepositoryConfiguration model = - BinaryData - .fromString( - "{\"type\":\"pqfrtqlkz\",\"hostName\":\"gnitgvkxlzyq\",\"accountName\":\"fegcea\",\"projectName\":\"xwh\",\"repositoryName\":\"nsymoyqhlwigd\",\"collaborationBranch\":\"bkbxgomfa\",\"rootFolder\":\"wasqvdaeyyg\",\"lastCommitId\":\"akjsqz\",\"tenantId\":\"3702a1d4-9dbe-4cc4-9101-bcd4a55fa392\"}") - .toObject(WorkspaceRepositoryConfiguration.class); - Assertions.assertEquals("pqfrtqlkz", model.type()); - Assertions.assertEquals("gnitgvkxlzyq", model.hostname()); - Assertions.assertEquals("fegcea", model.accountName()); - Assertions.assertEquals("xwh", model.projectName()); - Assertions.assertEquals("nsymoyqhlwigd", model.repositoryName()); - Assertions.assertEquals("bkbxgomfa", model.collaborationBranch()); - Assertions.assertEquals("wasqvdaeyyg", model.rootFolder()); - Assertions.assertEquals("akjsqz", model.lastCommitId()); - Assertions.assertEquals(UUID.fromString("3702a1d4-9dbe-4cc4-9101-bcd4a55fa392"), model.tenantId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - WorkspaceRepositoryConfiguration model = - new WorkspaceRepositoryConfiguration() - .withType("pqfrtqlkz") - .withHostname("gnitgvkxlzyq") - .withAccountName("fegcea") - .withProjectName("xwh") - .withRepositoryName("nsymoyqhlwigd") - .withCollaborationBranch("bkbxgomfa") - .withRootFolder("wasqvdaeyyg") - .withLastCommitId("akjsqz") - .withTenantId(UUID.fromString("3702a1d4-9dbe-4cc4-9101-bcd4a55fa392")); - model = BinaryData.fromObject(model).toObject(WorkspaceRepositoryConfiguration.class); - Assertions.assertEquals("pqfrtqlkz", model.type()); - Assertions.assertEquals("gnitgvkxlzyq", model.hostname()); - Assertions.assertEquals("fegcea", model.accountName()); - Assertions.assertEquals("xwh", model.projectName()); - Assertions.assertEquals("nsymoyqhlwigd", model.repositoryName()); - Assertions.assertEquals("bkbxgomfa", model.collaborationBranch()); - Assertions.assertEquals("wasqvdaeyyg", model.rootFolder()); - Assertions.assertEquals("akjsqz", model.lastCommitId()); - Assertions.assertEquals(UUID.fromString("3702a1d4-9dbe-4cc4-9101-bcd4a55fa392"), model.tenantId()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceSqlAadAdminsCreateOrUpdateMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceSqlAadAdminsCreateOrUpdateMockTests.java deleted file mode 100644 index 22892833c58f..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceSqlAadAdminsCreateOrUpdateMockTests.java +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.fluent.models.WorkspaceAadAdminInfoInner; -import com.azure.resourcemanager.synapse.models.WorkspaceAadAdminInfo; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class WorkspaceSqlAadAdminsCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"tenantId\":\"czd\",\"login\":\"wnhkgq\",\"administratorType\":\"oxsstc\",\"sid\":\"rak\"},\"id\":\"rrynjcwmhly\",\"name\":\"gnukxrkemjpe\",\"type\":\"ulrlzaudgjtfbcl\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - WorkspaceAadAdminInfo response = - manager - .workspaceSqlAadAdmins() - .createOrUpdate( - "yzivrm", - "tcdqlh", - new WorkspaceAadAdminInfoInner() - .withTenantId("hrktjleifibfiplh") - .withLogin("nsmy") - .withAdministratorType("owly") - .withSid("zmudsqcm"), - com.azure.core.util.Context.NONE); - - Assertions.assertEquals("czd", response.tenantId()); - Assertions.assertEquals("wnhkgq", response.login()); - Assertions.assertEquals("oxsstc", response.administratorType()); - Assertions.assertEquals("rak", response.sid()); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceSqlAadAdminsDeleteMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceSqlAadAdminsDeleteMockTests.java deleted file mode 100644 index 84f0da2a7805..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceSqlAadAdminsDeleteMockTests.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class WorkspaceSqlAadAdminsDeleteMockTests { - @Test - public void testDelete() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = "{}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - manager.workspaceSqlAadAdmins().delete("kkucddwnh", "zbuto", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceSqlAadAdminsGetWithResponseMockTests.java b/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceSqlAadAdminsGetWithResponseMockTests.java deleted file mode 100644 index cc00974b587f..000000000000 --- a/sdk/synapse/azure-resourcemanager-synapse/src/test/java/com/azure/resourcemanager/synapse/generated/WorkspaceSqlAadAdminsGetWithResponseMockTests.java +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.synapse.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.HttpResponse; -import com.azure.core.management.AzureEnvironment; -import com.azure.core.management.profile.AzureProfile; -import com.azure.resourcemanager.synapse.SynapseManager; -import com.azure.resourcemanager.synapse.models.WorkspaceAadAdminInfo; -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import org.mockito.ArgumentCaptor; -import org.mockito.Mockito; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -public final class WorkspaceSqlAadAdminsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - HttpClient httpClient = Mockito.mock(HttpClient.class); - HttpResponse httpResponse = Mockito.mock(HttpResponse.class); - ArgumentCaptor httpRequest = ArgumentCaptor.forClass(HttpRequest.class); - - String responseStr = - "{\"properties\":{\"tenantId\":\"utmgvmuyak\",\"login\":\"wk\",\"administratorType\":\"ow\",\"sid\":\"royrdurxf\"},\"id\":\"zqjim\",\"name\":\"jtgzj\",\"type\":\"xlfejlzuqloiwya\"}"; - - Mockito.when(httpResponse.getStatusCode()).thenReturn(200); - Mockito.when(httpResponse.getHeaders()).thenReturn(new HttpHeaders()); - Mockito - .when(httpResponse.getBody()) - .thenReturn(Flux.just(ByteBuffer.wrap(responseStr.getBytes(StandardCharsets.UTF_8)))); - Mockito - .when(httpResponse.getBodyAsByteArray()) - .thenReturn(Mono.just(responseStr.getBytes(StandardCharsets.UTF_8))); - Mockito - .when(httpClient.send(httpRequest.capture(), Mockito.any())) - .thenReturn( - Mono - .defer( - () -> { - Mockito.when(httpResponse.getRequest()).thenReturn(httpRequest.getValue()); - return Mono.just(httpResponse); - })); - - SynapseManager manager = - SynapseManager - .configure() - .withHttpClient(httpClient) - .authenticate( - tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureEnvironment.AZURE)); - - WorkspaceAadAdminInfo response = - manager - .workspaceSqlAadAdmins() - .getWithResponse("skwxj", "vhxccbmkakmkoo", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("utmgvmuyak", response.tenantId()); - Assertions.assertEquals("wk", response.login()); - Assertions.assertEquals("ow", response.administratorType()); - Assertions.assertEquals("royrdurxf", response.sid()); - } -}