From 77ab9f49820139b577160e01910ea5c36f91faaf Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 28 May 2021 09:45:40 +0000 Subject: [PATCH] CodeGen from PR 14569 in Azure/azure-rest-api-specs Dabenham/cluster patch billing type (#14569) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Updated the models to include systemData and removed the supression f… (#13354) * Updated the models to include systemData and removed the supression for systemData * removed the deleted account examples and the package-lock.json * ran prettier locally to try and fix prettier validation error when making a PR * removing unecessary changes from last commit * Revert "removed the deleted account examples and the package-lock.json" This reverts commit 9a0b368a7aad1fc43460b329fcb4de32c1670606. * Revert "ran prettier locally to try and fix prettier validation error when making a PR" This reverts commit 3f11b97fdeef719f622120ba68e5d9cf68d89102. * Revert "ran prettier locally to try and fix prettier validation error when making a PR" This reverts commit 3f11b97fdeef719f622120ba68e5d9cf68d89102. * reverted the package-lock.json and .vscode/launch.json * reverted older commit * Removed unecessary files This reverts commit 708bc8700c8a13c408a232903e14cae57fd136ee. * Revert "Removed unecessary files" This reverts commit a27ce012bf115a486d87d6d2b1d7e8416f6473a3. * Removed deleted account examples and package-lock.json * Ran prettier to format the json files Co-authored-by: Melvin Bosnjak * t2 synapse readme config (#13790) * reference old versions of other apis (#13786) * reference old versions of other apis * remove old files * Eiot sensors type alignment for new provider (#13780) * change boolean to enum * align new provider with new sensor field * eiot-sensor-type-align Co-authored-by: Gal Moshe * Add SQL DB v5 SDK (#12107) * add v5 sdk * change recommendedAction. * update a min sdk * replace RecommendedAction defs with common type * remove redundant defs in the 2014-04-01 legacy files. * add RestorableDroppedDatabase json file. * update RecommendedAction * update update swagger to use 2020-11-01 preview spec * revert int format change * Dev weather microsoft.maps 1.0 (#13791) * Remove preview from Weather API, remove X-Publish, and convert X-ms-enum ModelAsString to true * Revert changes to package-lock.json * [Hub Generated] Review request for Microsoft.InstanceMetadataService to add version stable/2020-09-01 (#13505) * Adds base for updating Microsoft.InstanceMetadataService from version stable/2020-07-15 to version 2020-09-01 * Updates readme * Updates API version in new specs and examples * New changes for 2020-09-01 * Prettier Co-authored-by: Joshua McCarthy * Iot new device (#13503) * new device model for iot swcurity * spelling * fixed lint error * changed readme and added "x-ms-pageable" to device list * moved the "x-ms-pageable" from get to list * prettier * PR comments * Cplat sharedgallery2020 09 30 (#13655) * [Hub Generated] Review request for Microsoft.CostManagement to add version preview/2020-12-01-preview (#13609) * Latest * Latest * Latest * Latest * Latest * Latest * Latest * Latest * Latest * Latest * Latest * FixS360 | Microsoft.Billing (#13771) * fixing billing accounts and operations * adding total count. * typo fix * fixing spell check and prettier * Vakuncha changingcsharpreadme (#13806) * Update readme.csharp.md * Update readme.csharp.md * [aks] fix vm size model and osDiskType description (#13763) * fix: agent pool vm size should be string, not enum * fix: osDiskType default description for >= 2020-11-01 * [Hub Generated] Review request for Microsoft.DocumentDB to add version preview/2021-03-01-preview (#13267) * init * fix format * sync * read only * fix sample * fix Co-authored-by: Teng Pan * storagesync readme t2 config (#13810) * storagesync readme t2 config * storagesync readme.python t2 config * Updated SAS swagger with latest changes. (#13439) * Fixed hostname in the Offazure swaggers. * added newest swagger from service repo. This contains PE changes too. * rewritten swagger changes on existing swagger * some fixes to swagger * added examples. * fixes * edit * edit. * fixes * minor fix * edit * edit * edited default api version tag * Dev weather microsoft.maps 1.0 (#13796) * Remove preview from Weather API, remove X-Publish, and convert X-ms-enum ModelAsString to true * Revert changes to package-lock.json * Fix spelling error * Adding Azure Object Anchors error codes for IngestionProperties (#13787) * Added Azure Object Anchors error code field to IngestionProperties * Fixed spacing in example * Moved changes to new version * Addressed version mismatch, spacing * Fixed versions on examples * Readonly error code * Seeing if readonly error code is breaking * Revert "Seeing if readonly error code is breaking" This reverts commit c0b16f07c4a46a07fc7831a1735bb290804242ea. * Model error code as string * Renamed examples to asset conversion nomenclature * Fixed rename issues * Fixed issue #9593 (#13262) * Fixed issue #9593 * Removed redundant PrivateEndpointConnectionProperties attribute * [Hub Generated] Review request for Microsoft.Consumption to add version stable/2019-05-01 (#13800) * Fixed Swagger Validation Errors * Fixed Model Validation * [Hub Generated] Review request for Microsoft.CostManagement to add version stable/2019-11-01 (#13788) * Fixed Swagger Validation Errors * Fixed Type * Fixed Type * Fixed Setting Properties * Fixed Punctuation * Removed Item * Added Items Properties * Fixed Required Property * azurestack wave4 t2 config (#13813) * Added Microsoft.AppConfiguration 2021-03-01-preview API version. (#13490) * Added Microsoft.AppConfiguration 2021-03-01-preview API version. * Add system metadata to tracked resources in "Microsoft.AppConfiguration". Updated ConfigurationStore to reference the common tracked resource type definition. * Added disableLocalAuth property. * Add new api version swagger to readme. * Added/updated examples and added suppressions for standardized APIs. * Fixed prettier. * Add missing property fileStorageSkuName into MySQL Flexible Server spec (#13693) * appplatform t2 readme config (#13829) * customproviders t2 readme config (#13831) * Update readme.csharp.md (#13807) * [Sentine][Data connectors][Fix correctness bug] (#13175) * update required fields * update required fields * Explicitly define KeyCreationTime in Feb21 (#13757) * Explicitly define KeyCreationTime Explicitly define KeyCreationTime * Fix KeyCreationTime Example Fix KeyCreationTime Example * Add Microsoft.M365SecurityAndCompliance RP (#13646) * Add Microsoft.M365SecurityAndCompliance RP * fix datetime and common-types file path * update common-types file path * add preview path in readmego * replace stable with preview * remove duplicate tags * refer MIPPolicySync json in readme * service name for java (#13837) * Dev keyvault microsoft.key vault 2021 04 01 preview (#13585) * Adds base for updating Microsoft.KeyVault from version preview/2020-04-01-preview to version 2021-04-01-preview * Updates readme * Updates API version in new specs and examples * Open API change for Managed Hsm private endpoints feature (#12938) * Open API change for Managed Hsm private endpoints feature * Fixing spell check errors * Fixing spell check errors * Prettier fixes * Fixing swagger validation errors * Fixing systemData property reference * Adding publicNetworkAccess property based on private endpoint requirement. * GET responses following a successful DELETE should be returning 404. … (#13054) * GET responses following a successful DELETE should be returning 404. Only the DELETE response is to return 204 if the resource didn't exist (it allows idempotent deletes). (cherry picked from commit b752a19c6cc1f8a8eed9f106e2c77b8d5b5db19f) * Removing 404 as it is taken care by default response. * Added new routes for Deleted ManagedHsm for Soft Delete Feature (#13282) * Added new routes for Deleted ManagedHsm and examples, updated ManagedHsm definition to include PurgeDateTimeUTC * Fixing validation issues. * Fixing errors in properties in example jsons * Delete keyvault.json Deleted an errant json file * Fixed misspelling of property in examples * Fixed x-ms-examples naming, fixed camelcasing * Addressing comments in PR to make 204s 404s and also changing PurgeDateTimeUTC to scheduledPurgeDate * Added schema definitions for 404 * Removed 200 for purge Co-authored-by: Soohwan Kim * Addressing Comments for PR 13585 (#13586) * Removed 404s to allow requests to fall through to default * Removing 404s from examples Co-authored-by: Soohwan Kim * Added deletedmanagedhsm object to examples and managedhsm.json (#13591) * Added deletedmanagedhsm object to examples and managedhsm.json * Fixing error in references to correct values * Changed vaultId to mhsmId in exmaples Co-authored-by: Soohwan Kim * Try to use the common type for SystemData (#13723) * Add SystemData property for KeyVault * 04012021 fix schema (#13749) * Resolving conflict with custom-words.txt * Add 2021 preview to azureresourcechema, add suppression to readme * Add 2021 preview to azureresourcechema * Merging custom-words.txt Co-authored-by: Soohwan Kim * Add missing default error response (#13762) * Fix Lint error (#13765) * Add missing default error response * Update the integer format to fix Lint error * Add securityDefinitions * Added python tag for 2021 preview (#13805) Co-authored-by: Soohwan Kim * Fixing linting errors for MHSM R4036 - ImplementPrivateEndpointAPIs (#13822) * Fixing linting errors for MHSM R4036 - ImplementPrivateEndpointAPIs (cherry picked from commit c1c5aebfb98cacd0a4ee5596fb7b0d9f782a9a3e) * prettier fix * Add suppression for SystemData (#13835) * Add suppression for SystemData * Fix linting error R4036 - ImplementPrivateEndpointAPIs * specify the suppression for SystemData * Revert "specify the suppression for SystemData" This reverts commit cbebab81ab08ec1a29b41c891c58cf08ff2eb3c4. Co-authored-by: jiacheng-L <71623842+jiacheng-L@users.noreply.github.com> Co-authored-by: kim-soohwan <40476315+kim-soohwan@users.noreply.github.com> Co-authored-by: Soohwan Kim Co-authored-by: Arthur Ning <57385816+akning-ms@users.noreply.github.com> * hybridnetwork only track2 configure (#13832) * hybridnetwork only track2 configure * remodify * namespace del Co-authored-by: Yan Zhang (WICRESOFT NORTH AMERICA LTD) * terraform readme for alertsmanagement (#13744) Co-authored-by: Your Name * add tags back in the adp readme (#13850) * Add device principal type (#13799) * copy files from previous version * add device principal type, update versions * fix * system data requirement * Added CheckNameAvailability, Identity, systemData, used ErrorResponse v2 in DeviceUpdate (#13750) * Update deviceupdate.json * Update deviceupdate.json * Add files via upload * Update deviceupdate.json * Update deviceupdate.json * Update Accounts_Update.json * Update Accounts_Create.json * Update Instances_Create.json * Update deviceupdate.json * Linux line ending * Update CheckNameAvailability_AlreadyExists.json * Update CheckNameAvailability_Available.json * Update CheckNameAvailability_AlreadyExists.json * Update CheckNameAvailability_Available.json * Update CheckNameAvailability_AlreadyExists.json * Update CheckNameAvailability_Available.json * Update deviceupdate.json * Update deviceupdate.json * fixed typo in the example files (#13764) * Update CODEOWNERS (#13795) Updating list of Azure Cognitive Search team members * Update GenerateDetailedCostReportBySubscriptionAndTimePeriod.json (#13772) Update example data * [Hub Generated] Public private branch 'stuartko/Mar21_NewTSVersion' (#13811) * Adding version 2021-03-01-preview (copy of previous version) * Adding new metadata property * Adding uiDefinition property. * Update uiDefinition name to uiFormDefinition (per a change by the service feature author). No change to functionality. * Template Specs: Renaming template to "mainTemplate" and changing "artifacts" to be more specific "linkedTemplates". * Swagger changes for 2021-02-01-preview api version (#13794) * Copy existing preview version * Changes to databoxedge json file * Update readme files * Correct Spell Check * Fix Readme.go error * Update examples * Update all schemas.md files (#13862) * typo: implmentation -> implementation (#13644) * Add MongoDB/MongoDBAtlas sink (#13669) * Add MongoDB/MongoDBAtlas sink, add disableMetricsCollection in read/wirte properties * Revert disableMetricsCollection related changes * Azure ML new API version 20210401 (#12981) * Add Identity to createWorkpace example * change for getTransitivePEUsages * update * prettier code * add another new endpoint * address comments * change for getTransitivePEUsages * update * prettier code * add another new endpoint * address comments * revert change on transitivePE and notebookKeys * revert change on transitivePE and notebookKeys * add new stable version 2021-01-01 * add ListNotebookAccessToken * add primaryUserAssignedIdentity * fix missing properties and apis * fix one more missing property * 202 status for start and stop CI * make resync keys long runnin operation in version Jan2021 * resync keys 204 * update resync keys example * Dont throw 204 for resync * update resync keys * Formatting * revert Jan2021changes and add new version * start apr2021 version for azure ml rp * undo remove new line in jan2021 * use systemData definition in common * removed old files * fix small swagger bugs * run prettier * remove reference to sku * update readme * minimum agentCount should be 0 * add createdOn and ModifiedOn to compute properties * add LoadBalancerType to aks compute * add isNotebookInstanceCompute to virtualMachine * add leafDomainLabel to SslConfiguration * add overwriteExistingDomain to SslConfiguration * add synapseSpark as supported compute-type * update patch compute response to 202 * remove location from example responses * Revert "remove location from example responses" This reverts commit 048bf2551513afae842a9c4fbb5861aeddc6c33a. * MachineLearningCompute_Update should have a 200 response * sys data to use local def due to naming conflicts. * Fix enum casing * Fix operationId PR comment. * Change opId in apr version * remove 20210401 for easy review * only change api version * merge changes for 20210401 version * Add x-ms-discriminator-value for Synapse spark * camelcase loadbalancer properties * add createdOn and Modified on to examples * address AvoidAnonymousTypes error for SynapseSpark * Minor fixes + new property * Remove subscription state. Co-authored-by: zhaomuzhi Co-authored-by: Vinay Rajmal Soni Co-authored-by: jopet@microsoft.com Co-authored-by: Josh Peterson <15050193+joshanator@users.noreply.github.com> * datashare readme t2 config (#13833) * add readme terraform (#13717) * adding a new API version for Restore API and adding targetVirtualMachineId field for AzureWorkloadRestoreRequest (#13638) * copying previous change * Adding targetVirtualMachineId field for Azure Workload Restore requests * updating crr version and examples * removing new api-version * adding back the new api-version * removing Snapshot related fields * updating readme.md * corrected the path Co-authored-by: Chandrika Gonuguntla * chore: resort custom-words.txt from bad merge (#13868) * [ApplicationInsights] Fix failure for python SDK (#13875) * [Hub Generated] Review request for Microsoft.Insights to add version preview/2020-10-05-preview (#13712) * Adjustments to API to include validation grouping and updated text. * Fixed missing curly brace * adjusted name * Added basic and standard examples * adjusted type. * corrected case for key value * [Hub Generated] Review request for Microsoft.Insights to add version preview/2021-03-03-preview (#13269) * Adds base for updating Microsoft.Insights from version preview/2020-10-05-preview to version 2021-03-03-preview * Updates readme * Updates API version in new specs and examples * Add DiagnosticServiceToken API * Update examples to split tokens for readonly vs readwrite * Fix accoding to code review feedback * Update examples due to review feedback from ARM * add configuration for vmware (#13879) Co-authored-by: Your Name * keyvault t2 config (#13863) * keyvault t2 config * keyvault multi-api config * multi api config * config reset * add package version * hanaonazure t2 readme config (#13880) * Remove x-ms-azure-resource (#13500) Co-authored-by: Dongwei Wang * Juniwang/sr202010401preview (#13664) * prepare to add new api-version: copy everything from 2020-07-01-preview * Adding new api-version * Fix required body and annotate ms secrets * remove secrets example from swagger * fix prettier * add datashare terraform configuration (#13876) Co-authored-by: Your Name * storage readme t2 config (#13881) * storage readme t2 config * storage t2 config * healthcareapis t2 config (#13884) * typo: APIkeys -> APIKeys (#13641) * Allow release_policy to be nullable (#13826) * Fix type of Anserws and Captions (#13872) * change the value of license header (#13886) * [Synapse] - library_append API adds comp parameter (#13841) * [Synapse] - add comp parameter * Update example files Co-authored-by: Dongwei Wang * Remove 200 response from async operation (#13190) * Async operation always returns 202 on initial call * Address review feedback * Revert "Address review feedback" This reverts commit 9ae550b95c1082c8383595a943a9abe5990fd4ef. * add minimal tls version for mariadb (#11779) * [Synapse] - add Swagger code owner (#13882) Co-authored-by: Dongwei Wang * add con figuration for databoxedge (#13877) Co-authored-by: Your Name * add configuration for resourcemover (#13878) Co-authored-by: Your Name * Reduce code owner scope for Monitor.Exporters team (#13898) * [portal]Update readme.python.md (#13907) * Update readme.python.md * Update readme.md * Update readme.python.md * Update readme.python.md * Dev dfp microsoft.dfp 2021 02 01 privatepreview (#13305) * New Readme Config File * New Go Language Readme Config File * New Azure AZ Readme Config File * New Azure CLI Readme Config File * New Typescript Language Readme Config File * New Python Language Readme Config File * New C# Language Readme Config File * New AzureResourceSchema Readme Config File * New Swagger Spec File * New Swagger Example Spec File * DFP API specs. Copied from Azure-PPE * Spelling fix. instnace => instance * Fix resource provider name to pascal case * Added '/providers/Microsoft.Dfp/operations' * Added SystemData (fix R4009 error) * Fix validation errors * Prettier fixes * Removed non-existend parameter sku * Style fixes in DFP API specs * Swagger ModelValidation failures fix * Fix operations API * Fix operations API validation failure * 1. Added example for lists operations. 2. made the API preview instead of privatepreview * Fix path in readme's * Fix in readme * Added readonly attribute to systemdata * Added readonly attribute to systemdata * Fix in python SDK readme * Fixes in ListOperations.json examples * Fixed API version * Added type to response bodies * Fix typos in examples (urls) * Added 201 response into createInstance example * Renamed RP name from Microsoft.Dfp to Microsoft.Dynamics365Fraudprotection * Added long-running result for creation instance * Added nextlink * Fix in checkNameAvailability definition URL * Next link parameter * Using references to common types instead of re-declaring them * Reused common type. Fixed provisioning state * Nesting error fix * Fixed examples * Fix * Fix in error response definition * Rename RP. Fix examples in readme's * Added http 202 * Added http 202 to examples * [Hub Generated] Review request for Microsoft.InstanceMetadataService to add version stable/2020-10-01 (#13818) * Adds base for updating Microsoft.InstanceMetadataService from version stable/2020-09-01 to version 2020-10-01 * Updates readme * Updates API version in new specs and examples * Adding new fields for 2020-10-01 * Updating wording for disablePasswordAuthentication' Co-authored-by: jmccarthy * Remove name check from client side (#13492) * remove name validation from client side * remove name check from deploymentScripts swagger * remove name check from previous swagger versions * remove pattern from resourcegroupname parameter * Update deviceupdate.json (#13900) * [Hub Generated] Review request for Microsoft.ResourceHealth to add version stable/2018-07-01 (#13817) * Updated api-version * Removed systemData * Updated api-version * Updated the example * Add EligibleChildResources resource for PIM + update examples (#13803) * PIM API Specs * update readme * Update * Update readme * operation id fix * name fix * Name changes * fix * Fix * Changes based on docs generated * Scope fix in example * Updates for documentation * Change operation name * Update examples * Add expanded properties * Fix formatting * Fixes * Fix * fixes * Update the policy specs * Fix the policy objects and pell checks * fix the checks * fix the property * fix syntax * Prettier * Update Examples * Update Enums * ADd eligible child resource API specs * prettier fix * Update read me files * update * update * fix * update * Update Enums * update * update * update * update example Co-authored-by: Aman Swaika Co-authored-by: Gaurav Mishra (IDENTITY) * refine readme.go.md (#13906) Co-authored-by: Your Name * [Service Fabric Managed Clusters] adding api version 2020-05-01 (#13860) * initial commit 2021-05-01 to compare with previous version 2021-01-01-preview * update models * update examples * fix isStateless description * add 2021-05-01 version to readme * add x-ms-enum to diskType and add missing managedClsuterVersions paths fix example names add managed cluster version paths add default error * fix clusterversion by version and ClusterState descriptions Co-authored-by: Alfredo Santamaria Gomez * Task 9639284: Swagger changes for new UK agreement templates (#13895) * Task 9639284: Swagger changes for new UK agreement templates * Renamed as per comments. Co-authored-by: Umang Shah * Confluent new preview version + S360 fix (#13809) * Adding new API version for Microsoft.Confluent * Prettier fix * updated status property in OfferDetail updated status property in OfferDetail to fix swagger correctness issue * fix swagger live validation updated operations response to fix swagger live validation Co-authored-by: Srinivas * [Hub Generated] Public private branch 'juniwang/wps' (#13905) * Onboarding Azure WebPubSub service * reference ErrorResponse from common types and adding network ACL * disable cors, enable feature flags and fix several policy violations * remove anonymousConnectPolicy since it's not ready for now * add property publicNetworkAccess per NRP requirement * revert package-lock.json * reset package-lock.json * dns t2 readme config (#13923) * update readme (#13918) * add current readmes for generating python form recognizer (#12013) * add current readmes for python form recognizer * fix release tag * updates for multiapi and preview.3 * fix so that gen code outputs in generated folder * remove tag since swagger not in yet * unbreak build * just target preview 3 * don't run track 1 gen with python * Set x-ms-api-version to false for vaults list (#13924) * Set x-ms-api-version to false for vaults list (#13925) * Update event description to include the event name (#13867) * Update event description to include the event name * Update readme to include guidelines for defining a new event * Fix description * Renamed enum values for SDK auto generation (#13938) * Renamed enum values for SDK auto generation * Tabs to spaces * Newline added * [Document Translator] update operation names (#13915) * update operation names * make body required * Update ErrorName * Apply changes to stable * Fix samples * fix sample * Fix glossary sample * Address comments and update definitions names * Revert "Task 9639284: Swagger changes for new UK agreement templates (#13895)" (#13946) This reverts commit ea5bc27ee9cadeb67767d774c82095be2420bcad. * Adding new preview API for promotions (#11599) * Adding new preview API for promotions * Avacado fix * Fixing JSON * fixing the promo param * fixning linting issues * Fixing JSON * fixing JSON * fixing linting issues * Adding delete 204a * Adding delete 204 * Adding validation fixes * fixing spellings * Linting issues * running prettier * ARM review feedback * Fixing linting issues * Fixing prettier * Fixing version * Fixing SDK * fixing go sdk * revert go.md Co-authored-by: Rishi Kapoor * Exposing undocumented Databricks workspace properties for fixing S360 issues (#13683) * exposing storage account name, sku * Prettier fixes * Fixing the review comment * Adding No Public IP related properties * Updating the remaining properties related to S360 * Fixing review comments * Fixing Spell Check issue * hybridcompute readme t2 config (#13910) * readme t2 config * hybridcompute t2 readme config * web readme t2 config (#13909) * web readme t2 config * web readme.python t2 config * Add x-ms-api-version (#13834) * Update CheckNameAvailability_Available.json (#13914) * webpubsub t2 config (#13949) * Update StaticSite.json (#13768) * Update StaticSite.json Add private endpoint connections to static site object. * Update StaticSites.json * Update StaticSites.json * Update StaticSites.json * Update StaticSites.json * increment readme version * address PR comments * add examples * fix examples * Add data-plane samples creation template (#13528) * Add data-plane samples * Simplified template * webpubsub readme t1 del (#13953) * Add $(multiapi) to QnA Maker's readme.md (#13819) Generators were processing every tag when only a single one was desired. This is the common solution to support multi-api SDKs. * IoT data-plane for drwill-ms (#13964) * add missing usage.json to v5 sdk tag (#13960) * [Hub Generated] Review request for Microsoft.Kusto to add version stable/2021-01-01 (#13306) * Add new api version 2021 * remove managedIdentity since we won't support it in this version * CR comments * Add default value for contine on errros * Fix swagger correctness issues * Fix typo * resource t2 readme config (#13974) * Added new API and API version for private DNS zone suffix (#13789) * Added new API and API version for private DNS zone suffix * trigger validation pipelines * Add new API to readme * Fix ARM pipelines * Try fix again * Fix again * Add Operations API * Revert "Add Operations API" This reverts commit 9d4ca9e557763feb3a6089ff9d4c958b3843730e. * Revert "Revert "Add Operations API"" This reverts commit 7cf197c1d453764f0396713a2ab172a20e35b1c4. * Revert "Revert "Revert "Add Operations API""" This reverts commit 05744390e440984da8134b64a979a6e61fb9b7ae. * Revert "Revert "Revert "Revert "Add Operations API"""" This reverts commit 61b76b1623d9e5796bb8187edf0fc46351e78231. * Revert "Revert "Revert "Revert "Revert "Add Operations API""""" This reverts commit 9f55eb4c399eb48a8578906f6bea43b10c91b8be. * Address review comment from ARM * Revert "Address review comment from ARM" This reverts commit cb6d1b01860de72eec80856f64b602c72a1f26a7. * Revert "Revert "Address review comment from ARM"" This reverts commit 227cf73797ee24a674d76e3ccd2990b84bc8d11a. * Revert "Revert "Revert "Revert "Revert "Revert "Add Operations API"""""" This reverts commit 34ae6c70a514e0290ffb41f7ddb5bbbd5c6cbee3. * Revert "Revert "Revert "Revert "Revert "Revert "Revert "Add Operations API""""""" This reverts commit a11c889a65b0fa4257b03a247d75fbea769f4e2c. * Add previous APIs to tag * Retrigger build * fix service name for Java (#13979) * Add optional param - private DNS zone to server API (#13716) * Add optional param - private DNS zone to server API * Follow comment to resolve go sdk issue. * [Hub Generated] Review request for Microsoft.Synapse to add version preview/2021-04-01-preview (#13874) * Adds base for updating Microsoft.Synapse from version stable/2021-03-01 to version 2021-04-01-preview * Updates readme * Updates API version in new specs and examples * add changed files for kustoPool * Ravi changes to fix LinDiff validation * Add Itay Sofer's changes * filizt comments mid-way * Remove clouderror and resplace with "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" * Add IotHubDataConnection and EventGridDataConnection * Modify PUT to OK, CREATED, ACCEPTED * Change from provisioningState to ResourceProvisioningState * Add BlobStorageEventType * Remove 202 when creating a KustoPool * Change PUT/PATCH 202 responses * Remove 202 in PATCH/PUT operations where having both 200 & 201 * Add "isIdentityCertExprired" to custom-words.txt * Remove isIdentityCertExprired from custom-words.txt * Add Exprired to cSpell.json Co-authored-by: Amit Elran * Removing x-ms-flatten property (#13929) * manual changes for swagger * changes for long-running operations * changes for validate for backup and restore * removing 204 from operationResults * changes for a monitoring * adding format * removing date-time from duration * changing to readonly * changes for listRPs * fixes swagger * reverting readonly for scheduleTimes * fixes for checkgates * prettier fixes * cahnges for friendlyname checks * fixing gates * removing tracking-via * model validation fixes * powershell changes * adding stable version * changes for PatchResourceRequestInput * change for req fields * changes for description * changes * Updated swagger json for item level restore target info objects * Fixed spelling errors * Added missing required properties * removed auth credentials property * prettier fixes * Prettier fix * pr comments fixes * fixing readme * changes for go readme * Removed x-ms-flatten property (#2) * removed flatten prop * removing x-ms-flatten * removing friendlyName from req prop Co-authored-by: Mayank Aggarwal Co-authored-by: Mayank Aggarwal Co-authored-by: FAREAST\zakinkh * confidentialledger readme t2 config (#13981) * Additional 7.3-preview parameter name clean up (#13913) * Enable multivariate anomaly detection (#13973) * add multivarite * add v1.1-preview * reformat changepoint example * change typo in readme * fix prettier-check error * add export model example * fix prettier error * [Azure Search] Add Knowledge Store feature to swagger (#13911) * introduce knowledge store swagger * add knowledge store to 2020 apis Co-authored-by: Austin Drefke * make skillset count optional, and add it to 2020 GA Swagger (#13990) Co-authored-by: Austin Drefke * Adding support for message properties in ACS Chat (#13939) * Initial commit (copying over stable API version) * Making changes to support message metadata * Added 201 response code for patch operation (#13956) Co-authored-by: Akash Keshari * Adding autoMitigate flag with false as default value (#13109) * deploymentmanager - clean up duplicate parameters outside of method (#13948) * clean up duplicate parameters outside of method * maintain python order * fix typo in Synapse (#13994) * OperationalInsights - update readme files for cli extension update (#13999) * added3 new properties to TableProperties: IsTroubleshootingAllowed, IsTroubleshootingEnabled, IsTroubleshootingEnabledLastActivation. * added Tables new api version * changed bool to boolean types * prettified jsons * fix erroes in swagger * undo changes to 2020-03-01-preview version * pr fixes * updated TableUpdate example * changed lastTroubleshootDate from date format to string, removed isTroubleshootingAllowed from body of example * changed v1 to v2 * changed WorkspaceNameParameter back to V1 * changed ErrorResponse to default ErrorResponse without ref to local definition * added systemData * removed systemData * added systemData to Patch and Get * moved systemData to Table properties * deleted systemData from Table.json, added to Get and Put examles * changed location of systemData in Tables.json * moved systemData to inside Table definition * moved systemData inside Table properties * removed SystemData * creatted a new package containing all latest swagger files for publishing new SDK * removed package 2021_02 and set default packate to 2020_10 * removed 2 packages * removed DataCollectorLogs.json from readme.md 20202.10 * added empty line to try invoke pipeline validations that havent run * Delete Tables.json * added3 new properties to TableProperties: IsTroubleshootingAllowed, IsTroubleshootingEnabled, IsTroubleshootingEnabledLastActivation. * merge * prettified jsons * undo changes to 2020-03-01-preview version * updated TableUpdate example * changed lastTroubleshootDate from date format to string, removed isTroubleshootingAllowed from body of example * changed v1 to v2 * changed WorkspaceNameParameter back to V1 * added systemData * removed systemData * added systemData to Patch and Get * moved systemData to Table properties * deleted systemData from Table.json, added to Get and Put examles * changed location of systemData in Tables.json * moved systemData to inside Table definition * moved systemData inside Table properties * removed whitespaces * changed DataExportErrorResponse to common .../v2/types.json#/definitions/ErrorResponse * changed all Error response of 2020-08 to common definition * added readme.az.md file for cli extension code generator * added readme.ad.md with the same naming convention as in readme.python.md added readme.cli.md file updatted readme.md file with the new azure-cli-extensions tag all updates were done by following: https://github.com/Azure/autorest.az/blob/9ed1aabd353385f8bdffbfa9f3892478111a029c/doc/how-to-author-readme-file.md * Update specification/operationalinsights/resource-manager/readme.az.md Co-authored-by: Qiaoqiao Zhang <55688292+qiaozha@users.noreply.github.com> * Update specification/operationalinsights/resource-manager/readme.az.md Co-authored-by: Qiaoqiao Zhang <55688292+qiaozha@users.noreply.github.com> * Update specification/operationalinsights/resource-manager/readme.az.md Co-authored-by: Qiaoqiao Zhang <55688292+qiaozha@users.noreply.github.com> * Update specification/operationalinsights/resource-manager/readme.az.md Co-authored-by: Qiaoqiao Zhang <55688292+qiaozha@users.noreply.github.com> * Update specification/operationalinsights/resource-manager/readme.az.md Co-authored-by: Qiaoqiao Zhang <55688292+qiaozha@users.noreply.github.com> * Update specification/operationalinsights/resource-manager/readme.az.md Co-authored-by: Qiaoqiao Zhang <55688292+qiaozha@users.noreply.github.com> * Update specification/operationalinsights/resource-manager/readme.az.md Co-authored-by: Qiaoqiao Zhang <55688292+qiaozha@users.noreply.github.com> * Update specification/operationalinsights/resource-manager/readme.az.md Co-authored-by: Qiaoqiao Zhang <55688292+qiaozha@users.noreply.github.com> * added azure-powershell to readme.md Co-authored-by: Qiaoqiao Zhang <55688292+qiaozha@users.noreply.github.com> * [Cognitive Services Metrics Advisor] add missing required for allOf entities (#13957) * add missing required for allOf entities * fix incorrect required properties * 7.2-Preview to GA (#13919) * 7.2-Preview to GA * Update packages to point to stable * Readd exportable and update description * Update description for exportable in preview versions * Fix operation results contract for Tenant Git operations (#13903) * fix operation results contract * fix sync state contract * iothub t2 readme config (#13980) * iothub t2 readme config * iothub readme t2 config * iothub t2 readme config * Making Offer details and User Details required properties (#13985) * Making Offer details and User Details required properties and removing abandoned tag * fix python configuration * Update readme.python.md Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com> * cosmosdb t1 config del (#14008) * Fixing issue with missing filter documentation in Access Review APIs (#13892) * fix cred issue. block to merge in DSMainDev (#14014) * fix serivce name for java (#14007) * maintenance readme t2 config (#13982) * maintenance readme t2 config * readme t1 config * [Service Fabric Managed Clusters] fix api 2020_05_01 (#13961) * Use enums and add missing properties * model enum as string Co-authored-by: Alfredo Santamaria Gomez * [Hub Generated] Review request for Microsoft.BotService to add version stable/2021-03-01 (#13784) * add isIsolated and channelSchemaTransformationVersion * rename * add v2 priavatelinks (#14026) * copied from v1/privatelinks.json * bump version Co-authored-by: jianyexi * APIM: improve developer portal operations docs (#13941) * APIM: improve the documentation for dev portal operations * Minor changes * Removing OData parameters from the stable API version * Remove new query params * hotfix on extended location hierarchy (#13943) * [Hub Generated] Public private branch 'wps' (#14002) * Add webpubsub swagger Add custom words Update webpubsub.json Update webpubsub.json Resolve comments Update webpubsub.json resolve comments Update operationId for existence check [wps] update python generation section and client name for all languages (#1) * add python stuff * make title across languages the same * Update version * Update some constraints * Update webpubsub.json * rename to GetServiceStatus * Update readme.md * Update readme.md * Update readme.md * [Hub Generated] Review request for Microsoft.SecurityInsights to add version preview/2021-03-01-preview (#13563) * Copied from 2019-01-01-preview version * Updated references to common types * Add itemsSearchKey field to Watchlists * Add missing label definition * Make itemsSearchKey as required field * Formatting fixes * Fix Prettier and Avocado errors * Fix Lint error (subscription level resource) * Update description and example for CreateOrUpdate watchlists and bulk create watchlist items * Update Api version in examples * [Hub Generated] Review request for Microsoft.RecoveryServices to add version stable/2021-03-01 (#13888) * Adds base for updating Microsoft.RecoveryServices from version stable/2021-01-01 to version 2021-03-01 * Updates readme * Updates API version in new specs and examples * updated default package in readme.md to 2021-03 Co-authored-by: Chandrika Gonuguntla * Updated required and default fields in Action Groups spec (#13677) * Updated error response for Action Groups API * spacing * added missing fields to Action Group Resource spec * Added missing fields for action group resource in older version * Updated "resource" name * Removed changes to errorResponse * Removed errorObject * format * Updated required and default fields in Action groups spec * Update default value to boolean Co-authored-by: kai ru <69238381+kairu-ms@users.noreply.github.com> * changes default value type to boolean * undo webhook receiver changes Co-authored-by: Ritwik Rajendra Co-authored-by: kai ru <69238381+kairu-ms@users.noreply.github.com> * Remove AML Compute File Server (#13944) * Remove AML Compute File Server * update * update * update * update * Cost Management: Reservation Recommendations API: Add multiple missing properties in specs (#13967) * added totalCost, properties.resourceType, properties.subscriptionId, and eTag to various RiRec dfinitions * moving eTag property to right place * remove duplicate description * remove track1 configure (#14044) Co-authored-by: Yan Zhang (WICRESOFT NORTH AMERICA LTD) * New API version (2021-02-10) for recovery services site recovery (#13525) * Adding old API version(2018-07-10) to new folder for 2021-20-10 * all changes for swagger (2021-02-10) * read me and custom word changes * Ayesha's comments addressed * adress PR comments from ayesha * Adding suppressions * fixing custom words * [Hub Generated] Review request for Microsoft.RecoveryServices to add version stable/2021-02-10 (#13636) * Adds base for updating Microsoft.RecoveryServices from version stable/2021-02-01 to version 2021-02-10 * Updates readme * Updates API version in new specs and examples * Update readme.md changing read me to include date too in tag * cahnging examples API version to 2021-02-10 * fix read me syntax * TaskStepProperties swagger fix (#13971) * Adding "assignmentState" property to scope model in access review APIs (#14039) * iothub readme.python package version change (#14043) * iothub readme.python package version change * multiapiscript add * clear output folder * Update readme.python.md * Update readme.python.md * Update readme.python.md Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com> * Bump y18n from 4.0.0 to 4.0.1 (#13704) Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.1. - [Release notes](https://github.com/yargs/y18n/releases) - [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md) - [Commits](https://github.com/yargs/y18n/commits) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * update (#14061) * package-templatespecs-2021-03-preview tag added (python) (#13958) * Added tag * nit: ordering Co-authored-by: Dania Etienne * Use 2014-04-01 replication link specs in V5 SDK (#14058) * Use 2014-04-01 replication link specs in V5 SDK * remove legacy file. * Update cSpell.json for Key Vault 7.2 (storage) (#14060) * automanage readme t1 del (#14029) * automanage readme t1 del * automanage readme t1 del * readme.md t1 config del * add missing reference (#13904) * databoxedge readme modification (#14063) Co-authored-by: Yan Zhang (WICRESOFT NORTH AMERICA LTD) * managedservices t2 onfig (#14064) Co-authored-by: Yan Zhang (WICRESOFT NORTH AMERICA LTD) * [Hub Generated] Review request for Microsoft.RecoveryServices to add version stable/2021-02-10 (#13635) * Adds base for updating Microsoft.RecoveryServices from version stable/2021-01-01 to version 2021-02-10 * Updates readme * Updates API version in new specs and examples * fixing merge issue * removing vault usages from 2021-02 * Adding back vault usages * updating readme * updated etag to eTag (#13968) * [Hub Generated] Review request for Microsoft.InstanceMetadataService to add version stable/2020-12-01 (#13931) * Adds base for updating Microsoft.InstanceMetadataService from version stable/2020-10-01 to version 2020-12-01 * Updates readme * Updates API version in new specs and examples * Adding new spot VM fields Co-authored-by: Joshua McCarthy * Add FaceAPI PersonDirectory spec updates to preview v1.0 (#13766) * Add FaceAPI v1.0-preview Add a preview version of FaceAPI specs intended for public preview. Contains existing spec in v1.0 plus PersonDirectory feature changes. * Fixes after running validation * Fixing validation * Fixes 2 * Fixes 3 * Add PersonDirectory examples and fix routes * Fixes 4 * Fixes 5 * Fixes 5.5 Co-authored-by: Yang Chen * Update the name and format of a parameter for randomnumbers (#14017) * Update the name and format of a parameter for randomnumbers * Change the parameter name from 'bytes_length' back to 'bytesLength' * Amalladi/extendedlocation update (#13849) * Updating Specification to remove 400 Badrequest from Swagger File * Removing 400 status code from examples * Removing private preview API version from Repo * Removing 2020-07-15-privatepreview tag from ReadME files Co-authored-by: Aditi * maps t2 config (#14075) Co-authored-by: Yan Zhang (WICRESOFT NORTH AMERICA LTD) * Revert "remove track1 configure (#14044)" (#14047) This reverts commit 867165cc24d81c487ad186c998c46ba55f81c77b. * adding role assignment (#14077) * add connectionPolicy spec back to V5 SDK (#14088) * modification (#14087) Co-authored-by: Yan Zhang (WICRESOFT NORTH AMERICA LTD) * [Hub Generated] Review request for Microsoft.DocumentDB to add version preview/2021-04-01-preview (#13710) * Adds base for updating Microsoft.DocumentDB from version preview/2021-03-01-preview to version 2021-04-01-preview * Updates readme * Updates API version in new specs and examples * Adding new API for fetching backup information(such as latest restorable timestmap) for a resource. Also, adding startTime,endTime to restorable.json * Adding new API for fetching backup information(such as latest restorable timestmap) for a resource. Also, adding startTime,endTime to restorable.json * Adding new API for fetching backup information(such as latest restorable timestmap) for a resource. Also, adding startTime,endTime to restorable.json * adding Services APIs * more changes * updated examples * prettier and readme updates * importing changes missed from old versions * nits * fixing semantic validation * fixing linter * fix * more fixes * adding list operation and default error response * specifying format integer * attempt to fix sdks * address arm comments and fix ci * fixes * fix * try to fix ci * fix examples * .\services.json * adding additionalProperties back to ServiceResouce * adding additionalProperties back to ServiceResouce * fix * fix sdks * fix linter Co-authored-by: Meha Kaushik Co-authored-by: Meha Kaushik * media t2 config(wave4) (#14074) * media t2 config * add packageversion Co-authored-by: Yan Zhang (WICRESOFT NORTH AMERICA LTD) * [Hub Generated] Review request for Microsoft.Maps to add version stable/2021-02-01 (#13733) * Adds base for updating Microsoft.Maps from version preview/2020-02-01-preview to version 2020-02-01 * Updates for 2021-02-01 api version swagger * creator swagger fixes * fix model examples * nextLink, uniqueId * build fixes * fixing listkeys * fix long running operations * fixing spelling * fixing async behavior and examples * updating arm region * reset package-lock * [Hub Generated] Review request for Microsoft.Media to add version preview/2021-05-01-preview (#13838) * New Readme Config File * New Go Language Readme Config File * New Azure AZ Readme Config File * New Azure CLI Readme Config File * New Typescript Language Readme Config File * New Python Language Readme Config File * New C# Language Readme Config File * New AzureResourceSchema Readme Config File * New Swagger Spec File * New Swagger Example Spec File * Copy Signed off 2021-03-01 swaggers here * Update swaggers to 2021=05-01-preview * add missing examples * update title * fix Operation id * fix video analyzer examples * update Video swagger * add format for $top * remove unnecessary example file * use chackname definitions from types.json * fix segment length readonly * change getStreamingToken to listStreamingToken, getProvisioningToken to listProvisioningToken * fix the example file name * fix a readonly issue with a video property * make type readonly * edits to descriptions * adding missing descriptions * address review feedback, * few cleanup for update class Co-authored-by: Christopher Bennage * Include the preview version of resource changes and resources history… (#14084) * Include the preview version of resource changes and resources history APIs * Address the review feedback on releasing the new package version. * Update readme for Synapse management SDK May release (#14054) * Update readme for Synapse management SDK May release * Add package-2021-05-preview * Address comment Co-authored-by: Dongwei Wang * removing read only property, no longer in use - NOT a breaking change (#13812) * resources readme.python t2 config (#14091) * peering readme t2 config (#14106) * Remove replicationLinks_legacy.json (#14095) PR #14058 removed this file: replicationLinks_legacy.json, removing from the schema config to prevent schema generation failures. * Support sheet index in excel (#14062) * Enable excel in public swagger * update * rollback dataflow change * Support sheet index in excel Co-authored-by: zhanyu2014 * Adding 2021-05-01 api-version to Template Specs (no changes over last preview spec) (#14065) * Copy existing 2021-03-01-preview specs to new 2021-05-01 stable version (no schema changes) * Changing api-version within specs to 2021-05-01 * Adding package tag for new stable version to readme.md, but not making it a default (yet) * Fix SecurityInsights Go SDK versioning (#14030) * Fix SecurityInsights Go SDK versioning * rename stable api version tag * remove 'only' from tags with full functionality * chore: Move typo supression in RecoveryServices (#14120) * Add missing Zone mapping property to Microsoft.Resources (#13936) * remove name validation from client side * remove name check from deploymentScripts swagger * remove name check from previous swagger versions * remove pattern from resourcegroupname parameter * add zoneMappings to ResoursesType * backfill older versions of swagger with zonemapping property * [Application Insights] Resolve duplicated definition names to fix track2 SDK generation error (#13951) * Fix duplicate name * Update readme.md * Update readme.md * Update and rename workbookOperations_API.json to aiOperations_API.json * Update readme.md * Update workbooks_API.json * Update readme.md * Update readme.python.md * Update readme.md * Update readme.md * Update readme.md * Rename aiOperations_API.json to workbookOperations_API.json * Update readme.md * Update readme.md * Update readme.md * Update readme.md * Update readme.md * Update readme.md * Update specification/applicationinsights/resource-manager/readme.python.md * Update specification/applicationinsights/resource-manager/readme.python.md * Update specification/applicationinsights/resource-manager/readme.python.md * Update swagger for SSIS-IR to support user-assigned managed identity (#14114) Co-authored-by: Hongxian Yao * postgresql readme t2 config (#14067) * Dev mediaservices microsoft.media 2021 05 01 (#13676) * Adds base for updating Microsoft.Media from version stable/2020-05-01 to version 2021-05-01 * Updates readme * Updates API version in new specs and examples * [AMS] new 2021-05-01 release for Account service in AMS * add missing example files * fix the api version and missing example files * Create a new Update definition to fix the "R2016 - PatchBodyParametersSchema " * fix respnse * fix update example * add the 2016 supression for new tag as well. * mixedreality t2 readme config(wave4) (#14105) * mixedreality t2 readme config * t2 config del * [python] t2-confidentialledger config (#14144) * Update readme.python.md * Update readme.python.md * Update readme.python.md (#14145) * update elastic swagger (#14076) * Update elastic.json * added new examples * taking the files from rpsaas master * added suppression in readme * [Cosmos DB] Introduce new api version 2021-04-15 (#13873) * [Cosmos DB] Introduce new api version 2021-04-15 Initial Commit * Updated for 2021-04-15 * Dummy Commit * Fixing privatelinkresources.json * Removing ErrorResponseUpdatedFormat * Suppressing systemData check * Relay - Fix typo in the NetworkRuleSet path (#13962) * Relay - Fix typo in the NetworkRuleSet path * Suppression - DefaultErrorResponseSchema - we will be Implementing in new API version * [Hub Generated] Review request for Microsoft.Portal to add version preview/2015-08-01-preview (#12732) * Fixing properties in dashboard parts * Updating Dashboard part metadata * Updating based on prettier fixes Co-authored-by: Himanshu Chandel * resources t1 config add (#14146) * t1 config add * package version * [Hub Generated] Public private branch 'dev-maintenance-Microsoft.Maintenance-2021-05-01' (#14148) * Adds base for updating Microsoft.Maintenance from version preview/2020-07-01-preview to version 2021-05-01 * Updates readme * Updates API version in new specs and examples * Added system data properties. * Fixed lint error. Added documentation. * Use Host Maintenance scope and api version in exmaple. Co-authored-by: Kalpesh Chavan * Add Test Base Swagger Spec from RPSaaSMaster (#14113) Co-authored-by: Bin Yu * rename property: change category to categories (#13883) * Edit description of Update Iot Hub Resource Api (#13080) Co-authored-by: Harini * [Hub Generated] Review request for Microsoft.RecoveryServices to add version stable/2021-03-01 (#13889) * Adds base for updating Microsoft.RecoveryServices from version stable/2018-07-10 to version 2021-03-01 * Updates readme * Updates API version in new specs and examples * Update webpubsub.json (#14096) * add dataFeedId in AnomalyResult and IncidentResult (#14127) * add dataFeedId in AnomalyResult and IncidentResult * fix examples * Add new version 2021-03-31-preview1 for ACS Auth (#13965) * Add new version 2021-03-31-preview * Set required body * Add all paths to new version * Update description for property of TeamsAccessTokenRequest model * Change version from 2021-03-31-preview to 2021-03-31-preview1 following standards https://skype.visualstudio.com/SPOOL/_wiki/wikis/SPOOL.wiki/16790/Versioning * Rename folder * Update method description * remove Turn endpoint * Add examples * Update readme * Omit the word "skypetoken" from swagger * Link example * Update description and path for a new endpoint Co-authored-by: Alexandra Lamiova Pistrakova * Added example gneration document links (#14151) * purview scanning service (#14021) * purview scanning service * Add custom words for spellcheck * fix config files and add endpoint param Co-authored-by: Parv Saxena Co-authored-by: iscai-msft * MG RP new API versions: 2020-10-01 and 2021-04-01 (#13897) * API 2020-10-01 with 2020-05-01 files * 2020-10-01 API changes * 2021-04-01 API version with 2020-10-01 files * Changes for 2021-04-01 API * PR fixes * Fixed issues with model * PR fixes * Latest (#13917) * Pick up previous Swagger Fix in 2019-09-01 version (#14092) * Add missing swagger fix * Fix bad copy-paste * update the some capitalized words in the description * Adding EventData schema for Microsoft.Storage.BlobTierChanged event (#14049) * Adding EventData schema for Microsoft.Storage.BlobTierChanged event * Removing contentLength/Offset from Microsoft.Storage.BlobTierChanged data schema * Removing BlobTierInfo from BlobTierChanged and adding new event Microsoft.Storage.AsyncOperationInitiated * adding ContentLength for BlobTierChanged and AsyncOperationInitiated events * [Hub Generated] Review request for VideoAnalyzer.Edge to add version preview/1.0.0 (#13682) * New Readme Config File * New Go Language Readme Config File * New Azure AZ Readme Config File * New Azure CLI Readme Config File * New Typescript Language Readme Config File * New Python Language Readme Config File * New C# Language Readme Config File * New AzureResourceSchema Readme Config File * New Swagger Spec File * New Swagger Example Spec File * Copy old LVA swaggers * Rename old swaggers to new file names * Update LVA swaggers with new AVA swagger * fixed some paths and capitalization * fix prettier check issues * fixing a Pascal casing * Updating swaggers to latest * fix linting issue * removed an unused definition * Service fabric Client API 8.0 (#14011) * spell checked and linted. * updated tag version. * reverted change outside of SF folder. * updated version in swagger. * changed credential issues. * changed 1 more that looks like a credential. * Kusto pools principal assignment (#14079) * kustoPool PrincipalAssignments * fixed list principal assignments * principalAssignment list example * principalAssignment get example * KustoPoolPrincipalAssignmentsCreateOrUpdate * KustoPoolPrincipalAssignmentsDelete * databases PrincipalAssignments * minor change * KustoPoolDatabasePrincipalAssignmentsList * KustoDatabasePrincipalAssignmentsGet * KustoPoolDatabasePrincipalAssignmentsCreateOrUpdate * KustoPoolDatabasePrincipalAssignmentsDelete * fixed example ref * added system data * kustoPoolCheckNameAvailability * KustoPoolsCheckNameAvailability example Co-authored-by: Itay Sofer * [Service Fabric Managed Clusters] fix api 2021_01_01-preview (#14012) * Update preview api to disable broken properties and to add property that is working * Update managed cluster description * Add New Data Model RuleCollection to NetworkManager (#13827) * Add New Data Model RuleCollection to NetworkManager * fix typo * test * test * Fix discriminator * fix type * Fix discriminator * Fix type * fix type * Fix type * Fix discriminator * Fix discriminator * fix type * fix type * Fix bug * Fix type * Fix format * Fix name * Fix name * fix spell * fix description * Fix spell * change to kind * fix lint * fix lint * fix lint * fix lint * fix lint * fix lint * Fix post body * Fix as comments * fix bug * fix bug * fix bug * fix bug * fix bug * fix bug * change rule kind * Fix as comments * Fix as comments * update lastest version * Update type * Update Skiptoken * Fix discription * Fix NG * Fix NG * add more example * [python]Update readme.python.md for postgresql (#14182) * Update readme.python.md * Update readme.python.md * Remove all schema readme (#13885) * Remove all schema readme * process new rp * Remove after_scripts * [Hub Generated] Review request for Microsoft.AlertsManagement to add version stable/2021-04-01 (#13890) * Adds base for updating Microsoft.AlertsManagement from version stable/2019-06-01 to version 2021-04-01 * Updates readme * Updates API version in new specs and examples * first commit * some fixes * try without alert management * revert change to name of namespace * Resolve lintdiff issues * remove the copy of files and reference alert managment previous version * update description of subscriptionId to solve error * attemp to remove AlertsManagement from the package * revert (put back AlertsManagment) * add tags for go SDK release v54.0.0 (#14161) * add tags for go SDK release v54.0.0 * add a new tag * FRv2.1 GA Stable Release (#13997) * Standardized Errors, sample list. * removing from master from now as this is just a proposal * FRv2.1 GA Initial commit. Co-authored-by: Sandeep Parab * remove extra / from host template (#14176) * [Hub Generated] Review request for Microsoft.Batch to add version stable/2020-09-01.12.0 (#14170) * [Batch] Update RemoveNodes description to include max nodes/request * Added suppressions to readme * Update swagger for a new version 2021-03-31-preview1 for ACS Auth (#14168) * Unify names * Update tag * Update due to review meeting * update example description Co-authored-by: Alexandra Lamiova Pistrakova * Add new 1.0 version for IoT Central API (#13713) * Add new 1.0.0 version for IoT Central API * fix swagger style * fix wrong json file name * remove unused examples * revert back email format * remove non-used examples * update with latest examples * update preview from 2019-10-28-preview to 2021-04-30-preview * remove extra --- * update version from 1.0.0 to 1.0 * rollback collections for common entities * update _id to Id, update _name to Name from operation, add sdk generation * fix go sdk file * remove go sdk * updatedevicve_templateId to deviceTemplateId * Add query parameter based versioning, remove resource schema * fix example docs reference * fix typo in comments * renaming execute to run for command operations * add api-version to samples files, fix devices_update missining issue * add devices_update.json for 1.0 * fix rerun_id, add missing parameters to examples for preview, fix command comments from execute to run * fix annoymous type issues * add title to readme. (#14179) * videoanalyzers-fix-missing-host (#14181) * New API version for Microsoft.Resources stable/2021-04-01 (#14132) * base for Microsoft.Resources 2021-04-01 * update readme * update api version * API changes for S2S * readme Co-authored-by: Wendy Chang * Swagger Changes for Get Recoverable Servers and create server with Geo-Restore. (#14013) * Added Recoverable Servers API and GeoRestore API. * Fixed spell check and prettier * Fixed readme.md file issue and changed the postgreSQL to restore. * Fixed duplicate schema issue. * Fixed the mismatch with namespace names. * change the tag name from georestore to servers * Fixed the SDK validation issues. * Fixed objects w.r.t preview version * Fixed operation required properties. * Included 2020-04-10 in the SDK versions * Change the folder path. * Add missing multiapi entry for go sdk v54.0.0 release (#14200) * add missing multiapi entry * fix one output-folder * Azure security insights - add data connectors preview version (#13998) * add new API * ad name to enum * updatre defenition names * update readme * update readme * update readme path files * fix errors * add missing connectors * execute validation * execute pre * update readme * add description ans x-ms-enum * update description * update properties * add description * rename enum - fix new error that didnt display until now * rename enum unser x-ms-enum property * [Hub Generated] Review request for Microsoft.Maps/Alias to add version preview/2.0, preview/2.0, preview/2.0, preview/2.0, preview/2.0, preview/2.0 and preview/2.0 (#13921) * Copy Creator API 1.0 to 2.0 * draft of planB * adding ontology properties; adding DataUpload * updated alias apis * put v1 API back so diffing is easier * reapplying v2 so diffs are easier * remove type from datasetsources * incorporate suggestions from review board * adding ontology field * Update alias v2 apis. * fix conversion descriptions, update alias * Fix the alias file. * Add get details example. * fix casing on headers; mapData more consistent * minor comment and linting fixes * Adds base for updating Microsoft.Maps/Alias from version preview/1.0 to version 2.0 * Updates readme * Updates API version in new specs and examples * Add baseline from preview/1.0 * update api-version in examples * add v2 files to readme * fix avacado errors * Adding string length limit to the descriptions for feature state. Adding string length limit to the descriptions for feature state. * Adding ontology element to the WFS resopnse examples. Adding ontology element to the WFS resopnse examples. * Updating length to 1000 from 1024. Updating length to 1000 from 1024. * Update dataset v2 descriptions and examples. * Update the examples to have the right details. * reran linter; added spellcheck words * more linting: 202 description alignment * fixed example linting for alias, data, dataset * example linting changes for conv, fs, tileset * change featurestateset patch to put * autorest linting fixes * Reverting FeatureState body to include array to match V1 body and response. * adding missing operationIds * added examples; more linting * remove x-ms-long-running * Update alias documentation for resourceId -> creatorDataItemId change Co-authored-by: Robert Johnson Co-authored-by: Subbarayudu Kamma * Update attribute name for message metadata (#14206) * Update attribute name for message metadata * Apply Prettier * Prettier fix Co-authored-by: Po Tsang * Re-add a previously erroneously removed PUT API for /networkConfig/VirtualNetwork (#14018) * Add CreateOrUpdateSwiftVirtualNetworkConnectionWithCheck, and site-level virtualNetworkSubnetId field * Add site-level virtualNetworkSubnetId field * Tabs vs spaces * Removing the new property since it's technically a 'breaking change' * Add changes needed for correct .NET SDK generation issues. Reference PR: https://github.com/Azure/azure-sdk-for-net/pull/20300 * Fix prettier issue. * Remove breaking changes other than property order changes * Make it pretty again * Added new properties SiteConfig.PublicNetworkAccess and Site.virtualNetworkSubnetId to enable azure policy * Fix prettier and spellcheck issue * Fix spellcheck issue * Add virtualNetworkSubnetId prperty to Site objec tmodel Co-authored-by: Naveed Aziz * Add Reading Order parameter to Computer Vision 3.2 Read Operation (#14204) * Fix CI for EG data-plane (#14171) * Fix CI for EG data-plane * Update readme.md * [Hub Generated] Review request for Microsoft.InstanceMetadataService to add version stable/2021-01-01 (#14130) * Adds base for updating Microsoft.InstanceMetadataService from version stable/2020-12-01 to version 2021-01-01 * Updates readme * Updates API version in new specs and examples * Adding user data flags * Wrong word Co-authored-by: jmccarthy * Balances API update (#14169) * Remove operationStatuses endpoint from Swagger (#14153) Co-authored-by: Ben Viglietta * Latest (#14173) * EventHub: Add Premium to EventHub SKU name and tier enums (#14046) Co-authored-by: v-ajnava * Add "fillGapWithZero" property to Microsoft.AppConfiguration/configurationStores (#14083) * add fillGapWithZero property * move new property to the end * removed the is read only from 4 features under OperationalInsights.Workspace * changed Tables.json to version 2020-08 due to AFEC flag blocking version 2020-10 * add missing billing type property in cluster patch * used prettier json Co-authored-by: Melvin Bosnjak Co-authored-by: Melvin Bosnjak Co-authored-by: Zed Lei <59104634+RAY-316@users.noreply.github.com> Co-authored-by: jdhms <77470403+jdhms@users.noreply.github.com> Co-authored-by: galmoshe <33285417+galmoshe@users.noreply.github.com> Co-authored-by: Gal Moshe Co-authored-by: Ji Wang Co-authored-by: jsedlak-microsoft <65620804+jsedlak-microsoft@users.noreply.github.com> Co-authored-by: Joshua McCarthy Co-authored-by: Joshua McCarthy Co-authored-by: MichalHel <51286657+MichalHel@users.noreply.github.com> Co-authored-by: Theodore Chang Co-authored-by: Mel M <50640763+melmullen@users.noreply.github.com> Co-authored-by: Muaz Mian Co-authored-by: varun kumar kunchakuri <66476965+vakuncha@users.noreply.github.com> Co-authored-by: Ace Eldeib Co-authored-by: tengpanpt <68668066+tengpanpt@users.noreply.github.com> Co-authored-by: Teng Pan Co-authored-by: kuchatur-ms <69152307+kuchatur-ms@users.noreply.github.com> Co-authored-by: jastenze <71854693+jastenze@users.noreply.github.com> Co-authored-by: Larry Osterman Co-authored-by: Omar Rodriguez <73562205+omrodrig@users.noreply.github.com> Co-authored-by: Jimmy Campbell Co-authored-by: Suna Liu Co-authored-by: sagamzu <52034287+sagamzu@users.noreply.github.com> Co-authored-by: Yihang Co-authored-by: sonalverm <73529783+sonalverm@users.noreply.github.com> Co-authored-by: Weidong Xu Co-authored-by: Ritesh chitlangia <60164879+riteshchitlangia1@users.noreply.github.com> Co-authored-by: jiacheng-L <71623842+jiacheng-L@users.noreply.github.com> Co-authored-by: kim-soohwan <40476315+kim-soohwan@users.noreply.github.com> Co-authored-by: Soohwan Kim Co-authored-by: Arthur Ning <57385816+akning-ms@users.noreply.github.com> Co-authored-by: zhangyan133 <77086185+zhangyan133@users.noreply.github.com> Co-authored-by: Yan Zhang (WICRESOFT NORTH AMERICA LTD) Co-authored-by: 陈箭飞 <32889038+chenjianfei2017@users.noreply.github.com> Co-authored-by: Your Name Co-authored-by: Cameron Taggart Co-authored-by: Alexander Batishchev Co-authored-by: dosegal <51155368+dosegal@users.noreply.github.com> Co-authored-by: Bruce Johnston Co-authored-by: Abdullah Syed <50675866+absyed@users.noreply.github.com> Co-authored-by: stuartko <47676853+stuartko@users.noreply.github.com> Co-authored-by: pvsraviteja <67624658+pvsraviteja@users.noreply.github.com> Co-authored-by: Lei Ni <7233663+leni-msft@users.noreply.github.com> Co-authored-by: Nick Schonning Co-authored-by: Guosen Wang Co-authored-by: Suba Co-authored-by: zhaomuzhi Co-authored-by: Vinay Rajmal Soni Co-authored-by: jopet@microsoft.com Co-authored-by: Josh Peterson <15050193+joshanator@users.noreply.github.com> Co-authored-by: chandrikagonuguntla Co-authored-by: Chandrika Gonuguntla Co-authored-by: kai ru <69238381+kairu-ms@users.noreply.github.com> Co-authored-by: aarongas Co-authored-by: Saar Shen Co-authored-by: Dongwei Wang Co-authored-by: Dongwei Wang Co-authored-by: Junbo Wang Co-authored-by: Hervey Wilson Co-authored-by: Janusz Lembicz Co-authored-by: Arcturus Co-authored-by: Alexander Schmidt Co-authored-by: ThomasDai <73230321+ThomasDai@users.noreply.github.com> Co-authored-by: Trask Stalnaker Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com> Co-authored-by: alexsavo-ms <78455310+alexsavo-ms@users.noreply.github.com> Co-authored-by: TJ Egbejimba Co-authored-by: averyrob <78236769+averyrob@users.noreply.github.com> Co-authored-by: Aman Swaika Co-authored-by: Aman Swaika Co-authored-by: Gaurav Mishra (IDENTITY) Co-authored-by: Alfredo Santamaria Co-authored-by: Alfredo Santamaria Gomez Co-authored-by: us6193 Co-authored-by: Umang Shah Co-authored-by: Krishna Sri Somepalli Co-authored-by: Srinivas Co-authored-by: Xiang Yan Co-authored-by: Krista Pratico Co-authored-by: Srikanta <51379715+srnagar@users.noreply.github.com> Co-authored-by: Jose Manuel Heredia Hidalgo Co-authored-by: rkapso Co-authored-by: Rishi Kapoor Co-authored-by: Subrahmanyam Mandavilli Co-authored-by: Xing Zhou Co-authored-by: mkarmark Co-authored-by: Laurent Mazuel Co-authored-by: Heath Stewart Co-authored-by: docohe <54349195+docohe@users.noreply.github.com> Co-authored-by: taogems <55105930+taogems@users.noreply.github.com> Co-authored-by: Amit Elran Co-authored-by: Amit Elran Co-authored-by: Mayank Aggarwal Co-authored-by: Mayank Aggarwal Co-authored-by: FAREAST\zakinkh Co-authored-by: Congrui <43364740+conhua@users.noreply.github.com> Co-authored-by: jadrefke Co-authored-by: Austin Drefke Co-authored-by: Amr Elroumy (Work) <77645021+amrelroumy-msft@users.noreply.github.com> Co-authored-by: akashkeshari Co-authored-by: Akash Keshari Co-authored-by: simanor <49607823+simanor@users.noreply.github.com> Co-authored-by: Tom FitzMacken Co-authored-by: Qiaoqiao Zhang <55688292+qiaozha@users.noreply.github.com> Co-authored-by: bowgong <56386108+bowgong@users.noreply.github.com> Co-authored-by: Jack Lichwa <52512203+jlichwa@users.noreply.github.com> Co-authored-by: Samir Solanki Co-authored-by: jainharsh98 Co-authored-by: Shubham Gupta Co-authored-by: ssss141414 Co-authored-by: JianyeXi <59603451+jianyexi@users.noreply.github.com> Co-authored-by: jianyexi Co-authored-by: Mike Budzynski <40186513+mikebudzynski@users.noreply.github.com> Co-authored-by: litchiyangMSFT <64560090+litchiyangMSFT@users.noreply.github.com> Co-authored-by: Liangying.Wei Co-authored-by: mayank88mahajan Co-authored-by: Ritwik Rajendra <21337621+ritwik8119@users.noreply.github.com> Co-authored-by: Ritwik Rajendra Co-authored-by: Weiguo Zhang Co-authored-by: maddieminn <79888413+maddieminn@users.noreply.github.com> Co-authored-by: nilgupta6 <78136736+nilgupta6@users.noreply.github.com> Co-authored-by: Yuan Xi Co-authored-by: Kai-Wen Feng <82062838+kaiwenfeng4086@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Yuping Wei <56525716+yupwei68@users.noreply.github.com> Co-authored-by: Dania Etienne Co-authored-by: Dania Etienne Co-authored-by: msyache <70287970+msyache@users.noreply.github.com> Co-authored-by: Yang Chen Co-authored-by: yl-ms <79939366+yl-ms@users.noreply.github.com> Co-authored-by: Aditi <12823918+aditimalladi@users.noreply.github.com> Co-authored-by: Aditi Co-authored-by: Amit Singh <31076927+amisi01@users.noreply.github.com> Co-authored-by: Meha Kaushik Co-authored-by: Meha Kaushik Co-authored-by: Daniel Stack Co-authored-by: giakas Co-authored-by: Christopher Bennage Co-authored-by: Ramu Co-authored-by: vipinhas <82088177+vipinhas@users.noreply.github.com> Co-authored-by: Jorge Cotillo Co-authored-by: yuzhangyi <44692931+yuzhangyi@users.noreply.github.com> Co-authored-by: zhanyu2014 Co-authored-by: ityankel <47292630+ityankel@users.noreply.github.com> Co-authored-by: hongxian <48581117+hongxian@users.noreply.github.com> Co-authored-by: Hongxian Yao Co-authored-by: nichatur <69816349+nichatur@users.noreply.github.com> Co-authored-by: Ajit Navasare Co-authored-by: Himanshu Chandel Co-authored-by: Himanshu Chandel Co-authored-by: Kalpesh Chavan <18593210+KalpeshChavan12@users.noreply.github.com> Co-authored-by: Kalpesh Chavan Co-authored-by: Bin Yu <56588422+BinYuMSFT@users.noreply.github.com> Co-authored-by: Bin Yu Co-authored-by: bar810 Co-authored-by: harini-ms <34797776+harini-ms@users.noreply.github.com> Co-authored-by: Harini Co-authored-by: alexandra142 Co-authored-by: Alexandra Lamiova Pistrakova Co-authored-by: Ray Chen Co-authored-by: Parv Saxena Co-authored-by: Parv Saxena Co-authored-by: iscai-msft Co-authored-by: stivanov-git <61129265+stivanov-git@users.noreply.github.com> Co-authored-by: neku <82562198+Neku-microsoft@users.noreply.github.com> Co-authored-by: jeffj6123 Co-authored-by: ItaySofer Co-authored-by: Itay Sofer Co-authored-by: Luke Slevinsky Co-authored-by: yanfa317 <53584318+yanfa317@users.noreply.github.com> Co-authored-by: Noam Dishon <30979046+dishonono@users.noreply.github.com> Co-authored-by: sandeepparab Co-authored-by: Sandeep Parab Co-authored-by: kryalama <66494519+kryalama@users.noreply.github.com> Co-authored-by: David Watrous Co-authored-by: Johnson Yang Co-authored-by: wwendyc Co-authored-by: Wendy Chang Co-authored-by: Pradeep Kintali <50682039+pradeepkintali@users.noreply.github.com> Co-authored-by: Jeff Couckuyt Co-authored-by: Robert Johnson Co-authored-by: Subbarayudu Kamma Co-authored-by: xerxestph <78384060+xerxestph@users.noreply.github.com> Co-authored-by: Po Tsang Co-authored-by: aleksbol Co-authored-by: Naveed Aziz Co-authored-by: Thomas Reis Co-authored-by: Karthik Kunjithapatham <77180268+karthikku-2020@users.noreply.github.com> Co-authored-by: Ben Viglietta Co-authored-by: Ben Viglietta Co-authored-by: v-ajnava Co-authored-by: Shuai Wang --- .../CHANGELOG.md | 3 +- .../README.md | 6 +- .../pom.xml | 141 +++++++------ .../loganalytics/LogAnalyticsManager.java | 83 ++++---- .../OperationalInsightsManagementClient.java | 63 +++--- .../fluent/models/ClusterInner.java | 198 ++++++++++++++++-- .../fluent/models/WorkspaceInner.java | 104 ++++++++- .../AvailableServiceTiersClientImpl.java | 6 +- .../implementation/ClusterImpl.java | 79 ++++++- .../implementation/ClustersClientImpl.java | 46 ++-- .../implementation/DataExportsClientImpl.java | 24 ++- .../implementation/DataSourcesClientImpl.java | 24 ++- .../DeletedWorkspacesClientImpl.java | 22 +- .../implementation/GatewaysClientImpl.java | 6 +- .../IntelligencePacksClientImpl.java | 18 +- .../LinkedServicesClientImpl.java | 24 ++- .../LinkedStorageAccountsClientImpl.java | 24 ++- .../ManagementGroupsClientImpl.java | 6 +- .../OperationStatusesClientImpl.java | 6 +- ...erationalInsightsManagementClientImpl.java | 117 +++++------ .../implementation/OperationsClientImpl.java | 7 +- .../SavedSearchesClientImpl.java | 24 ++- .../implementation/SchemasClientImpl.java | 6 +- .../SharedKeysOperationsClientImpl.java | 12 +- .../StorageInsightConfigsClientImpl.java | 24 ++- .../implementation/TablesClientImpl.java | 18 +- .../implementation/UsagesClientImpl.java | 6 +- .../implementation/WorkspaceImpl.java | 62 +++++- .../WorkspacePurgesClientImpl.java | 12 +- .../implementation/WorkspacesClientImpl.java | 46 ++-- .../models/AssociatedWorkspace.java | 84 ++++++++ .../loganalytics/models/BillingType.java | 34 +++ .../models/CapacityReservationProperties.java | 69 ++++++ .../loganalytics/models/Cluster.java | 154 ++++++++++++-- .../loganalytics/models/ClusterPatch.java | 55 +++++ .../models/ErrorAdditionalInfo.java | 54 ----- .../loganalytics/models/Identity.java | 49 ++++- .../loganalytics/models/IdentityType.java | 3 + .../models/KeyVaultProperties.java | 26 +++ .../models/UserIdentityProperties.java | 54 +++++ .../loganalytics/models/Workspace.java | 127 +++++++++-- .../models/WorkspaceFeatures.java | 170 +++++++++++++++ .../loganalytics/models/WorkspacePatch.java | 104 ++++++++- .../loganalytics/models/WorkspaceSku.java | 17 -- 44 files changed, 1705 insertions(+), 512 deletions(-) create mode 100644 sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/AssociatedWorkspace.java create mode 100644 sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/BillingType.java create mode 100644 sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/CapacityReservationProperties.java delete mode 100644 sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ErrorAdditionalInfo.java create mode 100644 sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/UserIdentityProperties.java create mode 100644 sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceFeatures.java diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/CHANGELOG.md b/sdk/loganalytics/azure-resourcemanager-loganalytics/CHANGELOG.md index 9b3c85a23bad3..839c532fc211c 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/CHANGELOG.md +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/CHANGELOG.md @@ -1,7 +1,8 @@ # Release History -## 1.0.0-beta.3 (Unreleased) +## 1.0.0-beta.1 (2021-05-28) +- Azure Resource Manager LogAnalytics client library for Java. This package contains Microsoft Azure SDK for LogAnalytics Management SDK. Operational Insights Client. Package tag package-2020-10. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ## 1.0.0-beta.2 (2021-03-30) diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/README.md b/sdk/loganalytics/azure-resourcemanager-loganalytics/README.md index 4d00532c8e11e..1e0b3250cd802 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/README.md +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/README.md @@ -2,7 +2,7 @@ Azure Resource Manager LogAnalytics client library for Java. -This package contains Microsoft Azure SDK for LogAnalytics Management SDK. Operational Insights Client. Package tag package-2020-08. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). +This package contains Microsoft Azure SDK for LogAnalytics Management SDK. Operational Insights Client. Package tag package-2020-10. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ## We'd love to hear your feedback @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-loganalytics - 1.0.0-beta.2 + 1.0.0-beta.3 ``` [//]: # ({x-version-update-end}) @@ -74,6 +74,8 @@ See [API design][design] for general introduction on design and key concepts on ## Examples + + ## Troubleshooting ## Next steps diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/pom.xml b/sdk/loganalytics/azure-resourcemanager-loganalytics/pom.xml index dbdb7cc7663f8..cddf468831aa0 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/pom.xml +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/pom.xml @@ -1,67 +1,86 @@ - 4.0.0 - - com.azure - azure-client-sdk-parent - 1.7.0 - ../../parents/azure-client-sdk-parent - + 4.0.0 + + com.azure + azure-client-sdk-parent + 1.7.0 + ../../parents/azure-client-sdk-parent + - com.azure.resourcemanager - azure-resourcemanager-loganalytics - 1.0.0-beta.3 - jar + com.azure.resourcemanager + azure-resourcemanager-loganalytics + 1.0.0-beta.3 + jar - Microsoft Azure SDK for LogAnalytics Management - This package contains Microsoft Azure SDK for LogAnalytics Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Operational Insights Client. Package tag package-2020-08. - https://github.com/Azure/azure-sdk-for-java + Microsoft Azure SDK for LogAnalytics Management + This package contains Microsoft Azure SDK for LogAnalytics Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Operational Insights Client. Package tag package-2020-10. + https://github.com/Azure/azure-sdk-for-java - - - The MIT License (MIT) - http://opensource.org/licenses/MIT - repo - - + + + The MIT License (MIT) + http://opensource.org/licenses/MIT + repo + + - - https://github.com/Azure/azure-sdk-for-java - scm:git:git@github.com:Azure/azure-sdk-for-java.git - scm:git:git@github.com:Azure/azure-sdk-for-java.git - HEAD - - - - microsoft - Microsoft - - - - UTF-8 - - - - - com.azure - azure-core - 1.16.0 - - - com.azure - azure-core-management - 1.2.2 - - - - - - org.jacoco - jacoco-maven-plugin - 0.8.5 - - true - - - - + + https://github.com/Azure/azure-sdk-for-java + scm:git:git@github.com:Azure/azure-sdk-for-java.git + scm:git:git@github.com:Azure/azure-sdk-for-java.git + HEAD + + + + microsoft + Microsoft + + + + UTF-8 + + + + + com.azure + azure-core + 1.16.0 + + + com.azure + azure-core-management + 1.2.2 + + + + + + org.jacoco + jacoco-maven-plugin + 0.8.5 + + true + + + + org.revapi + revapi-maven-plugin + 0.11.2 + + + + + java.method.addedToInterface + + + true + .* + com\.azure\.resourcemanager(\.[^.]+)+\.fluent(\.[^.]+)* + + + + + + + diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/LogAnalyticsManager.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/LogAnalyticsManager.java index 376975bad8cd4..d4bd995792cf7 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/LogAnalyticsManager.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/LogAnalyticsManager.java @@ -82,20 +82,12 @@ public final class LogAnalyticsManager { private ManagementGroups managementGroups; - private Operations operations; - private OperationStatuses operationStatuses; private SharedKeysOperations sharedKeysOperations; private Usages usages; - private Workspaces workspaces; - - private DeletedWorkspaces deletedWorkspaces; - - private Clusters clusters; - private StorageInsightConfigs storageInsightConfigs; private SavedSearches savedSearches; @@ -110,6 +102,14 @@ public final class LogAnalyticsManager { private Tables tables; + private Clusters clusters; + + private Operations operations; + + private Workspaces workspaces; + + private DeletedWorkspaces deletedWorkspaces; + private final OperationalInsightsManagementClient clientObject; private LogAnalyticsManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) { @@ -234,7 +234,7 @@ public LogAnalyticsManager authenticate(TokenCredential credential, AzureProfile .append("-") .append("com.azure.resourcemanager.loganalytics") .append("/") - .append("1.0.0-beta.2"); + .append("1.0.0-beta.1"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder .append(" (") @@ -261,6 +261,7 @@ public LogAnalyticsManager authenticate(TokenCredential credential, AzureProfile .add( new BearerTokenAuthenticationPolicy( credential, profile.getEnvironment().getManagementEndpoint() + "/.default")); + policies.addAll(this.policies); HttpPolicyProviders.addAfterRetryPolicies(policies); policies.add(new HttpLoggingPolicy(httpLogOptions)); HttpPipeline httpPipeline = @@ -320,14 +321,6 @@ public ManagementGroups managementGroups() { return managementGroups; } - /** @return Resource collection API of Operations. */ - public Operations operations() { - if (this.operations == null) { - this.operations = new OperationsImpl(clientObject.getOperations(), this); - } - return operations; - } - /** @return Resource collection API of OperationStatuses. */ public OperationStatuses operationStatuses() { if (this.operationStatuses == null) { @@ -352,30 +345,6 @@ public Usages usages() { return usages; } - /** @return Resource collection API of Workspaces. */ - public Workspaces workspaces() { - if (this.workspaces == null) { - this.workspaces = new WorkspacesImpl(clientObject.getWorkspaces(), this); - } - return workspaces; - } - - /** @return Resource collection API of DeletedWorkspaces. */ - public DeletedWorkspaces deletedWorkspaces() { - if (this.deletedWorkspaces == null) { - this.deletedWorkspaces = new DeletedWorkspacesImpl(clientObject.getDeletedWorkspaces(), this); - } - return deletedWorkspaces; - } - - /** @return Resource collection API of Clusters. */ - public Clusters clusters() { - if (this.clusters == null) { - this.clusters = new ClustersImpl(clientObject.getClusters(), this); - } - return clusters; - } - /** @return Resource collection API of StorageInsightConfigs. */ public StorageInsightConfigs storageInsightConfigs() { if (this.storageInsightConfigs == null) { @@ -432,6 +401,38 @@ public Tables tables() { return tables; } + /** @return Resource collection API of Clusters. */ + public Clusters clusters() { + if (this.clusters == null) { + this.clusters = new ClustersImpl(clientObject.getClusters(), this); + } + return clusters; + } + + /** @return Resource collection API of Operations. */ + public Operations operations() { + if (this.operations == null) { + this.operations = new OperationsImpl(clientObject.getOperations(), this); + } + return operations; + } + + /** @return Resource collection API of Workspaces. */ + public Workspaces workspaces() { + if (this.workspaces == null) { + this.workspaces = new WorkspacesImpl(clientObject.getWorkspaces(), this); + } + return workspaces; + } + + /** @return Resource collection API of DeletedWorkspaces. */ + public DeletedWorkspaces deletedWorkspaces() { + if (this.deletedWorkspaces == null) { + this.deletedWorkspaces = new DeletedWorkspacesImpl(clientObject.getDeletedWorkspaces(), this); + } + return deletedWorkspaces; + } + /** * @return Wrapped service client OperationalInsightsManagementClient providing direct access to the underlying * auto-generated API implementation, based on Azure REST API. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/OperationalInsightsManagementClient.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/OperationalInsightsManagementClient.java index ecb9e1ead6dc4..e77acecba485b 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/OperationalInsightsManagementClient.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/OperationalInsightsManagementClient.java @@ -23,13 +23,6 @@ public interface OperationalInsightsManagementClient { */ String getEndpoint(); - /** - * Gets Api Version. - * - * @return the apiVersion value. - */ - String getApiVersion(); - /** * Gets The HTTP pipeline to send requests through. * @@ -86,13 +79,6 @@ public interface OperationalInsightsManagementClient { */ ManagementGroupsClient getManagementGroups(); - /** - * Gets the OperationsClient object to access its operations. - * - * @return the OperationsClient object. - */ - OperationsClient getOperations(); - /** * Gets the OperationStatusesClient object to access its operations. * @@ -114,27 +100,6 @@ public interface OperationalInsightsManagementClient { */ UsagesClient getUsages(); - /** - * Gets the WorkspacesClient object to access its operations. - * - * @return the WorkspacesClient object. - */ - WorkspacesClient getWorkspaces(); - - /** - * Gets the DeletedWorkspacesClient object to access its operations. - * - * @return the DeletedWorkspacesClient object. - */ - DeletedWorkspacesClient getDeletedWorkspaces(); - - /** - * Gets the ClustersClient object to access its operations. - * - * @return the ClustersClient object. - */ - ClustersClient getClusters(); - /** * Gets the StorageInsightConfigsClient object to access its operations. * @@ -183,4 +148,32 @@ public interface OperationalInsightsManagementClient { * @return the TablesClient object. */ TablesClient getTables(); + + /** + * Gets the ClustersClient object to access its operations. + * + * @return the ClustersClient object. + */ + ClustersClient getClusters(); + + /** + * Gets the OperationsClient object to access its operations. + * + * @return the OperationsClient object. + */ + OperationsClient getOperations(); + + /** + * Gets the WorkspacesClient object to access its operations. + * + * @return the WorkspacesClient object. + */ + WorkspacesClient getWorkspaces(); + + /** + * Gets the DeletedWorkspacesClient object to access its operations. + * + * @return the DeletedWorkspacesClient object. + */ + DeletedWorkspacesClient getDeletedWorkspaces(); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ClusterInner.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ClusterInner.java index d5bc163290d33..3001f3c959209 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ClusterInner.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/ClusterInner.java @@ -8,12 +8,16 @@ import com.azure.core.annotation.JsonFlatten; import com.azure.core.management.Resource; import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.loganalytics.models.AssociatedWorkspace; +import com.azure.resourcemanager.loganalytics.models.BillingType; +import com.azure.resourcemanager.loganalytics.models.CapacityReservationProperties; import com.azure.resourcemanager.loganalytics.models.ClusterEntityStatus; import com.azure.resourcemanager.loganalytics.models.ClusterSku; import com.azure.resourcemanager.loganalytics.models.Identity; import com.azure.resourcemanager.loganalytics.models.KeyVaultProperties; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; import java.util.Map; /** The top level Log Analytics cluster resource container. */ @@ -34,12 +38,6 @@ public class ClusterInner extends Resource { @JsonProperty(value = "sku") private ClusterSku sku; - /* - * The link used to get the next page of recommendations. - */ - @JsonProperty(value = "properties.nextLink") - private String nextLink; - /* * The ID associated with the cluster. */ @@ -52,12 +50,58 @@ public class ClusterInner extends Resource { @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) private ClusterEntityStatus provisioningState; + /* + * Configures whether cluster will use double encryption. This Property can + * not be modified after cluster creation. Default value is 'true' + */ + @JsonProperty(value = "properties.isDoubleEncryptionEnabled") + private Boolean isDoubleEncryptionEnabled; + + /* + * Sets whether the cluster will support availability zones. This can be + * set as true only in regions where Azure Data Explorer support + * Availability Zones. This Property can not be modified after cluster + * creation. Default value is 'true' if region supports Availability Zones. + */ + @JsonProperty(value = "properties.isAvailabilityZonesEnabled") + private Boolean isAvailabilityZonesEnabled; + + /* + * The cluster's billing type. + */ + @JsonProperty(value = "properties.billingType") + private BillingType billingType; + /* * The associated key properties. */ @JsonProperty(value = "properties.keyVaultProperties") private KeyVaultProperties keyVaultProperties; + /* + * The last time the cluster was updated. + */ + @JsonProperty(value = "properties.lastModifiedDate", access = JsonProperty.Access.WRITE_ONLY) + private String lastModifiedDate; + + /* + * The cluster creation time + */ + @JsonProperty(value = "properties.createdDate", access = JsonProperty.Access.WRITE_ONLY) + private String createdDate; + + /* + * The list of Log Analytics workspaces associated with the cluster + */ + @JsonProperty(value = "properties.associatedWorkspaces") + private List associatedWorkspaces; + + /* + * Additional properties for capacity reservation + */ + @JsonProperty(value = "properties.capacityReservationProperties") + private CapacityReservationProperties capacityReservationProperties; + /** * Get the identity property: The identity of the resource. * @@ -99,41 +143,87 @@ public ClusterInner withSku(ClusterSku sku) { } /** - * Get the nextLink property: The link used to get the next page of recommendations. + * Get the clusterId property: The ID associated with the cluster. + * + * @return the clusterId value. + */ + public String clusterId() { + return this.clusterId; + } + + /** + * Get the provisioningState property: The provisioning state of the cluster. * - * @return the nextLink value. + * @return the provisioningState value. */ - public String nextLink() { - return this.nextLink; + public ClusterEntityStatus provisioningState() { + return this.provisioningState; } /** - * Set the nextLink property: The link used to get the next page of recommendations. + * Get the isDoubleEncryptionEnabled property: Configures whether cluster will use double encryption. This Property + * can not be modified after cluster creation. Default value is 'true'. * - * @param nextLink the nextLink value to set. + * @return the isDoubleEncryptionEnabled value. + */ + public Boolean isDoubleEncryptionEnabled() { + return this.isDoubleEncryptionEnabled; + } + + /** + * Set the isDoubleEncryptionEnabled property: Configures whether cluster will use double encryption. This Property + * can not be modified after cluster creation. Default value is 'true'. + * + * @param isDoubleEncryptionEnabled the isDoubleEncryptionEnabled value to set. * @return the ClusterInner object itself. */ - public ClusterInner withNextLink(String nextLink) { - this.nextLink = nextLink; + public ClusterInner withIsDoubleEncryptionEnabled(Boolean isDoubleEncryptionEnabled) { + this.isDoubleEncryptionEnabled = isDoubleEncryptionEnabled; return this; } /** - * Get the clusterId property: The ID associated with the cluster. + * Get the isAvailabilityZonesEnabled property: Sets whether the cluster will support availability zones. This can + * be set as true only in regions where Azure Data Explorer support Availability Zones. This Property can not be + * modified after cluster creation. Default value is 'true' if region supports Availability Zones. * - * @return the clusterId value. + * @return the isAvailabilityZonesEnabled value. */ - public String clusterId() { - return this.clusterId; + public Boolean isAvailabilityZonesEnabled() { + return this.isAvailabilityZonesEnabled; } /** - * Get the provisioningState property: The provisioning state of the cluster. + * Set the isAvailabilityZonesEnabled property: Sets whether the cluster will support availability zones. This can + * be set as true only in regions where Azure Data Explorer support Availability Zones. This Property can not be + * modified after cluster creation. Default value is 'true' if region supports Availability Zones. * - * @return the provisioningState value. + * @param isAvailabilityZonesEnabled the isAvailabilityZonesEnabled value to set. + * @return the ClusterInner object itself. */ - public ClusterEntityStatus provisioningState() { - return this.provisioningState; + public ClusterInner withIsAvailabilityZonesEnabled(Boolean isAvailabilityZonesEnabled) { + this.isAvailabilityZonesEnabled = isAvailabilityZonesEnabled; + return this; + } + + /** + * Get the billingType property: The cluster's billing type. + * + * @return the billingType value. + */ + public BillingType billingType() { + return this.billingType; + } + + /** + * Set the billingType property: The cluster's billing type. + * + * @param billingType the billingType value to set. + * @return the ClusterInner object itself. + */ + public ClusterInner withBillingType(BillingType billingType) { + this.billingType = billingType; + return this; } /** @@ -156,6 +246,64 @@ public ClusterInner withKeyVaultProperties(KeyVaultProperties keyVaultProperties return this; } + /** + * Get the lastModifiedDate property: The last time the cluster was updated. + * + * @return the lastModifiedDate value. + */ + public String lastModifiedDate() { + return this.lastModifiedDate; + } + + /** + * Get the createdDate property: The cluster creation time. + * + * @return the createdDate value. + */ + public String createdDate() { + return this.createdDate; + } + + /** + * Get the associatedWorkspaces property: The list of Log Analytics workspaces associated with the cluster. + * + * @return the associatedWorkspaces value. + */ + public List associatedWorkspaces() { + return this.associatedWorkspaces; + } + + /** + * Set the associatedWorkspaces property: The list of Log Analytics workspaces associated with the cluster. + * + * @param associatedWorkspaces the associatedWorkspaces value to set. + * @return the ClusterInner object itself. + */ + public ClusterInner withAssociatedWorkspaces(List associatedWorkspaces) { + this.associatedWorkspaces = associatedWorkspaces; + return this; + } + + /** + * Get the capacityReservationProperties property: Additional properties for capacity reservation. + * + * @return the capacityReservationProperties value. + */ + public CapacityReservationProperties capacityReservationProperties() { + return this.capacityReservationProperties; + } + + /** + * Set the capacityReservationProperties property: Additional properties for capacity reservation. + * + * @param capacityReservationProperties the capacityReservationProperties value to set. + * @return the ClusterInner object itself. + */ + public ClusterInner withCapacityReservationProperties(CapacityReservationProperties capacityReservationProperties) { + this.capacityReservationProperties = capacityReservationProperties; + return this; + } + /** {@inheritDoc} */ @Override public ClusterInner withLocation(String location) { @@ -185,5 +333,11 @@ public void validate() { if (keyVaultProperties() != null) { keyVaultProperties().validate(); } + if (associatedWorkspaces() != null) { + associatedWorkspaces().forEach(e -> e.validate()); + } + if (capacityReservationProperties() != null) { + capacityReservationProperties().validate(); + } } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/WorkspaceInner.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/WorkspaceInner.java index ff5401ba2e353..4d25e18d01cd5 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/WorkspaceInner.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/models/WorkspaceInner.java @@ -100,10 +100,29 @@ public class WorkspaceInner extends Resource { private List privateLinkScopedResources; /* - * Workspace features. + * Flag that indicate if data should be exported. */ - @JsonProperty(value = "properties.features") - private Map features; + @JsonProperty(value = "properties.features.enableDataExport") + private Boolean enableDataExport; + + /* + * Flag that describes if we want to remove the data after 30 days. + */ + @JsonProperty(value = "properties.features.immediatePurgeDataOn30Days") + private Boolean immediatePurgeDataOn30Days; + + /* + * Flag that indicate which permission to use - resource or workspace or + * both. + */ + @JsonProperty(value = "properties.features.enableLogAccessUsingOnlyResourcePermissions") + private Boolean enableLogAccessUsingOnlyResourcePermissions; + + /* + * Dedicated LA cluster resourceId that is linked to the workspaces. + */ + @JsonProperty(value = "properties.features.clusterResourceId") + private String clusterResourceId; /** * Get the etag property: The ETag of the workspace. @@ -304,22 +323,85 @@ public List privateLinkScopedResources() { } /** - * Get the features property: Workspace features. + * Get the enableDataExport property: Flag that indicate if data should be exported. + * + * @return the enableDataExport value. + */ + public Boolean enableDataExport() { + return this.enableDataExport; + } + + /** + * Set the enableDataExport property: Flag that indicate if data should be exported. + * + * @param enableDataExport the enableDataExport value to set. + * @return the WorkspaceInner object itself. + */ + public WorkspaceInner withEnableDataExport(Boolean enableDataExport) { + this.enableDataExport = enableDataExport; + return this; + } + + /** + * Get the immediatePurgeDataOn30Days property: Flag that describes if we want to remove the data after 30 days. + * + * @return the immediatePurgeDataOn30Days value. + */ + public Boolean immediatePurgeDataOn30Days() { + return this.immediatePurgeDataOn30Days; + } + + /** + * Set the immediatePurgeDataOn30Days property: Flag that describes if we want to remove the data after 30 days. + * + * @param immediatePurgeDataOn30Days the immediatePurgeDataOn30Days value to set. + * @return the WorkspaceInner object itself. + */ + public WorkspaceInner withImmediatePurgeDataOn30Days(Boolean immediatePurgeDataOn30Days) { + this.immediatePurgeDataOn30Days = immediatePurgeDataOn30Days; + return this; + } + + /** + * Get the enableLogAccessUsingOnlyResourcePermissions property: Flag that indicate which permission to use - + * resource or workspace or both. + * + * @return the enableLogAccessUsingOnlyResourcePermissions value. + */ + public Boolean enableLogAccessUsingOnlyResourcePermissions() { + return this.enableLogAccessUsingOnlyResourcePermissions; + } + + /** + * Set the enableLogAccessUsingOnlyResourcePermissions property: Flag that indicate which permission to use - + * resource or workspace or both. + * + * @param enableLogAccessUsingOnlyResourcePermissions the enableLogAccessUsingOnlyResourcePermissions value to set. + * @return the WorkspaceInner object itself. + */ + public WorkspaceInner withEnableLogAccessUsingOnlyResourcePermissions( + Boolean enableLogAccessUsingOnlyResourcePermissions) { + this.enableLogAccessUsingOnlyResourcePermissions = enableLogAccessUsingOnlyResourcePermissions; + return this; + } + + /** + * Get the clusterResourceId property: Dedicated LA cluster resourceId that is linked to the workspaces. * - * @return the features value. + * @return the clusterResourceId value. */ - public Map features() { - return this.features; + public String clusterResourceId() { + return this.clusterResourceId; } /** - * Set the features property: Workspace features. + * Set the clusterResourceId property: Dedicated LA cluster resourceId that is linked to the workspaces. * - * @param features the features value to set. + * @param clusterResourceId the clusterResourceId value to set. * @return the WorkspaceInner object itself. */ - public WorkspaceInner withFeatures(Map features) { - this.features = features; + public WorkspaceInner withClusterResourceId(String clusterResourceId) { + this.clusterResourceId = clusterResourceId; return this; } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/AvailableServiceTiersClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/AvailableServiceTiersClientImpl.java index 57f13aa48eeb6..97f1450b4c0ff 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/AvailableServiceTiersClientImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/AvailableServiceTiersClientImpl.java @@ -104,6 +104,7 @@ private Mono>> listByWorkspaceWithRespo if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -114,7 +115,7 @@ private Mono>> listByWorkspaceWithRespo this.client.getSubscriptionId(), resourceGroupName, workspaceName, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -153,6 +154,7 @@ private Mono>> listByWorkspaceWithRespo if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -161,7 +163,7 @@ private Mono>> listByWorkspaceWithRespo this.client.getSubscriptionId(), resourceGroupName, workspaceName, - this.client.getApiVersion(), + apiVersion, accept, context); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClusterImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClusterImpl.java index fdb30b0893996..46b6b92d594bb 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClusterImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClusterImpl.java @@ -7,6 +7,9 @@ import com.azure.core.management.Region; import com.azure.core.util.Context; import com.azure.resourcemanager.loganalytics.fluent.models.ClusterInner; +import com.azure.resourcemanager.loganalytics.models.AssociatedWorkspace; +import com.azure.resourcemanager.loganalytics.models.BillingType; +import com.azure.resourcemanager.loganalytics.models.CapacityReservationProperties; import com.azure.resourcemanager.loganalytics.models.Cluster; import com.azure.resourcemanager.loganalytics.models.ClusterEntityStatus; import com.azure.resourcemanager.loganalytics.models.ClusterPatch; @@ -14,6 +17,7 @@ import com.azure.resourcemanager.loganalytics.models.Identity; import com.azure.resourcemanager.loganalytics.models.KeyVaultProperties; import java.util.Collections; +import java.util.List; import java.util.Map; public final class ClusterImpl implements Cluster, Cluster.Definition, Cluster.Update { @@ -54,10 +58,6 @@ public ClusterSku sku() { return this.innerModel().sku(); } - public String nextLink() { - return this.innerModel().nextLink(); - } - public String clusterId() { return this.innerModel().clusterId(); } @@ -66,10 +66,43 @@ public ClusterEntityStatus provisioningState() { return this.innerModel().provisioningState(); } + public Boolean isDoubleEncryptionEnabled() { + return this.innerModel().isDoubleEncryptionEnabled(); + } + + public Boolean isAvailabilityZonesEnabled() { + return this.innerModel().isAvailabilityZonesEnabled(); + } + + public BillingType billingType() { + return this.innerModel().billingType(); + } + public KeyVaultProperties keyVaultProperties() { return this.innerModel().keyVaultProperties(); } + public String lastModifiedDate() { + return this.innerModel().lastModifiedDate(); + } + + public String createdDate() { + return this.innerModel().createdDate(); + } + + public List associatedWorkspaces() { + List inner = this.innerModel().associatedWorkspaces(); + if (inner != null) { + return Collections.unmodifiableList(inner); + } else { + return Collections.emptyList(); + } + } + + public CapacityReservationProperties capacityReservationProperties() { + return this.innerModel().capacityReservationProperties(); + } + public Region region() { return Region.fromName(this.regionName()); } @@ -194,8 +227,13 @@ public ClusterImpl withTags(Map tags) { } public ClusterImpl withIdentity(Identity identity) { - this.innerModel().withIdentity(identity); - return this; + if (isInCreateMode()) { + this.innerModel().withIdentity(identity); + return this; + } else { + this.updateParameters.withIdentity(identity); + return this; + } } public ClusterImpl withSku(ClusterSku sku) { @@ -208,11 +246,26 @@ public ClusterImpl withSku(ClusterSku sku) { } } - public ClusterImpl withNextLink(String nextLink) { - this.innerModel().withNextLink(nextLink); + public ClusterImpl withIsDoubleEncryptionEnabled(Boolean isDoubleEncryptionEnabled) { + this.innerModel().withIsDoubleEncryptionEnabled(isDoubleEncryptionEnabled); + return this; + } + + public ClusterImpl withIsAvailabilityZonesEnabled(Boolean isAvailabilityZonesEnabled) { + this.innerModel().withIsAvailabilityZonesEnabled(isAvailabilityZonesEnabled); return this; } + public ClusterImpl withBillingType(BillingType billingType) { + if (isInCreateMode()) { + this.innerModel().withBillingType(billingType); + return this; + } else { + this.updateParameters.withBillingType(billingType); + return this; + } + } + public ClusterImpl withKeyVaultProperties(KeyVaultProperties keyVaultProperties) { if (isInCreateMode()) { this.innerModel().withKeyVaultProperties(keyVaultProperties); @@ -223,6 +276,16 @@ public ClusterImpl withKeyVaultProperties(KeyVaultProperties keyVaultProperties) } } + public ClusterImpl withAssociatedWorkspaces(List associatedWorkspaces) { + this.innerModel().withAssociatedWorkspaces(associatedWorkspaces); + return this; + } + + public ClusterImpl withCapacityReservationProperties(CapacityReservationProperties capacityReservationProperties) { + this.innerModel().withCapacityReservationProperties(capacityReservationProperties); + return this; + } + private boolean isInCreateMode() { return this.innerModel().id() == null; } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClustersClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClustersClientImpl.java index d9baac7013721..689fdc30e5ba3 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClustersClientImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ClustersClientImpl.java @@ -203,6 +203,7 @@ private Mono> listByResourceGroupSinglePageAsync(Str new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-10-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -211,7 +212,7 @@ private Mono> listByResourceGroupSinglePageAsync(Str .listByResourceGroup( this.client.getEndpoint(), resourceGroupName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), accept, context)) @@ -256,13 +257,14 @@ private Mono> listByResourceGroupSinglePageAsync( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service .listByResourceGroup( this.client.getEndpoint(), resourceGroupName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), accept, context) @@ -360,17 +362,13 @@ private Mono> listSinglePageAsync() { new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-10-01"; final String accept = "application/json"; return FluxUtil .withContext( context -> service - .list( - this.client.getEndpoint(), - this.client.getApiVersion(), - this.client.getSubscriptionId(), - accept, - context)) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context)) .>map( res -> new PagedResponseBase<>( @@ -406,15 +404,11 @@ private Mono> listSinglePageAsync(Context context) { new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list( - this.client.getEndpoint(), - this.client.getApiVersion(), - this.client.getSubscriptionId(), - accept, - context) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) .map( res -> new PagedResponseBase<>( @@ -517,6 +511,7 @@ private Mono>> createOrUpdateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2020-10-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -525,7 +520,7 @@ private Mono>> createOrUpdateWithResponseAsync( .createOrUpdate( this.client.getEndpoint(), resourceGroupName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), clusterName, parameters, @@ -573,13 +568,14 @@ private Mono>> createOrUpdateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2020-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service .createOrUpdate( this.client.getEndpoint(), resourceGroupName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), clusterName, parameters, @@ -772,6 +768,7 @@ private Mono>> deleteWithResponseAsync(String resource new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-10-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -781,7 +778,7 @@ private Mono>> deleteWithResponseAsync(String resource this.client.getEndpoint(), resourceGroupName, clusterName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), accept, context)) @@ -821,6 +818,7 @@ private Mono>> deleteWithResponseAsync( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -828,7 +826,7 @@ private Mono>> deleteWithResponseAsync( this.client.getEndpoint(), resourceGroupName, clusterName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), accept, context); @@ -999,6 +997,7 @@ private Mono> getByResourceGroupWithResponseAsync( if (clusterName == null) { return Mono.error(new IllegalArgumentException("Parameter clusterName is required and cannot be null.")); } + final String apiVersion = "2020-10-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -1008,7 +1007,7 @@ private Mono> getByResourceGroupWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - this.client.getApiVersion(), + apiVersion, clusterName, accept, context)) @@ -1048,6 +1047,7 @@ private Mono> getByResourceGroupWithResponseAsync( if (clusterName == null) { return Mono.error(new IllegalArgumentException("Parameter clusterName is required and cannot be null.")); } + final String apiVersion = "2020-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1055,7 +1055,7 @@ private Mono> getByResourceGroupWithResponseAsync( this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - this.client.getApiVersion(), + apiVersion, clusterName, accept, context); @@ -1154,6 +1154,7 @@ private Mono> updateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2020-10-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -1163,7 +1164,7 @@ private Mono> updateWithResponseAsync( this.client.getEndpoint(), resourceGroupName, clusterName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), parameters, accept, @@ -1210,6 +1211,7 @@ private Mono> updateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2020-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1217,7 +1219,7 @@ private Mono> updateWithResponseAsync( this.client.getEndpoint(), resourceGroupName, clusterName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), parameters, accept, diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataExportsClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataExportsClientImpl.java index e50eb7f34eb3f..3dc11d7c70b04 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataExportsClientImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataExportsClientImpl.java @@ -159,6 +159,7 @@ private Mono> listByWorkspaceSinglePageAsync( if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -169,7 +170,7 @@ private Mono> listByWorkspaceSinglePageAsync( this.client.getSubscriptionId(), resourceGroupName, workspaceName, - this.client.getApiVersion(), + apiVersion, accept, context)) .>map( @@ -212,6 +213,7 @@ private Mono> listByWorkspaceSinglePageAsync( if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -220,7 +222,7 @@ private Mono> listByWorkspaceSinglePageAsync( this.client.getSubscriptionId(), resourceGroupName, workspaceName, - this.client.getApiVersion(), + apiVersion, accept, context) .map( @@ -335,6 +337,7 @@ private Mono> createOrUpdateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -346,7 +349,7 @@ private Mono> createOrUpdateWithResponseAsync( resourceGroupName, workspaceName, dataExportName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context)) @@ -400,6 +403,7 @@ private Mono> createOrUpdateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -409,7 +413,7 @@ private Mono> createOrUpdateWithResponseAsync( resourceGroupName, workspaceName, dataExportName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context); @@ -519,6 +523,7 @@ private Mono> getWithResponseAsync( if (dataExportName == null) { return Mono.error(new IllegalArgumentException("Parameter dataExportName is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -530,7 +535,7 @@ private Mono> getWithResponseAsync( resourceGroupName, workspaceName, dataExportName, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -573,6 +578,7 @@ private Mono> getWithResponseAsync( if (dataExportName == null) { return Mono.error(new IllegalArgumentException("Parameter dataExportName is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -582,7 +588,7 @@ private Mono> getWithResponseAsync( resourceGroupName, workspaceName, dataExportName, - this.client.getApiVersion(), + apiVersion, accept, context); } @@ -681,6 +687,7 @@ private Mono> deleteWithResponseAsync( if (dataExportName == null) { return Mono.error(new IllegalArgumentException("Parameter dataExportName is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -692,7 +699,7 @@ private Mono> deleteWithResponseAsync( resourceGroupName, workspaceName, dataExportName, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -735,6 +742,7 @@ private Mono> deleteWithResponseAsync( if (dataExportName == null) { return Mono.error(new IllegalArgumentException("Parameter dataExportName is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -744,7 +752,7 @@ private Mono> deleteWithResponseAsync( resourceGroupName, workspaceName, dataExportName, - this.client.getApiVersion(), + apiVersion, accept, context); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataSourcesClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataSourcesClientImpl.java index e62dbb1122913..01c0087da0549 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataSourcesClientImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DataSourcesClientImpl.java @@ -180,6 +180,7 @@ private Mono> createOrUpdateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -190,7 +191,7 @@ private Mono> createOrUpdateWithResponseAsync( resourceGroupName, workspaceName, dataSourceName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), parameters, accept, @@ -245,6 +246,7 @@ private Mono> createOrUpdateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -253,7 +255,7 @@ private Mono> createOrUpdateWithResponseAsync( resourceGroupName, workspaceName, dataSourceName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), parameters, accept, @@ -364,6 +366,7 @@ private Mono> deleteWithResponseAsync( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; return FluxUtil .withContext( context -> @@ -373,7 +376,7 @@ private Mono> deleteWithResponseAsync( resourceGroupName, workspaceName, dataSourceName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -416,6 +419,7 @@ private Mono> deleteWithResponseAsync( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; context = this.client.mergeContext(context); return service .delete( @@ -423,7 +427,7 @@ private Mono> deleteWithResponseAsync( resourceGroupName, workspaceName, dataSourceName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), context); } @@ -514,6 +518,7 @@ private Mono> getWithResponseAsync( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -524,7 +529,7 @@ private Mono> getWithResponseAsync( resourceGroupName, workspaceName, dataSourceName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), accept, context)) @@ -568,6 +573,7 @@ private Mono> getWithResponseAsync( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -576,7 +582,7 @@ private Mono> getWithResponseAsync( resourceGroupName, workspaceName, dataSourceName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), accept, context); @@ -677,6 +683,7 @@ private Mono> listByWorkspaceSinglePageAsync( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -688,7 +695,7 @@ private Mono> listByWorkspaceSinglePageAsync( workspaceName, filter, skiptoken, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), accept, context)) @@ -742,6 +749,7 @@ private Mono> listByWorkspaceSinglePageAsync( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -751,7 +759,7 @@ private Mono> listByWorkspaceSinglePageAsync( workspaceName, filter, skiptoken, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), accept, context) diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DeletedWorkspacesClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DeletedWorkspacesClientImpl.java index 6d95f1fc33508..cf9e5e5d49ec3 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DeletedWorkspacesClientImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/DeletedWorkspacesClientImpl.java @@ -106,17 +106,13 @@ private Mono> listSinglePageAsync() { new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-10-01"; final String accept = "application/json"; return FluxUtil .withContext( context -> service - .list( - this.client.getEndpoint(), - this.client.getApiVersion(), - this.client.getSubscriptionId(), - accept, - context)) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context)) .>map( res -> new PagedResponseBase<>( @@ -147,15 +143,11 @@ private Mono> listSinglePageAsync(Context context) new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list( - this.client.getEndpoint(), - this.client.getApiVersion(), - this.client.getSubscriptionId(), - accept, - context) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) .map( res -> new PagedResponseBase<>( @@ -241,6 +233,7 @@ private Mono> listByResourceGroupSinglePageAsync(S new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-10-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -249,7 +242,7 @@ private Mono> listByResourceGroupSinglePageAsync(S .listByResourceGroup( this.client.getEndpoint(), resourceGroupName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), accept, context)) @@ -289,13 +282,14 @@ private Mono> listByResourceGroupSinglePageAsync( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service .listByResourceGroup( this.client.getEndpoint(), resourceGroupName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), accept, context) diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/GatewaysClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/GatewaysClientImpl.java index dbfa15e3aa390..07b595f539ce7 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/GatewaysClientImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/GatewaysClientImpl.java @@ -103,6 +103,7 @@ private Mono> deleteWithResponseAsync( if (gatewayId == null) { return Mono.error(new IllegalArgumentException("Parameter gatewayId is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; return FluxUtil .withContext( context -> @@ -113,7 +114,7 @@ private Mono> deleteWithResponseAsync( resourceGroupName, workspaceName, gatewayId, - this.client.getApiVersion(), + apiVersion, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -155,6 +156,7 @@ private Mono> deleteWithResponseAsync( if (gatewayId == null) { return Mono.error(new IllegalArgumentException("Parameter gatewayId is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; context = this.client.mergeContext(context); return service .delete( @@ -163,7 +165,7 @@ private Mono> deleteWithResponseAsync( resourceGroupName, workspaceName, gatewayId, - this.client.getApiVersion(), + apiVersion, context); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/IntelligencePacksClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/IntelligencePacksClientImpl.java index 594a76ca050ff..dadc1e331c087 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/IntelligencePacksClientImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/IntelligencePacksClientImpl.java @@ -139,6 +139,7 @@ private Mono> disableWithResponseAsync( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; return FluxUtil .withContext( context -> @@ -148,7 +149,7 @@ private Mono> disableWithResponseAsync( resourceGroupName, workspaceName, intelligencePackName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -192,6 +193,7 @@ private Mono> disableWithResponseAsync( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; context = this.client.mergeContext(context); return service .disable( @@ -199,7 +201,7 @@ private Mono> disableWithResponseAsync( resourceGroupName, workspaceName, intelligencePackName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), context); } @@ -291,6 +293,7 @@ private Mono> enableWithResponseAsync( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; return FluxUtil .withContext( context -> @@ -300,7 +303,7 @@ private Mono> enableWithResponseAsync( resourceGroupName, workspaceName, intelligencePackName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -344,6 +347,7 @@ private Mono> enableWithResponseAsync( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; context = this.client.mergeContext(context); return service .enable( @@ -351,7 +355,7 @@ private Mono> enableWithResponseAsync( resourceGroupName, workspaceName, intelligencePackName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), context); } @@ -438,6 +442,7 @@ private Mono>> listWithResponseAsync( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -447,7 +452,7 @@ private Mono>> listWithResponseAsync( this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), accept, context)) @@ -487,6 +492,7 @@ private Mono>> listWithResponseAsync( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -494,7 +500,7 @@ private Mono>> listWithResponseAsync( this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), accept, context); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedServicesClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedServicesClientImpl.java index 2f90f6a77b0d9..60a3237c541e5 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedServicesClientImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedServicesClientImpl.java @@ -175,6 +175,7 @@ private Mono>> createOrUpdateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -186,7 +187,7 @@ private Mono>> createOrUpdateWithResponseAsync( workspaceName, linkedServiceName, this.client.getSubscriptionId(), - this.client.getApiVersion(), + apiVersion, parameters, accept, context)) @@ -241,6 +242,7 @@ private Mono>> createOrUpdateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -250,7 +252,7 @@ private Mono>> createOrUpdateWithResponseAsync( workspaceName, linkedServiceName, this.client.getSubscriptionId(), - this.client.getApiVersion(), + apiVersion, parameters, accept, context); @@ -474,6 +476,7 @@ private Mono>> deleteWithResponseAsync( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -484,7 +487,7 @@ private Mono>> deleteWithResponseAsync( resourceGroupName, workspaceName, linkedServiceName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), accept, context)) @@ -529,6 +532,7 @@ private Mono>> deleteWithResponseAsync( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -537,7 +541,7 @@ private Mono>> deleteWithResponseAsync( resourceGroupName, workspaceName, linkedServiceName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), accept, context); @@ -734,6 +738,7 @@ private Mono> getWithResponseAsync( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -744,7 +749,7 @@ private Mono> getWithResponseAsync( resourceGroupName, workspaceName, linkedServiceName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), accept, context)) @@ -789,6 +794,7 @@ private Mono> getWithResponseAsync( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -797,7 +803,7 @@ private Mono> getWithResponseAsync( resourceGroupName, workspaceName, linkedServiceName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), accept, context); @@ -894,6 +900,7 @@ private Mono> listByWorkspaceSinglePageAsync( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -903,7 +910,7 @@ private Mono> listByWorkspaceSinglePageAsync( this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), accept, context)) @@ -947,6 +954,7 @@ private Mono> listByWorkspaceSinglePageAsync( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -954,7 +962,7 @@ private Mono> listByWorkspaceSinglePageAsync( this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), accept, context) diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedStorageAccountsClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedStorageAccountsClientImpl.java index 09b7f5548f2a5..014ddbf87d854 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedStorageAccountsClientImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/LinkedStorageAccountsClientImpl.java @@ -174,6 +174,7 @@ private Mono> createOrUpdateWithRes } else { parameters.validate(); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -185,7 +186,7 @@ private Mono> createOrUpdateWithRes workspaceName, dataSourceType, this.client.getSubscriptionId(), - this.client.getApiVersion(), + apiVersion, parameters, accept, context)) @@ -240,6 +241,7 @@ private Mono> createOrUpdateWithRes } else { parameters.validate(); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -249,7 +251,7 @@ private Mono> createOrUpdateWithRes workspaceName, dataSourceType, this.client.getSubscriptionId(), - this.client.getApiVersion(), + apiVersion, parameters, accept, context); @@ -368,6 +370,7 @@ private Mono> deleteWithResponseAsync( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; return FluxUtil .withContext( context -> @@ -377,7 +380,7 @@ private Mono> deleteWithResponseAsync( resourceGroupName, workspaceName, dataSourceType, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -420,6 +423,7 @@ private Mono> deleteWithResponseAsync( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; context = this.client.mergeContext(context); return service .delete( @@ -427,7 +431,7 @@ private Mono> deleteWithResponseAsync( resourceGroupName, workspaceName, dataSourceType, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), context); } @@ -518,6 +522,7 @@ private Mono> getWithResponseAsync( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -528,7 +533,7 @@ private Mono> getWithResponseAsync( resourceGroupName, workspaceName, dataSourceType, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), accept, context)) @@ -572,6 +577,7 @@ private Mono> getWithResponseAsync( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -580,7 +586,7 @@ private Mono> getWithResponseAsync( resourceGroupName, workspaceName, dataSourceType, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), accept, context); @@ -680,6 +686,7 @@ private Mono> listByWorkspaceS if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -689,7 +696,7 @@ private Mono> listByWorkspaceS this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - this.client.getApiVersion(), + apiVersion, workspaceName, accept, context)) @@ -735,6 +742,7 @@ private Mono> listByWorkspaceS if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -742,7 +750,7 @@ private Mono> listByWorkspaceS this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - this.client.getApiVersion(), + apiVersion, workspaceName, accept, context) diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ManagementGroupsClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ManagementGroupsClientImpl.java index 0b0fa63bfc39e..b162bd3a82dfd 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ManagementGroupsClientImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/ManagementGroupsClientImpl.java @@ -107,6 +107,7 @@ private Mono> listSinglePageAsync( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -116,7 +117,7 @@ private Mono> listSinglePageAsync( this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), accept, context)) @@ -160,6 +161,7 @@ private Mono> listSinglePageAsync( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -167,7 +169,7 @@ private Mono> listSinglePageAsync( this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), accept, context) diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationStatusesClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationStatusesClientImpl.java index 7dfd440bdfd28..0c5d1965495ca 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationStatusesClientImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationStatusesClientImpl.java @@ -101,6 +101,7 @@ private Mono> getWithResponseAsync(String locatio new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -110,7 +111,7 @@ private Mono> getWithResponseAsync(String locatio this.client.getEndpoint(), location, asyncOperationId, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), accept, context)) @@ -150,6 +151,7 @@ private Mono> getWithResponseAsync( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -157,7 +159,7 @@ private Mono> getWithResponseAsync( this.client.getEndpoint(), location, asyncOperationId, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), accept, context); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationalInsightsManagementClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationalInsightsManagementClientImpl.java index 33ae49d8a88dd..e5a996ccebec8 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationalInsightsManagementClientImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationalInsightsManagementClientImpl.java @@ -81,18 +81,6 @@ public String getEndpoint() { return this.endpoint; } - /** Api Version. */ - private final String apiVersion; - - /** - * Gets Api Version. - * - * @return the apiVersion value. - */ - public String getApiVersion() { - return this.apiVersion; - } - /** The HTTP pipeline to send requests through. */ private final HttpPipeline httpPipeline; @@ -201,18 +189,6 @@ public ManagementGroupsClient getManagementGroups() { return this.managementGroups; } - /** 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 OperationStatusesClient object to access its operations. */ private final OperationStatusesClient operationStatuses; @@ -249,42 +225,6 @@ public UsagesClient getUsages() { return this.usages; } - /** 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 DeletedWorkspacesClient object to access its operations. */ - private final DeletedWorkspacesClient deletedWorkspaces; - - /** - * Gets the DeletedWorkspacesClient object to access its operations. - * - * @return the DeletedWorkspacesClient object. - */ - public DeletedWorkspacesClient getDeletedWorkspaces() { - return this.deletedWorkspaces; - } - - /** The ClustersClient object to access its operations. */ - private final ClustersClient clusters; - - /** - * Gets the ClustersClient object to access its operations. - * - * @return the ClustersClient object. - */ - public ClustersClient getClusters() { - return this.clusters; - } - /** The StorageInsightConfigsClient object to access its operations. */ private final StorageInsightConfigsClient storageInsightConfigs; @@ -369,6 +309,54 @@ public TablesClient getTables() { return this.tables; } + /** The ClustersClient object to access its operations. */ + private final ClustersClient clusters; + + /** + * Gets the ClustersClient object to access its operations. + * + * @return the ClustersClient object. + */ + public ClustersClient getClusters() { + return this.clusters; + } + + /** 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 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 DeletedWorkspacesClient object to access its operations. */ + private final DeletedWorkspacesClient deletedWorkspaces; + + /** + * Gets the DeletedWorkspacesClient object to access its operations. + * + * @return the DeletedWorkspacesClient object. + */ + public DeletedWorkspacesClient getDeletedWorkspaces() { + return this.deletedWorkspaces; + } + /** * Initializes an instance of OperationalInsightsManagementClient client. * @@ -391,20 +379,15 @@ public TablesClient getTables() { this.defaultPollInterval = defaultPollInterval; this.subscriptionId = subscriptionId; this.endpoint = endpoint; - this.apiVersion = "2020-08-01"; this.dataExports = new DataExportsClientImpl(this); this.dataSources = new DataSourcesClientImpl(this); this.intelligencePacks = new IntelligencePacksClientImpl(this); this.linkedServices = new LinkedServicesClientImpl(this); this.linkedStorageAccounts = new LinkedStorageAccountsClientImpl(this); this.managementGroups = new ManagementGroupsClientImpl(this); - this.operations = new OperationsClientImpl(this); this.operationStatuses = new OperationStatusesClientImpl(this); this.sharedKeysOperations = new SharedKeysOperationsClientImpl(this); this.usages = new UsagesClientImpl(this); - this.workspaces = new WorkspacesClientImpl(this); - this.deletedWorkspaces = new DeletedWorkspacesClientImpl(this); - this.clusters = new ClustersClientImpl(this); this.storageInsightConfigs = new StorageInsightConfigsClientImpl(this); this.savedSearches = new SavedSearchesClientImpl(this); this.availableServiceTiers = new AvailableServiceTiersClientImpl(this); @@ -412,6 +395,10 @@ public TablesClient getTables() { this.schemas = new SchemasClientImpl(this); this.workspacePurges = new WorkspacePurgesClientImpl(this); this.tables = new TablesClientImpl(this); + this.clusters = new ClustersClientImpl(this); + this.operations = new OperationsClientImpl(this); + this.workspaces = new WorkspacesClientImpl(this); + this.deletedWorkspaces = new DeletedWorkspacesClientImpl(this); } /** diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationsClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationsClientImpl.java index 8ed8020bfcb34..3fd4f06a764a5 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationsClientImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/OperationsClientImpl.java @@ -95,10 +95,10 @@ private Mono> listSinglePageAsync() { new IllegalArgumentException( "Parameter this.client.getEndpoint() is required and cannot be null.")); } + final String apiVersion = "2020-10-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, accept, context)) .>map( res -> new PagedResponseBase<>( @@ -128,10 +128,11 @@ private Mono> listSinglePageAsync(Context context) new IllegalArgumentException( "Parameter this.client.getEndpoint() is required and cannot be null.")); } + final String apiVersion = "2020-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list(this.client.getEndpoint(), this.client.getApiVersion(), accept, context) + .list(this.client.getEndpoint(), apiVersion, accept, context) .map( res -> new PagedResponseBase<>( diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SavedSearchesClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SavedSearchesClientImpl.java index 8c7dba622ff72..69afd818c0c6d 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SavedSearchesClientImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SavedSearchesClientImpl.java @@ -158,6 +158,7 @@ private Mono> deleteWithResponseAsync( if (savedSearchId == null) { return Mono.error(new IllegalArgumentException("Parameter savedSearchId is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; return FluxUtil .withContext( context -> @@ -168,7 +169,7 @@ private Mono> deleteWithResponseAsync( resourceGroupName, workspaceName, savedSearchId, - this.client.getApiVersion(), + apiVersion, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -210,6 +211,7 @@ private Mono> deleteWithResponseAsync( if (savedSearchId == null) { return Mono.error(new IllegalArgumentException("Parameter savedSearchId is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; context = this.client.mergeContext(context); return service .delete( @@ -218,7 +220,7 @@ private Mono> deleteWithResponseAsync( resourceGroupName, workspaceName, savedSearchId, - this.client.getApiVersion(), + apiVersion, context); } @@ -314,6 +316,7 @@ private Mono> createOrUpdateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -325,7 +328,7 @@ private Mono> createOrUpdateWithResponseAsync( resourceGroupName, workspaceName, savedSearchId, - this.client.getApiVersion(), + apiVersion, parameters, accept, context)) @@ -379,6 +382,7 @@ private Mono> createOrUpdateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -388,7 +392,7 @@ private Mono> createOrUpdateWithResponseAsync( resourceGroupName, workspaceName, savedSearchId, - this.client.getApiVersion(), + apiVersion, parameters, accept, context); @@ -498,6 +502,7 @@ private Mono> getWithResponseAsync( if (savedSearchId == null) { return Mono.error(new IllegalArgumentException("Parameter savedSearchId is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -509,7 +514,7 @@ private Mono> getWithResponseAsync( resourceGroupName, workspaceName, savedSearchId, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -552,6 +557,7 @@ private Mono> getWithResponseAsync( if (savedSearchId == null) { return Mono.error(new IllegalArgumentException("Parameter savedSearchId is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -561,7 +567,7 @@ private Mono> getWithResponseAsync( resourceGroupName, workspaceName, savedSearchId, - this.client.getApiVersion(), + apiVersion, accept, context); } @@ -656,6 +662,7 @@ private Mono> listByWorkspaceWithResponse new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -665,7 +672,7 @@ private Mono> listByWorkspaceWithResponse this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), accept, context)) @@ -705,6 +712,7 @@ private Mono> listByWorkspaceWithResponse new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -712,7 +720,7 @@ private Mono> listByWorkspaceWithResponse this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), accept, context); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SchemasClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SchemasClientImpl.java index 59c20877bfa45..6c49c0c5be504 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SchemasClientImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SchemasClientImpl.java @@ -101,6 +101,7 @@ private Mono> getWithResponseAsync( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -110,7 +111,7 @@ private Mono> getWithResponseAsync( this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), accept, context)) @@ -150,6 +151,7 @@ private Mono> getWithResponseAsync( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -157,7 +159,7 @@ private Mono> getWithResponseAsync( this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), accept, context); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SharedKeysOperationsClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SharedKeysOperationsClientImpl.java index 9a05dccf50f3b..9addf67c51444 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SharedKeysOperationsClientImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SharedKeysOperationsClientImpl.java @@ -118,6 +118,7 @@ private Mono> getSharedKeysWithResponseAsync( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -127,7 +128,7 @@ private Mono> getSharedKeysWithResponseAsync( this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), accept, context)) @@ -167,6 +168,7 @@ private Mono> getSharedKeysWithResponseAsync( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -174,7 +176,7 @@ private Mono> getSharedKeysWithResponseAsync( this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), accept, context); @@ -268,6 +270,7 @@ private Mono> regenerateWithResponseAsync( if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -278,7 +281,7 @@ private Mono> regenerateWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, workspaceName, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -318,6 +321,7 @@ private Mono> regenerateWithResponseAsync( if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -326,7 +330,7 @@ private Mono> regenerateWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, workspaceName, - this.client.getApiVersion(), + apiVersion, accept, context); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/StorageInsightConfigsClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/StorageInsightConfigsClientImpl.java index dd9d0d8a166dc..71cab1936f43a 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/StorageInsightConfigsClientImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/StorageInsightConfigsClientImpl.java @@ -180,6 +180,7 @@ private Mono> createOrUpdateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -190,7 +191,7 @@ private Mono> createOrUpdateWithResponseAsync( resourceGroupName, workspaceName, storageInsightName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), parameters, accept, @@ -246,6 +247,7 @@ private Mono> createOrUpdateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -254,7 +256,7 @@ private Mono> createOrUpdateWithResponseAsync( resourceGroupName, workspaceName, storageInsightName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), parameters, accept, @@ -367,6 +369,7 @@ private Mono> getWithResponseAsync( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -377,7 +380,7 @@ private Mono> getWithResponseAsync( resourceGroupName, workspaceName, storageInsightName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), accept, context)) @@ -422,6 +425,7 @@ private Mono> getWithResponseAsync( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -430,7 +434,7 @@ private Mono> getWithResponseAsync( resourceGroupName, workspaceName, storageInsightName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), accept, context); @@ -532,6 +536,7 @@ private Mono> deleteWithResponseAsync( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; return FluxUtil .withContext( context -> @@ -541,7 +546,7 @@ private Mono> deleteWithResponseAsync( resourceGroupName, workspaceName, storageInsightName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -585,6 +590,7 @@ private Mono> deleteWithResponseAsync( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; context = this.client.mergeContext(context); return service .delete( @@ -592,7 +598,7 @@ private Mono> deleteWithResponseAsync( resourceGroupName, workspaceName, storageInsightName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), context); } @@ -679,6 +685,7 @@ private Mono> listByWorkspaceSinglePageAsync( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -688,7 +695,7 @@ private Mono> listByWorkspaceSinglePageAsync( this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), accept, context)) @@ -737,6 +744,7 @@ private Mono> listByWorkspaceSinglePageAsync( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -744,7 +752,7 @@ private Mono> listByWorkspaceSinglePageAsync( this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), accept, context) diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/TablesClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/TablesClientImpl.java index 2907cdc2bebb0..9e840b2086fcc 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/TablesClientImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/TablesClientImpl.java @@ -141,6 +141,7 @@ private Mono> listByWorkspaceSinglePageAsync( if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -151,7 +152,7 @@ private Mono> listByWorkspaceSinglePageAsync( this.client.getSubscriptionId(), resourceGroupName, workspaceName, - this.client.getApiVersion(), + apiVersion, accept, context)) .>map( @@ -194,6 +195,7 @@ private Mono> listByWorkspaceSinglePageAsync( if (workspaceName == null) { return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -202,7 +204,7 @@ private Mono> listByWorkspaceSinglePageAsync( this.client.getSubscriptionId(), resourceGroupName, workspaceName, - this.client.getApiVersion(), + apiVersion, accept, context) .map( @@ -316,6 +318,7 @@ private Mono> updateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -326,7 +329,7 @@ private Mono> updateWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, workspaceName, - this.client.getApiVersion(), + apiVersion, tableName, parameters, accept, @@ -377,6 +380,7 @@ private Mono> updateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -385,7 +389,7 @@ private Mono> updateWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, workspaceName, - this.client.getApiVersion(), + apiVersion, tableName, parameters, accept, @@ -490,6 +494,7 @@ private Mono> getWithResponseAsync( if (tableName == null) { return Mono.error(new IllegalArgumentException("Parameter tableName is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -500,7 +505,7 @@ private Mono> getWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, workspaceName, - this.client.getApiVersion(), + apiVersion, tableName, accept, context)) @@ -544,6 +549,7 @@ private Mono> getWithResponseAsync( if (tableName == null) { return Mono.error(new IllegalArgumentException("Parameter tableName is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -552,7 +558,7 @@ private Mono> getWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, workspaceName, - this.client.getApiVersion(), + apiVersion, tableName, accept, context); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/UsagesClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/UsagesClientImpl.java index 5fe17c28238c3..ce2735bcdc997 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/UsagesClientImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/UsagesClientImpl.java @@ -105,6 +105,7 @@ private Mono> listSinglePageAsync(String resourc new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -114,7 +115,7 @@ private Mono> listSinglePageAsync(String resourc this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), accept, context)) @@ -158,6 +159,7 @@ private Mono> listSinglePageAsync( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -165,7 +167,7 @@ private Mono> listSinglePageAsync( this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), accept, context) diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspaceImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspaceImpl.java index 612c1d9b2a4c1..8878ffb59890e 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspaceImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspaceImpl.java @@ -101,13 +101,20 @@ public List privateLinkScopedResources() { } } - public Map features() { - Map inner = this.innerModel().features(); - if (inner != null) { - return Collections.unmodifiableMap(inner); - } else { - return Collections.emptyMap(); - } + public Boolean enableDataExport() { + return this.innerModel().enableDataExport(); + } + + public Boolean immediatePurgeDataOn30Days() { + return this.innerModel().immediatePurgeDataOn30Days(); + } + + public Boolean enableLogAccessUsingOnlyResourcePermissions() { + return this.innerModel().enableLogAccessUsingOnlyResourcePermissions(); + } + + public String clusterResourceId() { + return this.innerModel().clusterResourceId(); } public Region region() { @@ -309,12 +316,47 @@ public WorkspaceImpl withForceCmkForQuery(Boolean forceCmkForQuery) { } } - public WorkspaceImpl withFeatures(Map features) { + public WorkspaceImpl withEnableDataExport(Boolean enableDataExport) { + if (isInCreateMode()) { + this.innerModel().withEnableDataExport(enableDataExport); + return this; + } else { + this.updateParameters.withEnableDataExport(enableDataExport); + return this; + } + } + + public WorkspaceImpl withImmediatePurgeDataOn30Days(Boolean immediatePurgeDataOn30Days) { + if (isInCreateMode()) { + this.innerModel().withImmediatePurgeDataOn30Days(immediatePurgeDataOn30Days); + return this; + } else { + this.updateParameters.withImmediatePurgeDataOn30Days(immediatePurgeDataOn30Days); + return this; + } + } + + public WorkspaceImpl withEnableLogAccessUsingOnlyResourcePermissions( + Boolean enableLogAccessUsingOnlyResourcePermissions) { + if (isInCreateMode()) { + this + .innerModel() + .withEnableLogAccessUsingOnlyResourcePermissions(enableLogAccessUsingOnlyResourcePermissions); + return this; + } else { + this + .updateParameters + .withEnableLogAccessUsingOnlyResourcePermissions(enableLogAccessUsingOnlyResourcePermissions); + return this; + } + } + + public WorkspaceImpl withClusterResourceId(String clusterResourceId) { if (isInCreateMode()) { - this.innerModel().withFeatures(features); + this.innerModel().withClusterResourceId(clusterResourceId); return this; } else { - this.updateParameters.withFeatures(features); + this.updateParameters.withClusterResourceId(clusterResourceId); return this; } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacePurgesClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacePurgesClientImpl.java index a3e0cc6c85962..59ade20d2f25e 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacePurgesClientImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacePurgesClientImpl.java @@ -135,6 +135,7 @@ private Mono purgeWithResponseAsync( } else { body.validate(); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -143,7 +144,7 @@ private Mono purgeWithResponseAsync( .purge( this.client.getEndpoint(), resourceGroupName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), workspaceName, body, @@ -196,13 +197,14 @@ private Mono purgeWithResponseAsync( } else { body.validate(); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service .purge( this.client.getEndpoint(), resourceGroupName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), workspaceName, body, @@ -320,6 +322,7 @@ private Mono> getPurgeStatusWithResp if (purgeId == null) { return Mono.error(new IllegalArgumentException("Parameter purgeId is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -328,7 +331,7 @@ private Mono> getPurgeStatusWithResp .getPurgeStatus( this.client.getEndpoint(), resourceGroupName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), workspaceName, purgeId, @@ -374,13 +377,14 @@ private Mono> getPurgeStatusWithResp if (purgeId == null) { return Mono.error(new IllegalArgumentException("Parameter purgeId is required and cannot be null.")); } + final String apiVersion = "2020-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service .getPurgeStatus( this.client.getEndpoint(), resourceGroupName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), workspaceName, purgeId, diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacesClientImpl.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacesClientImpl.java index 52fa2d36e0374..7e6a2b2bfa9fd 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacesClientImpl.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacesClientImpl.java @@ -179,17 +179,13 @@ private Mono> listSinglePageAsync() { new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-10-01"; final String accept = "application/json"; return FluxUtil .withContext( context -> service - .list( - this.client.getEndpoint(), - this.client.getApiVersion(), - this.client.getSubscriptionId(), - accept, - context)) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context)) .>map( res -> new PagedResponseBase<>( @@ -220,15 +216,11 @@ private Mono> listSinglePageAsync(Context context) new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list( - this.client.getEndpoint(), - this.client.getApiVersion(), - this.client.getSubscriptionId(), - accept, - context) + .list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) .map( res -> new PagedResponseBase<>( @@ -314,6 +306,7 @@ private Mono> listByResourceGroupSinglePageAsync(S new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-10-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -322,7 +315,7 @@ private Mono> listByResourceGroupSinglePageAsync(S .listByResourceGroup( this.client.getEndpoint(), resourceGroupName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), accept, context)) @@ -362,13 +355,14 @@ private Mono> listByResourceGroupSinglePageAsync( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service .listByResourceGroup( this.client.getEndpoint(), resourceGroupName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), accept, context) @@ -474,6 +468,7 @@ private Mono>> createOrUpdateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2020-10-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -483,7 +478,7 @@ private Mono>> createOrUpdateWithResponseAsync( this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), parameters, accept, @@ -530,6 +525,7 @@ private Mono>> createOrUpdateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2020-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -537,7 +533,7 @@ private Mono>> createOrUpdateWithResponseAsync( this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), parameters, accept, @@ -734,6 +730,7 @@ private Mono>> deleteWithResponseAsync( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-10-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -743,7 +740,7 @@ private Mono>> deleteWithResponseAsync( this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), force, accept, @@ -788,6 +785,7 @@ private Mono>> deleteWithResponseAsync( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -795,7 +793,7 @@ private Mono>> deleteWithResponseAsync( this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), force, accept, @@ -1041,6 +1039,7 @@ private Mono> getByResourceGroupWithResponseAsync( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-10-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -1050,7 +1049,7 @@ private Mono> getByResourceGroupWithResponseAsync( this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), accept, context)) @@ -1090,6 +1089,7 @@ private Mono> getByResourceGroupWithResponseAsync( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2020-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1097,7 +1097,7 @@ private Mono> getByResourceGroupWithResponseAsync( this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), accept, context); @@ -1196,6 +1196,7 @@ private Mono> updateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2020-10-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -1205,7 +1206,7 @@ private Mono> updateWithResponseAsync( this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), parameters, accept, @@ -1252,6 +1253,7 @@ private Mono> updateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2020-10-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1259,7 +1261,7 @@ private Mono> updateWithResponseAsync( this.client.getEndpoint(), resourceGroupName, workspaceName, - this.client.getApiVersion(), + apiVersion, this.client.getSubscriptionId(), parameters, accept, diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/AssociatedWorkspace.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/AssociatedWorkspace.java new file mode 100644 index 0000000000000..5cc05a8a3d2b8 --- /dev/null +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/AssociatedWorkspace.java @@ -0,0 +1,84 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.loganalytics.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The list of Log Analytics workspaces associated with the cluster. */ +@Immutable +public final class AssociatedWorkspace { + @JsonIgnore private final ClientLogger logger = new ClientLogger(AssociatedWorkspace.class); + + /* + * The id of the assigned workspace. + */ + @JsonProperty(value = "workspaceId", access = JsonProperty.Access.WRITE_ONLY) + private String workspaceId; + + /* + * The name id the assigned workspace. + */ + @JsonProperty(value = "workspaceName", access = JsonProperty.Access.WRITE_ONLY) + private String workspaceName; + + /* + * The ResourceId id the assigned workspace. + */ + @JsonProperty(value = "resourceId", access = JsonProperty.Access.WRITE_ONLY) + private String resourceId; + + /* + * The time of workspace association. + */ + @JsonProperty(value = "associateDate", access = JsonProperty.Access.WRITE_ONLY) + private String associateDate; + + /** + * Get the workspaceId property: The id of the assigned workspace. + * + * @return the workspaceId value. + */ + public String workspaceId() { + return this.workspaceId; + } + + /** + * Get the workspaceName property: The name id the assigned workspace. + * + * @return the workspaceName value. + */ + public String workspaceName() { + return this.workspaceName; + } + + /** + * Get the resourceId property: The ResourceId id the assigned workspace. + * + * @return the resourceId value. + */ + public String resourceId() { + return this.resourceId; + } + + /** + * Get the associateDate property: The time of workspace association. + * + * @return the associateDate value. + */ + public String associateDate() { + return this.associateDate; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/BillingType.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/BillingType.java new file mode 100644 index 0000000000000..f57053a49627d --- /dev/null +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/BillingType.java @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.loganalytics.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** Defines values for BillingType. */ +public final class BillingType extends ExpandableStringEnum { + /** Static value Cluster for BillingType. */ + public static final BillingType CLUSTER = fromString("Cluster"); + + /** Static value Workspaces for BillingType. */ + public static final BillingType WORKSPACES = fromString("Workspaces"); + + /** + * Creates or finds a BillingType from its string representation. + * + * @param name a name to look for. + * @return the corresponding BillingType. + */ + @JsonCreator + public static BillingType fromString(String name) { + return fromString(name, BillingType.class); + } + + /** @return known BillingType values. */ + public static Collection values() { + return values(BillingType.class); + } +} diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/CapacityReservationProperties.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/CapacityReservationProperties.java new file mode 100644 index 0000000000000..9ef5d139842b3 --- /dev/null +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/CapacityReservationProperties.java @@ -0,0 +1,69 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.loganalytics.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The Capacity Reservation properties. */ +@Immutable +public final class CapacityReservationProperties { + @JsonIgnore private final ClientLogger logger = new ClientLogger(CapacityReservationProperties.class); + + /* + * The last time Sku was updated. + */ + @JsonProperty(value = "lastSkuUpdate", access = JsonProperty.Access.WRITE_ONLY) + private String lastSkuUpdate; + + /* + * Minimum CapacityReservation value in GB. + */ + @JsonProperty(value = "minCapacity", access = JsonProperty.Access.WRITE_ONLY) + private Long minCapacity; + + /* + * Maximum CapacityReservation value in GB. + */ + @JsonProperty(value = "maxCapacity", access = JsonProperty.Access.WRITE_ONLY) + private Long maxCapacity; + + /** + * Get the lastSkuUpdate property: The last time Sku was updated. + * + * @return the lastSkuUpdate value. + */ + public String lastSkuUpdate() { + return this.lastSkuUpdate; + } + + /** + * Get the minCapacity property: Minimum CapacityReservation value in GB. + * + * @return the minCapacity value. + */ + public Long minCapacity() { + return this.minCapacity; + } + + /** + * Get the maxCapacity property: Maximum CapacityReservation value in GB. + * + * @return the maxCapacity value. + */ + public Long maxCapacity() { + return this.maxCapacity; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Cluster.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Cluster.java index 6cd5fe9911757..50dc0d70db138 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Cluster.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Cluster.java @@ -7,6 +7,7 @@ import com.azure.core.management.Region; import com.azure.core.util.Context; import com.azure.resourcemanager.loganalytics.fluent.models.ClusterInner; +import java.util.List; import java.util.Map; /** An immutable client-side representation of Cluster. */ @@ -60,13 +61,6 @@ public interface Cluster { */ ClusterSku sku(); - /** - * Gets the nextLink property: The link used to get the next page of recommendations. - * - * @return the nextLink value. - */ - String nextLink(); - /** * Gets the clusterId property: The ID associated with the cluster. * @@ -81,6 +75,30 @@ public interface Cluster { */ ClusterEntityStatus provisioningState(); + /** + * Gets the isDoubleEncryptionEnabled property: Configures whether cluster will use double encryption. This Property + * can not be modified after cluster creation. Default value is 'true'. + * + * @return the isDoubleEncryptionEnabled value. + */ + Boolean isDoubleEncryptionEnabled(); + + /** + * Gets the isAvailabilityZonesEnabled property: Sets whether the cluster will support availability zones. This can + * be set as true only in regions where Azure Data Explorer support Availability Zones. This Property can not be + * modified after cluster creation. Default value is 'true' if region supports Availability Zones. + * + * @return the isAvailabilityZonesEnabled value. + */ + Boolean isAvailabilityZonesEnabled(); + + /** + * Gets the billingType property: The cluster's billing type. + * + * @return the billingType value. + */ + BillingType billingType(); + /** * Gets the keyVaultProperties property: The associated key properties. * @@ -88,6 +106,34 @@ public interface Cluster { */ KeyVaultProperties keyVaultProperties(); + /** + * Gets the lastModifiedDate property: The last time the cluster was updated. + * + * @return the lastModifiedDate value. + */ + String lastModifiedDate(); + + /** + * Gets the createdDate property: The cluster creation time. + * + * @return the createdDate value. + */ + String createdDate(); + + /** + * Gets the associatedWorkspaces property: The list of Log Analytics workspaces associated with the cluster. + * + * @return the associatedWorkspaces value. + */ + List associatedWorkspaces(); + + /** + * Gets the capacityReservationProperties property: Additional properties for capacity reservation. + * + * @return the capacityReservationProperties value. + */ + CapacityReservationProperties capacityReservationProperties(); + /** * Gets the region of the resource. * @@ -157,8 +203,12 @@ interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithIdentity, DefinitionStages.WithSku, - DefinitionStages.WithNextLink, - DefinitionStages.WithKeyVaultProperties { + DefinitionStages.WithIsDoubleEncryptionEnabled, + DefinitionStages.WithIsAvailabilityZonesEnabled, + DefinitionStages.WithBillingType, + DefinitionStages.WithKeyVaultProperties, + DefinitionStages.WithAssociatedWorkspaces, + DefinitionStages.WithCapacityReservationProperties { /** * Executes the create request. * @@ -204,15 +254,43 @@ interface WithSku { */ WithCreate withSku(ClusterSku sku); } - /** The stage of the Cluster definition allowing to specify nextLink. */ - interface WithNextLink { + /** The stage of the Cluster definition allowing to specify isDoubleEncryptionEnabled. */ + interface WithIsDoubleEncryptionEnabled { /** - * Specifies the nextLink property: The link used to get the next page of recommendations.. + * Specifies the isDoubleEncryptionEnabled property: Configures whether cluster will use double encryption. + * This Property can not be modified after cluster creation. Default value is 'true'. * - * @param nextLink The link used to get the next page of recommendations. + * @param isDoubleEncryptionEnabled Configures whether cluster will use double encryption. This Property can + * not be modified after cluster creation. Default value is 'true'. * @return the next definition stage. */ - WithCreate withNextLink(String nextLink); + WithCreate withIsDoubleEncryptionEnabled(Boolean isDoubleEncryptionEnabled); + } + /** The stage of the Cluster definition allowing to specify isAvailabilityZonesEnabled. */ + interface WithIsAvailabilityZonesEnabled { + /** + * Specifies the isAvailabilityZonesEnabled property: Sets whether the cluster will support availability + * zones. This can be set as true only in regions where Azure Data Explorer support Availability Zones. This + * Property can not be modified after cluster creation. Default value is 'true' if region supports + * Availability Zones.. + * + * @param isAvailabilityZonesEnabled Sets whether the cluster will support availability zones. This can be + * set as true only in regions where Azure Data Explorer support Availability Zones. This Property can + * not be modified after cluster creation. Default value is 'true' if region supports Availability + * Zones. + * @return the next definition stage. + */ + WithCreate withIsAvailabilityZonesEnabled(Boolean isAvailabilityZonesEnabled); + } + /** The stage of the Cluster definition allowing to specify billingType. */ + interface WithBillingType { + /** + * Specifies the billingType property: The cluster's billing type.. + * + * @param billingType The cluster's billing type. + * @return the next definition stage. + */ + WithCreate withBillingType(BillingType billingType); } /** The stage of the Cluster definition allowing to specify keyVaultProperties. */ interface WithKeyVaultProperties { @@ -224,6 +302,27 @@ interface WithKeyVaultProperties { */ WithCreate withKeyVaultProperties(KeyVaultProperties keyVaultProperties); } + /** The stage of the Cluster definition allowing to specify associatedWorkspaces. */ + interface WithAssociatedWorkspaces { + /** + * Specifies the associatedWorkspaces property: The list of Log Analytics workspaces associated with the + * cluster. + * + * @param associatedWorkspaces The list of Log Analytics workspaces associated with the cluster. + * @return the next definition stage. + */ + WithCreate withAssociatedWorkspaces(List associatedWorkspaces); + } + /** The stage of the Cluster definition allowing to specify capacityReservationProperties. */ + interface WithCapacityReservationProperties { + /** + * Specifies the capacityReservationProperties property: Additional properties for capacity reservation. + * + * @param capacityReservationProperties Additional properties for capacity reservation. + * @return the next definition stage. + */ + WithCreate withCapacityReservationProperties(CapacityReservationProperties capacityReservationProperties); + } } /** * Begins update for the Cluster resource. @@ -233,7 +332,12 @@ interface WithKeyVaultProperties { Cluster.Update update(); /** The template for Cluster update. */ - interface Update extends UpdateStages.WithTags, UpdateStages.WithSku, UpdateStages.WithKeyVaultProperties { + interface Update + extends UpdateStages.WithTags, + UpdateStages.WithIdentity, + UpdateStages.WithSku, + UpdateStages.WithKeyVaultProperties, + UpdateStages.WithBillingType { /** * Executes the update request. * @@ -261,6 +365,16 @@ interface WithTags { */ Update withTags(Map tags); } + /** The stage of the Cluster update allowing to specify identity. */ + interface WithIdentity { + /** + * Specifies the identity property: The identity of the resource.. + * + * @param identity The identity of the resource. + * @return the next definition stage. + */ + Update withIdentity(Identity identity); + } /** The stage of the Cluster update allowing to specify sku. */ interface WithSku { /** @@ -281,6 +395,16 @@ interface WithKeyVaultProperties { */ Update withKeyVaultProperties(KeyVaultProperties keyVaultProperties); } + /** The stage of the Cluster update allowing to specify billingType. */ + interface WithBillingType { + /** + * Specifies the billingType property: The cluster's billing type.. + * + * @param billingType The cluster's billing type. + * @return the next definition stage. + */ + Update withBillingType(BillingType billingType); + } } /** * Refreshes the resource to sync with Azure. diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterPatch.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterPatch.java index 34be5ae9d38f6..b072c7cf7cbd1 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterPatch.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ClusterPatch.java @@ -17,6 +17,12 @@ public class ClusterPatch { @JsonIgnore private final ClientLogger logger = new ClientLogger(ClusterPatch.class); + /* + * The identity of the resource. + */ + @JsonProperty(value = "identity") + private Identity identity; + /* * The sku properties. */ @@ -35,6 +41,32 @@ public class ClusterPatch { @JsonProperty(value = "properties.keyVaultProperties") private KeyVaultProperties keyVaultProperties; + /* + * The cluster's billing type. + */ + @JsonProperty(value = "properties.billingType") + private BillingType billingType; + + /** + * Get the identity property: The identity of the resource. + * + * @return the identity value. + */ + public Identity identity() { + return this.identity; + } + + /** + * Set the identity property: The identity of the resource. + * + * @param identity the identity value to set. + * @return the ClusterPatch object itself. + */ + public ClusterPatch withIdentity(Identity identity) { + this.identity = identity; + return this; + } + /** * Get the sku property: The sku properties. * @@ -95,12 +127,35 @@ public ClusterPatch withKeyVaultProperties(KeyVaultProperties keyVaultProperties return this; } + /** + * Get the billingType property: The cluster's billing type. + * + * @return the billingType value. + */ + public BillingType billingType() { + return this.billingType; + } + + /** + * Set the billingType property: The cluster's billing type. + * + * @param billingType the billingType value to set. + * @return the ClusterPatch object itself. + */ + public ClusterPatch withBillingType(BillingType billingType) { + this.billingType = billingType; + return this; + } + /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { + if (identity() != null) { + identity().validate(); + } if (sku() != null) { sku().validate(); } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ErrorAdditionalInfo.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ErrorAdditionalInfo.java deleted file mode 100644 index 697ee10baa222..0000000000000 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/ErrorAdditionalInfo.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.loganalytics.models; - -import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** The resource management error additional info. */ -@Immutable -public final class ErrorAdditionalInfo { - @JsonIgnore private final ClientLogger logger = new ClientLogger(ErrorAdditionalInfo.class); - - /* - * 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; - - /** - * Get the type property: The additional info type. - * - * @return the type value. - */ - public String type() { - return this.type; - } - - /** - * Get the info property: The additional info. - * - * @return the info value. - */ - public Object info() { - return this.info; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -} diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Identity.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Identity.java index 2115f49ea7fa1..b46323e664d01 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Identity.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Identity.java @@ -8,6 +8,7 @@ import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Map; /** Identity for the resource. */ @Fluent @@ -27,11 +28,19 @@ public class Identity { private String tenantId; /* - * The identity type. + * Type of managed service identity. */ @JsonProperty(value = "type", required = true) private IdentityType type; + /* + * The list of user identities associated with the resource. The user + * identity dictionary key references will be ARM resource ids in the form: + * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. + */ + @JsonProperty(value = "userAssignedIdentities") + private Map userAssignedIdentities; + /** * Get the principalId property: The principal ID of resource identity. * @@ -51,7 +60,7 @@ public String tenantId() { } /** - * Get the type property: The identity type. + * Get the type property: Type of managed service identity. * * @return the type value. */ @@ -60,7 +69,7 @@ public IdentityType type() { } /** - * Set the type property: The identity type. + * Set the type property: Type of managed service identity. * * @param type the type value to set. * @return the Identity object itself. @@ -70,6 +79,30 @@ public Identity withType(IdentityType type) { return this; } + /** + * Get the userAssignedIdentities property: The list of user identities associated with the resource. The user + * identity dictionary key references will be ARM resource ids in the form: + * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. + * + * @return the userAssignedIdentities value. + */ + public Map userAssignedIdentities() { + return this.userAssignedIdentities; + } + + /** + * Set the userAssignedIdentities property: The list of user identities associated with the resource. The user + * identity dictionary key references will be ARM resource ids in the form: + * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. + * + * @param userAssignedIdentities the userAssignedIdentities value to set. + * @return the Identity object itself. + */ + public Identity withUserAssignedIdentities(Map userAssignedIdentities) { + this.userAssignedIdentities = userAssignedIdentities; + return this; + } + /** * Validates the instance. * @@ -80,5 +113,15 @@ public void validate() { throw logger .logExceptionAsError(new IllegalArgumentException("Missing required property type in model Identity")); } + if (userAssignedIdentities() != null) { + userAssignedIdentities() + .values() + .forEach( + e -> { + if (e != null) { + e.validate(); + } + }); + } } } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/IdentityType.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/IdentityType.java index 457f03780ba35..b8566c9eb059e 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/IdentityType.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/IdentityType.java @@ -12,6 +12,9 @@ public enum IdentityType { /** Enum value SystemAssigned. */ SYSTEM_ASSIGNED("SystemAssigned"), + /** Enum value UserAssigned. */ + USER_ASSIGNED("UserAssigned"), + /** Enum value None. */ NONE("None"); diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/KeyVaultProperties.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/KeyVaultProperties.java index ac2c6827af82d..3a6d9052ff476 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/KeyVaultProperties.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/KeyVaultProperties.java @@ -33,6 +33,12 @@ public final class KeyVaultProperties { @JsonProperty(value = "keyVersion") private String keyVersion; + /* + * Selected key minimum required size. + */ + @JsonProperty(value = "keyRsaSize") + private Integer keyRsaSize; + /** * Get the keyVaultUri property: The Key Vault uri which holds they key associated with the Log Analytics cluster. * @@ -93,6 +99,26 @@ public KeyVaultProperties withKeyVersion(String keyVersion) { return this; } + /** + * Get the keyRsaSize property: Selected key minimum required size. + * + * @return the keyRsaSize value. + */ + public Integer keyRsaSize() { + return this.keyRsaSize; + } + + /** + * Set the keyRsaSize property: Selected key minimum required size. + * + * @param keyRsaSize the keyRsaSize value to set. + * @return the KeyVaultProperties object itself. + */ + public KeyVaultProperties withKeyRsaSize(Integer keyRsaSize) { + this.keyRsaSize = keyRsaSize; + return this; + } + /** * Validates the instance. * diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/UserIdentityProperties.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/UserIdentityProperties.java new file mode 100644 index 0000000000000..09534dfdca5a1 --- /dev/null +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/UserIdentityProperties.java @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.loganalytics.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** User assigned identity properties. */ +@Immutable +public final class UserIdentityProperties { + @JsonIgnore private final ClientLogger logger = new ClientLogger(UserIdentityProperties.class); + + /* + * The principal id of user assigned identity. + */ + @JsonProperty(value = "principalId", access = JsonProperty.Access.WRITE_ONLY) + private String principalId; + + /* + * The client id of user assigned identity. + */ + @JsonProperty(value = "clientId", access = JsonProperty.Access.WRITE_ONLY) + private String clientId; + + /** + * Get the principalId property: The principal id of user assigned identity. + * + * @return the principalId value. + */ + public String principalId() { + return this.principalId; + } + + /** + * Get the clientId property: The client id of user assigned identity. + * + * @return the clientId value. + */ + public String clientId() { + return this.clientId; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Workspace.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Workspace.java index 44ce1350abae5..85e00d2f7421b 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Workspace.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/Workspace.java @@ -133,11 +133,33 @@ public interface Workspace { List privateLinkScopedResources(); /** - * Gets the features property: Workspace features. + * Gets the enableDataExport property: Flag that indicate if data should be exported. * - * @return the features value. + * @return the enableDataExport value. */ - Map features(); + Boolean enableDataExport(); + + /** + * Gets the immediatePurgeDataOn30Days property: Flag that describes if we want to remove the data after 30 days. + * + * @return the immediatePurgeDataOn30Days value. + */ + Boolean immediatePurgeDataOn30Days(); + + /** + * Gets the enableLogAccessUsingOnlyResourcePermissions property: Flag that indicate which permission to use - + * resource or workspace or both. + * + * @return the enableLogAccessUsingOnlyResourcePermissions value. + */ + Boolean enableLogAccessUsingOnlyResourcePermissions(); + + /** + * Gets the clusterResourceId property: Dedicated LA cluster resourceId that is linked to the workspaces. + * + * @return the clusterResourceId value. + */ + String clusterResourceId(); /** * Gets the region of the resource. @@ -214,7 +236,10 @@ interface WithCreate DefinitionStages.WithPublicNetworkAccessForIngestion, DefinitionStages.WithPublicNetworkAccessForQuery, DefinitionStages.WithForceCmkForQuery, - DefinitionStages.WithFeatures { + DefinitionStages.WithEnableDataExport, + DefinitionStages.WithImmediatePurgeDataOn30Days, + DefinitionStages.WithEnableLogAccessUsingOnlyResourcePermissions, + DefinitionStages.WithClusterResourceId { /** * Executes the create request. * @@ -325,15 +350,50 @@ interface WithForceCmkForQuery { */ WithCreate withForceCmkForQuery(Boolean forceCmkForQuery); } - /** The stage of the Workspace definition allowing to specify features. */ - interface WithFeatures { + /** The stage of the Workspace definition allowing to specify enableDataExport. */ + interface WithEnableDataExport { + /** + * Specifies the enableDataExport property: Flag that indicate if data should be exported.. + * + * @param enableDataExport Flag that indicate if data should be exported. + * @return the next definition stage. + */ + WithCreate withEnableDataExport(Boolean enableDataExport); + } + /** The stage of the Workspace definition allowing to specify immediatePurgeDataOn30Days. */ + interface WithImmediatePurgeDataOn30Days { + /** + * Specifies the immediatePurgeDataOn30Days property: Flag that describes if we want to remove the data + * after 30 days.. + * + * @param immediatePurgeDataOn30Days Flag that describes if we want to remove the data after 30 days. + * @return the next definition stage. + */ + WithCreate withImmediatePurgeDataOn30Days(Boolean immediatePurgeDataOn30Days); + } + /** The stage of the Workspace definition allowing to specify enableLogAccessUsingOnlyResourcePermissions. */ + interface WithEnableLogAccessUsingOnlyResourcePermissions { + /** + * Specifies the enableLogAccessUsingOnlyResourcePermissions property: Flag that indicate which permission + * to use - resource or workspace or both.. + * + * @param enableLogAccessUsingOnlyResourcePermissions Flag that indicate which permission to use - resource + * or workspace or both. + * @return the next definition stage. + */ + WithCreate withEnableLogAccessUsingOnlyResourcePermissions( + Boolean enableLogAccessUsingOnlyResourcePermissions); + } + /** The stage of the Workspace definition allowing to specify clusterResourceId. */ + interface WithClusterResourceId { /** - * Specifies the features property: Workspace features.. + * Specifies the clusterResourceId property: Dedicated LA cluster resourceId that is linked to the + * workspaces.. * - * @param features Workspace features. + * @param clusterResourceId Dedicated LA cluster resourceId that is linked to the workspaces. * @return the next definition stage. */ - WithCreate withFeatures(Map features); + WithCreate withClusterResourceId(String clusterResourceId); } } /** @@ -353,7 +413,10 @@ interface Update UpdateStages.WithPublicNetworkAccessForIngestion, UpdateStages.WithPublicNetworkAccessForQuery, UpdateStages.WithForceCmkForQuery, - UpdateStages.WithFeatures { + UpdateStages.WithEnableDataExport, + UpdateStages.WithImmediatePurgeDataOn30Days, + UpdateStages.WithEnableLogAccessUsingOnlyResourcePermissions, + UpdateStages.WithClusterResourceId { /** * Executes the update request. * @@ -456,15 +519,49 @@ interface WithForceCmkForQuery { */ Update withForceCmkForQuery(Boolean forceCmkForQuery); } - /** The stage of the Workspace update allowing to specify features. */ - interface WithFeatures { + /** The stage of the Workspace update allowing to specify enableDataExport. */ + interface WithEnableDataExport { + /** + * Specifies the enableDataExport property: Flag that indicate if data should be exported.. + * + * @param enableDataExport Flag that indicate if data should be exported. + * @return the next definition stage. + */ + Update withEnableDataExport(Boolean enableDataExport); + } + /** The stage of the Workspace update allowing to specify immediatePurgeDataOn30Days. */ + interface WithImmediatePurgeDataOn30Days { + /** + * Specifies the immediatePurgeDataOn30Days property: Flag that describes if we want to remove the data + * after 30 days.. + * + * @param immediatePurgeDataOn30Days Flag that describes if we want to remove the data after 30 days. + * @return the next definition stage. + */ + Update withImmediatePurgeDataOn30Days(Boolean immediatePurgeDataOn30Days); + } + /** The stage of the Workspace update allowing to specify enableLogAccessUsingOnlyResourcePermissions. */ + interface WithEnableLogAccessUsingOnlyResourcePermissions { + /** + * Specifies the enableLogAccessUsingOnlyResourcePermissions property: Flag that indicate which permission + * to use - resource or workspace or both.. + * + * @param enableLogAccessUsingOnlyResourcePermissions Flag that indicate which permission to use - resource + * or workspace or both. + * @return the next definition stage. + */ + Update withEnableLogAccessUsingOnlyResourcePermissions(Boolean enableLogAccessUsingOnlyResourcePermissions); + } + /** The stage of the Workspace update allowing to specify clusterResourceId. */ + interface WithClusterResourceId { /** - * Specifies the features property: Workspace features.. + * Specifies the clusterResourceId property: Dedicated LA cluster resourceId that is linked to the + * workspaces.. * - * @param features Workspace features. + * @param clusterResourceId Dedicated LA cluster resourceId that is linked to the workspaces. * @return the next definition stage. */ - Update withFeatures(Map features); + Update withClusterResourceId(String clusterResourceId); } } /** diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceFeatures.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceFeatures.java new file mode 100644 index 0000000000000..7a292409ecca4 --- /dev/null +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceFeatures.java @@ -0,0 +1,170 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.loganalytics.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.HashMap; +import java.util.Map; + +/** Workspace features. */ +@Fluent +public final class WorkspaceFeatures { + @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkspaceFeatures.class); + + /* + * Flag that indicate if data should be exported. + */ + @JsonProperty(value = "enableDataExport") + private Boolean enableDataExport; + + /* + * Flag that describes if we want to remove the data after 30 days. + */ + @JsonProperty(value = "immediatePurgeDataOn30Days") + private Boolean immediatePurgeDataOn30Days; + + /* + * Flag that indicate which permission to use - resource or workspace or + * both. + */ + @JsonProperty(value = "enableLogAccessUsingOnlyResourcePermissions") + private Boolean enableLogAccessUsingOnlyResourcePermissions; + + /* + * Dedicated LA cluster resourceId that is linked to the workspaces. + */ + @JsonProperty(value = "clusterResourceId") + private String clusterResourceId; + + /* + * Workspace features. + */ + @JsonIgnore private Map additionalProperties; + + /** + * Get the enableDataExport property: Flag that indicate if data should be exported. + * + * @return the enableDataExport value. + */ + public Boolean enableDataExport() { + return this.enableDataExport; + } + + /** + * Set the enableDataExport property: Flag that indicate if data should be exported. + * + * @param enableDataExport the enableDataExport value to set. + * @return the WorkspaceFeatures object itself. + */ + public WorkspaceFeatures withEnableDataExport(Boolean enableDataExport) { + this.enableDataExport = enableDataExport; + return this; + } + + /** + * Get the immediatePurgeDataOn30Days property: Flag that describes if we want to remove the data after 30 days. + * + * @return the immediatePurgeDataOn30Days value. + */ + public Boolean immediatePurgeDataOn30Days() { + return this.immediatePurgeDataOn30Days; + } + + /** + * Set the immediatePurgeDataOn30Days property: Flag that describes if we want to remove the data after 30 days. + * + * @param immediatePurgeDataOn30Days the immediatePurgeDataOn30Days value to set. + * @return the WorkspaceFeatures object itself. + */ + public WorkspaceFeatures withImmediatePurgeDataOn30Days(Boolean immediatePurgeDataOn30Days) { + this.immediatePurgeDataOn30Days = immediatePurgeDataOn30Days; + return this; + } + + /** + * Get the enableLogAccessUsingOnlyResourcePermissions property: Flag that indicate which permission to use - + * resource or workspace or both. + * + * @return the enableLogAccessUsingOnlyResourcePermissions value. + */ + public Boolean enableLogAccessUsingOnlyResourcePermissions() { + return this.enableLogAccessUsingOnlyResourcePermissions; + } + + /** + * Set the enableLogAccessUsingOnlyResourcePermissions property: Flag that indicate which permission to use - + * resource or workspace or both. + * + * @param enableLogAccessUsingOnlyResourcePermissions the enableLogAccessUsingOnlyResourcePermissions value to set. + * @return the WorkspaceFeatures object itself. + */ + public WorkspaceFeatures withEnableLogAccessUsingOnlyResourcePermissions( + Boolean enableLogAccessUsingOnlyResourcePermissions) { + this.enableLogAccessUsingOnlyResourcePermissions = enableLogAccessUsingOnlyResourcePermissions; + return this; + } + + /** + * Get the clusterResourceId property: Dedicated LA cluster resourceId that is linked to the workspaces. + * + * @return the clusterResourceId value. + */ + public String clusterResourceId() { + return this.clusterResourceId; + } + + /** + * Set the clusterResourceId property: Dedicated LA cluster resourceId that is linked to the workspaces. + * + * @param clusterResourceId the clusterResourceId value to set. + * @return the WorkspaceFeatures object itself. + */ + public WorkspaceFeatures withClusterResourceId(String clusterResourceId) { + this.clusterResourceId = clusterResourceId; + return this; + } + + /** + * Get the additionalProperties property: Workspace features. + * + * @return the additionalProperties value. + */ + @JsonAnyGetter + public Map additionalProperties() { + return this.additionalProperties; + } + + /** + * Set the additionalProperties property: Workspace features. + * + * @param additionalProperties the additionalProperties value to set. + * @return the WorkspaceFeatures object itself. + */ + public WorkspaceFeatures withAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + @JsonAnySetter + void withAdditionalProperties(String key, Object value) { + if (additionalProperties == null) { + additionalProperties = new HashMap<>(); + } + additionalProperties.put(key, value); + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePatch.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePatch.java index c1d0c35e8ed38..a1b370ec6ddc7 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePatch.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspacePatch.java @@ -94,10 +94,29 @@ public class WorkspacePatch extends AzureEntityResource { private List privateLinkScopedResources; /* - * Workspace features. + * Flag that indicate if data should be exported. */ - @JsonProperty(value = "properties.features") - private Map features; + @JsonProperty(value = "properties.features.enableDataExport") + private Boolean enableDataExport; + + /* + * Flag that describes if we want to remove the data after 30 days. + */ + @JsonProperty(value = "properties.features.immediatePurgeDataOn30Days") + private Boolean immediatePurgeDataOn30Days; + + /* + * Flag that indicate which permission to use - resource or workspace or + * both. + */ + @JsonProperty(value = "properties.features.enableLogAccessUsingOnlyResourcePermissions") + private Boolean enableLogAccessUsingOnlyResourcePermissions; + + /* + * Dedicated LA cluster resourceId that is linked to the workspaces. + */ + @JsonProperty(value = "properties.features.clusterResourceId") + private String clusterResourceId; /** * Get the tags property: Resource tags. Optional. @@ -298,22 +317,85 @@ public List privateLinkScopedResources() { } /** - * Get the features property: Workspace features. + * Get the enableDataExport property: Flag that indicate if data should be exported. + * + * @return the enableDataExport value. + */ + public Boolean enableDataExport() { + return this.enableDataExport; + } + + /** + * Set the enableDataExport property: Flag that indicate if data should be exported. + * + * @param enableDataExport the enableDataExport value to set. + * @return the WorkspacePatch object itself. + */ + public WorkspacePatch withEnableDataExport(Boolean enableDataExport) { + this.enableDataExport = enableDataExport; + return this; + } + + /** + * Get the immediatePurgeDataOn30Days property: Flag that describes if we want to remove the data after 30 days. + * + * @return the immediatePurgeDataOn30Days value. + */ + public Boolean immediatePurgeDataOn30Days() { + return this.immediatePurgeDataOn30Days; + } + + /** + * Set the immediatePurgeDataOn30Days property: Flag that describes if we want to remove the data after 30 days. + * + * @param immediatePurgeDataOn30Days the immediatePurgeDataOn30Days value to set. + * @return the WorkspacePatch object itself. + */ + public WorkspacePatch withImmediatePurgeDataOn30Days(Boolean immediatePurgeDataOn30Days) { + this.immediatePurgeDataOn30Days = immediatePurgeDataOn30Days; + return this; + } + + /** + * Get the enableLogAccessUsingOnlyResourcePermissions property: Flag that indicate which permission to use - + * resource or workspace or both. + * + * @return the enableLogAccessUsingOnlyResourcePermissions value. + */ + public Boolean enableLogAccessUsingOnlyResourcePermissions() { + return this.enableLogAccessUsingOnlyResourcePermissions; + } + + /** + * Set the enableLogAccessUsingOnlyResourcePermissions property: Flag that indicate which permission to use - + * resource or workspace or both. + * + * @param enableLogAccessUsingOnlyResourcePermissions the enableLogAccessUsingOnlyResourcePermissions value to set. + * @return the WorkspacePatch object itself. + */ + public WorkspacePatch withEnableLogAccessUsingOnlyResourcePermissions( + Boolean enableLogAccessUsingOnlyResourcePermissions) { + this.enableLogAccessUsingOnlyResourcePermissions = enableLogAccessUsingOnlyResourcePermissions; + return this; + } + + /** + * Get the clusterResourceId property: Dedicated LA cluster resourceId that is linked to the workspaces. * - * @return the features value. + * @return the clusterResourceId value. */ - public Map features() { - return this.features; + public String clusterResourceId() { + return this.clusterResourceId; } /** - * Set the features property: Workspace features. + * Set the clusterResourceId property: Dedicated LA cluster resourceId that is linked to the workspaces. * - * @param features the features value to set. + * @param clusterResourceId the clusterResourceId value to set. * @return the WorkspacePatch object itself. */ - public WorkspacePatch withFeatures(Map features) { - this.features = features; + public WorkspacePatch withClusterResourceId(String clusterResourceId) { + this.clusterResourceId = clusterResourceId; return this; } diff --git a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceSku.java b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceSku.java index 798779b881d43..743f0d8e0695d 100644 --- a/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceSku.java +++ b/sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/models/WorkspaceSku.java @@ -27,13 +27,6 @@ public final class WorkspaceSku { @JsonProperty(value = "capacityReservationLevel") private Integer capacityReservationLevel; - /* - * The maximum capacity reservation level available for this workspace, - * when CapacityReservation sku is selected. - */ - @JsonProperty(value = "maxCapacityReservationLevel", access = JsonProperty.Access.WRITE_ONLY) - private Integer maxCapacityReservationLevel; - /* * The last time when the sku was updated. */ @@ -82,16 +75,6 @@ public WorkspaceSku withCapacityReservationLevel(Integer capacityReservationLeve return this; } - /** - * Get the maxCapacityReservationLevel property: The maximum capacity reservation level available for this - * workspace, when CapacityReservation sku is selected. - * - * @return the maxCapacityReservationLevel value. - */ - public Integer maxCapacityReservationLevel() { - return this.maxCapacityReservationLevel; - } - /** * Get the lastSkuUpdate property: The last time when the sku was updated. *